From 1eb61c2a4bb33d15029d4ad307fd09971f8a8581 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 06:27:09 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Refactor=20tournament=20display?= =?UTF-8?q?=20logic=20by=20replacing=20inline=20components=20with=20reusab?= =?UTF-8?q?le=20`TournamentGrid`=20and=20`TournamentDetail`=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/ChallongeTest.vue | 168 +++--------------- 1 file changed, 26 insertions(+), 142 deletions(-) diff --git a/code/websites/pokedex.online/src/views/ChallongeTest.vue b/code/websites/pokedex.online/src/views/ChallongeTest.vue index 16240e9..9b382cb 100644 --- a/code/websites/pokedex.online/src/views/ChallongeTest.vue +++ b/code/websites/pokedex.online/src/views/ChallongeTest.vue @@ -161,150 +161,34 @@ {{ loading ? 'Loading...' : 'List My Tournaments' }} -
- Errors: - -
-

Common issues:

-
    -
  • - 401 Unauthorized: Invalid API key - check API - Key Manager -
  • -
  • 403 Forbidden: Insufficient permissions
  • -
  • - 404 Not Found: Tournament may have been deleted -
  • -
  • - Network Error: Connection problems or CORS - issues -
  • -
-
+
{{ error }}
+
+ {{ paginationInfo }}
-
-
-

✅ Success!

-

{{ paginationInfo }}

-
- -
- No tournaments found. Create one at - Challonge.com -
- -
- - - -
-
-
-

{{ getTournamentName(tournament) }}

- - {{ getTournamentProp(tournament, 'state') }} - -
-
-

- URL: - {{ getTournamentProp(tournament, 'url') }} -

-

- Type: - {{ getTournamentProp(tournament, 'tournament_type') }} -

-

- Participants: - {{ getTournamentProp(tournament, 'participants_count') }} -

-

- Started: - {{ - formatDate(getTournamentProp(tournament, 'started_at')) - }} -

-
- - - -
-
-

Full Tournament Details

-
-
{{
-                    JSON.stringify(tournamentDetails, null, 2)
-                  }}
-
-
-
- - -
- -
-
-
+ + + +