Skip to content

Commit 475a05e

Browse files
init: init
1 parent 342f984 commit 475a05e

File tree

130 files changed

+7490
-545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+7490
-545
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ celerybeat.pid
137137
# Environments
138138
.env
139139
.venv
140-
env/
140+
# env/
141141
venv/
142-
ENV/
142+
# ENV/
143143
env.bak/
144144
venv.bak/
145145

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
"format": "prettier --write src/"
1414
},
1515
"dependencies": {
16+
"element-plus": "^2.9.7",
1617
"pinia": "^3.0.1",
1718
"vue": "^3.5.13",
19+
"vue-i18n": "^11.1.3",
1820
"vue-router": "^4.5.0"
1921
},
2022
"devDependencies": {
@@ -30,7 +32,10 @@
3032
"jiti": "^2.4.2",
3133
"npm-run-all2": "^7.0.2",
3234
"prettier": "3.5.3",
35+
"sass": "^1.86.3",
36+
"sass-loader": "^16.0.5",
3337
"typescript": "~5.8.0",
38+
"unplugin-vue-define-options": "^3.0.0-beta.8",
3439
"vite": "^6.2.4",
3540
"vite-plugin-vue-devtools": "^7.7.2",
3641
"vue-tsc": "^2.2.8"

ui/public/MaxKB.gif

52.5 KB
Loading

ui/public/favicon.ico

3.78 KB
Binary file not shown.

ui/src/App.vue

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,5 @@
1-
<script setup lang="ts">
2-
import { RouterLink, RouterView } from 'vue-router'
3-
import HelloWorld from './components/HelloWorld.vue'
4-
</script>
1+
<script setup lang="ts"></script>
52

63
<template>
7-
<header>
8-
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
9-
10-
<div class="wrapper">
11-
<HelloWorld msg="You did it!" />
12-
13-
<nav>
14-
<RouterLink to="/">Home</RouterLink>
15-
<RouterLink to="/about">About</RouterLink>
16-
</nav>
17-
</div>
18-
</header>
19-
204
<RouterView />
215
</template>
22-
23-
<style scoped>
24-
header {
25-
line-height: 1.5;
26-
max-height: 100vh;
27-
}
28-
29-
.logo {
30-
display: block;
31-
margin: 0 auto 2rem;
32-
}
33-
34-
nav {
35-
width: 100%;
36-
font-size: 12px;
37-
text-align: center;
38-
margin-top: 2rem;
39-
}
40-
41-
nav a.router-link-exact-active {
42-
color: var(--color-text);
43-
}
44-
45-
nav a.router-link-exact-active:hover {
46-
background-color: transparent;
47-
}
48-
49-
nav a {
50-
display: inline-block;
51-
padding: 0 1rem;
52-
border-left: 1px solid var(--color-border);
53-
}
54-
55-
nav a:first-of-type {
56-
border: 0;
57-
}
58-
59-
@media (min-width: 1024px) {
60-
header {
61-
display: flex;
62-
place-items: center;
63-
padding-right: calc(var(--section-gap) / 2);
64-
}
65-
66-
.logo {
67-
margin: 0 2rem 0 0;
68-
}
69-
70-
header .wrapper {
71-
display: flex;
72-
place-items: flex-start;
73-
flex-wrap: wrap;
74-
}
75-
76-
nav {
77-
text-align: left;
78-
margin-left: -1rem;
79-
font-size: 1rem;
80-
81-
padding: 1rem 0;
82-
margin-top: 1rem;
83-
}
84-
}
85-
</style>

ui/src/api/type/login.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
interface LoginRequest {
2+
/**
3+
* 用户名
4+
*/
5+
username: string
6+
/**
7+
* 密码
8+
*/
9+
password: string
10+
}
11+
export type { LoginRequest }

ui/src/api/user/login.ts

Whitespace-only changes.

ui/src/assets/base.css

Lines changed: 0 additions & 86 deletions
This file was deleted.

ui/src/assets/icon_send.svg

Lines changed: 4 additions & 0 deletions
Loading

ui/src/assets/icon_send_colorful.svg

Lines changed: 14 additions & 0 deletions
Loading

ui/src/assets/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)