This commit is contained in:
2026-04-01 05:15:00 -06:00
parent 6fb3bc0198
commit 501f314aff
5 changed files with 12 additions and 12 deletions

View File

@@ -46,8 +46,8 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch } from "vue" import { ref, watch } from "vue"
import { useMessage } from "naive-ui" import { useMessage } from "naive-ui"
import { html, css, js } from "../store/editors" import { html, css, js } from "../../store/editors"
import { Submission } from "../api" import { Submission } from "../../api"
const props = defineProps<{ taskId: number }>() const props = defineProps<{ taskId: number }>()
const message = useMessage() const message = useMessage()

View File

@@ -56,7 +56,7 @@ import {
streaming, streaming,
streamingContent, streamingContent,
sendPrompt, sendPrompt,
} from "../store/prompt" } from "../../store/prompt"
const input = ref("") const input = ref("")
const messagesRef = ref<HTMLElement>() const messagesRef = ref<HTMLElement>()

View File

@@ -76,10 +76,10 @@ import { useRoute, useRouter } from "vue-router"
import { useMessage } from "naive-ui" import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue" import { Icon } from "@iconify/vue"
import { marked } from "marked" import { marked } from "marked"
import PromptPanel from "../components/PromptPanel.vue" import PromptPanel from "../components/ai/PromptPanel.vue"
import ExternalAIPanel from "../components/ExternalAIPanel.vue" import ExternalAIPanel from "../components/ai/ExternalAIPanel.vue"
import Preview from "../components/editor/Preview.vue" import Preview from "../components/editor/Preview.vue"
import TaskStatsModal from "../components/TaskStatsModal.vue" import TaskStatsModal from "../components/task/TaskStatsModal.vue"
import { Challenge, Submission } from "../api" import { Challenge, Submission } from "../api"
import { html, css, js } from "../store/editors" import { html, css, js } from "../store/editors"
import { taskId, taskTab, challengeDisplay } from "../store/task" import { taskId, taskTab, challengeDisplay } from "../store/task"

View File

@@ -1,18 +1,18 @@
import { createWebHistory, createRouter } from "vue-router" import { createWebHistory, createRouter } from "vue-router"
import { loginModal } from "./store/modal" import { loginModal } from "./store/modal"
import Home from "./pages/Home.vue" import Workspace from "./pages/Workspace.vue"
import { STORAGE_KEY } from "./utils/const" import { STORAGE_KEY } from "./utils/const"
const routes = [ const routes = [
{ path: "/", name: "home", component: Home }, { path: "/", name: "home", component: Workspace },
{ path: "/tutorial", name: "home-tutorial-list", component: Home }, { path: "/tutorial", name: "home-tutorial-list", component: Workspace },
{ path: "/tutorial/:display", name: "home-tutorial", component: Home }, { path: "/tutorial/:display", name: "home-tutorial", component: Workspace },
{ path: "/challenge", name: "home-challenge-list", component: Home }, { path: "/challenge", name: "home-challenge-list", component: Workspace },
{ {
path: "/challenge/:display", path: "/challenge/:display",
name: "home-challenge", name: "home-challenge",
component: () => import("./pages/ChallengeHome.vue"), component: () => import("./pages/ChallengeDetail.vue"),
}, },
{ {
path: "/submissions/:page", path: "/submissions/:page",