Compare commits
10 Commits
aa6854b6ab
...
b763eb60cd
| Author | SHA1 | Date | |
|---|---|---|---|
| b763eb60cd | |||
| 07847d351d | |||
| e0944e50d1 | |||
| bb93d717b8 | |||
| e188cca3af | |||
| 0d824026a5 | |||
| 09328a3147 | |||
| 5240e029c5 | |||
| c09323cc8f | |||
| b91d7405fc |
4
.env
4
.env
@@ -1,4 +1,4 @@
|
||||
PUBLIC_JUDGE0API_URL=https://judge0api.xuyue.cc
|
||||
PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/api/application/embed?protocol=https&host=maxkb.xuyue.cc&token=1b7cd529423b3f36
|
||||
PUBLIC_CODEAPI_URL=https://codeapi.xuyue.cc
|
||||
PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/chat/api/embed?protocol=https&host=maxkb.xuyue.cc&token=2e801f7d6efdcc99
|
||||
PUBLIC_CODEAPI_URL=https://code.xuyue.cc/api
|
||||
PUBLIC_PYVIZ_URL=https://pyviz.xuyue.cc
|
||||
@@ -1,4 +1,4 @@
|
||||
PUBLIC_JUDGE0API_URL=https://judge0api.xuyue.cc
|
||||
PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/api/application/embed?protocol=https&host=maxkb.xuyue.cc&token=1b7cd529423b3f36
|
||||
PUBLIC_CODEAPI_URL=https://codeapi.xuyue.cc
|
||||
PUBLIC_MAXKB_URL=https://maxkb.xuyue.cc/chat/api/embed?protocol=https&host=maxkb.xuyue.cc&token=2e801f7d6efdcc99
|
||||
PUBLIC_CODEAPI_URL=https://code.xuyue.cc/api
|
||||
PUBLIC_PYVIZ_URL=https://pyviz.xuyue.cc
|
||||
10
.env.staging
10
.env.staging
@@ -1,5 +1,5 @@
|
||||
PUBLIC_JUDGE0API_URL=http://10.13.114.214:8082
|
||||
PUBLIC_MAXKB_URL=
|
||||
PUBLIC_CODEAPI_URL=http://10.13.114.214:8092
|
||||
PUBLIC_PYVIZ_URL=http://10.13.114.214:9000
|
||||
PUBLIC_ICONIFY=http://10.13.114.214:8098
|
||||
PUBLIC_JUDGE0API_URL=http://10.13.114.114:8082
|
||||
PUBLIC_MAXKB_URL=http://10.13.114.114:92/chat/api/embed?protocol=http&host=10.13.114.114:92&token=dd37457027c40b39
|
||||
PUBLIC_CODEAPI_URL=http://10.13.114.114:82/api
|
||||
PUBLIC_PYVIZ_URL=http://10.13.114.114:9000
|
||||
PUBLIC_ICONIFY_URL=http://10.13.114.114:8098
|
||||
@@ -1,2 +1 @@
|
||||
semi=false
|
||||
plugins=["prettier-plugin-organize-imports"]
|
||||
3207
package-lock.json
generated
3207
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@@ -10,30 +10,27 @@
|
||||
"fmt": "prettier --write src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/lang-cpp": "^6.0.2",
|
||||
"@codemirror/lang-python": "^6.2.0",
|
||||
"@vueuse/core": "^13.1.0",
|
||||
"axios": "^1.9.0",
|
||||
"@codemirror/lang-cpp": "^6.0.3",
|
||||
"@codemirror/lang-python": "^6.2.1",
|
||||
"@vueuse/core": "^13.7.0",
|
||||
"axios": "^1.11.0",
|
||||
"client-zip": "1.7.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"codemirror": "^6.0.2",
|
||||
"copy-text-to-clipboard": "^3.2.0",
|
||||
"fflate": "^0.8.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"naive-ui": "^2.41.0",
|
||||
"naive-ui": "^2.42.0",
|
||||
"normalize.css": "^8.0.1",
|
||||
"query-string": "^9.1.2",
|
||||
"vue": "^3.5.13",
|
||||
"query-string": "^9.2.2",
|
||||
"vue": "^3.5.19",
|
||||
"vue-codemirror": "^6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/vue": "^5.0.0",
|
||||
"@rsbuild/core": "^1.3.17",
|
||||
"@rsbuild/plugin-vue": "^1.0.7",
|
||||
"@rsbuild/core": "^1.4.15",
|
||||
"@rsbuild/plugin-vue": "^1.1.1",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@vitejs/plugin-vue": "^5.2.3",
|
||||
"prettier": "^3.5.3",
|
||||
"prettier-plugin-organize-imports": "^4.1.0",
|
||||
"typescript": "^5.8.3",
|
||||
"vite": "^6.2.2"
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,14 +21,22 @@ export function reset() {
|
||||
}))
|
||||
}
|
||||
|
||||
export function addFive() {
|
||||
files.value.push(
|
||||
...Array.from({ length: 5 }).map(() => ({
|
||||
export function add(len = 1) {
|
||||
if (len == 1) {
|
||||
files.value.push({
|
||||
in: "",
|
||||
out: "",
|
||||
error: false,
|
||||
})),
|
||||
)
|
||||
})
|
||||
} else {
|
||||
files.value.push(
|
||||
...Array.from({ length: len }).map(() => ({
|
||||
in: "",
|
||||
out: "",
|
||||
error: false,
|
||||
})),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export function remove(index: number) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import {
|
||||
addFive,
|
||||
add,
|
||||
download,
|
||||
files,
|
||||
onChange,
|
||||
@@ -13,7 +13,8 @@ import {
|
||||
<n-flex vertical>
|
||||
<n-flex>
|
||||
<n-button @click="reset">清空</n-button>
|
||||
<n-button @click="addFive">增加5个</n-button>
|
||||
<n-button @click="add(1)">增加1个</n-button>
|
||||
<n-button @click="add(5)">增加5个</n-button>
|
||||
<n-button @click="run">先运行</n-button>
|
||||
<n-button @click="download">再下载</n-button>
|
||||
</n-flex>
|
||||
|
||||
@@ -52,8 +52,8 @@ const app = createApp(App)
|
||||
app.use(naive)
|
||||
app.mount("#app")
|
||||
|
||||
if (!!import.meta.env.PUBLIC_ICONIFY) {
|
||||
if (!!import.meta.env.PUBLIC_ICONIFY_URL) {
|
||||
addAPIProvider("", {
|
||||
resources: [import.meta.env.PUBLIC_ICONIFY],
|
||||
resources: [import.meta.env.PUBLIC_ICONIFY_URL],
|
||||
})
|
||||
}
|
||||
|
||||
11
src/rsbuild-env.d.ts
vendored
Normal file
11
src/rsbuild-env.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly PUBLIC_JUDGE0API_URL: string
|
||||
readonly PUBLIC_MAXKB_URL: string
|
||||
readonly PUBLIC_CODEAPI_URL: string
|
||||
readonly PUBLIC_PYVIZ_URL: string
|
||||
readonly PUBLIC_ICONIFY_URL: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
Reference in New Issue
Block a user