@maketribe/ms-app 3.0.38 → 3.0.39
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/dist/cjs/core/UserInfo.d.ts +1 -1
- package/dist/cjs/core/UserInfo.js +2 -1
- package/dist/cjs/core/UserInfo.js.map +1 -1
- package/dist/esm/core/UserInfo.d.ts +1 -1
- package/dist/esm/core/UserInfo.js +2 -1
- package/dist/esm/core/UserInfo.js.map +1 -1
- package/package.json +2 -2
- package/src/components/button/button-options.ts +0 -22
- package/src/components/button/button.tsx +0 -37
- package/src/components/button/index.ts +0 -7
- package/src/components/column-components/column-action/column-action-options.ts +0 -11
- package/src/components/column-components/column-action/column-action.tsx +0 -36
- package/src/components/column-components/column-action/index.ts +0 -4
- package/src/components/column-components/column-date/column-date-options.ts +0 -12
- package/src/components/column-components/column-date/column-date.tsx +0 -47
- package/src/components/column-components/column-date/index.ts +0 -6
- package/src/components/column-components/column-image/column-image-options.ts +0 -9
- package/src/components/column-components/column-image/column-image.tsx +0 -20
- package/src/components/column-components/column-image/index.ts +0 -4
- package/src/components/column-components/column-json/column-json-options.ts +0 -13
- package/src/components/column-components/column-json/column-json.tsx +0 -41
- package/src/components/column-components/column-json/index.ts +0 -8
- package/src/components/column-components/column-link/column-link-options.ts +0 -34
- package/src/components/column-components/column-link/column-link.tsx +0 -27
- package/src/components/column-components/column-link/index.ts +0 -7
- package/src/components/column-components/column-object-mapping-text/column-object-mapping-text-options.ts +0 -12
- package/src/components/column-components/column-object-mapping-text/column-object-mapping-text.tsx +0 -22
- package/src/components/column-components/column-object-mapping-text/index.ts +0 -6
- package/src/components/column-components/column-select/column-select-header-options.ts +0 -8
- package/src/components/column-components/column-select/column-select-header.tsx +0 -57
- package/src/components/column-components/column-select/column-select-options.ts +0 -9
- package/src/components/column-components/column-select/column-select.tsx +0 -74
- package/src/components/column-components/column-select/index.ts +0 -5
- package/src/components/column-components/column-switch/column-switch-options.ts +0 -16
- package/src/components/column-components/column-switch/column-switch.tsx +0 -37
- package/src/components/column-components/column-switch/index.ts +0 -6
- package/src/components/column-components/column-tag/column-tag-options.ts +0 -42
- package/src/components/column-components/column-tag/column-tag.tsx +0 -59
- package/src/components/column-components/column-tag/index.ts +0 -6
- package/src/components/column-components/column-text/column-text-options.ts +0 -10
- package/src/components/column-components/column-text/column-text.tsx +0 -18
- package/src/components/column-components/column-text/index.ts +0 -6
- package/src/components/column-components/index.ts +0 -10
- package/src/components/condition-components/condition-date/condition-date-options.ts +0 -25
- package/src/components/condition-components/condition-date/condition-date.tsx +0 -70
- package/src/components/condition-components/condition-date/index.ts +0 -7
- package/src/components/condition-components/condition-input/condition-input-options.ts +0 -10
- package/src/components/condition-components/condition-input/condition-input.tsx +0 -41
- package/src/components/condition-components/condition-input/index.ts +0 -7
- package/src/components/condition-components/condition-number/condition-number-options.ts +0 -22
- package/src/components/condition-components/condition-number/condition-number.tsx +0 -74
- package/src/components/condition-components/condition-number/index.ts +0 -7
- package/src/components/condition-components/condition-select/condition-select-options.ts +0 -31
- package/src/components/condition-components/condition-select/condition-select.tsx +0 -56
- package/src/components/condition-components/condition-select/index.ts +0 -7
- package/src/components/condition-components/index.ts +0 -4
- package/src/components/config-provider/config-provider-options.ts +0 -24
- package/src/components/config-provider/config-provider.tsx +0 -21
- package/src/components/config-provider/constants.ts +0 -8
- package/src/components/config-provider/index.ts +0 -9
- package/src/components/config-provider/use-global-config.ts +0 -70
- package/src/components/data-model/data-filter-form/composables/index.ts +0 -1
- package/src/components/data-model/data-filter-form/composables/use-condition.ts +0 -68
- package/src/components/data-model/data-filter-form/data-filter-form-item/data-filter-form-item-options.ts +0 -11
- package/src/components/data-model/data-filter-form/data-filter-form-item/data-filter-form-item.tsx +0 -183
- package/src/components/data-model/data-filter-form/data-filter-form-item/index.ts +0 -7
- package/src/components/data-model/data-filter-form/data-filter-form-options.ts +0 -15
- package/src/components/data-model/data-filter-form/data-filter-form.tsx +0 -103
- package/src/components/data-model/data-filter-form/index.ts +0 -13
- package/src/components/data-model/data-filter-form/operator-options.ts +0 -48
- package/src/components/data-model/data-filter-form/token.ts +0 -30
- package/src/components/data-model/data-filter-popover/data-filter-popover-options.ts +0 -6
- package/src/components/data-model/data-filter-popover/data-filter-popover.tsx +0 -52
- package/src/components/data-model/data-filter-popover/index.ts +0 -8
- package/src/components/data-model/data-form/composables/index.ts +0 -1
- package/src/components/data-model/data-form/composables/use-form-item.ts +0 -40
- package/src/components/data-model/data-form/data-form-item/data-form-item-options.ts +0 -11
- package/src/components/data-model/data-form/data-form-item/data-form-item.tsx +0 -140
- package/src/components/data-model/data-form/data-form-item/index.ts +0 -6
- package/src/components/data-model/data-form/data-form-options.ts +0 -43
- package/src/components/data-model/data-form/data-form.tsx +0 -113
- package/src/components/data-model/data-form/index.ts +0 -13
- package/src/components/data-model/data-form/token.ts +0 -16
- package/src/components/data-model/data-form/views/form/form-options.ts +0 -16
- package/src/components/data-model/data-form/views/form/form.tsx +0 -206
- package/src/components/data-model/data-form/views/form/index.ts +0 -6
- package/src/components/data-model/data-form/views/form-view/form-view-options.ts +0 -17
- package/src/components/data-model/data-form/views/form-view/form-view.tsx +0 -68
- package/src/components/data-model/data-form/views/form-view/index.ts +0 -6
- package/src/components/data-model/data-form/views/index.ts +0 -2
- package/src/components/data-model/data-form-page/data-form-page-options.ts +0 -20
- package/src/components/data-model/data-form-page/data-form-page.tsx +0 -57
- package/src/components/data-model/data-form-page/index.ts +0 -7
- package/src/components/data-model/data-table/composables/index.ts +0 -1
- package/src/components/data-model/data-table/composables/use-column.ts +0 -23
- package/src/components/data-model/data-table/data-table-column/data-table-column-options.ts +0 -11
- package/src/components/data-model/data-table/data-table-column/data-table-column.tsx +0 -18
- package/src/components/data-model/data-table/data-table-column/index.ts +0 -7
- package/src/components/data-model/data-table/data-table-column-component/data-table-column-component-options.ts +0 -13
- package/src/components/data-model/data-table/data-table-column-component/data-table-column-component.tsx +0 -38
- package/src/components/data-model/data-table/data-table-column-component/index.ts +0 -7
- package/src/components/data-model/data-table/data-table-options.ts +0 -24
- package/src/components/data-model/data-table/data-table.tsx +0 -102
- package/src/components/data-model/data-table/index.ts +0 -17
- package/src/components/data-model/data-table/token.ts +0 -10
- package/src/components/data-model/data-table/views/index.ts +0 -5
- package/src/components/data-model/data-table/views/table/index.ts +0 -8
- package/src/components/data-model/data-table/views/table/table-options.ts +0 -12
- package/src/components/data-model/data-table/views/table/table.tsx +0 -98
- package/src/components/data-model/data-table/views/table-tree/index.ts +0 -8
- package/src/components/data-model/data-table/views/table-tree/table-tree-options.ts +0 -12
- package/src/components/data-model/data-table/views/table-tree/table-tree.tsx +0 -104
- package/src/components/data-model/data-table/views/table-view/classify-search/classify-search-item/classify-search-item-options.ts +0 -34
- package/src/components/data-model/data-table/views/table-view/classify-search/classify-search-item/classify-search-item.tsx +0 -97
- package/src/components/data-model/data-table/views/table-view/classify-search/classify-search-item/index.ts +0 -5
- package/src/components/data-model/data-table/views/table-view/classify-search/classify-search.tsx +0 -40
- package/src/components/data-model/data-table/views/table-view/classify-search/index.ts +0 -7
- package/src/components/data-model/data-table/views/table-view/index.ts +0 -8
- package/src/components/data-model/data-table/views/table-view/table-view-options.ts +0 -13
- package/src/components/data-model/data-table/views/table-view/table-view.tsx +0 -126
- package/src/components/data-model/data-table/views/tree/index.ts +0 -8
- package/src/components/data-model/data-table/views/tree/tree-options.ts +0 -14
- package/src/components/data-model/data-table/views/tree/tree.tsx +0 -131
- package/src/components/data-model/data-table/views/tree-view/index.ts +0 -8
- package/src/components/data-model/data-table/views/tree-view/tree-view-options.ts +0 -16
- package/src/components/data-model/data-table/views/tree-view/tree-view.tsx +0 -81
- package/src/components/data-model/data-table-page/data-table-page-options.ts +0 -11
- package/src/components/data-model/data-table-page/data-table-page.tsx +0 -26
- package/src/components/data-model/data-table-page/index.ts +0 -6
- package/src/components/data-model/data-table-pagination/data-table-pagination-options.ts +0 -14
- package/src/components/data-model/data-table-pagination/data-table-pagination.tsx +0 -22
- package/src/components/data-model/data-table-pagination/index.ts +0 -7
- package/src/components/data-model/filter-panel/composables/index.ts +0 -1
- package/src/components/data-model/filter-panel/composables/use-condition.ts +0 -66
- package/src/components/data-model/filter-panel/filter-panel-item/filter-panel-item-options.ts +0 -11
- package/src/components/data-model/filter-panel/filter-panel-item/filter-panel-item.tsx +0 -187
- package/src/components/data-model/filter-panel/filter-panel-item/index.ts +0 -7
- package/src/components/data-model/filter-panel/filter-panel-options.ts +0 -15
- package/src/components/data-model/filter-panel/filter-panel.tsx +0 -102
- package/src/components/data-model/filter-panel/index.ts +0 -11
- package/src/components/data-model/filter-panel/operator-options.ts +0 -48
- package/src/components/data-model/filter-panel/token.ts +0 -17
- package/src/components/data-model/index.ts +0 -5
- package/src/components/data-select/data-select-options.ts +0 -43
- package/src/components/data-select/data-select.tsx +0 -87
- package/src/components/data-select/index.ts +0 -7
- package/src/components/data-table-select/data-table-select-options.ts +0 -43
- package/src/components/data-table-select/data-table-select.tsx +0 -190
- package/src/components/data-table-select/index.ts +0 -6
- package/src/components/data-table-select-dialog/data-table-select-dialog-options.ts +0 -33
- package/src/components/data-table-select-dialog/data-table-select-dialog.tsx +0 -154
- package/src/components/data-table-select-dialog/index.ts +0 -7
- package/src/components/file-view/file-view-options.ts +0 -8
- package/src/components/file-view/file-view.tsx +0 -40
- package/src/components/file-view/index.ts +0 -7
- package/src/components/form-components/form-data-select/form-data-select-options.ts +0 -23
- package/src/components/form-components/form-data-select/form-data-select.tsx +0 -28
- package/src/components/form-components/form-data-select/index.ts +0 -7
- package/src/components/form-components/form-data-table-select/form-data-table-select-options.ts +0 -19
- package/src/components/form-components/form-data-table-select/form-data-table-select.tsx +0 -32
- package/src/components/form-components/form-data-table-select/index.ts +0 -7
- package/src/components/form-components/form-date-picker/form-date-picker-options.ts +0 -18
- package/src/components/form-components/form-date-picker/form-date-picker.tsx +0 -49
- package/src/components/form-components/form-date-picker/index.ts +0 -8
- package/src/components/form-components/form-detail/form-detail-options.ts +0 -15
- package/src/components/form-components/form-detail/form-detail.tsx +0 -112
- package/src/components/form-components/form-detail/index.ts +0 -7
- package/src/components/form-components/form-detail-select/form-detail-select-options.ts +0 -39
- package/src/components/form-components/form-detail-select/form-detail-select.tsx +0 -68
- package/src/components/form-components/form-detail-select/index.ts +0 -5
- package/src/components/form-components/form-icon-select/form-icon-select-options.ts +0 -9
- package/src/components/form-components/form-icon-select/form-icon-select.tsx +0 -71
- package/src/components/form-components/form-icon-select/index.ts +0 -5
- package/src/components/form-components/form-image-upload/form-image-upload-options.ts +0 -11
- package/src/components/form-components/form-image-upload/form-image-upload.tsx +0 -22
- package/src/components/form-components/form-image-upload/index.ts +0 -5
- package/src/components/form-components/form-radio-box/form-radio-box-options.ts +0 -32
- package/src/components/form-components/form-radio-box/form-radio-box.tsx +0 -83
- package/src/components/form-components/form-radio-box/index.ts +0 -7
- package/src/components/form-components/form-rich-text-editor/form-rich-text-editor-options.ts +0 -6
- package/src/components/form-components/form-rich-text-editor/form-rich-text-editor.tsx +0 -22
- package/src/components/form-components/form-rich-text-editor/index.ts +0 -7
- package/src/components/form-components/index.ts +0 -9
- package/src/components/image-select/image-select-option.ts +0 -11
- package/src/components/image-select/image-select.tsx +0 -44
- package/src/components/image-select/index.ts +0 -6
- package/src/components/image-view/image-view-options.ts +0 -14
- package/src/components/image-view/image-view.tsx +0 -30
- package/src/components/image-view/index.ts +0 -7
- package/src/components/index.ts +0 -23
- package/src/components/json-editor/index.ts +0 -8
- package/src/components/json-editor/json-editor-options.ts +0 -21
- package/src/components/json-editor/json-editor.tsx +0 -28
- package/src/components/markdown-editor/index.ts +0 -10
- package/src/components/markdown-editor/markdown-editor-options.ts +0 -17
- package/src/components/markdown-editor/markdown-editor.tsx +0 -136
- package/src/components/material-list/index.ts +0 -7
- package/src/components/material-list/material-group-form-popover.vue +0 -78
- package/src/components/material-list/material-group.vue +0 -145
- package/src/components/material-list/material-item.vue +0 -26
- package/src/components/material-list/material-list-options.ts +0 -24
- package/src/components/material-list/material-list.vue +0 -153
- package/src/components/material-select/index.ts +0 -17
- package/src/components/material-select/material-select-api.ts +0 -55
- package/src/components/material-select/material-select-options.ts +0 -22
- package/src/components/material-select/material-select-type.ts +0 -21
- package/src/components/material-select/material-select.tsx +0 -106
- package/src/components/pagination/index.ts +0 -7
- package/src/components/pagination/pagination-options.tsx +0 -30
- package/src/components/pagination/pagination.tsx +0 -41
- package/src/components/rich-text-editor/index.ts +0 -10
- package/src/components/rich-text-editor/langs/zh-Hans.js +0 -1
- package/src/components/rich-text-editor/rich-text-editor-options.ts +0 -21
- package/src/components/rich-text-editor/rich-text-editor.tsx +0 -111
- package/src/components/role-permission-config/index.ts +0 -7
- package/src/components/role-permission-config/role-permission-config-options.ts +0 -20
- package/src/components/role-permission-config/role-permission-config.tsx +0 -269
- package/src/components/svg-icon/index.ts +0 -5
- package/src/components/svg-icon/svg-icon-options.ts +0 -21
- package/src/components/svg-icon/svg-icon.tsx +0 -48
- package/src/components/system-provider/index.ts +0 -5
- package/src/components/system-provider/system-provider.tsx +0 -95
- package/src/components/upload-file/context/MaterialUploadContext.ts +0 -33
- package/src/components/upload-file/context/UploadContext.ts +0 -21
- package/src/components/upload-file/context/WebFileUploadContext.ts +0 -77
- package/src/components/upload-file/context/index.ts +0 -7
- package/src/components/upload-file/context/material-upload-context-options.ts +0 -13
- package/src/components/upload-file/context/material-upload-context.tsx +0 -34
- package/src/components/upload-file/context/web-file-upload-context-options.ts +0 -16
- package/src/components/upload-file/context/web-file-upload-context.tsx +0 -37
- package/src/components/upload-file/index.ts +0 -11
- package/src/components/upload-file/ui/index.ts +0 -1
- package/src/components/upload-file/ui/upload-image/index.ts +0 -7
- package/src/components/upload-file/ui/upload-image/upload-image-options.ts +0 -25
- package/src/components/upload-file/ui/upload-image/upload-image.tsx +0 -337
- package/src/components/upload-file/upload-file-options.ts +0 -22
- package/src/components/upload-file/upload-file.tsx +0 -69
- package/src/components/verify-dialog/index.ts +0 -5
- package/src/components/verify-dialog/verify-dialog-option.ts +0 -24
- package/src/components/verify-dialog/verify-dialog.tsx +0 -179
- package/src/components/video-view/index.ts +0 -7
- package/src/components/video-view/video-view-options.ts +0 -10
- package/src/components/video-view/video-view.tsx +0 -115
- package/src/composables/create-data-form.ts +0 -6
- package/src/composables/create-data-table.ts +0 -8
- package/src/composables/index.ts +0 -17
- package/src/composables/on-tab-before-close.ts +0 -8
- package/src/composables/on-tab-before-switch.ts +0 -8
- package/src/composables/on-tab-refresh.ts +0 -8
- package/src/composables/use-column-component.ts +0 -184
- package/src/composables/use-current-tab.ts +0 -4
- package/src/composables/use-http-request.ts +0 -5
- package/src/composables/use-i18n.ts +0 -7
- package/src/composables/use-ms-app-client.ts +0 -10
- package/src/composables/use-user-info.ts +0 -4
- package/src/constants/index.ts +0 -6
- package/src/constants/log.ts +0 -5
- package/src/constants/menu.ts +0 -5
- package/src/constants/pattern.ts +0 -4
- package/src/constants/region.ts +0 -6
- package/src/constants/route.ts +0 -4
- package/src/constants/token.ts +0 -5
- package/src/core/DataModelDefines.ts +0 -72
- package/src/core/MSAppClient.ts +0 -260
- package/src/core/PageManager.ts +0 -169
- package/src/core/PermissionPointManager.ts +0 -26
- package/src/core/Router.ts +0 -150
- package/src/core/UserInfo.ts +0 -66
- package/src/core/UserSession.ts +0 -215
- package/src/core/component/ConfigComponents.ts +0 -32
- package/src/core/component/DataFilterComponents.ts +0 -40
- package/src/core/component/DataFormComponents.ts +0 -93
- package/src/core/component/DataTableComponents.ts +0 -91
- package/src/core/component/MaterialComponents.ts +0 -32
- package/src/core/component/index.ts +0 -5
- package/src/core/index.ts +0 -11
- package/src/core/menu/Menu.ts +0 -143
- package/src/core/menu/MenuNode.ts +0 -53
- package/src/core/menu/index.ts +0 -2
- package/src/core/resolver/ITypeResolver.ts +0 -5
- package/src/core/tabs/Tab.ts +0 -59
- package/src/core/tabs/Tabs.ts +0 -187
- package/src/core/tabs/index.ts +0 -2
- package/src/dataview/config/ConfigForm.ts +0 -142
- package/src/dataview/config/ConfigTable.ts +0 -72
- package/src/dataview/config/index.ts +0 -2
- package/src/dataview/deny-ip-access-list/DenyIPAccessListForm.ts +0 -33
- package/src/dataview/deny-ip-access-list/DenyIPAccessListTable.ts +0 -84
- package/src/dataview/deny-ip-access-list/index.ts +0 -2
- package/src/dataview/department/DepartmentForm.ts +0 -41
- package/src/dataview/department/DepartmentTable.ts +0 -64
- package/src/dataview/department/DepartmentTree.ts +0 -47
- package/src/dataview/department/index.ts +0 -3
- package/src/dataview/index.ts +0 -11
- package/src/dataview/ip-white-list/IPWhitelistForm.ts +0 -38
- package/src/dataview/ip-white-list/IPWhitelistTable.ts +0 -81
- package/src/dataview/ip-white-list/index.ts +0 -2
- package/src/dataview/log/index.ts +0 -4
- package/src/dataview/log/local-log/LocalLogTree.ts +0 -77
- package/src/dataview/log/local-log/index.ts +0 -1
- package/src/dataview/log/login-log/LoginLogTable.ts +0 -55
- package/src/dataview/log/login-log/index.ts +0 -1
- package/src/dataview/log/operate-log/OperateLogTable.ts +0 -20
- package/src/dataview/log/operate-log/index.ts +0 -1
- package/src/dataview/log/request-log/RequestLogTable.ts +0 -82
- package/src/dataview/log/request-log/index.ts +0 -1
- package/src/dataview/material/MaterialForm.ts +0 -49
- package/src/dataview/material/MaterialMan.ts +0 -203
- package/src/dataview/material/MaterialTable.ts +0 -125
- package/src/dataview/material/index.ts +0 -4
- package/src/dataview/material/material-group/MaterialGroupForm.ts +0 -27
- package/src/dataview/material/material-group/MaterialGroupTable.ts +0 -57
- package/src/dataview/material/material-group/MaterialGroupTree.ts +0 -72
- package/src/dataview/material/material-group/index.ts +0 -3
- package/src/dataview/member/MemberForm.ts +0 -124
- package/src/dataview/member/MemberTable.tsx +0 -263
- package/src/dataview/member/index.ts +0 -2
- package/src/dataview/member/member-role/MemberRoleTable.ts +0 -23
- package/src/dataview/menu/MenuForm.ts +0 -192
- package/src/dataview/menu/MenuTable.ts +0 -40
- package/src/dataview/menu/MenuTree.ts +0 -112
- package/src/dataview/menu/index.ts +0 -4
- package/src/dataview/menu/permission-point/PermissionPointDefineForm.ts +0 -30
- package/src/dataview/menu/permission-point/PermissionPointDefineTable.ts +0 -32
- package/src/dataview/menu/permission-point/index.ts +0 -2
- package/src/dataview/region/RegionForm.ts +0 -52
- package/src/dataview/region/RegionTable.ts +0 -64
- package/src/dataview/region/index.ts +0 -2
- package/src/dataview/role/RoleForm.ts +0 -34
- package/src/dataview/role/RolePermissionConfigTable.ts +0 -476
- package/src/dataview/role/RoleTable.ts +0 -70
- package/src/dataview/role/index.ts +0 -5
- package/src/dataview/role/role-permission-point/RolePermissionPointTable.ts +0 -29
- package/src/dataview/role/role-permission-point/index.ts +0 -1
- package/src/dataview/role/role-route/RoleRouteTable.ts +0 -30
- package/src/dataview/role/role-route/index.ts +0 -1
- package/src/dataview/route/RouteForm.ts +0 -94
- package/src/dataview/route/RouteTable.ts +0 -73
- package/src/dataview/route/index.ts +0 -2
- package/src/define-data-form.ts +0 -12
- package/src/define-data-table.ts +0 -12
- package/src/define-data-tree.ts +0 -12
- package/src/index.ts +0 -19
- package/src/init-application.ts +0 -83
- package/src/installer.ts +0 -73
- package/src/layouts/components/bar/index.tsx +0 -102
- package/src/layouts/components/dialogs/dialogs.tsx +0 -100
- package/src/layouts/components/dialogs/index.ts +0 -5
- package/src/layouts/components/header/index.tsx +0 -23
- package/src/layouts/components/header/tools.tsx +0 -60
- package/src/layouts/components/index.ts +0 -3
- package/src/layouts/components/lock/index.ts +0 -5
- package/src/layouts/components/lock/lock.tsx +0 -92
- package/src/layouts/components/menu/index.tsx +0 -61
- package/src/layouts/components/menu/menu-item.tsx +0 -63
- package/src/layouts/container/default.tsx +0 -85
- package/src/layouts/index.ts +0 -6
- package/src/layouts/layout.tsx +0 -11
- package/src/message-impl/DialogerImpl.ts +0 -84
- package/src/message-impl/MessagerImpl.ts +0 -17
- package/src/message-impl/NotificationerImpl.ts +0 -17
- package/src/message-impl/index.ts +0 -3
- package/src/page/index/404.vue +0 -3
- package/src/page/index/dv/default/add.vue +0 -50
- package/src/page/index/dv/default/edit.vue +0 -56
- package/src/page/index/dv/default/single/list/dialog.vue +0 -155
- package/src/page/index/dv/default/single/list/normal.vue +0 -128
- package/src/page/index/dv/default/single/table-tree/dialog.vue +0 -60
- package/src/page/index/dv/default/single/tree/dialog.vue +0 -174
- package/src/page/index/dv/default/table.vue +0 -52
- package/src/page/index/dv/local-log/index.vue +0 -98
- package/src/page/index/dv/ms-member/index.vue +0 -33
- package/src/page/index/dv/ms-role/index.vue +0 -32
- package/src/page/index/material/index.vue +0 -16
- package/src/page/index.vue +0 -9
- package/src/page/login/index.vue +0 -196
- package/src/page/signup/index.vue +0 -157
- package/src/router-middleware/auth.ts +0 -31
- package/src/router-middleware/index.ts +0 -1
- package/src/tokens/index.ts +0 -1
- package/src/tokens/ms-app-client.ts +0 -10
- package/src/utils.ts +0 -233
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ActionButton,
|
|
3
|
-
DataTable,
|
|
4
|
-
DeleteButton,
|
|
5
|
-
EditButton,
|
|
6
|
-
TableActionColumn,
|
|
7
|
-
TableColumn,
|
|
8
|
-
Messager,
|
|
9
|
-
} from "@maketribe/dm";
|
|
10
|
-
import { defineDataTable } from "../../define-data-table";
|
|
11
|
-
import { DenyIPAccessList } from "./DenyIPAccessListForm";
|
|
12
|
-
|
|
13
|
-
export class DenyIPAccessListTable<
|
|
14
|
-
T = DenyIPAccessList,
|
|
15
|
-
F = T
|
|
16
|
-
> extends DataTable<T, F> {
|
|
17
|
-
constructor(options = {}) {
|
|
18
|
-
super({ name: "ms-deny-access-ip-list", ...options });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async initialize() {
|
|
22
|
-
await super.initialize();
|
|
23
|
-
|
|
24
|
-
this.setColumns([
|
|
25
|
-
new TableColumn({ name: "ipAddress", label: "IP地址" }),
|
|
26
|
-
new TableColumn({ name: "createdAt", label: "创建时间" }),
|
|
27
|
-
new TableActionColumn({
|
|
28
|
-
width: "180px",
|
|
29
|
-
buttons: [
|
|
30
|
-
new EditButton(),
|
|
31
|
-
new DeleteButton({ label: "移除" }),
|
|
32
|
-
new ActionButton({
|
|
33
|
-
label: "禁用",
|
|
34
|
-
type: "danger",
|
|
35
|
-
handler: async (row) => {
|
|
36
|
-
this.loadingManager.startLoading();
|
|
37
|
-
|
|
38
|
-
const result = await this.dataViewRequest.callDVRequest({
|
|
39
|
-
action: `disable/${row.id}`,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
this.loadingManager.completeLoading();
|
|
43
|
-
if (result.data.code !== 200) {
|
|
44
|
-
Messager.instance.error({
|
|
45
|
-
message: result.data.msg || "禁用失败",
|
|
46
|
-
});
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
Messager.instance.success({ message: "禁用成功" });
|
|
50
|
-
|
|
51
|
-
this.load();
|
|
52
|
-
},
|
|
53
|
-
predicate: (row) => row.valid === 1,
|
|
54
|
-
}),
|
|
55
|
-
new ActionButton({
|
|
56
|
-
label: "启用",
|
|
57
|
-
type: "success",
|
|
58
|
-
handler: async (row) => {
|
|
59
|
-
this.loadingManager.startLoading();
|
|
60
|
-
|
|
61
|
-
const result = await this.dataViewRequest.callDVRequest({
|
|
62
|
-
action: `enable/${row.id}`,
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
this.loadingManager.completeLoading();
|
|
66
|
-
if (result.data.code !== 200) {
|
|
67
|
-
Messager.instance.error({
|
|
68
|
-
message: result.data.msg || "启用失败",
|
|
69
|
-
});
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
Messager.instance.success({ message: "启用成功" });
|
|
73
|
-
|
|
74
|
-
this.load();
|
|
75
|
-
},
|
|
76
|
-
predicate: (row) => row.valid === 0,
|
|
77
|
-
}),
|
|
78
|
-
],
|
|
79
|
-
}),
|
|
80
|
-
]);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
defineDataTable(DenyIPAccessListTable);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DataForm, DataFormOptions, FormColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataForm } from "../../define-data-form";
|
|
3
|
-
|
|
4
|
-
export type Department = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
pid: string | null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export class DepartmentForm extends DataForm<Department> {
|
|
11
|
-
constructor(options: DataFormOptions = {}) {
|
|
12
|
-
super({ name: "ms-dept", ...options });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
protected async initialize() {
|
|
16
|
-
await super.initialize();
|
|
17
|
-
|
|
18
|
-
this.setColumns([
|
|
19
|
-
new FormColumn({ name: "id", label: "编号" }),
|
|
20
|
-
new FormColumn({ name: "name", label: "名称", required: true }),
|
|
21
|
-
new FormColumn({ name: "pid", label: "父部门ID", visible: false }),
|
|
22
|
-
]);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
formatSubmitData(data: any) {
|
|
26
|
-
return {
|
|
27
|
-
...data,
|
|
28
|
-
pid: data.pid || null,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
formatItem(item: Department): Department {
|
|
33
|
-
return {
|
|
34
|
-
id: item.id,
|
|
35
|
-
name: item.name || "",
|
|
36
|
-
pid: item.pid || null,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
defineDataForm(DepartmentForm);
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { DataTableOptions, TableColumn, DataTable } from "@maketribe/dm";
|
|
2
|
-
import { Department } from "./DepartmentForm";
|
|
3
|
-
import { defineDataTable } from "../../define-data-table";
|
|
4
|
-
import { DepartmentNode } from "./DepartmentTree";
|
|
5
|
-
|
|
6
|
-
export class DepartmentTable<
|
|
7
|
-
T extends Department = Department,
|
|
8
|
-
F extends Department = Department
|
|
9
|
-
> extends DataTable<T, F> {
|
|
10
|
-
constructor(options: DataTableOptions = {}) {
|
|
11
|
-
super({
|
|
12
|
-
pageSize: 0,
|
|
13
|
-
pageSizes: [],
|
|
14
|
-
name: "ms-dept",
|
|
15
|
-
...options,
|
|
16
|
-
interfaceURL: {
|
|
17
|
-
list: "/api/dv/ms-dept/allList",
|
|
18
|
-
...options.interfaceURL,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
protected async initialize() {
|
|
24
|
-
await super.initialize();
|
|
25
|
-
|
|
26
|
-
this.setColumns([
|
|
27
|
-
new TableColumn({ name: "id", label: "编号", visible: false }),
|
|
28
|
-
new TableColumn({ name: "name", label: "名称" }),
|
|
29
|
-
new TableColumn({ name: "leader", label: "部门负责人" }),
|
|
30
|
-
]);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
setList(list: F[]): void {
|
|
34
|
-
const rootDepartments: DepartmentNode[] = [];
|
|
35
|
-
|
|
36
|
-
const departments = list as unknown as DepartmentNode[];
|
|
37
|
-
|
|
38
|
-
for (const department of departments) {
|
|
39
|
-
department.children = [];
|
|
40
|
-
|
|
41
|
-
if (!department.pid) {
|
|
42
|
-
rootDepartments.push(department);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
for (const item of departments) {
|
|
46
|
-
if (department.id === item.pid) {
|
|
47
|
-
department.children.push(item);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
super.setList(rootDepartments as unknown as F[]);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
formatItem(item: T): F {
|
|
56
|
-
return {
|
|
57
|
-
id: item.id,
|
|
58
|
-
name: item.name || "",
|
|
59
|
-
pid: item.pid || null,
|
|
60
|
-
} as F;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
defineDataTable(DepartmentTable);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DataTree, DataTreeOptions } from "@maketribe/dm";
|
|
2
|
-
|
|
3
|
-
import { Department } from "./DepartmentForm";
|
|
4
|
-
import { defineDataTree } from "../../define-data-tree";
|
|
5
|
-
|
|
6
|
-
export type DepartmentNode = Department & { children: DepartmentNode[] };
|
|
7
|
-
|
|
8
|
-
export class DepartmentTree<
|
|
9
|
-
T extends DepartmentNode = DepartmentNode
|
|
10
|
-
> extends DataTree<T> {
|
|
11
|
-
constructor(options: DataTreeOptions = {}) {
|
|
12
|
-
super({
|
|
13
|
-
name: "ms-dept",
|
|
14
|
-
...options,
|
|
15
|
-
props: { label: "name", ...options.props },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
protected async loadRequest(params: Record<string, any>) {
|
|
19
|
-
const response = await super.loadRequest(params);
|
|
20
|
-
|
|
21
|
-
const list = response.data.data;
|
|
22
|
-
|
|
23
|
-
const rootDepartments: T[] = [];
|
|
24
|
-
|
|
25
|
-
const departments = list;
|
|
26
|
-
|
|
27
|
-
for (const department of departments) {
|
|
28
|
-
department.children = [];
|
|
29
|
-
|
|
30
|
-
if (!department.pid) {
|
|
31
|
-
rootDepartments.push(department);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
for (const item of departments) {
|
|
35
|
-
if (department.id === item.pid) {
|
|
36
|
-
department.children.push(item);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
response.data.data = rootDepartments as T[];
|
|
42
|
-
|
|
43
|
-
return response;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
defineDataTree(DepartmentTree);
|
package/src/dataview/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./department";
|
|
2
|
-
export * from "./member";
|
|
3
|
-
export * from "./menu";
|
|
4
|
-
export * from "./role";
|
|
5
|
-
export * from "./route";
|
|
6
|
-
export * from "./config";
|
|
7
|
-
export * from "./material";
|
|
8
|
-
export * from "./ip-white-list";
|
|
9
|
-
export * from "./deny-ip-access-list";
|
|
10
|
-
export * from "./region";
|
|
11
|
-
export * from "./log";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DataForm, FormColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataForm } from "../../define-data-form";
|
|
3
|
-
import { IP_PATTERN } from "../../constants";
|
|
4
|
-
|
|
5
|
-
export type IPWhitelist = {
|
|
6
|
-
id: string;
|
|
7
|
-
ipAddress: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export class IPWhitelistForm<T = IPWhitelist, F = T> extends DataForm<T, F> {
|
|
11
|
-
constructor(options = {}) {
|
|
12
|
-
super({ name: "ms-access-ip-whitelist", ...options });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
async initialize() {
|
|
16
|
-
await super.initialize();
|
|
17
|
-
|
|
18
|
-
this.setColumns([
|
|
19
|
-
new FormColumn({ name: "id", label: "编号" }),
|
|
20
|
-
new FormColumn({
|
|
21
|
-
name: "ipAddress",
|
|
22
|
-
label: "IP地址",
|
|
23
|
-
required: true,
|
|
24
|
-
rules: [{ message: "请输入正确的IP", pattern: IP_PATTERN }],
|
|
25
|
-
}),
|
|
26
|
-
new FormColumn({
|
|
27
|
-
name: "createdAt",
|
|
28
|
-
label: "创建时间",
|
|
29
|
-
componentInfo: "MKFormDatePicker",
|
|
30
|
-
componentProps: {
|
|
31
|
-
type: "datetime",
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
]);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
defineDataForm(IPWhitelistForm);
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ActionButton,
|
|
3
|
-
DataTable,
|
|
4
|
-
DeleteButton,
|
|
5
|
-
EditButton,
|
|
6
|
-
TableActionColumn,
|
|
7
|
-
TableColumn,
|
|
8
|
-
Messager,
|
|
9
|
-
} from "@maketribe/dm";
|
|
10
|
-
import { defineDataTable } from "../../define-data-table";
|
|
11
|
-
import { IPWhitelist } from "./IPWhitelistForm";
|
|
12
|
-
|
|
13
|
-
export class IPWhitelistTable<T = IPWhitelist, F = T> extends DataTable<T, F> {
|
|
14
|
-
constructor(options = {}) {
|
|
15
|
-
super({ name: "ms-access-ip-whitelist", ...options });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
async initialize() {
|
|
19
|
-
await super.initialize();
|
|
20
|
-
|
|
21
|
-
this.setColumns([
|
|
22
|
-
new TableColumn({ name: "ipAddress", label: "IP地址" }),
|
|
23
|
-
new TableColumn({ name: "createdAt", label: "创建时间" }),
|
|
24
|
-
new TableActionColumn({
|
|
25
|
-
width: "180px",
|
|
26
|
-
buttons: [
|
|
27
|
-
new EditButton(),
|
|
28
|
-
new DeleteButton({ label: "移除" }),
|
|
29
|
-
new ActionButton({
|
|
30
|
-
label: "禁用",
|
|
31
|
-
type: "danger",
|
|
32
|
-
handler: async (row) => {
|
|
33
|
-
this.loadingManager.startLoading();
|
|
34
|
-
|
|
35
|
-
const result = await this.dataViewRequest.callDVRequest({
|
|
36
|
-
action: `disable/${row.id}`,
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
this.loadingManager.completeLoading();
|
|
40
|
-
if (result.data.code !== 200) {
|
|
41
|
-
Messager.instance.error({
|
|
42
|
-
message: result.data.msg || "禁用失败",
|
|
43
|
-
});
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
Messager.instance.success({ message: "禁用成功" });
|
|
47
|
-
|
|
48
|
-
this.load();
|
|
49
|
-
},
|
|
50
|
-
predicate: (row) => row.valid === 1,
|
|
51
|
-
}),
|
|
52
|
-
new ActionButton({
|
|
53
|
-
label: "启用",
|
|
54
|
-
type: "success",
|
|
55
|
-
handler: async (row) => {
|
|
56
|
-
this.loadingManager.startLoading();
|
|
57
|
-
|
|
58
|
-
const result = await this.dataViewRequest.callDVRequest({
|
|
59
|
-
action: `enable/${row.id}`,
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
this.loadingManager.completeLoading();
|
|
63
|
-
if (result.data.code !== 200) {
|
|
64
|
-
Messager.instance.error({
|
|
65
|
-
message: result.data.msg || "启用失败",
|
|
66
|
-
});
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
Messager.instance.success({ message: "启用成功" });
|
|
70
|
-
|
|
71
|
-
this.load();
|
|
72
|
-
},
|
|
73
|
-
predicate: (row) => row.valid === 0,
|
|
74
|
-
}),
|
|
75
|
-
],
|
|
76
|
-
}),
|
|
77
|
-
]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
defineDataTable(IPWhitelistTable);
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { DataTree, DataTreeNode, DataTreeOptions } from "@maketribe/dm";
|
|
2
|
-
import { R, CancelToken } from "@maketribe/request";
|
|
3
|
-
import { defineDataTree } from "../../../define-data-tree";
|
|
4
|
-
import { Event } from "@maketribe/utils";
|
|
5
|
-
|
|
6
|
-
export type LocalLog = {
|
|
7
|
-
name: string;
|
|
8
|
-
path: string;
|
|
9
|
-
isDirectory: boolean;
|
|
10
|
-
children: LocalLog[];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export class LocalLogTree extends DataTree<LocalLog> {
|
|
14
|
-
constructor(options: DataTreeOptions = { props: { label: "name" } }) {
|
|
15
|
-
super({ name: "local-log", props: { label: "path" }, ...options });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
protected async initialize(): Promise<void> {
|
|
19
|
-
await super.initialize();
|
|
20
|
-
|
|
21
|
-
this.initdEvent.once(() => {
|
|
22
|
-
this.append(
|
|
23
|
-
this.createDataTreeNode({
|
|
24
|
-
name: "root",
|
|
25
|
-
path: "/",
|
|
26
|
-
isDirectory: true,
|
|
27
|
-
children: [],
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
createDataTreeNode(data: LocalLog) {
|
|
34
|
-
const dataTreeNode: DataTreeNode<LocalLog> =
|
|
35
|
-
new (class extends DataTreeNode<LocalLog> {
|
|
36
|
-
get isLeaf() {
|
|
37
|
-
return !(this.data?.isDirectory ?? false);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
protected async loadRequest(params: Record<string, any>) {
|
|
41
|
-
const response = await this.httpRequest.get<
|
|
42
|
-
R<LocalLog[]> & { totalRecCount: string }
|
|
43
|
-
>("/api/ms/system/local-log-dir-root", {
|
|
44
|
-
params: { ...params, path: this.data!.path },
|
|
45
|
-
cancelToken: new CancelToken((cancel) => {
|
|
46
|
-
this.loadCancel = cancel;
|
|
47
|
-
}),
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
response.data.data = response.data.data.map((item) => ({
|
|
51
|
-
name: item.name,
|
|
52
|
-
path: item.path,
|
|
53
|
-
isDirectory: item.isDirectory,
|
|
54
|
-
children: [],
|
|
55
|
-
})) as LocalLog[];
|
|
56
|
-
|
|
57
|
-
this.loadCancel = null;
|
|
58
|
-
|
|
59
|
-
return response;
|
|
60
|
-
}
|
|
61
|
-
})({ name: this.name });
|
|
62
|
-
|
|
63
|
-
dataTreeNode.setTree(this);
|
|
64
|
-
|
|
65
|
-
dataTreeNode.setData(data);
|
|
66
|
-
|
|
67
|
-
return dataTreeNode;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
formatItem(item: LocalLog): LocalLog {
|
|
71
|
-
return { ...item, children: [] };
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
(window as any).LocalLogTree = LocalLogTree;
|
|
76
|
-
|
|
77
|
-
defineDataTree(LocalLogTree);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LocalLogTree";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { DataTable, DataTableOptions, TableColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataTable } from "../../../define-data-table";
|
|
3
|
-
import { LoginLogType } from "../../../constants";
|
|
4
|
-
|
|
5
|
-
export type LoginLogResult = {
|
|
6
|
-
account: string;
|
|
7
|
-
ipAddress: string;
|
|
8
|
-
traceId: string;
|
|
9
|
-
status: LoginLogType;
|
|
10
|
-
clientId: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type LoginLog = LoginLogResult & {
|
|
14
|
-
statusText: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export class LoginLogTable extends DataTable<LoginLogResult, LoginLog> {
|
|
18
|
-
constructor(options: DataTableOptions = {}) {
|
|
19
|
-
super({ name: "ms-memberlogin-record", ...options });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
protected async initialize() {
|
|
23
|
-
await super.initialize();
|
|
24
|
-
|
|
25
|
-
this.setColumns([
|
|
26
|
-
new TableColumn({ name: "account", label: "账号", width: "150px" }),
|
|
27
|
-
new TableColumn({ name: "statusText", label: "状态", width: "100px" }),
|
|
28
|
-
new TableColumn({ name: "ipAddress", label: "IP", width: "120px" }),
|
|
29
|
-
new TableColumn({ name: "traceId", label: "链路编号" }),
|
|
30
|
-
new TableColumn({ name: "clientId", label: "客户端编号" }),
|
|
31
|
-
new TableColumn({ name: "createdAt", label: "时间" }),
|
|
32
|
-
]);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
formatItem(item: LoginLogResult): LoginLog {
|
|
36
|
-
let statusText = "";
|
|
37
|
-
|
|
38
|
-
switch (item.status) {
|
|
39
|
-
case LoginLogType.SUCCESS:
|
|
40
|
-
statusText = "登录成功";
|
|
41
|
-
break;
|
|
42
|
-
case LoginLogType.FAILURE:
|
|
43
|
-
statusText = "登录失败";
|
|
44
|
-
break;
|
|
45
|
-
case LoginLogType.LOCK:
|
|
46
|
-
statusText = "账号锁定";
|
|
47
|
-
break;
|
|
48
|
-
default:
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return { ...item, clientId: item.clientId ?? "", statusText };
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
defineDataTable(LoginLogTable);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LoginLogTable";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DataTable, DataTableOptions, TableColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataTable } from "../../../define-data-table";
|
|
3
|
-
|
|
4
|
-
export class OperateLogTable extends DataTable {
|
|
5
|
-
constructor(options: DataTableOptions = {}) {
|
|
6
|
-
super({ name: "ms-operate-log", ...options });
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
protected async initialize() {
|
|
10
|
-
await super.initialize();
|
|
11
|
-
|
|
12
|
-
this.setColumns([
|
|
13
|
-
new TableColumn({ name: "desc", label: "描述" }),
|
|
14
|
-
new TableColumn({ name: "content", label: "内容" }),
|
|
15
|
-
new TableColumn({ name: "createdAt", label: "时间" }),
|
|
16
|
-
]);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
defineDataTable(OperateLogTable);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./OperateLogTable";
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { DataTable, DataTableOptions, TableColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataTable } from "../../../define-data-table";
|
|
3
|
-
|
|
4
|
-
export type RequestLog = {
|
|
5
|
-
id: string;
|
|
6
|
-
requestUrl: string;
|
|
7
|
-
timeOperationElapsedMilliseconds: string;
|
|
8
|
-
traceId: string;
|
|
9
|
-
httpMethod: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
isError: number;
|
|
12
|
-
content: any;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export class RequestLogTable extends DataTable<
|
|
16
|
-
RequestLog,
|
|
17
|
-
RequestLog & { contentText: string }
|
|
18
|
-
> {
|
|
19
|
-
constructor(options: DataTableOptions = {}) {
|
|
20
|
-
super({ name: "ms-request-log", ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
protected async initialize() {
|
|
24
|
-
await super.initialize();
|
|
25
|
-
|
|
26
|
-
this.setColumns([
|
|
27
|
-
new TableColumn({
|
|
28
|
-
name: "requestUrl",
|
|
29
|
-
label: "请求地址",
|
|
30
|
-
}),
|
|
31
|
-
new TableColumn({
|
|
32
|
-
name: "traceId",
|
|
33
|
-
label: "链路编号",
|
|
34
|
-
}),
|
|
35
|
-
new TableColumn({
|
|
36
|
-
name: "contentText",
|
|
37
|
-
label: "内容",
|
|
38
|
-
componentInfo: "MKColumnJson",
|
|
39
|
-
}),
|
|
40
|
-
new TableColumn({
|
|
41
|
-
name: "timeOperationElapsedMilliseconds",
|
|
42
|
-
label: "耗时(ms)",
|
|
43
|
-
}),
|
|
44
|
-
new TableColumn({
|
|
45
|
-
name: "isError",
|
|
46
|
-
label: "状态",
|
|
47
|
-
}),
|
|
48
|
-
new TableColumn({
|
|
49
|
-
name: "httpMethod",
|
|
50
|
-
label: "请求方法",
|
|
51
|
-
}),
|
|
52
|
-
new TableColumn({ name: "createdAt", label: "时间" }),
|
|
53
|
-
]);
|
|
54
|
-
|
|
55
|
-
(window as any).a = this;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
formatItem(item: RequestLog): RequestLog & { contentText: string } {
|
|
59
|
-
let contentText = "";
|
|
60
|
-
|
|
61
|
-
try {
|
|
62
|
-
const content = JSON.parse(JSON.stringify(item.content || {}));
|
|
63
|
-
|
|
64
|
-
if (typeof content.logReponseInfo.value === "string") {
|
|
65
|
-
content.logReponseInfo.value = JSON.parse(content.logReponseInfo.value);;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
contentText = JSON.stringify(content, null, 2);
|
|
69
|
-
} catch (e) {
|
|
70
|
-
console.error(e);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return {
|
|
74
|
-
...item,
|
|
75
|
-
contentText,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
(window as any).RequestLogTable = RequestLogTable;
|
|
81
|
-
|
|
82
|
-
defineDataTable(RequestLogTable);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./RequestLogTable";
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DataForm, DataFormOptions, FormColumn } from "@maketribe/dm";
|
|
2
|
-
import { defineDataForm } from "../../define-data-form";
|
|
3
|
-
|
|
4
|
-
export type Material = {
|
|
5
|
-
id: string;
|
|
6
|
-
materialGroupId?: string | null;
|
|
7
|
-
type: string;
|
|
8
|
-
desc: string;
|
|
9
|
-
path: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export class MaterialForm extends DataForm<Material> {
|
|
13
|
-
constructor(options: DataFormOptions = {}) {
|
|
14
|
-
super({ name: "ms-material", ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
protected async initialize() {
|
|
18
|
-
await super.initialize();
|
|
19
|
-
|
|
20
|
-
this.setColumns([
|
|
21
|
-
new FormColumn({ name: "id", label: "编号" }),
|
|
22
|
-
new FormColumn({ name: "type", label: "类型" }),
|
|
23
|
-
new FormColumn({ name: "desc", label: "描述" }),
|
|
24
|
-
new FormColumn({ name: "path", label: "路径" }),
|
|
25
|
-
]);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
formatItem(item: Material): Material {
|
|
29
|
-
return {
|
|
30
|
-
id: item.id,
|
|
31
|
-
materialGroupId: item.materialGroupId ?? null,
|
|
32
|
-
type: item.type || "string",
|
|
33
|
-
desc: item.desc,
|
|
34
|
-
path: item.path,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
formatSubmitData(data: any) {
|
|
39
|
-
return {
|
|
40
|
-
id: data.id,
|
|
41
|
-
materialGroupId: data.materialGroupId,
|
|
42
|
-
type: data.type,
|
|
43
|
-
desc: data.desc,
|
|
44
|
-
path: data.path,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
defineDataForm(MaterialForm);
|