diff --git a/.gitignore b/.gitignore index 1b4684cb..21c8f822 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ node_modules dist dist-ssr *.local -yarn.lock components.d.ts # Editor directories and files diff --git a/components.d.ts b/components.d.ts index d63a4b41..db063474 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,22 +7,27 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + ABadge: typeof import('ant-design-vue/es')['Badge'] AButton: typeof import('ant-design-vue/es')['Button'] ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] ACheckboxGroup: typeof import('ant-design-vue/es')['CheckboxGroup'] ACol: typeof import('ant-design-vue/es')['Col'] ADatePicker: typeof import('ant-design-vue/es')['DatePicker'] ADivider: typeof import('ant-design-vue/es')['Divider'] + AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] AInput: typeof import('ant-design-vue/es')['Input'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] + APagination: typeof import('ant-design-vue/es')['Pagination'] APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] + ASpace: typeof import('ant-design-vue/es')['Space'] ASpin: typeof import('ant-design-vue/es')['Spin'] ASwitch: typeof import('ant-design-vue/es')['Switch'] + ATable: typeof import('ant-design-vue/es')['Table'] ATimePicker: typeof import('ant-design-vue/es')['TimePicker'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] ATreeSelect: typeof import('ant-design-vue/es')['TreeSelect'] @@ -35,6 +40,7 @@ declare module '@vue/runtime-core' { PermissionButton: typeof import('./src/components/PermissionButton/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + Table: typeof import('./src/components/Table/index.vue')['default'] TitleComponent: typeof import('./src/components/TitleComponent/index.vue')['default'] ValueItem: typeof import('./src/components/ValueItem/index.vue')['default'] } diff --git a/public/images/init-home/mark.png b/public/images/init-home/mark.png new file mode 100644 index 00000000..f653fd50 Binary files /dev/null and b/public/images/init-home/mark.png differ diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 00000000..2399ab2c --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,3 @@ +import server from '@/utils/request' + +export const deleteMetadata = (deviceId: string) => server.remove(`/device-instance/${deviceId}/metadata`) \ No newline at end of file diff --git a/src/api/home.js b/src/api/home.js new file mode 100644 index 00000000..ee609220 --- /dev/null +++ b/src/api/home.js @@ -0,0 +1,8 @@ +import server from '@/utils/request'; + +// 设备数量 +export const getDeviceCount_api = () => server.get(`/device/instance/_count`); +// 产品数量 +export const getProductCount_api = (data) => server.post(`/device-product/_count`, data); +// 查询产品列表 +export const getProductList_api = (data) => server.get(`/device/product/_query/no-paging?paging=false`, data); \ No newline at end of file diff --git a/src/api/link/certificate.js b/src/api/link/certificate.js new file mode 100644 index 00000000..24fe25f9 --- /dev/null +++ b/src/api/link/certificate.js @@ -0,0 +1,3 @@ +import server from '@/utils/request' + +export const save = (data) => server.post(`/network/certificate`, data) \ No newline at end of file diff --git a/src/api/system/apiPage.ts b/src/api/system/apiPage.ts new file mode 100644 index 00000000..e2031d7e --- /dev/null +++ b/src/api/system/apiPage.ts @@ -0,0 +1,6 @@ +import server from '@/utils/request'; + +// 获取tree数据-第一层 +export const getTreeOne_api = () => server.get(`/v3/api-docs/swagger-config`); +// 获取tree数据-第二层 +export const getTreeTwo_api = (name:string) => server.get(`/v3/api-docs/${name}`); \ No newline at end of file diff --git a/src/components/CardBox/index.vue b/src/components/CardBox/index.vue index 7eda82d6..fc942f65 100644 --- a/src/components/CardBox/index.vue +++ b/src/components/CardBox/index.vue @@ -60,7 +60,7 @@ - +
+ +
+
+
+ +
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+ + + + +
+
+
+ +
+
+
+ + + +
+
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/src/components/Table/index.module.less b/src/components/Table/old/index.module.less similarity index 100% rename from src/components/Table/index.module.less rename to src/components/Table/old/index.module.less diff --git a/src/components/Table/index.tsx b/src/components/Table/old/index.tsx similarity index 93% rename from src/components/Table/index.tsx rename to src/components/Table/old/index.tsx index 8e774af4..39ac9e9c 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/old/index.tsx @@ -1,7 +1,8 @@ import { UnorderedListOutlined, AppstoreOutlined } from '@ant-design/icons-vue' import styles from './index.module.less' -import { Space, Pagination, Table, Empty } from 'ant-design-vue' +import { Pagination, Table, Empty } from 'ant-design-vue' import type { TableProps } from 'ant-design-vue/es/table' + enum ModelEnum { TABLE = 'TABLE', CARD = 'CARD', @@ -17,18 +18,15 @@ export declare type RequestData = { }; status: number; } & Record; -// interface ColumnType extends interface JTableProps extends TableProps{ - // columns?: ColumnsType; request: (params: Record & { - pageSize?: number; - pageIndex?: number; + pageSize: number; + pageIndex: number; }) => Promise>; - cardBodyClass?: string; + cardBodyClass: string; } - const JTable = defineComponent({ name: 'JTable', slots: [ @@ -38,10 +36,15 @@ const JTable = defineComponent({ emits: [ 'modelChange', // 切换卡片和表格 ], - setup(props: JTableProps, { slots, emit }){ + props: { + cardBodyClass: '', + request: undefined, + columns: [] + } as any, + setup(props ,{ slots, emit }){ const model = ref(ModelEnum.CARD); // 模式切换 const column = ref(3); - console.log(props) + console.log(props.columns, props.request) const dataSource = ref([ { key: '1', @@ -81,6 +84,8 @@ const JTable = defineComponent({ }, ]) + // 请求数据 + onMounted(() => { }) diff --git a/src/components/index.ts b/src/components/index.ts index 7ba45972..d3daf534 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,9 +1,10 @@ import type { App } from 'vue' import AIcon from './AIcon' import PermissionButton from './PermissionButton/index.vue' -import JTable from './Table/index' +import JTable from './Table/index.vue' import TitleComponent from "./TitleComponent/index.vue"; -import Form from './Form' +import Form from './Form'; +import CardBox from './CardBox/index.vue'; export default { install(app: App) { @@ -12,5 +13,6 @@ export default { .component('JTable', JTable) .component('TitleComponent', TitleComponent) .component('Form', Form) + .component('CardBox', CardBox) } } diff --git a/src/router/index.ts b/src/router/index.ts index cac0740a..2da56030 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,7 +10,6 @@ const router = createRouter({ router.beforeEach((to, from, next) => { const token = LocalStore.get(TOKEN_KEY) - next() // 测试用, 可删除 if (token) { next() } else { diff --git a/src/router/menu.ts b/src/router/menu.ts index 31b1f8df..525ac2e8 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -29,16 +29,16 @@ export default [ component: () => import('@/views/demo/index.vue') }, { - path: '/bind', + path: '/account/center/bind', component: () => import('@/views/account/Center/bind/index.vue') }, { path: '/iot/home', - component: () => import('@/views/iot/home/index.vue') + component: () => import('@/views/home/index.vue') }, { path: '/table', - component: () => import('@/views/table/index.vue') + component: () => import('@/views/demo/table/index.vue') }, { path: '/form', diff --git a/src/router/router.ts b/src/router/router.ts deleted file mode 100644 index bc22c28f..00000000 --- a/src/router/router.ts +++ /dev/null @@ -1,240 +0,0 @@ -/** 路由Code */ -export enum MENUS_CODE { - 'home' = 'home', - 'Analysis/CPU' = 'Analysis/CPU', - 'Analysis/DeviceChart' = 'Analysis/DeviceChart', - 'Analysis/DeviceMessage' = 'Analysis/DeviceMessage', - 'Analysis/Jvm' = 'Analysis/Jvm', - 'Analysis/MessageChart' = 'Analysis/MessageChart', - 'Analysis' = 'Analysis', - 'cloud/Aliyun' = 'cloud/Aliyun', - 'cloud/Ctwing' = 'cloud/Ctwing', - 'cloud/DuerOS' = 'cloud/DuerOS', - 'cloud/Onenet' = 'cloud/Onenet', - 'device/Alarm' = 'device/Alarm', - 'device/Category/Save' = 'device/Category/Save', - 'device/Category' = 'device/Category', - 'device/Command' = 'device/Command', - 'device/DataSource' = 'device/DataSource', - 'device/Instance' = 'device/Instance', - 'device/Location' = 'device/Location', - 'device/Product/Save' = 'device/Product/Save', - 'device/Product' = 'device/Product', - 'device/DashBoard' = 'device/DashBoard', - 'device/components/Alarm/Edit' = 'device/components/Alarm/Edit', - 'device/components/Alarm/Record' = 'device/components/Alarm/Record', - 'device/components/Alarm/Setting' = 'device/components/Alarm/Setting', - 'device/components/Alarm' = 'device/components/Alarm', - 'device/components/Metadata/Base/Edit' = 'device/components/Metadata/Base/Edit', - 'device/components/Metadata/Base' = 'device/components/Metadata/Base', - 'device/components/Metadata/Cat' = 'device/components/Metadata/Cat', - 'device/components/Metadata/Import' = 'device/components/Metadata/Import', - 'device/components/Metadata' = 'device/components/Metadata', - 'link/Certificate' = 'link/Certificate', - 'link/Certificate/Detail' = 'link/Certificate/Detail', - 'link/Gateway' = 'link/Gateway', - 'link/Protocol/Debug' = 'link/Protocol/Debug', - 'link/Protocol' = 'link/Protocol', - 'link/Type' = 'link/Type', - 'link/AccessConfig' = 'link/AccessConfig', - 'link/DataCollect/Dashboard' = 'link/DataCollect/Dashboard', - 'link/DataCollect/DataGathering' = 'link/DataCollect/DataGathering', - 'link/DataCollect/IntegratedQuery' = 'link/DataCollect/IntegratedQuery', - 'edge/Device' = 'edge/Device', - 'edge/Resource' = 'edge/Resource', - 'Log' = 'Log', - 'media/Cascade' = 'media/Cascade', - 'media/Cascade/Save' = 'media/Cascade/Save', - 'media/Cascade/Channel' = 'media/Cascade/Channel', - 'media/Config' = 'media/Config', - 'media/Device' = 'media/Device', - 'media/Device/Save' = 'media/Device/Save', - 'media/Device/Channel' = 'media/Device/Channel', - 'media/Device/Playback' = 'media/Device/Playback', - 'media/Reveal' = 'media/Reveal', - 'media/Stream' = 'media/Stream', - 'media/Stream/Detail' = 'media/Stream/Detail', - 'media/DashBoard' = 'media/DashBoard', - 'notice/Type' = 'notice/Type', - 'notice/Config' = 'notice/Config', - 'media/SplitScreen' = 'media/SplitScreen', - 'notice/Type/Config' = 'notice/Config', - 'notice/Config/Detail' = 'notice/Config/Detail', - 'notice/Template' = 'notice/Template', - 'notice/Template/Detail' = 'notice/Template/Detail', - 'rule-engine/DashBoard' = 'rule-engine/DashBoard', - 'rule-engine/Instance' = 'rule-engine/Instance', - 'rule-engine/SQLRule' = 'rule-engine/SQLRule', - 'rule-engine/Scene' = 'rule-engine/Scene', - 'rule-engine/Alarm/Log' = 'rule-engine/Alarm/Log', - 'rule-engine/Alarm/Log/Detail' = 'rule-engine/Alarm/Log/Detail', - 'rule-engine/Alarm/Config' = 'rule-engine/Alarm/Config', - 'rule-engine/Scene/Save' = 'rule-engine/Scene/Save', - 'rule-engine/Scene/Save2' = 'rule-engine/Scene/Save2', - 'rule-engine/Alarm/Configuration' = 'rule-engine/Alarm/Configuration', - 'rule-engine/Alarm/Configuration/Save' = 'rule-engine/Alarm/Configuration/Save', - 'simulator/Device' = 'simulator/Device', - 'system/DataSource' = 'system/DataSource', - 'system/DataSource/Management' = 'system/DataSource/Management', - 'system/Department/Assets' = 'system/Department/Assets', - 'system/Department/Member' = 'system/Department/Member', - 'system/Department' = 'system/Department', - 'system/Menu' = 'system/Menu', - 'system/Menu/Setting' = 'system/Menu/Setting', - 'system/OpenAPI' = 'system/OpenAPI', - 'system/Permission' = 'system/Permission', - 'system/Role/Detail' = 'system/Role/Detail', - 'system/Role' = 'system/Role', - 'system/Tenant/Detail/Assets' = 'system/Tenant/Detail/Assets', - 'system/Tenant/Detail/Info' = 'system/Tenant/Detail/Info', - 'system/Tenant/Detail/Member' = 'system/Tenant/Detail/Member', - 'system/Tenant/Detail/Permission' = 'system/Tenant/Detail/Permission', - 'system/Tenant/Detail' = 'system/Tenant/Detail', - 'system/Tenant' = 'system/Tenant', - 'system/User' = 'system/User', - 'system/Relationship' = 'system/Relationship', - 'system/Basis' = 'system/Basis', - 'user/Login' = 'user/Login', - 'visualization/Category' = 'visualization/Category', - 'visualization/Configuration' = 'visualization/Configuration', - 'visualization/Screen' = 'visualization/Screen', - 'device/Firmware' = 'device/Firmware', - 'device/Firmware/Task' = 'device/Firmware/Task', - 'device/Firmware/Task/Detail' = 'device/Firmware/Task/Detail', - 'device/Instance/Detail/Config/Tags' = 'device/Instance/Detail/Config/Tags', - 'device/Instance/Detail/Config' = 'device/Instance/Detail/Config', - 'device/Instance/Detail/Functions' = 'device/Instance/Detail/Functions', - 'device/Instance/Detail/Info' = 'device/Instance/Detail/Info', - 'device/Instance/Detail/Log' = 'device/Instance/Detail/Log', - 'device/Instance/Detail/MetadataLog/Event' = 'device/Instance/Detail/MetadataLog/Event', - 'device/Instance/Detail/MetadataLog/Property' = 'device/Instance/Detail/MetadataLog/Property', - 'device/Instance/Detail/Running' = 'device/Instance/Detail/Running', - 'device/Instance/Detail' = 'device/Instance/Detail', - 'device/Product/Detail/BaseInfo' = 'device/Product/Detail/BaseInfo', - 'device/Product/Detail' = 'device/Product/Detail', - 'link/AccessConfig/Detail' = 'link/AccessConfig/Detail', - 'link/DashBoard' = 'link/DashBoard', - 'system/Menu/Detail' = 'system/Menu/Detail', - 'system/Department/Detail' = 'system/Department/Detail', - 'link/Type/Detail' = 'link/Type/Detail', - 'account/Center' = 'account/Center', - 'account/NotificationSubscription' = 'account/NotificationSubscription', - 'account/NotificationRecord' = 'account/NotificationRecord', - 'account/Center/bind' = 'account/Center/bind', - 'Northbound/DuerOS' = 'Northbound/DuerOS', - 'Northbound/DuerOS/Detail' = 'Northbound/DuerOS/Detail', - 'Northbound/AliCloud' = 'Northbound/AliCloud', - 'Northbound/AliCloud/Detail' = 'Northbound/AliCloud/Detail', - 'system/Platforms' = 'system/Platforms', - 'system/Platforms/Api' = 'system/Platforms/Api', - 'system/Platforms/View' = 'system/Platforms/View', - 'system/Platforms/Setting' = 'system/Platforms/Setting', - 'system/Apply' = 'system/Apply', - 'system/Apply/Api' = 'system/Apply/Api', - 'system/Apply/View' = 'system/Apply/View', - 'system/License' = 'system/License', - 'iot-card/Home' = 'iot-card/Home', - 'iot-card/Platform' = 'iot-card/Platform', - 'iot-card/Platform/Detail' = 'iot-card/Platform/Detail', - 'iot-card/Recharge' = 'iot-card/Recharge', - 'iot-card/Dashboard' = 'iot-card/Dashboard', - 'iot-card/CardManagement' = 'iot-card/CardManagement', - 'iot-card/Record' = 'iot-card/Record', -} - -export type MENUS_CODE_TYPE = keyof typeof MENUS_CODE | string; - -export enum BUTTON_PERMISSION_ENUM { - 'add' = 'add', - 'delete' = 'delete', - 'import' = 'import', - 'view' = 'view', - 'export' = 'export', - 'update' = 'update', - 'action' = 'action', - 'push' = 'push', - 'assert' = 'assert', - 'bind-user' = 'bind-user', - 'active' = 'active', - 'sync' = 'sync', - 'channel' = 'channel', - 'debug' = 'debug', - 'log' = 'log', - 'tigger' = 'tigger', - 'empowerment' = 'empowerment', - 'bind' = 'bind', - 'edit' = 'edit', //资产权限编辑 - 'setting' = 'setting', //菜单配置 - 'password' = 'password', //重置密码 - 'api' = 'api', //查看api - 'manage' = 'manage', //数据源-管理 - 'stop' = 'stop', - 'restart' = 'restart', - 'pay' = 'pay', //充值 -} - -// 调试按钮、通知记录、批量导出、批量导入、选择通道、推送、分配资产、绑定用户对应的ID是啥 -export type CUSTOM_BUTTON = 'debug' | 'log' | 'channel' | 'assert' | 'bind-user'; - -export type BUTTON_PERMISSION = keyof typeof BUTTON_PERMISSION_ENUM | string | CUSTOM_BUTTON; - -export const getDetailNameByCode = { - 'system/Menu/Detail': '菜单详情', - 'device/Product/Detail': '产品详情', - 'device/Instance/Detail': '设备详情', - 'device/Firmware/Task/Detail': '详情', - 'system/Department/Detail': '组织详情', - 'system/Role/Detail': '权限配置', - 'link/Type/Detail': '网络组件详情', - 'link/AccessConfig/Detail': '配置详情', - 'media/Stream/Detail': '流媒体详情', - 'rule-engine/Alarm/Log/Detail': '告警日志', - 'Northbound/AliCloud/Detail': '阿里云详情', - 'link/Certificate/Detail': '证书详情', - 'iot-card/Platform/Detail': '平台对接详情', -}; - -// 开源版路由 -export const CommunityCodeList = [ - 'account/Center', - 'account/NotificationSubscription', - 'account/NotificationRecord', - 'system/Basis', - 'system/User', - 'system/Department', - 'system/Department/Detail', - 'system/Role', - 'system/Role/Detail', - 'system/Menu', - 'system/Menu/Detail', - 'system/Menu/Setting', - 'system/Permission', - 'system/Relationship', - 'home', - 'rule-engine/DashBoard', - 'rule-engine/Alarm/Configuration', - 'rule-engine/Alarm/Configuration/Save', - 'rule-engine/Alarm/Log', - 'rule-engine/Alarm/Log/Detail', - 'device/DashBoard', - 'device/Category', - 'device/Instance', - 'device/Instance/Detail', - 'device/Product', - 'device/Product/Detail', - 'link/AccessConfig', - 'link/AccessConfig/Detail', - 'link/Protocol', - 'link/DashBoard', - 'Log', - 'link/Type', - 'link/Type/Detail', - 'link/Certificate', - 'link/Certificate/Detail', - 'rule-engine/Scene', - 'rule-engine/Scene/Save', - 'notice/Config', - 'notice/Config/Detail', - 'notice/Template', - 'notice/Template/Detail', -]; diff --git a/src/store/permission.ts b/src/store/permission.ts index 075bced2..289d16a9 100644 --- a/src/store/permission.ts +++ b/src/store/permission.ts @@ -1,10 +1,9 @@ import { defineStore } from "pinia"; -import type { MENUS_CODE_TYPE, BUTTON_PERMISSION } from '@/router/router' export const usePermissionStore = defineStore({ id: 'permission', state: () => ({ - permissions: {} as {[key: MENUS_CODE_TYPE]: BUTTON_PERMISSION}, + permissions: {} as {[key: string]: string}, }), getters: { check(state) { diff --git a/src/utils/variable.ts b/src/utils/variable.ts index 591acb68..66af2141 100644 --- a/src/utils/variable.ts +++ b/src/utils/variable.ts @@ -2,4 +2,6 @@ export const BASE_API_PATH = import.meta.env.VITE_APP_BASE_API export const TOKEN_KEY = 'X-Access-Token' -export const Version_Code = 'version_code' \ No newline at end of file +export const Version_Code = 'version_code' + +export const NETWORK_CERTIFICATE_UPLOAD = '/network/certificate/upload' \ No newline at end of file diff --git a/src/views/demo/table/index.vue b/src/views/demo/table/index.vue new file mode 100644 index 00000000..c2986eb6 --- /dev/null +++ b/src/views/demo/table/index.vue @@ -0,0 +1,102 @@ + + + + + + + diff --git a/src/views/iot/home/components/BasicCountCard.vue b/src/views/home/components/BasicCountCard.vue similarity index 98% rename from src/views/iot/home/components/BasicCountCard.vue rename to src/views/home/components/BasicCountCard.vue index 7a76a942..44b11b0c 100644 --- a/src/views/iot/home/components/BasicCountCard.vue +++ b/src/views/home/components/BasicCountCard.vue @@ -42,6 +42,10 @@ import Pie from './Pie.vue'; const cpu = ref('20%'); const jvm = ref('31%'); +const getData = ()=>{ + +} + const jumpPage = () => {}; diff --git a/src/views/iot/home/components/BootCard.vue b/src/views/home/components/BootCard.vue similarity index 100% rename from src/views/iot/home/components/BootCard.vue rename to src/views/home/components/BootCard.vue diff --git a/src/views/iot/home/components/BootCardSmall.vue b/src/views/home/components/BootCardSmall.vue similarity index 100% rename from src/views/iot/home/components/BootCardSmall.vue rename to src/views/home/components/BootCardSmall.vue diff --git a/src/views/iot/home/components/ComprehensiveHome/index.vue b/src/views/home/components/ComprehensiveHome/index.vue similarity index 99% rename from src/views/iot/home/components/ComprehensiveHome/index.vue rename to src/views/home/components/ComprehensiveHome/index.vue index 98c137a6..764cb8c8 100644 --- a/src/views/iot/home/components/ComprehensiveHome/index.vue +++ b/src/views/home/components/ComprehensiveHome/index.vue @@ -186,5 +186,5 @@ const opsStepDetails = [ linkUrl: '/a', auth: false, }, -]; +] as recommendList[]; diff --git a/src/views/iot/home/components/DevOpsHome/index.vue b/src/views/home/components/DevOpsHome/index.vue similarity index 97% rename from src/views/iot/home/components/DevOpsHome/index.vue rename to src/views/home/components/DevOpsHome/index.vue index 13ad0155..be054ca0 100644 --- a/src/views/iot/home/components/DevOpsHome/index.vue +++ b/src/views/home/components/DevOpsHome/index.vue @@ -27,6 +27,7 @@ import BasicCountCard from '../BasicCountCard.vue'; import PlatformPicCard from '../PlatformPicCard.vue'; import StepCard from '../StepCard.vue'; +import {recommendList} from '../../index' // import {getImage} from '@/utils/comm' // 运维引导-数据 @@ -93,7 +94,7 @@ const stepDetails = [ linkUrl: '/a', auth: false, }, -]; +] as recommendList[]; diff --git a/src/views/home/components/dialogs/FuncTestDialog.vue b/src/views/home/components/dialogs/FuncTestDialog.vue new file mode 100644 index 00000000..3866a107 --- /dev/null +++ b/src/views/home/components/dialogs/FuncTestDialog.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/views/iot/home/index.d.ts b/src/views/home/index.d.ts similarity index 68% rename from src/views/iot/home/index.d.ts rename to src/views/home/index.d.ts index 7dd6cf9f..4dcabf2c 100644 --- a/src/views/iot/home/index.d.ts +++ b/src/views/home/index.d.ts @@ -12,4 +12,12 @@ export interface recommendList { export interface productItem { label: string; value: string +} + +export interface deviceInfo { + deviceId: string, + deviceName: string, + productName: string, + createTime: string, + status: boolean } \ No newline at end of file diff --git a/src/views/iot/home/index.vue b/src/views/home/index.vue similarity index 89% rename from src/views/iot/home/index.vue rename to src/views/home/index.vue index 7129a745..b0229d95 100644 --- a/src/views/iot/home/index.vue +++ b/src/views/home/index.vue @@ -6,7 +6,8 @@ - + +
@@ -16,6 +17,7 @@ import InitHome from './components/InitHome/index.vue'; import DeviceHome from './components/DeviceHome/index.vue'; import DevOpsHome from './components/DevOpsHome/index.vue'; import ComprehensiveHome from './components/ComprehensiveHome/index.vue'; +import ApiPage from '@/views/system/apiPage/index.vue' diff --git a/src/views/init-home/data/RoleData.ts b/src/views/init-home/data/RoleData.ts new file mode 100644 index 00000000..41ca3184 --- /dev/null +++ b/src/views/init-home/data/RoleData.ts @@ -0,0 +1,845 @@ +/** + * 内置角色数据 + */ +export enum ROLEKEYS { + 'device' = 'device', + 'link' = 'link', + 'complex' = 'complex', +} + +export type roleKeysType = keyof typeof ROLEKEYS; + +export const RoleData = { + [ROLEKEYS.device]: { + name: '设备接入岗', + description: '该角色负责设备接入模块的维护管理', + state: { text: '正常', value: 'enabled' }, + }, + [ROLEKEYS.link]: { + name: '运维管理岗', + description: '该角色负责系统运维模块的维护管理', + state: { text: '正常', value: 'enabled' }, + }, + [ROLEKEYS.complex]: { + name: '综合管理岗', + description: '该角色负责系统运维和设备接入模块的维护管理', + state: { text: '正常', value: 'enabled' }, + }, +}; + +export default { + [ROLEKEYS.device]: [ + { + id: '1-3-2', + parentId: '1-3', + path: 'T4zX-b4q8-o7Jy', + sortIndex: 2, + level: 1, + name: '产品', + code: 'device/Product', + icon: 'icon-chanpin', + url: '/iot/device/Product', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'export', + name: '导出', + enabled: true, + granted: true, + }, + { id: 'import', name: '导入', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + accessSupport: { text: '支持', value: 'support' }, + assetType: 'product', + assetAccesses: [ + { + supportId: 'ignore', + name: '全部数据', + enabled: false, + granted: false, + }, + { supportId: 'creator', name: '自己创建的', enabled: false, granted: false }, + { + supportId: 'org', + name: '所在组织', + enabled: false, + granted: false, + }, + { + supportId: 'org-include-children', + name: '所在组织及下级组织', + enabled: false, + granted: false, + }, + ], + options: { switch: true }, + createTime: 1659344075524, + accessDescription: '此菜单支持数据权限控制', + granted: true, + }, + { + id: '1-3-3', + parentId: '1-3', + path: 'T4zX-b4q8-xYd0', + sortIndex: 3, + level: 1, + name: '设备', + code: 'device/Instance', + icon: 'icon-shebei', + url: '/iot/device/Instance', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'export', + name: '导出', + enabled: true, + granted: true, + }, + { id: 'import', name: '导入', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + accessSupport: { text: '支持', value: 'support' }, + assetType: 'device', + assetAccesses: [ + { + supportId: 'ignore', + name: '全部数据', + enabled: false, + granted: false, + }, + { supportId: 'creator', name: '自己创建的', enabled: false, granted: false }, + { + supportId: 'org', + name: '所在组织', + enabled: false, + granted: false, + }, + { + supportId: 'org-include-children', + name: '所在组织及下级组织', + enabled: false, + granted: false, + }, + ], + options: { switch: true }, + createTime: 1659344075524, + accessDescription: '此菜单支持数据权限控制', + granted: true, + }, + { + id: '1-3-4', + parentId: '1-3', + path: 'T4zX-b4q8-8ZFx', + sortIndex: 4, + level: 3, + name: '产品分类', + code: 'device/Category', + icon: 'icon-chanpinfenlei1', + url: '/iot/device/Category', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + assetAccesses: [], + options: { switch: true }, + createTime: 1659344075524, + granted: true, + }, + ], + [ROLEKEYS.link]: [ + { + id: '1-4-2', + parentId: '1-4', + path: 'T4zX-A0TC-UlSD', + sortIndex: 2, + level: 3, + name: '设备接入网关', + code: 'link/AccessConfig', + icon: 'icon-wangguanzishebei', + url: '/iot/link/accessConfig', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-3', + parentId: '1-4', + path: 'T4zX-A0TC-ctFm', + sortIndex: 3, + level: 3, + name: '协议管理', + code: 'link/Protocol', + icon: 'icon-tongzhiguanli', + url: '/iot/link/protocol', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-5', + parentId: '1-4', + path: 'T4zX-A0TC-fDic', + sortIndex: 5, + level: 3, + name: '网络组件', + code: 'link/Type', + icon: 'icon-wangluozujian', + url: '/iot/link/type', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-6', + parentId: '1-4', + path: 'T4zX-A0TC-bBs5', + sortIndex: 6, + level: 3, + name: '证书管理', + code: 'link/Certificate', + icon: 'icon-rizhifuwu', + url: '/iot/link/Certificate', + buttons: [ + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-7', + parentId: '1-4', + path: 'T4zX-A0TC-VilV', + sortIndex: 7, + level: 3, + name: '流媒体服务', + code: 'media/Stream', + icon: 'icon-xuanzetongdao1', + url: '/iot/link/Stream', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-8-1', + parentId: '1-4-8', + path: 'T4zX-A0TC-GIE8-3Op3', + sortIndex: 1, + level: 4, + name: 'OPC UA', + code: 'link/Channel/Opcua', + icon: 'icon-zhilianshebei', + url: '/iot/link/Channel/Opcua', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-8-2', + parentId: '1-4-8', + path: 'T4zX-A0TC-GIE8-79SB', + sortIndex: 2, + level: 4, + name: 'Modbus', + code: 'link/Channel/Modbus', + icon: 'icon-changjingliandong', + url: '/iot/link/Channel/Modbus', + buttons: [ + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-9', + parentId: '1-4', + path: 'T4zX-A0TC-BFum', + sortIndex: 9999, + level: 1, + name: '远程升级', + code: 'device/Firmware', + icon: 'icon-wangluozujian', + url: '/iot/link/firmware', + buttons: [ + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + accessSupport: { text: '不支持', value: 'unsupported' }, + assetAccesses: [], + options: {}, + createTime: 1659344075524, + accessDescription: '此菜单不支持数据权限控制', + granted: true, + }, + ], + [ROLEKEYS.complex]: [ + { + id: '1-3-2', + parentId: '1-3', + path: 'T4zX-b4q8-o7Jy', + sortIndex: 2, + level: 1, + name: '产品', + code: 'device/Product', + icon: 'icon-chanpin', + url: '/iot/device/Product', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'export', + name: '导出', + enabled: true, + granted: true, + }, + { id: 'import', name: '导入', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + accessSupport: { text: '支持', value: 'support' }, + assetType: 'product', + assetAccesses: [ + { + supportId: 'ignore', + name: '全部数据', + enabled: false, + granted: false, + }, + { supportId: 'creator', name: '自己创建的', enabled: false, granted: false }, + { + supportId: 'org', + name: '所在组织', + enabled: false, + granted: false, + }, + { + supportId: 'org-include-children', + name: '所在组织及下级组织', + enabled: false, + granted: false, + }, + ], + options: { switch: true }, + createTime: 1659344075524, + accessDescription: '此菜单支持数据权限控制', + granted: true, + }, + { + id: '1-3-3', + parentId: '1-3', + path: 'T4zX-b4q8-xYd0', + sortIndex: 3, + level: 1, + name: '设备', + code: 'device/Instance', + icon: 'icon-shebei', + url: '/iot/device/Instance', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'export', + name: '导出', + enabled: true, + granted: true, + }, + { id: 'import', name: '导入', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + accessSupport: { text: '支持', value: 'support' }, + assetType: 'device', + assetAccesses: [ + { + supportId: 'ignore', + name: '全部数据', + enabled: false, + granted: false, + }, + { supportId: 'creator', name: '自己创建的', enabled: false, granted: false }, + { + supportId: 'org', + name: '所在组织', + enabled: false, + granted: false, + }, + { + supportId: 'org-include-children', + name: '所在组织及下级组织', + enabled: false, + granted: false, + }, + ], + options: { switch: true }, + createTime: 1659344075524, + accessDescription: '此菜单支持数据权限控制', + granted: true, + }, + { + id: '1-3-4', + parentId: '1-3', + path: 'T4zX-b4q8-8ZFx', + sortIndex: 4, + level: 3, + name: '产品分类', + code: 'device/Category', + icon: 'icon-chanpinfenlei1', + url: '/iot/device/Category', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + assetAccesses: [], + options: { switch: true }, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-2', + parentId: '1-4', + path: 'T4zX-A0TC-UlSD', + sortIndex: 2, + level: 3, + name: '设备接入网关', + code: 'link/AccessConfig', + icon: 'icon-wangguanzishebei', + url: '/iot/link/accessConfig', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'action', name: '启/禁用', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-3', + parentId: '1-4', + path: 'T4zX-A0TC-ctFm', + sortIndex: 3, + level: 3, + name: '协议管理', + code: 'link/Protocol', + icon: 'icon-tongzhiguanli', + url: '/iot/link/protocol', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-5', + parentId: '1-4', + path: 'T4zX-A0TC-fDic', + sortIndex: 5, + level: 3, + name: '网络组件', + code: 'link/Type', + icon: 'icon-wangluozujian', + url: '/iot/link/type', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-6', + parentId: '1-4', + path: 'T4zX-A0TC-bBs5', + sortIndex: 6, + level: 3, + name: '证书管理', + code: 'link/Certificate', + icon: 'icon-rizhifuwu', + url: '/iot/link/Certificate', + buttons: [ + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'update', + name: '编辑', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-7', + parentId: '1-4', + path: 'T4zX-A0TC-VilV', + sortIndex: 7, + level: 3, + name: '流媒体服务', + code: 'media/Stream', + icon: 'icon-xuanzetongdao1', + url: '/iot/link/Stream', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-8-1', + parentId: '1-4-8', + path: 'T4zX-A0TC-GIE8-3Op3', + sortIndex: 1, + level: 4, + name: 'OPC UA', + code: 'link/Channel/Opcua', + icon: 'icon-zhilianshebei', + url: '/iot/link/Channel/Opcua', + buttons: [ + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-8-2', + parentId: '1-4-8', + path: 'T4zX-A0TC-GIE8-79SB', + sortIndex: 2, + level: 4, + name: 'Modbus', + code: 'link/Channel/Modbus', + icon: 'icon-changjingliandong', + url: '/iot/link/Channel/Modbus', + buttons: [ + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'view', name: '查看', enabled: true, granted: true }, + { + id: 'delete', + name: '删除', + enabled: true, + granted: true, + }, + { id: 'add', name: '新增', enabled: true, granted: true }, + ], + assetAccesses: [], + options: {}, + createTime: 1659344075524, + granted: true, + }, + { + id: '1-4-9', + parentId: '1-4', + path: 'T4zX-A0TC-BFum', + sortIndex: 9999, + level: 1, + name: '远程升级', + code: 'device/Firmware', + icon: 'icon-wangluozujian', + url: '/iot/link/firmware', + buttons: [ + { id: 'update', name: '编辑', enabled: true, granted: true }, + { + id: 'action', + name: '启/禁用', + enabled: true, + granted: true, + }, + { id: 'delete', name: '删除', enabled: true, granted: true }, + { + id: 'add', + name: '新增', + enabled: true, + granted: true, + }, + ], + accessSupport: { text: '不支持', value: 'unsupported' }, + assetAccesses: [], + options: {}, + createTime: 1659344075524, + accessDescription: '此菜单不支持数据权限控制', + granted: true, + }, + ], +}; diff --git a/src/views/init-home/data/interface.ts b/src/views/init-home/data/interface.ts new file mode 100644 index 00000000..bc5345c8 --- /dev/null +++ b/src/views/init-home/data/interface.ts @@ -0,0 +1,33 @@ +/** 初始化数据提交表单 */ +export interface modalState { + host: string; // 本地地址 + port: string; // 本地端口 + publicHost: string; // 公网地址 + publicPort: number | null; // 公网端口 + rules: Record; +} + +/**基本信息表单 */ +export interface formState { + title: string; // 系统名称 + headerTheme: string; // 主题色 + apikey: string; // 高德 API key + basePath: string; // 系统后台访问的URL + logo: string; // 系统logo + icon: string; // 浏览器页签 + rulesFrom: Record; +} + +/** + * logo上传表当 + */ +export interface logoState { + logoValue: string; + logoLoading: boolean; + inLogo: boolean; + inIcon: boolean; + inBackground: boolean; + iconValue: string; + backValue: string; + handleChangeLogo:(url: string) => void +} \ No newline at end of file diff --git a/src/views/init-home/index.vue b/src/views/init-home/index.vue new file mode 100644 index 00000000..bfada546 --- /dev/null +++ b/src/views/init-home/index.vue @@ -0,0 +1,1117 @@ + + + + diff --git a/src/views/iot/home/components/dialogs/AccessMethodDialog.vue b/src/views/iot/home/components/dialogs/AccessMethodDialog.vue deleted file mode 100644 index 5584e72f..00000000 --- a/src/views/iot/home/components/dialogs/AccessMethodDialog.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - diff --git a/src/views/link/Certificate/Detail/CertificateFile.vue b/src/views/link/Certificate/Detail/CertificateFile.vue index 8fe1c399..b6ffb26c 100644 --- a/src/views/link/Certificate/Detail/CertificateFile.vue +++ b/src/views/link/Certificate/Detail/CertificateFile.vue @@ -1,88 +1,91 @@ - - + diff --git a/src/views/link/Certificate/Detail/index.vue b/src/views/link/Certificate/Detail/index.vue index 8e13d335..ec301a57 100644 --- a/src/views/link/Certificate/Detail/index.vue +++ b/src/views/link/Certificate/Detail/index.vue @@ -11,18 +11,9 @@ :wrapper-col="{ span: 16 }" autocomplete="off" @finish="onFinish" - @finishFailed="onFinishFailed" + :rules="formRules" > - + - + - + - + @@ -117,46 +87,73 @@ - - diff --git a/src/views/system/apiPage/index.vue b/src/views/system/apiPage/index.vue new file mode 100644 index 00000000..92339a94 --- /dev/null +++ b/src/views/system/apiPage/index.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/src/views/table/index.vue b/src/views/table/index.vue deleted file mode 100644 index 0684d3d0..00000000 --- a/src/views/table/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - diff --git a/tsconfig.json b/tsconfig.json index 85e86e89..8e66e706 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,8 +18,9 @@ "paths": { "@/*": ["./src/*"] }, - "types": ["ant-design-vue/typings/global"] + "types": ["ant-design-vue/typings/global"], + "suppressImplicitAnyIndexErrors": true }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], - "references": [{ "path": "./tsconfig.node.json" }] + "references": [{ "path": "./tsconfig.node.json" }], } diff --git a/yarn.lock b/yarn.lock index ed3e1563..1965cb63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -34,6 +34,14 @@ "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + "@ant-design/colors@^6.0.0": version "6.0.0" resolved "https://registry.npmmirror.com/@ant-design/colors/-/colors-6.0.0.tgz" @@ -287,6 +295,29 @@ "@babel/helper-plugin-utils" "^7.20.2" "@babel/plugin-syntax-typescript" "^7.20.0" +"@babel/plugin-syntax-jsx@^7.0.0": + version "7.18.6" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" + integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-syntax-typescript@^7.20.0": + version "7.20.0" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" + integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.19.0" + +"@babel/plugin-transform-typescript@^7.20.2": + version "7.20.7" + resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.7.tgz#673f49499cd810ae32a1ea5f3f8fab370987e055" + integrity sha512-m3wVKEvf6SoszD8pu4NZz3PvfKRCMgk6D6d0Qi9hNnlM5M6CFS92EgF4EiHVLKbU0r/r7ty1hg7NPZwE7WRbYw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.20.7" + "@babel/helper-plugin-utils" "^7.20.2" + "@babel/plugin-syntax-typescript" "^7.20.0" + "@babel/runtime@^7.10.5": version "7.20.7" resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.20.7.tgz" @@ -496,6 +527,40 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" +"@babel/template@^7.0.0", "@babel/template@^7.18.10", "@babel/template@^7.20.7": + version "7.20.7" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" + integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + +"@babel/traverse@^7.0.0", "@babel/traverse@^7.20.10", "@babel/traverse@^7.20.12", "@babel/traverse@^7.20.7": + version "7.20.12" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz#7f0f787b3a67ca4475adef1f56cb94f6abd4a4b5" + integrity sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.20.7" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.20.7" + "@babel/types" "^7.20.7" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.20.7": + version "7.20.7" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f" + integrity sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg== + dependencies: + "@babel/helper-string-parser" "^7.19.4" + "@babel/helper-validator-identifier" "^7.19.1" + to-fast-properties "^2.0.0" + "@ctrl/tinycolor@^3.4.0": version "3.5.0" resolved "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.5.0.tgz" @@ -815,6 +880,15 @@ "@babel/plugin-transform-typescript" "^7.20.2" "@vue/babel-plugin-jsx" "^1.1.1" +"@vitejs/plugin-vue-jsx@^3.0.0": + version "3.0.0" + resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-3.0.0.tgz#42e89d6d9eb89604d109ff9a615d77c3c080dd25" + integrity sha512-vurkuzgac5SYuxd2HUZqAFAWGTF10diKBwJNbCvnWijNZfXd+7jMtqjPFbGt7idOJUn584fP1Ar9j/GN2jQ3Ew== + dependencies: + "@babel/core" "^7.20.5" + "@babel/plugin-transform-typescript" "^7.20.2" + "@vue/babel-plugin-jsx" "^1.1.1" + "@vitejs/plugin-vue@^4.0.0": version "4.0.0" resolved "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.0.0.tgz"