mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
parent
0d1fe99f53
commit
5c3305d8fa
@ -1,2 +1 @@
|
|||||||
VITE_BUILD_TYPE = Development
|
VITE_BUILD_TYPE = Development
|
||||||
VITE_BUILD_TARGE = Normal
|
|
@ -1,2 +0,0 @@
|
|||||||
VITE_BUILD_TYPE = Production
|
|
||||||
VITE_BUILD_TARGE = Liteloader
|
|
@ -1,2 +1 @@
|
|||||||
VITE_BUILD_TYPE = Production
|
VITE_BUILD_TYPE = Production
|
||||||
VITE_BUILD_TARGE = Normal
|
|
2
src/core
2
src/core
@ -1 +1 @@
|
|||||||
Subproject commit 8fe462777a9fa4fca1d67a8973be93b051960753
|
Subproject commit 48c585b7e0d05f591b9ae45b84e805ca611fe313
|
@ -1,17 +0,0 @@
|
|||||||
type BrowserWindow = any;
|
|
||||||
function onBrowserWindowCreated(window: BrowserWindow) {
|
|
||||||
|
|
||||||
}
|
|
||||||
async function loadNapCat() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
loadNapCat();
|
|
||||||
} catch {
|
|
||||||
console.log("loadNapCat error");
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
onBrowserWindowCreated
|
|
||||||
};
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
//暂且留空
|
|
@ -1,18 +0,0 @@
|
|||||||
async function onSettingWindowCreated(view: Element) {
|
|
||||||
const iframe = document.createElement('iframe');
|
|
||||||
iframe.src = 'http://127.0.0.1:6099/webui/'; //应该从 preload->main 那里获取
|
|
||||||
iframe.style.cssText = 'position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;';
|
|
||||||
view.appendChild(iframe);
|
|
||||||
}
|
|
||||||
async function isRendererInit() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (location.hash === '#/blank') {
|
|
||||||
(window as any).navigation.addEventListener('navigatesuccess', isRendererInit, { once: true });
|
|
||||||
} else {
|
|
||||||
isRendererInit();
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
onSettingWindowCreated
|
|
||||||
};
|
|
10
src/vite-env.d.ts
vendored
10
src/vite-env.d.ts
vendored
@ -1,10 +0,0 @@
|
|||||||
/// <reference types="vite/client" />
|
|
||||||
|
|
||||||
interface ImportMetaEnv {
|
|
||||||
readonly VITE_BUILD_TYPE: string
|
|
||||||
readonly VITE_BUILD_TARGE: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ImportMeta {
|
|
||||||
readonly env: ImportMetaEnv
|
|
||||||
}
|
|
@ -1,3 +1,4 @@
|
|||||||
|
// import PreprocessorDirectives from 'unplugin-preprocessor-directives/vite';
|
||||||
import obfuscator from 'rollup-plugin-obfuscator';
|
import obfuscator from 'rollup-plugin-obfuscator';
|
||||||
import cp from 'vite-plugin-cp';
|
import cp from 'vite-plugin-cp';
|
||||||
import { UserConfig, defineConfig } from 'vite';
|
import { UserConfig, defineConfig } from 'vite';
|
||||||
|
Loading…
Reference in New Issue
Block a user