Skip to content

Commit f3e13aa

Browse files
authored
Merge pull request #10 from kongying-tavern/refactor/new-ui
Refactor to new UI
2 parents 48f5542 + 8b2d806 commit f3e13aa

File tree

101 files changed

+1415
-8144
lines changed

Some content is hidden

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

101 files changed

+1415
-8144
lines changed

.eslintrc.cjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,25 @@ require("@rushstack/eslint-patch/modern-module-resolution");
44
module.exports = {
55
root: true,
66
extends: [
7-
"plugin:vue/vue3-essential",
87
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:vue/vue3-essential",
910
"@vue/eslint-config-typescript",
1011
"@vue/eslint-config-prettier",
1112
],
1213
parserOptions: {
1314
ecmaVersion: "latest",
1415
},
16+
rules: {
17+
"vue/html-self-closing": [
18+
"error",
19+
{
20+
html: {
21+
void: "always",
22+
normal: "never",
23+
component: "always",
24+
},
25+
},
26+
],
27+
},
1528
};

.github/workflows/semantic-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: latest
23-
cache: pnpm
2423
- name: Install deps
2524
run: rm -rf node_modules && pnpm install
2625
- name: Build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jspm_packages/
4545
# Dependency locks
4646
package-lock.json
4747
yarn.lock
48+
pnpm-lock.yaml
4849

4950
# TypeScript v1 declaration files
5051
typings/

.stylelintrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,18 @@ module.exports = {
44
'stylelint-config-sass-guidelines',
55
'stylelint-prettier/recommended',
66
],
7+
rules: {
8+
'selector-pseudo-class-no-unknown': [
9+
true,
10+
{
11+
ignorePseudoClasses: ['export', 'deep']
12+
}
13+
],
14+
'property-no-unknown': [
15+
true,
16+
{
17+
ignoreSelectors: [':export']
18+
}
19+
]
20+
}
721
};

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"dependencies": {
1919
"element-plus": "^2.2.32",
20+
"lodash": "^4.17.21",
2021
"pinia": "^2.0.28",
2122
"tailwindcss": "^3.2.7",
2223
"vue": "^3.2.45",
@@ -25,7 +26,9 @@
2526
"devDependencies": {
2627
"@aghap/semantic-release-gh-pages": "^2.0.9",
2728
"@rushstack/eslint-patch": "^1.1.4",
29+
"@types/lodash": "^4.14.194",
2830
"@types/node": "^18.11.12",
31+
"@typescript-eslint/eslint-plugin": "^5.59.2",
2932
"@vitejs/plugin-vue": "^4.0.0",
3033
"@vitejs/plugin-vue-jsx": "^3.0.0",
3134
"@vue/eslint-config-prettier": "^7.0.0",
@@ -40,7 +43,7 @@
4043
"prettier": "^2.7.1",
4144
"sass": "^1.58.3",
4245
"semantic-release": "^20.1.3",
43-
"stylelint": "^14.0.0",
46+
"stylelint": "^15.0.0",
4447
"stylelint-config-prettier": "^9.0.5",
4548
"stylelint-config-sass-guidelines": "^9.0.1",
4649
"stylelint-config-standard-scss": "^5.0.0",

pnpm-lock.yaml

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

src/App.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<script setup lang="ts"></script>
2-
31
<template>
42
<RouterView />
53
</template>
6-
7-
<style scoped></style>

src/assets/effects/scrollbar.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@use 'sass:math';
2+
@use '@/assets/vars/color.scss' as *;
3+
4+
$scrollbar-width: 0.4rem;
5+
$scrollbar-radius: math.div($scrollbar-width, 2);
6+
$scrollbar-color-track: $color-gray-4;
7+
$scrollbar-color-thumb: $color-gray-3;
8+
9+
@mixin scrollbar {
10+
.scrollbar,
11+
.scrollbar :deep(*) {
12+
&::-webkit-scrollbar {
13+
border-radius: $scrollbar-radius;
14+
background-color: $scrollbar-color-track;
15+
}
16+
17+
&::-webkit-scrollbar:horizontal {
18+
height: $scrollbar-width;
19+
}
20+
21+
&::-webkit-scrollbar:vertical {
22+
width: $scrollbar-width;
23+
}
24+
25+
&::-webkit-scrollbar-button {
26+
display: none;
27+
}
28+
29+
&::-webkit-scrollbar-thumb {
30+
border-radius: $scrollbar-radius;
31+
background-color: $scrollbar-color-thumb;
32+
}
33+
}
34+
}

src/assets/effects/shadow.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@mixin box-shadow {
2+
.box-shadow {
3+
box-shadow: 0.3rem 0.3rem 0.36rem 0.04rem rgb(0 0 0 / 10%);
4+
}
5+
}
Binary file not shown.

0 commit comments

Comments
 (0)