update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ref } from "vue"
|
||||
import copyTextToClipboard from "copy-text-to-clipboard"
|
||||
import { Code } from "../types"
|
||||
import { Code, LANGUAGE } from "../types"
|
||||
import { sources } from "../templates"
|
||||
import { submit } from "../api"
|
||||
|
||||
@@ -21,6 +21,11 @@ export function reset() {
|
||||
output.value = ""
|
||||
}
|
||||
|
||||
export function changeLanguage(language: LANGUAGE) {
|
||||
code.value.value = sources[language]
|
||||
output.value = ""
|
||||
}
|
||||
|
||||
export async function run() {
|
||||
loading.value = true
|
||||
const cleanCode = code.value.value.trim()
|
||||
|
||||
Reference in New Issue
Block a user