@titaui/pc 1.10.7 → 1.10.8-2.beta-1
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/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +3 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.transMetasToTableData = exports.fetchAssetsVersion = exports.fetchAssetsUri = exports.domain = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _axios = _interopRequireDefault(require("../utils/axios"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
13
|
+
|
|
14
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
15
|
+
|
|
16
|
+
var domain = "https://skynet-apis.tita.cloud"; // const domain = 'http://127.0.0.1:8080'
|
|
17
|
+
|
|
18
|
+
exports.domain = domain;
|
|
19
|
+
|
|
20
|
+
var transMetasToTableData = function transMetasToTableData() {
|
|
21
|
+
var dataSource = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
22
|
+
var listData = [];
|
|
23
|
+
dataSource.forEach(function (dataItem) {
|
|
24
|
+
var data = {};
|
|
25
|
+
dataItem.forEach(function (field) {
|
|
26
|
+
var name = field.name,
|
|
27
|
+
value = field.value;
|
|
28
|
+
data[name] = value;
|
|
29
|
+
});
|
|
30
|
+
listData.push(data);
|
|
31
|
+
});
|
|
32
|
+
return listData;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.transMetasToTableData = transMetasToTableData;
|
|
36
|
+
var storageKey = "DEMO_CHART_URI_";
|
|
37
|
+
|
|
38
|
+
var fetchAssetsVersion = function fetchAssetsVersion() {
|
|
39
|
+
return _axios["default"].post("".concat(domain, "/api/v1/metas/list"), {
|
|
40
|
+
filter: {
|
|
41
|
+
fields: [],
|
|
42
|
+
order: {
|
|
43
|
+
name: "create_time_unix",
|
|
44
|
+
orderBy: "desc"
|
|
45
|
+
},
|
|
46
|
+
limit: 1
|
|
47
|
+
},
|
|
48
|
+
objectName: "superset_assets_version"
|
|
49
|
+
}).then(function (res) {
|
|
50
|
+
return transMetasToTableData(res.data.list);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.fetchAssetsVersion = fetchAssetsVersion;
|
|
55
|
+
|
|
56
|
+
var fetchAssetsUri = function fetchAssetsUri(version) {
|
|
57
|
+
return _axios["default"].post("".concat(domain, "/api/v1/metas/list"), {
|
|
58
|
+
filter: {
|
|
59
|
+
fields: [{
|
|
60
|
+
name: "version",
|
|
61
|
+
operator: "=",
|
|
62
|
+
value: version,
|
|
63
|
+
type: "string"
|
|
64
|
+
}],
|
|
65
|
+
order: {
|
|
66
|
+
name: "create_time_unix",
|
|
67
|
+
orderBy: "desc"
|
|
68
|
+
},
|
|
69
|
+
limit: 20
|
|
70
|
+
},
|
|
71
|
+
objectName: "superset_assets"
|
|
72
|
+
}).then(function (res) {
|
|
73
|
+
sessionStorage.setItem("".concat(storageKey, "version"), JSON.stringify(transMetasToTableData(res.data.list)));
|
|
74
|
+
return transMetasToTableData(res.data.list);
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.fetchAssetsUri = fetchAssetsUri;
|
|
79
|
+
|
|
80
|
+
var hasCachedAssets = function hasCachedAssets(resVersion) {
|
|
81
|
+
var _JSON$parse$;
|
|
82
|
+
|
|
83
|
+
var cacheAssets = sessionStorage.getItem("".concat(storageKey, "version"));
|
|
84
|
+
var cacheVersion = cacheAssets && ((_JSON$parse$ = JSON.parse(cacheAssets)[0]) === null || _JSON$parse$ === void 0 ? void 0 : _JSON$parse$.version);
|
|
85
|
+
return cacheAssets !== null && cacheVersion === resVersion;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
var getAssetsWithCache = /*#__PURE__*/function () {
|
|
89
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
90
|
+
var _res$;
|
|
91
|
+
|
|
92
|
+
var res, cacheAssets, resVersion, assetsUri;
|
|
93
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
94
|
+
while (1) {
|
|
95
|
+
switch (_context.prev = _context.next) {
|
|
96
|
+
case 0:
|
|
97
|
+
_context.next = 2;
|
|
98
|
+
return fetchAssetsVersion();
|
|
99
|
+
|
|
100
|
+
case 2:
|
|
101
|
+
res = _context.sent;
|
|
102
|
+
cacheAssets = sessionStorage.getItem("".concat(storageKey, "version"));
|
|
103
|
+
resVersion = res === null || res === void 0 ? void 0 : (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.version;
|
|
104
|
+
|
|
105
|
+
if (resVersion) {
|
|
106
|
+
_context.next = 7;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return _context.abrupt("return", []);
|
|
111
|
+
|
|
112
|
+
case 7:
|
|
113
|
+
if (!hasCachedAssets(resVersion)) {
|
|
114
|
+
_context.next = 9;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return _context.abrupt("return", JSON.parse(cacheAssets));
|
|
119
|
+
|
|
120
|
+
case 9:
|
|
121
|
+
_context.next = 11;
|
|
122
|
+
return fetchAssetsUri(resVersion);
|
|
123
|
+
|
|
124
|
+
case 11:
|
|
125
|
+
assetsUri = _context.sent;
|
|
126
|
+
return _context.abrupt("return", assetsUri);
|
|
127
|
+
|
|
128
|
+
case 13:
|
|
129
|
+
case "end":
|
|
130
|
+
return _context.stop();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}, _callee);
|
|
134
|
+
}));
|
|
135
|
+
|
|
136
|
+
return function getAssetsWithCache() {
|
|
137
|
+
return _ref.apply(this, arguments);
|
|
138
|
+
};
|
|
139
|
+
}();
|
|
140
|
+
|
|
141
|
+
var _default = getAssetsWithCache;
|
|
142
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.SingletonFetchAssetsAndAppend = void 0;
|
|
7
|
+
|
|
8
|
+
var _appendAssets = _interopRequireDefault(require("./append-assets"));
|
|
9
|
+
|
|
10
|
+
var _getAssetsWithCache = _interopRequireDefault(require("./get-assets-with-cache"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
|
+
|
|
16
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
17
|
+
|
|
18
|
+
var getAssetsAndAppend = /*#__PURE__*/function () {
|
|
19
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
20
|
+
var assets, execute;
|
|
21
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
22
|
+
while (1) {
|
|
23
|
+
switch (_context.prev = _context.next) {
|
|
24
|
+
case 0:
|
|
25
|
+
_context.next = 2;
|
|
26
|
+
return (0, _getAssetsWithCache["default"])();
|
|
27
|
+
|
|
28
|
+
case 2:
|
|
29
|
+
assets = _context.sent;
|
|
30
|
+
execute = new _appendAssets["default"]();
|
|
31
|
+
execute.setAssets(assets);
|
|
32
|
+
return _context.abrupt("return", execute.appendAssetsList());
|
|
33
|
+
|
|
34
|
+
case 6:
|
|
35
|
+
case "end":
|
|
36
|
+
return _context.stop();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, _callee);
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
return function getAssetsAndAppend() {
|
|
43
|
+
return _ref.apply(this, arguments);
|
|
44
|
+
};
|
|
45
|
+
}();
|
|
46
|
+
|
|
47
|
+
var SingletonFetchAssetsAndAppend = function SingletonFetchAssetsAndAppend() {
|
|
48
|
+
var instance;
|
|
49
|
+
return /*#__PURE__*/function () {
|
|
50
|
+
var _Singlenton = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
51
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
52
|
+
while (1) {
|
|
53
|
+
switch (_context2.prev = _context2.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
if (!instance) {
|
|
56
|
+
instance = getAssetsAndAppend();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return _context2.abrupt("return", instance);
|
|
60
|
+
|
|
61
|
+
case 2:
|
|
62
|
+
case "end":
|
|
63
|
+
return _context2.stop();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, _callee2);
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
function Singlenton() {
|
|
70
|
+
return _Singlenton.apply(this, arguments);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return Singlenton;
|
|
74
|
+
}();
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.SingletonFetchAssetsAndAppend = SingletonFetchAssetsAndAppend;
|
|
78
|
+
var _default = SingletonFetchAssetsAndAppend;
|
|
79
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _chart = _interopRequireDefault(require("./components/chart"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _chart["default"];
|
|
13
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getJwtToken = exports["default"] = void 0;
|
|
7
|
+
exports.setToken = setToken;
|
|
8
|
+
|
|
9
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
19
|
+
var requestDomain = function requestDomain() {
|
|
20
|
+
if (!window.location.hostname.match(/dev/)) return "";
|
|
21
|
+
return "".concat(window.location.protocol, "//www.tita.gift");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var tenantId = window.BSGlobal && window.BSGlobal.tenantInfo.Id || 0;
|
|
25
|
+
var userId = window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0;
|
|
26
|
+
|
|
27
|
+
function getToken() {
|
|
28
|
+
return sessionStorage.getItem("DEMOFREE_TOKEN") || "";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function clearToken() {
|
|
32
|
+
sessionStorage.removeItem("DEMOFREE_TOKEN");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function setToken(token) {
|
|
36
|
+
sessionStorage.setItem("DEMOFREE_TOKEN", token);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var getJwtToken = function getJwtToken() {
|
|
40
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/const/skynetToken")).then(function (res) {
|
|
41
|
+
if (res.data.Data) {
|
|
42
|
+
setToken(JSON.parse(res.data.Data.obj).token);
|
|
43
|
+
return JSON.parse(res.data.Data.obj).token;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return "";
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.getJwtToken = getJwtToken;
|
|
51
|
+
|
|
52
|
+
var instance = _axios["default"].create({
|
|
53
|
+
timeout: 10 * 1000
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
var beforeRequest = function beforeRequest(config) {
|
|
57
|
+
var copyConfig = _objectSpread({}, config);
|
|
58
|
+
|
|
59
|
+
copyConfig.headers.authorization = "Bearer ".concat(getToken());
|
|
60
|
+
return copyConfig;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var beforeResponse = function beforeResponse(res) {
|
|
64
|
+
var config = res.config;
|
|
65
|
+
config.retry = 3;
|
|
66
|
+
config.retryCount = config.retryCount || 0;
|
|
67
|
+
|
|
68
|
+
if (window.titaTracker) {
|
|
69
|
+
window.titaTracker("action").record({
|
|
70
|
+
actionName: JSON.stringify(config),
|
|
71
|
+
actionGroup: "调用接口",
|
|
72
|
+
productName: "接口"
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (res.data.code === 401) {
|
|
77
|
+
// 401错误表示未登录授权或者token失效
|
|
78
|
+
clearToken();
|
|
79
|
+
|
|
80
|
+
if (config.retryCount <= config.retry) {
|
|
81
|
+
config.retryCount += 1;
|
|
82
|
+
return getJwtToken().then(function () {
|
|
83
|
+
return instance.request(res.config);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return Promise.reject(res);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return res.data;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var requestError = function requestError(error) {
|
|
94
|
+
return Promise.reject(error);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
instance.interceptors.request.use(beforeRequest, requestError);
|
|
98
|
+
instance.interceptors.response.use(beforeResponse, function (error) {
|
|
99
|
+
throw new Error(error);
|
|
100
|
+
});
|
|
101
|
+
var _default = instance;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -47,8 +47,8 @@ function _getInstance() {
|
|
|
47
47
|
style: {
|
|
48
48
|
top: "36px",
|
|
49
49
|
left: "50%",
|
|
50
|
-
position: "
|
|
51
|
-
// 'transform': 'translate(-50%, 0)'
|
|
50
|
+
position: "fixed",
|
|
51
|
+
// 'transform': 'translate(-50%, 0)',
|
|
52
52
|
borderRadius: 12
|
|
53
53
|
},
|
|
54
54
|
maxCount: 1,
|
|
@@ -90,11 +90,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
90
90
|
while (1) {
|
|
91
91
|
switch (_context.prev = _context.next) {
|
|
92
92
|
case 0:
|
|
93
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
94
|
-
style: {
|
|
95
|
-
position: "fixed"
|
|
96
|
-
}
|
|
97
|
-
};
|
|
93
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
98
94
|
key = (0, _uuid["default"])();
|
|
99
95
|
_context.next = 4;
|
|
100
96
|
return getInstance();
|
|
@@ -136,11 +132,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
136
132
|
while (1) {
|
|
137
133
|
switch (_context2.prev = _context2.next) {
|
|
138
134
|
case 0:
|
|
139
|
-
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {
|
|
140
|
-
style: {
|
|
141
|
-
position: "fixed"
|
|
142
|
-
}
|
|
143
|
-
};
|
|
135
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
144
136
|
key = (0, _uuid["default"])();
|
|
145
137
|
_context2.next = 4;
|
|
146
138
|
return getInstance();
|
|
@@ -181,11 +173,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
181
173
|
while (1) {
|
|
182
174
|
switch (_context3.prev = _context3.next) {
|
|
183
175
|
case 0:
|
|
184
|
-
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {
|
|
185
|
-
style: {
|
|
186
|
-
position: "fixed"
|
|
187
|
-
}
|
|
188
|
-
};
|
|
176
|
+
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
189
177
|
key = (0, _uuid["default"])();
|
|
190
178
|
_context3.next = 4;
|
|
191
179
|
return getInstance();
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
position: absolute;
|
|
38
38
|
width: 100%;
|
|
39
39
|
bottom: 0;
|
|
40
|
-
content:
|
|
40
|
+
content: '';
|
|
41
41
|
border-bottom: 2px solid #2879ff;
|
|
42
42
|
z-index: 1;
|
|
43
43
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
position: absolute;
|
|
52
52
|
width: 100%;
|
|
53
53
|
top: 0;
|
|
54
|
-
content:
|
|
54
|
+
content: '';
|
|
55
55
|
border-top: 2px solid #2879ff;
|
|
56
56
|
z-index: 1;
|
|
57
57
|
}
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
line-height: unset;
|
|
63
63
|
overflow: hidden;
|
|
64
|
+
border-radius: 8px;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
.titaui-tree .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper {
|
|
@@ -501,11 +501,13 @@ var Upload = /*#__PURE__*/function (_PureComponent) {
|
|
|
501
501
|
return Upload;
|
|
502
502
|
}(_react.PureComponent);
|
|
503
503
|
|
|
504
|
-
|
|
504
|
+
Upload.Preview = _uploadedPreview["default"];
|
|
505
505
|
Upload.defaultProps = {
|
|
506
506
|
fileNumLimit: 20,
|
|
507
507
|
fileSizeLimit: 50,
|
|
508
508
|
filesTotal: 50,
|
|
509
509
|
multiple: true,
|
|
510
510
|
attachmentPreviewBox: "MBlog__attachmentViewBox"
|
|
511
|
-
};
|
|
511
|
+
};
|
|
512
|
+
var _default = Upload;
|
|
513
|
+
exports["default"] = _default;
|
|
@@ -22,6 +22,8 @@ var _xls = _interopRequireDefault(require("./img/xls.svg"));
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
24
|
var getFileSize = function getFileSize(fileSize) {
|
|
25
|
+
if (!fileSize) return '';
|
|
26
|
+
|
|
25
27
|
if (fileSize < 1024) {
|
|
26
28
|
return "".concat(fileSize, "B");
|
|
27
29
|
}
|
|
@@ -3,34 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.saveUserPhoto = exports.
|
|
7
|
-
|
|
8
|
-
var _qs = _interopRequireDefault(require("qs"));
|
|
6
|
+
exports.saveUserPhoto = exports.saveTenantLogo = exports.saveBrowserIcon = exports.getUserInfoFun = void 0;
|
|
9
7
|
|
|
10
8
|
var _request = require("../../utils/request");
|
|
11
9
|
|
|
12
10
|
var _bsGlobal = require("../../utils/bs-global");
|
|
13
11
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
12
|
var getUserInfoFun = function getUserInfoFun() {
|
|
17
13
|
return (0, _request.rpost)("v1")("manage/user/profile?toUserId=".concat((0, _bsGlobal.getUserInfo)().Id));
|
|
18
14
|
};
|
|
19
15
|
|
|
20
16
|
exports.getUserInfoFun = getUserInfoFun;
|
|
21
17
|
|
|
22
|
-
var saveUserInfo = function saveUserInfo(_ref) {
|
|
23
|
-
var data = _ref.data;
|
|
24
|
-
return (0, _request.rput)("v1")("manage/user/update", data, {
|
|
25
|
-
headers: {
|
|
26
|
-
"Content-Type": "multipart/form-data"
|
|
27
|
-
},
|
|
28
|
-
transformRequest: _qs["default"].stringify
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.saveUserInfo = saveUserInfo;
|
|
33
|
-
|
|
34
18
|
var saveUserPhoto = function saveUserPhoto(params) {
|
|
35
19
|
return (0, _request.rpost)("v1")("manage/user/avatar", params, {
|
|
36
20
|
headers: {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
.add-group {
|
|
16
16
|
display: inline-block;
|
|
17
|
-
color: #
|
|
17
|
+
color: #2879ff;
|
|
18
18
|
font-size: 14px;
|
|
19
|
-
border: 1px solid #
|
|
19
|
+
border: 1px solid #2879ff;
|
|
20
20
|
background: #fff;
|
|
21
21
|
border-radius: 2px;
|
|
22
22
|
margin-top: 8px;
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.add-group:hover {
|
|
27
|
-
color: #
|
|
28
|
-
border-color: #
|
|
27
|
+
color: #5c8eff;
|
|
28
|
+
border-color: #5c8eff;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.empty-tip {
|
|
32
32
|
font-size: 14px;
|
|
33
|
-
margin:
|
|
34
|
-
color: #
|
|
33
|
+
margin: 10px auto;
|
|
34
|
+
color: #6f7886;
|
|
35
35
|
text-align: center;
|
|
36
36
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
.persel-selected-panel__result-clear {
|
|
21
21
|
float: right;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
color: #
|
|
23
|
+
color: #2879ff;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.persel-selected-panel__content {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
.persel-selected-panel .empty-tip {
|
|
34
34
|
font-size: 14px;
|
|
35
|
-
margin:
|
|
36
|
-
color: #
|
|
35
|
+
margin: 10px auto;
|
|
36
|
+
color: #6f7886;
|
|
37
37
|
text-align: center;
|
|
38
38
|
}
|