@arkxos/arkos-system 0.1.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/README.md +36 -0
- package/ark_dist/664d11f069eab128.css +2 -0
- package/ark_dist/ArkOsConfig.js +136 -0
- package/ark_dist/ark-meta.json +92 -0
- package/ark_dist/ark_userChunk_1.js +3 -0
- package/ark_dist/ark_userChunk_2.js +5 -0
- package/ark_dist/ark_userChunk_3.js +49 -0
- package/ark_dist/config.js +75 -0
- package/ark_dist/css/views/views-flow-flow.ca26b106.css +5784 -0
- package/ark_dist/favicon.ico +0 -0
- package/ark_dist/fonts/bpmn.5d33bee4.eot +0 -0
- package/ark_dist/fonts/bpmn.67058807.woff2 +0 -0
- package/ark_dist/fonts/bpmn.b5c9250d.ttf +0 -0
- package/ark_dist/fonts/bpmn.e9e7d076.woff +0 -0
- package/ark_dist/img/404.png +0 -0
- package/ark_dist/img/auth_banner.jpg +0 -0
- package/ark_dist/img/avatar.jpg +0 -0
- package/ark_dist/img/avatar2.gif +0 -0
- package/ark_dist/img/avatar3.gif +0 -0
- package/ark_dist/img/bpmn.74eea12b.svg +224 -0
- package/ark_dist/img/loginbg.svg +1 -0
- package/ark_dist/img/logo-r.png +0 -0
- package/ark_dist/img/logo.png +0 -0
- package/ark_dist/img/mobile-bg.d055fadc.png +0 -0
- package/ark_dist/img/no-widgets.svg +57 -0
- package/ark_dist/img/tasks-example.png +0 -0
- package/ark_dist/img/ver.svg +236 -0
- package/ark_dist/index.html +118 -0
- package/ark_dist/js/app.e39a548a.js +1 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js +3 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.LICENSE.txt +182 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.map +1 -0
- package/ark_proxy/entry.js +28 -0
- package/ark_proxy_es/entry.js +16 -0
- package/package.json +173 -0
- package/scripts/check.js +13 -0
- package/scripts/meta.js +21 -0
- package/scripts/prepublishOnly.js +28 -0
- package/src/admin/App.vue +13 -0
- package/src/admin/bpmn/custom/context-pad.js +405 -0
- package/src/admin/bpmn/custom/index.js +8 -0
- package/src/admin/bpmn/custom/palette.js +159 -0
- package/src/admin/bpmn/properties-panel/PropertiesView.vue +620 -0
- package/src/admin/bpmn/translate.js +23 -0
- package/src/admin/bpmn/translations.js +211 -0
- package/src/admin/components/affix/index.vue +385 -0
- package/src/admin/components/area-select/index.vue +52 -0
- package/src/admin/components/buttons/index.vue +47 -0
- package/src/admin/components/checkbox/index.vue +83 -0
- package/src/admin/components/code/code.js +149 -0
- package/src/admin/components/code/index.vue +450 -0
- package/src/admin/components/color/index.vue +30 -0
- package/src/admin/components/color-picker/index.vue +57 -0
- package/src/admin/components/color-scheme/index.vue +234 -0
- package/src/admin/components/condition-list/index.vue +170 -0
- package/src/admin/components/date/index.vue +29 -0
- package/src/admin/components/datetime/index.vue +45 -0
- package/src/admin/components/default-value-tips/index.vue +44 -0
- package/src/admin/components/dict-buttons/index.vue +53 -0
- package/src/admin/components/dict-checkbox/index.vue +45 -0
- package/src/admin/components/dict-radio/index.vue +68 -0
- package/src/admin/components/dict-select/index.vue +93 -0
- package/src/admin/components/dict-selects/index.vue +105 -0
- package/src/admin/components/dict-switch/index.vue +64 -0
- package/src/admin/components/dict-tree/index.vue +17 -0
- package/src/admin/components/dm-tree/index.vue +224 -0
- package/src/admin/components/edit-table/index.vue +171 -0
- package/src/admin/components/employee-tree/index.vue +247 -0
- package/src/admin/components/employees-tree/index.vue +80 -0
- package/src/admin/components/entp-tree/index.vue +266 -0
- package/src/admin/components/file/index.vue +310 -0
- package/src/admin/components/form/index.vue +141 -0
- package/src/admin/components/icon/index.vue +77 -0
- package/src/admin/components/icon-buttons/index.vue +52 -0
- package/src/admin/components/icon-select/index.vue +140 -0
- package/src/admin/components/image/index.vue +207 -0
- package/src/admin/components/index.js +16 -0
- package/src/admin/components/input/index.vue +41 -0
- package/src/admin/components/local-img/index.vue +49 -0
- package/src/admin/components/multiple-input/index.vue +64 -0
- package/src/admin/components/multiple-number/index.vue +70 -0
- package/src/admin/components/number/index.vue +134 -0
- package/src/admin/components/organization/index.vue +303 -0
- package/src/admin/components/organization-tree/index.vue +269 -0
- package/src/admin/components/page/index.vue +149 -0
- package/src/admin/components/password/index.vue +21 -0
- package/src/admin/components/radio/index.vue +46 -0
- package/src/admin/components/region-tree/index.vue +269 -0
- package/src/admin/components/remote-select/index.vue +315 -0
- package/src/admin/components/rich-editor/index.vue +152 -0
- package/src/admin/components/role-select/index.vue +58 -0
- package/src/admin/components/script-input/index.vue +97 -0
- package/src/admin/components/select/index.vue +105 -0
- package/src/admin/components/selects/index.vue +100 -0
- package/src/admin/components/style-list/index.vue +500 -0
- package/src/admin/components/switch/index.vue +54 -0
- package/src/admin/components/table/index.vue +920 -0
- package/src/admin/components/textarea/index.vue +28 -0
- package/src/admin/components/tree/index.vue +247 -0
- package/src/admin/components/tree-selects/index.vue +66 -0
- package/src/admin/components/unit-tree/index.vue +269 -0
- package/src/admin/console/index.vue +122 -0
- package/src/admin/layout/console/index.vue +15 -0
- package/src/admin/layout/fullscreen/index.vue +32 -0
- package/src/admin/layout/home/index.vue +11 -0
- package/src/admin/layout/index.vue +139 -0
- package/src/admin/layout/menu/index.vue +102 -0
- package/src/admin/layout/personnel/index.vue +166 -0
- package/src/admin/layout/search/index.vue +78 -0
- package/src/admin/main.js +30 -0
- package/src/admin/pinia/router.js +179 -0
- package/src/admin/router.js +91 -0
- package/src/admin/visual/comp-data.vue +1107 -0
- package/src/admin/visual/comp-event.vue +1677 -0
- package/src/admin/visual/components/app/list/goods/double.vue +184 -0
- package/src/admin/visual/components/app/list/nav/image.vue +114 -0
- package/src/admin/visual/components/app/list/nav/text.vue +130 -0
- package/src/admin/visual/components/button/index.vue +58 -0
- package/src/admin/visual/components/container/index.vue +37 -0
- package/src/admin/visual/components/custom-list/index.vue +127 -0
- package/src/admin/visual/components/data/index.vue +46 -0
- package/src/admin/visual/components/data-table/index.vue +203 -0
- package/src/admin/visual/components/echarts/annular.vue +140 -0
- package/src/admin/visual/components/echarts/bar.vue +115 -0
- package/src/admin/visual/components/echarts/funnel.vue +115 -0
- package/src/admin/visual/components/echarts/gauge.vue +158 -0
- package/src/admin/visual/components/echarts/line.vue +110 -0
- package/src/admin/visual/components/echarts/map.vue +150 -0
- package/src/admin/visual/components/echarts/pie.vue +114 -0
- package/src/admin/visual/components/echarts/radar.vue +145 -0
- package/src/admin/visual/components/echarts/scatter.vue +106 -0
- package/src/admin/visual/components/edit-table/index.vue +71 -0
- package/src/admin/visual/components/form/affix.vue +107 -0
- package/src/admin/visual/components/form/area.vue +76 -0
- package/src/admin/visual/components/form/buttons.vue +90 -0
- package/src/admin/visual/components/form/checkbox.vue +85 -0
- package/src/admin/visual/components/form/date-range.vue +61 -0
- package/src/admin/visual/components/form/date.vue +59 -0
- package/src/admin/visual/components/form/datetime.vue +59 -0
- package/src/admin/visual/components/form/employee-tree.vue +88 -0
- package/src/admin/visual/components/form/employees-tree.vue +6 -0
- package/src/admin/visual/components/form/image.vue +103 -0
- package/src/admin/visual/components/form/index.vue +59 -0
- package/src/admin/visual/components/form/input.vue +84 -0
- package/src/admin/visual/components/form/item.vue +68 -0
- package/src/admin/visual/components/form/number.vue +130 -0
- package/src/admin/visual/components/form/organization-tree.vue +88 -0
- package/src/admin/visual/components/form/password.vue +74 -0
- package/src/admin/visual/components/form/radio.vue +87 -0
- package/src/admin/visual/components/form/rate.vue +66 -0
- package/src/admin/visual/components/form/region-tree.vue +88 -0
- package/src/admin/visual/components/form/rich-editor.vue +94 -0
- package/src/admin/visual/components/form/select.vue +156 -0
- package/src/admin/visual/components/form/switch.vue +85 -0
- package/src/admin/visual/components/form/textarea.vue +62 -0
- package/src/admin/visual/components/form/unit-tree.vue +88 -0
- package/src/admin/visual/components/icon/index.vue +65 -0
- package/src/admin/visual/components/image/index.vue +170 -0
- package/src/admin/visual/components/index.js +44 -0
- package/src/admin/visual/components/list/block.vue +160 -0
- package/src/admin/visual/components/list/button.vue +80 -0
- package/src/admin/visual/components/list/card.vue +101 -0
- package/src/admin/visual/components/list/custom.vue +150 -0
- package/src/admin/visual/components/list/image.vue +116 -0
- package/src/admin/visual/components/list/news.vue +138 -0
- package/src/admin/visual/components/page/index.vue +88 -0
- package/src/admin/visual/components/page-comp/index.vue +110 -0
- package/src/admin/visual/components/portal-menu/index.vue +92 -0
- package/src/admin/visual/components/qrcode/index.vue +77 -0
- package/src/admin/visual/components/router-view/index.vue +12 -0
- package/src/admin/visual/components/row/index.vue +139 -0
- package/src/admin/visual/components/search/index.vue +40 -0
- package/src/admin/visual/components/tabs/index.vue +125 -0
- package/src/admin/visual/components/text/index.vue +64 -0
- package/src/admin/visual/components/video/index.vue +41 -0
- package/src/admin/visual/draggable.vue +49 -0
- package/src/admin/visual/editor.vue +602 -0
- package/src/admin/visual/js/app-form.config.js +1301 -0
- package/src/admin/visual/js/app.config.js +86 -0
- package/src/admin/visual/js/common.config.js +687 -0
- package/src/admin/visual/js/component.config.js +741 -0
- package/src/admin/visual/js/echarts.config.js +2440 -0
- package/src/admin/visual/js/form.config.js +2837 -0
- package/src/admin/visual/js/list.config.js +578 -0
- package/src/admin/visual/js/menu.config.js +62 -0
- package/src/admin/visual/js/visual-comp.js +48 -0
- package/src/admin/visual/tool.vue +1223 -0
- package/src/assets/images/background.jpg +0 -0
- package/src/assets/images/login-bg.jpg +0 -0
- package/src/assets/images/mobile-bg.png +0 -0
- package/src/assets/images/no-data.png +0 -0
- package/src/assets/style/base.css +48 -0
- package/src/assets/style/business.css +5 -0
- package/src/assets/style/code.css +36 -0
- package/src/assets/style/codeless.css +195 -0
- package/src/assets/style/flow.css +12 -0
- package/src/assets/style/global/blue.css +83 -0
- package/src/assets/style/global/default.css +71 -0
- package/src/assets/style/global/green.css +83 -0
- package/src/assets/style/global/purple.css +83 -0
- package/src/assets/style/global/red.css +83 -0
- package/src/assets/style/main.css +608 -0
- package/src/assets/style/menu/black.css +9 -0
- package/src/assets/style/menu/default.css +9 -0
- package/src/assets/style/menu/grey.css +9 -0
- package/src/assets/style/visual.css +204 -0
- package/src/auto-imports.d.ts +307 -0
- package/src/business/App.vue +131 -0
- package/src/business/components/dict-select/index.vue +88 -0
- package/src/business/components/index.js +13 -0
- package/src/business/components/input/index.vue +38 -0
- package/src/business/components/table/index.vue +928 -0
- package/src/business/home/index.vue +45 -0
- package/src/business/iframe/index.vue +63 -0
- package/src/business/layout/aside/history/history.vue +518 -0
- package/src/business/layout/aside/index.vue +116 -0
- package/src/business/layout/aside/menu/index.vue +47 -0
- package/src/business/layout/aside/menu/menuItem.vue +83 -0
- package/src/business/layout/aside/menu/submenu.vue +88 -0
- package/src/business/layout/fullscreen/index.vue +41 -0
- package/src/business/layout/header/index.vue +81 -0
- package/src/business/layout/header/menu/index.vue +47 -0
- package/src/business/layout/header/menu/menuItem.vue +43 -0
- package/src/business/layout/header/menu/submenu.vue +34 -0
- package/src/business/layout/home/index.vue +20 -0
- package/src/business/layout/index.vue +330 -0
- package/src/business/layout/message/index.vue +250 -0
- package/src/business/layout/personnel/index.vue +549 -0
- package/src/business/layout/search/index.vue +75 -0
- package/src/business/layout/subsystem/index.vue +124 -0
- package/src/business/main.js +36 -0
- package/src/business/pinia/menuBadge.js +58 -0
- package/src/business/pinia/router.js +190 -0
- package/src/business/router.js +98 -0
- package/src/choose/App.vue +203 -0
- package/src/choose/main.js +22 -0
- package/src/choose/router.js +33 -0
- package/src/codeless/components/affix/index.vue +393 -0
- package/src/codeless/components/affix-view/index.vue +244 -0
- package/src/codeless/components/buttons/index.vue +59 -0
- package/src/codeless/components/checkbox/index.vue +107 -0
- package/src/codeless/components/date/index.vue +105 -0
- package/src/codeless/components/datetime/index.vue +65 -0
- package/src/codeless/components/dialog-select/index.vue +170 -0
- package/src/codeless/components/dict-buttons/index.vue +97 -0
- package/src/codeless/components/dict-radio/index.vue +94 -0
- package/src/codeless/components/dict-select/index.vue +181 -0
- package/src/codeless/components/dict-selects/index.vue +145 -0
- package/src/codeless/components/dict-switch/index.vue +94 -0
- package/src/codeless/components/dict-tree/index.vue +116 -0
- package/src/codeless/components/edit-table/index.vue +160 -0
- package/src/codeless/components/employee-tree/index.vue +254 -0
- package/src/codeless/components/employees-tree/index.vue +87 -0
- package/src/codeless/components/entp-tree/index.vue +261 -0
- package/src/codeless/components/entps-tree/index.vue +93 -0
- package/src/codeless/components/icon/index.vue +65 -0
- package/src/codeless/components/image/index.vue +298 -0
- package/src/codeless/components/index.js +16 -0
- package/src/codeless/components/input/index.vue +63 -0
- package/src/codeless/components/number/index.vue +150 -0
- package/src/codeless/components/organization-tree/index.vue +262 -0
- package/src/codeless/components/organizations-tree/index.vue +79 -0
- package/src/codeless/components/password/index.vue +42 -0
- package/src/codeless/components/radio/index.vue +57 -0
- package/src/codeless/components/region-tree/index.vue +262 -0
- package/src/codeless/components/remote-distinct/index.vue +354 -0
- package/src/codeless/components/remote-select/index.vue +363 -0
- package/src/codeless/components/rich-editor/index.vue +159 -0
- package/src/codeless/components/roles/index.vue +68 -0
- package/src/codeless/components/select/index.vue +95 -0
- package/src/codeless/components/selects/index.vue +116 -0
- package/src/codeless/components/show-dict/index.vue +52 -0
- package/src/codeless/components/show-employees/index.vue +29 -0
- package/src/codeless/components/show-organizations/index.vue +29 -0
- package/src/codeless/components/show-roles/index.vue +45 -0
- package/src/codeless/components/signature-pad/index.vue +224 -0
- package/src/codeless/components/switch/index.vue +56 -0
- package/src/codeless/components/textarea/index.vue +37 -0
- package/src/codeless/components/tree/index.vue +244 -0
- package/src/codeless/components/unit-tree/index.vue +262 -0
- package/src/codeless/components/units-tree/index.vue +93 -0
- package/src/codeless/components/video/index.vue +255 -0
- package/src/codeless/components/video-view/index.vue +130 -0
- package/src/codeless/js/codeless.js +47 -0
- package/src/codeless/view/form-auto.vue +192 -0
- package/src/codeless/view/form-custom.vue +10 -0
- package/src/codeless/view/form-model.vue +421 -0
- package/src/codeless/view/form-query.vue +171 -0
- package/src/codeless/view/form.vue +575 -0
- package/src/codeless/view/page-comp.vue +1318 -0
- package/src/codeless/view/page.vue +280 -0
- package/src/codeless/view/table-edit-item.vue +184 -0
- package/src/codeless/view/table-edit.vue +490 -0
- package/src/codeless/view/table.vue +1606 -0
- package/src/codeless/view/tree.vue +431 -0
- package/src/configs/subApp.ts +9 -0
- package/src/directives/collapse/index.js +123 -0
- package/src/directives/drag/index.js +43 -0
- package/src/directives/index.js +9 -0
- package/src/directives/resize/index.js +23 -0
- package/src/entrance/libProperties.ts +24 -0
- package/src/entrance/libTypes.ts +26 -0
- package/src/error/404.vue +23 -0
- package/src/flow/chart.vue +130 -0
- package/src/flow/deal.vue +776 -0
- package/src/flow/signature.vue +216 -0
- package/src/flow/start.vue +18 -0
- package/src/http/api.js +192 -0
- package/src/http/request.js +81 -0
- package/src/login/App.vue +421 -0
- package/src/login/main.js +30 -0
- package/src/login/router.js +33 -0
- package/src/main.ts +20 -0
- package/src/mobile/App.vue +51 -0
- package/src/mobile/home/index.vue +34 -0
- package/src/mobile/main.js +26 -0
- package/src/mobile/router.js +101 -0
- package/src/mobile/view/page.vue +99 -0
- package/src/pinia/index.js +5 -0
- package/src/pinia/modules/dataField.js +77 -0
- package/src/pinia/modules/dataForm.js +46 -0
- package/src/pinia/modules/dataTable.js +46 -0
- package/src/pinia/modules/dictionary.js +66 -0
- package/src/pinia/modules/employee.js +46 -0
- package/src/pinia/modules/icon.js +46 -0
- package/src/pinia/modules/keepAlive.js +35 -0
- package/src/pinia/modules/organization.js +189 -0
- package/src/pinia/modules/page.js +46 -0
- package/src/pinia/modules/pageButton.js +44 -0
- package/src/pinia/modules/pageComp.js +46 -0
- package/src/pinia/modules/role.js +46 -0
- package/src/pinia/modules/setting.js +56 -0
- package/src/pinia/modules/subsystem.js +64 -0
- package/src/pinia/modules/user.js +177 -0
- package/src/plugins/index.ts +24 -0
- package/src/portal/App.vue +27 -0
- package/src/portal/home/index.vue +52 -0
- package/src/portal/main.js +31 -0
- package/src/portal/page/index.vue +39 -0
- package/src/portal/pinia/router.js +176 -0
- package/src/portal/router.js +86 -0
- package/src/router/constantRoutes.ts +13 -0
- package/src/router/loadComponent.ts +29 -0
- package/src/router/readme.txt +21 -0
- package/src/sso/sso.js +19 -0
- package/src/sso/sso.vue +138 -0
- package/src/types/axios.d.ts +13 -0
- package/src/types/func.ts +14 -0
- package/src/types/global.d.ts +108 -0
- package/src/types/layout.d.ts +59 -0
- package/src/types/mitt.d.ts +40 -0
- package/src/types/pinia.d.ts +93 -0
- package/src/types/views.d.ts +27 -0
- package/src/types/window.d.ts +8 -0
- package/src/utils/aes.js +75 -0
- package/src/utils/browser.js +13 -0
- package/src/utils/bus.js +4 -0
- package/src/utils/cache.js +6 -0
- package/src/utils/codeless.js +92 -0
- package/src/utils/color.js +274 -0
- package/src/utils/date.js +180 -0
- package/src/utils/loading.js +22 -0
- package/src/utils/page.js +36 -0
- package/src/utils/progress.js +19 -0
- package/src/utils/system.js +92 -0
- package/src/utils/theme.js +79 -0
- package/src/utils/tool.js +431 -0
- package/src/utils/websocket.js +124 -0
- package/src/views/codeless/appVersion.vue +593 -0
- package/src/views/codeless/dataFormEdit.vue +1463 -0
- package/src/views/codeless/dataModel.vue +2584 -0
- package/src/views/codeless/dataModelPage.vue +535 -0
- package/src/views/codeless/dataTableEdit.vue +1678 -0
- package/src/views/codeless/datasource.vue +308 -0
- package/src/views/codeless/interface.vue +833 -0
- package/src/views/codeless/interfaceToken.vue +255 -0
- package/src/views/codeless/page.vue +752 -0
- package/src/views/codeless/pageButton.vue +255 -0
- package/src/views/codeless/pageCompEdit.vue +2330 -0
- package/src/views/codeless/pageEdit.vue +661 -0
- package/src/views/codeless/relationPage.vue +349 -0
- package/src/views/codeless/scriptGroovy.vue +736 -0
- package/src/views/codeless/scriptGroovyEdit.vue +248 -0
- package/src/views/codeless/scriptGroovyExecute.vue +212 -0
- package/src/views/codeless/scriptGroovySimple.vue +1057 -0
- package/src/views/codeless/scriptTool.vue +563 -0
- package/src/views/codeless/subsystem.vue +309 -0
- package/src/views/codeless/template.vue +739 -0
- package/src/views/codeless/variable.vue +727 -0
- package/src/views/codeless/view.vue +738 -0
- package/src/views/codeless/viewEdit.vue +244 -0
- package/src/views/codeless/viewSimple.vue +1034 -0
- package/src/views/collect/task.vue +898 -0
- package/src/views/collect/taskLog.vue +238 -0
- package/src/views/dictionary/dictionary.vue +866 -0
- package/src/views/employee/employee.vue +355 -0
- package/src/views/flow/flow.vue +369 -0
- package/src/views/flow/flowInst.vue +73 -0
- package/src/views/flow/flowLineBranch.vue +406 -0
- package/src/views/flow/flowNodeMan.vue +426 -0
- package/src/views/flow/flowOpinion.vue +188 -0
- package/src/views/icon/icon.vue +242 -0
- package/src/views/log/loginLog.vue +41 -0
- package/src/views/log/operatorLog.vue +176 -0
- package/src/views/menu/menu.vue +883 -0
- package/src/views/menu/menuList.vue +858 -0
- package/src/views/message/message.vue +299 -0
- package/src/views/mobile/editor.vue +1100 -0
- package/src/views/mobile/mobile.vue +568 -0
- package/src/views/mobile/tool.vue +1258 -0
- package/src/views/monitor/database.vue +11 -0
- package/src/views/monitor/details-diskspace.vue +56 -0
- package/src/views/monitor/details-gc.vue +93 -0
- package/src/views/monitor/details-memory.vue +143 -0
- package/src/views/monitor/details-process.vue +132 -0
- package/src/views/monitor/details-threads.vue +106 -0
- package/src/views/monitor/line-chart.vue +93 -0
- package/src/views/monitor/mem-chart.vue +22 -0
- package/src/views/monitor/panel.vue +90 -0
- package/src/views/monitor/performance.vue +36 -0
- package/src/views/monitor/threads-chart.vue +16 -0
- package/src/views/operation/backup.vue +593 -0
- package/src/views/operation/center.vue +420 -0
- package/src/views/operation/restore.vue +94 -0
- package/src/views/organization/organization.vue +366 -0
- package/src/views/role/role.vue +502 -0
- package/src/views/schedule/schedule.vue +338 -0
- package/src/views/schedule/scheduleLog.vue +40 -0
- package/src/views/sequence/sequence.vue +283 -0
- package/src/views/setting/setting.vue +371 -0
- package/src/visual/components/app/list/goods/double.vue +241 -0
- package/src/visual/components/app/list/nav/image.vue +135 -0
- package/src/visual/components/app/list/nav/text.vue +159 -0
- package/src/visual/components/button/index.vue +95 -0
- package/src/visual/components/container/index.vue +128 -0
- package/src/visual/components/data/index.vue +60 -0
- package/src/visual/components/data-table/index.vue +260 -0
- package/src/visual/components/echarts/annular.vue +173 -0
- package/src/visual/components/echarts/bar.vue +172 -0
- package/src/visual/components/echarts/funnel.vue +167 -0
- package/src/visual/components/echarts/gauge.vue +186 -0
- package/src/visual/components/echarts/line.vue +172 -0
- package/src/visual/components/echarts/map.vue +206 -0
- package/src/visual/components/echarts/pie.vue +158 -0
- package/src/visual/components/echarts/radar.vue +196 -0
- package/src/visual/components/echarts/scatter.vue +153 -0
- package/src/visual/components/edit-table/index.vue +71 -0
- package/src/visual/components/form/affix.vue +440 -0
- package/src/visual/components/form/area.vue +134 -0
- package/src/visual/components/form/buttons.vue +120 -0
- package/src/visual/components/form/checkbox.vue +126 -0
- package/src/visual/components/form/date-range.vue +97 -0
- package/src/visual/components/form/date.vue +88 -0
- package/src/visual/components/form/datetime.vue +87 -0
- package/src/visual/components/form/employee-tree.vue +300 -0
- package/src/visual/components/form/employees-tree.vue +91 -0
- package/src/visual/components/form/image.vue +440 -0
- package/src/visual/components/form/index.vue +85 -0
- package/src/visual/components/form/input.vue +116 -0
- package/src/visual/components/form/item.vue +68 -0
- package/src/visual/components/form/number.vue +157 -0
- package/src/visual/components/form/organization-tree.vue +300 -0
- package/src/visual/components/form/password.vue +103 -0
- package/src/visual/components/form/radio.vue +122 -0
- package/src/visual/components/form/rate.vue +93 -0
- package/src/visual/components/form/region-tree.vue +300 -0
- package/src/visual/components/form/rich-editor.vue +114 -0
- package/src/visual/components/form/select.vue +172 -0
- package/src/visual/components/form/switch.vue +105 -0
- package/src/visual/components/form/textarea.vue +91 -0
- package/src/visual/components/form/unit-tree.vue +300 -0
- package/src/visual/components/icon/index.vue +73 -0
- package/src/visual/components/image/index.vue +445 -0
- package/src/visual/components/index.js +26 -0
- package/src/visual/components/list/block.vue +234 -0
- package/src/visual/components/list/button.vue +123 -0
- package/src/visual/components/list/card.vue +129 -0
- package/src/visual/components/list/custom.vue +214 -0
- package/src/visual/components/list/image.vue +182 -0
- package/src/visual/components/list/news.vue +174 -0
- package/src/visual/components/page-comp/index.vue +67 -0
- package/src/visual/components/portal-menu/index.vue +191 -0
- package/src/visual/components/qrcode/index.vue +98 -0
- package/src/visual/components/router-view/index.vue +51 -0
- package/src/visual/components/row/index.vue +175 -0
- package/src/visual/components/search/index.vue +96 -0
- package/src/visual/components/tabs/index.vue +103 -0
- package/src/visual/components/text/index.vue +111 -0
- package/src/visual/components/video/index.vue +93 -0
- package/src/visual/js/echarts.js +220 -0
- package/src/visual/js/event.js +476 -0
- package/src/visual/js/visual-comp.js +48 -0
- package/src/visual/js/visual.js +508 -0
- package/src/visual/view/page.vue +357 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# hel-tpl-remote-vue3-comps-ts
|
|
2
|
+
A simple remote vue3 comp template(typescript、dev with vite or webpack, build with webpack ), see [online usage](https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js)
|
|
3
|
+
|
|
4
|
+
## desc
|
|
5
|
+
- vite 开发
|
|
6
|
+
```bash
|
|
7
|
+
npm run start:vite
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
- webpack 开发
|
|
11
|
+
```bash
|
|
12
|
+
npm run start
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- 打包与发布
|
|
16
|
+
|
|
17
|
+
**先修改版本号**,再执行打包与发布命令(这点很重要,顺序不能弄反为:先构建再修改版本号)
|
|
18
|
+
```
|
|
19
|
+
npm run build
|
|
20
|
+
npm publish
|
|
21
|
+
```
|
|
22
|
+
> 构建是基于webpack构建
|
|
23
|
+
|
|
24
|
+
## how to make project skeleton
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm i @vue/cli -g
|
|
28
|
+
|
|
29
|
+
vue create hel-tpl-remote-vue3-comps-ts --packageManager=npm
|
|
30
|
+
|
|
31
|
+
cd hel-tpl-remote-vue3-comps-ts
|
|
32
|
+
|
|
33
|
+
// https://github.com/IndexXuan/vue-cli-plugin-vite
|
|
34
|
+
vue add vite
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// 系统配置
|
|
2
|
+
window.PUZZLE_CONFIG = {
|
|
3
|
+
// 系统名称
|
|
4
|
+
appName: 'ArkX OS',
|
|
5
|
+
// 接口地址
|
|
6
|
+
api: {
|
|
7
|
+
frame: '/api'
|
|
8
|
+
},
|
|
9
|
+
// 指定一个首页,值为路由 name
|
|
10
|
+
pageHome: ''
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// 此文件非必要,在生产环境下此文件配置可覆盖运行配置,开发环境下不起效
|
|
14
|
+
// 详情见 src/config/index.js
|
|
15
|
+
window.ArkosGlobalConfig = {
|
|
16
|
+
// 标题
|
|
17
|
+
// ArkosTitle: "SCUI",
|
|
18
|
+
ArkosTitle: 'ArkX OS', // process.env.VUE_APP_TITLE,
|
|
19
|
+
// 接口地址,如遇跨域需使用nginx代理
|
|
20
|
+
// API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
window.ArkConfig = {
|
|
24
|
+
cdnHost: 'http://arkxos-gateway:7008/cdn/npm',
|
|
25
|
+
depencities: {
|
|
26
|
+
jQuery: 'jquery@3.7.1/dist/jquery.js',
|
|
27
|
+
// zTree: 'zTree.v3/3.5.42/js/jquery.ztree.all.min.js',
|
|
28
|
+
vue: 'vue@3.5.12/dist/vue.global.js',
|
|
29
|
+
'vue-i18n': 'vue-i18n@9.8.0/dist/vue-i18n.global.js',
|
|
30
|
+
'vue-router': 'vue-router@4.4.5/dist/vue-router.global.js',
|
|
31
|
+
'vue-demi': 'vue-demi@0.14.6/lib/index.iife.js',
|
|
32
|
+
pinia: 'pinia@2.2.4/dist/pinia.iife.js',
|
|
33
|
+
'pinia-plugin-persistedstate': 'pinia-plugin-persistedstate@4.2.0/dist/index.global.js',
|
|
34
|
+
axios: 'axios@1.8.4/dist/axios.js',
|
|
35
|
+
'element-plus': 'element-plus@2.8.6/dist/index.full.js',
|
|
36
|
+
'element-plus-locale': 'element-plus@2.8.5/dist/locale/zh-cn.js',
|
|
37
|
+
'@arkxio/ark-html-parser': '@arkxio/ark-html-parser@0.1.0/dist/ark-html-parser.js',
|
|
38
|
+
'@arkxio/ark-micro-core': '@arkxio/ark-micro-core@0.1.0/dist/ark-micro-core.js',
|
|
39
|
+
'@arkxio/ark-lib-proxy': '@arkxio/ark-lib-proxy@0.1.0/dist/ark-lib-proxy.js',
|
|
40
|
+
'@arkxio/ark-micro': '@arkxio/ark-micro@0.1.0/dist/ark-micro.js'
|
|
41
|
+
},
|
|
42
|
+
arkPreDependencies: {
|
|
43
|
+
'@arkxos/arkos-core': '0.1.0',
|
|
44
|
+
},
|
|
45
|
+
arkDependencies: {
|
|
46
|
+
'@arkxos/arkos-boot': '0.1.0',
|
|
47
|
+
},
|
|
48
|
+
arkAsyncDependencies: {
|
|
49
|
+
'@arkxio/ark-echarts': '0.1.7',
|
|
50
|
+
},
|
|
51
|
+
modules: {
|
|
52
|
+
'@arkxio/ark-echarts': {
|
|
53
|
+
version: '0.1.8',
|
|
54
|
+
// host: 'http://localhost:7002'
|
|
55
|
+
},
|
|
56
|
+
'@arkxos/arkos-util': {
|
|
57
|
+
version: '0.1.0',
|
|
58
|
+
// host: 'http://localhost:7002'
|
|
59
|
+
},
|
|
60
|
+
'@arkxio/ark-ui': {
|
|
61
|
+
version: '0.1.13',
|
|
62
|
+
// host: 'http://localhost:7003'
|
|
63
|
+
},
|
|
64
|
+
'@arkxos/arkos-core': {
|
|
65
|
+
version: '0.1.0',
|
|
66
|
+
// host: 'http://localhost:7004'
|
|
67
|
+
},
|
|
68
|
+
'@arkxos/arkos-boot': {
|
|
69
|
+
version: '0.1.1',
|
|
70
|
+
// host: 'http://localhost:7005'
|
|
71
|
+
},
|
|
72
|
+
'@arkxos/arkos-theme-classic': {
|
|
73
|
+
version: '0.1.0',
|
|
74
|
+
// host: 'http://localhost:7006'
|
|
75
|
+
},
|
|
76
|
+
'@arkxos/arkos-example': {
|
|
77
|
+
version: '0.1.0',
|
|
78
|
+
// host: 'http://localhost:7007'
|
|
79
|
+
},
|
|
80
|
+
'@arkxos/arkos-app-system': {
|
|
81
|
+
version: '0.1.0',
|
|
82
|
+
host: 'http://localhost:7008'
|
|
83
|
+
},
|
|
84
|
+
'@arkxos/arkos-system': {
|
|
85
|
+
version: '0.1.0',
|
|
86
|
+
host: 'http://localhost:7010'
|
|
87
|
+
},
|
|
88
|
+
'@arkxos/arkos-app-gateway-manage': {
|
|
89
|
+
version: '0.1.0',
|
|
90
|
+
// host: 'http://localhost:7010'
|
|
91
|
+
},
|
|
92
|
+
'@arkxos/arkos-micro': {
|
|
93
|
+
version: '0.1.0',
|
|
94
|
+
// host: 'http://localhost:7010'
|
|
95
|
+
},
|
|
96
|
+
'@arkxos/arkos-mock': {
|
|
97
|
+
version: '0.1.0',
|
|
98
|
+
// host: 'http://localhost:7011'
|
|
99
|
+
},
|
|
100
|
+
// '@arkxos/arkos-app-workflow': {
|
|
101
|
+
// version: '1.0.1'
|
|
102
|
+
// }
|
|
103
|
+
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
window.Arkos = {
|
|
108
|
+
|
|
109
|
+
GlobalConfig: {
|
|
110
|
+
// # 接口加密传输 RSA 公钥与后端解密私钥对应 如更换需前后端一同更换
|
|
111
|
+
ARK_APP_RSA_PUBLIC_KEY: 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==',
|
|
112
|
+
// # 接口响应解密 RSA 私钥与后端加密公钥对应 如更换需前后端一同更换
|
|
113
|
+
ARK_APP_RSA_PRIVATE_KEY: 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAmc3CuPiGL/LcIIm7zryCEIbl1SPzBkr75E2VMtxegyZ1lYRD+7TZGAPkvIsBcaMs6Nsy0L78n2qh+lIZMpLH8wIDAQABAkEAk82Mhz0tlv6IVCyIcw/s3f0E+WLmtPFyR9/WtV3Y5aaejUkU60JpX4m5xNR2VaqOLTZAYjW8Wy0aXr3zYIhhQQIhAMfqR9oFdYw1J9SsNc+CrhugAvKTi0+BF6VoL6psWhvbAiEAxPPNTmrkmrXwdm/pQQu3UOQmc2vCZ5tiKpW10CgJi8kCIFGkL6utxw93Ncj4exE/gPLvKcT+1Emnoox+O9kRXss5AiAMtYLJDaLEzPrAWcZeeSgSIzbL+ecokmFKSDDcRske6QIgSMkHedwND1olF8vlKsJUGK3BcdtM8w4Xq7BpSBwsloE='
|
|
114
|
+
},
|
|
115
|
+
api: {
|
|
116
|
+
global: {
|
|
117
|
+
headers: {
|
|
118
|
+
clientid: 'e5cd7e4891bf95d1d19206ce24a7b32e'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
captcha: {
|
|
122
|
+
url: '/auth/captcha/image'
|
|
123
|
+
},
|
|
124
|
+
login: {
|
|
125
|
+
headers: {
|
|
126
|
+
isEncrypt: false
|
|
127
|
+
},
|
|
128
|
+
beforePost(data) {
|
|
129
|
+
data.tenantId = '000000'
|
|
130
|
+
data.clientId = 'e5cd7e4891bf95d1d19206ce24a7b32e'
|
|
131
|
+
data.grant_type = 'password'
|
|
132
|
+
data.scope = 'server'
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"name": "@arkxos/arkos-system",
|
|
4
|
+
"app_group_name": "@arkxos/arkos-system",
|
|
5
|
+
"git_repo_url": "",
|
|
6
|
+
"online_version": "0.1.0",
|
|
7
|
+
"build_version": "0.1.0"
|
|
8
|
+
},
|
|
9
|
+
"version": {
|
|
10
|
+
"plugin_ver": "4.3.20",
|
|
11
|
+
"extract_mode": "build",
|
|
12
|
+
"sub_app_name": "@arkxos/arkos-system",
|
|
13
|
+
"sub_app_version": "0.1.0",
|
|
14
|
+
"arkDependencies": {
|
|
15
|
+
"@arkxos/arkos-util": "1.0.200",
|
|
16
|
+
"@arkxos/arkos-core": "1.0.202",
|
|
17
|
+
"@arkxio/ark-ui": "0.1.2",
|
|
18
|
+
"@arkxos/arkos-theme-classic": "1.0.200"
|
|
19
|
+
},
|
|
20
|
+
"src_map": {
|
|
21
|
+
"webDirPath": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist",
|
|
22
|
+
"htmlIndexSrc": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/index.html",
|
|
23
|
+
"extractMode": "all",
|
|
24
|
+
"iframeSrc": "",
|
|
25
|
+
"chunkCssSrcList": [],
|
|
26
|
+
"chunkJsSrcList": [
|
|
27
|
+
"https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_1.js",
|
|
28
|
+
"https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_2.js",
|
|
29
|
+
"https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_3.js",
|
|
30
|
+
"https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/js/app.e39a548a.js"
|
|
31
|
+
],
|
|
32
|
+
"staticCssSrcList": [],
|
|
33
|
+
"staticJsSrcList": [
|
|
34
|
+
"http://arkxos-gateway:7008/cdn/npm/@arkxio/ark-loader@0.1.0/dist/ark-loader.js"
|
|
35
|
+
],
|
|
36
|
+
"relativeCssSrcList": [],
|
|
37
|
+
"relativeJsSrcList": [],
|
|
38
|
+
"headAssetList": [
|
|
39
|
+
{
|
|
40
|
+
"tag": "staticLink",
|
|
41
|
+
"append": false,
|
|
42
|
+
"attrs": {
|
|
43
|
+
"href": "favicon.ico",
|
|
44
|
+
"rel": "icon"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"bodyAssetList": [
|
|
49
|
+
{
|
|
50
|
+
"tag": "script",
|
|
51
|
+
"append": true,
|
|
52
|
+
"attrs": {
|
|
53
|
+
"src": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_1.js"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"tag": "staticScript",
|
|
58
|
+
"append": false,
|
|
59
|
+
"attrs": {
|
|
60
|
+
"src": "http://arkxos-gateway:7008/cdn/npm/@arkxio/ark-loader@0.1.0/dist/ark-loader.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"tag": "script",
|
|
65
|
+
"append": true,
|
|
66
|
+
"attrs": {
|
|
67
|
+
"src": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_2.js",
|
|
68
|
+
"type": "text/javascript"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"tag": "script",
|
|
73
|
+
"append": true,
|
|
74
|
+
"attrs": {
|
|
75
|
+
"src": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/ark_userChunk_3.js",
|
|
76
|
+
"type": "text/javascript"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"tag": "script",
|
|
81
|
+
"append": true,
|
|
82
|
+
"attrs": {
|
|
83
|
+
"src": "https://unpkg.com/@arkxos/arkos-system@0.1.0/ark_dist/js/app.e39a548a.js",
|
|
84
|
+
"type": "text/javascript"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"otherSrcList": []
|
|
89
|
+
},
|
|
90
|
+
"html_content": "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"utf-8\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\">\r\n <link rel=\"icon\" href=\"favicon.ico\">\r\n <title><%= process.env.ARK_OS_TITLE %></title>\r\n <% if (process.env.NODE_ENV === 'development') { %>\r\n <script>\r\n document.write('<script src=\"ArkOsConfig.js?'+Date.now()+'\"><\\/script>')\r\n </script>\r\n <script src=\"http://arkxos-gateway:7008/cdn/npm/@arkxio/ark-loader@0.1.0/dist/ark-loader.js\"></script>\r\n <% } %>\r\n</head>\r\n<body>\r\n<noscript>\r\n <strong>We're sorry but <%= htmlWebpackPlugin.options.VUE_APP_TITLE %> doesn't work properly without JavaScript\r\n enabled. Please enable it to continue.</strong>\r\n</noscript>\r\n<script type=\"text/javascript\">\r\n var dark = window.localStorage.getItem('APP_DARK');\r\n if(dark){\r\n document.documentElement.classList.add(\"dark\")\r\n }\r\n</script>\r\n<div id=\"app\" class=\"aminui\">\r\n <div class=\"app-loading\">\r\n <div class=\"app-loading__logo\">\r\n <img src=\"img/logo.png\"/>\r\n </div>\r\n <div class=\"app-loading__loader\"></div>\r\n <div class=\"app-loading__title\"><%= htmlWebpackPlugin.options.VUE_APP_TITLE %></div>\r\n </div>\r\n <style>\r\n .app-loading {position: absolute;top:0px;left:0px;right:0px;bottom:0px;display: flex;justify-content: center;align-items: center;flex-direction: column;background: #fff;}\r\n .app-loading__logo {margin-bottom: 30px;}\r\n .app-loading__logo img {width: 90px;vertical-align: bottom;}\r\n .app-loading__loader {box-sizing: border-box;width: 35px;height: 35px;border: 5px solid transparent;border-top-color: #000;border-radius: 50%;animation: .5s loader linear infinite;position: relative;}\r\n .app-loading__loader:before {box-sizing: border-box;content: '';display: block;width: inherit;height: inherit;position: absolute;top: -5px;left: -5px;border: 5px solid #ccc;border-radius: 50%;opacity: .5;}\r\n .app-loading__title {font-size: 24px;color: #333;margin-top: 30px;}\r\n .dark .app-loading {background: #222225;}\r\n .dark .app-loading__loader {border-top-color: #fff;}\r\n .dark .app-loading__title {color: #d0d0d0;}\r\n @keyframes loader {\r\n 0% {\r\n transform: rotate(0deg);\r\n }\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n }\r\n #app {\r\n font-family: Avenir, Helvetica, Arial, sans-serif;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: center;\r\n color: #2c3e50;\r\n margin-top: 0px;\r\n }\r\n </style>\r\n</div>\r\n<!-- built files will be auto injected -->\r\n</body>\r\n<div id=\"versionCheck\" style=\"display: none;position: absolute;z-index: 99;top:0;left:0;right:0;bottom:0;padding:40px;background:rgba(255,255,255,0.9);color: #333;\">\r\n <h2 style=\"line-height: 1;margin: 0;font-size: 24px;\">当前使用的浏览器内核版本过低 :(</h2>\r\n <p style=\"line-height: 1;margin: 0;font-size: 14px;margin-top: 20px;opacity: 0.8;\">当前版本:<span id=\"versionCheck-type\">--</span> <span id=\"versionCheck-version\">--</span></p>\r\n <p style=\"line-height: 1;margin: 0;font-size: 14px;margin-top: 10px;opacity: 0.8;\">最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p>\r\n <p style=\"line-height: 1;margin: 0;font-size: 14px;margin-top: 10px;opacity: 0.8;\">请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p>\r\n</div>\r\n\r\n<script type=\"text/javascript\">\r\n function getBrowerInfo(){\r\n var userAgent = window.navigator.userAgent;\r\n var browerInfo = {\r\n type: 'unknown',\r\n version: 'unknown',\r\n userAgent: userAgent\r\n };\r\n if(document.documentMode){\r\n browerInfo.type = \"IE\"\r\n browerInfo.version = document.documentMode + ''\r\n }else if(indexOf(userAgent, \"Firefox\")){\r\n browerInfo.type = \"Firefox\"\r\n browerInfo.version = userAgent.match(/Firefox\\/([\\d.]+)/)[1]\r\n }else if(indexOf(userAgent, \"Opera\")){\r\n browerInfo.type = \"Opera\"\r\n browerInfo.version = userAgent.match(/Opera\\/([\\d.]+)/)[1]\r\n }else if(indexOf(userAgent, \"Edg\")){\r\n browerInfo.type = \"Edg\"\r\n browerInfo.version = userAgent.match(/Edg\\/([\\d.]+)/)[1]\r\n }else if(indexOf(userAgent, \"Chrome\")){\r\n browerInfo.type = \"Chrome\"\r\n browerInfo.version = userAgent.match(/Chrome\\/([\\d.]+)/)[1]\r\n }else if(indexOf(userAgent, \"Safari\")){\r\n browerInfo.type = \"Safari\"\r\n browerInfo.version = userAgent.match(/Safari\\/([\\d.]+)/)[1]\r\n }\r\n return browerInfo\r\n }\r\n function indexOf(userAgent, brower) {\r\n return userAgent.indexOf(brower) > -1\r\n }\r\n function isSatisfyBrower(){\r\n var minVer = {\r\n \"Chrome\": 71,\r\n \"Firefox\": 65,\r\n \"Safari\": 12,\r\n \"Edg\": 97,\r\n \"IE\": 999\r\n }\r\n var browerInfo = getBrowerInfo()\r\n var materVer = browerInfo.version.split('.')[0]\r\n return materVer >= minVer[browerInfo.type]\r\n }\r\n if(!isSatisfyBrower()){\r\n document.getElementById('versionCheck').style.display = 'block';\r\n document.getElementById('versionCheck-type').innerHTML = getBrowerInfo().type;\r\n document.getElementById('versionCheck-version').innerHTML = getBrowerInfo().version;\r\n }\r\n</script>\r\n\r\n</html>\r\n"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
function getBrowerInfo(){
|
|
3
|
+
var userAgent = window.navigator.userAgent;
|
|
4
|
+
var browerInfo = {
|
|
5
|
+
type: 'unknown',
|
|
6
|
+
version: 'unknown',
|
|
7
|
+
userAgent: userAgent
|
|
8
|
+
};
|
|
9
|
+
if(document.documentMode){
|
|
10
|
+
browerInfo.type = "IE"
|
|
11
|
+
browerInfo.version = document.documentMode + ''
|
|
12
|
+
}else if(indexOf(userAgent, "Firefox")){
|
|
13
|
+
browerInfo.type = "Firefox"
|
|
14
|
+
browerInfo.version = userAgent.match(/Firefox\/([\d.]+)/)[1]
|
|
15
|
+
}else if(indexOf(userAgent, "Opera")){
|
|
16
|
+
browerInfo.type = "Opera"
|
|
17
|
+
browerInfo.version = userAgent.match(/Opera\/([\d.]+)/)[1]
|
|
18
|
+
}else if(indexOf(userAgent, "Edg")){
|
|
19
|
+
browerInfo.type = "Edg"
|
|
20
|
+
browerInfo.version = userAgent.match(/Edg\/([\d.]+)/)[1]
|
|
21
|
+
}else if(indexOf(userAgent, "Chrome")){
|
|
22
|
+
browerInfo.type = "Chrome"
|
|
23
|
+
browerInfo.version = userAgent.match(/Chrome\/([\d.]+)/)[1]
|
|
24
|
+
}else if(indexOf(userAgent, "Safari")){
|
|
25
|
+
browerInfo.type = "Safari"
|
|
26
|
+
browerInfo.version = userAgent.match(/Safari\/([\d.]+)/)[1]
|
|
27
|
+
}
|
|
28
|
+
return browerInfo
|
|
29
|
+
}
|
|
30
|
+
function indexOf(userAgent, brower) {
|
|
31
|
+
return userAgent.indexOf(brower) > -1
|
|
32
|
+
}
|
|
33
|
+
function isSatisfyBrower(){
|
|
34
|
+
var minVer = {
|
|
35
|
+
"Chrome": 71,
|
|
36
|
+
"Firefox": 65,
|
|
37
|
+
"Safari": 12,
|
|
38
|
+
"Edg": 97,
|
|
39
|
+
"IE": 999
|
|
40
|
+
}
|
|
41
|
+
var browerInfo = getBrowerInfo()
|
|
42
|
+
var materVer = browerInfo.version.split('.')[0]
|
|
43
|
+
return materVer >= minVer[browerInfo.type]
|
|
44
|
+
}
|
|
45
|
+
if(!isSatisfyBrower()){
|
|
46
|
+
document.getElementById('versionCheck').style.display = 'block';
|
|
47
|
+
document.getElementById('versionCheck-type').innerHTML = getBrowerInfo().type;
|
|
48
|
+
document.getElementById('versionCheck-version').innerHTML = getBrowerInfo().version;
|
|
49
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// 系统配置
|
|
2
|
+
window.PUZZLE_CONFIG = {
|
|
3
|
+
// 系统名称
|
|
4
|
+
appName: "Rapidark OS3",
|
|
5
|
+
// 接口地址
|
|
6
|
+
api: {
|
|
7
|
+
frame: "/api"
|
|
8
|
+
},
|
|
9
|
+
// 指定一个首页,值为路由 name
|
|
10
|
+
pageHome: ""
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// 此文件非必要,在生产环境下此文件配置可覆盖运行配置,开发环境下不起效
|
|
14
|
+
// 详情见 src/config/index.js
|
|
15
|
+
window.ArkosGlobalConfig = {
|
|
16
|
+
//标题
|
|
17
|
+
//ArkosTitle: "SCUI",
|
|
18
|
+
|
|
19
|
+
//接口地址,如遇跨域需使用nginx代理
|
|
20
|
+
//API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
window.Arkos = {
|
|
25
|
+
cdnHost: 'http://arkxos-gateway:8888/cdn/npm',
|
|
26
|
+
modules: {
|
|
27
|
+
'@arkxos/arkos-util': {
|
|
28
|
+
version: '1.0.19'
|
|
29
|
+
},
|
|
30
|
+
'@arkxio/ark-ui': {
|
|
31
|
+
version: '1.0.9'
|
|
32
|
+
},
|
|
33
|
+
'@arkxos/arkos-core': {
|
|
34
|
+
version: '1.0.65'
|
|
35
|
+
},
|
|
36
|
+
'@arkxos/arkos-theme-classic': {
|
|
37
|
+
version: '1.0.28'
|
|
38
|
+
},
|
|
39
|
+
'@arkxos/arkos-boot': {
|
|
40
|
+
version: '1.0.23'
|
|
41
|
+
},
|
|
42
|
+
'@arkxos/arkos-app-system': {
|
|
43
|
+
version: '1.0.34'
|
|
44
|
+
},
|
|
45
|
+
'@arkxos/arkos-app-workflow': {
|
|
46
|
+
version: '1.0.0'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
GlobalConfig: {
|
|
50
|
+
// # 接口加密传输 RSA 公钥与后端解密私钥对应 如更换需前后端一同更换
|
|
51
|
+
ARK_APP_RSA_PUBLIC_KEY: 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==',
|
|
52
|
+
// # 接口响应解密 RSA 私钥与后端加密公钥对应 如更换需前后端一同更换
|
|
53
|
+
ARK_APP_RSA_PRIVATE_KEY: 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAmc3CuPiGL/LcIIm7zryCEIbl1SPzBkr75E2VMtxegyZ1lYRD+7TZGAPkvIsBcaMs6Nsy0L78n2qh+lIZMpLH8wIDAQABAkEAk82Mhz0tlv6IVCyIcw/s3f0E+WLmtPFyR9/WtV3Y5aaejUkU60JpX4m5xNR2VaqOLTZAYjW8Wy0aXr3zYIhhQQIhAMfqR9oFdYw1J9SsNc+CrhugAvKTi0+BF6VoL6psWhvbAiEAxPPNTmrkmrXwdm/pQQu3UOQmc2vCZ5tiKpW10CgJi8kCIFGkL6utxw93Ncj4exE/gPLvKcT+1Emnoox+O9kRXss5AiAMtYLJDaLEzPrAWcZeeSgSIzbL+ecokmFKSDDcRske6QIgSMkHedwND1olF8vlKsJUGK3BcdtM8w4Xq7BpSBwsloE='
|
|
54
|
+
},
|
|
55
|
+
api: {
|
|
56
|
+
global: {
|
|
57
|
+
headers: {
|
|
58
|
+
clientid: 'e5cd7e4891bf95d1d19206ce24a7b32e'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
captcha: {
|
|
62
|
+
url: '/auth/captcha/image'
|
|
63
|
+
},
|
|
64
|
+
login: {
|
|
65
|
+
headers: {
|
|
66
|
+
isEncrypt: true
|
|
67
|
+
},
|
|
68
|
+
beforePost(data) {
|
|
69
|
+
data.tenantId = '000000'
|
|
70
|
+
data.clientId = 'e5cd7e4891bf95d1d19206ce24a7b32e'
|
|
71
|
+
data.grantType = 'password'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|