diff --git a/app/(interactive)/match-list/page.js b/app/(interactive)/match-list/page.js index 3deb4f4..2b11785 100644 --- a/app/(interactive)/match-list/page.js +++ b/app/(interactive)/match-list/page.js @@ -72,7 +72,7 @@ export default function MatchList() {
  • {match.name} - +
    setNewName(e.target.value)}/> diff --git a/app/(interactive)/tag-match/[slug]/page.js b/app/(interactive)/tag-match/[slug]/page.js index 52a6b67..f8a6c8d 100644 --- a/app/(interactive)/tag-match/[slug]/page.js +++ b/app/(interactive)/tag-match/[slug]/page.js @@ -132,6 +132,18 @@ export default function TagMatch() { navigator.clipboard.writeText(csvData); }; + const handleDownload = () => { + const csvData = convertToCSV(tableState.rows); + const blob = new Blob([csvData], { type: 'text/csv' }); + const url = URL.createObjectURL(blob); + const a = document.createElement('a'); + a.href = url; + a.download = 'points.csv'; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + } useEffect(() => { window.addEventListener('keydown', handleKeyDown); @@ -418,6 +430,7 @@ export default function TagMatch() { + @@ -473,8 +486,6 @@ export default function TagMatch() {
  • - - { /* CSV Table */} diff --git a/app/(interactive)/tag-match/page.js b/app/(interactive)/tag-match/page.js index 789c442..9a5f10c 100644 --- a/app/(interactive)/tag-match/page.js +++ b/app/(interactive)/tag-match/page.js @@ -199,61 +199,69 @@ export default function TagMatch() {
    - - - -
    - - - - - - - - - - - - - - - - - - -
    Current Time: {timerValue}ms
    Jump to:
    - handleMillisecondsChange(event.target.value)} - style={{ marginRight: '10px' }} - /> - ms
    - { - const minutes = parseFloat(event.target.value); - const seconds = (timerValue % 60000) / 1000; - handleMinutesSecondsChange(minutes, seconds); - }} - style={{ marginRight: '10px' }} - /> - minutes - { - const seconds = parseFloat(event.target.value); - const minutes = Math.floor(timerValue / 60000); - handleMinutesSecondsChange(minutes, seconds); - }} - /> - seconds
    - +
    +
    +
    + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + +
    Current Time: {timerValue}ms
    Jump to:
    + handleMillisecondsChange(event.target.value)} + style={{ marginRight: '10px' }} + /> + ms
    + { + const minutes = parseFloat(event.target.value); + const seconds = (timerValue % 60000) / 1000; + handleMinutesSecondsChange(minutes, seconds); + }} + style={{ marginRight: '10px' }} + /> + minutes + { + const seconds = parseFloat(event.target.value); + const minutes = Math.floor(timerValue / 60000); + handleMinutesSecondsChange(minutes, seconds); + }} + /> + seconds
    + +
    +