Compare commits

..

10 Commits

Author SHA1 Message Date
b763eb60cd update
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled
2025-09-05 09:18:32 +08:00
07847d351d maxkb 2025-08-22 23:46:01 +08:00
e0944e50d1 fix 2025-08-22 22:57:41 +08:00
bb93d717b8 fix 2025-08-22 22:54:04 +08:00
e188cca3af update 2025-08-22 22:29:21 +08:00
0d824026a5 update 2025-08-22 20:37:39 +08:00
09328a3147 update 2025-07-16 09:22:03 +08:00
5240e029c5 update 2025-05-13 12:01:14 +08:00
c09323cc8f update 2025-05-09 15:30:03 +08:00
b91d7405fc update 2025-05-09 10:47:29 +08:00
10 changed files with 1011 additions and 2282 deletions

4
.env
View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,2 +1 @@
semi=false
plugins=["prettier-plugin-organize-imports"]

3207
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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"
}
}

View File

@@ -21,14 +21,22 @@ export function reset() {
}))
}
export function addFive() {
export function add(len = 1) {
if (len == 1) {
files.value.push({
in: "",
out: "",
error: false,
})
} else {
files.value.push(
...Array.from({ length: 5 }).map(() => ({
...Array.from({ length: len }).map(() => ({
in: "",
out: "",
error: false,
})),
)
}
}
export function remove(index: number) {

View File

@@ -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>

View File

@@ -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
View 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
}