diff --git a/apps/script-hub/README.md b/apps/script-hub/README.md index 8046211a..5edd773b 100644 --- a/apps/script-hub/README.md +++ b/apps/script-hub/README.md @@ -1,8 +1,4 @@
-
-Script Hub -
-

Script Hub

@@ -13,13 +9,6 @@ Advanced Script Converter for QX, Loon, Surge, Stash, Egern, LanceX and Shadowro 重写 & 规则集转换

-## 社群 - -👏🏻 欢迎加入社群进行交流讨论 - -👥 群组 [张佩服(群组)](https://t.me/zhangpeifu) & [折腾啥(群组)](https://t.me/zhetengsha_group) - -📢 频道 [张佩服(频道)](https://t.me/h5683577) & [折腾啥(频道)](https://t.me/zhetengsha) ## 简介 @@ -48,18 +37,3 @@ Advanced Script Converter for QX, Loon, Surge, Stash, Egern, LanceX and Shadowro ## 文档 [安装体验请查看文档](https://github.com/Script-Hub-Org/Script-Hub/wiki) - -## 鸣谢 -Powered by [_@Chavy‘s_](https://github.com/chavyleung) [Env.js](https://github.com/chavyleung/scripts) -原脚本作者 @小白脸 -脚本修改[_@chengkongyiban_](https://github.com/chengkongyiban) -大量借鉴[_@KOP-XIAO_](https://github.com/KOP-XIAO)佬的[resource-parser.js](https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/resource-parser.js) -感谢[_@xream_](https://github.com/xream) 佬提供与 [_@keywos_](https://github.com/keywos) 修改 `本项目 Script Hub 网页前端`, [replace-header.js](https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/scripts/replace-header.js),[echo-response.js](https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/scripts/echo-response.js),[script-converter.js](https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/script-converter.js) -感谢[_@mieqq_](https://github.com/mieqq) 佬提供的[replace-body.js](https://github.com/mieqq/mieqq/raw/master/replace-body.js), 本项目中已进行修改 -感谢[_@Maasea_](https://github.com/Maasea) 佬的指导 -项目 logo 感谢 [_@Toperlock_](https://github.com/Toperlock) -插件图标用的 [_@Keikinn_](https://github.com/Keikinn) 佬的 [StickerOnScreen](https://github.com/KeiKinn/StickerOnScreen)项目,以及 [_@Toperlock_](https://github.com/Toperlock) 佬的 [QX 图标库](https://github.com/Toperlock/Quantumult/tree/main/icon)项目,感谢 - -## 开发 - -`pnpm preview` html 内容的本地预览 \ No newline at end of file diff --git a/apps/script-hub/data.yml b/apps/script-hub/data.yml index 78166fb3..3e410f7e 100644 --- a/apps/script-hub/data.yml +++ b/apps/script-hub/data.yml @@ -1,19 +1,19 @@ name: Script-Hub tags: - - 工具 -title: 重写 & 规则集转换工具 -description: 适用于 QX、Loon、Surge、Stash、Egern、LanceX 和 Shadowrocket 的高级脚本转换器 + - 实用工具 +title: 高级脚本转换器 +description: 高级脚本转换器 additionalProperties: key: script-hub - name: script-hub + name: Script-Hub tags: - Tool - shortDescZh: 适用于 QX、Loon、Surge、Stash、Egern、LanceX 和 Shadowrocket 的高级脚本转换器 - shortDescEn: Advanced Script Converter for QX, Loon, Surge, Stash, Egern, LanceX and Shadowrocket + shortDescZh: 高级脚本转换器 + shortDescEn: Advanced Script Converter type: tool crossVersionUpdate: true limit: 0 recommend: 0 website: https://hub.docker.com/r/xxooyy/script-hub github: https://github.com/Script-Hub-Org/Script-Hub - document: https://github.com/Script-Hub-Org/Script-Hub/wiki \ No newline at end of file + document: https://github.com/Script-Hub-Org/Script-Hub/wiki diff --git a/apps/script-hub/latest/.env.sample b/apps/script-hub/latest/.env.sample index 952f6584..c1fa1e9c 100644 --- a/apps/script-hub/latest/.env.sample +++ b/apps/script-hub/latest/.env.sample @@ -1,3 +1,5 @@ +BASE_URL="https://script.localhost.com" +BETA_BASE_URL="https://beta.localhost.com" +BETA_PORT=40326 CONTAINER_NAME="script-hub" -PANEL_APP_PORT_HTTP="40248" -BASE_URL="https://script.xxxx.com" \ No newline at end of file +PANEL_APP_PORT_HTTP=40325 diff --git a/apps/script-hub/latest/data.yml b/apps/script-hub/latest/data.yml index 189de2aa..c5a20f9d 100644 --- a/apps/script-hub/latest/data.yml +++ b/apps/script-hub/latest/data.yml @@ -1,18 +1,34 @@ additionalProperties: - formFields: - - default: 40248 - edit: true - envKey: PANEL_APP_PORT_HTTP - labelEn: Port - labelZh: 端口 - required: true - rule: paramPort - type: number - - default: 'https://script.xxxx.com' - edit: true - envKey: BASE_URL - labelEn: Base URL - labelZh: 访问域名 - required: true - type: text - + formFields: + - default: "40325" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "https://script.localhost.com" + edit: true + envKey: BASE_URL + labelEn: Base URL + labelZh: 基本 URL + required: true + rule: paramExtUrl + type: text + - default: "40326" + edit: true + envKey: BETA_PORT + labelEn: Beta Port + labelZh: Beta 端口 + required: true + rule: paramPort + type: number + - default: "https://beta.localhost.com" + edit: true + envKey: BETA_BASE_URL + labelEn: Beta Base URL + labelZh: Beta 基本 URL + required: true + rule: paramExtUrl + type: text diff --git a/apps/script-hub/latest/docker-compose.yml b/apps/script-hub/latest/docker-compose.yml index 4cb9965d..8889d4ae 100644 --- a/apps/script-hub/latest/docker-compose.yml +++ b/apps/script-hub/latest/docker-compose.yml @@ -1,17 +1,21 @@ services: script-hub: - image: xxooyy/script-hub:latest + image: "xream/script-hub:latest" container_name: ${CONTAINER_NAME} restart: always networks: - 1panel-network ports: - - "${PANEL_APP_PORT_HTTP}:9100" + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}" + - "${BETA_PORT}:${BETA_PORT}" environment: + - PORT=${PANEL_APP_PORT_HTTP} - BASE_URL=${BASE_URL} + - BETA_PORT=${BETA_PORT} + - BETA_BASE_URL=${BETA_BASE_URL} labels: createdBy: "Apps" networks: 1panel-network: - external: true \ No newline at end of file + external: true diff --git a/apps/script-hub/logo.png b/apps/script-hub/logo.png index 24f76826..0ebf4350 100644 Binary files a/apps/script-hub/logo.png and b/apps/script-hub/logo.png differ