🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 0d155c70be
commit 32600acc60
14258 files changed
+3954570

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=sub-web
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/cmliu/SUBWEB.git
PKG_SOURCE_DATE:=2025-02-09
PKG_SOURCE_VERSION:=39932f552c116477c87241f228d3c3b7eb4e45fb
PKG_MIRROR_HASH:=skip
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=node/host
include $(INCLUDE_DIR)/package.mk
define Package/sub-web
SECTION:=net
CATEGORY:=Network
URL:=https://github.com/cmliu/SUBWEB
TITLE:=A WebUI for generating proxy subscription url
DEPENDS:=+subconverter
PKGARCH:=all
endef
define Package/sub-web/description
A WebUI for generating proxy subscription url.
endef
define Build/Compile
pushd "$(PKG_BUILD_DIR)"; \
npm install && \
npm run build
endef
define Package/sub-web/install
$(INSTALL_DIR) $(1)/www/sub-web
$(CP) $(PKG_BUILD_DIR)/dist/* $(1)/www/sub-web/
endef
$(eval $(call BuildPackage,sub-web))
+13
View File
@@ -0,0 +1,13 @@
--- a/src/config.ts
+++ b/src/config.ts
@@ -66,8 +66,8 @@ export const backendConfig = [{
label: 'sub.d1.mk(肥羊提供-备用后端)',
value: 'https://sub.d1.mk/sub?'
}, {
- label: 'localhost:25500(自建本地服务)',
- value: 'http://localhost:25500/sub?'
+ label: `${window.location.protocol}//${window.location.hostname}:25500(自建本地服务)`,
+ value: `${window.location.protocol}//${window.location.hostname}:25500/sub?`
}];
export const externalConfig = [{
label: 'CM规则',