@lm_fe/core 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/a_chunks/index.js +168 -83
- package/dist/env/NewListPage.d.ts +2 -0
- package/dist/env/index.d.ts +1 -5
- package/dist/env/tasks/index.d.ts +3 -1
- package/dist/index.js +2 -2
- package/package.json +11 -11
- package/dist/a_chunks/{.root.js → core.src.env.js} +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# yargs-parser +4+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
The mighty option parser used by.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm i yargs-parser --save
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
**Node.js:**
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import parser from 'yargs-parser'
|
|
21
|
+
|
|
22
|
+
const argv = parser('--foo=99 --bar=9987930', {
|
|
23
|
+
string: ['bar']
|
|
24
|
+
})
|
|
25
|
+
console.log(argv)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
ISC
|
package/dist/a_chunks/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
import
|
|
4
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
5
5
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
6
|
-
var _excluded = ["
|
|
7
|
-
_excluded2 = ["type"]
|
|
6
|
+
var _excluded = ["key_name", "parentid"],
|
|
7
|
+
_excluded2 = ["type"],
|
|
8
|
+
_excluded3 = ["type"];
|
|
8
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
12
|
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
|
|
12
13
|
import { OkButton, MyIcon, MyLazyComponent, MountMchcModal as MountMchcModal$1 } from '@lm_fe/components_m';
|
|
13
|
-
import {
|
|
14
|
-
import { mchcModal__, MountMchcModal } from '@lm_fe/pages';
|
|
14
|
+
import { mchcEnv, mchcConfig, mchcEvent, mchcUtils, mchcMacro, mchcLogger, mchcBoot, mchcDriver, mchcRouterContainer__, MchcRouterContainer } from '@lm_fe/env';
|
|
15
|
+
import { mchcModal__, safe_navigate, MountMchcModal } from '@lm_fe/pages';
|
|
15
16
|
import { fubaoRoutes } from '@lm_fe/pages-fubao';
|
|
16
17
|
import { mchcRoutes } from '@lm_fe/pages-mchc';
|
|
17
18
|
import { SMchc_Common, SLocal_Version, SMchc_User } from '@lm_fe/service';
|
|
18
19
|
import { request, AppEnv, appEnv, assign, shake, makeEventStore } from '@lm_fe/utils';
|
|
19
|
-
import React, {
|
|
20
|
+
import React, { useEffect, useState, useRef } from 'react';
|
|
20
21
|
import ReactDOM from 'react-dom/client';
|
|
21
|
-
import {
|
|
22
|
-
import { use_provoke } from '@lm_fe/provoke';
|
|
22
|
+
import { useHistory, BrowserRouter } from 'react-router-dom';
|
|
23
23
|
import { Space, Modal, message, notification, theme, ConfigProvider } from 'antd';
|
|
24
24
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
25
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
25
26
|
var isImplemented$1 = function isImplemented() {
|
|
26
27
|
return Object.prototype.hasOwnProperty.call(Node.prototype, 'getRootNode');
|
|
27
28
|
};
|
|
@@ -111,6 +112,94 @@ var styles = {
|
|
|
111
112
|
"pull-icon": "ReloadButton-module_pull-icon__ir6lr"
|
|
112
113
|
};
|
|
113
114
|
styleInject(css_248z);
|
|
115
|
+
var NewListPage = function NewListPage(props) {
|
|
116
|
+
useEffect(function () {}, []);
|
|
117
|
+
return /*#__PURE__*/React.createElement(OkButton, {
|
|
118
|
+
btn_text: "\u65B0\u589E\u5217\u8868\u9875",
|
|
119
|
+
size: 'small',
|
|
120
|
+
type: 'primary',
|
|
121
|
+
onClick: function onClick() {
|
|
122
|
+
mchcModal__.open('modal_form', {
|
|
123
|
+
width: '20vw',
|
|
124
|
+
styles: {
|
|
125
|
+
body: {
|
|
126
|
+
height: '20vh'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
modal_data: {
|
|
130
|
+
targetLabelCol: 6,
|
|
131
|
+
onSubmit: function onSubmit(_ref, old_data) {
|
|
132
|
+
return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
133
|
+
var key_name, parentid, others, key, res;
|
|
134
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
135
|
+
while (1) switch (_context.prev = _context.next) {
|
|
136
|
+
case 0:
|
|
137
|
+
key_name = _ref.key_name, parentid = _ref.parentid, others = _objectWithoutProperties(_ref, _excluded);
|
|
138
|
+
key = "/happy/config-table/list2/".concat(key_name);
|
|
139
|
+
_context.next = 4;
|
|
140
|
+
return request.get('/api/permissions', {
|
|
141
|
+
params: {
|
|
142
|
+
'key.equals': key
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
case 4:
|
|
146
|
+
res = _context.sent;
|
|
147
|
+
if (!res.data.length) {
|
|
148
|
+
_context.next = 8;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
mchcEnv.warning('已存在');
|
|
152
|
+
return _context.abrupt("return");
|
|
153
|
+
case 8:
|
|
154
|
+
_context.next = 10;
|
|
155
|
+
return request.post('/api/permissions', _objectSpread({
|
|
156
|
+
key: key,
|
|
157
|
+
parentid: parentid !== null && parentid !== void 0 ? parentid : 0,
|
|
158
|
+
type: 'route'
|
|
159
|
+
}, others));
|
|
160
|
+
case 10:
|
|
161
|
+
safe_navigate(key);
|
|
162
|
+
case 11:
|
|
163
|
+
case "end":
|
|
164
|
+
return _context.stop();
|
|
165
|
+
}
|
|
166
|
+
}, _callee);
|
|
167
|
+
}))();
|
|
168
|
+
},
|
|
169
|
+
formDescriptions: [{
|
|
170
|
+
inputType: 'MA',
|
|
171
|
+
name: 'key_name',
|
|
172
|
+
label: '配置标识',
|
|
173
|
+
required: true,
|
|
174
|
+
layout: '1'
|
|
175
|
+
}, {
|
|
176
|
+
inputType: 'MA',
|
|
177
|
+
name: 'name',
|
|
178
|
+
label: '菜单标题',
|
|
179
|
+
required: true,
|
|
180
|
+
layout: '1'
|
|
181
|
+
}, {
|
|
182
|
+
inputType: 'MS',
|
|
183
|
+
name: 'parentid',
|
|
184
|
+
label: '菜单父级',
|
|
185
|
+
layout: '1',
|
|
186
|
+
inputProps: {
|
|
187
|
+
marshal: 0,
|
|
188
|
+
fetch_options: {
|
|
189
|
+
url: '/api/permissions?size=999&parentid.equals=0&active.equals=true&type.equals=menu',
|
|
190
|
+
valueKey: 'id',
|
|
191
|
+
labelKey: 'name'
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}]
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
icon: /*#__PURE__*/React.createElement(MyIcon, {
|
|
199
|
+
value: 'SettingOutlined'
|
|
200
|
+
})
|
|
201
|
+
});
|
|
202
|
+
};
|
|
114
203
|
var ReloadButton = function ReloadButton(props) {
|
|
115
204
|
var sys_theme = use_provoke(function (s) {
|
|
116
205
|
return s.sys_theme;
|
|
@@ -155,7 +244,7 @@ var ReloadButton = function ReloadButton(props) {
|
|
|
155
244
|
icon: /*#__PURE__*/React.createElement(MyIcon, {
|
|
156
245
|
value: 'SettingOutlined'
|
|
157
246
|
})
|
|
158
|
-
}, "\u7CFB\u7EDF\u914D\u7F6E") : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(OkButton, {
|
|
247
|
+
}, "\u7CFB\u7EDF\u914D\u7F6E") : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(NewListPage, null) : null, mchcEnv.isAdmin ? /*#__PURE__*/React.createElement(OkButton, {
|
|
159
248
|
title: "\u914D\u7F6E\u7EC3\u4E60",
|
|
160
249
|
size: 'small',
|
|
161
250
|
type: 'primary',
|
|
@@ -268,13 +357,38 @@ function newVersionHandler() {
|
|
|
268
357
|
onClose: close
|
|
269
358
|
});
|
|
270
359
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
360
|
+
function use_task() {
|
|
361
|
+
var disabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
362
|
+
var _use_provoke = use_provoke(),
|
|
363
|
+
fetch_user = _use_provoke.fetch_user,
|
|
364
|
+
fetch_sys_config = _use_provoke.fetch_sys_config,
|
|
365
|
+
sys_theme = _use_provoke.sys_theme;
|
|
366
|
+
var history = useHistory();
|
|
367
|
+
useEffect(function () {
|
|
368
|
+
mchcUtils.setGlobalHistory(function () {
|
|
369
|
+
return history;
|
|
370
|
+
});
|
|
371
|
+
fetch_user_info();
|
|
372
|
+
fetch_sys_config();
|
|
373
|
+
}, []);
|
|
374
|
+
function fetch_user_info() {
|
|
375
|
+
var in_login_page = location.pathname.includes('/login');
|
|
376
|
+
if (!mchcEnv.is_single) fetch_user().then(function () {
|
|
377
|
+
if (in_login_page) mchcEnv.reload('/');
|
|
378
|
+
})["catch"](function (e) {});
|
|
379
|
+
}
|
|
380
|
+
useEffect(function () {
|
|
381
|
+
if (!disabled) {
|
|
382
|
+
var minute = 60 * 1000;
|
|
383
|
+
setInterval(fetch_user_info, 5 * minute);
|
|
384
|
+
setInterval(checkVersion, 2 * minute);
|
|
385
|
+
setInterval(checkLogin, .5 * minute);
|
|
386
|
+
}
|
|
387
|
+
return function () {};
|
|
388
|
+
}, []);
|
|
389
|
+
return {
|
|
390
|
+
sys_theme: sys_theme
|
|
391
|
+
};
|
|
278
392
|
}
|
|
279
393
|
var PUBLIC_PATH = mchcMacro.PUBLIC_PATH,
|
|
280
394
|
HOST_URL = mchcMacro.HOST_URL,
|
|
@@ -356,23 +470,23 @@ function MessageHolder() {
|
|
|
356
470
|
notiApi = _notification$useNoti2[0],
|
|
357
471
|
notiHolder = _notification$useNoti2[1];
|
|
358
472
|
useEffect(function () {
|
|
359
|
-
var rm1 = mchcEvent.on_rm('toast', function (
|
|
360
|
-
var msg =
|
|
361
|
-
type =
|
|
362
|
-
duration =
|
|
363
|
-
cb =
|
|
473
|
+
var rm1 = mchcEvent.on_rm('toast', function (_ref2) {
|
|
474
|
+
var msg = _ref2.msg,
|
|
475
|
+
type = _ref2.type,
|
|
476
|
+
duration = _ref2.duration,
|
|
477
|
+
cb = _ref2.cb;
|
|
364
478
|
messageApi[type](msg, duration, cb);
|
|
365
479
|
});
|
|
366
480
|
var rm2 = mchcEvent.on_rm('confirm', function (e) {
|
|
367
481
|
mchcLogger.log('confirm', e);
|
|
368
482
|
var type = e.type,
|
|
369
|
-
modal_props = _objectWithoutProperties(e,
|
|
483
|
+
modal_props = _objectWithoutProperties(e, _excluded2);
|
|
370
484
|
modalApi[type](modal_props);
|
|
371
485
|
});
|
|
372
486
|
var rm3 = mchcEvent.on_rm('notify', function (e) {
|
|
373
487
|
mchcLogger.log('notify', e);
|
|
374
488
|
var type = e.type,
|
|
375
|
-
modal_props = _objectWithoutProperties(e,
|
|
489
|
+
modal_props = _objectWithoutProperties(e, _excluded3);
|
|
376
490
|
notiApi[type](modal_props);
|
|
377
491
|
});
|
|
378
492
|
return function () {
|
|
@@ -401,7 +515,7 @@ function theme_config(sys_theme) {
|
|
|
401
515
|
labelFontSize = sys_theme.labelFontSize;
|
|
402
516
|
var algorithm = [];
|
|
403
517
|
if (cus_fontBold) {
|
|
404
|
-
import('
|
|
518
|
+
import('./core.src.env.js');
|
|
405
519
|
}
|
|
406
520
|
if (darkTheme) {
|
|
407
521
|
algorithm.push(theme.darkAlgorithm);
|
|
@@ -480,27 +594,27 @@ function passwordLogin(_x) {
|
|
|
480
594
|
return _passwordLogin.apply(this, arguments);
|
|
481
595
|
}
|
|
482
596
|
function _passwordLogin() {
|
|
483
|
-
_passwordLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
597
|
+
_passwordLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
|
|
484
598
|
var user;
|
|
485
|
-
return _regeneratorRuntime.wrap(function
|
|
486
|
-
while (1) switch (
|
|
599
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
600
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
487
601
|
case 0:
|
|
488
|
-
|
|
602
|
+
_context2.next = 2;
|
|
489
603
|
return SMchc_Common.fk_login(data);
|
|
490
604
|
case 2:
|
|
491
|
-
|
|
605
|
+
_context2.next = 4;
|
|
492
606
|
return SMchc_User.getOne(data.username);
|
|
493
607
|
case 4:
|
|
494
|
-
user =
|
|
608
|
+
user = _context2.sent;
|
|
495
609
|
globalStore.bus.data = {
|
|
496
610
|
user: user,
|
|
497
611
|
loggedIn: true
|
|
498
612
|
};
|
|
499
613
|
case 6:
|
|
500
614
|
case "end":
|
|
501
|
-
return
|
|
615
|
+
return _context2.stop();
|
|
502
616
|
}
|
|
503
|
-
},
|
|
617
|
+
}, _callee2);
|
|
504
618
|
}));
|
|
505
619
|
return _passwordLogin.apply(this, arguments);
|
|
506
620
|
}
|
|
@@ -508,9 +622,9 @@ function logout() {
|
|
|
508
622
|
return _logout.apply(this, arguments);
|
|
509
623
|
}
|
|
510
624
|
function _logout() {
|
|
511
|
-
_logout = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
512
|
-
return _regeneratorRuntime.wrap(function
|
|
513
|
-
while (1) switch (
|
|
625
|
+
_logout = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
626
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
627
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
514
628
|
case 0:
|
|
515
629
|
appEnv.removeToken();
|
|
516
630
|
globalStore.bus.data = {
|
|
@@ -519,9 +633,9 @@ function _logout() {
|
|
|
519
633
|
};
|
|
520
634
|
case 2:
|
|
521
635
|
case "end":
|
|
522
|
-
return
|
|
636
|
+
return _context3.stop();
|
|
523
637
|
}
|
|
524
|
-
},
|
|
638
|
+
}, _callee3);
|
|
525
639
|
}));
|
|
526
640
|
return _logout.apply(this, arguments);
|
|
527
641
|
}
|
|
@@ -529,20 +643,19 @@ function boot(_x2) {
|
|
|
529
643
|
return _boot.apply(this, arguments);
|
|
530
644
|
}
|
|
531
645
|
function _boot() {
|
|
532
|
-
_boot = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function
|
|
533
|
-
var
|
|
534
|
-
return _regeneratorRuntime.wrap(function
|
|
535
|
-
while (1) switch (
|
|
646
|
+
_boot = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(config) {
|
|
647
|
+
var name, app, App, _config$routesData, routesData, taskDisabled, store, r_node, _app;
|
|
648
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
649
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
536
650
|
case 0:
|
|
537
|
-
|
|
538
|
-
|
|
651
|
+
name = config.name, app = config.app, App = config.App, _config$routesData = config.routesData, routesData = _config$routesData === void 0 ? {} : _config$routesData, taskDisabled = config.taskDisabled, store = config.store;
|
|
652
|
+
_context4.next = 3;
|
|
539
653
|
return mchcBoot({
|
|
540
654
|
name: name,
|
|
541
655
|
store: store
|
|
542
656
|
});
|
|
543
657
|
case 3:
|
|
544
658
|
mchcDriver.connect();
|
|
545
|
-
if (!taskDisabled) runTask();
|
|
546
659
|
mchcRouterContainer__.init(routesData, mchcRoutes, fubaoRoutes);
|
|
547
660
|
r_node = App ? /*#__PURE__*/React.createElement(App, {
|
|
548
661
|
routerContainer: mchcRouterContainer__
|
|
@@ -551,50 +664,22 @@ function _boot() {
|
|
|
551
664
|
ReactDOM.createRoot(document.getElementById('root')).render(/*#__PURE__*/React.createElement(BrowserRouter, {
|
|
552
665
|
basename: mchcMacro.PUBLIC_PATH
|
|
553
666
|
}, /*#__PURE__*/React.createElement(Shell, {
|
|
554
|
-
node: _app
|
|
667
|
+
node: _app,
|
|
668
|
+
taskDisabled: taskDisabled
|
|
555
669
|
})));
|
|
556
|
-
case
|
|
670
|
+
case 8:
|
|
557
671
|
case "end":
|
|
558
|
-
return
|
|
672
|
+
return _context4.stop();
|
|
559
673
|
}
|
|
560
|
-
},
|
|
674
|
+
}, _callee4);
|
|
561
675
|
}));
|
|
562
676
|
return _boot.apply(this, arguments);
|
|
563
677
|
}
|
|
564
678
|
function Shell(props) {
|
|
565
|
-
var node = props.node
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
fetch_sys_config = _use_provoke.fetch_sys_config,
|
|
570
|
-
sys_theme = _use_provoke.sys_theme;
|
|
571
|
-
var history = useHistory();
|
|
572
|
-
useEffect(function () {
|
|
573
|
-
mchcUtils.setGlobalHistory(function () {
|
|
574
|
-
return history;
|
|
575
|
-
});
|
|
576
|
-
var in_login_page = location.pathname.includes('/login');
|
|
577
|
-
if (!mchcEnv.isSp || __DEV__) fetch_user().then(function () {
|
|
578
|
-
if (in_login_page) mchcEnv.reload('/');
|
|
579
|
-
})["catch"](function (e) {
|
|
580
|
-
// if (!in_login_page)
|
|
581
|
-
// mchcEnv.logout()
|
|
582
|
-
});
|
|
583
|
-
// if (location.pathname.startsWith('/login')) {
|
|
584
|
-
// if (user_info)
|
|
585
|
-
// mchcEnv.reload('/')
|
|
586
|
-
// } else {
|
|
587
|
-
// if (user_info) {
|
|
588
|
-
// } else {
|
|
589
|
-
// alert('to login')
|
|
590
|
-
// mchcEnv.logout_clean('/login')
|
|
591
|
-
// }
|
|
592
|
-
// }
|
|
593
|
-
}, []);
|
|
594
|
-
useEffect(function () {
|
|
595
|
-
fetch_sys_config();
|
|
596
|
-
return function () {};
|
|
597
|
-
}, []);
|
|
679
|
+
var node = props.node,
|
|
680
|
+
taskDisabled = props.taskDisabled;
|
|
681
|
+
var _use_task = use_task(taskDisabled),
|
|
682
|
+
sys_theme = _use_task.sys_theme;
|
|
598
683
|
return /*#__PURE__*/React.createElement(StyleProvider, {
|
|
599
684
|
hashPriority: "high",
|
|
600
685
|
transformers: [legacyLogicalPropertiesTransformer]
|
|
@@ -648,4 +733,4 @@ var mchc_event = set_global_ret(mchcEvent, 'mchc_event');
|
|
|
648
733
|
var mchc_routes = set_global_ret(mchcRoutes, 'mchc_routes');
|
|
649
734
|
var mchc_routes_container = set_global_ret(mchcRouterContainer__, 'mchc_routes_container');
|
|
650
735
|
var Mchc_Router_Container = set_global_ret(MchcRouterContainer, 'Mchc_Router_Container');
|
|
651
|
-
export { Mchc_Router_Container as M,
|
|
736
|
+
export { Mchc_Router_Container as M, mchc_modal as a, boot as b, mchc_macro as c, mchc_event as d, mchc_routes as e, mchc_routes_container as f, globalStore as g, logout as l, mchc_env as m, passwordLogin as p, styleInject as s, useEventStore as u };
|
package/dist/env/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MchcRouterContainer, MchcTypes } from "@lm_fe/env";
|
|
2
2
|
import { IMchc_User, SMchc_Common } from "@lm_fe/service";
|
|
3
3
|
import { AnyObject } from "@lm_fe/utils";
|
|
4
|
-
import
|
|
4
|
+
import { FC, ReactNode } from 'react';
|
|
5
5
|
import { Store } from 'redux';
|
|
6
6
|
import './init';
|
|
7
7
|
export interface IGlobalStoreData {
|
|
@@ -17,11 +17,7 @@ export declare function boot(config: {
|
|
|
17
17
|
App?: FC<{
|
|
18
18
|
routerContainer?: MchcRouterContainer;
|
|
19
19
|
}>;
|
|
20
|
-
scriptUrl?: any;
|
|
21
20
|
name?: MchcTypes;
|
|
22
21
|
taskDisabled?: boolean;
|
|
23
22
|
routesData?: AnyObject;
|
|
24
23
|
}): Promise<void>;
|
|
25
|
-
export declare function Shell(props: {
|
|
26
|
-
node: ReactNode;
|
|
27
|
-
}): React.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as Mchc_Router_Container,
|
|
1
|
+
export { M as Mchc_Router_Container, b as boot, g as globalStore, l as logout, m as mchc_env, d as mchc_event, c as mchc_macro, a as mchc_modal, e as mchc_routes, f as mchc_routes_container, p as passwordLogin, u as useEventStore } from './a_chunks/index.js';
|
|
2
2
|
import '@ant-design/cssinjs';
|
|
3
3
|
import '@lm_fe/components_m';
|
|
4
4
|
import '@lm_fe/env';
|
|
@@ -10,6 +10,6 @@ import '@lm_fe/utils';
|
|
|
10
10
|
import 'react';
|
|
11
11
|
import 'react-dom/client';
|
|
12
12
|
import 'react-router-dom';
|
|
13
|
-
import '@lm_fe/provoke';
|
|
14
13
|
import 'antd';
|
|
15
14
|
import 'antd/lib/locale/zh_CN';
|
|
15
|
+
import '@lm_fe/provoke';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lm_fe/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@lm_fe/components": "0.2.
|
|
43
|
-
"@lm_fe/components_m": "0.2.
|
|
44
|
-
"@lm_fe/env": "0.2.
|
|
45
|
-
"@lm_fe/pages": "0.2.
|
|
46
|
-
"@lm_fe/pages-fubao": "0.2.
|
|
47
|
-
"@lm_fe/pages-mchc": "0.2.
|
|
48
|
-
"@lm_fe/provoke": "0.2.
|
|
42
|
+
"@lm_fe/components": "^0.2.5",
|
|
43
|
+
"@lm_fe/components_m": "^0.2.5",
|
|
44
|
+
"@lm_fe/env": "^0.2.5",
|
|
45
|
+
"@lm_fe/pages": "^0.2.5",
|
|
46
|
+
"@lm_fe/pages-fubao": "^0.2.5",
|
|
47
|
+
"@lm_fe/pages-mchc": "^0.2.5",
|
|
48
|
+
"@lm_fe/provoke": "^0.2.5",
|
|
49
49
|
"@lm_fe/scripts": "*",
|
|
50
|
-
"@lm_fe/service": "0.2.
|
|
51
|
-
"@lm_fe/utils": "0.2.
|
|
50
|
+
"@lm_fe/service": "^0.2.5",
|
|
51
|
+
"@lm_fe/utils": "^0.2.5"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "41645962e95f6657643e6c6cb16320dd78f4cfcd"
|
|
54
54
|
}
|
|
@@ -10,9 +10,9 @@ import '@lm_fe/utils';
|
|
|
10
10
|
import 'react';
|
|
11
11
|
import 'react-dom/client';
|
|
12
12
|
import 'react-router-dom';
|
|
13
|
-
import '@lm_fe/provoke';
|
|
14
13
|
import 'antd';
|
|
15
14
|
import 'antd/lib/locale/zh_CN';
|
|
15
|
+
import '@lm_fe/provoke';
|
|
16
16
|
var css_248z = "td,\nth,\nspan,\ntd,\ndiv,\ninput,\ntextarea,\nbutton {\n font-weight: bold !important;\n}\n";
|
|
17
17
|
var stylesheet = "td,\nth,\nspan,\ntd,\ndiv,\ninput,\ntextarea,\nbutton {\n font-weight: bold !important;\n}\n";
|
|
18
18
|
styleInject(css_248z);
|