diff --git a/.gitmodules b/.gitmodules index 828575a..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "web"] - path = web - url = https://github.com/sub-store-org/Sub-Store-Front-End.git diff --git a/backend/package.json b/backend/package.json index f10a254..9207e59 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.219", + "version": "2.14.220", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/processors/index.js b/backend/src/core/proxy-utils/processors/index.js index 68c383e..75b7f03 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -121,7 +121,7 @@ function QuickSettingOperator(args) { } // add or remove flag for proxies -function FlagOperator({ mode }) { +function FlagOperator({ mode, tw }) { return { name: 'Flag Operator', func: (proxies) => { @@ -135,7 +135,13 @@ function FlagOperator({ mode }) { // remove old flag proxy.name = removeFlag(proxy.name); proxy.name = newFlag + ' ' + proxy.name; - proxy.name = proxy.name.replace(/🇹🇼/g, '🇨🇳'); + if (tw == 'ws') { + proxy.name = proxy.name.replace(/🇹🇼/g, '🇼🇸'); + } else if (tw == 'tw') { + // 不变 + } else { + proxy.name = proxy.name.replace(/🇹🇼/g, '🇨🇳'); + } } return proxy; }); diff --git a/backend/src/utils/geo.js b/backend/src/utils/geo.js index 86efcbc..3ee0ecc 100644 --- a/backend/src/utils/geo.js +++ b/backend/src/utils/geo.js @@ -213,11 +213,16 @@ export function getFlag(name) { '🇹🇼': [ 'Taiwan', '台湾', + '臺灣', + '台灣', + '中華民國', + '中华民国', '台北', '台中', '新北', '彰化', '台', + '臺', 'Taipei', ], '🇺🇦': ['Ukraine', '乌克兰', '烏克蘭'], @@ -371,7 +376,7 @@ export function getFlag(name) { '🇹🇭': ['TH', 'THA'], '🇹🇳': ['TN', 'TUN'], '🇹🇷': ['TR', 'TUR'], - '🇹🇼': ['TW', 'TWN', 'CHT', 'HINET'], + '🇹🇼': ['TW', 'TWN', 'CHT', 'HINET', 'ROC'], '🇺🇦': ['UA', 'UKR'], '🇺🇸': ['US', 'USA', 'LAX', 'SFO'], '🇺🇾': ['UY', 'URY'], diff --git a/config/README.md b/config/README.md index 191b451..35d2254 100644 --- a/config/README.md +++ b/config/README.md @@ -17,7 +17,7 @@ Telegram 频道: [`https://t.me/cool_scripts` ](https://t.me/cool_scripts) 1. 官方默认版模块(目前不带 ability 参数, 不保证以后不会改动): [`https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge.sgmodule`](https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge.sgmodule) -2. 固定带 ability 参数版本,可能会爆内存, 如果需要使用指定节点功能 例如[加国旗脚本或者cname脚本] 请使用此带 ability 参数版本: [`https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-ability.sgmodule`](https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-ability.sgmodule) +2. 固定带 ability 参数版本,可能会爆内存, 如果需要使用指定节点功能 例如[加旗帜脚本或者cname脚本] 请使用此带 ability 参数版本: [`https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-ability.sgmodule`](https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-ability.sgmodule) 3. 固定不带 ability 参数版本: [`https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-Noability.sgmodule`](https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Surge-Noability.sgmodule) diff --git a/config/Surge-Noability.sgmodule b/config/Surge-Noability.sgmodule index 5e156f0..26818c1 100644 --- a/config/Surge-Noability.sgmodule +++ b/config/Surge-Noability.sgmodule @@ -1,12 +1,12 @@ #!name=Sub-Store -#!desc=高级订阅管理工具 @Peng-YM 无 ability 参数版本,不会爆内存, 如果需要使用指定节点功能 例如[加国旗脚本或者cname脚本] 可以用带 ability 参数. 定时任务默认为每天 0 点 +#!desc=高级订阅管理工具 @Peng-YM 无 ability 参数版本,不会爆内存, 如果需要使用指定节点功能 例如[加旗帜脚本或者cname脚本] 可以用带 ability 参数. 定时任务默认为每天 0 点 #!category=订阅管理 [MITM] hostname = %APPEND% sub.store [Script] -# 主程序 已经去掉 Sub-Store Core 的参数 [,ability=http-client-policy] 不会爆内存,这个参数在 Surge 非常占用内存; 如果不需要使用指定节点功能 例如[加国旗脚本或者cname脚本] 则可以使用此脚本 +# 主程序 已经去掉 Sub-Store Core 的参数 [,ability=http-client-policy] 不会爆内存,这个参数在 Surge 非常占用内存; 如果不需要使用指定节点功能 例如[加旗帜脚本或者cname脚本] 则可以使用此脚本 Sub-Store Core=type=http-request,pattern=^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))),script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js,requires-body=true,timeout=120 Sub-Store Simple=type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js,requires-body=true diff --git a/config/Surge-ability.sgmodule b/config/Surge-ability.sgmodule index 3be621e..1e34be5 100644 --- a/config/Surge-ability.sgmodule +++ b/config/Surge-ability.sgmodule @@ -1,5 +1,5 @@ #!name=Sub-Store -#!desc=高级订阅管理工具 @Peng-YM 带 ability 参数版本, 可能会爆内存, 如果不需要使用指定节点功能 例如[加国旗脚本或者cname脚本] 可以用不带 ability 参数版本. 定时任务默认为每天 0 点 +#!desc=高级订阅管理工具 @Peng-YM 带 ability 参数版本, 可能会爆内存, 如果不需要使用指定节点功能 例如[加旗帜脚本或者cname脚本] 可以用不带 ability 参数版本. 定时任务默认为每天 0 点 #!category=订阅管理 [MITM] diff --git a/config/Surge.sgmodule b/config/Surge.sgmodule index f4dc604..68fdf23 100644 --- a/config/Surge.sgmodule +++ b/config/Surge.sgmodule @@ -1,5 +1,5 @@ #!name=Sub-Store -#!desc=高级订阅管理工具 @Peng-YM 无 ability 参数版本,不会爆内存, 如果需要使用指定节点功能 例如[加国旗脚本或者cname脚本] 可以用带 ability 参数. 定时任务默认为每天 0 点 +#!desc=高级订阅管理工具 @Peng-YM 无 ability 参数版本,不会爆内存, 如果需要使用指定节点功能 例如[加旗帜脚本或者cname脚本] 可以用带 ability 参数. 定时任务默认为每天 0 点 #!category=订阅管理 [MITM] diff --git a/web b/web deleted file mode 160000 index b10b708..0000000 --- a/web +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b10b708c3420a1b4cdc71a7f1b845de701a2382b