Skip to content

Commit def10f7

Browse files
Merge pull request #1 from Mr-Python-in-China/develop
Release 0.0.0
2 parents ad36baa + ec48b6a commit def10f7

28 files changed

+8730
-1750
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
browser_mock/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "luogu-api-docs"]
2+
path = luogu-api-docs
3+
url = https://github.com/0f-0b/luogu-api-docs.git

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.2.0

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
luogu-api-docs/
2+

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"name": "Launch Edge",
55
"request": "launch",
66
"type": "msedge",
7-
"url": "http://localhost:54220",
7+
"url": "https://mr-python-in-china.github.io/lg-admin-extend/",
88
"webRoot": "${workspaceFolder}",
9-
"preLaunchTask": "dev"
9+
"preLaunchTask": "debug"
1010
}
1111
]
1212
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "debug",
6+
"dependsOn": ["local-server", "dev"]
7+
},
48
{
59
"label": "dev",
610
"isBackground": true,
711
"type": "npm",
812
"script": "dev",
913
"problemMatcher": "$ts-webpack-watch"
14+
},
15+
{
16+
"label": "local-server",
17+
"isBackground": true,
18+
"type": "npm",
19+
"script": "server",
20+
"problemMatcher": [
21+
{
22+
"pattern": { "regexp": "___no_matter___" },
23+
"background": {
24+
"activeOnStart": true,
25+
"beginsPattern": "Starting up http-server",
26+
"endsPattern": "Hit CTRL-C to stop the server"
27+
}
28+
}
29+
]
1030
}
1131
]
1232
}

assets/emptyQueue.webp

821 KB
Loading

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html>
2+
<html lang="zh-cn">
33
<head>
44
<title>Luogu Admin Extend</title>
55
<link rel="icon" href="./favicon.ico" />
@@ -11,6 +11,6 @@
1111
</script>
1212
</head>
1313
<body>
14-
<div id="app"></div>
14+
<p>这个页面仅供油猴脚本在此渲染。</p>
1515
</body>
1616
</html>

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js';
5+
6+
export default [
7+
{ languageOptions: { globals: globals.browser } },
8+
pluginJs.configs.recommended,
9+
...tseslint.configs.recommended,
10+
pluginReactConfig
11+
];

imports.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module '*.css' {
2+
export default {};
3+
}
4+
declare module '*.webp' {
5+
const path: string;
6+
export default path;
7+
}

0 commit comments

Comments
 (0)