From a848110decb9f56d4c152ea7325f4cfb1df64a19 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 06:26:45 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9B=EF=B8=8F=20Replace=20inline=20API?= =?UTF-8?q?=20version=20and=20settings=20controls=20with=20reusable=20`Api?= =?UTF-8?q?VersionSelector`=20component=20and=20update=20imports=20accordi?= =?UTF-8?q?ngly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/ChallongeTest.vue | 76 ++++--------------- 1 file changed, 15 insertions(+), 61 deletions(-) diff --git a/code/websites/pokedex.online/src/views/ChallongeTest.vue b/code/websites/pokedex.online/src/views/ChallongeTest.vue index 12c80c2..16240e9 100644 --- a/code/websites/pokedex.online/src/views/ChallongeTest.vue +++ b/code/websites/pokedex.online/src/views/ChallongeTest.vue @@ -12,59 +12,15 @@
- -
- -
- - -
- - Using API {{ apiVersion }} - -
- - -
- - -
- - -
- - -
- ✓ USER scope - tournaments you created or administer -
-
- ⓘ APPLICATION scope requires a client-credentials token with - application:manage -
-
+ +
@@ -402,14 +358,12 @@ import { ref, computed, watch, onMounted } from 'vue'; import { useChallongeApiKey } from '../composables/useChallongeApiKey.js'; import { useChallongeOAuth } from '../composables/useChallongeOAuth.js'; import { useChallongeClientCredentials } from '../composables/useChallongeClientCredentials.js'; -import { useAsyncState } from '../composables/useAsyncState.js'; -import { - createChallongeV1Client, - createChallongeV2Client, - AuthType, - ScopeType -} from '../services/challonge.service.js'; -import { queryAllTournaments } from '../utilities/tournament-query.js'; +import { useChallongeClient } from '../composables/useChallongeClient.js'; +import { useChallongeTests } from '../composables/useChallongeTests.js'; +import ApiVersionSelector from '../components/challonge/ApiVersionSelector.vue'; +import TournamentGrid from '../components/challonge/TournamentGrid.vue'; +import TournamentDetail from '../components/challonge/TournamentDetail.vue'; +import { ScopeType } from '../services/challonge.service.js'; const { getApiKey } = useChallongeApiKey(); const {