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,297 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sfc-global-uploader">
|
|
3
|
+
<div class="action-bar">
|
|
4
|
+
<el-button ref="uploadBtnRef" id="uploadBtn" type="primary">
|
|
5
|
+
<el-icon style="margin-right: 6px"><Upload /></el-icon>
|
|
6
|
+
选择文件
|
|
7
|
+
</el-button>
|
|
8
|
+
<p class="tips">{{ props.tipsText }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<!-- @uploader-drop="uploaderDrop" -->
|
|
12
|
+
<uploader
|
|
13
|
+
class="install-custom-uploader"
|
|
14
|
+
ref="uploaderRef"
|
|
15
|
+
autoStart
|
|
16
|
+
:options="options"
|
|
17
|
+
:file-status-text="props.statusText"
|
|
18
|
+
@file-complete="fileComplete"
|
|
19
|
+
@complete="complete"
|
|
20
|
+
@change="change"
|
|
21
|
+
@uploadStart="uploadStart"
|
|
22
|
+
@file-added="fileAdded"
|
|
23
|
+
@files-added="filesAdded"
|
|
24
|
+
@file-error="fileError"
|
|
25
|
+
@file-success="fileSuccess"
|
|
26
|
+
>
|
|
27
|
+
<template v-slot="slotProps">
|
|
28
|
+
<div
|
|
29
|
+
class="empty-prompt"
|
|
30
|
+
v-if="slotProps.files.length === 0 && slotProps.fileList.length === 0"
|
|
31
|
+
>
|
|
32
|
+
<el-image
|
|
33
|
+
fit="contain"
|
|
34
|
+
style="width: 100px; height: 100px"
|
|
35
|
+
src="/images/uploader/upload-empty.svg"
|
|
36
|
+
></el-image>
|
|
37
|
+
<p>{{ props.emptyPromptText }}</p>
|
|
38
|
+
</div>
|
|
39
|
+
<uploader-list v-else></uploader-list>
|
|
40
|
+
</template>
|
|
41
|
+
<!-- <uploader-btn>select files</uploader-btn> -->
|
|
42
|
+
<!-- <p class="">请选择需要上传的文件</p> -->
|
|
43
|
+
|
|
44
|
+
<!-- <uploader-unsupport></uploader-unsupport>
|
|
45
|
+
<uploader-drop>
|
|
46
|
+
<p>Drop files here to upload or</p>
|
|
47
|
+
<uploader-btn>select files</uploader-btn>
|
|
48
|
+
<uploader-btn :attrs="attrs">select images</uploader-btn>
|
|
49
|
+
<uploader-btn :directory="true">select folder</uploader-btn>
|
|
50
|
+
</uploader-drop>
|
|
51
|
+
<uploader-list></uploader-list> -->
|
|
52
|
+
</uploader>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import {
|
|
58
|
+
nextTick,
|
|
59
|
+
ref,
|
|
60
|
+
onMounted,
|
|
61
|
+
reactive,
|
|
62
|
+
getCurrentInstance,
|
|
63
|
+
ComponentInternalInstance,
|
|
64
|
+
} from "vue";
|
|
65
|
+
import type { ElButton } from "element-plus";
|
|
66
|
+
import { ElNotification } from "element-plus";
|
|
67
|
+
const uploaderRef = ref<any>(null);
|
|
68
|
+
const uploaderInstance = ref<any>(null);
|
|
69
|
+
const uploadBtnRef = ref<InstanceType<typeof ElButton> | null>(null);
|
|
70
|
+
const emit = defineEmits([
|
|
71
|
+
"fileSuccess",
|
|
72
|
+
"fileError",
|
|
73
|
+
"fileAdded",
|
|
74
|
+
"filesAdded",
|
|
75
|
+
"complete",
|
|
76
|
+
"fileComplete",
|
|
77
|
+
"change",
|
|
78
|
+
"uploadStart",
|
|
79
|
+
]);
|
|
80
|
+
const { proxy }: any = getCurrentInstance();
|
|
81
|
+
|
|
82
|
+
const props = defineProps({
|
|
83
|
+
tipsText: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: "请上传指定类型文件",
|
|
86
|
+
},
|
|
87
|
+
emptyPromptText: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "暂无文件,请点击上方上传按钮选择文件。",
|
|
90
|
+
},
|
|
91
|
+
uploadMethod: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "POSt",
|
|
94
|
+
},
|
|
95
|
+
target: {
|
|
96
|
+
type: String,
|
|
97
|
+
requered: true,
|
|
98
|
+
},
|
|
99
|
+
accept: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "file",
|
|
102
|
+
},
|
|
103
|
+
chunkSize: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 10 * 1024,
|
|
106
|
+
},
|
|
107
|
+
isDirectory: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false,
|
|
110
|
+
},
|
|
111
|
+
singleFile: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: false,
|
|
114
|
+
},
|
|
115
|
+
processParams: {
|
|
116
|
+
type: Function,
|
|
117
|
+
default(params: Object) {
|
|
118
|
+
return params;
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
fileAdded: {
|
|
122
|
+
type: Function,
|
|
123
|
+
default() {
|
|
124
|
+
return true;
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
filesAdded: {
|
|
128
|
+
type: Function,
|
|
129
|
+
default() {
|
|
130
|
+
return true;
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
statusText: {
|
|
134
|
+
type: Object,
|
|
135
|
+
default() {
|
|
136
|
+
return {
|
|
137
|
+
success: "上传成功",
|
|
138
|
+
error: "出错了",
|
|
139
|
+
uploading: "上传中",
|
|
140
|
+
paused: "暂停中",
|
|
141
|
+
waiting: "等待中",
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
const options = reactive({
|
|
148
|
+
target: (import.meta as any).env.DEV ? "/ace" + props.target : props.target, //
|
|
149
|
+
singleFile: true, //单文件上传。
|
|
150
|
+
chunkSize: props.chunkSize, //分块时按照该值来分。最后一个上传块的大小是可能是大于等于1倍的这个值但是小于两倍的这个值大小
|
|
151
|
+
forceChunkSize: true, //是否强制所有的块都是小于等于 chunkSize 的值。
|
|
152
|
+
//simultaneousUploads: 3, //并发上传数,默认 3。
|
|
153
|
+
//其他额外的参数,这个可以是一个对象或者是一个函数,如果是函数的话,则会传入 Uploader.File 实例、当前块 Uploader.Chunk 以及是否是测试模式,默认为 {}。
|
|
154
|
+
// query() {},
|
|
155
|
+
testChunks: false,
|
|
156
|
+
uploadMethod: props.uploadMethod,
|
|
157
|
+
// testMethod: "POST",
|
|
158
|
+
//额外的一些请求头,如果是函数的话,则会传入 Uploader.File 实例、当前块 Uploader.Chunk 以及是否是测试模式,默认 {}。
|
|
159
|
+
// headers(){},
|
|
160
|
+
//withCredentials: true, //标准的 CORS 请求是不会带上 cookie 的,如果想要带的话需要设置 withCredentials 为 true,默认 false。
|
|
161
|
+
//method:'multipart、octet,默认' 当上传的时候所使用的是方式,可选 multipart、octet,默认 multipart,参考 multipart vs octet。
|
|
162
|
+
//testChunks: false, //是否测试每个块是否在服务端已经上传了,主要用来实现秒传、跨浏览器上传等,默认 true。
|
|
163
|
+
//initFileFn(){}, //可选函数用于初始化文件对象,传入的参数就是 Uploader.File 实例。
|
|
164
|
+
//readFileFn(){}, //可选的函数用于原始文件的读取操作,传入的参数就是 Uploader.File 实例、文件类型、开始字节位置 startByte,结束字节位置 endByte、以及当前块 Uploader.Chunk 实例。并且当完成后应该调用当前块实例的readFinished 方法,且带参数-已读取的 bytes。
|
|
165
|
+
//checkChunkUploadedByResponse(){}, 可选的函数用于根据 XHR 响应内容检测每个块是否上传成功了,传入的参数是:Uploader.Chunk 实例以及请求响应信息。这样就没必要上传(测试)所有的块了,具体细节原因参考 Issue #1,使用示例.
|
|
166
|
+
//generateUniqueIdentifier:null, 可覆盖默认的生成文件唯一标示的函数,默认 null。
|
|
167
|
+
// maxChunkRetries: 2, //最大自动失败重试上传次数,值可以是任意正整数,如果是 undefined 则代表无限次,默认 0。
|
|
168
|
+
// chunkRetryInterval: 3, // 重试间隔,值可以是任意正整数,如果是 null 则代表立即重试,默认 null。
|
|
169
|
+
//progressCallbacksInterval: 500, // 进度回调间隔,默认是 500。
|
|
170
|
+
//speedSmoothingFactor: 0, //主要用于计算平均速度,值就是从 0 到 1,如果是 1 那么上传的平均速度就等于当前上传速度,如果说长时间上传的话,建议设置为 0.02,这样剩余时间预估会更精确,这个参数是需要和 progressCallbacksInterval 一起调整的,默认是 0.1。
|
|
171
|
+
//successStatuses: [200], //认为响应式成功的响应码,默认 [200, 201, 202]。
|
|
172
|
+
permanentErrors: [400, 404, 415, 500, 501], //认为是出错的响应码,默认 [400,404, 415, 500, 501]。
|
|
173
|
+
//initialPaused: true, //初始文件 paused 状态,默认 false。
|
|
174
|
+
//处理请求结果,默认 function (response, cb) { cb(null, response) }。 0.5.2版本后,processResponse 会传入更多参数:(response, cb, Uploader.File, Uploader.Chunk)。
|
|
175
|
+
// processResponse() {},
|
|
176
|
+
//处理请求参数,默认 function (params) {return params},一般用于修改参数名字或者删除参数。0.5.2版本后,processParams 会有更多参数:(params, Uploader.File, Uploader.Chunk, isTest)。
|
|
177
|
+
processParams(params: any, file: any, chunk: any) {
|
|
178
|
+
return props.processParams(params, file, chunk);
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
function uploadStart() {
|
|
183
|
+
emit("uploadStart");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function complete() {
|
|
187
|
+
emit("complete");
|
|
188
|
+
}
|
|
189
|
+
const fileComplete = function (rootFile: any) {
|
|
190
|
+
emit("fileComplete", rootFile);
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* input 的 change 事件。
|
|
194
|
+
*/
|
|
195
|
+
function change() {
|
|
196
|
+
emit("change");
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* 拖拽区域的 dragover 事件。
|
|
200
|
+
*/
|
|
201
|
+
// function uploaderDrop() {
|
|
202
|
+
// console.log("dragover", arguments);
|
|
203
|
+
// }
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 这个事件一般用作文件校验,如果说返回了 false,那么这个文件就会被忽略,不会添加到文件上传列表中。
|
|
207
|
+
*/
|
|
208
|
+
function fileAdded(file: any, event: any) {
|
|
209
|
+
return props.fileAdded(file, event);
|
|
210
|
+
// console.log("fileAdded", file, event);
|
|
211
|
+
// emit("fileAdded", file, event);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* 和 fileAdded 一样,但是一般用作多个文件的校验。
|
|
215
|
+
*/
|
|
216
|
+
function filesAdded(files: any, fileList: any, event: any) {
|
|
217
|
+
return props.filesAdded(files, fileList, event);
|
|
218
|
+
// console.log("filesAdded", files, fileList, event);
|
|
219
|
+
// emit("filesAdded", files, fileList, event);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* fileError
|
|
224
|
+
*/
|
|
225
|
+
function fileError(rootFile: any, file: any, message: string, chunk: any) {
|
|
226
|
+
const errorMsg = JSON.parse(message);
|
|
227
|
+
ElNotification({
|
|
228
|
+
title: "上传错误",
|
|
229
|
+
message: errorMsg.message,
|
|
230
|
+
type: "error",
|
|
231
|
+
duration: 6000,
|
|
232
|
+
});
|
|
233
|
+
emit("fileError", rootFile, file, message, chunk);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* fileSuccess
|
|
237
|
+
*/
|
|
238
|
+
function fileSuccess(rootFile: any, file: any, message: any, chunk: any) {
|
|
239
|
+
emit("fileSuccess", rootFile, file, message, chunk);
|
|
240
|
+
}
|
|
241
|
+
onMounted(() => {
|
|
242
|
+
nextTick(() => {
|
|
243
|
+
uploaderInstance.value = uploaderRef.value.uploader;
|
|
244
|
+
window.uploaderInstance = uploaderRef.value.uploader;
|
|
245
|
+
proxy.mittBus.emit("uploaderInit", uploaderInstance.value);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
defineExpose({
|
|
249
|
+
upload: uploaderInstance,
|
|
250
|
+
});
|
|
251
|
+
</script>
|
|
252
|
+
|
|
253
|
+
<style scoped lang="scss">
|
|
254
|
+
.sfc-global-uploader {
|
|
255
|
+
width: 100%;
|
|
256
|
+
.action-bar {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: row;
|
|
259
|
+
}
|
|
260
|
+
.tips {
|
|
261
|
+
margin: 0;
|
|
262
|
+
padding-left: 16px;
|
|
263
|
+
color: var(--el-text-color-regular);
|
|
264
|
+
}
|
|
265
|
+
.empty-prompt {
|
|
266
|
+
color: var(--el-text-color-secondary);
|
|
267
|
+
display: flex;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
justify-content: center;
|
|
270
|
+
align-items: center;
|
|
271
|
+
p {
|
|
272
|
+
padding: 0;
|
|
273
|
+
margin: 0;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
:deep(.uploader.install-custom-uploader) {
|
|
277
|
+
margin-top: 8px;
|
|
278
|
+
border: 1px solid var(--el-border-color);
|
|
279
|
+
border-radius: 4px;
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
// padding: 8px 16px;
|
|
282
|
+
.uploader-list {
|
|
283
|
+
padding: 8px 16px;
|
|
284
|
+
.uploader-file:first-child {
|
|
285
|
+
margin-bottom: 0 !important;
|
|
286
|
+
}
|
|
287
|
+
.uploader-file {
|
|
288
|
+
border-bottom: none;
|
|
289
|
+
border-radius: 2px;
|
|
290
|
+
overflow: hidden;
|
|
291
|
+
margin-bottom: 8px;
|
|
292
|
+
// border-style: dashed;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
</style>
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sfc-uploader">
|
|
3
|
+
<div class="action-bar" v-if="props.allowUpload">
|
|
4
|
+
<el-button ref="uploadBtnRef" id="uploadBtn" type="primary">
|
|
5
|
+
<i class="aceicon icon-upload_3_line"></i>
|
|
6
|
+
选择文件
|
|
7
|
+
</el-button>
|
|
8
|
+
<p class="tips">{{ props.tipsText }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<!-- @uploader-drop="uploaderDrop" -->
|
|
12
|
+
<uploader
|
|
13
|
+
class="install-custom-uploader"
|
|
14
|
+
ref="uploaderRef"
|
|
15
|
+
autoStart
|
|
16
|
+
:options="options"
|
|
17
|
+
:file-status-text="props.statusText"
|
|
18
|
+
@file-complete="fileComplete"
|
|
19
|
+
@complete="complete"
|
|
20
|
+
@change="change"
|
|
21
|
+
@uploadStart="uploadStart"
|
|
22
|
+
@file-added="fileAdded"
|
|
23
|
+
@files-added="filesAdded"
|
|
24
|
+
@file-error="fileError"
|
|
25
|
+
@file-success="fileSuccess"
|
|
26
|
+
>
|
|
27
|
+
<template v-slot="slotProps">
|
|
28
|
+
<div
|
|
29
|
+
class="empty-prompt"
|
|
30
|
+
v-if="slotProps.files.length === 0 && slotProps.fileList.length === 0"
|
|
31
|
+
>
|
|
32
|
+
<el-image
|
|
33
|
+
fit="contain"
|
|
34
|
+
style="width: 100px; height: 100px"
|
|
35
|
+
src="/images/uploader/upload-empty.svg"
|
|
36
|
+
></el-image>
|
|
37
|
+
<p>{{ props.emptyPromptText }}</p>
|
|
38
|
+
</div>
|
|
39
|
+
<uploader-list v-else></uploader-list>
|
|
40
|
+
</template>
|
|
41
|
+
<!-- <uploader-btn>select files</uploader-btn> -->
|
|
42
|
+
<!-- <p class="">请选择需要上传的文件</p> -->
|
|
43
|
+
|
|
44
|
+
<!-- <uploader-unsupport></uploader-unsupport>
|
|
45
|
+
<uploader-drop>
|
|
46
|
+
<p>Drop files here to upload or</p>
|
|
47
|
+
<uploader-btn>select files</uploader-btn>
|
|
48
|
+
<uploader-btn :attrs="attrs">select images</uploader-btn>
|
|
49
|
+
<uploader-btn :directory="true">select folder</uploader-btn>
|
|
50
|
+
</uploader-drop>
|
|
51
|
+
<uploader-list></uploader-list> -->
|
|
52
|
+
</uploader>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import { nextTick, ref, onMounted, reactive } from "vue";
|
|
58
|
+
import type { ElButton } from "element-plus";
|
|
59
|
+
import { ElNotification } from "element-plus";
|
|
60
|
+
import { useCookies } from "@vueuse/integrations/useCookies";
|
|
61
|
+
const uploaderRef = ref<any>(null);
|
|
62
|
+
const uploaderInstance = ref<any>(null);
|
|
63
|
+
const cookies = useCookies();
|
|
64
|
+
const uploadBtnRef = ref<InstanceType<typeof ElButton> | null>(null);
|
|
65
|
+
const emit = defineEmits([
|
|
66
|
+
"fileSuccess",
|
|
67
|
+
"fileError",
|
|
68
|
+
"fileAdded",
|
|
69
|
+
"filesAdded",
|
|
70
|
+
"complete",
|
|
71
|
+
"fileComplete",
|
|
72
|
+
"change",
|
|
73
|
+
"uploadStart",
|
|
74
|
+
"addFileError",
|
|
75
|
+
]);
|
|
76
|
+
|
|
77
|
+
const props = defineProps({
|
|
78
|
+
allowUpload: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: true,
|
|
81
|
+
},
|
|
82
|
+
maxFilesNumber: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 0,
|
|
85
|
+
},
|
|
86
|
+
tipsText: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "请上传指定类型文件",
|
|
89
|
+
},
|
|
90
|
+
emptyPromptText: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "暂无文件,请点击上方上传按钮选择文件。",
|
|
93
|
+
},
|
|
94
|
+
uploadMethod: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "POSt",
|
|
97
|
+
},
|
|
98
|
+
target: {
|
|
99
|
+
type: String,
|
|
100
|
+
requered: true,
|
|
101
|
+
},
|
|
102
|
+
accept: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: "file",
|
|
105
|
+
},
|
|
106
|
+
chunkSize: {
|
|
107
|
+
type: Number,
|
|
108
|
+
default: 10 * 1024,
|
|
109
|
+
},
|
|
110
|
+
isDirectory: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false,
|
|
113
|
+
},
|
|
114
|
+
singleFile: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: false,
|
|
117
|
+
},
|
|
118
|
+
processParams: {
|
|
119
|
+
type: Function,
|
|
120
|
+
default(params: Object) {
|
|
121
|
+
return params;
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
fileAdded: {
|
|
125
|
+
type: Function,
|
|
126
|
+
default() {
|
|
127
|
+
return true;
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
filesAdded: {
|
|
131
|
+
type: Function,
|
|
132
|
+
default() {
|
|
133
|
+
return true;
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
statusText: {
|
|
137
|
+
type: Object,
|
|
138
|
+
default() {
|
|
139
|
+
return {
|
|
140
|
+
success: "上传成功",
|
|
141
|
+
error: "出错了",
|
|
142
|
+
uploading: "上传中",
|
|
143
|
+
paused: "暂停中",
|
|
144
|
+
waiting: "等待中",
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const options = reactive({
|
|
151
|
+
target: import.meta.env.DEV ? "/ace" + props.target : props.target, //
|
|
152
|
+
singleFile: true, //单文件上传。
|
|
153
|
+
chunkSize: props.chunkSize, //分块时按照该值来分。最后一个上传块的大小是可能是大于等于1倍的这个值但是小于两倍的这个值大小
|
|
154
|
+
forceChunkSize: true, //是否强制所有的块都是小于等于 chunkSize 的值。
|
|
155
|
+
//simultaneousUploads: 3, //并发上传数,默认 3。
|
|
156
|
+
//其他额外的参数,这个可以是一个对象或者是一个函数,如果是函数的话,则会传入 Uploader.File 实例、当前块 Uploader.Chunk 以及是否是测试模式,默认为 {}。
|
|
157
|
+
// query() {},
|
|
158
|
+
testChunks: false,
|
|
159
|
+
uploadMethod: props.uploadMethod,
|
|
160
|
+
// testMethod: "POST",
|
|
161
|
+
//额外的一些请求头,如果是函数的话,则会传入 Uploader.File 实例、当前块 Uploader.Chunk 以及是否是测试模式,默认 {}。
|
|
162
|
+
headers: {
|
|
163
|
+
"X-XSRF-TOKEN": cookies.get("XSRF-TOKEN"),
|
|
164
|
+
},
|
|
165
|
+
//withCredentials: true, //标准的 CORS 请求是不会带上 cookie 的,如果想要带的话需要设置 withCredentials 为 true,默认 false。
|
|
166
|
+
//method:'multipart、octet,默认' 当上传的时候所使用的是方式,可选 multipart、octet,默认 multipart,参考 multipart vs octet。
|
|
167
|
+
//testChunks: false, //是否测试每个块是否在服务端已经上传了,主要用来实现秒传、跨浏览器上传等,默认 true。
|
|
168
|
+
//initFileFn(){}, //可选函数用于初始化文件对象,传入的参数就是 Uploader.File 实例。
|
|
169
|
+
//readFileFn(){}, //可选的函数用于原始文件的读取操作,传入的参数就是 Uploader.File 实例、文件类型、开始字节位置 startByte,结束字节位置 endByte、以及当前块 Uploader.Chunk 实例。并且当完成后应该调用当前块实例的readFinished 方法,且带参数-已读取的 bytes。
|
|
170
|
+
//checkChunkUploadedByResponse(){}, 可选的函数用于根据 XHR 响应内容检测每个块是否上传成功了,传入的参数是:Uploader.Chunk 实例以及请求响应信息。这样就没必要上传(测试)所有的块了,具体细节原因参考 Issue #1,使用示例.
|
|
171
|
+
//generateUniqueIdentifier:null, 可覆盖默认的生成文件唯一标示的函数,默认 null。
|
|
172
|
+
// maxChunkRetries: 2, //最大自动失败重试上传次数,值可以是任意正整数,如果是 undefined 则代表无限次,默认 0。
|
|
173
|
+
// chunkRetryInterval: 3, // 重试间隔,值可以是任意正整数,如果是 null 则代表立即重试,默认 null。
|
|
174
|
+
//progressCallbacksInterval: 500, // 进度回调间隔,默认是 500。
|
|
175
|
+
//speedSmoothingFactor: 0, //主要用于计算平均速度,值就是从 0 到 1,如果是 1 那么上传的平均速度就等于当前上传速度,如果说长时间上传的话,建议设置为 0.02,这样剩余时间预估会更精确,这个参数是需要和 progressCallbacksInterval 一起调整的,默认是 0.1。
|
|
176
|
+
//successStatuses: [200], //认为响应式成功的响应码,默认 [200, 201, 202]。
|
|
177
|
+
permanentErrors: [400, 404, 415, 500, 501], //认为是出错的响应码,默认 [400,404, 415, 500, 501]。
|
|
178
|
+
//initialPaused: true, //初始文件 paused 状态,默认 false。
|
|
179
|
+
//处理请求结果,默认 function (response, cb) { cb(null, response) }。 0.5.2版本后,processResponse 会传入更多参数:(response, cb, Uploader.File, Uploader.Chunk)。
|
|
180
|
+
// processResponse() {},
|
|
181
|
+
//处理请求参数,默认 function (params) {return params},一般用于修改参数名字或者删除参数。0.5.2版本后,processParams 会有更多参数:(params, Uploader.File, Uploader.Chunk, isTest)。
|
|
182
|
+
processParams(params: any, file: any, chunk: any) {
|
|
183
|
+
return props.processParams(params, file, chunk);
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
function uploadStart() {
|
|
188
|
+
emit("uploadStart");
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function complete() {
|
|
192
|
+
emit("complete");
|
|
193
|
+
}
|
|
194
|
+
const fileComplete = function (rootFile: any) {
|
|
195
|
+
emit("fileComplete", rootFile);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* 验证文件数量
|
|
200
|
+
*/
|
|
201
|
+
function validateFilesNumber(filesNum: number, uploadFileNum: number) {
|
|
202
|
+
//如果数量为0 则不显示上传数量 直接返回 true
|
|
203
|
+
if (props.maxFilesNumber === 0) return true;
|
|
204
|
+
if (filesNum > props.maxFilesNumber - uploadFileNum) {
|
|
205
|
+
ElNotification({
|
|
206
|
+
title: "上传文件提示",
|
|
207
|
+
message: `最多只能上传${props.maxFilesNumber}个文件`,
|
|
208
|
+
type: "warning",
|
|
209
|
+
});
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* input 的 change 事件。
|
|
217
|
+
*/
|
|
218
|
+
function change() {
|
|
219
|
+
emit("change");
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* 拖拽区域的 dragover 事件。
|
|
223
|
+
*/
|
|
224
|
+
// function uploaderDrop() {
|
|
225
|
+
// console.log("dragover", arguments);
|
|
226
|
+
// }
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* 这个事件一般用作文件校验,如果说返回了 false,那么这个文件就会被忽略,不会添加到文件上传列表中。
|
|
230
|
+
*/
|
|
231
|
+
function fileAdded(file: any, event: any) {
|
|
232
|
+
const validateNumRes = validateFilesNumber(file.fileList.length, 1);
|
|
233
|
+
if (!validateNumRes) {
|
|
234
|
+
file.removeFile();
|
|
235
|
+
emit("addFileError", file, "超出最大文件上传数量");
|
|
236
|
+
return false;
|
|
237
|
+
} else {
|
|
238
|
+
return props.fileAdded(file, event);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* 和 fileAdded 一样,但是一般用作多个文件的校验。
|
|
243
|
+
*/
|
|
244
|
+
function filesAdded(files: any, fileList: any, event: any) {
|
|
245
|
+
const validateNumRes = validateFilesNumber(fileList.length, files.length);
|
|
246
|
+
if (!validateNumRes) {
|
|
247
|
+
files.forEach((file: any) => {
|
|
248
|
+
file.removeFile();
|
|
249
|
+
});
|
|
250
|
+
emit("addFileError", files, "超出最大文件上传数量");
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return props.filesAdded(files, fileList, event);
|
|
255
|
+
|
|
256
|
+
// console.log("filesAdded", files, fileList, event);
|
|
257
|
+
// emit("filesAdded", files, fileList, event);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* fileError
|
|
262
|
+
*/
|
|
263
|
+
function fileError(rootFile: any, file: any, message: string, chunk: any) {
|
|
264
|
+
const errorMsg = JSON.parse(message);
|
|
265
|
+
ElNotification({
|
|
266
|
+
title: "上传错误",
|
|
267
|
+
message: errorMsg.message,
|
|
268
|
+
type: "error",
|
|
269
|
+
duration: 6000,
|
|
270
|
+
});
|
|
271
|
+
emit("fileError", rootFile, file, message, chunk);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* fileSuccess
|
|
275
|
+
*/
|
|
276
|
+
function fileSuccess(rootFile: any, file: any, message: any, chunk: any) {
|
|
277
|
+
emit("fileSuccess", rootFile, file, message, chunk);
|
|
278
|
+
}
|
|
279
|
+
onMounted(() => {
|
|
280
|
+
nextTick(() => {
|
|
281
|
+
uploaderInstance.value = uploaderRef.value.uploader;
|
|
282
|
+
window.uploaderInstance = uploaderRef.value.uploader;
|
|
283
|
+
//创建上传按钮
|
|
284
|
+
uploaderInstance.value.assignBrowse(
|
|
285
|
+
document.getElementById("uploadBtn"),
|
|
286
|
+
props.isDirectory,
|
|
287
|
+
props.singleFile,
|
|
288
|
+
{
|
|
289
|
+
accept: props.accept,
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
console.log("创建了实例==>", uploaderInstance.value);
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
defineExpose({
|
|
296
|
+
upload: uploaderInstance,
|
|
297
|
+
});
|
|
298
|
+
</script>
|
|
299
|
+
|
|
300
|
+
<style scoped lang="scss">
|
|
301
|
+
.sfc-uploader {
|
|
302
|
+
width: 100%;
|
|
303
|
+
.action-bar {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: row;
|
|
306
|
+
}
|
|
307
|
+
.tips {
|
|
308
|
+
margin: 0;
|
|
309
|
+
padding-left: 16px;
|
|
310
|
+
color: var(--el-text-color-regular);
|
|
311
|
+
}
|
|
312
|
+
.empty-prompt {
|
|
313
|
+
color: var(--el-text-color-secondary);
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: row;
|
|
316
|
+
align-items: center;
|
|
317
|
+
p {
|
|
318
|
+
padding: 0;
|
|
319
|
+
margin: 0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
:deep(.uploader.install-custom-uploader) {
|
|
323
|
+
margin-top: 8px;
|
|
324
|
+
border: 1px solid var(--ace-border-color3);
|
|
325
|
+
border-radius: 4px;
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
// padding: 8px 16px;
|
|
328
|
+
.uploader-list {
|
|
329
|
+
padding: 8px;
|
|
330
|
+
.uploader-file:first-child {
|
|
331
|
+
margin-bottom: 0 !important;
|
|
332
|
+
}
|
|
333
|
+
.uploader-file {
|
|
334
|
+
border-bottom: none;
|
|
335
|
+
border-radius: 2px;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
margin-bottom: 8px;
|
|
338
|
+
// border-style: dashed;
|
|
339
|
+
.uploader-file-progress {
|
|
340
|
+
background: var(--ace-bg-gradient-2);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
</style>
|