修改Android文档

This commit is contained in:
SL 2023-07-01 19:40:34 +08:00
parent 01af5510dd
commit 501bd14eb1
55 changed files with 1757 additions and 0 deletions

View File

@ -0,0 +1,9 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React from 'react';
import { Outlet, useOutletContext } from 'umi';
export default function EmptyRoute() {
const context = useOutletContext();
return <Outlet context={context} />;
}

View File

@ -0,0 +1,16 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
interface IDefaultRuntimeConfig {
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
patchRoutes?: (props: { routes: any }) => void;
patchClientRoutes?: (props: { routes: any }) => void;
render?: (oldRender: () => void) => void;
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
[key: string]: any;
}
export type RuntimeConfig = IDefaultRuntimeConfig
export function defineApp(config: RuntimeConfig): RuntimeConfig {
return config;
}

View File

@ -0,0 +1,11 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export function modifyClientRenderOpts(memo: any) {
const { history, hydrate } = memo;
return {
...memo,
hydrate: hydrate && ![].includes(history.location.pathname),
};
}

10
.dumi/tmp/core/helmet.ts Normal file
View File

@ -0,0 +1,10 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React from 'react';
import { HelmetProvider } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react';
import { context } from './helmetContext';
export const innerProvider = (container) => {
return React.createElement(HelmetProvider, { context }, container);
}

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export const context = {};

65
.dumi/tmp/core/history.ts Normal file
View File

@ -0,0 +1,65 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react';
import type { UmiHistory } from './historyIntelli';
let history: UmiHistory;
let basename: string = '/';
export function createHistory(opts: any) {
let h;
if (opts.type === 'hash') {
h = createHashHistory();
} else if (opts.type === 'memory') {
h = createMemoryHistory(opts);
} else {
h = createBrowserHistory();
}
if (opts.basename) {
basename = opts.basename;
}
history = {
...h,
push(to, state) {
h.push(patchTo(to, h), state);
},
replace(to, state) {
h.replace(patchTo(to, h), state);
},
get location() {
return h.location;
},
get action() {
return h.action;
}
}
return h;
}
// Patch `to` to support basename
// Refs:
// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
function patchTo(to: any, h: History) {
if (typeof to === 'string') {
return `${stripLastSlash(basename)}${to}`;
} else if (typeof to === 'object') {
const currentPathname = h.location.pathname;
return {
...to,
pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,
};
} else {
throw new Error(`Unexpected to: ${to}`);
}
}
function stripLastSlash(path) {
return path.slice(-1) === '/' ? path.slice(0, -1) : path;
}
export { history };

View File

