From 39b0b9a48ec6117dab6a8688371ade023687b769 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 28 Jun 2023 22:49:58 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A7=A3=E5=86=B3=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=B6=E9=83=A8=E5=88=86=E8=A1=8C=E5=88=86=E9=9A=94=E7=AC=A6?= =?UTF-8?q?=E6=8A=A5=20warning=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 来自 @woodlxl(小鹿) --- continew-admin-ui/components.d.ts | 150 ++++++++-------- continew-admin-ui/package.json | 1 + .../src/components/footer/index.vue | 22 ++- .../src/components/navbar/index.vue | 5 +- .../src/components/right-toolbar/index.vue | 10 +- continew-admin-ui/src/hooks/axios.d.ts | 4 +- .../router/routes/modules/arco-design/list.ts | 3 +- .../modules/arco-design/visualization.ts | 10 +- continew-admin-ui/src/utils/avatar.ts | 5 +- .../arco-design/list/search-table/index.vue | 4 +- .../src/views/login/components/login-form.vue | 7 +- continew-admin-ui/src/views/login/index.vue | 2 +- .../src/views/login/locale/en-US.ts | 6 +- .../src/views/login/locale/zh-CN.ts | 6 +- .../src/views/monitor/log/login/index.vue | 8 +- .../src/views/monitor/log/operation/index.vue | 8 +- .../src/views/monitor/log/system/index.vue | 74 ++++++-- .../src/views/monitor/online/index.vue | 36 ++-- .../src/views/system/dept/index.vue | 25 +-- .../src/views/system/menu/index.vue | 12 +- .../src/views/system/role/index.vue | 75 +++++--- .../user/center/components/basic-info.vue | 15 +- .../user/center/components/operation-log.vue | 4 +- .../security-settings/update-email.vue | 160 +++++++++++++----- .../security-settings/update-phone.vue | 12 +- .../security-settings/update-pwd.vue | 110 +++++++++--- .../views/system/user/center/locale/en-US.ts | 84 ++++++--- .../views/system/user/center/locale/zh-CN.ts | 66 +++++--- .../src/views/system/user/index.vue | 37 +++- 29 files changed, 659 insertions(+), 302 deletions(-) diff --git a/continew-admin-ui/components.d.ts b/continew-admin-ui/components.d.ts index 74f6e6fd..d692d1fe 100644 --- a/continew-admin-ui/components.d.ts +++ b/continew-admin-ui/components.d.ts @@ -1,84 +1,84 @@ // generated by unplugin-vue-components // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' +import '@vue/runtime-core'; -export {} +export {}; declare module '@vue/runtime-core' { export interface GlobalComponents { - AAffix: typeof import('@arco-design/web-vue')['Affix'] - AAlert: typeof import('@arco-design/web-vue')['Alert'] - AAvatar: typeof import('@arco-design/web-vue')['Avatar'] - ABadge: typeof import('@arco-design/web-vue')['Badge'] - ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'] - ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'] - AButton: typeof import('@arco-design/web-vue')['Button'] - AButtonGroup: typeof import('@arco-design/web-vue')['ButtonGroup'] - ACard: typeof import('@arco-design/web-vue')['Card'] - ACardMeta: typeof import('@arco-design/web-vue')['CardMeta'] - ACarousel: typeof import('@arco-design/web-vue')['Carousel'] - ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem'] - ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] - ACol: typeof import('@arco-design/web-vue')['Col'] - AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] - ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] - ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem'] - ADivider: typeof import('@arco-design/web-vue')['Divider'] - ADoption: typeof import('@arco-design/web-vue')['Doption'] - ADrawer: typeof import('@arco-design/web-vue')['Drawer'] - ADropdown: typeof import('@arco-design/web-vue')['Dropdown'] - AForm: typeof import('@arco-design/web-vue')['Form'] - AFormItem: typeof import('@arco-design/web-vue')['FormItem'] - AGrid: typeof import('@arco-design/web-vue')['Grid'] - AGridItem: typeof import('@arco-design/web-vue')['GridItem'] - AInput: typeof import('@arco-design/web-vue')['Input'] - AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] - AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] - AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'] - ALayout: typeof import('@arco-design/web-vue')['Layout'] - ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'] - ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'] - ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] - ALink: typeof import('@arco-design/web-vue')['Link'] - AList: typeof import('@arco-design/web-vue')['List'] - AListItem: typeof import('@arco-design/web-vue')['ListItem'] - AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'] - AMenu: typeof import('@arco-design/web-vue')['Menu'] - AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] - AModal: typeof import('@arco-design/web-vue')['Modal'] - AOption: typeof import('@arco-design/web-vue')['Option'] - APopconfirm: typeof import('@arco-design/web-vue')['Popconfirm'] - APopover: typeof import('@arco-design/web-vue')['Popover'] - ARadio: typeof import('@arco-design/web-vue')['Radio'] - ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'] - ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'] - AResult: typeof import('@arco-design/web-vue')['Result'] - ARow: typeof import('@arco-design/web-vue')['Row'] - ASelect: typeof import('@arco-design/web-vue')['Select'] - ASkeleton: typeof import('@arco-design/web-vue')['Skeleton'] - ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine'] - ASpace: typeof import('@arco-design/web-vue')['Space'] - ASpin: typeof import('@arco-design/web-vue')['Spin'] - AStatistic: typeof import('@arco-design/web-vue')['Statistic'] - AStep: typeof import('@arco-design/web-vue')['Step'] - ASteps: typeof import('@arco-design/web-vue')['Steps'] - ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'] - ASwitch: typeof import('@arco-design/web-vue')['Switch'] - ATable: typeof import('@arco-design/web-vue')['Table'] - ATableColumn: typeof import('@arco-design/web-vue')['TableColumn'] - ATabPane: typeof import('@arco-design/web-vue')['TabPane'] - ATabs: typeof import('@arco-design/web-vue')['Tabs'] - ATag: typeof import('@arco-design/web-vue')['Tag'] - ATextarea: typeof import('@arco-design/web-vue')['Textarea'] - ATooltip: typeof import('@arco-design/web-vue')['Tooltip'] - ATree: typeof import('@arco-design/web-vue')['Tree'] - ATreeSelect: typeof import('@arco-design/web-vue')['TreeSelect'] - ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'] - ATypographyText: typeof import('@arco-design/web-vue')['TypographyText'] - ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'] - AUpload: typeof import('@arco-design/web-vue')['Upload'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] + AAffix: typeof import('@arco-design/web-vue')['Affix']; + AAlert: typeof import('@arco-design/web-vue')['Alert']; + AAvatar: typeof import('@arco-design/web-vue')['Avatar']; + ABadge: typeof import('@arco-design/web-vue')['Badge']; + ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb']; + ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem']; + AButton: typeof import('@arco-design/web-vue')['Button']; + AButtonGroup: typeof import('@arco-design/web-vue')['ButtonGroup']; + ACard: typeof import('@arco-design/web-vue')['Card']; + ACardMeta: typeof import('@arco-design/web-vue')['CardMeta']; + ACarousel: typeof import('@arco-design/web-vue')['Carousel']; + ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem']; + ACheckbox: typeof import('@arco-design/web-vue')['Checkbox']; + ACol: typeof import('@arco-design/web-vue')['Col']; + AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider']; + ADescriptions: typeof import('@arco-design/web-vue')['Descriptions']; + ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem']; + ADivider: typeof import('@arco-design/web-vue')['Divider']; + ADoption: typeof import('@arco-design/web-vue')['Doption']; + ADrawer: typeof import('@arco-design/web-vue')['Drawer']; + ADropdown: typeof import('@arco-design/web-vue')['Dropdown']; + AForm: typeof import('@arco-design/web-vue')['Form']; + AFormItem: typeof import('@arco-design/web-vue')['FormItem']; + AGrid: typeof import('@arco-design/web-vue')['Grid']; + AGridItem: typeof import('@arco-design/web-vue')['GridItem']; + AInput: typeof import('@arco-design/web-vue')['Input']; + AInputNumber: typeof import('@arco-design/web-vue')['InputNumber']; + AInputPassword: typeof import('@arco-design/web-vue')['InputPassword']; + AInputSearch: typeof import('@arco-design/web-vue')['InputSearch']; + ALayout: typeof import('@arco-design/web-vue')['Layout']; + ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent']; + ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter']; + ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider']; + ALink: typeof import('@arco-design/web-vue')['Link']; + AList: typeof import('@arco-design/web-vue')['List']; + AListItem: typeof import('@arco-design/web-vue')['ListItem']; + AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta']; + AMenu: typeof import('@arco-design/web-vue')['Menu']; + AMenuItem: typeof import('@arco-design/web-vue')['MenuItem']; + AModal: typeof import('@arco-design/web-vue')['Modal']; + AOption: typeof import('@arco-design/web-vue')['Option']; + APopconfirm: typeof import('@arco-design/web-vue')['Popconfirm']; + APopover: typeof import('@arco-design/web-vue')['Popover']; + ARadio: typeof import('@arco-design/web-vue')['Radio']; + ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup']; + ARangePicker: typeof import('@arco-design/web-vue')['RangePicker']; + AResult: typeof import('@arco-design/web-vue')['Result']; + ARow: typeof import('@arco-design/web-vue')['Row']; + ASelect: typeof import('@arco-design/web-vue')['Select']; + ASkeleton: typeof import('@arco-design/web-vue')['Skeleton']; + ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine']; + ASpace: typeof import('@arco-design/web-vue')['Space']; + ASpin: typeof import('@arco-design/web-vue')['Spin']; + AStatistic: typeof import('@arco-design/web-vue')['Statistic']; + AStep: typeof import('@arco-design/web-vue')['Step']; + ASteps: typeof import('@arco-design/web-vue')['Steps']; + ASubMenu: typeof import('@arco-design/web-vue')['SubMenu']; + ASwitch: typeof import('@arco-design/web-vue')['Switch']; + ATable: typeof import('@arco-design/web-vue')['Table']; + ATableColumn: typeof import('@arco-design/web-vue')['TableColumn']; + ATabPane: typeof import('@arco-design/web-vue')['TabPane']; + ATabs: typeof import('@arco-design/web-vue')['Tabs']; + ATag: typeof import('@arco-design/web-vue')['Tag']; + ATextarea: typeof import('@arco-design/web-vue')['Textarea']; + ATooltip: typeof import('@arco-design/web-vue')['Tooltip']; + ATree: typeof import('@arco-design/web-vue')['Tree']; + ATreeSelect: typeof import('@arco-design/web-vue')['TreeSelect']; + ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph']; + ATypographyText: typeof import('@arco-design/web-vue')['TypographyText']; + ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle']; + AUpload: typeof import('@arco-design/web-vue')['Upload']; + RouterLink: typeof import('vue-router')['RouterLink']; + RouterView: typeof import('vue-router')['RouterView']; } } diff --git a/continew-admin-ui/package.json b/continew-admin-ui/package.json index af7cf67e..67cfbf48 100644 --- a/continew-admin-ui/package.json +++ b/continew-admin-ui/package.json @@ -11,6 +11,7 @@ "report": "cross-env REPORT=true npm run build", "preview": "npm run build && vite preview --host", "type:check": "vue-tsc --noEmit --skipLibCheck", + "lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix", "lint-staged": "npx lint-staged" }, "lint-staged": { diff --git a/continew-admin-ui/src/components/footer/index.vue b/continew-admin-ui/src/components/footer/index.vue index ace0adfe..b8859a0b 100644 --- a/continew-admin-ui/src/components/footer/index.vue +++ b/continew-admin-ui/src/components/footer/index.vue @@ -1,12 +1,26 @@ diff --git a/continew-admin-ui/src/components/navbar/index.vue b/continew-admin-ui/src/components/navbar/index.vue index 8bd34433..c6395220 100644 --- a/continew-admin-ui/src/components/navbar/index.vue +++ b/continew-admin-ui/src/components/navbar/index.vue @@ -160,7 +160,10 @@ :size="32" :style="{ marginRight: '8px', cursor: 'pointer' }" > - avatar + avatar