This commit is contained in:
2024-01-22 17:33:01 +08:00
parent 372a23b7e7
commit 7591b065d3
7 changed files with 87 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
import { computed, reactive, ref, watch } from "vue"
import { reactive, ref, watch } from "vue"
import { Code, LANGUAGE, Cache, Status } from "../types"
import { sources } from "../templates"
import { submit } from "../api"
@@ -22,13 +22,9 @@ export const code = reactive<Code>({
})
export const input = ref(cache.input.value)
export const output = ref("")
export const status = ref(Status.NotStarted)
export const loading = ref(false)
export const size = ref(24)
export const status = ref(Status.NotStarted)
export const showStatus = computed(
() => ![Status.Accepted, Status.NotStarted].includes(status.value),
)
watch(size, (value: number) => {
cache.fontsize.value = value