Refactor UUID generation, remove unused logger and encryption utilities, and clean up request handling
- Updated `generateUUID` function for improved readability and performance. - Deleted `logger.ts`, `other.ts`, `request.ts`, `storage.ts`, `tansParams.ts`, and `validate.ts` as they were no longer needed. - Simplified TypeScript configuration by removing unnecessary paths and aliases. - Enhanced Vite configuration for better project structure and maintainability.
This commit is contained in:
23
global.d.ts
vendored
23
global.d.ts
vendored
@@ -1,17 +1,17 @@
|
||||
import { IPC_EVENTS } from '@lib/constants'
|
||||
import type { ConfigKeys } from '@lib/types'
|
||||
import type { AutomationScript, ScriptSaveInput, ScriptExecutionResult } from '@lib/script-types'
|
||||
import { IPC_EVENTS } from '@runtime/lib/constants'
|
||||
import type { ConfigKeys } from '@runtime/lib/types'
|
||||
import type { AutomationScript, ScriptSaveInput, ScriptExecutionResult } from '@runtime/lib/script-types'
|
||||
|
||||
declare global {
|
||||
// 定义每个通道的参数和返回值类型
|
||||
interface IPCTypings {
|
||||
// 同步通信
|
||||
[IPC_EVENTS.APP_MINIMIZE]: {
|
||||
params: [window:number]
|
||||
params: [window: number]
|
||||
return: {success: boolean, error?: string}
|
||||
}
|
||||
[IPC_EVENTS.APP_MAXIMIZE]: {
|
||||
params: [window:number]
|
||||
params: [window: number]
|
||||
return: {success: boolean, error?: string}
|
||||
}
|
||||
[IPC_EVENTS.GET_WINDOW_ID]: {
|
||||
@@ -235,17 +235,4 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
declare module "*.vue" {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
|
||||
declare module "@stores/*";
|
||||
declare module "@service/*";
|
||||
declare module "@utils/*";
|
||||
declare module "@assets/images/*";
|
||||
declare module "@constant/*";
|
||||
declare module "@remixicon/vue";
|
||||
declare module "vue-router";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user