rename
This commit is contained in:
@@ -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()
|
||||||
@@ -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>()
|
||||||
@@ -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"
|
||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user