@ -0,0 +1,130 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { getRoutes } from './route'
import type { History } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react'
type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
type AllRoute = Routes[keyof Routes]
type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true
// show `/` in not `layout / wrapper` only
type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
? 'isWrapper' extends keyof Item
? never
: 'isLayout' extends keyof Item
? never
: Item
: never
type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>
type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
? '/'
: never
type GetChildrens<T extends any> = T extends any
? IsRoot<T> extends true
? never
: T
: never
type Childrens = GetChildrens<AllRoute>
type Root = Exclude<AllRoute, Childrens>
type AllIds = AllRoute['id']
type GetChildrensByParentId<
Id extends AllIds,
Item = AllRoute
> = Item extends any
? 'parentId' extends keyof Item
? Item['parentId'] extends Id
? Item
: never
: never
: never
type RouteObject<
Id extends AllIds,
Item = GetChildrensByParentId<Id>
> = IsNever<Item> extends true
? ''
: Item extends AllRoute
? {
[Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
RouteObject<Item['id']>
>
}
: never
type GetRootRouteObject<Item extends Root> = Item extends Root
? {
[K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>
}
: never
type MergedResult = UnionMerge<GetRootRouteObject<Root>>
// --- patch history types ---
type HistoryTo = Parameters<History['push']>['0']
type HistoryPath = Exclude<HistoryTo, string>
type UmiPathname = Path<MergedResult> | (string & {})
interface UmiPath extends HistoryPath {
pathname: UmiPathname
}
type UmiTo = UmiPathname | UmiPath
type UmiPush = (to: UmiTo, state?: any) => void
type UmiReplace = (to: UmiTo, state?: any) => void
export interface UmiHistory extends History {
push: UmiPush
replace: UmiReplace
}
// --- type utils ---
type TrimLeftSlash<T extends string> = T extends `/${infer R}`
? TrimLeftSlash<R>
: T
type TrimRightSlash<T extends string> = T extends `${infer R}/`
? TrimRightSlash<R>
: T
type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>
type IsNever<T> = [T] extends [never] ? true : false
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
? 1
: 2
? true
: false
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
k: infer I
) => void
? I
: never
type UnionMerge<U> = UnionToIntersection<U> extends infer O
? { [K in keyof O]: O[K] }
: never
type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T
type PathConcat<
TKey extends string,
TValue,
N = TrimSlash<TKey>
> = TValue extends string
? ExcludeEmptyKey<N>
:
| ExcludeEmptyKey<N>
| `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
? ''
: '/'}${UnionPath<TValue>}`
type UnionPath<T> = {
[K in keyof T]-?: PathConcat<K & string, T[K]>
}[keyof T]
type MakeSureLeftSlash<T> = T extends any
? `/${TrimRightSlash<T & string>}`
: never
// exclude `/*`, because it always at the top of the IDE tip list
type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname

55
.dumi/tmp/core/plugin.ts Normal file
View File

@ -0,0 +1,55 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
import * as Plugin_1 from '@@/core/helmet.ts';
import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
import { PluginManager } from 'umi';
function __defaultExport (obj) {
if (obj.default) {
return typeof obj.default === 'function' ? obj.default() : obj.default
}
return obj;
}
export function getPlugins() {
return [
{
apply: Plugin_0,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/exportStaticRuntimePlugin.ts',
},
{
apply: Plugin_1,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',
},
{
apply: Plugin_2,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/meta/runtime.ts',
},
{
apply: Plugin_3,
path: process.env.NODE_ENV === 'production' ? void 0 : '@@/dumi/locales/runtime.tsx',
},
];
}
export function getValidKeys() {
return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange',];
}
let pluginManager = null;
export function createPluginManager() {
pluginManager = PluginManager.create({
plugins: getPlugins(),
validKeys: getValidKeys(),
});
return pluginManager;
}
export function getPluginManager() {
return pluginManager;
}

View File

@ -0,0 +1,279 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { IConfigFromPluginsJoi } from "./pluginConfigJoi.d";
interface IConfigTypes {
codeSplitting: {
jsStrategy: "bigVendors" | "depPerChunk" | "granularChunks";
jsStrategyOptions?: ({
} | undefined);
cssStrategy?: ("mergeAll" | undefined);
cssStrategyOptions?: ({
} | undefined);
};
title: string;
styles: Array<string | {
src?: (string | undefined);
} | {
content?: (string | undefined);
} | { [x: string]: any }>;
scripts: Array<string | {
src?: (string | undefined);
} | {
content?: (string | undefined);
} | { [x: string]: any }>;
routes: Array<{
component?: (string | undefined);
layout?: (false | undefined);
path?: (string | undefined);
redirect?: (string | undefined);
routes?: IConfigTypes['routes'];
wrappers?: (Array<string> | undefined);
} | { [x: string]: any }>;
reactRouter5Compat: boolean | {
};
presets: Array<string>;
plugins: Array<string>;
npmClient: "pnpm" | "tnpm" | "cnpm" | "yarn" | "npm";
mountElementId: string;
metas: Array<{
charset?: (string | undefined);
content?: (string | undefined);
"http-equiv"?: (string | undefined);
name?: (string | undefined);
} | { [x: string]: any }>;
links: Array<{
crossorigin?: (string | undefined);
href?: (string | undefined);
hreflang?: (string | undefined);
media?: (string | undefined);
referrerpolicy?: (string | undefined);
rel?: (string | undefined);
sizes?: (any | undefined);
title?: (any | undefined);
type?: (any | undefined);
} | { [x: string]: any }>;
historyWithQuery: {
};
history: {
type: "browser" | "hash" | "memory";
};
headScripts: Array<string | {
src?: (string | undefined);
} | {
content?: (string | undefined);
} | { [x: string]: any }>;
esbuildMinifyIIFE: boolean;
conventionRoutes: {
base?: (string | undefined);
exclude?: (Array<any> | undefined);
};
conventionLayout: boolean;
base: string;
analyze: {
};
writeToDisk: boolean;
theme: { [x: string]: any };
targets: { [x: string]: any };
svgr: { [x: string]: any };
svgo: { [x: string]: any } | boolean;
styleLoader: { [x: string]: any };
srcTranspilerOptions: {
esbuild?: ({ [x: string]: any } | undefined);
swc?: ({ [x: string]: any } | undefined);
};
srcTranspiler: "babel" | "esbuild" | "swc" | "none";
sassLoader: { [x: string]: any };
runtimePublicPath: {
};
purgeCSS: { [x: string]: any };
publicPath: string;
proxy: { [x: string]: any } | Array<any>;
postcssLoader: { [x: string]: any };
outputPath: string;
normalCSSLoaderModules: { [x: string]: any };
mfsu: {
cacheDirectory?: (string | undefined);
chainWebpack?: (((...args: any[]) => unknown) | undefined);
esbuild?: (boolean | undefined);
exclude?: (Array<string | any> | undefined);
include?: (Array<string> | undefined);
mfName?: (string | undefined);
remoteAliases?: (Array<string> | undefined);
remoteName?: (string | undefined);
runtimePublicPath?: (boolean | undefined);
shared?: ({ [x: string]: any } | undefined);
strategy?: ("eager" | "normal" | undefined);
} | boolean;
mdx: {
loader?: (string | undefined);
loaderOptions?: ({ [x: string]: any } | undefined);
};
manifest: {
basePath?: (string | undefined);
fileName?: (string | undefined);
};
lessLoader: { [x: string]: any };
jsMinifierOptions: { [x: string]: any };
jsMinifier: "esbuild" | "swc" | "terser" | "uglifyJs" | "none";
inlineLimit: number;
ignoreMomentLocale: boolean;
https: {
cert?: (string | undefined);
hosts?: (Array<string> | undefined);
http2?: (boolean | undefined);
key?: (string | undefined);
};
hash: boolean;
forkTSChecker: { [x: string]: any };
fastRefresh: boolean;
extraPostCSSPlugins: Array<any>;
extraBabelPresets: Array<string | Array<any>>;
extraBabelPlugins: Array<string | Array<any>>;
extraBabelIncludes: Array<string | any>;
externals: { [x: string]: any } | string | ((...args: any[]) => unknown);
esm: {
};
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;
depTranspiler: "babel" | "esbuild" | "swc" | "none";
define: { [x: string]: any };
deadCode: {
context?: (string | undefined);
detectUnusedExport?: (boolean | undefined);
detectUnusedFiles?: (boolean | undefined);
exclude?: (Array<string> | undefined);
failOnHint?: (boolean | undefined);
patterns?: (Array<string> | undefined);
};
cssMinifierOptions: { [x: string]: any };
cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
cssLoaderModules: { [x: string]: any };
cssLoader: { [x: string]: any };
copy: Array<{
from: string;
to: string;
} | string>;
cacheDirectoryPath: string;
babelLoaderCustomize: string;
autoprefixer: { [x: string]: any };
autoCSSModules: boolean;
alias: { [x: string]: any };
crossorigin: boolean | {
includes?: (Array<any> | undefined);
};
esmi: {
cdnOrigin: string;
shimUrl?: (string | undefined);
};
exportStatic: {
extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
};
favicons: Array<string>;
helmet: boolean;
icons: {
autoInstall?: ({
} | undefined);
defaultComponentConfig?: ({
} | undefined);
alias?: ({
} | undefined);
include?: (Array<string> | undefined);
};
mock: {
exclude?: (Array<string> | undefined);
include?: (Array<string> | undefined);
};
mpa: {
template?: (string | undefined);
layout?: (string | undefined);
getConfigFromEntryFile?: (boolean | undefined);
entry?: ({
} | undefined);
};
phantomDependency: {
exclude?: (Array<string> | undefined);
};
polyfill: {
imports?: (Array<string> | undefined);
};
routePrefetch: {
};
terminal: {
};
tmpFiles: boolean;
clientLoader: {
};
routeProps: {
};
ssr: {
serverBuildPath?: (string | undefined);
platform?: (string | undefined);
builder?: ("esbuild" | "webpack" | undefined);
};
lowImport: {
libs?: (Array<any> | undefined);
css?: (string | undefined);
};
vite: {
};
apiRoute: {
platform?: (string | undefined);
};
monorepoRedirect: boolean | {
srcDir?: (Array<string> | undefined);
exclude?: (Array<any> | undefined);
peerDeps?: (boolean | undefined);
};
test: {
};
clickToComponent: {
/** 默认情况下点击将默认编辑器为vscode, 你可以设置编辑器 vscode 或者 vscode-insiders */
editor?: (string | undefined);
};
legacy: {
buildOnly?: (boolean | undefined);
nodeModulesTransform?: (boolean | undefined);
checkOutput?: (boolean | undefined);
};
/** babel class-properties loose
@doc https://umijs.org/docs/api/config#classpropertiesloose */
classPropertiesLoose: boolean | {
};
ui: {
};
verifyCommit: {
scope?: (Array<string> | undefined);
allowEmoji?: (boolean | undefined);
};
run: {
globals?: (Array<string> | undefined);
};
};
type PrettifyWithCloseable<T> = {
[K in keyof T]: T[K] | false;
} & {};
export type IConfigFromPlugins = PrettifyWithCloseable<
IConfigFromPluginsJoi & Partial<IConfigTypes>
>;

52
.dumi/tmp/core/pluginConfigJoi.d.ts vendored Normal file
View File

@ -0,0 +1,52 @@
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
// Created by Umi Plugin
export interface IConfigFromPluginsJoi {
logo?: string
themeConfig?: {
}
extraRehypePlugins?: unknown[]
extraRemarkPlugins?: unknown[]
resolve?: {
docDirs?: unknown[]
atomDirs?: {
type?: string
dir?: string
}[]
entityDirs?: unknown
codeBlockMode?: ("active" | "passive")
entryFile?: string
forceKebabCaseRouting?: boolean
}
autoAlias?: boolean
analytics?: ({
baidu?: string
ga?: string
ga_v2?: string
} | boolean)
locales?: ({
id?: string
name?: string
base?: string
}[] | {
id?: string
name?: string
suffix?: ""
}[])
apiParser?: {
unpkgHost?: string
resolveFilter?: (() => any)
parseOptions?: {
}
}
assets?: {
}
sitemap?: {
hostname?: string
exclude?: string[]
}
}

191
.dumi/tmp/core/polyfill.ts Normal file
View File

@ -0,0 +1,191 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.error.cause.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.aggregate-error.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.aggregate-error.cause.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.at.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.find-last.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.find-last-index.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.push.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.reduce.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.array.reduce-right.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.object.has-own.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.promise.any.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.reflect.to-string-tag.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.regexp.flags.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.string.at-alternative.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.string.replace-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.typed-array.at.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.typed-array.find-last.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.typed-array.find-last-index.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/es.typed-array.set.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.suppressed-error.constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.from-async.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.filter-out.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.filter-reject.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.group.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.group-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.group-by-to-map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.group-to-map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.is-template-object.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.last-index.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.last-item.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.to-reversed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.to-sorted.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.to-spliced.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.unique-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.array.with.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-disposable-stack.constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.async-dispose.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.drop.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.every.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.filter.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.find.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.flat-map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.for-each.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.indexed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.reduce.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.some.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.take.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.async-iterator.to-array.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.bigint.range.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.composite-key.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.composite-symbol.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.disposable-stack.constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.function.is-callable.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.function.is-constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.function.un-this.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.constructor.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.dispose.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.drop.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.every.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.filter.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.find.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.flat-map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.for-each.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.indexed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.reduce.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.some.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.take.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.to-array.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.iterator.to-async.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.delete-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.emplace.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.every.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.filter.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.find.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.find-key.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.group-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.includes.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.key-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.key-of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.map-keys.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.map-values.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.merge.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.reduce.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.some.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.update.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.update-or-insert.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.map.upsert.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.clamp.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.deg-per-rad.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.degrees.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.fscale.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.iaddh.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.imulh.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.isubh.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.rad-per-deg.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.radians.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.scale.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.seeded-prng.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.signbit.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.math.umulh.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.number.from-string.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.number.range.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.object.iterate-entries.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.object.iterate-keys.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.object.iterate-values.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.observable.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.promise.try.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.define-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.delete-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.get-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.get-metadata-keys.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.get-own-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.get-own-metadata-keys.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.has-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.has-own-metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.reflect.metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.add-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.delete-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.difference.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.difference.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.every.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.filter.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.find.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.intersection.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.intersection.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-disjoint-from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-subset-of.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-subset-of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-superset-of.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.is-superset-of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.join.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.map.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.reduce.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.some.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.symmetric-difference.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.union.v2.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.set.union.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.at.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.cooked.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.code-points.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.dedent.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.is-well-formed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.string.to-well-formed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.async-dispose.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.dispose.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.matcher.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.metadata.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.metadata-key.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.observable.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.pattern-match.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.symbol.replace-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.from-async.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.filter-out.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.filter-reject.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.group-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.to-reversed.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.to-sorted.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.to-spliced.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.unique-by.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.typed-array.with.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-map.delete-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-map.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-map.of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-map.emplace.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-map.upsert.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-set.add-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-set.delete-all.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-set.from.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/esnext.weak-set.of.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/web.dom-exception.stack.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/web.immediate.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/web.self.js";
import "/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/core-js/modules/web.structured-clone.js";
import '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/regenerator-runtime/runtime.js';
export {};

46
.dumi/tmp/core/route.tsx Normal file
View File

@ -0,0 +1,46 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React from 'react';
export async function getRoutes() {
const routes = {"404":{"id":"404","path":"*","parentId":"DocLayout"},"dumi-context-layout":{"id":"dumi-context-layout","path":"/","isLayout":true},"DocLayout":{"id":"DocLayout","path":"/","parentId":"dumi-context-layout","isLayout":true},"index":{"path":"","id":"index","parentId":"DocLayout"},"docs/sdk/Javascript/index":{"path":"sdk/javascript","id":"docs/sdk/Javascript/index","parentId":"DocLayout"},"docs/guide/integration":{"path":"guide/integration","id":"docs/guide/integration","parentId":"DocLayout"},"docs/sdk/Android/index":{"path":"sdk/android","id":"docs/sdk/Android/index","parentId":"DocLayout"},"docs/sdk/Flutter/index":{"path":"sdk/flutter","id":"docs/sdk/Flutter/index","parentId":"DocLayout"},"docs/api/conversation":{"path":"api/conversation","id":"docs/api/conversation","parentId":"DocLayout"},"docs/guide/fullconfig":{"path":"guide/fullconfig","id":"docs/guide/fullconfig","parentId":"DocLayout"},"docs/guide/initialize":{"path":"guide/initialize","id":"docs/guide/initialize","parentId":"DocLayout"},"docs/guide/quickstart":{"path":"guide/quickstart","id":"docs/guide/quickstart","parentId":"DocLayout"},"docs/sdk/uniapp/index":{"path":"sdk/uniapp","id":"docs/sdk/uniapp/index","parentId":"DocLayout"},"docs/api/datasource":{"path":"api/datasource","id":"docs/api/datasource","parentId":"DocLayout"},"docs/sdk/iOS/index":{"path":"sdk/i-os","id":"docs/sdk/iOS/index","parentId":"DocLayout"},"docs/guide/others":{"path":"guide/others","id":"docs/guide/others","parentId":"DocLayout"},"docs/guide/stress":{"path":"guide/stress","id":"docs/guide/stress","parentId":"DocLayout"},"docs/api/channel":{"path":"api/channel","id":"docs/api/channel","parentId":"DocLayout"},"docs/api/message":{"path":"api/message","id":"docs/api/message","parentId":"DocLayout"},"docs/api/webhook":{"path":"api/webhook","id":"docs/api/webhook","parentId":"DocLayout"},"docs/guide/guide":{"path":"guide/guide","id":"docs/guide/guide","parentId":"DocLayout"},"docs/guide/index":{"path":"guide","id":"docs/guide/index","parentId":"DocLayout"},"docs/guide/proto":{"path":"guide/proto","id":"docs/guide/proto","parentId":"DocLayout"},"docs/guide/scene":{"path":"guide/scene","id":"docs/guide/scene","parentId":"DocLayout"},"docs/sdk/C/index":{"path":"sdk/c","id":"docs/sdk/C/index","parentId":"DocLayout"},"docs/guide/demo":{"path":"guide/demo","id":"docs/guide/demo","parentId":"DocLayout"},"docs/api/index":{"path":"api","id":"docs/api/index","parentId":"DocLayout"},"docs/guide/cli":{"path":"guide/cli","id":"docs/guide/cli","parentId":"DocLayout"},"docs/guide/wss":{"path":"guide/wss","id":"docs/guide/wss","parentId":"DocLayout"},"docs/sdk/index":{"path":"sdk","id":"docs/sdk/index","parentId":"DocLayout"},"docs/api/user":{"path":"api/user","id":"docs/api/user","parentId":"DocLayout"},"docs/index":{"path":"","id":"docs/index","parentId":"DocLayout"},"demo-render":{"id":"demo-render","path":"~demos/:id","parentId":"dumi-context-layout"}} as const;
return {
routes,
routeComponents: {
'404': React.lazy(() => import(/* webpackChunkName: "dumi__pages__404" */'@/dumi__pages/404')),
'dumi-context-layout': React.lazy(() => import(/* webpackChunkName: "dumi__theme__ContextWrapper" */'@/dumi__theme/ContextWrapper')),
'DocLayout': React.lazy(() => import(/* webpackChunkName: "dumi__theme__layouts__DocLayout" */'@/dumi__theme/layouts/DocLayout')),
'index': React.lazy(() => import(/* webpackChunkName: "dumi__pages__index" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/.dumi/pages/index.tsx')),
'docs/sdk/Javascript/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__Javascript__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Javascript/index.md')),
'docs/guide/integration': React.lazy(() => import(/* webpackChunkName: "docs__guide__integration.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/integration.md')),
'docs/sdk/Android/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__Android__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Android/index.md')),
'docs/sdk/Flutter/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__Flutter__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Flutter/index.md')),
'docs/api/conversation': React.lazy(() => import(/* webpackChunkName: "docs__api__conversation.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/conversation.md')),
'docs/guide/fullconfig': React.lazy(() => import(/* webpackChunkName: "docs__guide__fullconfig.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/fullconfig.md')),
'docs/guide/initialize': React.lazy(() => import(/* webpackChunkName: "docs__guide__initialize.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/initialize.md')),
'docs/guide/quickstart': React.lazy(() => import(/* webpackChunkName: "docs__guide__quickstart.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/quickstart.md')),
'docs/sdk/uniapp/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__uniapp__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/uniapp/index.md')),
'docs/api/datasource': React.lazy(() => import(/* webpackChunkName: "docs__api__datasource.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/datasource.md')),
'docs/sdk/iOS/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__iOS__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/iOS/index.md')),
'docs/guide/others': React.lazy(() => import(/* webpackChunkName: "docs__guide__others.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/others.md')),
'docs/guide/stress': React.lazy(() => import(/* webpackChunkName: "docs__guide__stress.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/stress.md')),
'docs/api/channel': React.lazy(() => import(/* webpackChunkName: "docs__api__channel.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/channel.md')),
'docs/api/message': React.lazy(() => import(/* webpackChunkName: "docs__api__message.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/message.md')),
'docs/api/webhook': React.lazy(() => import(/* webpackChunkName: "docs__api__webhook.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/webhook.md')),
'docs/guide/guide': React.lazy(() => import(/* webpackChunkName: "docs__guide__guide.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/guide.md')),
'docs/guide/index': React.lazy(() => import(/* webpackChunkName: "docs__guide__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/index.md')),
'docs/guide/proto': React.lazy(() => import(/* webpackChunkName: "docs__guide__proto.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/proto.md')),
'docs/guide/scene': React.lazy(() => import(/* webpackChunkName: "docs__guide__scene.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/scene.md')),
'docs/sdk/C/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__C__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/C/index.md')),
'docs/guide/demo': React.lazy(() => import(/* webpackChunkName: "docs__guide__demo.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/demo.md')),
'docs/api/index': React.lazy(() => import(/* webpackChunkName: "docs__api__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/index.md')),
'docs/guide/cli': React.lazy(() => import(/* webpackChunkName: "docs__guide__cli.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/cli.md')),
'docs/guide/wss': React.lazy(() => import(/* webpackChunkName: "docs__guide__wss.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/wss.md')),
'docs/sdk/index': React.lazy(() => import(/* webpackChunkName: "docs__sdk__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/index.md')),
'docs/api/user': React.lazy(() => import(/* webpackChunkName: "docs__api__user.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/user.md')),
'docs/index': React.lazy(() => import(/* webpackChunkName: "docs__index.md" */'/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/index.md')),
'demo-render': React.lazy(() => import(/* webpackChunkName: "dumi__pages__Demo" */'@/dumi__pages/Demo')),
},
};
}

View File

@ -0,0 +1,37 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
let count = 0;
let groupLevel = 0;
function send(type: string, message?: string) {
if(process.env.NODE_ENV==='production'){
return;
}else{
const encodedMessage = message ? `&m=${encodeURI(message)}` : '';
fetch(`/__umi/api/terminal?type=${type}&t=${Date.now()}&c=${count++}&g=${groupLevel}${encodedMessage}`, { mode: 'no-cors' })
}
}
function prettyPrint(obj: any) {
return JSON.stringify(obj, null, 2);
}
function stringifyObjs(objs: any[]) {
const obj = objs.length > 1 ? objs.map(stringify).join(' ') : objs[0];
return typeof obj === 'object' ? `${prettyPrint(obj)}` : obj.toString();
}
function stringify(obj: any) {
return typeof obj === 'object' ? `${JSON.stringify(obj)}` : obj.toString();
}
const terminal = {
log(...objs: any[]) { send('log', stringifyObjs(objs)) },
info(...objs: any[]) { send('info', stringifyObjs(objs)) },
warn(...objs: any[]) { send('warn', stringifyObjs(objs)) },
error(...objs: any[]) { send('error', stringifyObjs(objs)) },
group() { groupLevel++ },
groupCollapsed() { groupLevel++ },
groupEnd() { groupLevel && --groupLevel },
clear() { send('clear') },
trace(...args: any[]) { console.trace(...args) },
profile(...args: any[]) { console.profile(...args) },
profileEnd(...args: any[]) { console.profileEnd(...args) },
};
export { terminal };

View File

@ -0,0 +1,5 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export * from '../exports';
export * from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/dist/client/theme-api/index.js';

View File

@ -0,0 +1,78 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export const locales = [
{
"id": "zh-CN",
"name": "中文",
"base": "/"
}
];
export const messages = {
"en-US": {
"header.search.placeholder": "Type keywords...",
"header.color.mode.light": "Light Mode",
"header.color.mode.dark": "Dark Mode",
"header.color.mode.auto": "Follow System",
"header.social.github": "GitHub",
"header.social.weibo": "Weibo",
"header.social.twitter": "Twitter",
"header.social.gitlab": "GitLab",
"header.social.facebook": "Facebook",
"header.social.zhihu": "Zhihu",
"header.social.yuque": "Yuque",
"header.social.linkedin": "Linkedin",
"previewer.actions.code.expand": "Show Code",
"previewer.actions.code.shrink": "Hide Code",
"previewer.actions.codesandbox": "Open in CodeSandbox",
"previewer.actions.codepen": "Open in CodePen (Not implemented)",
"previewer.actions.stackblitz": "Open in StackBlitz",
"previewer.actions.separate": "Open in separate page",
"404.title": "PAGE NOT FOUND",
"404.back": "Back to homepage",
"api.component.name": "Name",
"api.component.description": "Description",
"api.component.type": "Type",
"api.component.default": "Default",
"api.component.required": "(required)",
"api.component.unavailable": "apiParser must be enabled to use auto-generated API",
"api.component.loading": "Properties definition is resolving, wait a moment...",
"api.component.not.found": "Properties definition not found for {id} component",
"content.tabs.default": "Doc",
"search.not.found": "No content was found",
"layout.sidebar.btn": "Sidebar"
},
"zh-CN": {
"header.search.placeholder": "输入关键字搜索...",
"header.color.mode.light": "亮色模式",
"header.color.mode.dark": "暗色模式",
"header.color.mode.auto": "跟随系统",
"header.social.github": "GitHub",
"header.social.weibo": "微博",
"header.social.twitter": "Twitter",
"header.social.gitlab": "GitLab",
"header.social.facebook": "Facebook",
"header.social.zhihu": "知乎",
"header.social.yuque": "语雀",
"header.social.linkedin": "Linkedin",
"previewer.actions.code.expand": "展开代码",
"previewer.actions.code.shrink": "收起代码",
"previewer.actions.codesandbox": "在 CodeSandbox 中打开",
"previewer.actions.codepen": "在 CodePen 中打开(未实现)",
"previewer.actions.stackblitz": "在 StackBlitz 中打开",
"previewer.actions.separate": "在独立页面中打开",
"404.title": "页面未找到",
"404.back": "返回首页",
"api.component.name": "属性名",
"api.component.description": "描述",
"api.component.type": "类型",
"api.component.default": "默认值",
"api.component.required": "(必选)",
"api.component.unavailable": "必须启用 apiParser 才能使用自动 API 特性",
"api.component.loading": "属性定义正在解析中,稍等片刻...",
"api.component.not.found": "未找到 {id} 组件的属性定义",
"content.tabs.default": "文档",
"search.not.found": "未找到相关内容",
"layout.sidebar.btn": "侧边菜单"
}
};

View File

@ -0,0 +1,39 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { history } from 'dumi';
import React, { useState, useLayoutEffect, useCallback, type ReactNode } from 'react';
import { RawIntlProvider, createIntl, createIntlCache } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/react-intl';
import { useIsomorphicLayoutEffect } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/dist/client/theme-api/utils.js'
import { locales, messages } from './config';
const cache = createIntlCache();
const LocalesContainer: FC<{ children: ReactNode }> = (props) => {
const getIntl = useCallback(() => {
const matched = locales.slice().reverse().find((locale) => (
'suffix' in locale
// suffix mode
? history.location.pathname.replace(/([^/])\/$/, '$1').endsWith(locale.suffix)
// base mode
: history.location.pathname.replace(/([^/])\/$/, '$1')
.startsWith("" + locale.base)
));
const locale = matched ? matched.id : locales[0].id;
return createIntl({ locale, messages: messages[locale] || {} }, cache);
}, []);
const [intl, setIntl] = useState(() => getIntl());
useIsomorphicLayoutEffect(() => {
return history.listen(() => {
setIntl(getIntl());
});
}, []);
return <RawIntlProvider value={intl} key={intl.locale}>{props.children}</RawIntlProvider>;
}
export function i18nProvider(container: Element) {
return React.createElement(LocalesContainer, null, container);
}

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export const components = null;

View File

@ -0,0 +1,227 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { demos as dm0, frontmatter as fm0, toc as toc0, texts as txt0 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/.dumi/pages/index.tsx?type=meta';
import { demos as dm1, frontmatter as fm1, toc as toc1, texts as txt1 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Javascript/index.md?type=meta';
import { demos as dm2, frontmatter as fm2, toc as toc2, texts as txt2 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/integration.md?type=meta';
import { demos as dm3, frontmatter as fm3, toc as toc3, texts as txt3 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Android/index.md?type=meta';
import { demos as dm4, frontmatter as fm4, toc as toc4, texts as txt4 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/Flutter/index.md?type=meta';
import { demos as dm5, frontmatter as fm5, toc as toc5, texts as txt5 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/conversation.md?type=meta';
import { demos as dm6, frontmatter as fm6, toc as toc6, texts as txt6 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/fullconfig.md?type=meta';
import { demos as dm7, frontmatter as fm7, toc as toc7, texts as txt7 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/initialize.md?type=meta';
import { demos as dm8, frontmatter as fm8, toc as toc8, texts as txt8 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/quickstart.md?type=meta';
import { demos as dm9, frontmatter as fm9, toc as toc9, texts as txt9 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/uniapp/index.md?type=meta';
import { demos as dm10, frontmatter as fm10, toc as toc10, texts as txt10 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/datasource.md?type=meta';
import { demos as dm11, frontmatter as fm11, toc as toc11, texts as txt11 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/iOS/index.md?type=meta';
import { demos as dm12, frontmatter as fm12, toc as toc12, texts as txt12 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/others.md?type=meta';
import { demos as dm13, frontmatter as fm13, toc as toc13, texts as txt13 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/stress.md?type=meta';
import { demos as dm14, frontmatter as fm14, toc as toc14, texts as txt14 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/channel.md?type=meta';
import { demos as dm15, frontmatter as fm15, toc as toc15, texts as txt15 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/message.md?type=meta';
import { demos as dm16, frontmatter as fm16, toc as toc16, texts as txt16 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/webhook.md?type=meta';
import { demos as dm17, frontmatter as fm17, toc as toc17, texts as txt17 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/guide.md?type=meta';
import { demos as dm18, frontmatter as fm18, toc as toc18, texts as txt18 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/index.md?type=meta';
import { demos as dm19, frontmatter as fm19, toc as toc19, texts as txt19 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/proto.md?type=meta';
import { demos as dm20, frontmatter as fm20, toc as toc20, texts as txt20 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/scene.md?type=meta';
import { demos as dm21, frontmatter as fm21, toc as toc21, texts as txt21 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/C/index.md?type=meta';
import { demos as dm22, frontmatter as fm22, toc as toc22, texts as txt22 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/demo.md?type=meta';
import { demos as dm23, frontmatter as fm23, toc as toc23, texts as txt23 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/index.md?type=meta';
import { demos as dm24, frontmatter as fm24, toc as toc24, texts as txt24 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/cli.md?type=meta';
import { demos as dm25, frontmatter as fm25, toc as toc25, texts as txt25 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/guide/wss.md?type=meta';
import { demos as dm26, frontmatter as fm26, toc as toc26, texts as txt26 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/sdk/index.md?type=meta';
import { demos as dm27, frontmatter as fm27, toc as toc27, texts as txt27 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/api/user.md?type=meta';
import { demos as dm28, frontmatter as fm28, toc as toc28, texts as txt28 } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/docs/index.md?type=meta';
export { components } from './atoms';
export { tabs } from './tabs';
export const filesMeta = {
'index': {
frontmatter: fm0,
toc: toc0,
texts: txt0,
demos: dm0,
},
'docs/sdk/Javascript/index': {
frontmatter: fm1,
toc: toc1,
texts: txt1,
demos: dm1,
},
'docs/guide/integration': {
frontmatter: fm2,
toc: toc2,
texts: txt2,
demos: dm2,
},
'docs/sdk/Android/index': {
frontmatter: fm3,
toc: toc3,
texts: txt3,
demos: dm3,
},
'docs/sdk/Flutter/index': {
frontmatter: fm4,
toc: toc4,
texts: txt4,
demos: dm4,
},
'docs/api/conversation': {
frontmatter: fm5,
toc: toc5,
texts: txt5,
demos: dm5,
},
'docs/guide/fullconfig': {
frontmatter: fm6,
toc: toc6,
texts: txt6,
demos: dm6,
},
'docs/guide/initialize': {
frontmatter: fm7,
toc: toc7,
texts: txt7,
demos: dm7,
},
'docs/guide/quickstart': {
frontmatter: fm8,
toc: toc8,
texts: txt8,
demos: dm8,
},
'docs/sdk/uniapp/index': {
frontmatter: fm9,
toc: toc9,
texts: txt9,
demos: dm9,
},
'docs/api/datasource': {
frontmatter: fm10,
toc: toc10,
texts: txt10,
demos: dm10,
},
'docs/sdk/iOS/index': {
frontmatter: fm11,
toc: toc11,
texts: txt11,
demos: dm11,
},
'docs/guide/others': {
frontmatter: fm12,
toc: toc12,
texts: txt12,
demos: dm12,
},
'docs/guide/stress': {
frontmatter: fm13,
toc: toc13,
texts: txt13,
demos: dm13,
},
'docs/api/channel': {
frontmatter: fm14,
toc: toc14,
texts: txt14,
demos: dm14,
},
'docs/api/message': {
frontmatter: fm15,
toc: toc15,
texts: txt15,
demos: dm15,
},
'docs/api/webhook': {
frontmatter: fm16,
toc: toc16,
texts: txt16,
demos: dm16,
},
'docs/guide/guide': {
frontmatter: fm17,
toc: toc17,
texts: txt17,
demos: dm17,
},
'docs/guide/index': {
frontmatter: fm18,
toc: toc18,
texts: txt18,
demos: dm18,
},
'docs/guide/proto': {
frontmatter: fm19,
toc: toc19,
texts: txt19,
demos: dm19,
},
'docs/guide/scene': {
frontmatter: fm20,
toc: toc20,
texts: txt20,
demos: dm20,
},
'docs/sdk/C/index': {
frontmatter: fm21,
toc: toc21,
texts: txt21,
demos: dm21,
},
'docs/guide/demo': {
frontmatter: fm22,
toc: toc22,
texts: txt22,
demos: dm22,
},
'docs/api/index': {
frontmatter: fm23,
toc: toc23,
texts: txt23,
demos: dm23,
},
'docs/guide/cli': {
frontmatter: fm24,
toc: toc24,
texts: txt24,
demos: dm24,
},
'docs/guide/wss': {
frontmatter: fm25,
toc: toc25,
texts: txt25,
demos: dm25,
},
'docs/sdk/index': {
frontmatter: fm26,
toc: toc26,
texts: txt26,
demos: dm26,
},
'docs/api/user': {
frontmatter: fm27,
toc: toc27,
texts: txt27,
demos: dm27,
},
'docs/index': {
frontmatter: fm28,
toc: toc28,
texts: txt28,
demos: dm28,
},
}
// generate demos data in runtime, for reuse route.id to reduce bundle size
export const demos = Object.entries(filesMeta).reduce((acc, [id, meta]) => {
// append route id to demo
Object.values(meta.demos).forEach((demo) => {
demo.routeId = id;
});
// merge demos
Object.assign(acc, meta.demos);
// remove demos from meta, to avoid deep clone demos in umi routes/children compatible logic
delete meta.demos;
return acc;
}, {});

View File

@ -0,0 +1,31 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import { filesMeta, tabs } from '.';
import deepmerge from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/deepmerge';
export const patchRoutes = ({ routes }) => {
Object.values(routes).forEach((route) => {
if (filesMeta[route.id]) {
if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || filesMeta[route.id].frontmatter.debug)) {
// hide route in production which set hide frontmatter
delete routes[route.id];
} else {
// merge meta to route object
route.meta = deepmerge(route.meta, filesMeta[route.id]);
// apply real tab data from id
route.meta.tabs = route.meta.tabs?.map((id) => {
const meta = {
frontmatter: { title: tabs[id].title },
toc: [],
texts: [],
}
return {
...tabs[id],
meta: filesMeta[id] || meta,
}
});
}
}
});
}

View File

@ -0,0 +1,5 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export const tabs = {
}

View File

@ -0,0 +1,56 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React, { useState, useEffect, useRef } from 'react';
import { useOutlet, history } from 'dumi';
import nprogress from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/nprogress';
import './nprogress.css';
import { SiteContext } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/dist/client/theme-api/context.js';
import { demos, components } from '../meta';
import { locales } from '../locales/config';
const entryExports = {
};
export default function DumiContextWrapper() {
const outlet = useOutlet();
const [loading, setLoading] = useState(true);
const prev = useRef(history.location.pathname);
useEffect(() => {
return history.listen((next) => {
if (next.location.pathname !== prev.current) {
prev.current = next.location.pathname;
// mark loading when route change, page component will set false when loaded
setLoading(true);
// start nprogress
nprogress.start();
// scroll to top when route changed
document.documentElement.scrollTo(0, 0);
}
});
}, []);
return (
<SiteContext.Provider value={{
pkg: {"name":"WuKongIMDocs","description":"Docs For WuKongIM","version":"0.0.1","license":"MIT","authors":["tt@gmail.com"]},
historyType: "browser",
entryExports,
demos,
components,
locales,
loading,
setLoading,
themeConfig: {"footer":"Copyright © 2023 | Powered by 悟空IM | <a href='https://beian.miit.gov.cn/' style='color:gray'>ICP备案号沪ICP备2021032718号-2</a>","prefersColor":{"default":"light","switch":true},"nprogress":true,"logo":"/logo.png","name":"悟空IM","hd":{"rules":[]},"socialLinks":{"github":"https://github.com/WuKongIM/WuKongIM"}},
}}>
{outlet}
</SiteContext.Provider>
);
}

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/API/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/Badge/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/Container/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/Previewer/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/SourceCode/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/builtins/Table/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/layouts/DocLayout/index.js';

View File

@ -0,0 +1,59 @@
/* https://unpkg.com/browse/nprogress@0.2.0/nprogress.css */
#nprogress {
pointer-events: none;
}
#nprogress .bar {
background: var;
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
}
#nprogress .peg {
display: block;
position: absolute;
right: 0px;
width: 100px;
height: 100%;
box-shadow: 0 0 10px #1677ff, 0 0 5px #1677ff;
opacity: 1.0;
transform: rotate(3deg) translate(0px, -4px);
}
#nprogress .spinner {
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}
#nprogress .spinner-icon {
width: 18px;
height: 18px;
box-sizing: border-box;
border: solid 2px transparent;
border-top-color: #1677ff;
border-left-color: #1677ff;
border-radius: 50%;
animation: nprogress-spinner 400ms linear infinite;
}
.nprogress-custom-parent {
overflow: hidden;
position: relative;
}
.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
position: absolute;
}
@keyframes nprogress-spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/ColorSwitch/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Content/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/ContentTabs/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Features/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Footer/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/HeadeExtra/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Header/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Hero/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/HeroTitle/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/LangSwitch/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Logo/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Navbar/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/NavbarExtra/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/NotFound/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/PreviewerActions/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/PreviewerActionsExtra/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/RtlSwitch/index.js';

View File

@ -0,0 +1,5 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/SearchBar/index.js';
export * from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/SearchBar/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/SearchResult/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Sidebar/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/SocialIcon/index.js';

View File

@ -0,0 +1,4 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { default } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/dumi/theme-default/slots/Toc/index.js';

15
.dumi/tmp/exports.ts Normal file
View File

@ -0,0 +1,15 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
export { defineApp } from './core/defineApp'
export type { RuntimeConfig } from './core/defineApp'
// @umijs/renderer-*
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 '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react';
export type { History } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react'
// umi/client/client/plugin
export { ApplyPluginsType, PluginManager } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/umi/client/client/plugin.js';
export { history, createHistory } from './core/history';
export { terminal } from './core/terminal';
export { TestBrowser } from './testBrowser';
// plugins
// plugins types.d.ts

87
.dumi/tmp/testBrowser.tsx Normal file
View File

@ -0,0 +1,87 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import React, { useEffect, useState } from 'react';
import { ApplyPluginsType } from 'umi';
import { renderClient, RenderClientOpts } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react';
import { createHistory } from './core/history';
import { createPluginManager } from './core/plugin';
import { getRoutes } from './core/route';
import type { Location } from 'history';
import '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/.dumi/global.ts';
const publicPath = '/';
const runtimePublicPath = false;
type TestBrowserProps = {
location?: Partial<Location>;
historyRef?: React.MutableRefObject<Location>;
};
export function TestBrowser(props: TestBrowserProps) {
const pluginManager = createPluginManager();
const [context, setContext] = useState<RenderClientOpts | undefined>(
undefined
);
useEffect(() => {
const genContext = async () => {
const { routes, routeComponents } = await getRoutes(pluginManager);
// allow user to extend routes
await pluginManager.applyPlugins({
key: 'patchRoutes',
type: ApplyPluginsType.event,
args: {
routes,
routeComponents,
},
});
const contextOpts = pluginManager.applyPlugins({
key: 'modifyContextOpts',
type: ApplyPluginsType.modify,
initialValue: {},
});
const basename = contextOpts.basename || '/';
const history = createHistory({
type: 'memory',
basename,
});
const context = {
routes,
routeComponents,
pluginManager,
rootElement: contextOpts.rootElement || document.getElementById('root'),
publicPath,
runtimePublicPath,
history,
basename,
components: true,
};
const modifiedContext = pluginManager.applyPlugins({
key: 'modifyClientRenderOpts',
type: ApplyPluginsType.modify,
initialValue: context,
});
return modifiedContext;
};
genContext().then((context) => {
setContext(context);
if (props.location) {
context?.history?.push(props.location);
}
if (props.historyRef) {
props.historyRef.current = context?.history;
}
});
}, []);
if (context === undefined) {
return <div id="loading" />;
}
const Children = renderClient(context);
return (
<React.Fragment>
<Children />
</React.Fragment>
);
}

101
.dumi/tmp/umi.ts Normal file
View File

@ -0,0 +1,101 @@
// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import './core/polyfill';
import '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/.dumi/global.ts';
import { renderClient } from '/Users/songlun/Desktop/workspace/web/WuKongIMDocs/node_modules/@umijs/renderer-react';
import { getRoutes } from './core/route';
import { createPluginManager } from './core/plugin';
import { createHistory } from './core/history';
import { ApplyPluginsType } from 'umi';
const publicPath = "/";
const runtimePublicPath = false;
async function render() {
const pluginManager = createPluginManager();
const { routes, routeComponents } = await getRoutes(pluginManager);
// allow user to extend routes
await pluginManager.applyPlugins({
key: 'patchRoutes',
type: ApplyPluginsType.event,
args: {
routes,
routeComponents,
},
});
const contextOpts = pluginManager.applyPlugins({
key: 'modifyContextOpts',
type: ApplyPluginsType.modify,
initialValue: {},
});
const basename = contextOpts.basename || '/';
const historyType = contextOpts.historyType || 'browser';
const history = createHistory({
type: historyType,
basename,
...contextOpts.historyOpts,
});
return (pluginManager.applyPlugins({
key: 'render',
type: ApplyPluginsType.compose,
initialValue() {
const context = {
routes,
routeComponents,
pluginManager,
rootElement: contextOpts.rootElement || document.getElementById('root'),
publicPath,
runtimePublicPath,
history,
historyType,
basename,
callback: contextOpts.callback,
};
const modifiedContext = pluginManager.applyPlugins({
key: 'modifyClientRenderOpts',
type: ApplyPluginsType.modify,
initialValue: context,
});
return renderClient(modifiedContext);
},
}))();
}
// always remove trailing slash from location.pathname
if (
typeof history !== 'undefined' &&
location.pathname.length > 1 &&
location.pathname.endsWith('/')
) {
history.replaceState(
{},
'',
location.pathname.slice(0, -1) + location.search + location.hash,
);
}
(function () {
var cache = typeof navigator !== 'undefined' && navigator.cookieEnabled && typeof window.localStorage !== 'undefined' && localStorage.getItem('dumi:prefers-color') || 'light';
var isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
var enums = ['light', 'dark', 'auto'];
document.documentElement.setAttribute(
'data-prefers-color',
cache === enums[2]
? (isDark ? enums[1] : enums[0])
: (enums.indexOf(cache) > -1 ? cache : enums[0])
);
})();
render();
window.g_umi = {
version: '4.0.69',
};

View File

@ -1671,3 +1671,31 @@ WKIM.getInstance().getMsgManager().removeNewMsgListener("new_msg_key");
- <font color='#999' size=2>一般在退出聊天页面时需移除新消息监听</font>
2、不含`key`的监听。这类监听在应用内只能有一个监听,并且不能移除监听。多次调用会覆盖上一次监听回调只会以最后一次监听为准。常见的有 获取 channel 资料、获取 ip port 等。
### 其他
#### 日志
sdk在重要信息里输出了相关logcat并将日志保存在手机的`sdcard/Android/data/包/files/WKLoggerV1.0.0.log`目录下需开启debug模式才能查看日志信息。
`java`
```java
WKIM.getInstance().setDebug(true);
```
`kotlin`
```kotlin
WKIM.getInstance().isDebug = true
```
sdk在处理附件消息时会将附件copy到sdcard中这时app可指定缓存目录。如指定文件夹名为`wkIM`,则缓存目录为:`sdcard/Android/data/包/files/wkIM` 并且sdk会通过`channel`来划分附件保存位置
`java`
```java
WKIM.getInstance().setFileCacheDir("wkIM");
```
`kotlin`
```kotlin
WKIM.getInstance().setFileCacheDir("wkIM")
```