fix: 修复环境变量引用格式,确保版本号正确推送
This commit is contained in:
1 parent
db0139ac02
commit
fc250c54ed
4 files changed
+11
-26
No files matched your search
@@ -6,29 +6,6 @@ import vuetify from '@/renderer/plugins/vuetify'
|
|||||||
import i18n from '@/renderer/plugins/i18n'
|
import i18n from '@/renderer/plugins/i18n'
|
||||||
import pinia from '@/renderer/plugins/pinia'
|
import pinia from '@/renderer/plugins/pinia'
|
||||||
|
|
||||||
// Add API key defined in contextBridge to window object type
|
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
mainApi?: any
|
|
||||||
ConfirmDialogManager?: {
|
|
||||||
showConfirm: (options: {
|
|
||||||
title: string;
|
|
||||||
message: string;
|
|
||||||
confirmText?: string;
|
|
||||||
cancelText?: string;
|
|
||||||
confirmColor?: string;
|
|
||||||
}) => Promise<boolean>;
|
|
||||||
showMessage: (options: {
|
|
||||||
title: string;
|
|
||||||
message: string;
|
|
||||||
confirmText?: string;
|
|
||||||
confirmColor?: string;
|
|
||||||
dialogColor?: string;
|
|
||||||
}) => Promise<void>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
||||||
app.use(vuetify).use(i18n).use(router).use(pinia)
|
app.use(vuetify).use(i18n).use(router).use(pinia)
|
||||||
|
|||||||
Vendored
+7
@@ -16,4 +16,11 @@ interface Window {
|
|||||||
dialogColor?: string;
|
dialogColor?: string;
|
||||||
}) => Promise<void>;
|
}) => Promise<void>;
|
||||||
};
|
};
|
||||||
|
mainApi: {
|
||||||
|
send: (channel: string, ...data: any[]) => void;
|
||||||
|
on: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
|
||||||
|
once: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
|
||||||
|
off: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
|
||||||
|
invoke: (channel: string, ...data: any[]) => Promise<any>;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
+4
-2
@@ -8,7 +8,8 @@
|
|||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"declaration": true,
|
"declaration": false,
|
||||||
|
"declarationMap": false,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
@@ -19,7 +20,8 @@
|
|||||||
},
|
},
|
||||||
"lib": ["esnext", "dom"]
|
"lib": ["esnext", "dom"]
|
||||||
},
|
},
|
||||||
"include": ["src/*.ts", "src/*.d.ts", "src/renderer", "src/types"],
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/renderer", "src/types"],
|
||||||
|
"exclude": ["src/main", "src/preload"],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./tsconfig.node.json"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
"include": [
|
"include": [
|
||||||
"src/main",
|
"src/main",
|
||||||
"src/preload",
|
"src/preload",
|
||||||
"src/types",
|
|
||||||
"package.json",
|
"package.json",
|
||||||
"eslint.config.ts",
|
"eslint.config.ts",
|
||||||
"vite.config.mts",
|
"vite.config.mts",
|
||||||
|
|||||||
Reference in new issue
Block a user