antd-management-fast-develop 1.1.23 → 1.1.24

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/src/.umi/umi.ts DELETED
@@ -1,76 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import './core/polyfill';
5
-
6
- import { renderClient } from 'E:/project/my/antd-management-fast-framework/node_modules/.pnpm/@umijs+renderer-react@4.0.79(react-dom@18.1.0)(react@18.1.0)/node_modules/@umijs/renderer-react';
7
- import { getRoutes } from './core/route';
8
- import { createPluginManager } from './core/plugin';
9
- import { createHistory } from './core/history';
10
- import { ApplyPluginsType } from 'umi';
11
-
12
-
13
- const publicPath = "/";
14
- const runtimePublicPath = false;
15
-
16
- async function render() {
17
- const pluginManager = createPluginManager();
18
- const { routes, routeComponents } = await getRoutes(pluginManager);
19
-
20
- // allow user to extend routes
21
- await pluginManager.applyPlugins({
22
- key: 'patchRoutes',
23
- type: ApplyPluginsType.event,
24
- args: {
25
- routes,
26
- routeComponents,
27
- },
28
- });
29
-
30
- const contextOpts = pluginManager.applyPlugins({
31
- key: 'modifyContextOpts',
32
- type: ApplyPluginsType.modify,
33
- initialValue: {},
34
- });
35
-
36
- const basename = contextOpts.basename || '/';
37
- const historyType = contextOpts.historyType || 'browser';
38
-
39
- const history = createHistory({
40
- type: historyType,
41
- basename,
42
- ...contextOpts.historyOpts,
43
- });
44
-
45
- return (pluginManager.applyPlugins({
46
- key: 'render',
47
- type: ApplyPluginsType.compose,
48
- initialValue() {
49
- const context = {
50
- routes,
51
- routeComponents,
52
- pluginManager,
53
- rootElement: contextOpts.rootElement || document.getElementById('root'),
54
- publicPath,
55
- runtimePublicPath,
56
- history,
57
- historyType,
58
- basename,
59
- callback: contextOpts.callback,
60
- };
61
- const modifiedContext = pluginManager.applyPlugins({
62
- key: 'modifyClientRenderOpts',
63
- type: ApplyPluginsType.modify,
64
- initialValue: context,
65
- });
66
- return renderClient(modifiedContext);
67
- },
68
- }))();
69
- }
70
-
71
-
72
- render();
73
-
74
- window.g_umi = {
75
- version: '4.0.79',
76
- };