rename
This commit is contained in:
@@ -46,8 +46,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from "vue"
|
||||
import { useMessage } from "naive-ui"
|
||||
import { html, css, js } from "../store/editors"
|
||||
import { Submission } from "../api"
|
||||
import { html, css, js } from "../../store/editors"
|
||||
import { Submission } from "../../api"
|
||||
|
||||
const props = defineProps<{ taskId: number }>()
|
||||
const message = useMessage()
|
||||
@@ -56,7 +56,7 @@ import {
|
||||
streaming,
|
||||
streamingContent,
|
||||
sendPrompt,
|
||||
} from "../store/prompt"
|
||||
} from "../../store/prompt"
|
||||
|
||||
const input = ref("")
|
||||
const messagesRef = ref<HTMLElement>()
|
||||
@@ -76,10 +76,10 @@ import { useRoute, useRouter } from "vue-router"
|
||||
import { useMessage } from "naive-ui"
|
||||
import { Icon } from "@iconify/vue"
|
||||
import { marked } from "marked"
|
||||
import PromptPanel from "../components/PromptPanel.vue"
|
||||
import ExternalAIPanel from "../components/ExternalAIPanel.vue"
|
||||
import PromptPanel from "../components/ai/PromptPanel.vue"
|
||||
import ExternalAIPanel from "../components/ai/ExternalAIPanel.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 { html, css, js } from "../store/editors"
|
||||
import { taskId, taskTab, challengeDisplay } from "../store/task"
|
||||
@@ -1,18 +1,18 @@
|
||||
import { createWebHistory, createRouter } from "vue-router"
|
||||
import { loginModal } from "./store/modal"
|
||||
|
||||
import Home from "./pages/Home.vue"
|
||||
import Workspace from "./pages/Workspace.vue"
|
||||
import { STORAGE_KEY } from "./utils/const"
|
||||
|
||||
const routes = [
|
||||
{ path: "/", name: "home", component: Home },
|
||||
{ path: "/tutorial", name: "home-tutorial-list", component: Home },
|
||||
{ path: "/tutorial/:display", name: "home-tutorial", component: Home },
|
||||
{ path: "/challenge", name: "home-challenge-list", component: Home },
|
||||
{ path: "/", name: "home", component: Workspace },
|
||||
{ path: "/tutorial", name: "home-tutorial-list", component: Workspace },
|
||||
{ path: "/tutorial/:display", name: "home-tutorial", component: Workspace },
|
||||
{ path: "/challenge", name: "home-challenge-list", component: Workspace },
|
||||
{
|
||||
path: "/challenge/:display",
|
||||
name: "home-challenge",
|
||||
component: () => import("./pages/ChallengeHome.vue"),
|
||||
component: () => import("./pages/ChallengeDetail.vue"),
|
||||
},
|
||||
{
|
||||
path: "/submissions/:page",
|
||||
|
||||
Reference in New Issue
Block a user