feat(projects): 引入soybean-admin-tab、去除vite-plugin-svg-icons,用unplugin-icons实现自定义svg的iconify写法、代码优化

This commit is contained in:
Soybean
2022-03-05 01:55:21 +08:00
parent b298af1ddb
commit a1a57a185c
93 changed files with 266 additions and 6700 deletions

View File

@ -9,17 +9,19 @@ declare module '*.vue' {
interface ImportMetaEnv {
/** 项目基本地址 */
readonly VITE_APP_BASE_URL: string;
readonly VITE_BASE_URL: string;
/** 项目名称 */
readonly VITE_APP_NAME: string;
/** 项目标题 */
readonly VITE_APP_TITLE: string;
/** 项目描述 */
readonly VITE_APP_DESC: string;
/** 是否开启打包文件大小结果分析 */
readonly VITE_VISUALIZER: 'true' | 'false';
/** 网路请求环境类型 */
readonly VITE_HTTP_ENV: Service.HttpEnv;
/** 是否是部署vercel */
readonly VITE_IS_VERCEL?: '1';
readonly VITE_HTTP_ENV?: Service.HttpEnv;
/** hash路由模式 */
readonly VITE_HASH_ROUTE?: 'true' | 'false';
}
interface ImportMeta {

View File

@ -1,15 +0,0 @@
declare namespace Util {
/** convert a union to an intersection: X | Y | Z ==> X & Y & Z */
type UnionToIntersection<T> = (T extends any ? (args: T) => any : never) extends (args: infer R) => any ? R : never;
/** returns true if the type is a union otherwise false */
type IsUnion<T> = [T] extends [UnionToIntersection<T>] ? false : true;
type LastInUnion<T> = UnionToIntersection<T extends any ? (arg: T) => any : never> extends (arg: infer R) => any
? R
: never;
type UnionToTuple<T, U = T> = [T] extends [never]
? []
: [LastInUnion<T>, ...UnionToTuple<Exclude<U, LastInUnion<T>>>];
}