Uyarn
2 years ago
13 changed files with 139 additions and 164 deletions
-
7package.json
-
57src/layouts/setting.vue
-
3src/main.jsx
-
3src/pages/dashboard/base/components/middle-chart.vue
-
3src/pages/dashboard/base/components/overview.vue
-
8src/pages/dashboard/detail/index.vue
-
3src/pages/user/index.vue
-
85src/style/index.less
-
16src/style/layout.less
-
79src/style/reset.less
-
23src/style/variables.less
-
12src/utils/date.ts
-
4vite.config.js
@ -1,87 +1,4 @@ |
|||
@import './variables.less'; |
|||
|
|||
@import './font-family.less'; |
|||
|
|||
@import './theme/index.less'; |
|||
|
|||
body { |
|||
color: @text-color-secondary; |
|||
font-family: -apple-system, BlinkMacSystemFont, @font-family; |
|||
font-size: @font-size-base; |
|||
line-height: 1.5; |
|||
-webkit-font-smoothing: antialiased; |
|||
padding: 0; |
|||
} |
|||
|
|||
pre { |
|||
font-family: @font-family; |
|||
} |
|||
|
|||
ul, |
|||
dl, |
|||
li, |
|||
dd, |
|||
dt { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none; |
|||
} |
|||
|
|||
figure, |
|||
h1, |
|||
h2, |
|||
h3, |
|||
h4, |
|||
h5, |
|||
h6, |
|||
p { |
|||
margin: 0; |
|||
} |
|||
|
|||
* { |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
.t-button-link { |
|||
color: @brand-color; |
|||
text-decoration: none; |
|||
margin-right: @spacer-3; |
|||
cursor: pointer; |
|||
transition: color @anim-duration-base @anim-time-fn-easing; |
|||
|
|||
&:hover { |
|||
color: @brand-color-hover; |
|||
} |
|||
|
|||
&:active { |
|||
color: @brand-color-active; |
|||
} |
|||
|
|||
&--active { |
|||
color: @brand-color-active; |
|||
} |
|||
|
|||
&:focus { |
|||
text-decoration: none; |
|||
} |
|||
|
|||
&:last-child { |
|||
margin-right: 0; |
|||
} |
|||
|
|||
&:last-child { |
|||
margin-right: 0; |
|||
} |
|||
} |
|||
|
|||
.t-button + .t-button { |
|||
margin-left: @spacer; |
|||
} |
|||
|
|||
.container-base-margin-top { |
|||
margin-top: 16px; |
|||
} |
|||
|
|||
.card-date-picker-container { |
|||
width: 240px; |
|||
} |
|||
@import './reset.less'; |
@ -0,0 +1,79 @@ |
|||
body { |
|||
color: @text-color-secondary; |
|||
font-family: -apple-system, BlinkMacSystemFont, @font-family; |
|||
font-size: @font-size-base; |
|||
line-height: 1.5; |
|||
-webkit-font-smoothing: antialiased; |
|||
padding: 0; |
|||
margin: 0; |
|||
} |
|||
|
|||
pre { |
|||
font-family: @font-family; |
|||
} |
|||
|
|||
ul, |
|||
dl, |
|||
li, |
|||
dd, |
|||
dt { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none; |
|||
} |
|||
|
|||
figure, |
|||
h1, |
|||
h2, |
|||
h3, |
|||
h4, |
|||
h5, |
|||
h6, |
|||
p { |
|||
margin: 0; |
|||
} |
|||
|
|||
* { |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
.t-button-link, |
|||
a { |
|||
color: @brand-color; |
|||
text-decoration: none; |
|||
margin-right: @spacer-3; |
|||
cursor: pointer; |
|||
transition: color @anim-duration-base @anim-time-fn-easing; |
|||
|
|||
&:hover { |
|||
color: @brand-color-hover; |
|||
} |
|||
|
|||
&:active { |
|||
color: @brand-color-active; |
|||
} |
|||
|
|||
&--active { |
|||
color: @brand-color-active; |
|||
} |
|||
|
|||
&:focus { |
|||
text-decoration: none; |
|||
} |
|||
|
|||
&:last-child { |
|||
margin-right: 0; |
|||
} |
|||
|
|||
&:last-child { |
|||
margin-right: 0; |
|||
} |
|||
} |
|||
|
|||
.container-base-margin-top { |
|||
margin-top: 16px; |
|||
} |
|||
|
|||
.card-date-picker-container { |
|||
width: 240px; |
|||
} |
@ -1,6 +1,12 @@ |
|||
// 获取常用时间
|
|||
import dayjs, { Dayjs } from 'dayjs'; |
|||
import dayjs from 'dayjs'; |
|||
|
|||
export const LAST_7_DAYS: [Dayjs, Dayjs] = [dayjs().subtract(7, 'day'), dayjs().subtract(1, 'day')]; |
|||
export const LAST_7_DAYS = [ |
|||
dayjs().subtract(7, 'day').format('YYYY-MM-DD'), |
|||
dayjs().subtract(1, 'day').format('YYYY-MM-DD'), |
|||
]; |
|||
|
|||
export const LAST_30_DAYS: [Dayjs, Dayjs] = [dayjs().subtract(30, 'day'), dayjs().subtract(1, 'day')]; |
|||
export const LAST_30_DAYS = [ |
|||
dayjs().subtract(30, 'day').format('YYYY-MM-DD'), |
|||
dayjs().subtract(1, 'day').format('YYYY-MM-DD'), |
|||
]; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue