feat:调整script-hub

This commit is contained in:
okxlin 2024-12-03 01:17:07 +08:00
parent 5a1e809966
commit f49511b547
6 changed files with 51 additions and 55 deletions

View File

@ -1,8 +1,4 @@
<div align="center"> <div align="center">
<br>
<img width="200" src="https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/assets/icon-dark.png" alt="Script Hub">
<br>
<br>
<h1 align="center">Script Hub<h1> <h1 align="center">Script Hub<h1>
</div> </div>
@ -13,13 +9,6 @@ Advanced Script Converter for QX, Loon, Surge, Stash, Egern, LanceX and Shadowro
重写 & 规则集转换 重写 & 规则集转换
</p> </p>
## 社群
👏🏻 欢迎加入社群进行交流讨论
👥 群组 [张佩服(群组)](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) [安装体验请查看文档](https://github.com/Script-Hub-Org/Script-Hub/wiki)
## 鸣谢
Powered by [_@Chavys_](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 内容的本地预览

View File

@ -1,19 +1,19 @@
name: Script-Hub name: Script-Hub
tags: tags:
- 工具 - 实用工具
title: 重写 & 规则集转换工具 title: 高级脚本转换器
description: 适用于 QX、Loon、Surge、Stash、Egern、LanceX 和 Shadowrocket 的高级脚本转换器 description: 高级脚本转换器
additionalProperties: additionalProperties:
key: script-hub key: script-hub
name: script-hub name: Script-Hub
tags: tags:
- Tool - Tool
shortDescZh: 适用于 QX、Loon、Surge、Stash、Egern、LanceX 和 Shadowrocket 的高级脚本转换器 shortDescZh: 高级脚本转换器
shortDescEn: Advanced Script Converter for QX, Loon, Surge, Stash, Egern, LanceX and Shadowrocket shortDescEn: Advanced Script Converter
type: tool type: tool
crossVersionUpdate: true crossVersionUpdate: true
limit: 0 limit: 0
recommend: 0 recommend: 0
website: https://hub.docker.com/r/xxooyy/script-hub website: https://hub.docker.com/r/xxooyy/script-hub
github: https://github.com/Script-Hub-Org/Script-Hub github: https://github.com/Script-Hub-Org/Script-Hub
document: https://github.com/Script-Hub-Org/Script-Hub/wiki document: https://github.com/Script-Hub-Org/Script-Hub/wiki

View File

@ -1,3 +1,5 @@
BASE_URL="https://script.localhost.com"
BETA_BASE_URL="https://beta.localhost.com"
BETA_PORT=40326
CONTAINER_NAME="script-hub" CONTAINER_NAME="script-hub"
PANEL_APP_PORT_HTTP="40248" PANEL_APP_PORT_HTTP=40325
BASE_URL="https://script.xxxx.com"

View File

@ -1,18 +1,34 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: 40248 - default: "40325"
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: Port labelEn: Port
labelZh: 端口 labelZh: 端口
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: 'https://script.xxxx.com' - default: "https://script.localhost.com"
edit: true edit: true
envKey: BASE_URL envKey: BASE_URL
labelEn: Base URL labelEn: Base URL
labelZh: 访问域名 labelZh: 基本 URL
required: true required: true
type: text 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

View File

@ -1,17 +1,21 @@
services: services:
script-hub: script-hub:
image: xxooyy/script-hub:latest image: "xream/script-hub:latest"
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: networks:
- 1panel-network - 1panel-network
ports: ports:
- "${PANEL_APP_PORT_HTTP}:9100" - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
- "${BETA_PORT}:${BETA_PORT}"
environment: environment:
- PORT=${PANEL_APP_PORT_HTTP}
- BASE_URL=${BASE_URL} - BASE_URL=${BASE_URL}
- BETA_PORT=${BETA_PORT}
- BETA_BASE_URL=${BETA_BASE_URL}
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:
external: true external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB