Compare commits

..

10 Commits

Author SHA1 Message Date
zyb
6d6a6cd03a Merge pull request 'feature/login-screen' (#14) from feature/login-screen into master
Reviewed-on: #14
2025-12-10 21:15:20 +08:00
zyb
95bf8141f0 Merge branch 'master' into feature/login-screen 2025-12-10 21:14:16 +08:00
WIN-5KTJHN9GRFL\LENOVO
c8905622e2 红色警戒3工具平台 2025-12-10 21:01:32 +08:00
WIN-5KTJHN9GRFL\LENOVO
c065514679 版本信息页面 2025-11-20 13:25:58 +08:00
WIN-5KTJHN9GRFL\LENOVO
ef4272c952 版本信息页面 2025-11-12 09:56:06 +08:00
WIN-5KTJHN9GRFL\LENOVO
2af7d67b26 版本信息页面 2025-11-12 09:53:04 +08:00
WIN-5KTJHN9GRFL\LENOVO
cd220e46b4 版本信息页面 2025-11-12 09:07:34 +08:00
WIN-5KTJHN9GRFL\LENOVO
e67cb1c4fb 版本信息页面 2025-11-12 08:54:17 +08:00
zyb
b7eb16fb2f Merge pull request 'feature/login-screen' (#11) from feature/login-screen into master
Reviewed-on: #11
2025-07-19 08:17:11 +08:00
zyb
278d028e36 更新 README.md 2025-07-19 08:16:48 +08:00
29 changed files with 1972 additions and 15603 deletions

View File

@@ -1,16 +1,18 @@
#DCF #DCF
# 中台前端功能设计文档 # 中台前端功能设计文档
0.未来功能 0.未来功能 <br>
添加git可视化分析内容 添加git可视化分析内容
- 可视化分析: - 可视化分析:
- 1.根据git链接一键下载按钮、一键分析文件按钮。 - 1.根据git链接一键下载按钮、一键分析文件按钮。
- 2.临时修改git文件内容、提交鉴权 - 2.临时修改git文件内容、提交鉴权
- 3.sooon - 3.sooon
添加mod教程功能 <br>
添加mod教程功能
- 根据mod教程提供对应的源码参考 - 根据mod教程提供对应的源码参考
- 支持上传和插入自定义代码片段 - 支持上传和插入自定义代码片段
- 有一个教程列表,可以按照更新时间/浏览量来排序教程顺序 - 有一个教程列表,可以按照更新时间/浏览量来排序教程顺序
- 用户可以收藏教程 - 用户可以收藏教程
<br>
添加赛事新赛制 添加赛事新赛制
- 双败 - 双败
- 积分 - 积分

View File

@@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico"> <link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<title>红色警戒3数据分析中心</title> <title>红色警戒3工具平台</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

20
node_modules/.package-lock.json generated vendored
View File

@@ -1,6 +1,6 @@
{ {
"name": "untitled2", "name": "untitled2",
"version": "0.0.0", "version": "V.1.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
@@ -54,6 +54,7 @@
"resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.27.1.tgz", "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.27.1.tgz",
"integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"@ampproject/remapping": "^2.2.0", "@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.27.1", "@babel/code-frame": "^7.27.1",
@@ -839,6 +840,7 @@
"url": "https://github.com/sponsors/ai" "url": "https://github.com/sponsors/ai"
} }
], ],
"peer": true,
"dependencies": { "dependencies": {
"caniuse-lite": "^1.0.30001716", "caniuse-lite": "^1.0.30001716",
"electron-to-chromium": "^1.5.149", "electron-to-chromium": "^1.5.149",
@@ -1286,6 +1288,7 @@
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz",
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
"peer": true,
"engines": { "engines": {
"node": ">=12" "node": ">=12"
} }
@@ -2046,6 +2049,18 @@
"@jridgewell/sourcemap-codec": "^1.5.0" "@jridgewell/sourcemap-codec": "^1.5.0"
} }
}, },
"node_modules/marked": {
"version": "17.0.0",
"resolved": "https://registry.npmjs.org/marked/-/marked-17.0.0.tgz",
"integrity": "sha512-KkDYEWEEiYJw/KC+DVm1zzlpMQSMIu6YRltkcCvwheCp8HWPXCk9JwOmHJKBlGfzcpzcIt6x3sMnTsRm/51oDg==",
"license": "MIT",
"bin": {
"marked": "bin/marked.js"
},
"engines": {
"node": ">= 20"
}
},
"node_modules/math-intrinsics": { "node_modules/math-intrinsics": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -2308,6 +2323,7 @@
"resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.40.1.tgz", "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.40.1.tgz",
"integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==", "integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"@types/estree": "1.0.7" "@types/estree": "1.0.7"
}, },
@@ -2576,6 +2592,7 @@
"resolved": "https://registry.npmmirror.com/vite/-/vite-6.3.4.tgz", "resolved": "https://registry.npmmirror.com/vite/-/vite-6.3.4.tgz",
"integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==", "integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",
"fdir": "^6.4.4", "fdir": "^6.4.4",
@@ -2733,6 +2750,7 @@
"version": "3.5.13", "version": "3.5.13",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz", "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz",
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
"peer": true,
"dependencies": { "dependencies": {
"@vue/compiler-dom": "3.5.13", "@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13", "@vue/compiler-sfc": "3.5.13",

View File

@@ -1,58 +1,64 @@
{ {
"hash": "caa31cd8", "hash": "f6d37eef",
"configHash": "8bd3ff55", "configHash": "4eee8ee7",
"lockfileHash": "296e7a14", "lockfileHash": "17b35e94",
"browserHash": "748422e9", "browserHash": "38da36af",
"optimized": { "optimized": {
"axios": { "axios": {
"src": "../../axios/index.js", "src": "../../axios/index.js",
"file": "axios.js", "file": "axios.js",
"fileHash": "17dc0739", "fileHash": "a5a07628",
"needsInterop": false
},
"jszip": {
"src": "../../jszip/dist/jszip.min.js",
"file": "jszip.js",
"fileHash": "73a56b11",
"needsInterop": true
},
"mitt": {
"src": "../../mitt/dist/mitt.mjs",
"file": "mitt.js",
"fileHash": "72a77428",
"needsInterop": false
},
"vue": {
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "dd9d6977",
"needsInterop": false
},
"vue-router": {
"src": "../../vue-router/dist/vue-router.mjs",
"file": "vue-router.js",
"fileHash": "1b493d5a",
"needsInterop": false
},
"xlsx": {
"src": "../../xlsx/xlsx.mjs",
"file": "xlsx.js",
"fileHash": "e65d0089",
"needsInterop": false "needsInterop": false
}, },
"d3": { "d3": {
"src": "../../d3/src/index.js", "src": "../../d3/src/index.js",
"file": "d3.js", "file": "d3.js",
"fileHash": "89f27bc8", "fileHash": "828cdd5e",
"needsInterop": false
},
"jszip": {
"src": "../../jszip/dist/jszip.min.js",
"file": "jszip.js",
"fileHash": "c0e06a93",
"needsInterop": true
},
"mitt": {
"src": "../../mitt/dist/mitt.mjs",
"file": "mitt.js",
"fileHash": "8e22dbfe",
"needsInterop": false
},
"vue": {
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "7a7fc2f0",
"needsInterop": false
},
"vue-router": {
"src": "../../vue-router/dist/vue-router.mjs",
"file": "vue-router.js",
"fileHash": "58c64081",
"needsInterop": false
},
"xlsx": {
"src": "../../xlsx/xlsx.mjs",
"file": "xlsx.js",
"fileHash": "d95fb4c8",
"needsInterop": false
},
"marked": {
"src": "../../marked/lib/marked.esm.js",
"file": "marked.js",
"fileHash": "a5f98500",
"needsInterop": false "needsInterop": false
} }
}, },
"chunks": { "chunks": {
"chunk-U3LI7FBV": { "chunk-YBGSFZ7G": {
"file": "chunk-U3LI7FBV.js" "file": "chunk-YBGSFZ7G.js"
}, },
"chunk-5FUTL2UF": { "chunk-FM7WUVZV": {
"file": "chunk-5FUTL2UF.js" "file": "chunk-FM7WUVZV.js"
} }
} }
} }

2
node_modules/.vite/deps/axios.js generated vendored
View File

@@ -1,6 +1,6 @@
import { import {
__export __export
} from "./chunk-5FUTL2UF.js"; } from "./chunk-FM7WUVZV.js";
// node_modules/axios/lib/helpers/bind.js // node_modules/axios/lib/helpers/bind.js
function bind(fn, thisArg) { function bind(fn, thisArg) {

File diff suppressed because one or more lines are too long

View File

@@ -1,21 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __commonJS = (cb, mod) => function __require2() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
export {
__require,
__commonJS,
__export
};

View File

@@ -1,7 +0,0 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

2
node_modules/.vite/deps/jszip.js generated vendored
View File

@@ -1,7 +1,7 @@
import { import {
__commonJS, __commonJS,
__require __require
} from "./chunk-5FUTL2UF.js"; } from "./chunk-FM7WUVZV.js";
// node_modules/jszip/dist/jszip.min.js // node_modules/jszip/dist/jszip.min.js
var require_jszip_min = __commonJS({ var require_jszip_min = __commonJS({

File diff suppressed because one or more lines are too long

2
node_modules/.vite/deps/mitt.js generated vendored
View File

@@ -1,4 +1,4 @@
import "./chunk-5FUTL2UF.js"; import "./chunk-FM7WUVZV.js";
// node_modules/mitt/dist/mitt.mjs // node_modules/mitt/dist/mitt.mjs
function mitt_default(n) { function mitt_default(n) {

View File

@@ -16,8 +16,8 @@ import {
unref, unref,
watch, watch,
watchEffect watchEffect
} from "./chunk-U3LI7FBV.js"; } from "./chunk-YBGSFZ7G.js";
import "./chunk-5FUTL2UF.js"; import "./chunk-FM7WUVZV.js";
// node_modules/@vue/devtools-api/lib/esm/env.js // node_modules/@vue/devtools-api/lib/esm/env.js
function getDevtoolsGlobalHook() { function getDevtoolsGlobalHook() {

File diff suppressed because one or more lines are too long

4
node_modules/.vite/deps/vue.js generated vendored
View File

@@ -168,8 +168,8 @@ import {
withMemo, withMemo,
withModifiers, withModifiers,
withScopeId withScopeId
} from "./chunk-U3LI7FBV.js"; } from "./chunk-YBGSFZ7G.js";
import "./chunk-5FUTL2UF.js"; import "./chunk-FM7WUVZV.js";
export { export {
BaseTransition, BaseTransition,
BaseTransitionPropsValidators, BaseTransitionPropsValidators,

2
node_modules/.vite/deps/xlsx.js generated vendored
View File

@@ -1,4 +1,4 @@
import "./chunk-5FUTL2UF.js"; import "./chunk-FM7WUVZV.js";
// node_modules/xlsx/xlsx.mjs // node_modules/xlsx/xlsx.mjs
var XLSX = {}; var XLSX = {};

File diff suppressed because one or more lines are too long

23
package-lock.json generated
View File

@@ -1,16 +1,17 @@
{ {
"name": "untitled2", "name": "untitled2",
"version": "0.0.0", "version": "V.1.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "untitled2", "name": "untitled2",
"version": "0.0.0", "version": "V.1.0.0",
"dependencies": { "dependencies": {
"axios": "^1.9.0", "axios": "^1.9.0",
"d3": "^7.9.0", "d3": "^7.9.0",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"marked": "^17.0.0",
"process": "^0.11.10", "process": "^0.11.10",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-router": "^4.5.1", "vue-router": "^4.5.1",
@@ -73,6 +74,7 @@
"resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.27.1.tgz", "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.27.1.tgz",
"integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"@ampproject/remapping": "^2.2.0", "@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.27.1", "@babel/code-frame": "^7.27.1",
@@ -1489,6 +1491,7 @@
"url": "https://github.com/sponsors/ai" "url": "https://github.com/sponsors/ai"
} }
], ],
"peer": true,
"dependencies": { "dependencies": {
"caniuse-lite": "^1.0.30001716", "caniuse-lite": "^1.0.30001716",
"electron-to-chromium": "^1.5.149", "electron-to-chromium": "^1.5.149",
@@ -1936,6 +1939,7 @@
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz", "resolved": "https://registry.npmmirror.com/d3-selection/-/d3-selection-3.0.0.tgz",
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
"peer": true,
"engines": { "engines": {
"node": ">=12" "node": ">=12"
} }
@@ -2710,6 +2714,18 @@
"@jridgewell/sourcemap-codec": "^1.5.0" "@jridgewell/sourcemap-codec": "^1.5.0"
} }
}, },
"node_modules/marked": {
"version": "17.0.0",
"resolved": "https://registry.npmjs.org/marked/-/marked-17.0.0.tgz",
"integrity": "sha512-KkDYEWEEiYJw/KC+DVm1zzlpMQSMIu6YRltkcCvwheCp8HWPXCk9JwOmHJKBlGfzcpzcIt6x3sMnTsRm/51oDg==",
"license": "MIT",
"bin": {
"marked": "bin/marked.js"
},
"engines": {
"node": ">= 20"
}
},
"node_modules/math-intrinsics": { "node_modules/math-intrinsics": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -2972,6 +2988,7 @@
"resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.40.1.tgz", "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.40.1.tgz",
"integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==", "integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"@types/estree": "1.0.7" "@types/estree": "1.0.7"
}, },
@@ -3240,6 +3257,7 @@
"resolved": "https://registry.npmmirror.com/vite/-/vite-6.3.4.tgz", "resolved": "https://registry.npmmirror.com/vite/-/vite-6.3.4.tgz",
"integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==", "integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",
"fdir": "^6.4.4", "fdir": "^6.4.4",
@@ -3397,6 +3415,7 @@
"version": "3.5.13", "version": "3.5.13",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz", "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz",
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
"peer": true,
"dependencies": { "dependencies": {
"@vue/compiler-dom": "3.5.13", "@vue/compiler-dom": "3.5.13",
"@vue/compiler-sfc": "3.5.13", "@vue/compiler-sfc": "3.5.13",

View File

@@ -1,6 +1,6 @@
{ {
"name": "untitled2", "name": "untitled2",
"version": "0.0.0", "version": "V.1.0.1",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -12,6 +12,7 @@
"axios": "^1.9.0", "axios": "^1.9.0",
"d3": "^7.9.0", "d3": "^7.9.0",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"marked": "^17.0.0",
"process": "^0.11.10", "process": "^0.11.10",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-router": "^4.5.1", "vue-router": "^4.5.1",

16
src/api/info.js Normal file
View File

@@ -0,0 +1,16 @@
import axiosInstance from './axiosConfig'
/**
* 获取后端版本信息
* GET /info
* 基于 axiosInstance 的 baseURL`http://zybdatasupport.online:8000`
* 返回后端提供的原始 JSON 数据
*/
export const getBackendInfo = async () => {
try {
const { data } = await axiosInstance.get('/info')
return data
} catch (error) {
throw error
}
}

19
src/assets/version.md Normal file
View File

@@ -0,0 +1,19 @@
### 后端
## V.2025.07.30.1
1、修改服务器地址
------
### 前端
## v.1.0.1
1、谢谢你gemini3 pro改了下赛事样式
## v.1.0.0
1、添加版本信息页面
2、修改服务器地址

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -111,6 +111,11 @@ const routes = [
name: 'TerrainGenerate', name: 'TerrainGenerate',
component: () => import('@/views/index/TerrainGenerate.vue'), component: () => import('@/views/index/TerrainGenerate.vue'),
// meta: { requiredPrivilege: ['lv-admin','lv-mod','lv-map','lv-competitor'] } // meta: { requiredPrivilege: ['lv-admin','lv-mod','lv-map','lv-competitor'] }
},
{
path: 'version',
name: 'VersionInfo',
component: () => import('@/views/index/VersionInfo.vue')
} }
] ]
}, },

View File

@@ -34,6 +34,7 @@
</div> </div>
<select v-model="filterStatus" @change="handleFilter" class="filter-select"> <select v-model="filterStatus" @change="handleFilter" class="filter-select">
<option value="all">全部状态</option> <option value="all">全部状态</option>
<option value="prepare">筹备中</option>
<option value="ongoing">进行中</option> <option value="ongoing">进行中</option>
<option value="finished">已结束</option> <option value="finished">已结束</option>
</select> </select>
@@ -49,57 +50,60 @@
</button> </button>
</div> </div>
<div class="table-container" :class="{ 'loading': isLoading }">
<table class="competition-table">
<thead>
<tr>
<th>序号</th>
<th>赛程名称</th>
<th>开始时间</th>
<th>结束时间</th>
<th>状态</th>
<th>组织者</th>
<th>QQ号</th>
<th>赛制类型</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr v-for="(competition, index) in filteredCompetitions"
:key="index"
class="competition-row"
@click="handleView(competition)">
<td>{{ index + 1 }}</td>
<td class="competition-name">{{ competition.name }}</td>
<td>{{ formatDate(competition.start_time) }}</td>
<td>{{ formatDate(competition.end_time) }}</td>
<td>
<span :class="['status-tag', competition.status]">
{{ competition.status === 'prepare' ? '筹备中' :
competition.status === 'starting' ? '进行中' : '已结束' }}
</span>
</td>
<td>{{ competition.organizer }}</td>
<td>{{ competition.qq_code }}</td>
<td>{{ competition.format === 'single' ? '单败淘汰' :
competition.format === 'double' ? '双败淘汰' : '积分赛' }}</td>
<td class="action-cell">
<button class="action-btn view" @click.stop="handleSignUp(competition)" :disabled="competition.status === 'finish'">
报名
</button>
</td>
</tr>
</tbody>
</table>
<!-- 加载状态 --> <!-- 加载状态 -->
<div v-if="isLoading" class="loading-overlay"> <div v-if="isLoading" class="loading-container">
<i class="fas fa-spinner fa-spin"></i> <div class="loading-spinner"></div>
<span>加载中...</span> <p>正在加载赛程数据...</p>
</div>
<!-- 赛程卡片网格 -->
<div v-else class="competition-grid">
<div
v-for="(competition, index) in filteredCompetitions"
:key="index"
class="competition-card"
@click="handleView(competition)"
>
<div class="card-header">
<div class="status-badge" :class="competition.status">
{{ getStatusText(competition.status) }}
</div>
<div class="format-badge">{{ competition.format === 'single' ? '单败' : competition.format === 'double' ? '双败' : '积分' }}</div>
</div>
<div class="card-body">
<h3 class="competition-title">{{ competition.name }}</h3>
<div class="info-row">
<i class="fas fa-user-tie"></i>
<span>主办方{{ competition.organizer }}</span>
</div>
<div class="info-row">
<i class="fab fa-qq"></i>
<span>QQ{{ competition.qq_code }}</span>
</div>
<div class="info-row time-row">
<i class="far fa-calendar-alt"></i>
<span>{{ formatDate(competition.start_time) }} - {{ formatDate(competition.end_time) }}</span>
</div>
</div>
<div class="card-footer">
<button
class="action-btn view"
@click.stop="handleSignUp(competition)"
:disabled="competition.status === 'finish'"
:class="{ 'disabled': competition.status === 'finish' }"
>
{{ competition.status === 'finish' ? '已结束' : '立即报名' }}
</button>
</div>
</div> </div>
<!-- 空状态显示 --> <!-- 空状态显示 -->
<div v-else-if="filteredCompetitions.length === 0" class="empty-state"> <div v-if="filteredCompetitions.length === 0" class="empty-state">
<i class="fas fa-calendar-times"></i> <i class="fas fa-calendar-times"></i>
<p>暂无赛程信息</p> <p>暂无赛程信息</p>
</div> </div>
@@ -135,9 +139,13 @@ const filteredCompetitions = computed(() => {
// 状态过滤 // 状态过滤
if (filterStatus.value !== 'all') { if (filterStatus.value !== 'all') {
result = result.filter(comp => if (filterStatus.value === 'ongoing') {
filterStatus.value === 'ongoing' ? comp.status === 'starting' : comp.status === 'finish' result = result.filter(comp => comp.status === 'starting')
) } else if (filterStatus.value === 'finished') {
result = result.filter(comp => comp.status === 'finish')
} else if (filterStatus.value === 'prepare') {
result = result.filter(comp => comp.status === 'prepare')
}
} }
return result return result
@@ -145,9 +153,19 @@ const filteredCompetitions = computed(() => {
// 方法 // 方法
const formatDate = (date) => { const formatDate = (date) => {
if (!date) return ''
return date.replace(/\//g, '-') return date.replace(/\//g, '-')
} }
const getStatusText = (status) => {
const map = {
'prepare': '筹备中',
'starting': '进行中',
'finish': '已结束'
}
return map[status] || status
}
const handleSearch = () => { const handleSearch = () => {
// 搜索时重置过滤 // 搜索时重置过滤
} }
@@ -213,60 +231,74 @@ refreshCompetitions()
<style scoped> <style scoped>
.competition-page { .competition-page {
padding: 16px; padding: 24px;
max-width: 1400px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
min-height: 100vh;
background-color: #f5f7fa;
} }
.page-header { .page-header {
margin-bottom: 20px; margin-bottom: 24px;
text-align: center;
} }
.page-header h1 { .page-header h1 {
font-size: 22px; font-size: 28px;
color: #1a237e; color: #1a237e;
margin: 0 0 6px 0; margin: 0 0 8px 0;
font-weight: 600;
} }
.header-subtitle { .header-subtitle {
color: #666; color: #666;
font-size: 13px; font-size: 14px;
} }
.action-bar { .action-bar {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 16px; margin-bottom: 24px;
flex-wrap: wrap; flex-wrap: wrap;
gap: 12px; gap: 16px;
background: white;
padding: 16px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
} }
.left-actions, .left-actions,
.right-actions { .right-actions {
display: flex; display: flex;
gap: 10px; gap: 12px;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
.search-box { .search-box {
position: relative; position: relative;
flex-grow: 1; width: 240px;
} }
.search-box input { .search-box input {
padding: 6px 10px 6px 28px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
width: 100%; width: 100%;
max-width: 220px; padding: 8px 12px 8px 32px;
border: 1px solid #e0e0e0;
border-radius: 6px;
font-size: 14px;
transition: all 0.3s;
}
.search-box input:focus {
border-color: #409EFF;
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
outline: none;
} }
.search-icon { .search-icon {
position: absolute; position: absolute;
left: 8px; left: 10px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
color: #999; color: #999;
@@ -274,215 +306,259 @@ refreshCompetitions()
} }
.filter-select { .filter-select {
padding: 6px 10px; padding: 8px 12px;
border: 1px solid #ddd; border: 1px solid #e0e0e0;
border-radius: 4px; border-radius: 6px;
font-size: 13px; font-size: 14px;
background: white; background: white;
min-width: 100px; min-width: 120px;
cursor: pointer; cursor: pointer;
transition: all 0.3s;
}
.filter-select:focus {
border-color: #409EFF;
outline: none;
} }
.btn-common { .btn-common {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 5px; gap: 6px;
padding: 6px 12px; padding: 8px 16px;
font-size: 13px; font-size: 14px;
font-weight: 500; font-weight: 500;
border-radius: 4px; border-radius: 6px;
border: 1px solid #b6d2ff;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
border: none;
} }
.btn-gradient { .btn-gradient {
background: linear-gradient(90deg, #71eaeb 0%, #416bdf 100%); background: linear-gradient(135deg, #71eaeb 0%, #416bdf 100%);
color: white; color: white;
border: none; box-shadow: 0 4px 12px rgba(65, 107, 223, 0.2);
} }
.btn-gradient:hover { .btn-gradient:hover {
background: linear-gradient(90deg, #416bdf 0%, #71eaeb 100%); background: linear-gradient(135deg, #416bdf 0%, #71eaeb 100%);
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(65, 107, 223, 0.3);
} }
.btn-light { .btn-light {
background: white; background: #f0f7ff;
color: #2563eb; color: #2563eb;
border: 1px solid #dbeafe;
} }
.btn-light:hover { .btn-light:hover {
background: #f5f7fa; background: #dbeafe;
border-color: #2563eb; border-color: #2563eb;
} }
.table-container { /* 网格布局 */
.competition-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
}
.competition-card {
background: white; background: white;
border-radius: 8px; border-radius: 12px;
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
overflow-x: auto; overflow: hidden;
margin-bottom: 20px; transition: all 0.3s ease;
position: relative; cursor: pointer;
min-height: 200px; border: 1px solid #f0f0f0;
display: flex;
flex-direction: column;
} }
.competition-table { .competition-card:hover {
width: 100%; transform: translateY(-4px);
min-width: 800px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
border-collapse: collapse; border-color: #e0e0e0;
} }
.competition-table th, .card-header {
.competition-table td { padding: 16px;
padding: 12px; display: flex;
text-align: left; justify-content: space-between;
border-bottom: 1px solid #f0f0f0; align-items: center;
border-bottom: 1px solid #f5f5f5;
background: #fafafa;
}
.status-badge {
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
}
.status-badge.prepare { background-color: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.status-badge.starting { background-color: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-badge.finish { background-color: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }
.format-badge {
font-size: 12px;
color: #666;
background: #e6f7ff;
padding: 2px 8px;
border-radius: 10px;
border: 1px solid #bae7ff;
}
.card-body {
padding: 20px;
flex: 1;
}
.competition-title {
margin: 0 0 16px 0;
font-size: 18px;
font-weight: 600;
color: #1a237e;
line-height: 1.4;
}
.info-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
color: #666;
font-size: 14px;
}
.info-row i {
width: 16px;
text-align: center;
color: #909399;
}
.time-row {
margin-top: 12px;
padding-top: 12px;
border-top: 1px dashed #f0f0f0;
font-size: 13px; font-size: 13px;
} }
.competition-table th { .card-footer {
background-color: #f8f9fa; padding: 16px;
font-weight: 600; border-top: 1px solid #f5f5f5;
color: #1a237e; text-align: center;
}
.competition-row {
cursor: pointer;
transition: all 0.3s ease;
}
.competition-row:hover {
background-color: #f0f7ff;
transform: translateY(-1px);
}
.competition-name {
font-weight: 500;
color: #1a237e;
}
.status-tag {
display: inline-block;
padding: 2px 6px;
border-radius: 3px;
font-size: 11px;
font-weight: 500;
}
.status-tag.prepare { background-color: #e6a23c; color: #fff; }
.status-tag.starting { background-color: #67c23a; color: #fff; }
.status-tag.finish { background-color: #909399; color: #fff; }
.action-cell {
display: flex;
gap: 6px;
} }
.action-btn { .action-btn {
padding: 5px 10px; width: 100%;
border-radius: 4px; padding: 10px;
border-radius: 6px;
background: linear-gradient(90deg, #71eaeb 0%, #416bdf 100%); background: linear-gradient(90deg, #71eaeb 0%, #416bdf 100%);
color: white; color: white;
font-size: 13px; font-size: 14px;
font-weight: 500;
border: none; border: none;
cursor: pointer; cursor: pointer;
transition: all 0.3s;
}
.action-btn:hover {
opacity: 0.9;
}
.action-btn.disabled {
background: #f5f5f5;
color: #999;
cursor: not-allowed;
background-image: none;
} }
.empty-state { .empty-state {
padding: 30px; grid-column: 1 / -1;
padding: 60px;
text-align: center; text-align: center;
font-size: 14px;
color: #909399; color: #909399;
background: white;
border-radius: 12px;
}
.empty-state i {
font-size: 48px;
margin-bottom: 16px;
color: #d9d9d9;
}
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px;
color: #409EFF;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid #f3f3f3;
border-top: 3px solid #409EFF;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 16px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
} }
.error-message { .error-message {
background-color: #fef0f0; background-color: #fef0f0;
color: #f56c6c; color: #f56c6c;
padding: 10px 14px; padding: 12px 16px;
border-radius: 4px; border-radius: 8px;
display: flex; display: flex;
gap: 8px; align-items: center;
font-size: 13px; gap: 10px;
margin-bottom: 20px;
border: 1px solid #fde2e2;
} }
.retry-btn { .retry-btn {
margin-left: auto; margin-left: auto;
padding: 4px 10px; padding: 4px 12px;
font-size: 12px; font-size: 12px;
background: #f56c6c; background: #f56c6c;
color: white; color: white;
border: none; border: none;
border-radius: 3px; border-radius: 4px;
cursor: pointer; cursor: pointer;
} }
.loading-overlay {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(255, 255, 255, 0.8);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
color: #409EFF;
font-size: 14px;
}
.table-container.loading {
opacity: 0.6;
pointer-events: none;
}
.btn-common:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.action-btn:disabled {
background: #e0e0e0 !important;
color: #b0b0b0 !important;
cursor: not-allowed;
border: none;
opacity: 1;
}
@media (max-width: 768px) { @media (max-width: 768px) {
.competition-page { .competition-page {
padding: 12px; padding: 16px;
} }
.action-bar { .action-bar {
flex-direction: column; flex-direction: column;
gap: 10px;
align-items: stretch; align-items: stretch;
} }
.left-actions, .right-actions { .left-actions, .right-actions {
flex-direction: column; flex-direction: column;
gap: 8px;
width: 100%; width: 100%;
} }
.table-container { .search-box {
margin: 0 -12px;
border-radius: 0;
}
.competition-table th, .competition-table td {
padding: 10px;
font-size: 12px;
}
.search-box input, .filter-select {
width: 100%; width: 100%;
max-width: 100%;
} }
.status-tag { .filter-select {
font-size: 10px; width: 100%;
padding: 2px 5px;
} }
} }
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@@ -324,7 +324,7 @@ function handlePasswordChangeError(errorMessage) {
<div class="app"> <div class="app">
<nav class="navbar"> <nav class="navbar">
<div class="nav-container"> <div class="nav-container">
<a href="/" class="nav-brand">红色警戒3数据分析中心</a> <a href="/" class="nav-brand">红色警戒3工具平台</a>
<!-- <div class="nav-brand">红色警戒3数据分析中心</div>--> <!-- <div class="nav-brand">红色警戒3数据分析中心</div>-->
<button class="mobile-menu-toggle" @click="toggleMobileMenu"> <button class="mobile-menu-toggle" @click="toggleMobileMenu">
<i class="fas fa-bars"></i> <i class="fas fa-bars"></i>
@@ -373,8 +373,12 @@ function handlePasswordChangeError(errorMessage) {
<router-link to="/demands" class="nav-link" @click.prevent="handleNavClick('/demands')">办事大厅</router-link> <router-link to="/demands" class="nav-link" @click.prevent="handleNavClick('/demands')">办事大厅</router-link>
</div> </div>
</div> </div>
<!-- 版本更新 -->
<div class="nav-dropdown">
<router-link to="/version" class="nav-link">版本信息</router-link>
</div> </div>
</div>
<div class="nav-right" :class="{ active: showMobileMenu }"> <div class="nav-right" :class="{ active: showMobileMenu }">
<router-link v-if="!isLoggedIn" to="/backend/login" class="nav-link login-btn"> <router-link v-if="!isLoggedIn" to="/backend/login" class="nav-link login-btn">
<i class="fas fa-user"></i> <i class="fas fa-user"></i>
@@ -414,7 +418,7 @@ function handlePasswordChangeError(errorMessage) {
<div class="footer-top"> <div class="footer-top">
<div class="footer-brand"> <div class="footer-brand">
<img src="../assets/logo.png" class="footer-logo"> <img src="../assets/logo.png" class="footer-logo">
<span class="footer-title">红色警戒3数据分析中心</span> <span class="footer-title">红色警戒3工具平台</span>
</div> </div>
</div> </div>

View File

@@ -0,0 +1,103 @@
<template>
<div class="version-page">
<div class="page-header">
<h1>版本信息</h1>
<div class="header-subtitle">
<span>当前前端应用版本{{ appVersion }}</span>
<br />
<span>当前后端应用版本V.{{ backendVersion }}</span>
<h3>联系邮箱</h3>
<ul>
<li v-for="(email, name) in contactEmails" :key="name">
{{ name }}: {{ email }}
</li>
<li>kuangisa: 1549184870@qq.com</li>
</ul>
</div>
</div>
<h2>更新日志</h2>
<div class="md-content" v-html="mdHtml"></div>
</div>
</template>
<script setup>
import pkg from '../../../package.json'
import { marked } from 'marked'
import versionMd from '@/assets/version.md?raw'
import { getBackendInfo } from '@/api/info'
import { ref, onMounted } from 'vue'
const backendVersion = ref('')
const contactEmails = ref({})
onMounted(async () => {
try {
const info = await getBackendInfo()
backendVersion.value = info.version || '未知'
if (info.contact && info.contact.email) {
try {
const emailString = info.contact.email.replace(/'/g, '"')
contactEmails.value = JSON.parse(emailString)
} catch (e) {
contactEmails.value = {}
}
}
} catch (_) {
backendVersion.value = '获取失败'
}
})
const appVersion = pkg.version || '未知'
const mdHtml = marked.parse(versionMd || '')
</script>
<style scoped>
.page-header {
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 1px solid #eee;
}
.page-header h1 {
margin-bottom: 16px;
}
.header-subtitle {
color: #666;
font-size: 14px;
}
.header-subtitle span {
display: inline-block;
margin-bottom: 8px;
}
.header-subtitle h3 {
margin-top: 16px;
margin-bottom: 8px;
font-size: 16px;
color: #333;
}
.header-subtitle ul {
padding-left: 0;
list-style: none;
}
.header-subtitle li {
margin-bottom: 4px;
}
.md-content {
line-height: 1.8;
}
.md-content h1, .md-content h2, .md-content h3 {
margin: 12px 0 8px;
}
.md-content p {
margin: 8px 0;
}
.md-content ul, .md-content ol {
padding-left: 20px;
}
</style>