mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Compare commits
3 Commits
5d2d8c7123
...
d17674d06e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d17674d06e | ||
![]() |
0b839258aa | ||
![]() |
50e207cf6f |
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -18,8 +18,8 @@ jobs:
|
|||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
- name: Build NapCat.Framework
|
- name: Build NapCat.Framework
|
||||||
run: |
|
run: |
|
||||||
npm i && cd napcat.webui && npm i && cd ..
|
npm i && cd napcat.webui && npm i && cd .. || exit 1
|
||||||
npm run build:framework && npm run depend
|
npm run build:framework && npm run depend || exit 1
|
||||||
rm package-lock.json
|
rm package-lock.json
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@ -37,8 +37,8 @@ jobs:
|
|||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
- name: Build NapCat.Shell
|
- name: Build NapCat.Shell
|
||||||
run: |
|
run: |
|
||||||
npm i && cd napcat.webui && npm i && cd ..
|
npm i && cd napcat.webui && npm i && cd .. || exit 1
|
||||||
npm run build:shell && npm run depend
|
npm run build:shell && npm run depend || exit 1
|
||||||
rm package-lock.json
|
rm package-lock.json
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
|
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",
|
||||||
"webui:dev": "vite",
|
"webui:dev": "vite",
|
||||||
"webui:build": "vue-tsc -b && vite build",
|
"webui:build": "vite build",
|
||||||
"webui:preview": "vite preview"
|
"webui:preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "4.1.12",
|
"version": "4.1.12",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:framework": "npm run build:webui && vite build --mode framework",
|
"build:framework": "npm run build:webui && vite build --mode framework || exit 1",
|
||||||
"build:shell": "npm run build:webui && vite build --mode shell",
|
"build:shell": "npm run build:webui && vite build --mode shell || exit 1",
|
||||||
"build:webui": "cd napcat.webui && vite build",
|
"build:webui": "cd napcat.webui && vite build",
|
||||||
"dev:framework": "vite build --mode framework",
|
"dev:framework": "vite build --mode framework",
|
||||||
"dev:shell": "vite build --mode shell",
|
"dev:shell": "vite build --mode shell",
|
||||||
|
@ -78,8 +78,12 @@ export class PacketHighwayContext {
|
|||||||
ip: int32ip2str(addr.ip),
|
ip: int32ip2str(addr.ip),
|
||||||
port: addr.port
|
port: addr.port
|
||||||
});
|
});
|
||||||
|
this.hwClient.changeServer(int32ip2str(addr.ip), addr.port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.sig.serverAddr.length === 0) {
|
||||||
|
this.logger.warn('[Highway PrepareUpload] server addr is empty!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async uploadImage(peer: Peer, img: PacketMsgPicElement): Promise<void> {
|
async uploadImage(peer: Peer, img: PacketMsgPicElement): Promise<void> {
|
||||||
|
@ -66,7 +66,6 @@ export async function InitWebUi(logger: LogWrapper, pathWrapper: NapCatPathWrapp
|
|||||||
try {
|
try {
|
||||||
const publishUrl = 'https://ip.011102.xyz/';
|
const publishUrl = 'https://ip.011102.xyz/';
|
||||||
const data = await RequestUtil.HttpGetJson<{ IP: { IP: string } }>(publishUrl, 'GET', {}, {}, true, true);
|
const data = await RequestUtil.HttpGetJson<{ IP: { IP: string } }>(publishUrl, 'GET', {}, {}, true, true);
|
||||||
log("IP data", data);
|
|
||||||
log(`[NapCat] [WebUi] WebUi Publish Panel Url: ${createUrl(data.IP.IP, '/webui', config.token)}`);
|
log(`[NapCat] [WebUi] WebUi Publish Panel Url: ${createUrl(data.IP.IP, '/webui', config.token)}`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.logError(`[NapCat] [WebUi] Get Publish Panel Url Error: ${err}`);
|
logger.logError(`[NapCat] [WebUi] Get Publish Panel Url Error: ${err}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user