@cloud-app-dev/vidc 3.2.13 → 3.2.14
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/es/List/DynamicGridList/index.d.ts +3 -3
- package/es/List/DynamicGridList/index.js +5 -5
- package/es/ListWithSizeAnimate/demo.d.ts +2 -0
- package/es/ListWithSizeAnimate/demo.js +19 -0
- package/es/ListWithSizeAnimate/index.d.ts +9 -0
- package/es/ListWithSizeAnimate/index.js +71 -0
- package/es/ListWithSizeAnimate/index.less +13 -0
- package/es/Picture/interface.d.ts +0 -6
- package/es/Player/contraller_bar/volume.d.ts +1 -1
- package/es/PlayerExt/index.d.ts +1 -1
- package/es/PlayerExt/index.js +4 -5
- package/es/ScreenPlayer/Live.d.ts +1 -1
- package/es/ScreenPlayer/Live.js +24 -17
- package/es/ScreenPlayer/LiveTools.d.ts +2 -2
- package/es/ScreenPlayer/LiveTools.js +9 -6
- package/es/ScreenPlayer/PlayerWithExt.d.ts +2 -2
- package/es/ScreenPlayer/PlayerWithExt.js +7 -5
- package/es/ScreenPlayer/Record.d.ts +1 -1
- package/es/ScreenPlayer/Record.js +30 -21
- package/es/ScreenPlayer/RecordTools.d.ts +2 -2
- package/es/ScreenPlayer/RecordTools.js +20 -12
- package/es/ScreenPlayer/ScreenSelect.js +4 -2
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +1 -1
- package/es/ScreenPlayer/SegmentTimeLine.js +1 -1
- package/es/ScreenPlayer/TimeSelect.js +2 -2
- package/es/ScreenPlayer/demo2.js +1 -1
- package/es/ScreenPlayer/interface.d.ts +2 -2
- package/es/ScreenPlayer/useTimeSlider.d.ts +8 -8
- package/es/ScreenPlayer/useTimeSlider.js +23 -15
- package/es/ScreenPlayer/useVideoFit.d.ts +1 -1
- package/es/ScreenPlayer/utils.d.ts +1 -1
- package/es/ScreenPlayer/utils.js +4 -1
- package/es/ThemeAntd/style/button.less +1 -1
- package/es/ThemeAntd/style/pagination.less +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/package.json +2 -7
- package/.dumi/tmp/core/EmptyRoute.tsx +0 -9
- package/.dumi/tmp/core/defineApp.ts +0 -16
- package/.dumi/tmp/core/history.ts +0 -61
- package/.dumi/tmp/core/plugin.ts +0 -42
- package/.dumi/tmp/core/pluginConfig.d.ts +0 -276
- package/.dumi/tmp/core/polyfill.ts +0 -202
- package/.dumi/tmp/core/route.tsx +0 -38
- package/.dumi/tmp/core/terminal.ts +0 -38
- package/.dumi/tmp/dumi/exports.ts +0 -5
- package/.dumi/tmp/dumi/locales/config.ts +0 -56
- package/.dumi/tmp/dumi/locales/runtime.tsx +0 -38
- package/.dumi/tmp/dumi/meta/atoms.ts +0 -4
- package/.dumi/tmp/dumi/meta/index.ts +0 -186
- package/.dumi/tmp/dumi/meta/runtime.ts +0 -18
- package/.dumi/tmp/dumi/meta/tabs.ts +0 -8
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +0 -41
- package/.dumi/tmp/dumi/theme/builtins/API.ts +0 -4
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +0 -4
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +0 -4
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +0 -4
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +0 -4
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +0 -4
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Content.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Features.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Header.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +0 -4
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +0 -4
- package/.dumi/tmp/exports.ts +0 -15
- package/.dumi/tmp/testBrowser.tsx +0 -82
- package/.dumi/tmp/tsconfig.json +0 -35
- package/.dumi/tmp/typings.d.ts +0 -136
- package/.dumi/tmp/umi.ts +0 -77
- package/.dumi/tmp-production/core/EmptyRoute.tsx +0 -9
- package/.dumi/tmp-production/core/defineApp.ts +0 -16
- package/.dumi/tmp-production/core/history.ts +0 -61
- package/.dumi/tmp-production/core/plugin.ts +0 -42
- package/.dumi/tmp-production/core/pluginConfig.d.ts +0 -276
- package/.dumi/tmp-production/core/polyfill.ts +0 -202
- package/.dumi/tmp-production/core/route.tsx +0 -38
- package/.dumi/tmp-production/core/terminal.ts +0 -38
- package/.dumi/tmp-production/dumi/exports.ts +0 -5
- package/.dumi/tmp-production/dumi/locales/config.ts +0 -56
- package/.dumi/tmp-production/dumi/locales/runtime.tsx +0 -38
- package/.dumi/tmp-production/dumi/meta/atoms.ts +0 -4
- package/.dumi/tmp-production/dumi/meta/index.ts +0 -178
- package/.dumi/tmp-production/dumi/meta/runtime.ts +0 -18
- package/.dumi/tmp-production/dumi/meta/tabs.ts +0 -5
- package/.dumi/tmp-production/dumi/theme/ContextWrapper.tsx +0 -41
- package/.dumi/tmp-production/dumi/theme/builtins/API.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/builtins/Badge.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/builtins/Container.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/builtins/Previewer.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/builtins/SourceCode.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/builtins/Table.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/layouts/DocLayout.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Content.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/ContentTabs.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Features.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Footer.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Header.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Hero.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/HeroTitle.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/LangSwitch.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Logo.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Navbar.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/NotFound.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActions.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActionsExtra.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/RtlSwitch.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/SearchBar.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/SearchResult.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Sidebar.ts +0 -4
- package/.dumi/tmp-production/dumi/theme/slots/Toc.ts +0 -4
- package/.dumi/tmp-production/exports.ts +0 -14
- package/.dumi/tmp-production/testBrowser.tsx +0 -82
- package/.dumi/tmp-production/tsconfig.json +0 -35
- package/.dumi/tmp-production/typings.d.ts +0 -136
- package/.dumi/tmp-production/umi.ts +0 -77
- package/.stylelintrc +0 -3
- package/clear-cache.sh +0 -4
package/.dumi/tmp/typings.d.ts
DELETED
|
@@ -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/.dumi/tmp/umi.ts
DELETED
|
@@ -1,77 +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 '/Users/huang/project/vidc/node_modules/.pnpm/@umijs+renderer-react@4.0.32_ef5jwxihqo6n7gxfmzogljlgcm/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
|
-
return (pluginManager.applyPlugins({
|
|
31
|
-
key: 'render',
|
|
32
|
-
type: ApplyPluginsType.compose,
|
|
33
|
-
initialValue() {
|
|
34
|
-
const contextOpts = pluginManager.applyPlugins({
|
|
35
|
-
key: 'modifyContextOpts',
|
|
36
|
-
type: ApplyPluginsType.modify,
|
|
37
|
-
initialValue: {},
|
|
38
|
-
});
|
|
39
|
-
const basename = contextOpts.basename || '/';
|
|
40
|
-
const context = {
|
|
41
|
-
routes,
|
|
42
|
-
routeComponents,
|
|
43
|
-
pluginManager,
|
|
44
|
-
rootElement: contextOpts.rootElement || document.getElementById('root'),
|
|
45
|
-
publicPath,
|
|
46
|
-
runtimePublicPath,
|
|
47
|
-
history: createHistory({
|
|
48
|
-
type: contextOpts.historyType || 'browser',
|
|
49
|
-
basename,
|
|
50
|
-
...contextOpts.historyOpts,
|
|
51
|
-
}),
|
|
52
|
-
basename,
|
|
53
|
-
};
|
|
54
|
-
return renderClient(context);
|
|
55
|
-
},
|
|
56
|
-
}))();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// always remove trailing slash from location.pathname
|
|
61
|
-
if (
|
|
62
|
-
typeof history !== 'undefined' &&
|
|
63
|
-
location.pathname.length > 1 &&
|
|
64
|
-
location.pathname.endsWith('/')
|
|
65
|
-
) {
|
|
66
|
-
history.replaceState(
|
|
67
|
-
{},
|
|
68
|
-
'',
|
|
69
|
-
location.pathname.slice(0, -1) + location.search + location.hash,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
render();
|
|
74
|
-
|
|
75
|
-
window.g_umi = {
|
|
76
|
-
version: '4.0.32',
|
|
77
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Outlet, useOutletContext } from 'umi';
|
|
6
|
-
export default function EmptyRoute() {
|
|
7
|
-
const context = useOutletContext();
|
|
8
|
-
return <Outlet context={context} />;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
interface IDefaultRuntimeConfig {
|
|
5
|
-
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action:any }) => void;
|
|
6
|
-
patchRoutes?: (props: { routes: any }) => void;
|
|
7
|
-
patchClientRoutes?: (props: { routes: any }) => void;
|
|
8
|
-
render?: (oldRender: () => void) => void;
|
|
9
|
-
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export type RuntimeConfig = IDefaultRuntimeConfig
|
|
13
|
-
|
|
14
|
-
export function defineApp(config: RuntimeConfig): RuntimeConfig {
|
|
15
|
-
return config;
|
|
16
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import { createHashHistory, createMemoryHistory, createBrowserHistory, History } from '/Users/huang/project/vidc/node_modules/.pnpm/@umijs+renderer-react@4.0.32_ef5jwxihqo6n7gxfmzogljlgcm/node_modules/@umijs/renderer-react';
|
|
5
|
-
|
|
6
|
-
let history: History;
|
|
7
|
-
let basename: string = '/';
|
|
8
|
-
export function createHistory(opts: any) {
|
|
9
|
-
let h;
|
|
10
|
-
if (opts.type === 'hash') {
|
|
11
|
-
h = createHashHistory();
|
|
12
|
-
} else if (opts.type === 'memory') {
|
|
13
|
-
h = createMemoryHistory(opts);
|
|
14
|
-
} else {
|
|
15
|
-
h = createBrowserHistory();
|
|
16
|
-
}
|
|
17
|
-
if (opts.basename) {
|
|
18
|
-
basename = opts.basename;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
history = {
|
|
22
|
-
...h,
|
|
23
|
-
push(to, state) {
|
|
24
|
-
h.push(patchTo(to), state);
|
|
25
|
-
},
|
|
26
|
-
replace(to, state) {
|
|
27
|
-
h.replace(patchTo(to), state);
|
|
28
|
-
},
|
|
29
|
-
get location() {
|
|
30
|
-
return h.location;
|
|
31
|
-
},
|
|
32
|
-
get action() {
|
|
33
|
-
return h.action;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return h;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Patch `to` to support basename
|
|
41
|
-
// Refs:
|
|
42
|
-
// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
|
|
43
|
-
// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
|
|
44
|
-
function patchTo(to: any) {
|
|
45
|
-
if (typeof to === 'string') {
|
|
46
|
-
return `${stripLastSlash(basename)}${to}`;
|
|
47
|
-
} else if (typeof to === 'object' && to.pathname) {
|
|
48
|
-
return {
|
|
49
|
-
...to,
|
|
50
|
-
pathname: `${stripLastSlash(basename)}${to.pathname}`,
|
|
51
|
-
};
|
|
52
|
-
} else {
|
|
53
|
-
throw new Error(`Unexpected to: ${to}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function stripLastSlash(path) {
|
|
58
|
-
return path.slice(-1) === '/' ? path.slice(0, -1) : path;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { history };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import * as Plugin_0 from '@@/dumi/meta/runtime.ts';
|
|
5
|
-
import * as Plugin_1 from '@@/dumi/locales/runtime.tsx';
|
|
6
|
-
import { PluginManager } from 'umi';
|
|
7
|
-
|
|
8
|
-
function __defaultExport (obj) {
|
|
9
|
-
if (obj.default) {
|
|
10
|
-
return typeof obj.default === 'function' ? obj.default() : obj.default
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
export function getPlugins() {
|
|
15
|
-
return [
|
|
16
|
-
{
|
|
17
|
-
apply: Plugin_0,
|
|
18
|
-
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/meta/runtime.ts',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
apply: Plugin_1,
|
|
22
|
-
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/locales/runtime.tsx',
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function getValidKeys() {
|
|
28
|
-
return ['patchRoutes','patchClientRoutes','modifyContextOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange',];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let pluginManager = null;
|
|
32
|
-
export function createPluginManager() {
|
|
33
|
-
pluginManager = PluginManager.create({
|
|
34
|
-
plugins: getPlugins(),
|
|
35
|
-
validKeys: getValidKeys(),
|
|
36
|
-
});
|
|
37
|
-
return pluginManager;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function getPluginManager() {
|
|
41
|
-
return pluginManager;
|
|
42
|
-
}
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
// This file is generated by Umi automatically
|
|
2
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
3
|
-
// Created by Umi Plugin
|
|
4
|
-
|
|
5
|
-
export interface IConfigFromPlugins {
|
|
6
|
-
clientLoader?: {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
codeSplitting?: {
|
|
10
|
-
jsStrategy?: ("bigVendors" | "depPerChunk" | "granularChunks")
|
|
11
|
-
jsStrategyOptions?: {
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
cssStrategy?: "mergeAll"
|
|
15
|
-
cssStrategyOptions?: {
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
title?: string
|
|
20
|
-
styles?: unknown[]
|
|
21
|
-
scripts?: unknown[]
|
|
22
|
-
routes?: {
|
|
23
|
-
|
|
24
|
-
}[]
|
|
25
|
-
reactRouter5Compat?: {
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
presets?: string[]
|
|
29
|
-
plugins?: string[]
|
|
30
|
-
npmClient?: ("pnpm" | "tnpm" | "cnpm" | "yarn" | "npm")
|
|
31
|
-
mountElementId?: string
|
|
32
|
-
metas?: unknown[]
|
|
33
|
-
links?: unknown[]
|
|
34
|
-
historyWithQuery?: {
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
history?: {
|
|
38
|
-
type?: ("browser" | "hash" | "memory")
|
|
39
|
-
}
|
|
40
|
-
headScripts?: unknown[]
|
|
41
|
-
conventionRoutes?: {
|
|
42
|
-
base?: string
|
|
43
|
-
exclude?: unknown[]
|
|
44
|
-
}
|
|
45
|
-
base?: string
|
|
46
|
-
writeToDisk?: boolean
|
|
47
|
-
theme?: {
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
targets?: {
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
svgr?: {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
svgo?: ({
|
|
57
|
-
|
|
58
|
-
} | boolean)
|
|
59
|
-
styleLoader?: {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
srcTranspiler?: ("babel" | "esbuild" | "swc" | "none")
|
|
63
|
-
sassLoader?: {
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
runtimePublicPath?: {
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
purgeCSS?: {
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
publicPath?: string
|
|
73
|
-
proxy?: ({
|
|
74
|
-
|
|
75
|
-
} | unknown[])
|
|
76
|
-
postcssLoader?: {
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
outputPath?: string
|
|
80
|
-
mfsu?: ({
|
|
81
|
-
cacheDirectory?: string
|
|
82
|
-
chainWebpack?: (() => any)
|
|
83
|
-
esbuild?: boolean
|
|
84
|
-
exclude?: unknown[]
|
|
85
|
-
include?: string[]
|
|
86
|
-
mfName?: string
|
|
87
|
-
remoteAliases?: string[]
|
|
88
|
-
remoteName?: string
|
|
89
|
-
runtimePublicPath?: boolean
|
|
90
|
-
shared?: {
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
strategy?: ("eager" | "normal")
|
|
94
|
-
} | boolean)
|
|
95
|
-
mdx?: {
|
|
96
|
-
loader?: string
|
|
97
|
-
loaderOptions?: {
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
manifest?: {
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
lessLoader?: {
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
jsMinifierOptions?: {
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
jsMinifier?: ("esbuild" | "swc" | "terser" | "uglifyJs" | "none")
|
|
111
|
-
inlineLimit?: number
|
|
112
|
-
ignoreMomentLocale?: boolean
|
|
113
|
-
https?: {
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
hash?: boolean
|
|
117
|
-
forkTSChecker?: {
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
fastRefresh?: boolean
|
|
121
|
-
extraPostCSSPlugins?: unknown[]
|
|
122
|
-
extraBabelPresets?: unknown[]
|
|
123
|
-
extraBabelPlugins?: unknown[]
|
|
124
|
-
extraBabelIncludes?: unknown[]
|
|
125
|
-
externals?: ({
|
|
126
|
-
|
|
127
|
-
} | string | (() => any))
|
|
128
|
-
esm?: {
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
devtool?: (string | boolean)
|
|
132
|
-
depTranspiler?: ("babel" | "esbuild" | "swc" | "none")
|
|
133
|
-
define?: {
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
deadCode?: {
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
cssMinifierOptions?: {
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
cssMinifier?: ("cssnano" | "esbuild" | "parcelCSS" | "none")
|
|
143
|
-
cssLoaderModules?: {
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
cssLoader?: {
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
copy?: unknown[]
|
|
150
|
-
cacheDirectoryPath?: string
|
|
151
|
-
babelLoaderCustomize?: string
|
|
152
|
-
autoprefixer?: {
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
autoCSSModules?: boolean
|
|
156
|
-
alias?: {
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
crossorigin?: (boolean | {
|
|
160
|
-
includes?: {
|
|
161
|
-
|
|
162
|
-
}[]
|
|
163
|
-
})
|
|
164
|
-
esmi?: {
|
|
165
|
-
cdnOrigin?: string
|
|
166
|
-
shimUrl?: string
|
|
167
|
-
}
|
|
168
|
-
exportStatic?: {
|
|
169
|
-
extraRoutePaths?: ((() => any) | string[])
|
|
170
|
-
}
|
|
171
|
-
favicons?: string[]
|
|
172
|
-
mock?: {
|
|
173
|
-
exclude?: string[]
|
|
174
|
-
include?: string[]
|
|
175
|
-
}
|
|
176
|
-
mpa?: {
|
|
177
|
-
template?: string
|
|
178
|
-
layout?: string
|
|
179
|
-
getConfigFromEntryFile?: boolean
|
|
180
|
-
entry?: {
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
polyfill?: {
|
|
185
|
-
imports?: string[]
|
|
186
|
-
}
|
|
187
|
-
routePrefetch?: {
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
ssr?: {
|
|
191
|
-
serverBuildPath?: string
|
|
192
|
-
platform?: string
|
|
193
|
-
builder?: ("esbuild" | "webpack")
|
|
194
|
-
}
|
|
195
|
-
terminal?: {
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
tmpFiles?: boolean
|
|
199
|
-
lowImport?: {
|
|
200
|
-
libs?: unknown[]
|
|
201
|
-
css?: string
|
|
202
|
-
}
|
|
203
|
-
vite?: {
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
apiRoute?: {
|
|
207
|
-
platform?: string
|
|
208
|
-
}
|
|
209
|
-
monorepoRedirect?: (boolean | {
|
|
210
|
-
srcDir?: string[]
|
|
211
|
-
exclude?: {
|
|
212
|
-
|
|
213
|
-
}[]
|
|
214
|
-
})
|
|
215
|
-
test?: {
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
clickToComponent?: {
|
|
219
|
-
editor?: string
|
|
220
|
-
}
|
|
221
|
-
legacy?: {
|
|
222
|
-
buildOnly?: boolean
|
|
223
|
-
nodeModulesTransform?: boolean
|
|
224
|
-
}
|
|
225
|
-
classPropertiesLoose?: {
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
verifyCommit?: {
|
|
229
|
-
scope?: string[]
|
|
230
|
-
allowEmoji?: boolean
|
|
231
|
-
}
|
|
232
|
-
run?: {
|
|
233
|
-
globals?: string[]
|
|
234
|
-
}
|
|
235
|
-
logo?: string
|
|
236
|
-
themeConfig?: {
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
extraRehypePlugins?: unknown[]
|
|
240
|
-
extraRemarkPlugins?: unknown[]
|
|
241
|
-
resolve?: {
|
|
242
|
-
docDirs?: unknown[]
|
|
243
|
-
atomDirs?: {
|
|
244
|
-
type?: string
|
|
245
|
-
dir?: string
|
|
246
|
-
}[]
|
|
247
|
-
entityDirs?: unknown
|
|
248
|
-
codeBlockMode?: ("active" | "passive")
|
|
249
|
-
entryFile?: string
|
|
250
|
-
}
|
|
251
|
-
autoAlias?: boolean
|
|
252
|
-
analytics?: ({
|
|
253
|
-
baidu?: string
|
|
254
|
-
ga?: string
|
|
255
|
-
ga_v2?: string
|
|
256
|
-
} | boolean)
|
|
257
|
-
locales?: ({
|
|
258
|
-
id?: string
|
|
259
|
-
name?: string
|
|
260
|
-
base?: string
|
|
261
|
-
}[] | {
|
|
262
|
-
id?: string
|
|
263
|
-
name?: string
|
|
264
|
-
suffix?: ""
|
|
265
|
-
}[])
|
|
266
|
-
apiParser?: {
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
assets?: {
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
sitemap?: {
|
|
273
|
-
hostname?: string
|
|
274
|
-
exclude?: string[]
|
|
275
|
-
}
|
|
276
|
-
}
|