zova-ui-empty 5.0.93
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 +9 -0
- package/.eslintignore +8 -0
- package/.eslintrc.cjs +4 -0
- package/.gitattributes +2 -0
- package/.gitignore +65 -0
- package/.npmrc +27 -0
- package/.vscode/extensions.json +9 -0
- package/.vscode/settings.json +57 -0
- package/.vscode/zova.code-snippets +18 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/env/.env +29 -0
- package/env/.env.development +0 -0
- package/env/.env.production +0 -0
- package/index.html +14 -0
- package/package.json +50 -0
- package/pnpm-workspace.yaml +7 -0
- package/prettier.config.cjs +2 -0
- package/public/favicon.ico +0 -0
- package/src/boot/app.vue +9 -0
- package/src/boot/main.ts +15 -0
- package/src/boot/router.ts +14 -0
- package/src/boot/zova.ts +14 -0
- package/src/css/settings.scss +19 -0
- package/src/front/_config/config/config.app.ts +16 -0
- package/src/front/_config/config/config.ts +17 -0
- package/src/front/_config/config/config.web.ts +15 -0
- package/src/front/_config/locale/en-us.ts +5 -0
- package/src/front/_config/locale/zh-cn.ts +5 -0
- package/src/front/_config/locales.ts +7 -0
- package/src/front/_config/monkey.ts +24 -0
- package/src/front/typing/env.d.ts +5 -0
- package/src/front/typing/shims-vue.d.ts +10 -0
- package/src/front/typing/types.d.ts +2 -0
- package/src/module/.gitkeep +0 -0
- package/src/module-vendor/.gitkeep +0 -0
- package/src/suite/a-demo/modules/a-demo/package.json +29 -0
- package/src/suite/a-demo/modules/a-demo/src/assets/css/module.scss +0 -0
- package/src/suite/a-demo/modules/a-demo/src/bean/.gitkeep +0 -0
- package/src/suite/a-demo/modules/a-demo/src/component/card/controller.ts +25 -0
- package/src/suite/a-demo/modules/a-demo/src/component/card/index.vue +12 -0
- package/src/suite/a-demo/modules/a-demo/src/component/card/render.tsx +35 -0
- package/src/suite/a-demo/modules/a-demo/src/config/config.ts +5 -0
- package/src/suite/a-demo/modules/a-demo/src/config/constants.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/src/config/errors.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/src/config/index.ts +4 -0
- package/src/suite/a-demo/modules/a-demo/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/src/config/locales.ts +7 -0
- package/src/suite/a-demo/modules/a-demo/src/index.ts +7 -0
- package/src/suite/a-demo/modules/a-demo/src/page/component/controller.ts +9 -0
- package/src/suite/a-demo/modules/a-demo/src/page/component/index.vue +10 -0
- package/src/suite/a-demo/modules/a-demo/src/page/component/render.tsx +39 -0
- package/src/suite/a-demo/modules/a-demo/src/page/state/controller.ts +21 -0
- package/src/suite/a-demo/modules/a-demo/src/page/state/index.vue +10 -0
- package/src/suite/a-demo/modules/a-demo/src/page/state/render.tsx +18 -0
- package/src/suite/a-demo/modules/a-demo/src/resource/beans.ts +4 -0
- package/src/suite/a-demo/modules/a-demo/src/resource/components.ts +3 -0
- package/src/suite/a-demo/modules/a-demo/src/resource/index.ts +3 -0
- package/src/suite/a-demo/modules/a-demo/src/resource/scope.ts +30 -0
- package/src/suite/a-demo/modules/a-demo/src/resource/this.ts +4 -0
- package/src/suite/a-demo/modules/a-demo/src/routes.ts +8 -0
- package/src/suite/a-demo/modules/a-demo/src/types.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/src/typings.ts +1 -0
- package/src/suite/a-demo/modules/a-demo/tsconfig.json +5 -0
- package/src/suite/a-demo/package.json +11 -0
- package/src/suite/a-demo/tsconfig.base.json +4 -0
- package/src/suite/a-home/README.md +1 -0
- package/src/suite/a-home/modules/a-home/README.md +1 -0
- package/src/suite/a-home/modules/a-home/package.json +28 -0
- package/src/suite/a-home/modules/a-home/src/assets/css/module.scss +0 -0
- package/src/suite/a-home/modules/a-home/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/a-home/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/a-home/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/a-home/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/a-home/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/a-home/src/index.ts +7 -0
- package/src/suite/a-home/modules/a-home/src/page/home/controller.ts +4 -0
- package/src/suite/a-home/modules/a-home/src/page/home/index.vue +10 -0
- package/src/suite/a-home/modules/a-home/src/page/home/render.tsx +21 -0
- package/src/suite/a-home/modules/a-home/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/a-home/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/a-home/src/resource/scope.ts +30 -0
- package/src/suite/a-home/modules/a-home/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/a-home/src/routes.ts +4 -0
- package/src/suite/a-home/modules/a-home/src/types.ts +1 -0
- package/src/suite/a-home/modules/a-home/src/typings.ts +4 -0
- package/src/suite/a-home/modules/a-home/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-api/package.json +34 -0
- package/src/suite/a-home/modules/home-api/src/bean/store.api.ts +22 -0
- package/src/suite/a-home/modules/home-api/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-api/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-api/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-api/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-api/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/home-api/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-api/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-api/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-api/src/index.ts +7 -0
- package/src/suite/a-home/modules/home-api/src/monkey.ts +24 -0
- package/src/suite/a-home/modules/home-api/src/page/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-api/src/resource/beans.ts +8 -0
- package/src/suite/a-home/modules/home-api/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/home-api/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/home-api/src/resource/scope.ts +26 -0
- package/src/suite/a-home/modules/home-api/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-api/src/routes.ts +3 -0
- package/src/suite/a-home/modules/home-api/src/types.ts +13 -0
- package/src/suite/a-home/modules/home-api/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-api/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/dingtalk-square.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/github.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/password.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/sms.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/wechat-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/auth/wxwork-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/coupon.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/course.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/distribution.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/hotsprings.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/kitchen-set.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/money-bag.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/party.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/provider.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/purchase.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/business/store.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/add.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/alert.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/archive.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-back.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-cycle.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-down-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-down-right.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-down.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-drop-down.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-drop-up.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-forward.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-repeat.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-right-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-right.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-shuffle.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-up-down.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-up-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-up-right.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/arrow-up.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/article.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/attachment-line.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/book.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/cabloy.svg +4 -0
- package/src/suite/a-home/modules/home-icon/icons/default/checkbox-checked.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/checkbox-intermediate.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/checkbox-off.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/checkbox.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/chevron-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/chevron-right.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/close.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/comment-dots.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/construction.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/copyright.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/cross-circle.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/dashboard.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/database.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/delete-forever.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/delete.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/developer-board.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/done.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/dot.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/draft.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/drive-file-move.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/edit.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/expand-more.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/export.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/fast-forward.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/flow-chart.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/folder-open.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/folder.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/fullscreen-exit.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/fullscreen.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/grading.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/group-work.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/group.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/groups.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/heart.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/home.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/identification.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/import.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/info-circle.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/information-filled.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/information.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/label.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/language.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/layers.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/layout-columns.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/location-on.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/lock-open.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/lock.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/mail.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/mark-as-unread.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/mark-email-read.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/menu.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/message.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/module.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/more-horiz.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/notebook.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/open-in-new.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/open-with.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/people.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/person.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/play-arrow.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/popup.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/preview.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/radio-button-checked.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/radio-button-unchecked.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/redo.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/remove.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/reply.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/reset.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/round-person-add.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/save-and-return.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/save-and-submit.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/save-as-draft.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/save.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/search.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/send.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/settings.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/share.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/sort.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/star.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/stats-chart.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/stop.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/text-fields.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/timeline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/undo.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/view-list.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/visibility.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/zoom-in.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/zoom-out.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/add-box-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/add-box.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/bookmark-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/bookmark.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/code-block.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/code.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-align-center.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-align-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-align-right.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-bold.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-italic.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-list-bulleted.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-list-numbered.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-quote.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-strikethrough.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/format-underlined.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/grid-on.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/horizontal-rule.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/image-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/image.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/insert-link-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/paragraph-break.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/paragraph.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/redo.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/source-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/subscript.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/superscript.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/task-alt.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/title.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/editor/undo.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/activity-none.svg +17 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/activity-service.svg +30 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/activity-user-task.svg +27 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/end-event-atom.svg +24 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/end-event-none.svg +22 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/gateway-exclusive.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/gateway-inclusive.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/gateway-parallel.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/start-event-atom.svg +16 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/start-event-none.svg +16 -0
- package/src/suite/a-home/modules/home-icon/icons/flow/start-event-timer.svg +16 -0
- package/src/suite/a-home/modules/home-icon/icons/login/call-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/login/chevron-left.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/login/done.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/login/lock-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/login/person-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/add-circle-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/alert-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/apps-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/archive-lock-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/archive-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/article-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/backspace-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/build-circle-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/calendar-today-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/check-circle-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/checkbox-checked-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/checkbox-off-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/checkbox-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/copy-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/data-list-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/database-lock-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/delete-forever-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/delete-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/dict-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/draft-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/folder-transfer-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/group-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/heart-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/insert-emoticon-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/key-reset-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/label-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/layout-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/login-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/logout-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/mail-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/note-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/software-resource-cluster-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/software-resource-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/star-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/theme-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/timer-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/visibility-off-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/visibility-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/outline/work-history-outline.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/collaboration.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/level.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/organization.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/position.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/relation.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/role.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/shield-key.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/role/template.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/chat.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/facebook.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/github.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/public.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/record-voice-over.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/school.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/twitter.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/tools/pomotodo.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/tools/spreadsheet.svg +1 -0
- package/src/suite/a-home/modules/home-icon/package.json +34 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/auth.svg +8 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/business.svg +12 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/default.svg +114 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/editor.svg +32 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/flow.svg +13 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/login.svg +7 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/outline.svg +41 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/role.svg +10 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/social.svg +9 -0
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/tools.svg +4 -0
- package/src/suite/a-home/modules/home-icon/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-icon/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-icon/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-icon/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/config/icons.ts +23 -0
- package/src/suite/a-home/modules/home-icon/src/config/index.ts +5 -0
- package/src/suite/a-home/modules/home-icon/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-icon/src/index.ts +6 -0
- package/src/suite/a-home/modules/home-icon/src/page/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-icon/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/home-icon/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/resource/icons.ts +235 -0
- package/src/suite/a-home/modules/home-icon/src/resource/index.ts +4 -0
- package/src/suite/a-home/modules/home-icon/src/resource/scope.ts +26 -0
- package/src/suite/a-home/modules/home-icon/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-icon/src/routes.ts +3 -0
- package/src/suite/a-home/modules/home-icon/src/types.ts +1 -0
- package/src/suite/a-home/modules/home-icon/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-icon/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-layout/package.json +29 -0
- package/src/suite/a-home/modules/home-layout/src/assets/css/module.scss +14 -0
- package/src/suite/a-home/modules/home-layout/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/controller.ts +21 -0
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/index.vue +12 -0
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/render.tsx +27 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/controller.ts +31 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/index.vue +12 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/render.tsx +46 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/controller.ts +16 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/index.vue +12 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/render.tsx +15 -0
- package/src/suite/a-home/modules/home-layout/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-layout/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/home-layout/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-layout/src/index.ts +7 -0
- package/src/suite/a-home/modules/home-layout/src/page/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-layout/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/home-layout/src/resource/components.ts +7 -0
- package/src/suite/a-home/modules/home-layout/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/home-layout/src/resource/scope.ts +30 -0
- package/src/suite/a-home/modules/home-layout/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-layout/src/routes.ts +3 -0
- package/src/suite/a-home/modules/home-layout/src/types.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-layout/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-mock/package.json +30 -0
- package/src/suite/a-home/modules/home-mock/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-mock/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-mock/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-mock/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/home-mock/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-mock/src/index.ts +6 -0
- package/src/suite/a-home/modules/home-mock/src/mock/menu.fake.ts +42 -0
- package/src/suite/a-home/modules/home-mock/src/page/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-mock/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/home-mock/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/home-mock/src/resource/scope.ts +30 -0
- package/src/suite/a-home/modules/home-mock/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-mock/src/routes.ts +3 -0
- package/src/suite/a-home/modules/home-mock/src/types.ts +1 -0
- package/src/suite/a-home/modules/home-mock/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-mock/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-pagesystem/package.json +34 -0
- package/src/suite/a-home/modules/home-pagesystem/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-pagesystem/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-pagesystem/src/index.ts +6 -0
- package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/controller.ts +4 -0
- package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/index.vue +10 -0
- package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/render.tsx +24 -0
- package/src/suite/a-home/modules/home-pagesystem/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/home-pagesystem/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/home-pagesystem/src/resource/scope.ts +30 -0
- package/src/suite/a-home/modules/home-pagesystem/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-pagesystem/src/routes.ts +22 -0
- package/src/suite/a-home/modules/home-pagesystem/src/types.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-pagesystem/tsconfig.json +5 -0
- package/src/suite/a-home/modules/home-router/package.json +37 -0
- package/src/suite/a-home/modules/home-router/src/bean/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-router/src/component/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-router/src/config/config.ts +5 -0
- package/src/suite/a-home/modules/home-router/src/config/constants.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/config/errors.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/config/index.ts +4 -0
- package/src/suite/a-home/modules/home-router/src/config/locale/en-us.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/config/locale/zh-cn.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/config/locales.ts +7 -0
- package/src/suite/a-home/modules/home-router/src/index.ts +7 -0
- package/src/suite/a-home/modules/home-router/src/local/router.ts +12 -0
- package/src/suite/a-home/modules/home-router/src/monkey.ts +17 -0
- package/src/suite/a-home/modules/home-router/src/page/.gitkeep +0 -0
- package/src/suite/a-home/modules/home-router/src/resource/beans.ts +4 -0
- package/src/suite/a-home/modules/home-router/src/resource/components.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/resource/index.ts +3 -0
- package/src/suite/a-home/modules/home-router/src/resource/scope.ts +26 -0
- package/src/suite/a-home/modules/home-router/src/resource/this.ts +4 -0
- package/src/suite/a-home/modules/home-router/src/routes.ts +3 -0
- package/src/suite/a-home/modules/home-router/src/types.ts +1 -0
- package/src/suite/a-home/modules/home-router/src/typings.ts +1 -0
- package/src/suite/a-home/modules/home-router/tsconfig.json +5 -0
- package/src/suite/a-home/package.json +17 -0
- package/src/suite/a-home/tsconfig.base.json +4 -0
- package/src/suite-vendor/.gitkeep +0 -0
- package/tsconfig.base.cjs.json +3 -0
- package/tsconfig.base.esm.json +12 -0
- package/tsconfig.base.json +6 -0
- package/tsconfig.json +5 -0
- package/tsconfig.vue-tsc.json +5 -0
- package/vite.config.ts +41 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zova-module-home-layout",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"title": "home-layout",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": [
|
|
9
|
+
"./src/index.ts",
|
|
10
|
+
"./dist/index.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"import": "./src/index.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./*": "./*"
|
|
16
|
+
},
|
|
17
|
+
"description": "layout",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"Cabloy Module"
|
|
20
|
+
],
|
|
21
|
+
"author": "zhennann",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"zod": "^3.23.8"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BeanControllerBase, Local } from 'zova';
|
|
2
|
+
|
|
3
|
+
export interface Props {
|
|
4
|
+
title: string;
|
|
5
|
+
caption?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
to?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type Emits = {};
|
|
12
|
+
|
|
13
|
+
export interface Slots {}
|
|
14
|
+
|
|
15
|
+
@Local()
|
|
16
|
+
export class ControllerEssentialLink extends BeanControllerBase<unknown, Props, Emits, Slots> {
|
|
17
|
+
static $propsDefault = {
|
|
18
|
+
caption: '',
|
|
19
|
+
icon: '',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<template></template>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { useController } from 'zova';
|
|
7
|
+
import { ControllerEssentialLink, Props, Emits } from './controller.js';
|
|
8
|
+
import { RenderEssentialLink } from './render.jsx';
|
|
9
|
+
const props = withDefaults(defineProps<Props>(), ControllerEssentialLink.$propsDefault);
|
|
10
|
+
const emit = defineEmits<Emits>();
|
|
11
|
+
useController(props, emit, ControllerEssentialLink, RenderEssentialLink);
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BeanRenderBase, ZovaIcon, Local } from 'zova';
|
|
2
|
+
import type { ControllerEssentialLink } from './controller.js';
|
|
3
|
+
import { RouterLink } from 'vue-router';
|
|
4
|
+
|
|
5
|
+
export interface RenderEssentialLink extends ControllerEssentialLink {}
|
|
6
|
+
|
|
7
|
+
@Local()
|
|
8
|
+
export class RenderEssentialLink extends BeanRenderBase {
|
|
9
|
+
_renderLink() {
|
|
10
|
+
const domContent = [
|
|
11
|
+
<ZovaIcon name={this.$props.icon} height={24} width={24}></ZovaIcon>,
|
|
12
|
+
<span>{this.$props.title}</span>,
|
|
13
|
+
];
|
|
14
|
+
if (this.$props.href) {
|
|
15
|
+
return (
|
|
16
|
+
<a href={this.$props.href} target="_blank">
|
|
17
|
+
{domContent}
|
|
18
|
+
</a>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
return <RouterLink to={this.$props.to!}>{domContent}</RouterLink>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
render() {
|
|
25
|
+
return this._renderLink();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BeanControllerBase, Local } from 'zova';
|
|
2
|
+
import * as ControllerEssentialLink from '../../component/essentialLink/controller.js';
|
|
3
|
+
|
|
4
|
+
export interface Props {}
|
|
5
|
+
|
|
6
|
+
export type Emits = {};
|
|
7
|
+
|
|
8
|
+
export interface Slots {}
|
|
9
|
+
|
|
10
|
+
export type TypeMenuItem = ControllerEssentialLink.Props & { folder?: boolean; separator?: boolean };
|
|
11
|
+
|
|
12
|
+
@Local()
|
|
13
|
+
export class ControllerLayoutDefault extends BeanControllerBase<unknown, Props, Emits, Slots> {
|
|
14
|
+
static $propsDefault = {};
|
|
15
|
+
|
|
16
|
+
leftDrawerOpen: boolean = false;
|
|
17
|
+
menu: TypeMenuItem[];
|
|
18
|
+
|
|
19
|
+
protected async __init__() {
|
|
20
|
+
await this.loadMenu();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async loadMenu() {
|
|
24
|
+
const res = await this.$api.get('/home/mock/getMenu');
|
|
25
|
+
this.menu = res.data.data;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
toggleLeftDrawer() {
|
|
29
|
+
this.leftDrawerOpen = !this.leftDrawerOpen;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<template></template>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { useController } from 'zova';
|
|
7
|
+
import { ControllerLayoutDefault, Props, Emits } from './controller.js';
|
|
8
|
+
import { RenderLayoutDefault } from './render.jsx';
|
|
9
|
+
const props = withDefaults(defineProps<Props>(), ControllerLayoutDefault.$propsDefault);
|
|
10
|
+
const emit = defineEmits<Emits>();
|
|
11
|
+
useController(props, emit, ControllerLayoutDefault, RenderLayoutDefault);
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BeanRenderBase, Local } from 'zova';
|
|
2
|
+
import type { ControllerLayoutDefault, TypeMenuItem } from './controller.js';
|
|
3
|
+
import { JSX } from 'vue/jsx-runtime';
|
|
4
|
+
import EssentialLink from '../essentialLink/index.vue';
|
|
5
|
+
|
|
6
|
+
export interface RenderLayoutDefault extends ControllerLayoutDefault {}
|
|
7
|
+
|
|
8
|
+
@Local()
|
|
9
|
+
export class RenderLayoutDefault extends BeanRenderBase {
|
|
10
|
+
_renderMenuItem(item: TypeMenuItem) {
|
|
11
|
+
if (item.separator) {
|
|
12
|
+
return <div class="menu-separator"> - - - </div>;
|
|
13
|
+
}
|
|
14
|
+
if (item.folder) {
|
|
15
|
+
return <div class="menu-folder">{item.title}</div>;
|
|
16
|
+
}
|
|
17
|
+
return (
|
|
18
|
+
<EssentialLink
|
|
19
|
+
key={item.title}
|
|
20
|
+
title={item.title}
|
|
21
|
+
caption={item.caption}
|
|
22
|
+
icon={item.icon}
|
|
23
|
+
href={item.href}
|
|
24
|
+
to={item.to}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
_renderMenu() {
|
|
29
|
+
const domItems: JSX.Element[] = [];
|
|
30
|
+
for (const item of this.menu) {
|
|
31
|
+
domItems.push(this._renderMenuItem(item));
|
|
32
|
+
}
|
|
33
|
+
return <div class="menu-list">{domItems}</div>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
render() {
|
|
37
|
+
return (
|
|
38
|
+
<div>
|
|
39
|
+
<div>{this._renderMenu()}</div>
|
|
40
|
+
<div>
|
|
41
|
+
<router-view />
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BeanControllerBase, Local } from 'zova';
|
|
2
|
+
|
|
3
|
+
export interface Props {
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type Emits = {};
|
|
8
|
+
|
|
9
|
+
export interface Slots {}
|
|
10
|
+
|
|
11
|
+
@Local()
|
|
12
|
+
export class ControllerLayoutEmpty extends BeanControllerBase<unknown, Props, Emits, Slots> {
|
|
13
|
+
static $propsDefault = {
|
|
14
|
+
name: '',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<template></template>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { useController } from 'zova';
|
|
7
|
+
import { ControllerLayoutEmpty, Props, Emits } from './controller.js';
|
|
8
|
+
import { RenderLayoutEmpty } from './render.jsx';
|
|
9
|
+
const props = withDefaults(defineProps<Props>(), ControllerLayoutEmpty.$propsDefault);
|
|
10
|
+
const emit = defineEmits<Emits>();
|
|
11
|
+
useController(props, emit, ControllerLayoutEmpty, RenderLayoutEmpty);
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BeanRenderBase, Local } from 'zova';
|
|
2
|
+
import type { ControllerLayoutEmpty } from './controller.js';
|
|
3
|
+
|
|
4
|
+
export interface RenderLayoutEmpty extends ControllerLayoutEmpty {}
|
|
5
|
+
|
|
6
|
+
@Local()
|
|
7
|
+
export class RenderLayoutEmpty extends BeanRenderBase {
|
|
8
|
+
render() {
|
|
9
|
+
return (
|
|
10
|
+
<div>
|
|
11
|
+
<router-view />
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const constants = null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export enum Errors {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BeanScopeBase, Scope, TypeLocaleBase, TypeModuleResource } from 'zova';
|
|
2
|
+
import { config, Errors, locales, constants } from '../config/index.js';
|
|
3
|
+
import { components } from './components.js';
|
|
4
|
+
|
|
5
|
+
@Scope()
|
|
6
|
+
export class ScopeModuleHomeLayout extends BeanScopeBase {}
|
|
7
|
+
|
|
8
|
+
export interface ScopeModuleHomeLayout
|
|
9
|
+
extends TypeModuleResource<
|
|
10
|
+
typeof components,
|
|
11
|
+
typeof config,
|
|
12
|
+
typeof Errors,
|
|
13
|
+
(typeof locales)[TypeLocaleBase],
|
|
14
|
+
typeof constants
|
|
15
|
+
> {}
|
|
16
|
+
|
|
17
|
+
import 'zova';
|
|
18
|
+
declare module 'zova' {
|
|
19
|
+
export interface IBeanScopeRecord {
|
|
20
|
+
'home-layout': ScopeModuleHomeLayout;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IBeanScopeConfig {
|
|
24
|
+
'home-layout': ReturnType<typeof config>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IBeanScopeLocale {
|
|
28
|
+
'home-layout': (typeof locales)[TypeLocaleBase];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * as AHome from 'zova-module-a-home';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zova-module-home-mock",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"title": "home-mock",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": [
|
|
9
|
+
"./src/index.ts",
|
|
10
|
+
"./dist/index.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"import": "./src/index.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./*": "./*"
|
|
16
|
+
},
|
|
17
|
+
"description": "mock",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"Cabloy Module"
|
|
20
|
+
],
|
|
21
|
+
"author": "zhennann",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@faker-js/faker": "^8.4.1",
|
|
28
|
+
"@zhennann/vite-plugin-fake-server": "^2.1.1"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const constants = null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export enum Errors {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineFakeRoute } from '@zhennann/vite-plugin-fake-server/client';
|
|
2
|
+
|
|
3
|
+
const __MenuData = [
|
|
4
|
+
{
|
|
5
|
+
title: 'Home',
|
|
6
|
+
caption: '',
|
|
7
|
+
icon: '::home',
|
|
8
|
+
to: '/a/home/home',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: 'State',
|
|
12
|
+
caption: 'ref, computed',
|
|
13
|
+
icon: '',
|
|
14
|
+
to: '/a/demo/state',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: 'Component',
|
|
18
|
+
caption: 'props, emits, slots',
|
|
19
|
+
icon: '',
|
|
20
|
+
to: '/a/demo/component',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: 'Github',
|
|
24
|
+
caption: 'github.com/cabloy',
|
|
25
|
+
icon: ':social:github',
|
|
26
|
+
href: 'https://github.com/cabloy',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
export default defineFakeRoute([
|
|
31
|
+
{
|
|
32
|
+
url: '/home/mock/getMenu',
|
|
33
|
+
method: 'get',
|
|
34
|
+
response: () => {
|
|
35
|
+
return {
|
|
36
|
+
code: 0,
|
|
37
|
+
message: 'Success',
|
|
38
|
+
data: __MenuData,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const components = {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BeanScopeBase, Scope, TypeLocaleBase, TypeModuleResource } from 'zova';
|
|
2
|
+
import { config, Errors, locales, constants } from '../config/index.js';
|
|
3
|
+
import { components } from './components.js';
|
|
4
|
+
|
|
5
|
+
@Scope()
|
|
6
|
+
export class ScopeModuleHomeMock extends BeanScopeBase {}
|
|
7
|
+
|
|
8
|
+
export interface ScopeModuleHomeMock
|
|
9
|
+
extends TypeModuleResource<
|
|
10
|
+
typeof components,
|
|
11
|
+
typeof config,
|
|
12
|
+
typeof Errors,
|
|
13
|
+
(typeof locales)[TypeLocaleBase],
|
|
14
|
+
typeof constants
|
|
15
|
+
> {}
|
|
16
|
+
|
|
17
|
+
import 'zova';
|
|
18
|
+
declare module 'zova' {
|
|
19
|
+
export interface IBeanScopeRecord {
|
|
20
|
+
'home-mock': ScopeModuleHomeMock;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IBeanScopeConfig {
|
|
24
|
+
'home-mock': ReturnType<typeof config>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IBeanScopeLocale {
|
|
28
|
+
'home-mock': (typeof locales)[TypeLocaleBase];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * as AHome from 'zova-module-a-home';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zova-module-home-pagesystem",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"title": "home-pagesystem",
|
|
5
|
+
"cabloyModule": {
|
|
6
|
+
"capabilities": {
|
|
7
|
+
"sync": true
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": [
|
|
14
|
+
"./src/index.ts",
|
|
15
|
+
"./dist/index.d.ts"
|
|
16
|
+
],
|
|
17
|
+
"import": "./src/index.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./*": "./*"
|
|
21
|
+
},
|
|
22
|
+
"description": "page system",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"Cabloy Module"
|
|
25
|
+
],
|
|
26
|
+
"author": "zhennann",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"zod": "^3.23.8"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const constants = null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export enum Errors {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {};
|