@cloud-app-dev/vidc 3.2.13 → 3.2.15
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 → DynamicGridList}/Demo.d.ts +0 -0
- package/es/{List/DynamicGridList → DynamicGridList}/Demo.js +7 -2
- package/es/{List/DynamicGridList → DynamicGridList}/index.d.ts +3 -3
- package/es/{List/DynamicGridList → DynamicGridList}/index.js +5 -5
- package/es/DynamicList/demo.d.ts +2 -0
- package/es/DynamicList/demo.js +60 -0
- package/es/{List/DynamicList → DynamicList}/index.d.ts +18 -1
- package/es/{List/DynamicList → DynamicList}/index.js +8 -7
- package/es/{List/DynamicList → DynamicList}/index.less +0 -0
- package/es/{List/DynamicList → DynamicList}/interface.d.ts +0 -0
- package/es/{List/DynamicList → DynamicList}/utils.d.ts +0 -0
- package/es/{List/DynamicList → DynamicList}/utils.js +0 -0
- package/es/{List/GridList → GridList}/Demo.d.ts +0 -0
- package/es/{List/GridList → GridList}/Demo.js +4 -3
- package/es/GridList/data.d.ts +16 -0
- package/es/GridList/data.js +609 -0
- package/es/{List/GridList → GridList}/hook.d.ts +0 -0
- package/es/{List/GridList → GridList}/hook.js +0 -0
- package/es/{List/GridList → GridList}/index.d.ts +0 -0
- package/es/{List/GridList → GridList}/index.js +0 -0
- package/es/{List/GridList → GridList}/index.less +0 -0
- package/es/{List/GridList → GridList}/interface.d.ts +0 -0
- package/es/{List/GridList → GridList}/utils.d.ts +0 -0
- package/es/{List/GridList → GridList}/utils.js +0 -0
- package/es/List/index.d.ts +28 -5
- package/es/List/index.js +6 -5
- package/es/ListWithSizeAnimate/demo.d.ts +2 -0
- package/es/ListWithSizeAnimate/demo.js +140 -0
- package/es/ListWithSizeAnimate/index.d.ts +14 -0
- package/es/ListWithSizeAnimate/index.js +112 -0
- package/es/ListWithSizeAnimate/index.less +14 -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 +5 -3
- 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/{List/VList → VList}/index.d.ts +0 -0
- package/es/{List/VList → VList}/index.js +5 -4
- package/es/{List/VList → VList}/index.less +0 -0
- package/es/{List/VList → VList}/utils.d.ts +0 -0
- package/es/{List/VList → VList}/utils.js +0 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -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/es/List/GridList/data.json +0 -710
- package/es/List/interface.d.ts +0 -29
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import { filesMeta, tabs } from '.';
|
|
5
|
-
import deepmerge from '/Users/huang/project/vidc/node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge';
|
|
6
|
-
export const patchRoutes = ({ routes }) => {
|
|
7
|
-
Object.values(routes).forEach((route) => {
|
|
8
|
-
if (filesMeta[route.id]) {
|
|
9
|
-
route.meta = deepmerge(route.meta, filesMeta[route.id]);
|
|
10
|
-
|
|
11
|
-
// apply real tab data from id
|
|
12
|
-
route.meta.tabs = route.meta.tabs?.map(id => ({
|
|
13
|
-
...tabs[id],
|
|
14
|
-
meta: filesMeta[id],
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import * as tab0 from '/Users/huang/project/vidc/src/List/index.$tab-api.md';
|
|
5
|
-
|
|
6
|
-
export const tabs = {
|
|
7
|
-
'src/List/index.$tab-api': { key: 'api', components: tab0 },
|
|
8
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import React, { useState, useEffect, useRef } from 'react';
|
|
5
|
-
import { useOutlet, history } from 'dumi';
|
|
6
|
-
import { SiteContext } from '/Users/huang/project/vidc/node_modules/.pnpm/dumi@2.0.3_ht3eugyc2xy3cncd2guo3dvtky/node_modules/dumi/dist/client/theme-api/context.js';
|
|
7
|
-
import { demos, components } from '../meta';
|
|
8
|
-
import { locales } from '../locales/config';
|
|
9
|
-
|
|
10
|
-
export default function DumiContextWrapper() {
|
|
11
|
-
const outlet = useOutlet();
|
|
12
|
-
const [loading, setLoading] = useState(true);
|
|
13
|
-
const prev = useRef(history.location.pathname);
|
|
14
|
-
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
return history.listen((next) => {
|
|
17
|
-
// mark loading when route change, page component will set false when loaded
|
|
18
|
-
setLoading(true);
|
|
19
|
-
|
|
20
|
-
// scroll to top when route changed
|
|
21
|
-
if (next.location.pathname !== prev.current) {
|
|
22
|
-
prev.current = next.location.pathname;
|
|
23
|
-
document.documentElement.scrollTo(0, 0);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}, []);
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<SiteContext.Provider value={{
|
|
30
|
-
pkg: {"name":"@cloud-app-dev/vidc","description":"Video Image Data Componennts","version":"3.2.13"},
|
|
31
|
-
demos,
|
|
32
|
-
components,
|
|
33
|
-
locales,
|
|
34
|
-
loading,
|
|
35
|
-
setLoading,
|
|
36
|
-
themeConfig: {"title":"CloudApp VIDC","footer":"Copyright © 2022 | Powered by <a href=\"https://d.umijs.org\" target=\"_blank\" rel=\"noreferrer\">dumi</a>","name":"VIDC","logo":"https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png","navs":[null,{"title":"GitLab","path":"https://git.topvdn.com/cloudapp/vidc"}]},
|
|
37
|
-
}}>
|
|
38
|
-
{outlet}
|
|
39
|
-
</SiteContext.Provider>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
export { default } from '/Users/huang/project/vidc/node_modules/.pnpm/dumi@2.0.3_ht3eugyc2xy3cncd2guo3dvtky/node_modules/dumi/theme-default/slots/PreviewerActionsExtra/index.js';
|
package/.dumi/tmp/exports.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// This file is generated by Umi automatically
|
|
3
|
-
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
// @umijs/renderer-*
|
|
5
|
-
export { createBrowserHistory, createHashHistory, createMemoryHistory, createSearchParams, generatePath, matchPath, matchRoutes, Navigate, NavLink, Outlet, resolvePath, useLocation, useMatch, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, useSearchParams, Helmet, useAppData, useClientLoaderData, useServerLoaderData, renderClient, __getRoot, Link, useRouteData, __useFetcher, withRouter } from '/Users/huang/project/vidc/node_modules/.pnpm/@umijs+renderer-react@4.0.32_ef5jwxihqo6n7gxfmzogljlgcm/node_modules/@umijs/renderer-react';
|
|
6
|
-
export type { History } from '/Users/huang/project/vidc/node_modules/.pnpm/@umijs+renderer-react@4.0.32_ef5jwxihqo6n7gxfmzogljlgcm/node_modules/@umijs/renderer-react'
|
|
7
|
-
// umi/client/client/plugin
|
|
8
|
-
export { ApplyPluginsType, PluginManager } from '/Users/huang/project/vidc/node_modules/.pnpm/umi@4.0.32_ht3eugyc2xy3cncd2guo3dvtky/node_modules/umi/client/client/plugin.js';
|
|
9
|
-
export { history, createHistory } from './core/history';
|
|
10
|
-
export { terminal } from './core/terminal';
|
|
11
|
-
export { TestBrowser } from './testBrowser';
|
|
12
|
-
// plugins
|
|
13
|
-
// plugins types.d.ts
|
|
14
|
-
export { defineApp } from './core/defineApp'
|
|
15
|
-
export type { RuntimeConfig } from './core/defineApp'
|
|
@@ -1,82 +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 '/Users/huang/project/vidc/node_modules/.pnpm/@umijs+renderer-react@4.0.32_ef5jwxihqo6n7gxfmzogljlgcm/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
|
-
import './core/polyfill';
|
|
13
|
-
|
|
14
|
-
const publicPath = '/';
|
|
15
|
-
const runtimePublicPath = false;
|
|
16
|
-
|
|
17
|
-
type TestBrowserProps = {
|
|
18
|
-
location?: Partial<Location>;
|
|
19
|
-
historyRef?: React.MutableRefObject<Location>;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export function TestBrowser(props: TestBrowserProps) {
|
|
23
|
-
const pluginManager = createPluginManager();
|
|
24
|
-
const [context, setContext] = useState<RenderClientOpts | undefined>(
|
|
25
|
-
undefined
|
|
26
|
-
);
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
const genContext = async () => {
|
|
29
|
-
const { routes, routeComponents } = await getRoutes(pluginManager);
|
|
30
|
-
// allow user to extend routes
|
|
31
|
-
await pluginManager.applyPlugins({
|
|
32
|
-
key: 'patchRoutes',
|
|
33
|
-
type: ApplyPluginsType.event,
|
|
34
|
-
args: {
|
|
35
|
-
routes,
|
|
36
|
-
routeComponents,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
const contextOpts = pluginManager.applyPlugins({
|
|
40
|
-
key: 'modifyContextOpts',
|
|
41
|
-
type: ApplyPluginsType.modify,
|
|
42
|
-
initialValue: {},
|
|
43
|
-
});
|
|
44
|
-
const basename = contextOpts.basename || '/';
|
|
45
|
-
const history = createHistory({
|
|
46
|
-
type: 'memory',
|
|
47
|
-
basename,
|
|
48
|
-
});
|
|
49
|
-
return {
|
|
50
|
-
routes,
|
|
51
|
-
routeComponents,
|
|
52
|
-
pluginManager,
|
|
53
|
-
rootElement: contextOpts.rootElement || document.getElementById('root'),
|
|
54
|
-
publicPath,
|
|
55
|
-
runtimePublicPath,
|
|
56
|
-
history,
|
|
57
|
-
basename,
|
|
58
|
-
components: true,
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
genContext().then((context) => {
|
|
62
|
-
setContext(context);
|
|
63
|
-
if (props.location) {
|
|
64
|
-
context?.history?.push(props.location);
|
|
65
|
-
}
|
|
66
|
-
if (props.historyRef) {
|
|
67
|
-
props.historyRef.current = context?.history;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}, []);
|
|
71
|
-
|
|
72
|
-
if (context === undefined) {
|
|
73
|
-
return <div id="loading" />;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const Children = renderClient(context);
|
|
77
|
-
return (
|
|
78
|
-
<React.Fragment>
|
|
79
|
-
<Children />
|
|
80
|
-
</React.Fragment>
|
|
81
|
-
);
|
|
82
|
-
}
|
package/.dumi/tmp/tsconfig.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"importHelpers": true,
|
|
7
|
-
"jsx": "react-jsx",
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"baseUrl": "../",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"allowSyntheticDefaultImports": true,
|
|
14
|
-
"paths": {
|
|
15
|
-
"@/*": [
|
|
16
|
-
"*"
|
|
17
|
-
],
|
|
18
|
-
"@@/*": [
|
|
19
|
-
".umi/*"
|
|
20
|
-
],
|
|
21
|
-
"umi": [
|
|
22
|
-
"/Users/huang/project/vidc/node_modules/.pnpm/umi@4.0.32_ht3eugyc2xy3cncd2guo3dvtky/node_modules/umi"
|
|
23
|
-
],
|
|
24
|
-
"umi/typings": [
|
|
25
|
-
".umi/typings"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"../.umirc.ts",
|
|
31
|
-
"../**/*.d.ts",
|
|
32
|
-
"../**/*.ts",
|
|
33
|
-
"../**/*.tsx"
|
|
34
|
-
]
|
|
35
|
-
}
|
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
|
-
}
|