优化
This commit is contained in:
2
monisuo-admin/src/constants/pagination.ts
Normal file
2
monisuo-admin/src/constants/pagination.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const DEFAULT_PAGE_SIZE = 10 as const
|
||||
export const PAGE_SIZES = [10, 20, 50, 100] as const
|
||||
6
monisuo-admin/src/constants/route-path.ts
Normal file
6
monisuo-admin/src/constants/route-path.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
|
||||
export const RouterPath: Record<string, RouteLocationRaw> = {
|
||||
HOME: '/dashboard',
|
||||
LOGIN: '/auth/sign-in',
|
||||
} as const
|
||||
24
monisuo-admin/src/constants/themes.ts
Normal file
24
monisuo-admin/src/constants/themes.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { MoveHorizontal, UnfoldHorizontal } from 'lucide-vue-next'
|
||||
|
||||
export const THEMES = ['zinc', 'red', 'rose', 'orange', 'green', 'blue', 'yellow', 'violet'] as const
|
||||
export type Theme = typeof THEMES[number]
|
||||
|
||||
export const THEME_PRIMARY_COLORS: { theme: Theme, primaryColor: string }[] = [
|
||||
{ theme: 'zinc', primaryColor: 'oklch(44.2% 0.017 285.786)' },
|
||||
{ theme: 'red', primaryColor: 'oklch(57.7% 0.245 27.325)' },
|
||||
{ theme: 'rose', primaryColor: 'oklch(0.645 0.246 16.439)' },
|
||||
{ theme: 'orange', primaryColor: 'oklch(0.705 0.213 47.604)' },
|
||||
{ theme: 'green', primaryColor: 'oklch(0.723 0.219 149.579)' },
|
||||
{ theme: 'blue', primaryColor: 'oklch(48.8% 0.243 264.376)' },
|
||||
{ theme: 'yellow', primaryColor: 'oklch(68.1% 0.162 75.834)' },
|
||||
{ theme: 'violet', primaryColor: 'oklch(0.606 0.25 292.717)' },
|
||||
] as const
|
||||
|
||||
export type Radius = typeof RADIUS[number]
|
||||
export const RADIUS = [0, 0.25, 0.5, 0.75, 1] as const
|
||||
|
||||
export type ContentLayout = 'full' | 'centered'
|
||||
export const CONTENT_LAYOUTS = [
|
||||
{ label: 'Full', value: 'full', icon: UnfoldHorizontal },
|
||||
{ label: 'Centered', value: 'centered', icon: MoveHorizontal },
|
||||
] as const
|
||||
Reference in New Issue
Block a user