mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: add category option for site
This commit is contained in:
parent
7ad5cac3b8
commit
207f80f858
16 changed files with 1452 additions and 508 deletions
66
app/uno.config.ts
Normal file
66
app/uno.config.ts
Normal file
|
@ -0,0 +1,66 @@
|
|||
// uno.config.ts
|
||||
import {
|
||||
defineConfig,
|
||||
presetAttributify,
|
||||
presetIcons,
|
||||
presetTypography,
|
||||
presetUno,
|
||||
presetWebFonts,
|
||||
transformerDirectives,
|
||||
transformerVariantGroup,
|
||||
} from 'unocss'
|
||||
|
||||
export default defineConfig({
|
||||
shortcuts: [],
|
||||
rules: [],
|
||||
variants: [
|
||||
// 使用工具函数
|
||||
matcher => {
|
||||
if (!matcher.endsWith('!'))
|
||||
return matcher
|
||||
return {
|
||||
matcher: matcher.slice(0, -1),
|
||||
selector: s => `${s}!important`,
|
||||
}
|
||||
},
|
||||
],
|
||||
theme: {
|
||||
colors: {
|
||||
// ...
|
||||
},
|
||||
},
|
||||
presets: [
|
||||
presetUno(),
|
||||
presetAttributify(),
|
||||
presetIcons({
|
||||
collections: {
|
||||
tabler: () => import('@iconify-json/tabler/icons.json').then(i => i.default),
|
||||
},
|
||||
extraProperties: {
|
||||
'display': 'inline-block',
|
||||
'height': '1.2em',
|
||||
'width': '1.2em',
|
||||
'vertical-align': 'text-bottom',
|
||||
},
|
||||
}),
|
||||
presetTypography(),
|
||||
presetWebFonts(),
|
||||
],
|
||||
transformers: [
|
||||
transformerDirectives(),
|
||||
transformerVariantGroup(),
|
||||
],
|
||||
content: {
|
||||
pipeline: {
|
||||
include: [
|
||||
// default
|
||||
/\.(vue|[jt]sx|ts)($|\?)/,
|
||||
|
||||
// 参考:https://unocss.dev/guide/extracting#extracting-from-build-tools-pipeline
|
||||
],
|
||||
|
||||
// exclude files
|
||||
// exclude: []
|
||||
},
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue