diff --git a/opus_submitter/opus_submitter/settings.py b/opus_submitter/opus_submitter/settings.py index e1b900c..703ddd5 100644 --- a/opus_submitter/opus_submitter/settings.py +++ b/opus_submitter/opus_submitter/settings.py @@ -166,7 +166,7 @@ LOGIN_REDIRECT_URL = "/" LOGOUT_REDIRECT_URL = "/" DJANGO_VITE = { "default": { - "dev_mode": True, + "dev_mode": False, } } STATIC_URL = "/static/" diff --git a/opus_submitter/src/App.vue b/opus_submitter/src/App.vue index e8853c3..76f06ca 100644 --- a/opus_submitter/src/App.vue +++ b/opus_submitter/src/App.vue @@ -15,84 +15,7 @@ const isLoading = ref(true) const showSubmissionModal = ref(false) const error = ref('') -// Mock data for development -const mockCollections: SteamCollection[] = [ - { - id: 1, - steam_id: '3479142989', - title: 'PolyLAN 41', - description: 'Puzzle for PolyLAN 41 fil rouge', - author_name: 'Flame Legrems', - total_items: 10, - unique_visitors: 31, - current_favorites: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - } -] - -const mockPuzzles: SteamCollectionItem[] = [ - { - id: 1, - steam_item_id: '3479143948', - title: 'P41-FLOC', - author_name: 'Flame Legrems', - description: 'A challenging puzzle involving complex molecular arrangements', - tags: ['puzzle', 'chemistry', 'advanced'], - order_index: 0, - collection: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - }, - { - id: 2, - steam_item_id: '3479143084', - title: 'P41-40', - author_name: 'Flame Legrems', - description: 'Test your optimization skills with this intricate design challenge', - tags: ['optimization', 'design'], - order_index: 1, - collection: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - }, - { - id: 3, - steam_item_id: '3479143304', - title: 'P41-39', - author_name: 'Flame Legrems', - description: 'A puzzle focusing on efficient resource management', - tags: ['efficiency', 'resources'], - order_index: 2, - collection: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - }, - { - id: 4, - steam_item_id: '3479143433', - title: 'P41-38', - author_name: 'Flame Legrems', - description: 'Master the art of precise timing in this temporal challenge', - tags: ['timing', 'precision'], - order_index: 3, - collection: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - }, - { - id: 5, - steam_item_id: '3479143537', - title: 'P41-37', - author_name: 'Flame Legrems', - description: 'Explore innovative solutions in this creative puzzle', - tags: ['creative', 'innovation'], - order_index: 4, - collection: 1, - created_at: '2025-05-29T11:19:24Z', - updated_at: '2025-05-30T22:15:09Z' - } -] +// Mock data removed - using API data only // Computed properties const isSuperuser = computed(() => { @@ -227,6 +150,10 @@ const closeSubmissionModal = () => { const findPuzzleByName = (ocrPuzzleName: string): SteamCollectionItem | null => { return puzzleHelpers.findPuzzleByName(puzzles.value, ocrPuzzleName) } + +const reloadPage = () => { + window.location.reload() +}