Add new components for login and comment functionality

This commit is contained in:
wangqiao
2025-08-17 20:15:33 +08:00
parent 99df1d1f81
commit 07b4d3de99
37 changed files with 4744 additions and 263 deletions

38
types/global.d.ts vendored
View File

@ -1,38 +1,38 @@
/// <reference types="vite/client" />
interface IResponse<T = any> {
statusCode: string
code: number | string
data: T
message: string
msg: string
statusCode: string;
code: number | string;
data: T;
message: string;
msg: string;
}
interface Window {
/**
* 当前APP运行环境
* */
APP_RUN_ENV: 'local' | 'dev' | 'test' | 'prod' | 'pre'
APP_RUN_ENV: "local" | "dev" | "test" | "prod" | "pre";
// 是否存在无界
__POWERED_BY_WUJIE__?: boolean
__POWERED_BY_WUJIE__?: boolean;
// 子应用公共加载路径
__WUJIE_PUBLIC_PATH__: string
__WUJIE_PUBLIC_PATH__: string;
// 原生的querySelector
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__: typeof Document.prototype.querySelector
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__: typeof Document.prototype.querySelector;
// 原生的querySelectorAll
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__: typeof Document.prototype.querySelectorAll
__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__: typeof Document.prototype.querySelectorAll;
// 原生的window对象
__WUJIE_RAW_WINDOW__: Window
__WUJIE_RAW_WINDOW__: Window;
// 子应用沙盒实例
__WUJIE: WuJie
__WUJIE: WuJie;
// 子应用mount函数
__WUJIE_MOUNT: () => void
__WUJIE_MOUNT: () => void;
// 子应用unmount函数
__WUJIE_UNMOUNT: () => void
__WUJIE_UNMOUNT: () => void;
// 注入对象
$wujie: {
bus: EventBus
shadowRoot?: ShadowRoot
props?: { [key: string]: any }
location?: object
}
bus: EventBus;
shadowRoot?: ShadowRoot;
props?: { [key: string]: any };
location?: object;
};
}