@pit-front-end/utils
Version:
湖南创智艾泰克科技有限公司
372 lines (371 loc) • 14.3 kB
TypeScript
interface AppConfig {
VITE_APP_BASE_JWKS_KID?: String;
VITE_APP_SORT?: String;
VITE_APP_DEFINE_BASE_URL?: String;
[key: string]: any;
}
declare let appConfig: {
[x: string]: any;
VITE_APP_BASE_JWKS_KID?: {
readonly [x: number]: string;
toString: () => string;
charAt: (pos: number) => string;
charCodeAt: (index: number) => number;
concat: (...strings: string[]) => string;
indexOf: (searchString: string, position?: number) => number;
lastIndexOf: (searchString: string, position?: number) => number;
localeCompare: {
(that: string): number;
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
(that: string, locales?: Intl.
/**
* 登录公钥
*/
LocalesArgument, options?: Intl.CollatorOptions): number;
};
match: {
(regexp: string | RegExp): RegExpMatchArray | null;
(matcher: {
[Symbol.match](string: string): RegExpMatchArray | null;
}): RegExpMatchArray | null;
};
replace: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
(searchValue: {
[Symbol.replace](string: string, replaceValue: string): string;
}, replaceValue: string): string;
(searchValue: {
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
}, replacer: (substring: string, ...args: any[]) => string): string;
};
search: {
(regexp: string | RegExp): number;
(searcher: {
[Symbol.search](string: string): number;
}): number;
};
slice: (start?: number, end?: number) => string;
split: {
(separator: string | RegExp, limit?: number): string[];
(splitter: {
[Symbol.split](string: string, limit?: number): string[];
}, limit?: number): string[];
};
substring: (start: number, end?: number) => string;
toLowerCase: () => string;
toLocaleLowerCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
toUpperCase: () => string;
toLocaleUpperCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
trim: () => string;
readonly length: number;
substr: (from: number, length?: number) => string;
valueOf: () => string;
codePointAt: (pos: number) => number | undefined;
includes: (searchString: string, position?: number) => boolean;
endsWith: (searchString: string, endPosition?: number) => boolean;
normalize: {
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
(form?: string): string;
};
repeat: (count: number) => string;
startsWith: (searchString: string, position?: number) => boolean;
anchor: (name: string) => string;
big: () => string;
blink: () => string;
bold: () => string;
fixed: () => string;
fontcolor: (color: string) => string;
fontsize: {
(size: number): string;
(size: string): string;
};
italics: () => string;
link: (url: string) => string;
small: () => string;
strike: () => string;
sub: () => string;
sup: () => string;
padStart: (maxLength: number, fillString?: string) => string;
padEnd: (maxLength: number, fillString?: string) => string;
trimEnd: () => string;
trimStart: () => string;
trimLeft: () => string;
trimRight: () => string;
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
replaceAll: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
};
at: (index: number) => string | undefined;
isWellFormed: () => boolean;
toWellFormed: () => string;
[Symbol.iterator]: () => StringIterator<string>;
} | undefined;
VITE_APP_SORT?: {
readonly [x: number]: string;
toString: () => string;
charAt: (pos: number) => string;
charCodeAt: (index: number) => number;
concat: (...strings: string[]) => string;
indexOf: (searchString: string, position?: number) => number;
lastIndexOf: (searchString: string, position?: number) => number;
localeCompare: {
(that: string): number;
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
(that: string, locales?: Intl.
/**
* 登录公钥
*/
LocalesArgument, options?: Intl.CollatorOptions): number;
};
match: {
(regexp: string | RegExp): RegExpMatchArray | null;
(matcher: {
[Symbol.match](string: string): RegExpMatchArray | null;
}): RegExpMatchArray | null;
};
replace: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
(searchValue: {
[Symbol.replace](string: string, replaceValue: string): string;
}, replaceValue: string): string;
(searchValue: {
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
}, replacer: (substring: string, ...args: any[]) => string): string;
};
search: {
(regexp: string | RegExp): number;
(searcher: {
[Symbol.search](string: string): number;
}): number;
};
slice: (start?: number, end?: number) => string;
split: {
(separator: string | RegExp, limit?: number): string[];
(splitter: {
[Symbol.split](string: string, limit?: number): string[];
}, limit?: number): string[];
};
substring: (start: number, end?: number) => string;
toLowerCase: () => string;
toLocaleLowerCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
toUpperCase: () => string;
toLocaleUpperCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
trim: () => string;
readonly length: number;
substr: (from: number, length?: number) => string;
valueOf: () => string;
codePointAt: (pos: number) => number | undefined;
includes: (searchString: string, position?: number) => boolean;
endsWith: (searchString: string, endPosition?: number) => boolean;
normalize: {
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
(form?: string): string;
};
repeat: (count: number) => string;
startsWith: (searchString: string, position?: number) => boolean;
anchor: (name: string) => string;
big: () => string;
blink: () => string;
bold: () => string;
fixed: () => string;
fontcolor: (color: string) => string;
fontsize: {
(size: number): string;
(size: string): string;
};
italics: () => string;
link: (url: string) => string;
small: () => string;
strike: () => string;
sub: () => string;
sup: () => string;
padStart: (maxLength: number, fillString?: string) => string;
padEnd: (maxLength: number, fillString?: string) => string;
trimEnd: () => string;
trimStart: () => string;
trimLeft: () => string;
trimRight: () => string;
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
replaceAll: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
};
at: (index: number) => string | undefined;
isWellFormed: () => boolean;
toWellFormed: () => string;
[Symbol.iterator]: () => StringIterator<string>;
} | undefined;
VITE_APP_DEFINE_BASE_URL?: {
readonly [x: number]: string;
toString: () => string;
charAt: (pos: number) => string;
charCodeAt: (index: number) => number;
concat: (...strings: string[]) => string;
indexOf: (searchString: string, position?: number) => number;
lastIndexOf: (searchString: string, position?: number) => number;
localeCompare: {
(that: string): number;
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
(that: string, locales?: Intl.
/**
* 登录公钥
*/
LocalesArgument, options?: Intl.CollatorOptions): number;
};
match: {
(regexp: string | RegExp): RegExpMatchArray | null;
(matcher: {
[Symbol.match](string: string): RegExpMatchArray | null;
}): RegExpMatchArray | null;
};
replace: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
(searchValue: {
[Symbol.replace](string: string, replaceValue: string): string;
}, replaceValue: string): string;
(searchValue: {
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
}, replacer: (substring: string, ...args: any[]) => string): string;
};
search: {
(regexp: string | RegExp): number;
(searcher: {
[Symbol.search](string: string): number;
}): number;
};
slice: (start?: number, end?: number) => string;
split: {
(separator: string | RegExp, limit?: number): string[];
(splitter: {
[Symbol.split](string: string, limit?: number): string[];
}, limit?: number): string[];
};
substring: (start: number, end?: number) => string;
toLowerCase: () => string;
toLocaleLowerCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
toUpperCase: () => string;
toLocaleUpperCase: {
(locales?: string | string[]): string;
(locales?: Intl.LocalesArgument): string;
};
trim: () => string;
readonly length: number;
substr: (from: number, length?: number) => string;
valueOf: () => string;
codePointAt: (pos: number) => number | undefined;
includes: (searchString: string, position?: number) => boolean;
endsWith: (searchString: string, endPosition?: number) => boolean;
normalize: {
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
(form?: string): string;
};
repeat: (count: number) => string;
startsWith: (searchString: string, position?: number) => boolean;
anchor: (name: string) => string;
big: () => string;
blink: () => string;
bold: () => string;
fixed: () => string;
fontcolor: (color: string) => string;
fontsize: {
(size: number): string;
(size: string): string;
};
italics: () => string;
link: (url: string) => string;
small: () => string;
strike: () => string;
sub: () => string;
sup: () => string;
padStart: (maxLength: number, fillString?: string) => string;
padEnd: (maxLength: number, fillString?: string) => string;
trimEnd: () => string;
trimStart: () => string;
trimLeft: () => string;
trimRight: () => string;
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
replaceAll: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
};
at: (index: number) => string | undefined;
isWellFormed: () => boolean;
toWellFormed: () => string;
[Symbol.iterator]: () => StringIterator<string>;
} | undefined;
};
export declare const initConfig: (envConfig: any) => void;
export declare const getAppConfig: () => AppConfig;
export declare const DEFINE_MODE: () => string;
export declare const mode: () => boolean;
/**
* 登录页面标题
*/
declare let DEFINE_LOGIN_TITLE: any;
/**
* 登录页面著作
*/
declare let DEFINE_LOGIN_AUTHOR: any;
/**
* 网站标题
*/
declare let DEFINE_TITLE: any;
/**
* 定义请求前缀
*/
declare let DEFINE_BASE_URL: any;
/**
* 定义请求超时时间
*/
declare let DEFINE_TIME: any;
/**
* 登录公钥
*/
declare let DEFINE_JWKS_KID: any;
declare let DEFINE_BASE_API: any;
/**
* 后台请求地址
*/
declare let DEFINE_JWKS_PATH: any;
/**
* 积木地址
*/
declare let DEFINE_JM: any;
/**
* 排序服务
*/
declare let DEFINE_SORT: any;
/**
* websocket url
*/
declare let WSS_URL: any;
/**
* bimwin url
*/
declare let BIM_API: any;
/**
* 是否开启了PageOffice
*/
declare let ENABLE_PAGEOFFICE: {
valueOf: () => boolean;
};
export { appConfig, DEFINE_TIME, DEFINE_LOGIN_TITLE, DEFINE_LOGIN_AUTHOR, DEFINE_TITLE, DEFINE_BASE_URL, DEFINE_JWKS_KID, DEFINE_BASE_API, DEFINE_JWKS_PATH, DEFINE_JM, DEFINE_SORT, WSS_URL, BIM_API, ENABLE_PAGEOFFICE, };