react-terminal-viewer-cicd 2.1.1 → 3.0.0-beta.2
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 +11 -11
- package/dist/esm/Addon/EventEmiter.d.ts +1 -1
- package/dist/esm/Addon/HighlightAddon.d.ts +1 -1
- package/dist/esm/Addon/SearchAddon.d.ts +1 -1
- package/dist/esm/Addon/WorkerLog/LogWorker.js +1 -1
- package/dist/esm/Addon/WorkerLog/Logs.js +0 -2
- package/dist/esm/Addon/useAddon.d.ts +5 -5
- package/dist/esm/Addon/useAddon.js +1 -1
- package/dist/esm/Hooks/useDebounceInput.js +1 -1
- package/dist/esm/Hooks/useLocalStore.js +1 -1
- package/dist/esm/TerminalViewer/index.d.ts +4 -4
- package/dist/esm/TerminalViewer/index.js +4 -4
- package/dist/esm/TerminalViewerBody/index.d.ts +8 -8
- package/dist/esm/TerminalViewerBody/index.js +7 -7
- package/dist/esm/TerminalViewerVirtualDom/ReactVirtualized.d.ts +71 -0
- package/dist/esm/TerminalViewerVirtualDom/ReactVirtualized.js +309 -0
- package/dist/esm/TerminalViewerVirtualDom/ReactVirtuoso.d.ts +67 -0
- package/dist/esm/TerminalViewerVirtualDom/ReactVirtuoso.js +271 -0
- package/dist/esm/TerminalViewerVirtualDom/index.d.ts +1 -70
- package/dist/esm/TerminalViewerVirtualDom/index.js +2 -308
- package/dist/esm/TerminalViewerVirtualDom/virtualized.less +68 -0
- package/dist/esm/TerminalViewerVirtualDom/{index.less → virtuoso.less} +0 -1
- package/dist/esm/__mocks__/react-virtualized.js +14 -0
- package/dist/esm/__mocks__/styleMock.js +1 -0
- package/dist/esm/index.d.ts +4 -5
- package/dist/esm/index.js +4 -5
- package/dist/esm/mock/index.d.ts +3 -0
- package/dist/esm/mock/index.js +3 -0
- package/dist/esm/types.d.ts +4 -4
- package/dist/worker/.dumi/tmp/core/defineApp.d.ts +22 -0
- package/dist/worker/.dumi/tmp/core/exportStaticRuntimePlugin.d.ts +1 -0
- package/dist/worker/.dumi/tmp/core/helmet.d.ts +3 -0
- package/dist/worker/.dumi/tmp/core/helmetContext.d.ts +1 -0
- package/dist/worker/.dumi/tmp/core/history.d.ts +5 -0
- package/dist/worker/.dumi/tmp/core/historyIntelli.d.ts +50 -0
- package/dist/worker/.dumi/tmp/core/plugin.d.ts +8 -0
- package/dist/worker/.dumi/tmp/core/pluginConfig.d.ts +341 -0
- package/dist/worker/.dumi/tmp/core/route.d.ts +83 -0
- package/dist/worker/.dumi/tmp/core/terminal.d.ts +14 -0
- package/dist/worker/.dumi/tmp/dumi/exports.d.ts +3 -0
- package/dist/worker/.dumi/tmp/dumi/locales/config.d.ts +106 -0
- package/dist/worker/.dumi/tmp/dumi/locales/runtime.d.ts +2 -0
- package/dist/worker/.dumi/tmp/dumi/meta/atoms.d.ts +1 -0
- package/dist/worker/.dumi/tmp/dumi/meta/exports.d.ts +31 -0
- package/dist/worker/.dumi/tmp/dumi/meta/index.d.ts +39 -0
- package/dist/worker/.dumi/tmp/dumi/meta/runtime.d.ts +3 -0
- package/dist/worker/.dumi/tmp/dumi/meta/tabs.d.ts +1 -0
- package/dist/worker/.dumi/tmp/dumi/theme/ContextWrapper.d.ts +2 -0
- package/dist/worker/.dumi/tmp/exports.d.ts +10 -0
- package/dist/worker/.dumi/tmp/plugin-html2sketch/index.d.ts +1 -0
- package/dist/worker/.dumi/tmp/testBrowser.d.ts +8 -0
- package/dist/worker/.dumirc.d.ts +2 -0
- package/dist/worker/Addon/EventEmiter.d.ts +1 -1
- package/dist/worker/Addon/HighlightAddon.d.ts +1 -1
- package/dist/worker/Addon/SearchAddon.d.ts +1 -1
- package/dist/worker/Addon/useAddon.d.ts +4 -4
- package/dist/worker/TerminalViewer/index.d.ts +1 -1
- package/dist/worker/TerminalViewerBody/index.d.ts +5 -5
- package/dist/worker/index.d.ts +1 -1
- package/dist/worker/log.worker.js +1 -1
- package/dist/worker/log.worker.js.map +1 -1
- package/dist/worker/mock/index.d.ts +3 -0
- package/dist/worker/src/Addon/EventEmiter.d.ts +18 -0
- package/dist/worker/src/Addon/HighlightAddon.d.ts +26 -0
- package/dist/worker/src/Addon/LineNumberAddon.d.ts +39 -0
- package/dist/worker/src/Addon/SearchAddon.d.ts +140 -0
- package/dist/worker/src/Addon/WorkerLog/GlobalContext.d.ts +10 -0
- package/dist/worker/src/Addon/WorkerLog/LimitMap.d.ts +14 -0
- package/dist/worker/src/Addon/WorkerLog/LogWorker.d.ts +2 -0
- package/dist/worker/src/Addon/WorkerLog/Logs.d.ts +21 -0
- package/dist/worker/src/Addon/WorkerLog/Mark.d.ts +36 -0
- package/dist/worker/src/Addon/WorkerLog/Searcher.d.ts +16 -0
- package/dist/worker/src/Addon/WorkerLog/WebWokerServer.d.ts +10 -0
- package/dist/worker/src/Addon/WorkerLog/WebWorkerClient.d.ts +13 -0
- package/dist/worker/src/Addon/WorkerLog/log.worker.d.ts +1 -0
- package/dist/worker/src/Addon/WorkerLog/types.d.ts +18 -0
- package/dist/worker/src/Addon/useAddon.d.ts +9 -0
- package/dist/worker/src/Hooks/useBatchProcess.d.ts +2 -0
- package/dist/worker/src/Hooks/useCache.d.ts +31 -0
- package/dist/worker/src/Hooks/useDebounceInput.d.ts +3 -0
- package/dist/worker/src/Hooks/useLocalStore.d.ts +2 -0
- package/dist/worker/src/Hooks/useRemote.d.ts +30 -0
- package/dist/worker/src/Hooks/useRemote.test.d.ts +1 -0
- package/dist/worker/src/Hooks/useThrottle.d.ts +2 -0
- package/dist/worker/src/Hooks/useWorkerLogs.d.ts +9 -0
- package/dist/worker/src/TerminalViewer/index.d.ts +185 -0
- package/dist/worker/src/TerminalViewer/index.test.d.ts +1 -0
- package/dist/worker/src/TerminalViewerBody/index.d.ts +87 -0
- package/dist/worker/src/TerminalViewerBody/index.test.d.ts +1 -0
- package/dist/worker/src/TerminalViewerHeader/index.d.ts +88 -0
- package/dist/worker/src/TerminalViewerToolBar/index.d.ts +46 -0
- package/dist/worker/src/TerminalViewerVirtualDom/ReactVirtualized.d.ts +71 -0
- package/dist/worker/src/TerminalViewerVirtualDom/ReactVirtuoso.d.ts +67 -0
- package/dist/worker/src/TerminalViewerVirtualDom/index.d.ts +2 -0
- package/dist/worker/src/index.d.ts +8 -0
- package/dist/worker/src/mock/index.d.ts +15 -0
- package/dist/worker/src/types.d.ts +30 -0
- package/dist/worker/types.d.ts +4 -4
- package/package.json +27 -17
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { IConfigFromPluginsJoi } from "./pluginConfigJoi.d";
|
|
2
|
+
interface IConfigTypes {
|
|
3
|
+
codeSplitting: {
|
|
4
|
+
jsStrategy: "bigVendors" | "depPerChunk" | "granularChunks";
|
|
5
|
+
jsStrategyOptions?: ({} | undefined);
|
|
6
|
+
cssStrategy?: ("mergeAll" | undefined);
|
|
7
|
+
cssStrategyOptions?: ({} | undefined);
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
styles: Array<string | {
|
|
11
|
+
src?: (string | undefined);
|
|
12
|
+
} | {
|
|
13
|
+
content?: (string | undefined);
|
|
14
|
+
} | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
}>;
|
|
17
|
+
scripts: Array<string | {
|
|
18
|
+
src?: (string | undefined);
|
|
19
|
+
} | {
|
|
20
|
+
content?: (string | undefined);
|
|
21
|
+
} | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>;
|
|
24
|
+
routes: Array<{
|
|
25
|
+
component?: (string | undefined);
|
|
26
|
+
layout?: (false | undefined);
|
|
27
|
+
path?: (string | undefined);
|
|
28
|
+
redirect?: (string | undefined);
|
|
29
|
+
routes?: IConfigTypes['routes'];
|
|
30
|
+
wrappers?: (Array<string> | undefined);
|
|
31
|
+
} | {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
routeLoader: {
|
|
35
|
+
moduleType: "esm" | "cjs";
|
|
36
|
+
};
|
|
37
|
+
reactRouter5Compat: boolean | {};
|
|
38
|
+
presets: Array<string>;
|
|
39
|
+
plugins: Array<string>;
|
|
40
|
+
npmClient: "pnpm" | "tnpm" | "cnpm" | "yarn" | "npm";
|
|
41
|
+
mountElementId: string;
|
|
42
|
+
metas: Array<{
|
|
43
|
+
charset?: (string | undefined);
|
|
44
|
+
content?: (string | undefined);
|
|
45
|
+
"http-equiv"?: (string | undefined);
|
|
46
|
+
name?: (string | undefined);
|
|
47
|
+
} | {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
}>;
|
|
50
|
+
links: Array<{
|
|
51
|
+
crossorigin?: (string | undefined);
|
|
52
|
+
href?: (string | undefined);
|
|
53
|
+
hreflang?: (string | undefined);
|
|
54
|
+
media?: (string | undefined);
|
|
55
|
+
referrerpolicy?: (string | undefined);
|
|
56
|
+
rel?: (string | undefined);
|
|
57
|
+
sizes?: (any | undefined);
|
|
58
|
+
title?: (any | undefined);
|
|
59
|
+
type?: (any | undefined);
|
|
60
|
+
} | {
|
|
61
|
+
[x: string]: any;
|
|
62
|
+
}>;
|
|
63
|
+
historyWithQuery: {};
|
|
64
|
+
history: {
|
|
65
|
+
type: "browser" | "hash" | "memory";
|
|
66
|
+
};
|
|
67
|
+
headScripts: Array<string | {
|
|
68
|
+
src?: (string | undefined);
|
|
69
|
+
} | {
|
|
70
|
+
content?: (string | undefined);
|
|
71
|
+
} | {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
}>;
|
|
74
|
+
esbuildMinifyIIFE: boolean;
|
|
75
|
+
conventionRoutes: {
|
|
76
|
+
base?: (string | undefined);
|
|
77
|
+
exclude?: (Array<any> | undefined);
|
|
78
|
+
};
|
|
79
|
+
conventionLayout: boolean;
|
|
80
|
+
base: string;
|
|
81
|
+
analyze: {};
|
|
82
|
+
writeToDisk: boolean;
|
|
83
|
+
transformRuntime: {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
};
|
|
86
|
+
theme: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
};
|
|
89
|
+
targets: {
|
|
90
|
+
[x: string]: any;
|
|
91
|
+
};
|
|
92
|
+
svgr: {
|
|
93
|
+
[x: string]: any;
|
|
94
|
+
};
|
|
95
|
+
svgo: {
|
|
96
|
+
[x: string]: any;
|
|
97
|
+
} | boolean;
|
|
98
|
+
stylusLoader: {
|
|
99
|
+
[x: string]: any;
|
|
100
|
+
};
|
|
101
|
+
styleLoader: {
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
};
|
|
104
|
+
srcTranspilerOptions: {
|
|
105
|
+
esbuild?: ({
|
|
106
|
+
[x: string]: any;
|
|
107
|
+
} | undefined);
|
|
108
|
+
swc?: ({
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
} | undefined);
|
|
111
|
+
};
|
|
112
|
+
srcTranspiler: "babel" | "esbuild" | "swc";
|
|
113
|
+
sassLoader: {
|
|
114
|
+
[x: string]: any;
|
|
115
|
+
};
|
|
116
|
+
runtimePublicPath: {};
|
|
117
|
+
purgeCSS: {
|
|
118
|
+
[x: string]: any;
|
|
119
|
+
};
|
|
120
|
+
publicPath: string;
|
|
121
|
+
proxy: {
|
|
122
|
+
[x: string]: any;
|
|
123
|
+
} | Array<any>;
|
|
124
|
+
postcssLoader: {
|
|
125
|
+
[x: string]: any;
|
|
126
|
+
};
|
|
127
|
+
outputPath: string;
|
|
128
|
+
normalCSSLoaderModules: {
|
|
129
|
+
[x: string]: any;
|
|
130
|
+
};
|
|
131
|
+
mfsu: {
|
|
132
|
+
cacheDirectory?: (string | undefined);
|
|
133
|
+
chainWebpack?: (((...args: any[]) => unknown) | undefined);
|
|
134
|
+
esbuild?: (boolean | undefined);
|
|
135
|
+
exclude?: (Array<string | any> | undefined);
|
|
136
|
+
include?: (Array<string> | undefined);
|
|
137
|
+
mfName?: (string | undefined);
|
|
138
|
+
remoteAliases?: (Array<string> | undefined);
|
|
139
|
+
remoteName?: (string | undefined);
|
|
140
|
+
runtimePublicPath?: (boolean | undefined);
|
|
141
|
+
shared?: ({
|
|
142
|
+
[x: string]: any;
|
|
143
|
+
} | undefined);
|
|
144
|
+
strategy?: ("eager" | "normal" | undefined);
|
|
145
|
+
} | boolean;
|
|
146
|
+
mdx: {
|
|
147
|
+
loader?: (string | undefined);
|
|
148
|
+
loaderOptions?: ({
|
|
149
|
+
[x: string]: any;
|
|
150
|
+
} | undefined);
|
|
151
|
+
};
|
|
152
|
+
manifest: {
|
|
153
|
+
basePath?: (string | undefined);
|
|
154
|
+
fileName?: (string | undefined);
|
|
155
|
+
};
|
|
156
|
+
lessLoader: {
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
};
|
|
159
|
+
jsMinifierOptions: {
|
|
160
|
+
[x: string]: any;
|
|
161
|
+
};
|
|
162
|
+
jsMinifier: "esbuild" | "swc" | "terser" | "uglifyJs" | "none";
|
|
163
|
+
inlineLimit: number;
|
|
164
|
+
ignoreMomentLocale: boolean;
|
|
165
|
+
https: {
|
|
166
|
+
cert?: (string | undefined);
|
|
167
|
+
hosts?: (Array<string> | undefined);
|
|
168
|
+
http2?: (boolean | undefined);
|
|
169
|
+
key?: (string | undefined);
|
|
170
|
+
};
|
|
171
|
+
hash: boolean;
|
|
172
|
+
forkTSChecker: {
|
|
173
|
+
[x: string]: any;
|
|
174
|
+
};
|
|
175
|
+
fastRefresh: boolean;
|
|
176
|
+
extraPostCSSPlugins: Array<any>;
|
|
177
|
+
extraBabelPresets: Array<string | Array<any>>;
|
|
178
|
+
extraBabelPlugins: Array<string | Array<any>>;
|
|
179
|
+
extraBabelIncludes: Array<string | any>;
|
|
180
|
+
externals: {
|
|
181
|
+
[x: string]: any;
|
|
182
|
+
} | string | ((...args: any[]) => unknown);
|
|
183
|
+
esm: {};
|
|
184
|
+
devtool: "cheap-source-map" | "cheap-module-source-map" | "eval" | "eval-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | "source-map" | "hidden-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "inline-source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | boolean;
|
|
185
|
+
depTranspiler: "babel" | "esbuild" | "swc" | "none";
|
|
186
|
+
define: {
|
|
187
|
+
[x: string]: any;
|
|
188
|
+
};
|
|
189
|
+
deadCode: {
|
|
190
|
+
context?: (string | undefined);
|
|
191
|
+
detectUnusedExport?: (boolean | undefined);
|
|
192
|
+
detectUnusedFiles?: (boolean | undefined);
|
|
193
|
+
exclude?: (Array<string> | undefined);
|
|
194
|
+
failOnHint?: (boolean | undefined);
|
|
195
|
+
patterns?: (Array<string> | undefined);
|
|
196
|
+
};
|
|
197
|
+
cssPublicPath: string;
|
|
198
|
+
cssMinifierOptions: {
|
|
199
|
+
[x: string]: any;
|
|
200
|
+
};
|
|
201
|
+
cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
|
|
202
|
+
cssLoaderModules: {
|
|
203
|
+
[x: string]: any;
|
|
204
|
+
};
|
|
205
|
+
cssLoader: {
|
|
206
|
+
[x: string]: any;
|
|
207
|
+
};
|
|
208
|
+
copy: Array<{
|
|
209
|
+
from: string;
|
|
210
|
+
to: string;
|
|
211
|
+
} | string>;
|
|
212
|
+
checkDepCssModules?: boolean;
|
|
213
|
+
cacheDirectoryPath: string;
|
|
214
|
+
babelLoaderCustomize: string;
|
|
215
|
+
autoprefixer: {
|
|
216
|
+
[x: string]: any;
|
|
217
|
+
};
|
|
218
|
+
autoCSSModules: boolean;
|
|
219
|
+
alias: {
|
|
220
|
+
[x: string]: any;
|
|
221
|
+
};
|
|
222
|
+
crossorigin: boolean | {
|
|
223
|
+
includes?: (Array<any> | undefined);
|
|
224
|
+
};
|
|
225
|
+
esmi: {
|
|
226
|
+
cdnOrigin: string;
|
|
227
|
+
shimUrl?: (string | undefined);
|
|
228
|
+
};
|
|
229
|
+
exportStatic: {
|
|
230
|
+
extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
|
|
231
|
+
ignorePreRenderError?: (boolean | undefined);
|
|
232
|
+
};
|
|
233
|
+
favicons: Array<string>;
|
|
234
|
+
helmet: boolean;
|
|
235
|
+
icons: {
|
|
236
|
+
autoInstall?: ({} | undefined);
|
|
237
|
+
defaultComponentConfig?: ({} | undefined);
|
|
238
|
+
alias?: ({} | undefined);
|
|
239
|
+
include?: (Array<string> | undefined);
|
|
240
|
+
};
|
|
241
|
+
mock: {
|
|
242
|
+
exclude?: (Array<string> | undefined);
|
|
243
|
+
include?: (Array<string> | undefined);
|
|
244
|
+
};
|
|
245
|
+
mpa: {
|
|
246
|
+
template?: (string | undefined);
|
|
247
|
+
layout?: (string | undefined);
|
|
248
|
+
getConfigFromEntryFile?: (boolean | undefined);
|
|
249
|
+
entry?: ({} | undefined);
|
|
250
|
+
};
|
|
251
|
+
phantomDependency: {
|
|
252
|
+
exclude?: (Array<string> | undefined);
|
|
253
|
+
};
|
|
254
|
+
polyfill: {
|
|
255
|
+
imports?: (Array<string> | undefined);
|
|
256
|
+
};
|
|
257
|
+
routePrefetch: {
|
|
258
|
+
defaultPrefetch?: ("none" | "intent" | "render" | "viewport" | undefined);
|
|
259
|
+
defaultPrefetchTimeout?: (number | undefined);
|
|
260
|
+
};
|
|
261
|
+
terminal: {};
|
|
262
|
+
tmpFiles: boolean;
|
|
263
|
+
clientLoader: {};
|
|
264
|
+
routeProps: {};
|
|
265
|
+
ssr: {
|
|
266
|
+
serverBuildPath?: (string | undefined);
|
|
267
|
+
serverBuildTarget?: ("express" | "worker" | undefined);
|
|
268
|
+
platform?: (string | undefined);
|
|
269
|
+
builder?: ("esbuild" | "webpack" | "mako" | undefined);
|
|
270
|
+
__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?: ({
|
|
271
|
+
pureApp?: (boolean | undefined);
|
|
272
|
+
pureHtml?: (boolean | undefined);
|
|
273
|
+
} | undefined);
|
|
274
|
+
useStream?: (boolean | undefined);
|
|
275
|
+
};
|
|
276
|
+
lowImport: {
|
|
277
|
+
libs?: (Array<any> | undefined);
|
|
278
|
+
css?: (string | undefined);
|
|
279
|
+
};
|
|
280
|
+
vite: {};
|
|
281
|
+
apiRoute: {
|
|
282
|
+
platform?: (string | undefined);
|
|
283
|
+
};
|
|
284
|
+
monorepoRedirect: boolean | {
|
|
285
|
+
srcDir?: (Array<string> | undefined);
|
|
286
|
+
exclude?: (Array<any> | undefined);
|
|
287
|
+
peerDeps?: (boolean | undefined);
|
|
288
|
+
};
|
|
289
|
+
test: {};
|
|
290
|
+
clickToComponent: {
|
|
291
|
+
/** 默认情况下,点击将默认编辑器为vscode, 你可以设置编辑器 vscode 或者 vscode-insiders */
|
|
292
|
+
editor?: (string | undefined);
|
|
293
|
+
};
|
|
294
|
+
legacy: {
|
|
295
|
+
buildOnly?: (boolean | undefined);
|
|
296
|
+
nodeModulesTransform?: (boolean | undefined);
|
|
297
|
+
checkOutput?: (boolean | undefined);
|
|
298
|
+
};
|
|
299
|
+
/** 设置 babel class-properties 启用 loose
|
|
300
|
+
@doc https://umijs.org/docs/api/config#classpropertiesloose */
|
|
301
|
+
classPropertiesLoose: boolean | {};
|
|
302
|
+
ui: {};
|
|
303
|
+
mako: {
|
|
304
|
+
plugins?: (Array<{
|
|
305
|
+
load?: (((...args: any[]) => unknown) | undefined);
|
|
306
|
+
generateEnd?: (((...args: any[]) => unknown) | undefined);
|
|
307
|
+
}> | undefined);
|
|
308
|
+
px2rem?: ({
|
|
309
|
+
root?: (number | undefined);
|
|
310
|
+
propBlackList?: (Array<string> | undefined);
|
|
311
|
+
propWhiteList?: (Array<string> | undefined);
|
|
312
|
+
selectorBlackList?: (Array<string> | undefined);
|
|
313
|
+
selectorWhiteList?: (Array<string> | undefined);
|
|
314
|
+
selectorDoubleList?: (Array<string> | undefined);
|
|
315
|
+
} | undefined);
|
|
316
|
+
experimental?: ({
|
|
317
|
+
webpackSyntaxValidate?: (Array<string> | undefined);
|
|
318
|
+
} | undefined);
|
|
319
|
+
flexBugs?: (boolean | undefined);
|
|
320
|
+
optimization?: ({
|
|
321
|
+
skipModules?: (boolean | undefined);
|
|
322
|
+
} | undefined);
|
|
323
|
+
};
|
|
324
|
+
utoopack: {};
|
|
325
|
+
hmrGuardian: boolean;
|
|
326
|
+
forget: {
|
|
327
|
+
ReactCompilerConfig?: ({} | undefined);
|
|
328
|
+
};
|
|
329
|
+
verifyCommit: {
|
|
330
|
+
scope?: (Array<string> | undefined);
|
|
331
|
+
allowEmoji?: (boolean | undefined);
|
|
332
|
+
};
|
|
333
|
+
run: {
|
|
334
|
+
globals?: (Array<string> | undefined);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
type PrettifyWithCloseable<T> = {
|
|
338
|
+
[K in keyof T]: T[K] | false;
|
|
339
|
+
} & {};
|
|
340
|
+
export type IConfigFromPlugins = PrettifyWithCloseable<IConfigFromPluginsJoi & Partial<IConfigTypes>>;
|
|
341
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function getRoutes(): Promise<{
|
|
3
|
+
routes: {
|
|
4
|
+
readonly "404": {
|
|
5
|
+
readonly id: "404";
|
|
6
|
+
readonly path: "*";
|
|
7
|
+
readonly parentId: "DocLayout";
|
|
8
|
+
};
|
|
9
|
+
readonly "dumi-context-layout": {
|
|
10
|
+
readonly id: "dumi-context-layout";
|
|
11
|
+
readonly path: "/";
|
|
12
|
+
readonly isLayout: true;
|
|
13
|
+
};
|
|
14
|
+
readonly DocLayout: {
|
|
15
|
+
readonly id: "DocLayout";
|
|
16
|
+
readonly path: "/";
|
|
17
|
+
readonly parentId: "dumi-context-layout";
|
|
18
|
+
readonly isLayout: true;
|
|
19
|
+
};
|
|
20
|
+
readonly "docs/index": {
|
|
21
|
+
readonly path: "";
|
|
22
|
+
readonly id: "docs/index";
|
|
23
|
+
readonly parentId: "DocLayout";
|
|
24
|
+
};
|
|
25
|
+
readonly "components/TerminalViewer/index.zh-CN": {
|
|
26
|
+
readonly id: "components/TerminalViewer/index.zh-CN";
|
|
27
|
+
readonly path: "components/terminal-viewer";
|
|
28
|
+
readonly parentId: "DocLayout";
|
|
29
|
+
readonly meta: {
|
|
30
|
+
readonly _atom_route: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly "components/TerminalViewerBody/index.zh-CN": {
|
|
34
|
+
readonly id: "components/TerminalViewerBody/index.zh-CN";
|
|
35
|
+
readonly path: "components/terminal-viewer-body";
|
|
36
|
+
readonly parentId: "DocLayout";
|
|
37
|
+
readonly meta: {
|
|
38
|
+
readonly _atom_route: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly "components/TerminalViewerHeader/index.zh-CN": {
|
|
42
|
+
readonly id: "components/TerminalViewerHeader/index.zh-CN";
|
|
43
|
+
readonly path: "components/terminal-viewer-header";
|
|
44
|
+
readonly parentId: "DocLayout";
|
|
45
|
+
readonly meta: {
|
|
46
|
+
readonly _atom_route: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly "components/TerminalViewerToolBar/index.zh-CN": {
|
|
50
|
+
readonly id: "components/TerminalViewerToolBar/index.zh-CN";
|
|
51
|
+
readonly path: "components/terminal-viewer-tool-bar";
|
|
52
|
+
readonly parentId: "DocLayout";
|
|
53
|
+
readonly meta: {
|
|
54
|
+
readonly _atom_route: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly "components/TerminalViewerVirtualDom/index.zh-CN": {
|
|
58
|
+
readonly id: "components/TerminalViewerVirtualDom/index.zh-CN";
|
|
59
|
+
readonly path: "components/terminal-viewer-virtual-dom";
|
|
60
|
+
readonly parentId: "DocLayout";
|
|
61
|
+
readonly meta: {
|
|
62
|
+
readonly _atom_route: true;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly "demo-render": {
|
|
66
|
+
readonly id: "demo-render";
|
|
67
|
+
readonly path: "~demos/:id";
|
|
68
|
+
readonly parentId: "dumi-context-layout";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
routeComponents: {
|
|
72
|
+
'404': React.LazyExoticComponent<any>;
|
|
73
|
+
'dumi-context-layout': React.LazyExoticComponent<typeof import("D:/workspace/gitee-terminal-viewer/.dumi/tmp/dumi/theme/ContextWrapper").default>;
|
|
74
|
+
DocLayout: React.LazyExoticComponent<React.FC<{}>>;
|
|
75
|
+
'docs/index': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
76
|
+
'components/TerminalViewer/index.zh-CN': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
77
|
+
'components/TerminalViewerBody/index.zh-CN': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
78
|
+
'components/TerminalViewerHeader/index.zh-CN': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
79
|
+
'components/TerminalViewerToolBar/index.zh-CN': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
80
|
+
'components/TerminalViewerVirtualDom/index.zh-CN': React.LazyExoticComponent<React.ComponentType<any>>;
|
|
81
|
+
'demo-render': React.LazyExoticComponent<React.FC<{}>>;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const terminal: {
|
|
2
|
+
log(...objs: any[]): void;
|
|
3
|
+
info(...objs: any[]): void;
|
|
4
|
+
warn(...objs: any[]): void;
|
|
5
|
+
error(...objs: any[]): void;
|
|
6
|
+
group(): void;
|
|
7
|
+
groupCollapsed(): void;
|
|
8
|
+
groupEnd(): void;
|
|
9
|
+
clear(): void;
|
|
10
|
+
trace(...args: any[]): void;
|
|
11
|
+
profile(...args: any[]): void;
|
|
12
|
+
profileEnd(...args: any[]): void;
|
|
13
|
+
};
|
|
14
|
+
export { terminal };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const locales: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
base: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const messages: {
|
|
7
|
+
"en-US": {
|
|
8
|
+
"header.search.placeholder": string;
|
|
9
|
+
"header.color.mode.light": string;
|
|
10
|
+
"header.color.mode.dark": string;
|
|
11
|
+
"header.color.mode.auto": string;
|
|
12
|
+
"header.social.github": string;
|
|
13
|
+
"header.social.weibo": string;
|
|
14
|
+
"header.social.twitter": string;
|
|
15
|
+
"header.social.x": string;
|
|
16
|
+
"header.social.gitlab": string;
|
|
17
|
+
"header.social.facebook": string;
|
|
18
|
+
"header.social.zhihu": string;
|
|
19
|
+
"header.social.yuque": string;
|
|
20
|
+
"header.social.linkedin": string;
|
|
21
|
+
"previewer.actions.code.expand": string;
|
|
22
|
+
"previewer.actions.code.shrink": string;
|
|
23
|
+
"previewer.actions.code.editable": string;
|
|
24
|
+
"previewer.actions.code.readonly": string;
|
|
25
|
+
"previewer.actions.sketch": string;
|
|
26
|
+
"previewer.actions.sketch.group": string;
|
|
27
|
+
"previewer.actions.sketch.symbol": string;
|
|
28
|
+
"previewer.actions.sketch.divider": string;
|
|
29
|
+
"previewer.actions.sketch.guide": string;
|
|
30
|
+
"previewer.actions.codesandbox": string;
|
|
31
|
+
"previewer.actions.codepen": string;
|
|
32
|
+
"previewer.actions.stackblitz": string;
|
|
33
|
+
"previewer.actions.separate": string;
|
|
34
|
+
"404.title": string;
|
|
35
|
+
"404.back": string;
|
|
36
|
+
"api.component.name": string;
|
|
37
|
+
"api.component.description": string;
|
|
38
|
+
"api.component.type": string;
|
|
39
|
+
"api.component.default": string;
|
|
40
|
+
"api.component.required": string;
|
|
41
|
+
"api.component.release.alpha": string;
|
|
42
|
+
"api.component.release.beta": string;
|
|
43
|
+
"api.component.release.experimental": string;
|
|
44
|
+
"api.component.release.deprecated": string;
|
|
45
|
+
"api.component.unavailable": string;
|
|
46
|
+
"api.component.loading": string;
|
|
47
|
+
"api.component.not.found": string;
|
|
48
|
+
"content.tabs.default": string;
|
|
49
|
+
"content.footer.last.updated": string;
|
|
50
|
+
"content.footer.actions.edit": string;
|
|
51
|
+
"content.footer.actions.previous": string;
|
|
52
|
+
"content.footer.actions.next": string;
|
|
53
|
+
"search.not.found": string;
|
|
54
|
+
"search.loading": string;
|
|
55
|
+
"layout.sidebar.btn": string;
|
|
56
|
+
};
|
|
57
|
+
"zh-CN": {
|
|
58
|
+
"header.search.placeholder": string;
|
|
59
|
+
"header.color.mode.light": string;
|
|
60
|
+
"header.color.mode.dark": string;
|
|
61
|
+
"header.color.mode.auto": string;
|
|
62
|
+
"header.social.github": string;
|
|
63
|
+
"header.social.weibo": string;
|
|
64
|
+
"header.social.twitter": string;
|
|
65
|
+
"header.social.x": string;
|
|
66
|
+
"header.social.gitlab": string;
|
|
67
|
+
"header.social.facebook": string;
|
|
68
|
+
"header.social.zhihu": string;
|
|
69
|
+
"header.social.yuque": string;
|
|
70
|
+
"header.social.linkedin": string;
|
|
71
|
+
"previewer.actions.code.expand": string;
|
|
72
|
+
"previewer.actions.code.shrink": string;
|
|
73
|
+
"previewer.actions.code.editable": string;
|
|
74
|
+
"previewer.actions.code.readonly": string;
|
|
75
|
+
"previewer.actions.codesandbox": string;
|
|
76
|
+
"previewer.actions.sketch": string;
|
|
77
|
+
"previewer.actions.sketch.group": string;
|
|
78
|
+
"previewer.actions.sketch.symbol": string;
|
|
79
|
+
"previewer.actions.sketch.divider": string;
|
|
80
|
+
"previewer.actions.sketch.guide": string;
|
|
81
|
+
"previewer.actions.stackblitz": string;
|
|
82
|
+
"previewer.actions.separate": string;
|
|
83
|
+
"404.title": string;
|
|
84
|
+
"404.back": string;
|
|
85
|
+
"api.component.name": string;
|
|
86
|
+
"api.component.description": string;
|
|
87
|
+
"api.component.type": string;
|
|
88
|
+
"api.component.default": string;
|
|
89
|
+
"api.component.required": string;
|
|
90
|
+
"api.component.release.alpha": string;
|
|
91
|
+
"api.component.release.beta": string;
|
|
92
|
+
"api.component.release.experimental": string;
|
|
93
|
+
"api.component.release.deprecated": string;
|
|
94
|
+
"api.component.unavailable": string;
|
|
95
|
+
"api.component.loading": string;
|
|
96
|
+
"api.component.not.found": string;
|
|
97
|
+
"content.tabs.default": string;
|
|
98
|
+
"content.footer.last.updated": string;
|
|
99
|
+
"content.footer.actions.edit": string;
|
|
100
|
+
"content.footer.actions.previous": string;
|
|
101
|
+
"content.footer.actions.next": string;
|
|
102
|
+
"search.not.found": string;
|
|
103
|
+
"search.loading": string;
|
|
104
|
+
"layout.sidebar.btn": string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const components: null;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IDemoData, IRouteMeta } from 'dumi/dist/client/theme-api/types';
|
|
2
|
+
type ReactPromise<T> = Promise<T> & {
|
|
3
|
+
status?: 'pending' | 'fulfilled' | 'rejected';
|
|
4
|
+
value?: T;
|
|
5
|
+
reason?: any;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @private Internal usage. Safe to remove
|
|
9
|
+
*/
|
|
10
|
+
export declare function use<T>(promise: ReactPromise<T>): T;
|
|
11
|
+
/**
|
|
12
|
+
* use demo data by id
|
|
13
|
+
*/
|
|
14
|
+
export declare function useDemo(id: string): IDemoData | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* get all demos
|
|
17
|
+
*/
|
|
18
|
+
export declare function getFullDemos(): Promise<Record<string, IDemoData>>;
|
|
19
|
+
/**
|
|
20
|
+
* get route meta by id
|
|
21
|
+
*/
|
|
22
|
+
export declare function getRouteMetaById<T extends {
|
|
23
|
+
syncOnly?: boolean;
|
|
24
|
+
}>(id: string, opts?: T): T extends {
|
|
25
|
+
syncOnly: true;
|
|
26
|
+
} ? IRouteMeta | undefined : Promise<IRouteMeta> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* get all routes meta
|
|
29
|
+
*/
|
|
30
|
+
export declare function getFullRoutesMeta(): Promise<Record<string, IRouteMeta>>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const filesMeta: {
|
|
2
|
+
'docs/index': {
|
|
3
|
+
frontmatter: any;
|
|
4
|
+
toc: any;
|
|
5
|
+
demoIndex: any;
|
|
6
|
+
textGetter: () => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
'components/TerminalViewer/index.zh-CN': {
|
|
9
|
+
frontmatter: any;
|
|
10
|
+
toc: any;
|
|
11
|
+
demoIndex: any;
|
|
12
|
+
textGetter: () => Promise<any>;
|
|
13
|
+
};
|
|
14
|
+
'components/TerminalViewerBody/index.zh-CN': {
|
|
15
|
+
frontmatter: any;
|
|
16
|
+
toc: any;
|
|
17
|
+
demoIndex: any;
|
|
18
|
+
textGetter: () => Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
'components/TerminalViewerHeader/index.zh-CN': {
|
|
21
|
+
frontmatter: any;
|
|
22
|
+
toc: any;
|
|
23
|
+
demoIndex: any;
|
|
24
|
+
textGetter: () => Promise<any>;
|
|
25
|
+
};
|
|
26
|
+
'components/TerminalViewerToolBar/index.zh-CN': {
|
|
27
|
+
frontmatter: any;
|
|
28
|
+
toc: any;
|
|
29
|
+
demoIndex: any;
|
|
30
|
+
textGetter: () => Promise<any>;
|
|
31
|
+
};
|
|
32
|
+
'components/TerminalViewerVirtualDom/index.zh-CN': {
|
|
33
|
+
frontmatter: any;
|
|
34
|
+
toc: any;
|
|
35
|
+
demoIndex: any;
|
|
36
|
+
textGetter: () => Promise<any>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export { tabs as tabsMeta } from './tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabs: {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { defineApp } from './core/defineApp';
|
|
2
|
+
export type { RuntimeConfig } from './core/defineApp';
|
|
3
|
+
export { getSketchJSON } from 'D:/workspace/gitee-terminal-viewer/.dumi/tmp/plugin-html2sketch';
|
|
4
|
+
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, useLoaderData, useRouteProps, useSelectedRoutes, useServerLoaderData, renderClient, __getRoot, Link, useRouteData, __useFetcher, withRouter } from 'D:/workspace/gitee-terminal-viewer/node_modules/@umijs/renderer-react';
|
|
5
|
+
export type { History, ClientLoader } from 'D:/workspace/gitee-terminal-viewer/node_modules/@umijs/renderer-react';
|
|
6
|
+
export { ApplyPluginsType, PluginManager } from 'D:/workspace/gitee-terminal-viewer/node_modules/umi/client/client/plugin.js';
|
|
7
|
+
export { history, createHistory } from './core/history';
|
|
8
|
+
export { terminal } from './core/terminal';
|
|
9
|
+
export declare const useServerInsertedHTML: Function;
|
|
10
|
+
export { TestBrowser } from './testBrowser';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSketchJSON: null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Location } from 'history';
|
|
3
|
+
type TestBrowserProps = {
|
|
4
|
+
location?: Partial<Location>;
|
|
5
|
+
historyRef?: React.MutableRefObject<Location>;
|
|
6
|
+
};
|
|
7
|
+
export declare function TestBrowser(props: TestBrowserProps): React.JSX.Element;
|
|
8
|
+
export {};
|