refactor: move editor components to components/editor/

This commit is contained in:
2026-04-01 03:50:09 -06:00
parent 40f361cf91
commit e4359e8093
7 changed files with 24 additions and 21 deletions

View File

@@ -83,9 +83,9 @@ import * as babelParser from "prettier/parser-babel"
import * as estreeParser from "prettier/plugins/estree"
import Editor from "./Editor.vue"
import Toolbar from "./Toolbar.vue"
import { html, css, js, tab, size, reset } from "../store/editors"
import { taskId } from "../store/task"
import { Submission } from "../api"
import { html, css, js, tab, size, reset } from "../../store/editors"
import { taskId } from "../../store/task"
import { Submission } from "../../api"
import { NCode, useDialog, useMessage } from "naive-ui"
import { h, ref } from "vue"

View File

@@ -36,8 +36,8 @@
import { watchDebounced } from "@vueuse/core"
import { computed, onMounted, useTemplateRef } from "vue"
import { useRouter } from "vue-router"
import { Submission } from "../api"
import { submission } from "../store/submission"
import { Submission } from "../../api"
import { submission } from "../../store/submission"
import { useMessage } from "naive-ui"
import copy from "copy-text-to-clipboard"

View File

@@ -29,15 +29,15 @@
<script lang="ts" setup>
import { computed, h } from "vue"
import { Icon } from "@iconify/vue"
import { authed, roleNormal, roleSuper, user } from "../store/user"
import { loginModal } from "../store/modal"
import { show, panelSize } from "../store/panel"
import { step } from "../store/tutorial"
import { taskId } from "../store/task"
import { Account } from "../api"
import { Role } from "../utils/type"
import { router } from "../router"
import { ADMIN_URL } from "../utils/const"
import { authed, roleNormal, roleSuper, user } from "../../store/user"
import { loginModal } from "../../store/modal"
import { show, panelSize } from "../../store/panel"
import { step } from "../../store/tutorial"
import { taskId } from "../../store/task"
import { Account } from "../../api"
import { Role } from "../../utils/type"
import { router } from "../../router"
import { ADMIN_URL } from "../../utils/const"
const props = defineProps<{
submitLoading: boolean