antd-management-fast-develop 1.1.23 → 1.1.27

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.
@@ -1,37 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- let count = 0;
5
- let groupLevel = 0;
6
- function send(type: string, message?: string) {
7
- if(process.env.NODE_ENV==='production'){
8
- return;
9
- }else{
10
- const encodedMessage = message ? `&m=${encodeURI(message)}` : '';
11
- fetch(`/__umi/api/terminal?type=${type}&t=${Date.now()}&c=${count++}&g=${groupLevel}${encodedMessage}`, { mode: 'no-cors' })
12
- }
13
- }
14
- function prettyPrint(obj: any) {
15
- return JSON.stringify(obj, null, 2);
16
- }
17
- function stringifyObjs(objs: any[]) {
18
- const obj = objs.length > 1 ? objs.map(stringify).join(' ') : objs[0];
19
- return typeof obj === 'object' ? `${prettyPrint(obj)}` : obj.toString();
20
- }
21
- function stringify(obj: any) {
22
- return typeof obj === 'object' ? `${JSON.stringify(obj)}` : obj.toString();
23
- }
24
- const terminal = {
25
- log(...objs: any[]) { send('log', stringifyObjs(objs)) },
26
- info(...objs: any[]) { send('info', stringifyObjs(objs)) },
27
- warn(...objs: any[]) { send('warn', stringifyObjs(objs)) },
28
- error(...objs: any[]) { send('error', stringifyObjs(objs)) },
29
- group() { groupLevel++ },
30
- groupCollapsed() { groupLevel++ },
31
- groupEnd() { groupLevel && --groupLevel },
32
- clear() { send('clear') },
33
- trace(...args: any[]) { console.trace(...args) },
34
- profile(...args: any[]) { console.profile(...args) },
35
- profileEnd(...args: any[]) { console.profileEnd(...args) },
36
- };
37
- export { terminal };
@@ -1,16 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- export { defineApp } from './core/defineApp'
5
- export type { RuntimeConfig } from './core/defineApp'
6
- // @umijs/renderer-*
7
- export { createBrowserHistory, createHashHistory, createMemoryHistory, Helmet, HelmetProvider, createSearchParams, generatePath, matchPath, matchRoutes, Navigate, NavLink, Outlet, resolvePath, useLocation, useMatch, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, useSearchParams, useAppData, useClientLoaderData, useRouteProps, useSelectedRoutes, useServerLoaderData, renderClient, __getRoot, Link, useRouteData, __useFetcher, withRouter } 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';
8
- export type { History } 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'
9
- // umi/client/client/plugin
10
- export { ApplyPluginsType, PluginManager } from 'E:/project/my/antd-management-fast-framework/node_modules/.pnpm/umi@4.0.79(@babel+core@7.22.15)(@types+node@20.5.9_wcqfrsvatzft7y5yqifmdn6fly/node_modules/umi/client/client/plugin.js';
11
- export { history, createHistory } from './core/history';
12
- export { terminal } from './core/terminal';
13
- export { TestBrowser } from './testBrowser';
14
- export const useServerInsertedHTML: Function = () => {};
15
- // plugins
16
- // plugins types.d.ts
@@ -1,87 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import React, { useEffect, useState } from 'react';
5
- import { ApplyPluginsType } from 'umi';
6
- import { renderClient, RenderClientOpts } 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 { createHistory } from './core/history';
8
- import { createPluginManager } from './core/plugin';
9
- import { getRoutes } from './core/route';
10
- import type { Location } from 'history';
11
-
12
-
13
- const publicPath = '/';
14
- const runtimePublicPath = false;
15
-
16
- type TestBrowserProps = {
17
- location?: Partial<Location>;
18
- historyRef?: React.MutableRefObject<Location>;
19
- };
20
-
21
- export function TestBrowser(props: TestBrowserProps) {
22
- const pluginManager = createPluginManager();
23
- const [context, setContext] = useState<RenderClientOpts | undefined>(
24
- undefined
25
- );
26
- useEffect(() => {
27
- const genContext = async () => {
28
- const { routes, routeComponents } = await getRoutes(pluginManager);
29
- // allow user to extend routes
30
- await pluginManager.applyPlugins({
31
- key: 'patchRoutes',
32
- type: ApplyPluginsType.event,
33
- args: {
34
- routes,
35
- routeComponents,
36
- },
37
- });
38
- const contextOpts = pluginManager.applyPlugins({
39
- key: 'modifyContextOpts',
40
- type: ApplyPluginsType.modify,
41
- initialValue: {},
42
- });
43
- const basename = contextOpts.basename || '/';
44
- const history = createHistory({
45
- type: 'memory',
46
- basename,
47
- });
48
- const context = {
49
- routes,
50
- routeComponents,
51
- pluginManager,
52
- rootElement: contextOpts.rootElement || document.getElementById('root'),
53
- publicPath,
54
- runtimePublicPath,
55
- history,
56
- basename,
57
- components: true,
58
- };
59
- const modifiedContext = pluginManager.applyPlugins({
60
- key: 'modifyClientRenderOpts',
61
- type: ApplyPluginsType.modify,
62
- initialValue: context,
63
- });
64
- return modifiedContext;
65
- };
66
- genContext().then((context) => {
67
- setContext(context);
68
- if (props.location) {
69
- context?.history?.push(props.location);
70
- }
71
- if (props.historyRef) {
72
- props.historyRef.current = context?.history;
73
- }
74
- });
75
- }, []);
76
-
77
- if (context === undefined) {
78
- return <div id="loading" />;
79
- }
80
-
81
- const Children = renderClient(context);
82
- return (
83
- <React.Fragment>
84
- <Children />
85
- </React.Fragment>
86
- );
87
- }
@@ -1,43 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "lib": [
6
- "dom",
7
- "dom.iterable",
8
- "esnext"
9
- ],
10
- "allowJs": true,
11
- "skipLibCheck": true,
12
- "moduleResolution": "bundler",
13
- "importHelpers": true,
14
- "noEmit": true,
15
- "jsx": "react-jsx",
16
- "esModuleInterop": true,
17
- "sourceMap": true,
18
- "baseUrl": "../../",
19
- "strict": true,
20
- "resolveJsonModule": true,
21
- "allowSyntheticDefaultImports": true,
22
- "paths": {
23
- "@/*": [
24
- "src/*"
25
- ],
26
- "@@/*": [
27
- "src/.umi/*"
28
- ],
29
- "@umijs/max": [
30
- "E:\\project\\my\\antd-management-fast-framework\\node_modules\\.pnpm\\umi@4.0.79(@babel+core@7.22.15)(@types+node@20.5.9_wcqfrsvatzft7y5yqifmdn6fly\\node_modules\\umi"
31
- ],
32
- "@umijs/max/typings": [
33
- "src/.umi/typings"
34
- ]
35
- }
36
- },
37
- "include": [
38
- "../../.umirc.ts",
39
- "../../**/*.d.ts",
40
- "../../**/*.ts",
41
- "../../**/*.tsx"
42
- ]
43
- }
@@ -1,136 +0,0 @@
1
- // This file is generated by Umi automatically
2
- // DO NOT CHANGE IT MANUALLY!
3
- type CSSModuleClasses = { readonly [key: string]: string }
4
- declare module '*.css' {
5
- const classes: CSSModuleClasses
6
- export default classes
7
- }
8
- declare module '*.scss' {
9
- const classes: CSSModuleClasses
10
- export default classes
11
- }
12
- declare module '*.sass' {
13
- const classes: CSSModuleClasses
14
- export default classes
15
- }
16
- declare module '*.less' {
17
- const classes: CSSModuleClasses
18
- export default classes
19
- }
20
- declare module '*.styl' {
21
- const classes: CSSModuleClasses
22
- export default classes
23
- }
24
- declare module '*.stylus' {
25
- const classes: CSSModuleClasses
26
- export default classes
27
- }
28
-
29
- // images
30
- declare module '*.jpg' {
31
- const src: string
32
- export default src
33
- }
34
- declare module '*.jpeg' {
35
- const src: string
36
- export default src
37
- }
38
- declare module '*.png' {
39
- const src: string
40
- export default src
41
- }
42
- declare module '*.gif' {
43
- const src: string
44
- export default src
45
- }
46
- declare module '*.svg' {
47
- import * as React from 'react';
48
- export const ReactComponent: React.FunctionComponent<React.SVGProps<
49
- SVGSVGElement
50
- > & { title?: string }>;
51
-
52
- const src: string
53
- export default src
54
- }
55
- declare module '*.ico' {
56
- const src: string
57
- export default src
58
- }
59
- declare module '*.webp' {
60
- const src: string
61
- export default src
62
- }
63
- declare module '*.avif' {
64
- const src: string
65
- export default src
66
- }
67
-
68
- // media
69
- declare module '*.mp4' {
70
- const src: string
71
- export default src
72
- }
73
- declare module '*.webm' {
74
- const src: string
75
- export default src
76
- }
77
- declare module '*.ogg' {
78
- const src: string
79
- export default src
80
- }
81
- declare module '*.mp3' {
82
- const src: string
83
- export default src
84
- }
85
- declare module '*.wav' {
86
- const src: string
87
- export default src
88
- }
89
- declare module '*.flac' {
90
- const src: string
91
- export default src
92
- }
93
- declare module '*.aac' {
94
- const src: string
95
- export default src
96
- }
97
-
98
- // fonts
99
- declare module '*.woff' {
100
- const src: string
101
- export default src
102
- }
103
- declare module '*.woff2' {
104
- const src: string
105
- export default src
106
- }
107
- declare module '*.eot' {
108
- const src: string
109
- export default src
110
- }
111
- declare module '*.ttf' {
112
- const src: string
113
- export default src
114
- }
115
- declare module '*.otf' {
116
- const src: string
117
- export default src
118
- }
119
-
120
- // other
121
- declare module '*.wasm' {
122
- const initWasm: (options: WebAssembly.Imports) => Promise<WebAssembly.Exports>
123
- export default initWasm
124
- }
125
- declare module '*.webmanifest' {
126
- const src: string
127
- export default src
128
- }
129
- declare module '*.pdf' {
130
- const src: string
131
- export default src
132
- }
133
- declare module '*.txt' {
134
- const src: string
135
- export default src
136
- }
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
- };