update
This commit is contained in:
540
package-lock.json
generated
540
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -21,7 +21,7 @@
|
|||||||
"naive-ui": "^2.38.2",
|
"naive-ui": "^2.38.2",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
"query-string": "^9.0.0",
|
"query-string": "^9.0.0",
|
||||||
"vue": "^3.4.30",
|
"vue": "^3.4.31",
|
||||||
"vue-codemirror": "^6.1.1"
|
"vue-codemirror": "^6.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -30,10 +30,10 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.4.1",
|
"@vitejs/plugin-legacy": "^5.4.1",
|
||||||
"@vitejs/plugin-vue": "^5.0.5",
|
"@vitejs/plugin-vue": "^5.0.5",
|
||||||
"prettier": "^3.3.2",
|
"prettier": "^3.3.2",
|
||||||
"prettier-plugin-organize-imports": "^3.2.4",
|
"prettier-plugin-organize-imports": "^4.0.0",
|
||||||
"terser": "^5.31.1",
|
"terser": "^5.31.1",
|
||||||
"typescript": "^5.5.2",
|
"typescript": "^5.5.3",
|
||||||
"vite": "^5.3.1",
|
"vite": "^5.3.3",
|
||||||
"vue-tsc": "^2.0.22"
|
"vue-tsc": "^2.0.24"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { zhCN, dateZhCN, darkTheme } from "naive-ui"
|
|
||||||
import { useDark } from "@vueuse/core"
|
import { useDark } from "@vueuse/core"
|
||||||
|
import { darkTheme, dateZhCN, zhCN } from "naive-ui"
|
||||||
|
import { onMounted } from "vue"
|
||||||
|
import { isDesktop } from "./composables/breakpoints"
|
||||||
|
import { init } from "./composables/code"
|
||||||
import Desktop from "./desktop/index.vue"
|
import Desktop from "./desktop/index.vue"
|
||||||
import Mobile from "./mobile/index.vue"
|
import Mobile from "./mobile/index.vue"
|
||||||
import { isDesktop } from "./composables/breakpoints"
|
|
||||||
import { onMounted } from "vue"
|
|
||||||
import { init } from "./composables/code"
|
|
||||||
|
|
||||||
const isDark = useDark()
|
const isDark = useDark()
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref, watch } from "vue"
|
|
||||||
import { useDark } from "@vueuse/core"
|
|
||||||
import { Codemirror } from "vue-codemirror"
|
|
||||||
import { cpp } from "@codemirror/lang-cpp"
|
import { cpp } from "@codemirror/lang-cpp"
|
||||||
import { python } from "@codemirror/lang-python"
|
import { python } from "@codemirror/lang-python"
|
||||||
import { EditorState } from "@codemirror/state"
|
import { EditorState } from "@codemirror/state"
|
||||||
import { EditorView } from "@codemirror/view"
|
import { EditorView } from "@codemirror/view"
|
||||||
import { LANGUAGE } from "../types"
|
import { Icon } from "@iconify/vue"
|
||||||
|
import { useDark } from "@vueuse/core"
|
||||||
|
import { computed, ref, watch } from "vue"
|
||||||
|
import { Codemirror } from "vue-codemirror"
|
||||||
import { oneDark } from "../themes/oneDark"
|
import { oneDark } from "../themes/oneDark"
|
||||||
import { smoothy } from "../themes/smoothy"
|
import { smoothy } from "../themes/smoothy"
|
||||||
import { Icon } from "@iconify/vue"
|
import { LANGUAGE } from "../types"
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
modelValue: string
|
modelValue: string
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { code } from "../composables/code"
|
|
||||||
import type { SelectOption } from "naive-ui"
|
import type { SelectOption } from "naive-ui"
|
||||||
import { h } from "vue"
|
import { h } from "vue"
|
||||||
|
import { code } from "../composables/code"
|
||||||
|
|
||||||
const LANGS = [
|
const LANGS = [
|
||||||
["python", "Python"],
|
["python", "Python"],
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import copyTextToClipboard from "copy-text-to-clipboard"
|
import copyTextToClipboard from "copy-text-to-clipboard"
|
||||||
|
import { useMessage } from "naive-ui"
|
||||||
|
import { computed } from "vue"
|
||||||
|
import CodeEditor from "../components/CodeEditor.vue"
|
||||||
|
import { analyse, analyzeError, showAnalyse } from "../composables/analyse"
|
||||||
import {
|
import {
|
||||||
|
clearInput,
|
||||||
code,
|
code,
|
||||||
size,
|
|
||||||
input,
|
input,
|
||||||
output,
|
output,
|
||||||
status,
|
|
||||||
reset,
|
reset,
|
||||||
clearInput,
|
size,
|
||||||
|
status,
|
||||||
} from "../composables/code"
|
} from "../composables/code"
|
||||||
import { showAnalyse, analyzeError, analyse } from "../composables/analyse"
|
|
||||||
import CodeEditor from "../components/CodeEditor.vue"
|
|
||||||
import { computed } from "vue"
|
|
||||||
import { useMessage } from "naive-ui"
|
|
||||||
import { Status } from "../types"
|
import { Status } from "../types"
|
||||||
|
|
||||||
const showInputClearBtn = computed(() => !!input.value)
|
const showInputClearBtn = computed(() => !!input.value)
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {
|
import {
|
||||||
files,
|
|
||||||
addFive,
|
addFive,
|
||||||
run,
|
|
||||||
download,
|
download,
|
||||||
|
files,
|
||||||
onChange,
|
onChange,
|
||||||
remove,
|
remove,
|
||||||
reset,
|
reset,
|
||||||
|
run,
|
||||||
} from "../composables/file"
|
} from "../composables/file"
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { size, run, loading, share } from "../composables/code"
|
|
||||||
import ThemeButton from "../components/ThemeButton.vue"
|
|
||||||
import SelectLanguage from "../components/SelectLanguage.vue"
|
|
||||||
import { useMessage } from "naive-ui"
|
|
||||||
import { Icon } from "@iconify/vue"
|
import { Icon } from "@iconify/vue"
|
||||||
|
import { useMessage } from "naive-ui"
|
||||||
|
import SelectLanguage from "../components/SelectLanguage.vue"
|
||||||
|
import ThemeButton from "../components/ThemeButton.vue"
|
||||||
|
import { loading, run, share, size } from "../composables/code"
|
||||||
|
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
</n-modal>
|
</n-modal>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import Header from "./Header.vue"
|
|
||||||
import Content from "./Content.vue"
|
|
||||||
import File from "./File.vue"
|
|
||||||
import { useMagicKeys, whenever } from "@vueuse/core"
|
import { useMagicKeys, whenever } from "@vueuse/core"
|
||||||
import { ref } from "vue"
|
import { ref } from "vue"
|
||||||
import { run } from "../composables/code"
|
import { run } from "../composables/code"
|
||||||
|
import Content from "./Content.vue"
|
||||||
|
import File from "./File.vue"
|
||||||
|
import Header from "./Header.vue"
|
||||||
|
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onUnmounted, computed } from "vue"
|
|
||||||
import { EditorView } from "@codemirror/view"
|
import { EditorView } from "@codemirror/view"
|
||||||
import { whenever } from "@vueuse/core"
|
import { whenever } from "@vueuse/core"
|
||||||
import { useThemeVars } from "naive-ui"
|
import { useThemeVars } from "naive-ui"
|
||||||
|
import { computed, onUnmounted } from "vue"
|
||||||
import CodeEditor from "../components/CodeEditor.vue"
|
import CodeEditor from "../components/CodeEditor.vue"
|
||||||
import ThemeButton from "../components/ThemeButton.vue"
|
|
||||||
import SelectLanguage from "../components/SelectLanguage.vue"
|
import SelectLanguage from "../components/SelectLanguage.vue"
|
||||||
import Helper from "./Helper.vue"
|
import ThemeButton from "../components/ThemeButton.vue"
|
||||||
import { code, input, output, size, status } from "../composables/code"
|
import { code, input, output, size, status } from "../composables/code"
|
||||||
import { Status } from "../types"
|
|
||||||
import { tab } from "../composables/tab"
|
|
||||||
import { Tab } from "../types"
|
|
||||||
import { insertText } from "../composables/helper"
|
import { insertText } from "../composables/helper"
|
||||||
|
import { tab } from "../composables/tab"
|
||||||
|
import { Status, Tab } from "../types"
|
||||||
|
import Helper from "./Helper.vue"
|
||||||
|
|
||||||
let codeEditor: EditorView | null = null
|
let codeEditor: EditorView | null = null
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { Icon } from "@iconify/vue"
|
||||||
|
import copyTextToClipboard from "copy-text-to-clipboard"
|
||||||
import { useMessage, type DropdownOption } from "naive-ui"
|
import { useMessage, type DropdownOption } from "naive-ui"
|
||||||
import { code, loading, reset, run, share } from "../composables/code"
|
import { code, loading, reset, run, share } from "../composables/code"
|
||||||
import { tab } from "../composables/tab"
|
import { tab } from "../composables/tab"
|
||||||
import copyTextToClipboard from "copy-text-to-clipboard"
|
|
||||||
import { Icon } from "@iconify/vue"
|
|
||||||
|
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
function switchAndRun() {
|
function switchAndRun() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { cTexts, insertText, pythonTexts } from "../composables/helper"
|
|
||||||
import { code } from "../composables/code"
|
|
||||||
import { computed } from "vue"
|
import { computed } from "vue"
|
||||||
|
import { code } from "../composables/code"
|
||||||
|
import { cTexts, insertText, pythonTexts } from "../composables/helper"
|
||||||
|
|
||||||
function insert(text: string) {
|
function insert(text: string) {
|
||||||
insertText.value = text
|
insertText.value = text
|
||||||
|
|||||||
Reference in New Issue
Block a user