xiaoxian521
2 years ago
30 changed files with 471 additions and 729 deletions
-
8.eslintignore
-
2.vscode/extensions.json
-
2build/plugins.ts
-
8package.json
-
983pnpm-lock.yaml
-
6postcss.config.js
-
8src/layout/components/navbar.vue
-
6src/layout/components/notice/noticeItem.vue
-
6src/layout/components/panel/index.vue
-
2src/layout/components/screenfull/index.vue
-
2src/layout/components/search/components/SearchFooter.vue
-
2src/layout/components/search/index.vue
-
12src/layout/components/setting/index.vue
-
8src/layout/components/sidebar/horizontal.vue
-
2src/layout/components/sidebar/leftCollapse.vue
-
8src/layout/components/sidebar/mixNav.vue
-
2src/layout/components/sidebar/topCollapse.vue
-
4src/layout/components/tag/index.vue
-
2src/layout/hooks/useNav.ts
-
4src/layout/index.vue
-
1src/main.ts
-
7src/style/dark.scss
-
1src/style/index.scss
-
29src/style/tailwind.css
-
2src/views/error/403.vue
-
2src/views/error/404.vue
-
2src/views/error/500.vue
-
10src/views/login/index.vue
-
20tailwind.config.js
-
49uno.config.ts
@ -1,4 +1,10 @@ |
|||||
public |
public |
||||
dist |
dist |
||||
*.d.ts |
*.d.ts |
||||
package.json |
|
||||
|
package.json |
||||
|
.eslintrc.js |
||||
|
.prettierrc.js |
||||
|
commitlint.config.js |
||||
|
postcss.config.js |
||||
|
tailwind.config.js |
||||
|
stylelint.config.js |
983
pnpm-lock.yaml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,3 +1,7 @@ |
|||||
module.exports = { |
module.exports = { |
||||
plugins: [require("autoprefixer"), require("postcss-import")] |
|
||||
|
plugins: { |
||||
|
"postcss-import": {}, |
||||
|
tailwindcss: {}, |
||||
|
autoprefixer: {} |
||||
|
} |
||||
}; |
}; |
@ -0,0 +1,29 @@ |
|||||
|
@tailwind base; |
||||
|
@tailwind components; |
||||
|
@tailwind utilities; |
||||
|
|
||||
|
@layer components { |
||||
|
.bg-dark { |
||||
|
@apply bg-bg_color; |
||||
|
} |
||||
|
|
||||
|
.wh-full { |
||||
|
@apply w-full h-full; |
||||
|
} |
||||
|
|
||||
|
.flex-c { |
||||
|
@apply flex justify-center items-center; |
||||
|
} |
||||
|
|
||||
|
.flex-ac { |
||||
|
@apply flex justify-around items-center; |
||||
|
} |
||||
|
|
||||
|
.flex-bc { |
||||
|
@apply flex justify-between items-center; |
||||
|
} |
||||
|
|
||||
|
.navbar-bg-hover { |
||||
|
@apply dark:text-white dark:hover:!bg-[#242424]; |
||||
|
} |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
/** @type {import('tailwindcss').Config} */ |
||||
|
module.exports = { |
||||
|
darkMode: "class", |
||||
|
corePlugins: { |
||||
|
preflight: false |
||||
|
}, |
||||
|
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], |
||||
|
theme: { |
||||
|
extend: { |
||||
|
colors: { |
||||
|
bg_color: "var(--el-bg-color)", |
||||
|
primary: "var(--el-color-primary)", |
||||
|
primary_light_9: "var(--el-color-primary-light-9)", |
||||
|
text_color_primary: "var(--el-text-color-primary)", |
||||
|
text_color_regular: "var(--el-text-color-regular)", |
||||
|
text_color_disabled: "var(--el-text-color-disabled)" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}; |
@ -1,49 +0,0 @@ |
|||||
import { defineConfig, presetUno } from "unocss"; |
|
||||
|
|
||||
// https://github.com/unocss/unocss#readme
|
|
||||
export default defineConfig({ |
|
||||
// unocss默认不扫描 node_modules、dist、css以及其扩展 具体实现:https://github.com/unocss/unocss/blob/03c8abe8f5020b3baaed3dfbfe8e2258dd041a7e/packages/vite/src/utils.ts#L3
|
|
||||
exclude: [ |
|
||||
"node_modules", |
|
||||
"dist", |
|
||||
".git", |
|
||||
".github", |
|
||||
".husky", |
|
||||
".vscode", |
|
||||
"build", |
|
||||
"locales", |
|
||||
"mock", |
|
||||
"public", |
|
||||
"types", |
|
||||
".eslintrc.js", |
|
||||
".prettierrc.js", |
|
||||
"postcss.config.js", |
|
||||
"stylelint.config.js", |
|
||||
"commitlint.config.js", |
|
||||
"README.md", |
|
||||
"CHANGELOG.md", |
|
||||
"README.en-US.md", |
|
||||
"CHANGELOG.en_US.md", |
|
||||
"CHANGELOG.zh_CN.md" |
|
||||
], |
|
||||
presets: [presetUno({ dark: "class" })], |
|
||||
shortcuts: { |
|
||||
"bg-dark": "bg-bg_color", |
|
||||
"wh-full": "w-full h-full", |
|
||||
"flex-wrap": "flex flex-wrap", |
|
||||
"flex-c": "flex justify-center items-center", |
|
||||
"flex-ac": "flex justify-around items-center", |
|
||||
"flex-bc": "flex justify-between items-center", |
|
||||
"navbar-bg-hover": "dark:color-white !dark:hover:bg-[#242424]" |
|
||||
}, |
|
||||
theme: { |
|
||||
colors: { |
|
||||
bg_color: "var(--el-bg-color)", |
|
||||
primary: "var(--el-color-primary)", |
|
||||
primary_light_9: "var(--el-color-primary-light-9)", |
|
||||
text_color_primary: "var(--el-text-color-primary)", |
|
||||
text_color_regular: "var(--el-text-color-regular)", |
|
||||
text_color_disabled: "var(--el-text-color-disabled)" |
|
||||
} |
|
||||
} |
|
||||
}); |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue