add testcase panel.

This commit is contained in:
2023-01-13 14:26:51 +08:00
parent 31fc880c99
commit 46fcccda35
14 changed files with 146 additions and 87 deletions

10
src/oj/store/code.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Code } from "../../utils/types"
export const useCodeStore = defineStore("code", () => {
const code = reactive<Code>({
value: "",
language: "C",
})
return { code }
})

13
src/oj/store/signup.ts Normal file
View File

@@ -0,0 +1,13 @@
export const useSignupStore = defineStore("signup", () => {
const [visible] = useToggle()
function show() {
visible.value = true
}
function hide() {
visible.value = false
}
return { visible, show, hide }
})