feat: enhance modal functionality and integrate new components

- Added keyframes and animation for a smooth scale-in effect in the Tailwind configuration.
- Updated Image component to improve quality handling and style definitions.
- Introduced WordViewer and WordViewerModal components for document viewing capabilities.
- Enhanced Modal component to support embedded mode with customizable position and dimensions.
- Integrated IframeModal across various pages for user assistance and content display.
- Updated Content and Menu pages to utilize new components and improve user interaction.
- Added utility function to retrieve public paths for resources.
This commit is contained in:
zhongyidian committed 2025-10-29 00:18:06 +08:00
1 parent 13dd84a8a7
commit 4ce7520066
44 files changed
+1209 -100

No files matched your search

+1 -11
View File
@@ -29,14 +29,4 @@ declare module "*.webp" {
}
// Vite 类型声明
interface ImportMeta {
glob: (
pattern: string,
options?: {
eager?: boolean;
import?: string;
as?: string;
}
) => Record<string, any>;
url: string;
}
/// <reference types="vite/client" />
+18
View File
@@ -0,0 +1,18 @@
interface ImportMeta {
glob: (
pattern: string,
options?: {
eager?: boolean;
import?: string;
as?: string;
}
) => Record<string, any>;
url: string;
env: {
BASE_URL: string;
MODE: string;
DEV: boolean;
PROD: boolean;
SSR: boolean;
};
}
+21
View File
@@ -0,0 +1,21 @@
declare module "mammoth" {
interface ConvertToHtmlOptions {
arrayBuffer: ArrayBuffer;
}
interface ConvertToHtmlResult {
value: string;
messages: Array<{
type: string;
message: string;
}>;
}
function convertToHtml(
options: ConvertToHtmlOptions
): Promise<ConvertToHtmlResult>;
export default {
convertToHtml,
};
}