add testcase panel.
This commit is contained in:
10
src/oj/store/code.ts
Normal file
10
src/oj/store/code.ts
Normal 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
13
src/oj/store/signup.ts
Normal 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 }
|
||||
})
|
||||
Reference in New Issue
Block a user