ace-front-end 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +8 -0
- package/.hintrc +9 -0
- package/.run/build-app-bolts.run.xml +12 -0
- package/.run/build-app-manager-ui.run.xml +12 -0
- package/.run/build-cloud-shell.run.xml +12 -0
- package/.run/build-element-plus-component.run.xml +12 -0
- package/.run/build-monnolith-shell.run.xml +12 -0
- package/.run/dev-app-manager.run.xml +12 -0
- package/.run/dev-monolith-shell.run.xml +12 -0
- package/README.md +59 -0
- package/ace-app-bolts-ui/.eslintrc.cjs +15 -0
- package/ace-app-bolts-ui/.vscode/extensions.json +3 -0
- package/ace-app-bolts-ui/.vscode/settings.json +27 -0
- package/ace-app-bolts-ui/folder-alias.json +1 -0
- package/ace-app-bolts-ui/package.json +76 -0
- package/ace-app-bolts-ui/src/api/apiCache.ts +26 -0
- package/ace-app-bolts-ui/src/api/appService/aceInstall.ts +29 -0
- package/ace-app-bolts-ui/src/api/appService/appAdmin.ts +58 -0
- package/ace-app-bolts-ui/src/api/appService/appInstance.ts +186 -0
- package/ace-app-bolts-ui/src/api/appService/appMessage.ts +123 -0
- package/ace-app-bolts-ui/src/api/appService/appRoute.ts +128 -0
- package/ace-app-bolts-ui/src/api/appService/appService.ts +135 -0
- package/ace-app-bolts-ui/src/api/appService/appSetting.ts +163 -0
- package/ace-app-bolts-ui/src/api/appService/appSettingGroup.ts +129 -0
- package/ace-app-bolts-ui/src/api/appService/appliedPasswordPolicy.ts +77 -0
- package/ace-app-bolts-ui/src/api/appService/eventCompensation.ts +61 -0
- package/ace-app-bolts-ui/src/api/appService/externalApp.ts +209 -0
- package/ace-app-bolts-ui/src/api/auditService/auditLog.ts +63 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowComment.ts +76 -0
- package/ace-app-bolts-ui/src/api/bizFlow/flowDefinition.ts +321 -0
- package/ace-app-bolts-ui/src/api/bizFlow/taskQuery.ts +91 -0
- package/ace-app-bolts-ui/src/api/domainModel/aggregate.ts +107 -0
- package/ace-app-bolts-ui/src/api/domainModel/command.ts +257 -0
- package/ace-app-bolts-ui/src/api/domainModel/constraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataScope.ts +84 -0
- package/ace-app-bolts-ui/src/api/domainModel/dataSource.ts +194 -0
- package/ace-app-bolts-ui/src/api/domainModel/dto.ts +243 -0
- package/ace-app-bolts-ui/src/api/domainModel/dtoConstraint.ts +101 -0
- package/ace-app-bolts-ui/src/api/domainModel/entity.ts +207 -0
- package/ace-app-bolts-ui/src/api/domainModel/enum.ts +170 -0
- package/ace-app-bolts-ui/src/api/domainModel/indexDef.ts +82 -0
- package/ace-app-bolts-ui/src/api/domainModel/query.ts +292 -0
- package/ace-app-bolts-ui/src/api/domainModel/release.ts +97 -0
- package/ace-app-bolts-ui/src/api/fileService/fileConfiguration.ts +161 -0
- package/ace-app-bolts-ui/src/api/fileService/fileStorage.ts +165 -0
- package/ace-app-bolts-ui/src/api/fileService/files.ts +207 -0
- package/ace-app-bolts-ui/src/api/idGenService/leafSegment.ts +55 -0
- package/ace-app-bolts-ui/src/api/idGenService/stringIdTemplate.ts +170 -0
- package/ace-app-bolts-ui/src/api/orgService/customGroup.ts +73 -0
- package/ace-app-bolts-ui/src/api/orgService/department.ts +186 -0
- package/ace-app-bolts-ui/src/api/orgService/departmentAttrDef.ts +90 -0
- package/ace-app-bolts-ui/src/api/orgService/group.ts +249 -0
- package/ace-app-bolts-ui/src/api/orgService/realm.ts +70 -0
- package/ace-app-bolts-ui/src/api/orgService/resourceScope.ts +132 -0
- package/ace-app-bolts-ui/src/api/orgService/role.ts +145 -0
- package/ace-app-bolts-ui/src/api/orgService/roleCategory.ts +77 -0
- package/ace-app-bolts-ui/src/api/orgService/session.ts +74 -0
- package/ace-app-bolts-ui/src/api/orgService/user.ts +1187 -0
- package/ace-app-bolts-ui/src/api/orgService/userAttrDef.ts +86 -0
- package/ace-app-bolts-ui/src/api/orgService/userAvatar.ts +32 -0
- package/ace-app-bolts-ui/src/api/pushService/MessageTemplate.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/MessengerTemplateMap.ts +68 -0
- package/ace-app-bolts-ui/src/api/pushService/channel.ts +109 -0
- package/ace-app-bolts-ui/src/api/pushService/messenger.ts +82 -0
- package/ace-app-bolts-ui/src/api/pushService/sockJs.ts +43 -0
- package/ace-app-bolts-ui/src/api/pushService/soketIo.ts +50 -0
- package/ace-app-bolts-ui/src/api/pushService/userSubscription.ts +62 -0
- package/ace-app-bolts-ui/src/global.ts +238 -0
- package/ace-app-bolts-ui/src/http/IAceAxios.ts +183 -0
- package/ace-app-bolts-ui/src/http/types.ts +154 -0
- package/ace-app-bolts-ui/src/http/useAxios.ts +42 -0
- package/ace-app-bolts-ui/src/http/useLoading.ts +18 -0
- package/ace-app-bolts-ui/src/index.ts +250 -0
- package/ace-app-bolts-ui/src/locales/i18nLoader.ts +42 -0
- package/ace-app-bolts-ui/src/locales/setupI18n.ts +77 -0
- package/ace-app-bolts-ui/src/locales/useLocale.ts +70 -0
- package/ace-app-bolts-ui/src/models/AppBridge.ts +68 -0
- package/ace-app-bolts-ui/src/models/EntityBase.ts +10 -0
- package/ace-app-bolts-ui/src/models/LinkTreeNodeAddParam.ts +9 -0
- package/ace-app-bolts-ui/src/models/Page.ts +49 -0
- package/ace-app-bolts-ui/src/models/PageModel.ts +30 -0
- package/ace-app-bolts-ui/src/models/ProjectedSortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/ProjectedUser.ts +17 -0
- package/ace-app-bolts-ui/src/models/Roles.ts +223 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNode.ts +21 -0
- package/ace-app-bolts-ui/src/models/SortPathTreeNodeAddParam.ts +13 -0
- package/ace-app-bolts-ui/src/models/SysSetting.ts +35 -0
- package/ace-app-bolts-ui/src/models/SystemSetting.ts +0 -0
- package/ace-app-bolts-ui/src/models/appService/AceInstallInfo.ts +43 -0
- package/ace-app-bolts-ui/src/models/appService/AppAdmin.ts +71 -0
- package/ace-app-bolts-ui/src/models/appService/AppInstance.ts +210 -0
- package/ace-app-bolts-ui/src/models/appService/AppMessage.ts +64 -0
- package/ace-app-bolts-ui/src/models/appService/AppRouter.ts +121 -0
- package/ace-app-bolts-ui/src/models/appService/AppService.ts +113 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettingGroup.ts +81 -0
- package/ace-app-bolts-ui/src/models/appService/AppSettings.ts +163 -0
- package/ace-app-bolts-ui/src/models/appService/AppliedPasswordPolicy.ts +87 -0
- package/ace-app-bolts-ui/src/models/appService/ExternalApp.ts +272 -0
- package/ace-app-bolts-ui/src/models/appService/FailedEvent.ts +85 -0
- package/ace-app-bolts-ui/src/models/auditService/Audit.ts +160 -0
- package/ace-app-bolts-ui/src/models/bizFlow/CandidateNode.ts +43 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowCommentDto.ts +45 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowDefinitionDto.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowInstanceDto.ts +84 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowProcessRequest.ts +80 -0
- package/ace-app-bolts-ui/src/models/bizFlow/FlowVariableValueDto.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeInstanceDto.ts +56 -0
- package/ace-app-bolts-ui/src/models/bizFlow/NodeLinkDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ProjectedFlowDefinitionDto.ts +62 -0
- package/ace-app-bolts-ui/src/models/bizFlow/ReplyCommentCommand.ts +47 -0
- package/ace-app-bolts-ui/src/models/bizFlow/SearchFlowDefinitionDto.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/TaskInstanceDto.ts +57 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/AbstractNode.ts +37 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CancelCheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckinFlowDefinitionCommand.ts +26 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CheckoutFlowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/CreateFlowDefinitionCommand.ts +58 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/DeleteWorkflowDefinitionCommand.ts +18 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/EndNode.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Flow.ts +95 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/ForwardCriteria.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Link.ts +40 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/StartNode.ts +82 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/TaskNode.ts +180 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/UpdateFlowModelCommand.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/Variable.ts +33 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/index.ts +24 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BaseParty.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyAll.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByGroup.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyByUserAttribute.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyCustomFilter.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyEntityOfDeptSpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyHasRole.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInDept.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInInitiatorEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyInitiator.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfElResult.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevNode.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfPrevOwnerEntityDept.ts +16 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartyOfSpecificNode.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecific.ts +23 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecificNodeEntityDept.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByGroupVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/BasePartySpecifiedByVariable.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/ConditionalParty.ts +29 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/MergeParty.ts +25 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/Party.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/party/index.ts +31 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AbstractCompareRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/AndOrRule.ts +28 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/BizRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ExpressionRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/IsNullOrEmptyRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NotRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/NumberCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/ReferencedRule.ts +20 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/StringCompareRule.ts +21 -0
- package/ace-app-bolts-ui/src/models/bizFlow/definition/rule/index.ts +15 -0
- package/ace-app-bolts-ui/src/models/bizFlow/enums.ts +219 -0
- package/ace-app-bolts-ui/src/models/bizFlow/index.ts +21 -0
- package/ace-app-bolts-ui/src/models/domainModel/index.ts +4145 -0
- package/ace-app-bolts-ui/src/models/expr/ExpressionBuilder.ts +654 -0
- package/ace-app-bolts-ui/src/models/expr/Interfaces.ts +1081 -0
- package/ace-app-bolts-ui/src/models/expr/impls/agg.ts +192 -0
- package/ace-app-bolts-ui/src/models/expr/impls/any.ts +92 -0
- package/ace-app-bolts-ui/src/models/expr/impls/base.ts +24 -0
- package/ace-app-bolts-ui/src/models/expr/impls/bool.ts +321 -0
- package/ace-app-bolts-ui/src/models/expr/impls/collection.ts +14 -0
- package/ace-app-bolts-ui/src/models/expr/impls/constant.ts +85 -0
- package/ace-app-bolts-ui/src/models/expr/impls/dateTime.ts +59 -0
- package/ace-app-bolts-ui/src/models/expr/impls/nullfun.ts +170 -0
- package/ace-app-bolts-ui/src/models/expr/impls/num.ts +75 -0
- package/ace-app-bolts-ui/src/models/expr/impls/path.ts +317 -0
- package/ace-app-bolts-ui/src/models/expr/impls/strfun.ts +112 -0
- package/ace-app-bolts-ui/src/models/expr/impls/subQuery.ts +211 -0
- package/ace-app-bolts-ui/src/models/expr/impls/when.ts +125 -0
- package/ace-app-bolts-ui/src/models/expr/mixins.ts +1946 -0
- package/ace-app-bolts-ui/src/models/expr/querySpecification.ts +136 -0
- package/ace-app-bolts-ui/src/models/fileService/index.ts +1060 -0
- package/ace-app-bolts-ui/src/models/idGenService/LeafSegment.ts +48 -0
- package/ace-app-bolts-ui/src/models/idGenService/StringIdTemplate.ts +199 -0
- package/ace-app-bolts-ui/src/models/orgService/CustomGroup.ts +62 -0
- package/ace-app-bolts-ui/src/models/orgService/Department.ts +125 -0
- package/ace-app-bolts-ui/src/models/orgService/DepartmentAttributeDef.ts +121 -0
- package/ace-app-bolts-ui/src/models/orgService/Group.ts +244 -0
- package/ace-app-bolts-ui/src/models/orgService/Realm.ts +34 -0
- package/ace-app-bolts-ui/src/models/orgService/Role.ts +284 -0
- package/ace-app-bolts-ui/src/models/orgService/Session.ts +33 -0
- package/ace-app-bolts-ui/src/models/orgService/User.ts +650 -0
- package/ace-app-bolts-ui/src/models/orgService/UserAttributeDef.ts +53 -0
- package/ace-app-bolts-ui/src/models/orgService/dsl.ts +254 -0
- package/ace-app-bolts-ui/src/models/pushService/Messenger.ts +519 -0
- package/ace-app-bolts-ui/src/settings/cacheSetting.ts +20 -0
- package/ace-app-bolts-ui/src/settings/localeSetting.ts +133 -0
- package/ace-app-bolts-ui/src/stores/index.ts +19 -0
- package/ace-app-bolts-ui/src/stores/loginUserStore.ts +35 -0
- package/ace-app-bolts-ui/src/stores/useEnums.ts +45 -0
- package/ace-app-bolts-ui/src/utils/LRUCache.ts +52 -0
- package/ace-app-bolts-ui/src/utils/cache/index.ts +50 -0
- package/ace-app-bolts-ui/src/utils/cache/storageCache.ts +124 -0
- package/ace-app-bolts-ui/src/utils/cipher.ts +81 -0
- package/ace-app-bolts-ui/src/utils/common.ts +13 -0
- package/ace-app-bolts-ui/src/utils/treeSort.ts +0 -0
- package/ace-app-bolts-ui/src/vite-env.d.ts +2 -0
- package/ace-app-bolts-ui/tsconfig.json +22 -0
- package/ace-app-bolts-ui/tsconfig.tsbuildinfo +1 -0
- package/ace-app-manager-ui/.env +5 -0
- package/ace-app-manager-ui/.env.development +1 -0
- package/ace-app-manager-ui/.env.production +1 -0
- package/ace-app-manager-ui/.eslintrc.cjs +48 -0
- package/ace-app-manager-ui/README.md +18 -0
- package/ace-app-manager-ui/auto-imports.d.ts +11 -0
- package/ace-app-manager-ui/components.d.ts +118 -0
- package/ace-app-manager-ui/customVitePlugin.d.ts +6 -0
- package/ace-app-manager-ui/customVitePlugin.js +37 -0
- package/ace-app-manager-ui/customVitePlugin.ts +44 -0
- package/ace-app-manager-ui/index.html +12 -0
- package/ace-app-manager-ui/jsconfig.json +19 -0
- package/ace-app-manager-ui/package.json +66 -0
- package/ace-app-manager-ui/src/App.vue +32 -0
- package/ace-app-manager-ui/src/assets/baseData/AppManageMenu.ts +284 -0
- package/ace-app-manager-ui/src/assets/baseData/GlobalManageMenu.ts +75 -0
- package/ace-app-manager-ui/src/assets/logo.png +0 -0
- package/ace-app-manager-ui/src/assets/scss/element/element-var.scss +1117 -0
- package/ace-app-manager-ui/src/assets/scss/element/index.scss +72 -0
- package/ace-app-manager-ui/src/assets/scss/normalize.scss +524 -0
- package/ace-app-manager-ui/src/assets/scss/vars.scss +12 -0
- package/ace-app-manager-ui/src/components/appSelector/Index.vue +23 -0
- package/ace-app-manager-ui/src/components/departmentPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/departmentPicker/src/SinglePicker.vue +102 -0
- package/ace-app-manager-ui/src/components/departmentSelector/index.ts +4 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/SingleSelector.vue +123 -0
- package/ace-app-manager-ui/src/components/departmentSelector/src/consts.ts +2 -0
- package/ace-app-manager-ui/src/components/enumPicker/EnumPicker.vue +57 -0
- package/ace-app-manager-ui/src/components/fieldControl/index.ts +2 -0
- package/ace-app-manager-ui/src/components/fieldControl/src/FieldControl.vue +130 -0
- package/ace-app-manager-ui/src/components/header/ManageHeader.vue +43 -0
- package/ace-app-manager-ui/src/components/icon/JaIcon.vue +50 -0
- package/ace-app-manager-ui/src/components/icon/svg/SvgIcon.vue +56 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/index.ts +7 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/IconColorPicker.vue +104 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/ColorPicker.vue +128 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/colorPicker/baseData/colors.ts +155 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/IconPicker.vue +221 -0
- package/ace-app-manager-ui/src/components/iconColorPicker/src/iconPicker/baseData/icons.json +1364 -0
- package/ace-app-manager-ui/src/components/multipleSelector/MultipleSelector.vue +136 -0
- package/ace-app-manager-ui/src/components/pages/AppEnter.vue +358 -0
- package/ace-app-manager-ui/src/components/pages/PageEnter.vue +227 -0
- package/ace-app-manager-ui/src/components/pages/components/topBar.vue +93 -0
- package/ace-app-manager-ui/src/components/realmPicker/index.ts +3 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/RealmPicker.vue +194 -0
- package/ace-app-manager-ui/src/components/realmPicker/src/components/RealmEditor.vue +149 -0
- package/ace-app-manager-ui/src/components/roleSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/roleSelector/src/RoleMultiSelector.vue +194 -0
- package/ace-app-manager-ui/src/components/settingValueEditor/ValueEditor.vue +180 -0
- package/ace-app-manager-ui/src/components/subPage/index.ts +3 -0
- package/ace-app-manager-ui/src/components/subPage/src/SubPage.vue +90 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/index.ts +3 -0
- package/ace-app-manager-ui/src/components/userGroupSelector/src/UserGroupMultiSelector.vue +131 -0
- package/ace-app-manager-ui/src/hooks/useAppState.ts +31 -0
- package/ace-app-manager-ui/src/hooks/useDateFormats.ts +34 -0
- package/ace-app-manager-ui/src/hooks/usePageSize.ts +1 -0
- package/ace-app-manager-ui/src/hooks/useRealms.ts +27 -0
- package/ace-app-manager-ui/src/hooks/useUserQuery.ts +133 -0
- package/ace-app-manager-ui/src/init.ts +18 -0
- package/ace-app-manager-ui/src/locales/lang/en/common.json +3 -0
- package/ace-app-manager-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/en.ts +14 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/common.json +218 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-app-manager-ui/src/locales/lang/zh-CN.ts +13 -0
- package/ace-app-manager-ui/src/locales/setupI18n.ts +14 -0
- package/ace-app-manager-ui/src/main.ts +114 -0
- package/ace-app-manager-ui/src/public-path.js +10 -0
- package/ace-app-manager-ui/src/router/index.ts +33 -0
- package/ace-app-manager-ui/src/router/modules/appRoutes.ts +24 -0
- package/ace-app-manager-ui/src/router/modules/demoRoutes.ts +22 -0
- package/ace-app-manager-ui/src/router/routes.ts +690 -0
- package/ace-app-manager-ui/src/stores/index.ts +3 -0
- package/ace-app-manager-ui/src/stores/modules/locale.ts +60 -0
- package/ace-app-manager-ui/src/stores/modules/system.ts +51 -0
- package/ace-app-manager-ui/src/types/ext.d.ts +13 -0
- package/ace-app-manager-ui/src/types/style.d.ts +7 -0
- package/ace-app-manager-ui/src/types/window.d.ts +24 -0
- package/ace-app-manager-ui/src/utils/index.ts +7 -0
- package/ace-app-manager-ui/src/utils/vxeTable.ts +58 -0
- package/ace-app-manager-ui/src/vars.scss +12 -0
- package/ace-app-manager-ui/src/views/appManage/AppManage.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/appInfo/AppInfo.vue +309 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/AppRelease.vue +181 -0
- package/ace-app-manager-ui/src/views/appManage/appRelease/components/Editor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/AppRouter.vue +381 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/base/index.ts +204 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/Editor.vue +368 -0
- package/ace-app-manager-ui/src/views/appManage/appRouter/components/MenuSelector.vue +12 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/AssignAppAdmin.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/assignAppAdmin/components/Editor.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/Index.vue +53 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandEditor.vue +209 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CommandParamEditor.vue +246 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/CreateEntityOperationsEditor.vue +90 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/commandDefine/components/RightPanel.vue +249 -0
- package/ace-app-manager-ui/src/views/appManage/components/AppManageLayout.vue +94 -0
- package/ace-app-manager-ui/src/views/appManage/components/GlobalUserGroupSingleSelector.vue +124 -0
- package/ace-app-manager-ui/src/views/appManage/components/SelectRealmForApp.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/components/ServiceSelector.vue +34 -0
- package/ace-app-manager-ui/src/views/appManage/components/SubMenu.vue +32 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupAuthSFC.vue +453 -0
- package/ace-app-manager-ui/src/views/appManage/components/UserGroupSingleSelector.vue +115 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/ConfigDefine.vue +392 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/GroupEditor.vue +133 -0
- package/ace-app-manager-ui/src/views/appManage/configDefine/SettingEditor.vue +231 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/DataSourceDefine.vue +198 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/createNewDidalog.vue +177 -0
- package/ace-app-manager-ui/src/views/appManage/dataSourceDefine/editDialog.vue +137 -0
- package/ace-app-manager-ui/src/views/appManage/digitalSequence/DigitalSequence.vue +163 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/AppendEntityPropToDtoDlg.vue +351 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateDtoPropFromEntityPropEditor.vue +516 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/CreateFromEntityEditor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/DtoDefine.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/DtoEditor.vue +144 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/LeftPanel.vue +283 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/PropertyEditor.vue +586 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/RightPanel.vue +574 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/components/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/dtoDefine/types.ts +42 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/EntityDefine.vue +80 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/AggregateEditor.vue +93 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/EntityEditor.vue +281 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/ImportEditor.vue +329 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/IndexDefinitionEditor.vue +424 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/LeftPanel.vue +343 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/MonacoEditor.vue +1659 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/PropertyEditor.vue +956 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/RightPanel.vue +660 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/components/monacoEditorType.ts +74 -0
- package/ace-app-manager-ui/src/views/appManage/entityDefine/uilts.ts +108 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/EnumDefine.vue +169 -0
- package/ace-app-manager-ui/src/views/appManage/enumDefine/editDialog.vue +266 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/ExtendedDepartmentAttr.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/extendedDepartmentAttr/components/Editor.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/ExtendedUserAttr.vue +270 -0
- package/ace-app-manager-ui/src/views/appManage/extendedUserAttr/components/Editor.vue +291 -0
- package/ace-app-manager-ui/src/views/appManage/globalUserGroupAuth/GlobalUserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/BundleEditor.vue +77 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/Editor.vue +78 -0
- package/ace-app-manager-ui/src/views/appManage/i18nDefine/I18nDefine.vue +173 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/Editor.vue +191 -0
- package/ace-app-manager-ui/src/views/appManage/messageTemplate/MessageTemplate.vue +142 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/NumberTemplate.vue +166 -0
- package/ace-app-manager-ui/src/views/appManage/numberTemplate/components/Editor.vue +373 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/Editor.vue +168 -0
- package/ace-app-manager-ui/src/views/appManage/processDefinition/ProcessDefinition.vue +362 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/Index.vue +52 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/ConstraintsEditor.vue +239 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/JpqlEditor.vue +229 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/LeftPanel.vue +282 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryEditor.vue +294 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/QueryParamEditor.vue +253 -0
- package/ace-app-manager-ui/src/views/appManage/queryDefine/components/RightPanel.vue +247 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/Editor.vue +108 -0
- package/ace-app-manager-ui/src/views/appManage/registerMessenger/RegisterMessenger.vue +127 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/Editor.vue +117 -0
- package/ace-app-manager-ui/src/views/appManage/registerPassageway/RegisterPassageway.vue +150 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/RegisterUpload.vue +267 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/Editor.vue +425 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/QuotaEditor.vue +202 -0
- package/ace-app-manager-ui/src/views/appManage/registerUpload/components/WebHookEditor.vue +174 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/ReverseAuth.vue +620 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/components/AddRoleUserDialog.vue +59 -0
- package/ace-app-manager-ui/src/views/appManage/reverseAuth/types.d.ts +7 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/RoleDefine.vue +272 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/CompositeRole.vue +195 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleEditor.vue +161 -0
- package/ace-app-manager-ui/src/views/appManage/roleDefine/components/RoleSelector.vue +135 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/AppServiceManage.vue +204 -0
- package/ace-app-manager-ui/src/views/appManage/serviceManage/components/Editor.vue +153 -0
- package/ace-app-manager-ui/src/views/appManage/thirdPartyAppAuth/ThirdPartyAppAuth.vue +178 -0
- package/ace-app-manager-ui/src/views/appManage/types.ts +1 -0
- package/ace-app-manager-ui/src/views/appManage/userAuth/UserAuth.vue +668 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupAuth/UserGroupAuth.vue +18 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/UserGroupManage.vue +326 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/Editor.vue +217 -0
- package/ace-app-manager-ui/src/views/appManage/userGroupManage/components/MemberUsers.vue +101 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/Index.vue +94 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/index.ts +1 -0
- package/ace-app-manager-ui/src/views/demo/enumPicker/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-app-manager-ui/src/views/globalManage/GlobalManage.vue +150 -0
- package/ace-app-manager-ui/src/views/globalManage/aboutPlatform/AboutPlatform.vue +7 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogDetail.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/auditLogsManage/AuditLogsManage.vue +387 -0
- package/ace-app-manager-ui/src/views/globalManage/components/ExtendedAttrRender.vue +311 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/DepartmentManage.vue +336 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/RecycleBin.vue +127 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/DefaultGroupEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/departmentManage/components/Editor.vue +164 -0
- package/ace-app-manager-ui/src/views/globalManage/eventCompensate/Index.vue +189 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/ExternalAppManage.vue +305 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/Editor.vue +227 -0
- package/ace-app-manager-ui/src/views/globalManage/externalAppManage/components/RenewSecret.vue +91 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/Editor.vue +177 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/GlobalSettingManage.vue +201 -0
- package/ace-app-manager-ui/src/views/globalManage/globalSetting/types.ts +14 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/PasswordManage.vue +224 -0
- package/ace-app-manager-ui/src/views/globalManage/passwordManage/ValueEditor.vue +92 -0
- package/ace-app-manager-ui/src/views/globalManage/sessionManage/SessionManage.vue +251 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/UserGroupManage.vue +332 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/Editor.vue +160 -0
- package/ace-app-manager-ui/src/views/globalManage/userGroupManage/components/MemberUsers.vue +100 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/RecycleBin.vue +344 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/UserManage.vue +631 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/AttributeEditor.vue +191 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ClassifiedLevelEditor.vue +79 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/DepartmentEditor.vue +70 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/Editor.vue +475 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/ExpirationEditor.vue +82 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/MaxSessionEditor.vue +76 -0
- package/ace-app-manager-ui/src/views/globalManage/userManage/components/PasswordEditor.vue +107 -0
- package/ace-app-manager-ui/src/views/home/Index.vue +457 -0
- package/ace-app-manager-ui/src/views/home/components/AppEditor.vue +208 -0
- package/ace-app-manager-ui/src/views/home/components/AppManage.vue +252 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryEditor.vue +292 -0
- package/ace-app-manager-ui/src/views/home/components/FileRepositoryManage.vue +246 -0
- package/ace-app-manager-ui/src/vite-env.d.ts +4 -0
- package/ace-app-manager-ui/tsconfig.json +41 -0
- package/ace-app-manager-ui/tsconfig.node.json +15 -0
- package/ace-app-manager-ui/tsconfig.node.tsbuildinfo +1 -0
- package/ace-app-manager-ui/vite.config.d.ts +2 -0
- package/ace-app-manager-ui/vite.config.js +112 -0
- package/ace-app-manager-ui/vite.config.ts +116 -0
- package/ace-app-manager-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-cloud-shell-ui/.env +2 -0
- package/ace-cloud-shell-ui/.env.development +5 -0
- package/ace-cloud-shell-ui/.env.production +1 -0
- package/ace-cloud-shell-ui/.eslintrc.js +33 -0
- package/ace-cloud-shell-ui/.vscode/extensions.json +6 -0
- package/ace-cloud-shell-ui/.vscode/settings.json +27 -0
- package/ace-cloud-shell-ui/auto-imports.d.ts +9 -0
- package/ace-cloud-shell-ui/components.d.ts +58 -0
- package/ace-cloud-shell-ui/doc/issue.md +6 -0
- package/ace-cloud-shell-ui/index.html +19 -0
- package/ace-cloud-shell-ui/package.json +72 -0
- package/ace-cloud-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +156 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +17913 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-cloud-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-cloud-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-cloud-shell-ui/src/App.vue +24 -0
- package/ace-cloud-shell-ui/src/assets/base.css +80 -0
- package/ace-cloud-shell-ui/src/assets/element/index.scss +13 -0
- package/ace-cloud-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-cloud-shell-ui/src/assets/logo.svg +7 -0
- package/ace-cloud-shell-ui/src/assets/main.scss +128 -0
- package/ace-cloud-shell-ui/src/env.d.ts +14 -0
- package/ace-cloud-shell-ui/src/hooks/useSockJs.ts +146 -0
- package/ace-cloud-shell-ui/src/init.ts +21 -0
- package/ace-cloud-shell-ui/src/layout/Main.vue +160 -0
- package/ace-cloud-shell-ui/src/layout/components/AppMenu.vue +329 -0
- package/ace-cloud-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-cloud-shell-ui/src/layout/components/Sidebar.vue +194 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-cloud-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-cloud-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-cloud-shell-ui/src/main.ts +130 -0
- package/ace-cloud-shell-ui/src/router/index.ts +107 -0
- package/ace-cloud-shell-ui/src/shims-vue.d.ts +21 -0
- package/ace-cloud-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-cloud-shell-ui/src/stores/modules/app.ts +147 -0
- package/ace-cloud-shell-ui/src/stores/modules/appContext.ts +53 -0
- package/ace-cloud-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-cloud-shell-ui/src/stores/modules/oidc.ts +71 -0
- package/ace-cloud-shell-ui/src/stores/modules/system.ts +32 -0
- package/ace-cloud-shell-ui/src/types/ext.d.ts +35 -0
- package/ace-cloud-shell-ui/src/types/router.d.ts +12 -0
- package/ace-cloud-shell-ui/src/types/window.d.ts +15 -0
- package/ace-cloud-shell-ui/src/utils/axios/AceAxios.ts +657 -0
- package/ace-cloud-shell-ui/src/utils/axios/cache.ts +11 -0
- package/ace-cloud-shell-ui/src/utils/axios/index.ts +37 -0
- package/ace-cloud-shell-ui/src/utils/microApp/index.ts +6 -0
- package/ace-cloud-shell-ui/src/views/AboutView.vue +140 -0
- package/ace-cloud-shell-ui/src/views/DlgUpdatePassword.vue +120 -0
- package/ace-cloud-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-cloud-shell-ui/src/views/MicroApp.vue +234 -0
- package/ace-cloud-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-cloud-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-cloud-shell-ui/src/views/errors/HttpState404.vue +136 -0
- package/ace-cloud-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-cloud-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-cloud-shell-ui/tsconfig.app.json +33 -0
- package/ace-cloud-shell-ui/tsconfig.app.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.config.json +23 -0
- package/ace-cloud-shell-ui/tsconfig.config.tsbuildinfo +1 -0
- package/ace-cloud-shell-ui/tsconfig.json +11 -0
- package/ace-cloud-shell-ui/vbuild/vite/proxy.ts +46 -0
- package/ace-cloud-shell-ui/vite.config.ts +119 -0
- package/ace-cloud-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-element-plus-component/.babelrc +8 -0
- package/ace-element-plus-component/.env +1 -0
- package/ace-element-plus-component/.env.development +3 -0
- package/ace-element-plus-component/.env.production +1 -0
- package/ace-element-plus-component/.vscode/extensions.json +3 -0
- package/ace-element-plus-component/CHANGE.md +16 -0
- package/ace-element-plus-component/README.md +1 -0
- package/ace-element-plus-component/index.html +14 -0
- package/ace-element-plus-component/index.ts +20 -0
- package/ace-element-plus-component/package.json +72 -0
- package/ace-element-plus-component/packages/components/autoComplete/JaAutoComplete.vue +57 -0
- package/ace-element-plus-component/packages/components/autoComplete/README.md +35 -0
- package/ace-element-plus-component/packages/components/autoComplete/index.ts +5 -0
- package/ace-element-plus-component/packages/components/avatar/JaAvatar.vue +137 -0
- package/ace-element-plus-component/packages/components/avatar/README.md +45 -0
- package/ace-element-plus-component/packages/components/avatar/avatarToken.ts +11 -0
- package/ace-element-plus-component/packages/components/avatar/defaultImg.ts +14 -0
- package/ace-element-plus-component/packages/components/avatar/index.ts +7 -0
- package/ace-element-plus-component/packages/components/button/JaButton.vue +76 -0
- package/ace-element-plus-component/packages/components/button/README.md +57 -0
- package/ace-element-plus-component/packages/components/button/index.ts +4 -0
- package/ace-element-plus-component/packages/components/channelPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/ChannelPicker.vue +43 -0
- package/ace-element-plus-component/packages/components/channelPicker/src/JaChannelPicker.vue +42 -0
- package/ace-element-plus-component/packages/components/checkbox/JaCheckbox.vue +63 -0
- package/ace-element-plus-component/packages/components/checkbox/README.md +21 -0
- package/ace-element-plus-component/packages/components/checkbox/index.ts +4 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/JaCheckboxGroup.vue +56 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/checkboxGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/customGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/customGroupTree/src/customGroupTree.vue +91 -0
- package/ace-element-plus-component/packages/components/datePicker/JaDatePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/datePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/datePicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -0
- package/ace-element-plus-component/packages/components/departmentPicker/src/consts.ts +2 -0
- package/ace-element-plus-component/packages/components/departmentTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/departmentTree/src/departmentTree.vue +135 -0
- package/ace-element-plus-component/packages/components/dropdownButton/JaDropdownButton.vue +77 -0
- package/ace-element-plus-component/packages/components/dropdownButton/README.md +30 -0
- package/ace-element-plus-component/packages/components/dropdownButton/index.ts +4 -0
- package/ace-element-plus-component/packages/components/enumList/EnumListInput.vue +107 -0
- package/ace-element-plus-component/packages/components/enumList/JaEnumList.vue +39 -0
- package/ace-element-plus-component/packages/components/enumList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/enumPicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/enumPicker/src/EnumPicker.vue +103 -0
- package/ace-element-plus-component/packages/components/flowShell/FlowFormShell.vue +628 -0
- package/ace-element-plus-component/packages/components/flowShell/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/JaForm.vue +186 -0
- package/ace-element-plus-component/packages/components/form/README.md +30 -0
- package/ace-element-plus-component/packages/components/form/index.ts +5 -0
- package/ace-element-plus-component/packages/components/form/types.ts +4 -0
- package/ace-element-plus-component/packages/components/formItem/JaFormItem.vue +123 -0
- package/ace-element-plus-component/packages/components/formItem/README.md +28 -0
- package/ace-element-plus-component/packages/components/formItem/index.ts +4 -0
- package/ace-element-plus-component/packages/components/index.ts +35 -0
- package/ace-element-plus-component/packages/components/input/JaInput.vue +107 -0
- package/ace-element-plus-component/packages/components/input/README.md +23 -0
- package/ace-element-plus-component/packages/components/input/index.ts +4 -0
- package/ace-element-plus-component/packages/components/inputI18n/I18nBundleEditor.vue +76 -0
- package/ace-element-plus-component/packages/components/inputI18n/InputI18n.vue +152 -0
- package/ace-element-plus-component/packages/components/inputI18n/JaInputI18n.vue +50 -0
- package/ace-element-plus-component/packages/components/inputI18n/index.ts +8 -0
- package/ace-element-plus-component/packages/components/inputNumber/JaInputNumber.vue +79 -0
- package/ace-element-plus-component/packages/components/inputNumber/README.md +21 -0
- package/ace-element-plus-component/packages/components/inputNumber/index.ts +4 -0
- package/ace-element-plus-component/packages/components/mapItemList/JaMapItemList.vue +35 -0
- package/ace-element-plus-component/packages/components/mapItemList/MapItemListInput.vue +191 -0
- package/ace-element-plus-component/packages/components/mapItemList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/numberList/JaNumberList.vue +36 -0
- package/ace-element-plus-component/packages/components/numberList/NumberListInput.vue +111 -0
- package/ace-element-plus-component/packages/components/numberList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/properyPicker/JaPropertyPicker.vue +38 -0
- package/ace-element-plus-component/packages/components/properyPicker/PropertyPicker.vue +310 -0
- package/ace-element-plus-component/packages/components/properyPicker/index.ts +7 -0
- package/ace-element-plus-component/packages/components/radioGroup/JaRadioGroup.vue +61 -0
- package/ace-element-plus-component/packages/components/radioGroup/README.md +24 -0
- package/ace-element-plus-component/packages/components/radioGroup/index.ts +4 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleCategorySelector.vue +154 -0
- package/ace-element-plus-component/packages/components/rolePicker/RoleEditor.vue +138 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePicker.vue +44 -0
- package/ace-element-plus-component/packages/components/rolePicker/RolePickerRaw.vue +56 -0
- package/ace-element-plus-component/packages/components/rolePicker/baseRolePicker.vue +84 -0
- package/ace-element-plus-component/packages/components/rolePicker/index.ts +13 -0
- package/ace-element-plus-component/packages/components/scrollbar/README.md +23 -0
- package/ace-element-plus-component/packages/components/scrollbar/Scrollbar.vue +100 -0
- package/ace-element-plus-component/packages/components/scrollbar/index.ts +5 -0
- package/ace-element-plus-component/packages/components/scrollbar/utils.ts +17 -0
- package/ace-element-plus-component/packages/components/select/JaSelect.vue +60 -0
- package/ace-element-plus-component/packages/components/select/README.md +24 -0
- package/ace-element-plus-component/packages/components/select/index.ts +4 -0
- package/ace-element-plus-component/packages/components/stringList/JaStringList.vue +36 -0
- package/ace-element-plus-component/packages/components/stringList/StringListInput.vue +96 -0
- package/ace-element-plus-component/packages/components/stringList/index.ts +7 -0
- package/ace-element-plus-component/packages/components/switch/JaSwitch.vue +61 -0
- package/ace-element-plus-component/packages/components/switch/README.md +21 -0
- package/ace-element-plus-component/packages/components/switch/index.ts +4 -0
- package/ace-element-plus-component/packages/components/timePicker/JaTimePicker.vue +65 -0
- package/ace-element-plus-component/packages/components/timePicker/README.md +21 -0
- package/ace-element-plus-component/packages/components/timePicker/index.ts +5 -0
- package/ace-element-plus-component/packages/components/tip/README.md +20 -0
- package/ace-element-plus-component/packages/components/tip/index.ts +4 -0
- package/ace-element-plus-component/packages/components/tip/src/AceTip.vue +51 -0
- package/ace-element-plus-component/packages/components/upload/FilePreviewer.vue +245 -0
- package/ace-element-plus-component/packages/components/upload/JaUploader.vue +72 -0
- package/ace-element-plus-component/packages/components/upload/README.md +24 -0
- package/ace-element-plus-component/packages/components/upload/index.ts +8 -0
- package/ace-element-plus-component/packages/components/upload/pdf-viewer/PdfViewerModal.vue +32 -0
- package/ace-element-plus-component/packages/components/upload/types.ts +4 -0
- package/ace-element-plus-component/packages/components/upload/uploader-locale-zh-cn.ts +223 -0
- package/ace-element-plus-component/packages/components/upload/uploader.vue +876 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/index.ts +4 -0
- package/ace-element-plus-component/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -0
- package/ace-element-plus-component/packages/components/userGroupTree/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userGroupTree/src/userGroupTree.vue +193 -0
- package/ace-element-plus-component/packages/components/userPicker/index.ts +10 -0
- package/ace-element-plus-component/packages/components/userPicker/src/CustomGroupManager.vue +189 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserList.vue +328 -0
- package/ace-element-plus-component/packages/components/userPicker/src/JaUserPicker.vue +40 -0
- package/ace-element-plus-component/packages/components/userPicker/src/UserPicker.vue +515 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userSelectDialog/src/userSelectDialog.vue +499 -0
- package/ace-element-plus-component/packages/components/userTag/UserInfoTag.vue +419 -0
- package/ace-element-plus-component/packages/components/userTag/index.ts +6 -0
- package/ace-element-plus-component/packages/components/userTag/sharedAxios.ts +8 -0
- package/ace-element-plus-component/packages/directives/auth/index.ts +41 -0
- package/ace-element-plus-component/packages/directives/autofocus/index.ts +29 -0
- package/ace-element-plus-component/packages/directives/index.ts +10 -0
- package/ace-element-plus-component/packages/directives/shortcut/index.ts +192 -0
- package/ace-element-plus-component/packages/hooks/useAppInstances.ts +130 -0
- package/ace-element-plus-component/packages/hooks/useBackendValidations.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useBridage.ts +157 -0
- package/ace-element-plus-component/packages/hooks/useClassificationLevels.ts +86 -0
- package/ace-element-plus-component/packages/hooks/useConstraintProviders.ts +36 -0
- package/ace-element-plus-component/packages/hooks/useDateTimeShortCuts.ts +65 -0
- package/ace-element-plus-component/packages/hooks/useEntities.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useEntityPropDataTypes.ts +37 -0
- package/ace-element-plus-component/packages/hooks/useFileConfigurations.ts +41 -0
- package/ace-element-plus-component/packages/hooks/useGroups.ts +81 -0
- package/ace-element-plus-component/packages/hooks/useNumberTemplates.ts +43 -0
- package/ace-element-plus-component/packages/hooks/useProperties.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRealms.ts +28 -0
- package/ace-element-plus-component/packages/hooks/useRoleCategories.ts +42 -0
- package/ace-element-plus-component/packages/hooks/useRoles.ts +44 -0
- package/ace-element-plus-component/packages/hooks/useRouteableVisible.ts +35 -0
- package/ace-element-plus-component/packages/hooks/useTreeData.ts +45 -0
- package/ace-element-plus-component/packages/hooks/useUserRefQuery.ts +232 -0
- package/ace-element-plus-component/packages/index.ts +34 -0
- package/ace-element-plus-component/packages/list.json +8 -0
- package/ace-element-plus-component/packages/types/custom.d.ts +13 -0
- package/ace-element-plus-component/packages/types/window.d.ts +16 -0
- package/ace-element-plus-component/packages/utils/formUtils.ts +57 -0
- package/ace-element-plus-component/packages/utils/install.ts +43 -0
- package/ace-element-plus-component/packages/utils/objectUtils.ts +31 -0
- package/ace-element-plus-component/public/vite.svg +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.js +1 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.json +5196 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.ttf +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff +0 -0
- package/ace-element-plus-component/theme-style/fonts/iconfont.woff2 +0 -0
- package/ace-element-plus-component/theme-style/index.scss +11 -0
- package/ace-element-plus-component/theme-style/styles/element-plus-var.scss +1419 -0
- package/ace-element-plus-component/theme-style/styles/iconfont.css +2979 -0
- package/ace-element-plus-component/theme-style/styles/reset.scss +0 -0
- package/ace-element-plus-component/theme-style/styles/theme-var.scss +72 -0
- package/ace-element-plus-component/theme-style/styles/transition.scss +122 -0
- package/ace-element-plus-component/tsconfig.json +42 -0
- package/ace-element-plus-component/tsconfig.node.json +9 -0
- package/ace-element-plus-component/tsconfig.node.tsbuildinfo +1 -0
- package/ace-element-plus-component/vite.config.d.ts +2 -0
- package/ace-element-plus-component/vite.config.js +55 -0
- package/ace-element-plus-component/vite.config.ts +59 -0
- package/ace-install-system-ui/.env +2 -0
- package/ace-install-system-ui/.env.development +5 -0
- package/ace-install-system-ui/.env.production +1 -0
- package/ace-install-system-ui/.eslintrc.cjs +18 -0
- package/ace-install-system-ui/CHANGE.md +1 -0
- package/ace-install-system-ui/README.md +18 -0
- package/ace-install-system-ui/index.html +13 -0
- package/ace-install-system-ui/lib.zip +0 -0
- package/ace-install-system-ui/package.json +45 -0
- package/ace-install-system-ui/public/images/desktopAppInstall/not-data.svg +1 -0
- package/ace-install-system-ui/public/images/login/Line.png +0 -0
- package/ace-install-system-ui/public/images/login/Path.png +0 -0
- package/ace-install-system-ui/public/images/login/Vector.png +0 -0
- package/ace-install-system-ui/public/images/login/down_line.png +0 -0
- package/ace-install-system-ui/public/images/login/exclamation.png +0 -0
- package/ace-install-system-ui/public/images/login/login_bg_img.png +0 -0
- package/ace-install-system-ui/public/images/title_01.png +0 -0
- package/ace-install-system-ui/public/images/title_02.png +0 -0
- package/ace-install-system-ui/public/images/title_03.png +0 -0
- package/ace-install-system-ui/public/images/title_04.png +0 -0
- package/ace-install-system-ui/public/images/uploader/upload-empty.svg +1 -0
- package/ace-install-system-ui/public/images/uploader/upload-files.svg +1710 -0
- package/ace-install-system-ui/public/logo.svg +1 -0
- package/ace-install-system-ui/public/vite.svg +1 -0
- package/ace-install-system-ui/src/App.vue +7 -0
- package/ace-install-system-ui/src/api/apiCache.ts +25 -0
- package/ace-install-system-ui/src/api/cache.ts +9 -0
- package/ace-install-system-ui/src/api/desktopAppApi.ts +149 -0
- package/ace-install-system-ui/src/api/desktopMachineApi.ts +75 -0
- package/ace-install-system-ui/src/api/loginApi.ts +46 -0
- package/ace-install-system-ui/src/api/taskReportApi.ts +46 -0
- package/ace-install-system-ui/src/assets/vue.svg +1 -0
- package/ace-install-system-ui/src/components/AppsManage/AddApp.vue +283 -0
- package/ace-install-system-ui/src/components/AppsManage/AppForm.vue +321 -0
- package/ace-install-system-ui/src/components/AppsManage/AppManageDrawer.vue +164 -0
- package/ace-install-system-ui/src/components/AppsManage/AppSelector.vue +93 -0
- package/ace-install-system-ui/src/components/AppsManage/AppsManage.vue +441 -0
- package/ace-install-system-ui/src/components/AppsManage/EditAppMetaData.vue +203 -0
- package/ace-install-system-ui/src/components/AppsManage/EnvForm.vue +180 -0
- package/ace-install-system-ui/src/components/AppsManage/IniForm.vue +294 -0
- package/ace-install-system-ui/src/components/AppsManage/UpdateAppForm.vue +218 -0
- package/ace-install-system-ui/src/components/CustomDialog.vue +170 -0
- package/ace-install-system-ui/src/components/HostMachineManage/AddHostMachine.vue +173 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManage.vue +509 -0
- package/ace-install-system-ui/src/components/HostMachineManage/HostMachineManageDrawer.vue +143 -0
- package/ace-install-system-ui/src/components/HostMachineManage/MachineSelector.vue +119 -0
- package/ace-install-system-ui/src/components/InstallModuleHeader.vue +36 -0
- package/ace-install-system-ui/src/components/Log/ViewAllLog.vue +175 -0
- package/ace-install-system-ui/src/components/Log/ViewLog.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppInstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/AppScanTask.vue +80 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTask.vue +33 -0
- package/ace-install-system-ui/src/components/TaskList/AppUninstallTaskGroup.vue +152 -0
- package/ace-install-system-ui/src/components/TaskList/TaskList.vue +314 -0
- package/ace-install-system-ui/src/components/TaskList/TaskListDrawer.vue +127 -0
- package/ace-install-system-ui/src/components/Uploader/GlobalUploader.vue +297 -0
- package/ace-install-system-ui/src/components/Uploader/Uploader.vue +346 -0
- package/ace-install-system-ui/src/components/WebTerminal/MachineTerminals.vue +187 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminal.vue +136 -0
- package/ace-install-system-ui/src/components/WebTerminal/WebTerminalDialog.vue +80 -0
- package/ace-install-system-ui/src/env.d.ts +15 -0
- package/ace-install-system-ui/src/init.ts +22 -0
- package/ace-install-system-ui/src/locales/lang/en/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/en/errors.json +40 -0
- package/ace-install-system-ui/src/locales/lang/en/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/en.ts +14 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN/layout.json +7 -0
- package/ace-install-system-ui/src/locales/lang/zh-CN.ts +15 -0
- package/ace-install-system-ui/src/locales/setupI18n.ts +14 -0
- package/ace-install-system-ui/src/main.ts +28 -0
- package/ace-install-system-ui/src/model/Common.ts +8 -0
- package/ace-install-system-ui/src/model/DesktopApp.ts +472 -0
- package/ace-install-system-ui/src/model/TaskLog.ts +64 -0
- package/ace-install-system-ui/src/model/TaskReport.ts +136 -0
- package/ace-install-system-ui/src/pages/Home/Home.vue +307 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/InstallDesktopApp.vue +363 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/DependentApp.vue +138 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1 copy.vue +232 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep1.vue +577 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep2.vue +267 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/InstallDesktopAppStep3.vue +176 -0
- package/ace-install-system-ui/src/pages/InstallDesktopApp/components/ViewDependencies.vue +74 -0
- package/ace-install-system-ui/src/pages/UninstallDesktopApp.vue +167 -0
- package/ace-install-system-ui/src/router/index.ts +118 -0
- package/ace-install-system-ui/src/stores/index.ts +181 -0
- package/ace-install-system-ui/src/stores/modules/locale.ts +60 -0
- package/ace-install-system-ui/src/styles/main.scss +73 -0
- package/ace-install-system-ui/src/styles/modules/cutom-element-table-cell.scss +33 -0
- package/ace-install-system-ui/src/styles/modules/element-dark-theme.scss +126 -0
- package/ace-install-system-ui/src/styles/modules/task-install-detail.scss +127 -0
- package/ace-install-system-ui/src/styles/modules/var-notused.scss +156 -0
- package/ace-install-system-ui/src/styles/modules/var.scss +151 -0
- package/ace-install-system-ui/src/types/global.d.ts +10 -0
- package/ace-install-system-ui/src/types/shims-vue-simple-uploader.d.ts +4 -0
- package/ace-install-system-ui/src/utils/EventBus.ts +5 -0
- package/ace-install-system-ui/src/utils/axios/AceAxios.ts +535 -0
- package/ace-install-system-ui/src/utils/axios/cache.ts +9 -0
- package/ace-install-system-ui/src/utils/axios/index.ts +35 -0
- package/ace-install-system-ui/src/views/Layout/Layout.vue +140 -0
- package/ace-install-system-ui/src/views/Layout/components/Header.vue +198 -0
- package/ace-install-system-ui/src/views/Login/Login.vue +283 -0
- package/ace-install-system-ui/src/views/NotFound/NotFound.vue +7 -0
- package/ace-install-system-ui/src/views/SignUp/SignUp.vue +204 -0
- package/ace-install-system-ui/src/views/WebSsh.vue +12 -0
- package/ace-install-system-ui/tsconfig.json +24 -0
- package/ace-install-system-ui/tsconfig.node.json +11 -0
- package/ace-install-system-ui/vite.config.ts +114 -0
- package/ace-monolith-shell-ui/.env +3 -0
- package/ace-monolith-shell-ui/.env.development +5 -0
- package/ace-monolith-shell-ui/.env.production +1 -0
- package/ace-monolith-shell-ui/.eslintrc.cjs +15 -0
- package/ace-monolith-shell-ui/.prettierrc.json +8 -0
- package/ace-monolith-shell-ui/.vscode/extensions.json +7 -0
- package/ace-monolith-shell-ui/.vscode/launch.json +22 -0
- package/ace-monolith-shell-ui/.vscode/settings.json +26 -0
- package/ace-monolith-shell-ui/README.md +7 -0
- package/ace-monolith-shell-ui/auto-imports.d.ts +9 -0
- package/ace-monolith-shell-ui/components.d.ts +45 -0
- package/ace-monolith-shell-ui/index.html +20 -0
- package/ace-monolith-shell-ui/package.json +67 -0
- package/ace-monolith-shell-ui/public/res/build/shell/favicon.ico +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/.keep +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/index.html +5348 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.css +2583 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.eot +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.glyph.json +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.less +2585 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.module.less +2567 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.scss +5103 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.styl +2554 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.svg +7633 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.symbol.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.ttf +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/remixicon.woff2 +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/symbol.html +18032 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/tags.json +1364 -0
- package/ace-monolith-shell-ui/public/res/build/shell/fonts/remixIcon/unicode.html +175 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/hidden-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/deliver.svg +1 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/logout.svg +28 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/icon/notification.svg +17 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo-2.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/jari-logo.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/public-code.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/show-right-sidebar.png +0 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/shezhi.svg +11 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/tuichu.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/images/svg/xiaoxi.svg +13 -0
- package/ace-monolith-shell-ui/public/res/build/shell/styles/element-plus.css +1 -0
- package/ace-monolith-shell-ui/src/App.vue +25 -0
- package/ace-monolith-shell-ui/src/assets/base.css +80 -0
- package/ace-monolith-shell-ui/src/assets/element/index.scss +18 -0
- package/ace-monolith-shell-ui/src/assets/element/var.scss +1123 -0
- package/ace-monolith-shell-ui/src/assets/logo.svg +7 -0
- package/ace-monolith-shell-ui/src/assets/main.scss +123 -0
- package/ace-monolith-shell-ui/src/demo/Bridge.vue +176 -0
- package/ace-monolith-shell-ui/src/env.d.ts +17 -0
- package/ace-monolith-shell-ui/src/hooks/useBridge.ts +148 -0
- package/ace-monolith-shell-ui/src/hooks/usePreferences.ts +116 -0
- package/ace-monolith-shell-ui/src/hooks/useSockJs.ts +123 -0
- package/ace-monolith-shell-ui/src/http/AceAxios.ts +645 -0
- package/ace-monolith-shell-ui/src/http/cache.ts +11 -0
- package/ace-monolith-shell-ui/src/http/index.ts +33 -0
- package/ace-monolith-shell-ui/src/init.ts +21 -0
- package/ace-monolith-shell-ui/src/layout/Main.vue +176 -0
- package/ace-monolith-shell-ui/src/layout/components/AppMenu.vue +334 -0
- package/ace-monolith-shell-ui/src/layout/components/Fillet.vue +105 -0
- package/ace-monolith-shell-ui/src/layout/components/Sidebar.vue +213 -0
- package/ace-monolith-shell-ui/src/layout/widgets/notification/Notification.vue +307 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/en/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/en.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/common.json +17 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/errors.json +42 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/layout.json +8 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/updatePsw.json +9 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN/userProfile.json +3 -0
- package/ace-monolith-shell-ui/src/locales/lang/zh-CN.ts +14 -0
- package/ace-monolith-shell-ui/src/locales/setupI18n.ts +14 -0
- package/ace-monolith-shell-ui/src/main.ts +164 -0
- package/ace-monolith-shell-ui/src/router/index.ts +111 -0
- package/ace-monolith-shell-ui/src/shims-vue.d.ts +22 -0
- package/ace-monolith-shell-ui/src/stores/modules/accessibleApps.ts +149 -0
- package/ace-monolith-shell-ui/src/stores/modules/app.ts +164 -0
- package/ace-monolith-shell-ui/src/stores/modules/appContext.ts +57 -0
- package/ace-monolith-shell-ui/src/stores/modules/auth.ts +65 -0
- package/ace-monolith-shell-ui/src/stores/modules/locale.ts +63 -0
- package/ace-monolith-shell-ui/src/stores/modules/system.ts +41 -0
- package/ace-monolith-shell-ui/src/types/ext.d.ts +13 -0
- package/ace-monolith-shell-ui/src/types/router.d.ts +12 -0
- package/ace-monolith-shell-ui/src/types/window.d.ts +16 -0
- package/ace-monolith-shell-ui/src/views/AboutView.vue +141 -0
- package/ace-monolith-shell-ui/src/views/DlgUpdatePassword.vue +119 -0
- package/ace-monolith-shell-ui/src/views/ExtendedAttrRender.vue +311 -0
- package/ace-monolith-shell-ui/src/views/MicroAppContainer.vue +270 -0
- package/ace-monolith-shell-ui/src/views/UserProfileEditor.vue +303 -0
- package/ace-monolith-shell-ui/src/views/WorkBench.vue +10 -0
- package/ace-monolith-shell-ui/src/views/errors/HttpState404.vue +137 -0
- package/ace-monolith-shell-ui/src/views/errors/NoAppAvailable.vue +16 -0
- package/ace-monolith-shell-ui/src/vite-env.d.ts +3 -0
- package/ace-monolith-shell-ui/tsconfig.app.json +26 -0
- package/ace-monolith-shell-ui/tsconfig.json +11 -0
- package/ace-monolith-shell-ui/tsconfig.node.json +25 -0
- package/ace-monolith-shell-ui/vbuild/vite/proxy.ts +47 -0
- package/ace-monolith-shell-ui/vite.config.ts +127 -0
- package/ace-monolith-shell-ui/vue-image-crop-upload.d.ts +1 -0
- package/ace-vue-frame/.env +2 -0
- package/ace-vue-frame/.env.development +1 -0
- package/ace-vue-frame/.env.production +1 -0
- package/ace-vue-frame/.eslintrc.cjs +29 -0
- package/ace-vue-frame/.vscode/extensions.json +3 -0
- package/ace-vue-frame/README.md +18 -0
- package/ace-vue-frame/auto-imports.d.ts +9 -0
- package/ace-vue-frame/components.d.ts +16 -0
- package/ace-vue-frame/folder-alias.json +1 -0
- package/ace-vue-frame/index.html +13 -0
- package/ace-vue-frame/jsconfig.json +13 -0
- package/ace-vue-frame/package.json +30 -0
- package/ace-vue-frame/prettier.config.js +17 -0
- package/ace-vue-frame/public/vite.svg +1 -0
- package/ace-vue-frame/src/App.vue +30 -0
- package/ace-vue-frame/src/api/demo.ts +24 -0
- package/ace-vue-frame/src/assets/vue.svg +1 -0
- package/ace-vue-frame/src/components/HelloWorld.vue +38 -0
- package/ace-vue-frame/src/main.ts +38 -0
- package/ace-vue-frame/src/router/index.ts +18 -0
- package/ace-vue-frame/src/router/routes.ts +7 -0
- package/ace-vue-frame/src/router/whiteList.ts +4 -0
- package/ace-vue-frame/src/stores/index.ts +3 -0
- package/ace-vue-frame/src/stores/modules/main.ts +19 -0
- package/ace-vue-frame/src/style.css +80 -0
- package/ace-vue-frame/src/types/ext.d.ts +13 -0
- package/ace-vue-frame/src/types/style.d.ts +7 -0
- package/ace-vue-frame/src/types/window.d.ts +16 -0
- package/ace-vue-frame/src/utils/axios/index.ts +20 -0
- package/ace-vue-frame/src/utils/index.ts +7 -0
- package/ace-vue-frame/src/vite-env.d.ts +1 -0
- package/ace-vue-frame/tsconfig.json +52 -0
- package/ace-vue-frame/tsconfig.node.json +10 -0
- package/ace-vue-frame/vite.config.ts +75 -0
- package/folder-alias.json +1 -0
- package/frontends.code-workspace +10 -0
- package/package.json +35 -0
- package/pnpm-workspace.yaml +11 -0
- package/pom.xml +114 -0
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
type ClassificationLevel,
|
|
4
|
+
createAxiosWithoutCache,
|
|
5
|
+
type FileInfo,
|
|
6
|
+
Jari,
|
|
7
|
+
type UploadInitParams,
|
|
8
|
+
useFilesApi,
|
|
9
|
+
useLoading,
|
|
10
|
+
useLoginUser
|
|
11
|
+
} from "@jari-ace/app-bolts";
|
|
12
|
+
import { nextTick, onMounted, onUnmounted, ref, watch } from "vue";
|
|
13
|
+
import { ArrowDown, Document, Download, Upload, WarningFilled, Picture, VideoPlay, Headset } from "@element-plus/icons-vue";
|
|
14
|
+
import {
|
|
15
|
+
useSystemClassificationLevelMap,
|
|
16
|
+
useSystemClassificationLevels
|
|
17
|
+
} from "../../hooks/useClassificationLevels";
|
|
18
|
+
import Ace = Jari.Ace;
|
|
19
|
+
import "@uppy/core/css/style.min.css";
|
|
20
|
+
import "@uppy/dashboard/css/style.min.css";
|
|
21
|
+
import "@uppy/audio/css/style.min.css";
|
|
22
|
+
import "@uppy/screen-capture/css/style.min.css";
|
|
23
|
+
import "@uppy/webcam/css/style.min.css";
|
|
24
|
+
import "@uppy/image-editor/css/style.min.css";
|
|
25
|
+
import Uppy, { type Meta, type UppyFile } from "@uppy/core";
|
|
26
|
+
import Tus from "@uppy/tus";
|
|
27
|
+
import Webcam from "@uppy/webcam";
|
|
28
|
+
import ScreenCapture from "@uppy/screen-capture";
|
|
29
|
+
import Audio from "@uppy/audio";
|
|
30
|
+
import zhCN from "./uploader-locale-zh-cn";
|
|
31
|
+
import Dashboard from "@uppy/dashboard";
|
|
32
|
+
import ImageEditor from "@uppy/image-editor";
|
|
33
|
+
import prettyBytes from "pretty-bytes";
|
|
34
|
+
import PdfViewerModal from "./pdf-viewer/PdfViewerModal.vue";
|
|
35
|
+
import {
|
|
36
|
+
ElMessageBox,
|
|
37
|
+
ElTable,
|
|
38
|
+
ElTableColumn,
|
|
39
|
+
ElButton,
|
|
40
|
+
ElDropdown,
|
|
41
|
+
ElDropdownItem,
|
|
42
|
+
ElDropdownMenu,
|
|
43
|
+
ElIcon,
|
|
44
|
+
ElTag,
|
|
45
|
+
ElTooltip,
|
|
46
|
+
ElPopover
|
|
47
|
+
} from "element-plus";
|
|
48
|
+
import type { AceFile } from "./types";
|
|
49
|
+
import { fa } from "element-plus/es/locales.mjs";
|
|
50
|
+
|
|
51
|
+
const props = withDefaults(defineProps<{
|
|
52
|
+
/**
|
|
53
|
+
* 应用名
|
|
54
|
+
*/
|
|
55
|
+
serviceName: string,
|
|
56
|
+
/**
|
|
57
|
+
* 附件配置key
|
|
58
|
+
*/
|
|
59
|
+
configKey: string,
|
|
60
|
+
/**
|
|
61
|
+
* 附件令牌
|
|
62
|
+
*/
|
|
63
|
+
attachToken?: string,
|
|
64
|
+
/**
|
|
65
|
+
* 数据密集
|
|
66
|
+
*/
|
|
67
|
+
classificationLevel?: number,
|
|
68
|
+
/**
|
|
69
|
+
* 文件列表高度
|
|
70
|
+
*/
|
|
71
|
+
height?: string | number,
|
|
72
|
+
/**
|
|
73
|
+
* 文件列表最大高度
|
|
74
|
+
*/
|
|
75
|
+
maxHeight?: string | number,
|
|
76
|
+
/**
|
|
77
|
+
* 是否允许上传, 为空表示采用应用里的附件设置
|
|
78
|
+
*/
|
|
79
|
+
allowUpload?: boolean,
|
|
80
|
+
/**
|
|
81
|
+
* 是否允许下载,为空表示采用应用里的附件设置
|
|
82
|
+
*/
|
|
83
|
+
allowDownload?: boolean,
|
|
84
|
+
/**
|
|
85
|
+
* 是否允许删除,为空表示采用应用里的附件设置
|
|
86
|
+
*/
|
|
87
|
+
allowDelete?: boolean,
|
|
88
|
+
/**
|
|
89
|
+
* 是否允许预览,为空表示采用应用里的附件设置
|
|
90
|
+
*/
|
|
91
|
+
allowPreview?: boolean,
|
|
92
|
+
/**
|
|
93
|
+
* 布局方式: list-列表布局(默认), inline-行内布局
|
|
94
|
+
*/
|
|
95
|
+
layout?: 'list' | 'inline'
|
|
96
|
+
}>(), {
|
|
97
|
+
layout: 'list'
|
|
98
|
+
});
|
|
99
|
+
const attachId = defineModel<string>({
|
|
100
|
+
required: false
|
|
101
|
+
});
|
|
102
|
+
const axios = createAxiosWithoutCache();
|
|
103
|
+
const loading = useLoading(axios);
|
|
104
|
+
const api = useFilesApi(axios);
|
|
105
|
+
const files = ref<FileInfo[]>([]);
|
|
106
|
+
const classificationLevels = ref<ClassificationLevel[]>([]);
|
|
107
|
+
const allowedClassificationLevels = ref<ClassificationLevel[]>([]);
|
|
108
|
+
const classificationLevelMap = ref<Map<number, string>>();
|
|
109
|
+
const highestClassificationLevel = ref<number>();
|
|
110
|
+
const user = ref<Ace.User>();
|
|
111
|
+
const selectedFileClassificationLevel = ref(50);
|
|
112
|
+
const curAttachToken = ref<string>();
|
|
113
|
+
const uploadInitParams = ref<UploadInitParams>();
|
|
114
|
+
const isNewForm = ref(false);
|
|
115
|
+
const uploadingProgress = ref(100);
|
|
116
|
+
const pdfViewerVisible = ref(false);
|
|
117
|
+
const pdfSrc = ref("");
|
|
118
|
+
const previewableFileExts = [".doc", ".docx", ".xls", ".xlsx", ".wps", ".et",
|
|
119
|
+
".csv", ".txt", ".rtf", ".odt", ".ods", ".mht", ".ppt", ".pptx", ".odp", ".pdf", ".xps", "."];
|
|
120
|
+
const emits = defineEmits<{
|
|
121
|
+
/**
|
|
122
|
+
* 附件ID变更事件
|
|
123
|
+
*/
|
|
124
|
+
change: [attachId: string],
|
|
125
|
+
/**
|
|
126
|
+
* 添加单个文件事件
|
|
127
|
+
*/
|
|
128
|
+
fileAdded: [AceFile],
|
|
129
|
+
/**
|
|
130
|
+
* 添加多个文件事件
|
|
131
|
+
*/
|
|
132
|
+
filesAdded: [AceFile[]],
|
|
133
|
+
/**
|
|
134
|
+
* 删除单个文件事件
|
|
135
|
+
*/
|
|
136
|
+
fileRemoved: [AceFile],
|
|
137
|
+
/**
|
|
138
|
+
* 开始上传事件
|
|
139
|
+
*/
|
|
140
|
+
upload: [uploadID: string, files: AceFile[]],
|
|
141
|
+
/**
|
|
142
|
+
* 全体进度事件
|
|
143
|
+
*/
|
|
144
|
+
progress: [progress: number],
|
|
145
|
+
/**
|
|
146
|
+
* 单文件进度事件
|
|
147
|
+
*/
|
|
148
|
+
uploadProgress: [file: AceFile],
|
|
149
|
+
/**
|
|
150
|
+
* 文件上传暂停事件
|
|
151
|
+
*/
|
|
152
|
+
uploadPause: [file: AceFile, isPaused: boolean],
|
|
153
|
+
/**
|
|
154
|
+
* 文件上传成功事件
|
|
155
|
+
*/
|
|
156
|
+
uploadSuccess: [file: AceFile],
|
|
157
|
+
/**
|
|
158
|
+
* 全部上传完成事件
|
|
159
|
+
*/
|
|
160
|
+
complete: [successful: AceFile[], failed: AceFile[]],
|
|
161
|
+
/**
|
|
162
|
+
* 全体上传失败事件
|
|
163
|
+
*/
|
|
164
|
+
error: [error: Error]
|
|
165
|
+
/**
|
|
166
|
+
* 单个文件上传失败事件
|
|
167
|
+
*/
|
|
168
|
+
uploadError: [file: AceFile, error: Error]
|
|
169
|
+
/**
|
|
170
|
+
* 下载完成事件
|
|
171
|
+
*/
|
|
172
|
+
downloaded: [file: FileInfo]
|
|
173
|
+
/**
|
|
174
|
+
* 打包下载完成事件
|
|
175
|
+
*/
|
|
176
|
+
zipDownloaded: [file: FileInfo[]]
|
|
177
|
+
}>();
|
|
178
|
+
let uppy: Uppy | undefined;
|
|
179
|
+
curAttachToken.value = props.attachToken;
|
|
180
|
+
|
|
181
|
+
onMounted(async () => {
|
|
182
|
+
await updateAllowedClassificationLevels();
|
|
183
|
+
if (props.attachToken) {
|
|
184
|
+
await initLoad();
|
|
185
|
+
} else {
|
|
186
|
+
await initNew();
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
onUnmounted(() => {
|
|
191
|
+
if (uppy) uppy.destroy();
|
|
192
|
+
uppy = undefined;
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
async function updateAllowedClassificationLevels() {
|
|
196
|
+
user.value = useLoginUser();
|
|
197
|
+
const cl = Math.max(props.classificationLevel ?? 50, user.value?.classifiedLevel ?? 50);
|
|
198
|
+
classificationLevels.value = await useSystemClassificationLevels();
|
|
199
|
+
classificationLevelMap.value = await useSystemClassificationLevelMap();
|
|
200
|
+
allowedClassificationLevels.value = classificationLevels.value.filter(l => l.value >= cl);
|
|
201
|
+
highestClassificationLevel.value = Math.min(...allowedClassificationLevels.value.map(l=>l.value))
|
|
202
|
+
console.log(`附件控件密级调试:
|
|
203
|
+
表单密级:`, props.classificationLevel, `
|
|
204
|
+
用户密级:`, user.value?.classifiedLevel, `
|
|
205
|
+
表单/用户密级比较后取最低密级:`, cl, `
|
|
206
|
+
系统密级:`, classificationLevels.value, `
|
|
207
|
+
最终可选密级:`, allowedClassificationLevels.value
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
async function loadFileInfos() {
|
|
212
|
+
if (!curAttachToken.value) {
|
|
213
|
+
files.value = [];
|
|
214
|
+
}
|
|
215
|
+
files.value = await api.getFileList(curAttachToken.value!);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function createUppyInstance() {
|
|
219
|
+
if (uppy) {
|
|
220
|
+
uppy.destroy();
|
|
221
|
+
}
|
|
222
|
+
const cfg = uploadInitParams.value!.fileConfig;
|
|
223
|
+
uppy = new Uppy({
|
|
224
|
+
autoProceed: true,
|
|
225
|
+
locale: zhCN
|
|
226
|
+
}).on("progress", progress => {
|
|
227
|
+
if (progress == 100) {
|
|
228
|
+
loadFileInfos();
|
|
229
|
+
}
|
|
230
|
+
uploadingProgress.value = progress;
|
|
231
|
+
});
|
|
232
|
+
uppy.use(Tus, {
|
|
233
|
+
endpoint: new URL("/ace-file-service/uploads", location.origin).toString(),
|
|
234
|
+
withCredentials: true,
|
|
235
|
+
retryDelays: undefined,
|
|
236
|
+
chunkSize: !uploadInitParams.value?.chunkSize || uploadInitParams.value?.chunkSize
|
|
237
|
+
== 0 ? Infinity : uploadInitParams.value?.chunkSize,
|
|
238
|
+
parallelUploads: 1,
|
|
239
|
+
headers: {
|
|
240
|
+
aceAttachId: attachId.value!,
|
|
241
|
+
aceNewForm: isNewForm.value ? "yes" : "no"
|
|
242
|
+
},
|
|
243
|
+
metadata: {
|
|
244
|
+
attachId: attachId.value!,
|
|
245
|
+
configKey: props.configKey,
|
|
246
|
+
appServiceName: props.serviceName,
|
|
247
|
+
classifiedLevel: selectedFileClassificationLevel.value.toString()
|
|
248
|
+
},
|
|
249
|
+
metadataForPartialUploads: {
|
|
250
|
+
attachId: attachId.value!,
|
|
251
|
+
configKey: props.configKey,
|
|
252
|
+
appServiceName: props.serviceName,
|
|
253
|
+
classifiedLevel: selectedFileClassificationLevel.value.toString()
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
if (cfg.enableWebcam) {
|
|
257
|
+
uppy.use(Webcam, {
|
|
258
|
+
// Webcam 的相关配置
|
|
259
|
+
modes: cfg.allowedWebcamModes?.map(m => {
|
|
260
|
+
switch (m) {
|
|
261
|
+
case "VIDEO_AUDIO":
|
|
262
|
+
return "video-audio";
|
|
263
|
+
case "VIDEO_ONLY":
|
|
264
|
+
return "video-only";
|
|
265
|
+
case "PICTURE":
|
|
266
|
+
return "picture";
|
|
267
|
+
}
|
|
268
|
+
}),
|
|
269
|
+
mirror: false
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
if (cfg.enableAudio) {
|
|
273
|
+
uppy.use(Audio);
|
|
274
|
+
}
|
|
275
|
+
if (cfg.enableScreenCapture) {
|
|
276
|
+
uppy.use(ScreenCapture);
|
|
277
|
+
}
|
|
278
|
+
let selectionType: "files" | "folders" | "both" | undefined;
|
|
279
|
+
if (cfg.disableFileUpload) {
|
|
280
|
+
if (cfg.disableDirUpload) {
|
|
281
|
+
selectionType = undefined;
|
|
282
|
+
} else {
|
|
283
|
+
selectionType = "folders";
|
|
284
|
+
}
|
|
285
|
+
} else {
|
|
286
|
+
if (cfg.disableDirUpload) {
|
|
287
|
+
selectionType = "files";
|
|
288
|
+
} else {
|
|
289
|
+
selectionType = "both";
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
uppy.use(Dashboard, {
|
|
293
|
+
inline: false,
|
|
294
|
+
note: cfg.uploadNote,
|
|
295
|
+
proudlyDisplayPoweredByUppy: false,
|
|
296
|
+
fileManagerSelectionType: selectionType,
|
|
297
|
+
singleFileFullScreen: false,
|
|
298
|
+
disableLocalFiles: cfg.disableFileUpload ?? false,
|
|
299
|
+
closeAfterFinish: true,
|
|
300
|
+
closeModalOnClickOutside: true
|
|
301
|
+
}).use(ImageEditor);
|
|
302
|
+
|
|
303
|
+
uppy.on('file-added', file => {
|
|
304
|
+
emits('fileAdded', file)
|
|
305
|
+
}).on('files-added', files => {
|
|
306
|
+
emits('filesAdded', files)
|
|
307
|
+
}).on('file-removed', file => {
|
|
308
|
+
emits('fileRemoved', file)
|
|
309
|
+
}).on('upload', (uploadID, files) => {
|
|
310
|
+
emits('upload', uploadID, files);
|
|
311
|
+
}).on('progress', progress => {
|
|
312
|
+
emits('progress', progress)
|
|
313
|
+
}).on('upload-progress', file => {
|
|
314
|
+
emits('uploadProgress', file)
|
|
315
|
+
}).on('upload-pause', (file, isPaused) => {
|
|
316
|
+
emits("uploadPause", file, isPaused)
|
|
317
|
+
}).on('upload-success', file => {
|
|
318
|
+
emits('uploadSuccess', file)
|
|
319
|
+
}).on('complete', (result) => {
|
|
320
|
+
emits('complete', result.successful, result.failed)
|
|
321
|
+
}).on('error', (error) => {
|
|
322
|
+
emits('error', error)
|
|
323
|
+
}).on('upload-error', (file, error) => {
|
|
324
|
+
emits('uploadError', file, error)
|
|
325
|
+
})
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
async function onUploadBtnClick() {
|
|
329
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
330
|
+
if (cfg) {
|
|
331
|
+
uppy?.setMeta({
|
|
332
|
+
attachId: attachId.value!,
|
|
333
|
+
configKey: props.configKey,
|
|
334
|
+
appServiceName: props.serviceName,
|
|
335
|
+
classifiedLevel: selectedFileClassificationLevel.value.toString()
|
|
336
|
+
});
|
|
337
|
+
const dashboard = uppy?.getPlugin("Dashboard") as any;
|
|
338
|
+
if (dashboard) {
|
|
339
|
+
dashboard.setOptions({
|
|
340
|
+
note: (
|
|
341
|
+
cfg.uploadNote ? cfg.uploadNote : ""
|
|
342
|
+
)
|
|
343
|
+
+ `(正在上传${classificationLevelMap.value?.get(selectedFileClassificationLevel.value)}文件)`
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
dashboard?.openModal();
|
|
347
|
+
} else {
|
|
348
|
+
ElMessageBox.alert("无法找到附件配置" + props.configKey, "错误");
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function handleClassificationLevelSelCmd(level: number) {
|
|
353
|
+
selectedFileClassificationLevel.value = level;
|
|
354
|
+
uppy?.setMeta({
|
|
355
|
+
attachId: attachId.value!,
|
|
356
|
+
configKey: props.configKey,
|
|
357
|
+
appServiceName: props.serviceName,
|
|
358
|
+
classifiedLevel: selectedFileClassificationLevel.value.toString()
|
|
359
|
+
});
|
|
360
|
+
const dashboard = uppy?.getPlugin("Dashboard") as any;
|
|
361
|
+
if (dashboard) {
|
|
362
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
363
|
+
if (cfg) {
|
|
364
|
+
dashboard.setOptions({
|
|
365
|
+
note: (
|
|
366
|
+
cfg.uploadNote ? cfg.uploadNote : ""
|
|
367
|
+
)
|
|
368
|
+
+ `(正在上传${classificationLevelMap.value?.get(selectedFileClassificationLevel.value)}文件)`
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
dashboard?.openModal();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
async function initLoad() {
|
|
376
|
+
uploadInitParams.value = await api.initLoad(props.serviceName, props.configKey, props.attachToken!);
|
|
377
|
+
files.value = uploadInitParams.value.files;
|
|
378
|
+
attachId.value = uploadInitParams.value?.attachId;
|
|
379
|
+
curAttachToken.value = uploadInitParams.value?.attachId;
|
|
380
|
+
isNewForm.value = false;
|
|
381
|
+
await nextTick();
|
|
382
|
+
createUppyInstance();
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
async function initNew() {
|
|
386
|
+
uploadInitParams.value = await api.initNew(props.serviceName, props.configKey);
|
|
387
|
+
files.value = uploadInitParams.value.files;
|
|
388
|
+
attachId.value = uploadInitParams.value?.attachId;
|
|
389
|
+
curAttachToken.value = uploadInitParams.value?.attachToken;
|
|
390
|
+
isNewForm.value = true;
|
|
391
|
+
emits('change', attachId.value);
|
|
392
|
+
await nextTick();
|
|
393
|
+
createUppyInstance();
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
async function delUploadedFile(file: FileInfo) {
|
|
397
|
+
await api.deleteFile(file.token || file.id);
|
|
398
|
+
files.value = files.value.filter(f => f.id !== file.id);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function previewFile(fileToken: string) {
|
|
402
|
+
pdfSrc.value = new URL("uploads/preview/" + fileToken, location.origin).toString()
|
|
403
|
+
pdfViewerVisible.value = true;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
async function downloadFile(fileToken: string) {
|
|
407
|
+
await api.downloadFile(fileToken);
|
|
408
|
+
var file = files.value.filter(f => fileToken === f.token)
|
|
409
|
+
if (file && file.length > 0)
|
|
410
|
+
emits('downloaded', file[0]);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function viewUppyDashboard() {
|
|
414
|
+
const dashboard = uppy?.getPlugin("Dashboard") as any;
|
|
415
|
+
if (dashboard) {
|
|
416
|
+
dashboard.openModal();
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
async function downloadAll() {
|
|
421
|
+
if (!curAttachToken.value) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
await api.downloadZipFile(curAttachToken.value);
|
|
425
|
+
emits('zipDownloaded', files.value);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
function checkAllowUpload() {
|
|
429
|
+
console.log('ja-uploader 上传权限调试:')
|
|
430
|
+
console.log('props.allowUpload = ', props.allowUpload)
|
|
431
|
+
if (props.allowUpload === false) return false;
|
|
432
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
433
|
+
if (cfg) {
|
|
434
|
+
let hasRole = true;
|
|
435
|
+
console.log('cfg.uploadAuthCode = ', cfg.uploadAuthCode)
|
|
436
|
+
if (cfg.uploadAuthCode) {
|
|
437
|
+
const login = useLoginUser();
|
|
438
|
+
if (login) {
|
|
439
|
+
hasRole = login.hasRole(cfg.uploadAuthCode);
|
|
440
|
+
}
|
|
441
|
+
console.log('hasRole = ', hasRole)
|
|
442
|
+
console.log('final upload auth: ', !cfg.disallowUpload && hasRole)
|
|
443
|
+
return !cfg.disallowUpload && hasRole;
|
|
444
|
+
}
|
|
445
|
+
return !cfg.disallowUpload;
|
|
446
|
+
}
|
|
447
|
+
console.log('file cfg ' + props.configKey + ' does not exists')
|
|
448
|
+
return !!props.allowUpload;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
function checkAllowDownload() {
|
|
452
|
+
console.log('ja-uploader 下载权限调试:')
|
|
453
|
+
console.log('props.allowDownload = ', props.allowDownload)
|
|
454
|
+
if (props.allowDownload === false) return false;
|
|
455
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
456
|
+
if (cfg) {
|
|
457
|
+
let hasRole = true;
|
|
458
|
+
console.log('cfg.uploadAuthCode = ', cfg.uploadAuthCode)
|
|
459
|
+
if (cfg.downloadAuthCode) {
|
|
460
|
+
const login = useLoginUser();
|
|
461
|
+
if (login) {
|
|
462
|
+
hasRole = login.hasRole(cfg.downloadAuthCode);
|
|
463
|
+
}
|
|
464
|
+
console.log('hasRole = ', hasRole)
|
|
465
|
+
console.log('final download auth: ', !cfg.disallowDownload && hasRole)
|
|
466
|
+
return !cfg.disallowDownload && hasRole;
|
|
467
|
+
}
|
|
468
|
+
return !cfg.disallowDownload;
|
|
469
|
+
}
|
|
470
|
+
return !!props.allowDownload;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function checkAllowDelete() {
|
|
474
|
+
console.log('ja-uploader 删除权限调试:')
|
|
475
|
+
console.log('props.allowDelete = ', props.allowDelete)
|
|
476
|
+
if (props.allowDelete === false) return false;
|
|
477
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
478
|
+
if (cfg) {
|
|
479
|
+
let hasRole = true;
|
|
480
|
+
console.log('cfg.deleteAuthCode = ', cfg.deleteAuthCode)
|
|
481
|
+
if (cfg.deleteAuthCode) {
|
|
482
|
+
const login = useLoginUser();
|
|
483
|
+
if (login) {
|
|
484
|
+
hasRole = login.hasRole(cfg.deleteAuthCode);
|
|
485
|
+
}
|
|
486
|
+
console.log('hasRole = ', hasRole)
|
|
487
|
+
console.log('final delete auth: ', !cfg.disallowDelete && hasRole)
|
|
488
|
+
return !cfg.disallowDelete && hasRole;
|
|
489
|
+
}
|
|
490
|
+
return !cfg.disallowDelete;
|
|
491
|
+
}
|
|
492
|
+
return !!props.allowDelete;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
function checkAllowPreview(file: FileInfo) {
|
|
496
|
+
console.log('ja-uploader 预览权限调试:')
|
|
497
|
+
console.log('props.allowPreview = ', props.allowPreview)
|
|
498
|
+
if (props.allowPreview === false) return false;
|
|
499
|
+
const cfg = uploadInitParams.value?.fileConfig;
|
|
500
|
+
if (cfg) {
|
|
501
|
+
if (cfg.disablePreview) {
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
console.log("file name: ", file.fileName)
|
|
505
|
+
console.log("可预览类型:", previewableFileExts)
|
|
506
|
+
return previewableFileExts.some(ext => file.fileName.endsWith(ext));
|
|
507
|
+
}
|
|
508
|
+
return props.allowPreview;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
watch(() => props.attachToken, () => {
|
|
512
|
+
if (props.attachToken) {
|
|
513
|
+
initLoad();
|
|
514
|
+
} else {
|
|
515
|
+
initNew();
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
|
|
519
|
+
watch(()=> props.classificationLevel, updateAllowedClassificationLevels)
|
|
520
|
+
|
|
521
|
+
function getFileIcon(fileName: string) {
|
|
522
|
+
if (!fileName) return Document;
|
|
523
|
+
const ext = fileName.split('.').pop()?.toLowerCase();
|
|
524
|
+
switch (ext) {
|
|
525
|
+
case 'jpg':
|
|
526
|
+
case 'jpeg':
|
|
527
|
+
case 'png':
|
|
528
|
+
case 'gif':
|
|
529
|
+
case 'bmp':
|
|
530
|
+
case 'webp':
|
|
531
|
+
case 'svg':
|
|
532
|
+
return Picture;
|
|
533
|
+
case 'mp4':
|
|
534
|
+
case 'mkv':
|
|
535
|
+
case 'avi':
|
|
536
|
+
case 'mov':
|
|
537
|
+
case 'wmv':
|
|
538
|
+
case 'webm':
|
|
539
|
+
return VideoPlay;
|
|
540
|
+
case 'mp3':
|
|
541
|
+
case 'wav':
|
|
542
|
+
case 'ogg':
|
|
543
|
+
case 'flac':
|
|
544
|
+
case 'm4a':
|
|
545
|
+
return Headset;
|
|
546
|
+
default:
|
|
547
|
+
return Document;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
</script>
|
|
552
|
+
|
|
553
|
+
<template>
|
|
554
|
+
<div class="ja-uploader">
|
|
555
|
+
<div class="ja-uploader-tools">
|
|
556
|
+
<el-button plain type="success" :icon="Upload" @click="onUploadBtnClick" :loading="loading"
|
|
557
|
+
:disabled="loading" size="small" v-if="allowedClassificationLevels.length <= 1 && checkAllowUpload()">
|
|
558
|
+
上传{{ uploadInitParams?.fileConfig.enableClassifiedLevel ? "(非密)" : "" }}
|
|
559
|
+
</el-button>
|
|
560
|
+
<el-button plain :icon="Download" @click="downloadAll" v-if="checkAllowDownload()" :loading="loading"
|
|
561
|
+
:disabled="loading || files?.length === 0" size="small">
|
|
562
|
+
全部下载
|
|
563
|
+
</el-button>
|
|
564
|
+
<el-dropdown v-if="allowedClassificationLevels.length > 1 && checkAllowUpload()"
|
|
565
|
+
@command="handleClassificationLevelSelCmd" size="small">
|
|
566
|
+
<el-button type="success" size="small">
|
|
567
|
+
上传
|
|
568
|
+
<el-icon class="el-icon--right">
|
|
569
|
+
<arrow-down />
|
|
570
|
+
</el-icon>
|
|
571
|
+
</el-button>
|
|
572
|
+
<template #dropdown>
|
|
573
|
+
<el-dropdown-menu>
|
|
574
|
+
<el-dropdown-item v-for="cl in allowedClassificationLevels" :key="cl.value"
|
|
575
|
+
:command="cl.value">{{ cl.label }}
|
|
576
|
+
</el-dropdown-item>
|
|
577
|
+
</el-dropdown-menu>
|
|
578
|
+
</template>
|
|
579
|
+
</el-dropdown>
|
|
580
|
+
<div class="container" @click="viewUppyDashboard" v-if="uploadingProgress < 100 && uploadingProgress > 0">
|
|
581
|
+
<p>
|
|
582
|
+
<span class="loader-shimmer">正在上传,已完成{{ uploadingProgress }}%...</span>
|
|
583
|
+
</p>
|
|
584
|
+
</div>
|
|
585
|
+
|
|
586
|
+
<div v-if="layout === 'inline'" class="inline-files">
|
|
587
|
+
<div v-for="file in files" :key="file.id" class="inline-file-item">
|
|
588
|
+
<el-popover placement="top" :width="300" trigger="hover">
|
|
589
|
+
<template #reference>
|
|
590
|
+
<div class="inline-file-icon-wrapper">
|
|
591
|
+
<el-icon class="file-icon" size="20"><component :is="getFileIcon(file.fileName)" /></el-icon>
|
|
592
|
+
</div>
|
|
593
|
+
</template>
|
|
594
|
+
<div class="file-popover-content">
|
|
595
|
+
<div class="popover-row">
|
|
596
|
+
<span class="label">文件名:</span>
|
|
597
|
+
<span class="value">{{ file.fileName }}</span>
|
|
598
|
+
</div>
|
|
599
|
+
<div class="popover-row">
|
|
600
|
+
<span class="label">大小:</span>
|
|
601
|
+
<span class="value">{{ prettyBytes(file.fileSize) }}</span>
|
|
602
|
+
</div>
|
|
603
|
+
<div class="popover-row">
|
|
604
|
+
<span class="label">密级:</span>
|
|
605
|
+
<span class="value">
|
|
606
|
+
<el-tag size="small"
|
|
607
|
+
:type="file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'">
|
|
608
|
+
{{ classificationLevelMap?.get(file.classifiedLevel) }}
|
|
609
|
+
</el-tag>
|
|
610
|
+
</span>
|
|
611
|
+
</div>
|
|
612
|
+
<div class="popover-actions">
|
|
613
|
+
<el-button link type="primary" @click="previewFile(file.token)"
|
|
614
|
+
v-if="checkAllowPreview(file)">预览
|
|
615
|
+
</el-button>
|
|
616
|
+
<el-button link type="primary" @click="downloadFile(file.token)" v-if="checkAllowDownload()">下载
|
|
617
|
+
</el-button>
|
|
618
|
+
<el-button link type="danger" @click="delUploadedFile(file)" v-if="checkAllowDelete()">删除
|
|
619
|
+
</el-button>
|
|
620
|
+
</div>
|
|
621
|
+
</div>
|
|
622
|
+
</el-popover>
|
|
623
|
+
</div>
|
|
624
|
+
</div>
|
|
625
|
+
</div>
|
|
626
|
+
<div v-if="layout === 'list'" class="file-list" :style="{ height: typeof props.height === 'number' ? props.height + 'px' : props.height, maxHeight: typeof props.maxHeight === 'number' ? props.maxHeight + 'px' : props.maxHeight }">
|
|
627
|
+
<div v-if="files.length === 0" class="empty-text">暂无文件</div>
|
|
628
|
+
<div v-for="file in files" :key="file.id" class="file-item">
|
|
629
|
+
<div class="file-main">
|
|
630
|
+
<el-icon class="file-icon"><component :is="getFileIcon(file.fileName)" /></el-icon>
|
|
631
|
+
<span class="file-name" :title="file.fileName">{{ file.fileName }}</span>
|
|
632
|
+
</div>
|
|
633
|
+
<div class="file-info-right">
|
|
634
|
+
<span class="file-size">{{ prettyBytes(file.fileSize) }}</span>
|
|
635
|
+
<div class="file-tag">
|
|
636
|
+
<el-tag size="small"
|
|
637
|
+
:type="file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'">
|
|
638
|
+
{{ classificationLevelMap?.get(file.classifiedLevel) }}
|
|
639
|
+
</el-tag>
|
|
640
|
+
<el-tooltip v-if="file.classifiedLevel < highestClassificationLevel" content="文件密级已高于当前许可范围,请立即删除">
|
|
641
|
+
<el-icon color="#F56C6C" class="warning-icon">
|
|
642
|
+
<warning-filled/>
|
|
643
|
+
</el-icon>
|
|
644
|
+
</el-tooltip>
|
|
645
|
+
</div>
|
|
646
|
+
<div class="file-actions">
|
|
647
|
+
<el-button link type="primary" @click="previewFile(file.token)"
|
|
648
|
+
v-if="checkAllowPreview(file)">预览
|
|
649
|
+
</el-button>
|
|
650
|
+
<el-button link type="primary" @click="downloadFile(file.token)" v-if="checkAllowDownload()">下载
|
|
651
|
+
</el-button>
|
|
652
|
+
<el-button link type="danger" @click="delUploadedFile(file)" v-if="checkAllowDelete()">删除
|
|
653
|
+
</el-button>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
</div>
|
|
657
|
+
</div>
|
|
658
|
+
</div>
|
|
659
|
+
<pdf-viewer-modal :src="pdfSrc" v-model="pdfViewerVisible"></pdf-viewer-modal>
|
|
660
|
+
</template>
|
|
661
|
+
|
|
662
|
+
<style lang="scss" scoped>
|
|
663
|
+
.uppy-Dashboard--modal {
|
|
664
|
+
z-index: 9999 !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.uppy-Root {
|
|
668
|
+
z-index: 9999;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.ja-uploader {
|
|
672
|
+
width: 100%;
|
|
673
|
+
display: flex;
|
|
674
|
+
flex-direction: column;
|
|
675
|
+
gap: 4px;
|
|
676
|
+
|
|
677
|
+
&-tools {
|
|
678
|
+
display: flex;
|
|
679
|
+
align-items: center;
|
|
680
|
+
flex-wrap: wrap;
|
|
681
|
+
gap: 8px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.inline-files {
|
|
685
|
+
display: flex;
|
|
686
|
+
align-items: center;
|
|
687
|
+
flex-wrap: wrap;
|
|
688
|
+
gap: 8px;
|
|
689
|
+
margin-left: 8px;
|
|
690
|
+
|
|
691
|
+
.inline-file-item {
|
|
692
|
+
.inline-file-icon-wrapper {
|
|
693
|
+
cursor: pointer;
|
|
694
|
+
display: flex;
|
|
695
|
+
align-items: center;
|
|
696
|
+
justify-content: center;
|
|
697
|
+
padding: 4px;
|
|
698
|
+
border-radius: 4px;
|
|
699
|
+
color: var(--el-text-color-regular);
|
|
700
|
+
|
|
701
|
+
&:hover {
|
|
702
|
+
background-color: var(--el-fill-color-light);
|
|
703
|
+
color: var(--el-color-primary);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.container {
|
|
710
|
+
padding: 0 0 0 8px;
|
|
711
|
+
cursor: pointer;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.loader-shimmer {
|
|
715
|
+
display: inline-block;
|
|
716
|
+
margin-left: 8px;
|
|
717
|
+
padding: 0 12px;
|
|
718
|
+
background-color: #e0f5f0;
|
|
719
|
+
color: #888;
|
|
720
|
+
border-radius: 4px;
|
|
721
|
+
font-size: 0.9em;
|
|
722
|
+
font-weight: 500;
|
|
723
|
+
position: relative;
|
|
724
|
+
overflow: hidden;
|
|
725
|
+
/* 隐藏闪光效果的溢出 */
|
|
726
|
+
vertical-align: middle;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.loader-shimmer::after {
|
|
730
|
+
content: '';
|
|
731
|
+
position: absolute;
|
|
732
|
+
top: 0;
|
|
733
|
+
left: -100%;
|
|
734
|
+
/* 从左侧外部开始 */
|
|
735
|
+
width: 50%;
|
|
736
|
+
/* 闪光宽度 */
|
|
737
|
+
height: 100%;
|
|
738
|
+
|
|
739
|
+
/* 闪光效果:透明 -> 亮白色 -> 透明 */
|
|
740
|
+
background: linear-gradient(90deg,
|
|
741
|
+
transparent,
|
|
742
|
+
rgba(255, 255, 255, 0.8),
|
|
743
|
+
transparent);
|
|
744
|
+
|
|
745
|
+
/* 动画: 1.5秒, 缓入缓出, 无限循环 */
|
|
746
|
+
animation: shimmer 1.5s ease-in-out infinite;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
@keyframes shimmer {
|
|
750
|
+
0% {
|
|
751
|
+
left: -100%;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
100% {
|
|
755
|
+
left: 150%;
|
|
756
|
+
/* 移动到右侧外部 */
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.file-popover-content {
|
|
762
|
+
display: flex;
|
|
763
|
+
flex-direction: column;
|
|
764
|
+
gap: 8px;
|
|
765
|
+
font-size: 14px;
|
|
766
|
+
|
|
767
|
+
.popover-row {
|
|
768
|
+
display: flex;
|
|
769
|
+
align-items: flex-start;
|
|
770
|
+
|
|
771
|
+
.label {
|
|
772
|
+
color: var(--el-text-color-secondary);
|
|
773
|
+
width: 60px;
|
|
774
|
+
flex-shrink: 0;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.value {
|
|
778
|
+
color: var(--el-text-color-primary);
|
|
779
|
+
word-break: break-all;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.popover-actions {
|
|
784
|
+
display: flex;
|
|
785
|
+
justify-content: flex-end;
|
|
786
|
+
gap: 8px;
|
|
787
|
+
margin-top: 8px;
|
|
788
|
+
border-top: 1px solid var(--el-border-color-lighter);
|
|
789
|
+
padding-top: 8px;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.file-list {
|
|
794
|
+
overflow-y: auto;
|
|
795
|
+
border: 1px solid var(--el-border-color-lighter);
|
|
796
|
+
border-radius: 4px;
|
|
797
|
+
|
|
798
|
+
.empty-text {
|
|
799
|
+
text-align: center;
|
|
800
|
+
padding: 20px;
|
|
801
|
+
color: var(--el-text-color-secondary);
|
|
802
|
+
font-size: 14px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.file-item {
|
|
806
|
+
display: flex;
|
|
807
|
+
justify-content: space-between;
|
|
808
|
+
align-items: center;
|
|
809
|
+
padding: 8px 12px;
|
|
810
|
+
border-bottom: 1px solid var(--el-border-color-lighter);
|
|
811
|
+
font-size: 14px;
|
|
812
|
+
|
|
813
|
+
&:last-child {
|
|
814
|
+
border-bottom: none;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
&:hover {
|
|
818
|
+
background-color: var(--el-fill-color-light);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.file-main {
|
|
822
|
+
display: flex;
|
|
823
|
+
align-items: center;
|
|
824
|
+
flex: 1;
|
|
825
|
+
overflow: hidden;
|
|
826
|
+
margin-right: 16px;
|
|
827
|
+
|
|
828
|
+
.file-icon {
|
|
829
|
+
margin-right: 8px;
|
|
830
|
+
color: var(--el-text-color-secondary);
|
|
831
|
+
font-size: 16px;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.file-name {
|
|
835
|
+
overflow: hidden;
|
|
836
|
+
text-overflow: ellipsis;
|
|
837
|
+
white-space: nowrap;
|
|
838
|
+
color: var(--el-text-color-regular);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.file-info-right {
|
|
843
|
+
display: flex;
|
|
844
|
+
align-items: center;
|
|
845
|
+
gap: 16px;
|
|
846
|
+
|
|
847
|
+
.file-size {
|
|
848
|
+
color: var(--el-text-color-secondary);
|
|
849
|
+
min-width: 60px;
|
|
850
|
+
text-align: right;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.file-tag {
|
|
854
|
+
display: flex;
|
|
855
|
+
align-items: center;
|
|
856
|
+
gap: 4px;
|
|
857
|
+
|
|
858
|
+
.warning-icon {
|
|
859
|
+
margin-left: 4px;
|
|
860
|
+
cursor: help;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.file-actions {
|
|
865
|
+
display: flex;
|
|
866
|
+
gap: 8px;
|
|
867
|
+
|
|
868
|
+
.el-button {
|
|
869
|
+
padding: 0;
|
|
870
|
+
height: auto;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
</style>
|