mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-14 20:48:17 +08:00
🌈 Sync 2026-11-09 22:01:23
This commit is contained in:
1 parent
b5186d5b6e
commit
62c68e8b02
185 files changed
+4346
-13942
No files matched your search
+2
-2
@@ -6,13 +6,13 @@ PKG_UPSTREAM_TAG:=v$(PKG_UPSTREAM_VERSION)
|
||||
PKG_SHORT_SHA:=3f27ef3
|
||||
|
||||
PKG_VERSION:=2026.11.04.$(PKG_UPSTREAM_VERSION)
|
||||
PKG_RELEASE:=27
|
||||
PKG_RELEASE:=28
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-stable-$(PKG_UPSTREAM_TAG)-$(PKG_SHORT_SHA).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-stable-$(PKG_UPSTREAM_TAG)-$(PKG_SHORT_SHA)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
|
||||
PKG_SOURCE_URL:=https://github.com/kenzok8/openwrt-clashoo/releases/download/mihomo-src
|
||||
PKG_SOURCE_VERSION:=205f65fc18f4dd0579b421a2271e9d46ba8cb6f3
|
||||
PKG_SOURCE_VERSION:=afda9f677ba3fe1e6150936e01569c273f91af2d
|
||||
PKG_HASH:=skip
|
||||
PKG_BUILD_VERSION:=$(PKG_UPSTREAM_TAG)
|
||||
|
||||
|
||||
@@ -87,24 +87,7 @@ set clashoo_china6 {
|
||||
2400:3cc0::/32,
|
||||
2400:3e00::/32,
|
||||
2400:3f40::/32,
|
||||
2400:3f60::/46,
|
||||
2400:3f60:5::/48,
|
||||
2400:3f60:6::/47,
|
||||
2400:3f60:8::/45,
|
||||
2400:3f60:13::/48,
|
||||
2400:3f60:14::/46,
|
||||
2400:3f60:18::/45,
|
||||
2400:3f60:20::/43,
|
||||
2400:3f60:40::/42,
|
||||
2400:3f60:80::/41,
|
||||
2400:3f60:100::/40,
|
||||
2400:3f60:200::/39,
|
||||
2400:3f60:400::/38,
|
||||
2400:3f60:800::/37,
|
||||
2400:3f60:1000::/36,
|
||||
2400:3f60:2000::/35,
|
||||
2400:3f60:4000::/34,
|
||||
2400:3f60:8000::/33,
|
||||
2400:3f60::/32,
|
||||
2400:3fc0::/32,
|
||||
2400:4440::/32,
|
||||
2400:44c0::/32,
|
||||
@@ -588,7 +571,6 @@ set clashoo_china6 {
|
||||
2401:8680:4020::/43,
|
||||
2401:8680:4040::/42,
|
||||
2401:8680:4080::/41,
|
||||
2401:8680:4100::/48,
|
||||
2401:8680:4103::/48,
|
||||
2401:8680:4104::/46,
|
||||
2401:8680:4108::/45,
|
||||
@@ -962,6 +944,7 @@ set clashoo_china6 {
|
||||
2402:7da0::/32,
|
||||
2402:7e20::/32,
|
||||
2402:7ee0::/32,
|
||||
2402:8160::/32,
|
||||
2402:8180::/32,
|
||||
2402:8300::/32,
|
||||
2402:8380::/32,
|
||||
@@ -1259,7 +1242,7 @@ set clashoo_china6 {
|
||||
2403:6380::/44,
|
||||
2403:6380:20::/44,
|
||||
2403:6380:33::/48,
|
||||
2403:6380:34::/46,
|
||||
2403:6380:36::/47,
|
||||
2403:6380:38::/45,
|
||||
2403:6380:41::/48,
|
||||
2403:6380:44::/46,
|
||||
@@ -1491,9 +1474,6 @@ set clashoo_china6 {
|
||||
2404:1e80::/32,
|
||||
2404:1f40::/32,
|
||||
2404:21c0::/32,
|
||||
2404:2280:1000::/36,
|
||||
2404:2280:2000::/35,
|
||||
2404:2280:4000::/36,
|
||||
2404:30c0::/32,
|
||||
2404:3140::/32,
|
||||
2404:31c0::/32,
|
||||
@@ -1603,6 +1583,7 @@ set clashoo_china6 {
|
||||
2405:480::/32,
|
||||
2405:580::/32,
|
||||
2405:680::/32,
|
||||
2405:6c0:1::/48,
|
||||
2405:6c0:2::/47,
|
||||
2405:6c0:4::/46,
|
||||
2405:6c0:8::/45,
|
||||
@@ -2068,8 +2049,8 @@ set clashoo_china6 {
|
||||
2406:840:a40::/42,
|
||||
2406:840:a80::/41,
|
||||
2406:840:b00::/40,
|
||||
2406:840:c00::/47,
|
||||
2406:840:c03::/48,
|
||||
2406:840:c00::/48,
|
||||
2406:840:c02::/47,
|
||||
2406:840:c04::/46,
|
||||
2406:840:c08::/45,
|
||||
2406:840:c10::/44,
|
||||
@@ -2226,10 +2207,7 @@ set clashoo_china6 {
|
||||
2406:840:5d00::/40,
|
||||
2406:840:5e00::/39,
|
||||
2406:840:6000::/35,
|
||||
2406:840:8000::/40,
|
||||
2406:840:8200::/39,
|
||||
2406:840:8400::/38,
|
||||
2406:840:8800::/37,
|
||||
2406:840:8000::/36,
|
||||
2406:840:9010::/44,
|
||||
2406:840:9020::/43,
|
||||
2406:840:9040::/42,
|
||||
@@ -2284,10 +2262,7 @@ set clashoo_china6 {
|
||||
2406:840:9968::/46,
|
||||
2406:840:996d::/48,
|
||||
2406:840:996e::/47,
|
||||
2406:840:9970::/46,
|
||||
2406:840:9974::/47,
|
||||
2406:840:9976::/48,
|
||||
2406:840:9978::/45,
|
||||
2406:840:9970::/44,
|
||||
2406:840:9981::/48,
|
||||
2406:840:9982::/47,
|
||||
2406:840:9984::/46,
|
||||
@@ -2319,9 +2294,7 @@ set clashoo_china6 {
|
||||
2406:840:e0d0::/44,
|
||||
2406:840:e0e4::/48,
|
||||
2406:840:e0e6::/47,
|
||||
2406:840:e0e9::/48,
|
||||
2406:840:e0ea::/47,
|
||||
2406:840:e0ec::/46,
|
||||
2406:840:e0e8::/45,
|
||||
2406:840:e0f0::/44,
|
||||
2406:840:e100::/45,
|
||||
2406:840:e108::/46,
|
||||
@@ -2342,9 +2315,7 @@ set clashoo_china6 {
|
||||
2406:840:e220::/43,
|
||||
2406:840:e240::/43,
|
||||
2406:840:e260::/44,
|
||||
2406:840:e271::/48,
|
||||
2406:840:e272::/47,
|
||||
2406:840:e274::/46,
|
||||
2406:840:e270::/45,
|
||||
2406:840:e278::/46,
|
||||
2406:840:e27c::/47,
|
||||
2406:840:e27e::/48,
|
||||
@@ -2408,7 +2379,7 @@ set clashoo_china6 {
|
||||
2406:840:ea00::/40,
|
||||
2406:840:eb06::/48,
|
||||
2406:840:eb09::/48,
|
||||
2406:840:eb0a::/47,
|
||||
2406:840:eb0a::/48,
|
||||
2406:840:eb0c::/47,
|
||||
2406:840:eb0e::/48,
|
||||
2406:840:eb10::/44,
|
||||
@@ -2656,7 +2627,10 @@ set clashoo_china6 {
|
||||
2406:840:fee8::/46,
|
||||
2406:840:feec::/48,
|
||||
2406:840:feee::/47,
|
||||
2406:840:ff00::/40,
|
||||
2406:840:feff::/48,
|
||||
2406:840:ff20::/43,
|
||||
2406:840:ff40::/42,
|
||||
2406:840:ff80::/41,
|
||||
2406:880::/32,
|
||||
2406:8c0::/32,
|
||||
2406:d80::/32,
|
||||
@@ -3064,7 +3038,26 @@ set clashoo_china6 {
|
||||
2407:fb80::/32,
|
||||
2407:fc80::/32,
|
||||
2407:fd80::/32,
|
||||
2408:4000::/28,
|
||||
2408:4000::/40,
|
||||
2408:4000:100::/47,
|
||||
2408:4000:103::/48,
|
||||
2408:4000:104::/46,
|
||||
2408:4000:108::/45,
|
||||
2408:4000:110::/44,
|
||||
2408:4000:120::/43,
|
||||
2408:4000:140::/42,
|
||||
2408:4000:180::/41,
|
||||
2408:4000:200::/39,
|
||||
2408:4000:400::/38,
|
||||
2408:4000:800::/37,
|
||||
2408:4000:1000::/36,
|
||||
2408:4000:2000::/35,
|
||||
2408:4000:4000::/34,
|
||||
2408:4000:8000::/33,
|
||||
2408:4001::/32,
|
||||
2408:4002::/31,
|
||||
2408:4004::/30,
|
||||
2408:4008::/29,
|
||||
2408:4010::/30,
|
||||
2408:4014::/31,
|
||||
2408:4016:1::/48,
|
||||
@@ -3130,40 +3123,6 @@ set clashoo_china6 {
|
||||
240a:a000::/20,
|
||||
240a:c000::/20,
|
||||
240b:2000::/22,
|
||||
240b:4000::/31,
|
||||
240b:4002::/36,
|
||||
240b:4002:1000::/44,
|
||||
240b:4002:1011::/48,
|
||||
240b:4002:1012::/47,
|
||||
240b:4002:1014::/46,
|
||||
240b:4002:1018::/45,
|
||||
240b:4002:1020::/43,
|
||||
240b:4002:1040::/42,
|
||||
240b:4002:1080::/41,
|
||||
240b:4002:1100::/40,
|
||||
240b:4002:1200::/39,
|
||||
240b:4002:1400::/38,
|
||||
240b:4002:1800::/37,
|
||||
240b:4002:2000::/35,
|
||||
240b:4002:4000::/34,
|
||||
240b:4002:8000::/33,
|
||||
240b:4004::/31,
|
||||
240b:4006::/48,
|
||||
240b:4006:1000::/43,
|
||||
240b:4006:1020::/44,
|
||||
240b:4006:1100::/44,
|
||||
240b:4006:1110::/45,
|
||||
240b:4006:1118::/46,
|
||||
240b:4007::/32,
|
||||
240b:4009::/32,
|
||||
240b:400b::/32,
|
||||
240b:400c::/30,
|
||||
240b:4010:fffe::/47,
|
||||
240b:4011::/32,
|
||||
240b:4012::/31,
|
||||
240b:4014::/30,
|
||||
240b:4018::/30,
|
||||
240b:401f::/32,
|
||||
240b:6000::/20,
|
||||
240b:8000::/21,
|
||||
240b:a000::/25,
|
||||
@@ -3320,6 +3279,7 @@ set clashoo_china6 {
|
||||
2a04:f580:9280::/48,
|
||||
2a04:f580:9290::/48,
|
||||
2a05:1085::/32,
|
||||
2a06:9801:20::/48,
|
||||
2a0a:2840::/29,
|
||||
2a0a:d680::/37,
|
||||
2a0a:d680:800::/39,
|
||||
@@ -3361,7 +3321,6 @@ set clashoo_china6 {
|
||||
2a0a:d682::/33,
|
||||
2a0a:d682:8000::/34,
|
||||
2a0a:d682:c000::/36,
|
||||
2a0a:d683::/32,
|
||||
2a0a:d684::/32,
|
||||
2a0a:d685::/40,
|
||||
2a0a:d685:100::/41,
|
||||
@@ -3377,7 +3336,6 @@ set clashoo_china6 {
|
||||
2a0a:d685:1f0::/45,
|
||||
2a0a:d685:1f8::/47,
|
||||
2a0a:d685:1fa::/48,
|
||||
2a0a:d685:200::/48,
|
||||
2a0a:d685:202::/47,
|
||||
2a0a:d685:204::/46,
|
||||
2a0a:d685:208::/45,
|
||||
@@ -3386,7 +3344,10 @@ set clashoo_china6 {
|
||||
2a0a:d685:240::/42,
|
||||
2a0a:d685:280::/41,
|
||||
2a0a:d685:400::/40,
|
||||
2a0a:d685:500::/45,
|
||||
2a0a:d685:500::/48,
|
||||
2a0a:d685:502::/47,
|
||||
2a0a:d685:504::/48,
|
||||
2a0a:d685:506::/47,
|
||||
2a0a:d685:508::/48,
|
||||
2a0a:d685:50a::/47,
|
||||
2a0a:d685:50c::/46,
|
||||
|
||||
@@ -64,7 +64,6 @@ set clashoo_china {
|
||||
5.10.138.0/23,
|
||||
5.10.140.0/24,
|
||||
5.10.143.0/24,
|
||||
5.181.224.0/23,
|
||||
8.128.4.0/22,
|
||||
8.128.32.0/19,
|
||||
8.128.64.0/19,
|
||||
@@ -89,95 +88,14 @@ set clashoo_china {
|
||||
8.162.0.0/17,
|
||||
8.163.0.0/16,
|
||||
8.164.0.0/14,
|
||||
8.168.0.0/15,
|
||||
8.168.0.0/14,
|
||||
8.176.0.0/17,
|
||||
8.176.128.0/19,
|
||||
8.208.0.0/17,
|
||||
8.208.128.0/21,
|
||||
8.208.140.0/22,
|
||||
8.208.144.0/20,
|
||||
8.208.160.0/19,
|
||||
8.208.192.0/18,
|
||||
8.209.0.0/19,
|
||||
8.209.36.0/22,
|
||||
8.209.40.0/21,
|
||||
8.209.48.0/20,
|
||||
8.209.64.0/18,
|
||||
8.209.128.0/18,
|
||||
8.209.192.0/24,
|
||||
8.209.194.0/23,
|
||||
8.209.196.0/22,
|
||||
8.209.200.0/21,
|
||||
8.209.208.0/20,
|
||||
8.209.224.0/19,
|
||||
8.210.0.0/16,
|
||||
8.211.0.0/17,
|
||||
8.211.128.0/18,
|
||||
8.211.192.0/19,
|
||||
8.211.224.0/22,
|
||||
8.211.232.0/21,
|
||||
8.211.240.0/20,
|
||||
8.212.0.0/18,
|
||||
8.212.64.0/20,
|
||||
8.212.80.0/21,
|
||||
8.212.88.0/22,
|
||||
8.212.92.0/24,
|
||||
8.212.94.0/23,
|
||||
8.212.96.0/22,
|
||||
8.212.104.0/21,
|
||||
8.212.112.0/20,
|
||||
8.212.128.0/19,
|
||||
8.212.160.0/20,
|
||||
8.212.176.0/21,
|
||||
8.212.188.0/22,
|
||||
8.212.192.0/18,
|
||||
8.213.0.0/16,
|
||||
8.214.0.0/17,
|
||||
8.214.128.0/19,
|
||||
8.214.164.0/22,
|
||||
8.214.168.0/21,
|
||||
8.214.176.0/20,
|
||||
8.214.192.0/18,
|
||||
8.215.0.0/17,
|
||||
8.215.128.0/19,
|
||||
8.215.160.0/22,
|
||||
8.215.168.0/21,
|
||||
8.215.176.0/20,
|
||||
8.215.192.0/18,
|
||||
8.216.0.0/18,
|
||||
8.216.64.0/21,
|
||||
8.216.72.0/22,
|
||||
8.216.80.0/20,
|
||||
8.216.96.0/19,
|
||||
8.216.128.0/17,
|
||||
8.217.0.0/16,
|
||||
8.218.0.0/15,
|
||||
8.220.0.0/18,
|
||||
8.220.64.0/19,
|
||||
8.220.96.0/20,
|
||||
8.220.112.0/21,
|
||||
8.220.120.0/22,
|
||||
8.220.128.0/19,
|
||||
8.220.160.0/21,
|
||||
8.220.172.0/22,
|
||||
8.220.176.0/20,
|
||||
8.220.192.0/19,
|
||||
8.220.224.0/21,
|
||||
8.220.232.0/22,
|
||||
8.220.240.0/21,
|
||||
8.221.0.0/17,
|
||||
8.221.128.0/20,
|
||||
8.221.144.0/21,
|
||||
8.221.156.0/22,
|
||||
8.221.160.0/19,
|
||||
8.221.192.0/18,
|
||||
8.222.0.0/15,
|
||||
14.0.0.0/21,
|
||||
14.0.12.0/22,
|
||||
14.1.0.0/22,
|
||||
14.1.24.0/22,
|
||||
14.1.108.0/22,
|
||||
14.1.112.0/22,
|
||||
14.16.0.0/12,
|
||||
14.102.128.0/22,
|
||||
14.102.180.0/22,
|
||||
@@ -208,6 +126,7 @@ set clashoo_china {
|
||||
27.54.72.0/21,
|
||||
27.54.152.0/21,
|
||||
27.54.192.0/18,
|
||||
27.98.202.0/23,
|
||||
27.98.208.0/20,
|
||||
27.98.224.0/19,
|
||||
27.99.128.0/17,
|
||||
@@ -390,79 +309,6 @@ set clashoo_china {
|
||||
42.242.0.0/15,
|
||||
42.244.0.0/14,
|
||||
42.248.0.0/13,
|
||||
43.90.0.0/16,
|
||||
43.92.0.0/15,
|
||||
43.94.0.0/18,
|
||||
43.96.0.0/23,
|
||||
43.96.2.130/32,
|
||||
43.96.3.0/24,
|
||||
43.96.4.0/22,
|
||||
43.96.8.0/22,
|
||||
43.96.16.130/32,
|
||||
43.96.18.0/24,
|
||||
43.96.20.0/22,
|
||||
43.96.24.0/22,
|
||||
43.96.32.0/22,
|
||||
43.96.36.130/32,
|
||||
43.96.40.0/24,
|
||||
43.96.42.0/24,
|
||||
43.96.44.0/23,
|
||||
43.96.46.0/24,
|
||||
43.96.48.0/21,
|
||||
43.96.59.0/24,
|
||||
43.96.60.0/24,
|
||||
43.96.62.0/23,
|
||||
43.96.64.0/21,
|
||||
43.96.72.0/22,
|
||||
43.96.77.131/32,
|
||||
43.96.78.0/24,
|
||||
43.96.80.0/23,
|
||||
43.96.85.0/24,
|
||||
43.96.86.0/24,
|
||||
43.96.88.0/23,
|
||||
43.96.90.0/24,
|
||||
43.96.92.0/22,
|
||||
43.96.96.0/23,
|
||||
43.96.100.0/23,
|
||||
43.96.103.0/24,
|
||||
43.96.104.0/23,
|
||||
43.96.107.0/24,
|
||||
43.96.109.0/24,
|
||||
43.96.110.0/23,
|
||||
43.96.112.0/22,
|
||||
43.96.116.0/24,
|
||||
43.96.118.0/23,
|
||||
43.96.120.0/24,
|
||||
43.96.122.0/24,
|
||||
43.96.124.0/23,
|
||||
43.96.126.0/24,
|
||||
43.97.0.0/17,
|
||||
43.98.0.0/15,
|
||||
43.100.0.0/15,
|
||||
43.102.0.0/17,
|
||||
43.102.192.0/18,
|
||||
43.103.0.0/16,
|
||||
43.104.0.0/14,
|
||||
43.108.0.0/16,
|
||||
43.110.0.0/15,
|
||||
43.112.0.0/15,
|
||||
43.114.0.0/16,
|
||||
43.116.0.0/17,
|
||||
43.116.160.0/24,
|
||||
43.116.192.0/18,
|
||||
43.117.0.0/16,
|
||||
43.118.0.0/17,
|
||||
43.118.128.0/18,
|
||||
43.119.0.0/16,
|
||||
43.120.0.0/15,
|
||||
43.122.0.0/16,
|
||||
43.123.0.0/17,
|
||||
43.123.128.0/18,
|
||||
43.124.0.0/16,
|
||||
43.125.0.0/19,
|
||||
43.125.32.0/20,
|
||||
43.125.48.0/21,
|
||||
43.126.0.0/17,
|
||||
43.136.0.0/13,
|
||||
43.144.0.0/15,
|
||||
43.148.0.0/14,
|
||||
@@ -765,7 +611,9 @@ set clashoo_china {
|
||||
45.113.168.0/22,
|
||||
45.113.176.0/22,
|
||||
45.113.184.0/22,
|
||||
45.113.200.0/21,
|
||||
45.113.200.0/23,
|
||||
45.113.202.0/24,
|
||||
45.113.204.0/22,
|
||||
45.113.208.0/20,
|
||||
45.113.240.0/22,
|
||||
45.113.252.0/22,
|
||||
@@ -885,7 +733,6 @@ set clashoo_china {
|
||||
45.127.128.0/22,
|
||||
45.127.144.0/21,
|
||||
45.127.156.0/22,
|
||||
45.199.179.0/24,
|
||||
45.248.8.0/22,
|
||||
45.248.80.0/21,
|
||||
45.248.96.0/20,
|
||||
@@ -989,158 +836,8 @@ set clashoo_china {
|
||||
45.255.224.0/20,
|
||||
45.255.240.0/21,
|
||||
45.255.248.0/22,
|
||||
47.52.0.0/16,
|
||||
47.56.0.0/16,
|
||||
47.57.0.0/17,
|
||||
47.57.128.0/18,
|
||||
47.57.192.0/22,
|
||||
47.57.196.0/24,
|
||||
47.57.198.0/23,
|
||||
47.57.200.0/21,
|
||||
47.57.208.0/20,
|
||||
47.57.224.0/19,
|
||||
47.74.0.0/15,
|
||||
47.76.0.0/16,
|
||||
47.77.0.0/20,
|
||||
47.77.16.0/21,
|
||||
47.77.24.0/22,
|
||||
47.77.32.0/19,
|
||||
47.77.64.0/19,
|
||||
47.77.96.0/20,
|
||||
47.77.112.0/23,
|
||||
47.77.128.0/17,
|
||||
47.78.0.0/15,
|
||||
47.80.0.0/14,
|
||||
47.84.0.0/15,
|
||||
47.86.0.0/16,
|
||||
47.87.0.0/20,
|
||||
47.87.16.0/21,
|
||||
47.87.32.0/19,
|
||||
47.87.64.0/21,
|
||||
47.87.80.0/20,
|
||||
47.87.96.0/19,
|
||||
47.87.128.0/20,
|
||||
47.87.144.0/21,
|
||||
47.87.156.0/22,
|
||||
47.87.160.0/19,
|
||||
47.87.192.0/18,
|
||||
47.88.0.0/16,
|
||||
47.89.0.0/18,
|
||||
47.89.72.0/21,
|
||||
47.89.80.0/22,
|
||||
47.89.84.0/24,
|
||||
47.89.88.0/23,
|
||||
47.89.90.0/24,
|
||||
47.89.92.0/22,
|
||||
47.89.96.0/20,
|
||||
47.89.122.0/23,
|
||||
47.89.124.0/23,
|
||||
47.89.128.0/17,
|
||||
47.90.0.0/17,
|
||||
47.90.128.0/19,
|
||||
47.90.160.0/21,
|
||||
47.90.168.0/22,
|
||||
47.90.176.0/20,
|
||||
47.90.192.0/18,
|
||||
47.91.0.0/16,
|
||||
47.92.0.0/14,
|
||||
47.96.0.0/11,
|
||||
47.235.0.0/21,
|
||||
47.235.8.0/22,
|
||||
47.235.12.0/23,
|
||||
47.235.16.0/20,
|
||||
47.236.0.0/17,
|
||||
47.236.128.0/18,
|
||||
47.236.192.0/20,
|
||||
47.236.208.0/21,
|
||||
47.236.220.0/22,
|
||||
47.236.224.0/19,
|
||||
47.237.0.0/17,
|
||||
47.237.128.0/18,
|
||||
47.237.192.0/19,
|
||||
47.237.224.0/20,
|
||||
47.237.240.0/21,
|
||||
47.237.249.0/24,
|
||||
47.237.250.0/23,
|
||||
47.237.252.0/22,
|
||||
47.238.0.0/20,
|
||||
47.238.16.0/21,
|
||||
47.238.28.0/22,
|
||||
47.238.32.0/19,
|
||||
47.238.64.0/18,
|
||||
47.238.128.0/17,
|
||||
47.239.0.0/16,
|
||||
47.240.0.0/14,
|
||||
47.244.0.0/16,
|
||||
47.245.0.0/17,
|
||||
47.245.128.0/20,
|
||||
47.245.144.0/21,
|
||||
47.245.152.0/22,
|
||||
47.245.160.0/19,
|
||||
47.245.192.0/20,
|
||||
47.245.208.0/21,
|
||||
47.245.216.0/22,
|
||||
47.245.224.0/19,
|
||||
47.246.32.0/22,
|
||||
47.246.66.0/23,
|
||||
47.246.68.0/23,
|
||||
47.246.72.0/21,
|
||||
47.246.82.0/23,
|
||||
47.246.84.0/22,
|
||||
47.246.88.0/23,
|
||||
47.246.91.0/24,
|
||||
47.246.92.0/23,
|
||||
47.246.96.0/22,
|
||||
47.246.101.0/24,
|
||||
47.246.102.0/23,
|
||||
47.246.104.0/21,
|
||||
47.246.120.0/24,
|
||||
47.246.122.0/23,
|
||||
47.246.124.0/23,
|
||||
47.246.128.0/23,
|
||||
47.246.131.0/24,
|
||||
47.246.132.0/23,
|
||||
47.246.135.0/24,
|
||||
47.246.136.0/21,
|
||||
47.246.144.0/22,
|
||||
47.246.150.0/23,
|
||||
47.246.152.0/22,
|
||||
47.246.157.0/24,
|
||||
47.246.158.0/23,
|
||||
47.246.160.0/23,
|
||||
47.246.162.0/24,
|
||||
47.246.164.0/22,
|
||||
47.246.168.0/21,
|
||||
47.246.176.0/20,
|
||||
47.246.192.0/20,
|
||||
47.246.208.0/23,
|
||||
47.246.212.0/22,
|
||||
47.246.216.0/22,
|
||||
47.250.0.0/18,
|
||||
47.250.68.0/22,
|
||||
47.250.72.0/21,
|
||||
47.250.80.0/20,
|
||||
47.250.96.0/21,
|
||||
47.250.108.0/22,
|
||||
47.250.112.0/20,
|
||||
47.250.128.0/17,
|
||||
47.251.0.0/17,
|
||||
47.251.132.0/22,
|
||||
47.251.136.0/21,
|
||||
47.251.144.0/20,
|
||||
47.251.160.0/19,
|
||||
47.251.196.0/22,
|
||||
47.251.200.0/21,
|
||||
47.251.208.0/20,
|
||||
47.251.224.0/19,
|
||||
47.252.0.0/16,
|
||||
47.253.0.0/18,
|
||||
47.253.64.0/19,
|
||||
47.253.96.0/20,
|
||||
47.253.112.0/21,
|
||||
47.253.120.0/22,
|
||||
47.253.128.0/17,
|
||||
47.254.0.0/16,
|
||||
49.4.0.0/17,
|
||||
49.4.128.0/22,
|
||||
49.4.160.0/20,
|
||||
@@ -1191,7 +888,7 @@ set clashoo_china {
|
||||
58.30.0.0/15,
|
||||
58.32.0.0/11,
|
||||
58.65.232.0/21,
|
||||
58.67.128.0/17,
|
||||
58.66.0.0/15,
|
||||
58.68.224.0/19,
|
||||
58.82.0.0/17,
|
||||
58.83.0.0/16,
|
||||
@@ -1207,9 +904,7 @@ set clashoo_china {
|
||||
59.32.0.0/11,
|
||||
59.64.0.0/12,
|
||||
59.80.0.0/14,
|
||||
59.107.0.0/17,
|
||||
59.107.226.0/24,
|
||||
59.107.255.0/24,
|
||||
59.107.0.0/16,
|
||||
59.108.0.0/14,
|
||||
59.151.0.0/17,
|
||||
59.152.16.0/20,
|
||||
@@ -1278,7 +973,6 @@ set clashoo_china {
|
||||
61.232.0.0/14,
|
||||
61.236.0.0/15,
|
||||
61.240.0.0/14,
|
||||
62.182.190.0/23,
|
||||
62.234.0.0/16,
|
||||
63.140.0.0/24,
|
||||
63.140.3.0/24,
|
||||
@@ -1305,6 +999,7 @@ set clashoo_china {
|
||||
81.173.28.0/24,
|
||||
82.156.0.0/15,
|
||||
94.191.0.0/17,
|
||||
95.82.8.0/23,
|
||||
101.0.0.0/22,
|
||||
101.1.0.0/22,
|
||||
101.2.172.0/22,
|
||||
@@ -1524,7 +1219,7 @@ set clashoo_china {
|
||||
103.19.64.0/21,
|
||||
103.19.72.0/22,
|
||||
103.19.233.0/24,
|
||||
103.19.234.0/23,
|
||||
103.19.235.0/24,
|
||||
103.20.12.0/22,
|
||||
103.20.32.0/24,
|
||||
103.20.34.0/23,
|
||||
@@ -1801,7 +1496,8 @@ set clashoo_china {
|
||||
103.53.64.0/21,
|
||||
103.53.92.0/22,
|
||||
103.53.100.0/22,
|
||||
103.53.124.0/22,
|
||||
103.53.124.0/23,
|
||||
103.53.126.0/24,
|
||||
103.53.128.0/20,
|
||||
103.53.144.0/22,
|
||||
103.53.180.0/22,
|
||||
@@ -1982,6 +1678,7 @@ set clashoo_china {
|
||||
103.74.48.0/22,
|
||||
103.74.56.0/21,
|
||||
103.74.80.0/22,
|
||||
103.74.124.0/24,
|
||||
103.74.126.0/23,
|
||||
103.74.148.0/22,
|
||||
103.74.152.0/21,
|
||||
@@ -2042,7 +1739,7 @@ set clashoo_china {
|
||||
103.81.120.0/22,
|
||||
103.81.148.0/22,
|
||||
103.81.164.0/22,
|
||||
103.81.184.0/22,
|
||||
103.81.184.0/23,
|
||||
103.81.200.0/22,
|
||||
103.81.232.0/22,
|
||||
103.82.60.0/22,
|
||||
@@ -2337,6 +2034,7 @@ set clashoo_china {
|
||||
103.114.212.0/22,
|
||||
103.114.236.0/22,
|
||||
103.114.240.0/22,
|
||||
103.115.19.0/24,
|
||||
103.115.52.0/22,
|
||||
103.115.68.0/22,
|
||||
103.115.92.0/22,
|
||||
@@ -2364,7 +2062,6 @@ set clashoo_china {
|
||||
103.118.64.0/21,
|
||||
103.118.72.0/22,
|
||||
103.118.88.0/22,
|
||||
103.118.210.0/23,
|
||||
103.118.212.0/22,
|
||||
103.118.216.0/22,
|
||||
103.118.248.0/22,
|
||||
@@ -2653,6 +2350,7 @@ set clashoo_china {
|
||||
103.177.28.0/23,
|
||||
103.177.44.0/23,
|
||||
103.177.71.0/24,
|
||||
103.177.136.0/24,
|
||||
103.177.162.0/23,
|
||||
103.178.240.0/23,
|
||||
103.179.76.0/22,
|
||||
@@ -3259,7 +2957,16 @@ set clashoo_china {
|
||||
110.6.0.0/15,
|
||||
110.16.0.0/14,
|
||||
110.34.40.0/21,
|
||||
110.40.0.0/14,
|
||||
110.40.0.0/15,
|
||||
110.42.0.0/20,
|
||||
110.42.16.0/24,
|
||||
110.42.18.0/23,
|
||||
110.42.20.0/22,
|
||||
110.42.24.0/21,
|
||||
110.42.32.0/19,
|
||||
110.42.64.0/18,
|
||||
110.42.128.0/17,
|
||||
110.43.0.0/16,
|
||||
110.44.12.0/22,
|
||||
110.44.144.0/20,
|
||||
110.48.0.0/16,
|
||||
@@ -3578,7 +3285,6 @@ set clashoo_china {
|
||||
116.242.0.0/15,
|
||||
116.244.0.0/14,
|
||||
116.248.0.0/15,
|
||||
116.251.64.0/18,
|
||||
116.252.0.0/15,
|
||||
116.254.104.0/21,
|
||||
116.254.128.0/17,
|
||||
@@ -3870,7 +3576,9 @@ set clashoo_china {
|
||||
121.248.0.0/14,
|
||||
121.255.0.0/16,
|
||||
122.0.64.0/18,
|
||||
122.0.128.0/17,
|
||||
122.0.160.0/19,
|
||||
122.0.192.0/19,
|
||||
122.0.224.0/20,
|
||||
122.4.0.0/14,
|
||||
122.8.52.0/22,
|
||||
122.8.57.0/24,
|
||||
@@ -4035,10 +3743,19 @@ set clashoo_china {
|
||||
124.6.64.0/18,
|
||||
124.14.0.0/15,
|
||||
124.16.0.0/15,
|
||||
124.20.0.0/16,
|
||||
124.20.32.0/19,
|
||||
124.20.64.0/19,
|
||||
124.20.96.0/20,
|
||||
124.20.128.0/18,
|
||||
124.20.192.0/19,
|
||||
124.20.240.0/20,
|
||||
124.21.32.0/19,
|
||||
124.21.64.0/18,
|
||||
124.21.128.0/17,
|
||||
124.21.80.0/20,
|
||||
124.21.96.0/19,
|
||||
124.21.144.0/20,
|
||||
124.21.160.0/19,
|
||||
124.21.208.0/20,
|
||||
124.21.224.0/19,
|
||||
124.22.0.0/15,
|
||||
124.28.192.0/18,
|
||||
124.29.0.0/17,
|
||||
@@ -4076,15 +3793,7 @@ set clashoo_china {
|
||||
124.151.0.0/16,
|
||||
124.152.0.0/16,
|
||||
124.160.0.0/13,
|
||||
124.172.87.0/24,
|
||||
124.172.88.0/23,
|
||||
124.172.91.0/24,
|
||||
124.172.93.0/24,
|
||||
124.172.128.0/17,
|
||||
124.173.64.0/18,
|
||||
124.173.128.0/18,
|
||||
124.173.205.0/24,
|
||||
124.174.0.0/15,
|
||||
124.172.0.0/14,
|
||||
124.192.0.0/15,
|
||||
124.196.0.0/16,
|
||||
124.197.56.0/21,
|
||||
@@ -4153,15 +3862,6 @@ set clashoo_china {
|
||||
139.5.212.0/22,
|
||||
139.5.244.0/22,
|
||||
139.9.0.0/16,
|
||||
139.95.0.0/20,
|
||||
139.95.16.0/22,
|
||||
139.95.22.0/23,
|
||||
139.95.24.0/21,
|
||||
139.95.32.0/21,
|
||||
139.95.40.0/23,
|
||||
139.95.64.0/23,
|
||||
139.95.96.0/22,
|
||||
139.95.128.0/17,
|
||||
139.129.0.0/16,
|
||||
139.148.0.0/16,
|
||||
139.155.0.0/16,
|
||||
@@ -4222,7 +3922,14 @@ set clashoo_china {
|
||||
140.179.0.0/16,
|
||||
140.205.0.0/16,
|
||||
140.206.0.0/15,
|
||||
140.210.0.0/16,
|
||||
140.210.0.0/20,
|
||||
140.210.17.0/24,
|
||||
140.210.18.0/24,
|
||||
140.210.20.0/22,
|
||||
140.210.24.0/21,
|
||||
140.210.32.0/19,
|
||||
140.210.64.0/18,
|
||||
140.210.128.0/17,
|
||||
140.224.0.0/16,
|
||||
140.237.0.0/16,
|
||||
140.240.0.0/16,
|
||||
@@ -4279,23 +3986,9 @@ set clashoo_china {
|
||||
146.222.94.0/24,
|
||||
147.78.132.0/24,
|
||||
147.78.134.0/24,
|
||||
147.139.0.0/17,
|
||||
147.139.128.0/18,
|
||||
147.139.192.0/19,
|
||||
147.139.224.0/20,
|
||||
147.139.240.0/21,
|
||||
147.139.248.0/22,
|
||||
148.70.0.0/16,
|
||||
149.41.64.0/18,
|
||||
149.41.192.0/19,
|
||||
149.129.0.0/20,
|
||||
149.129.16.0/21,
|
||||
149.129.32.0/19,
|
||||
149.129.64.0/18,
|
||||
149.129.128.0/19,
|
||||
149.129.168.0/21,
|
||||
149.129.176.0/20,
|
||||
149.129.192.0/18,
|
||||
150.0.0.0/16,
|
||||
150.115.0.0/16,
|
||||
150.121.0.0/16,
|
||||
@@ -4335,7 +4028,7 @@ set clashoo_china {
|
||||
151.158.14.0/23,
|
||||
151.158.78.0/23,
|
||||
151.158.80.0/23,
|
||||
151.158.122.0/23,
|
||||
151.158.123.0/24,
|
||||
152.104.128.0/17,
|
||||
152.136.0.0/16,
|
||||
153.0.0.0/16,
|
||||
@@ -4353,10 +4046,6 @@ set clashoo_china {
|
||||
156.107.170.0/24,
|
||||
156.107.179.0/24,
|
||||
156.107.181.0/24,
|
||||
156.227.20.0/24,
|
||||
156.236.12.0/24,
|
||||
156.236.17.0/24,
|
||||
156.245.1.0/24,
|
||||
157.0.0.0/16,
|
||||
157.10.34.0/23,
|
||||
157.10.36.0/23,
|
||||
@@ -4452,7 +4141,6 @@ set clashoo_china {
|
||||
160.250.170.0/23,
|
||||
160.250.214.0/23,
|
||||
160.250.252.0/23,
|
||||
161.117.0.0/16,
|
||||
161.163.0.0/21,
|
||||
161.163.28.0/23,
|
||||
161.189.0.0/16,
|
||||
@@ -4510,7 +4198,9 @@ set clashoo_china {
|
||||
163.204.0.0/16,
|
||||
163.223.28.0/23,
|
||||
163.223.32.0/23,
|
||||
163.223.72.0/23,
|
||||
163.223.124.0/23,
|
||||
163.223.216.0/24,
|
||||
163.223.222.0/23,
|
||||
163.227.34.0/23,
|
||||
163.227.40.0/23,
|
||||
@@ -4538,29 +4228,6 @@ set clashoo_china {
|
||||
167.189.0.0/16,
|
||||
167.220.244.0/22,
|
||||
168.160.0.0/16,
|
||||
170.33.15.0/24,
|
||||
170.33.20.0/22,
|
||||
170.33.24.0/24,
|
||||
170.33.29.0/24,
|
||||
170.33.30.0/23,
|
||||
170.33.32.0/22,
|
||||
170.33.41.0/24,
|
||||
170.33.64.0/23,
|
||||
170.33.66.0/24,
|
||||
170.33.68.0/23,
|
||||
170.33.72.0/23,
|
||||
170.33.76.0/22,
|
||||
170.33.80.0/22,
|
||||
170.33.84.0/24,
|
||||
170.33.104.0/22,
|
||||
170.33.112.0/23,
|
||||
170.33.114.0/24,
|
||||
170.33.129.0/24,
|
||||
170.33.130.0/23,
|
||||
170.33.136.0/23,
|
||||
170.33.138.0/24,
|
||||
170.33.168.0/23,
|
||||
170.33.192.0/23,
|
||||
170.179.0.0/16,
|
||||
171.8.0.0/13,
|
||||
171.34.0.0/15,
|
||||
@@ -4601,7 +4268,10 @@ set clashoo_china {
|
||||
177.201.160.0/19,
|
||||
177.203.96.0/19,
|
||||
177.203.224.0/19,
|
||||
178.236.38.0/23,
|
||||
178.236.233.0/24,
|
||||
178.236.234.0/24,
|
||||
178.236.237.0/24,
|
||||
179.236.0.0/19,
|
||||
180.76.16.0/20,
|
||||
180.76.32.0/19,
|
||||
@@ -4739,12 +4409,6 @@ set clashoo_china {
|
||||
193.119.0.0/19,
|
||||
194.138.202.0/23,
|
||||
194.138.245.0/24,
|
||||
198.11.128.0/20,
|
||||
198.11.145.0/24,
|
||||
198.11.146.0/23,
|
||||
198.11.148.0/22,
|
||||
198.11.152.0/21,
|
||||
198.11.160.0/19,
|
||||
198.175.100.0/22,
|
||||
198.208.17.0/24,
|
||||
198.208.19.0/24,
|
||||
@@ -5115,7 +4779,8 @@ set clashoo_china {
|
||||
202.143.56.0/21,
|
||||
202.143.100.0/22,
|
||||
202.143.104.0/22,
|
||||
202.144.196.0/22,
|
||||
202.144.196.0/23,
|
||||
202.144.198.0/24,
|
||||
202.146.160.0/20,
|
||||
202.146.184.0/23,
|
||||
202.146.186.0/24,
|
||||
@@ -6100,7 +5765,17 @@ set clashoo_china {
|
||||
203.104.32.0/20,
|
||||
203.105.96.0/19,
|
||||
203.105.128.0/19,
|
||||
203.107.0.0/17,
|
||||
203.107.0.0/23,
|
||||
203.107.2.0/24,
|
||||
203.107.4.0/22,
|
||||
203.107.8.0/21,
|
||||
203.107.16.0/20,
|
||||
203.107.32.0/19,
|
||||
203.107.69.0/24,
|
||||
203.107.70.0/23,
|
||||
203.107.72.0/21,
|
||||
203.107.80.0/20,
|
||||
203.107.96.0/19,
|
||||
203.110.160.0/19,
|
||||
203.110.208.0/20,
|
||||
203.110.232.0/23,
|
||||
@@ -6238,8 +5913,6 @@ set clashoo_china {
|
||||
203.223.16.0/24,
|
||||
203.223.21.0/24,
|
||||
203.223.22.0/23,
|
||||
205.204.96.0/19,
|
||||
206.109.70.0/23,
|
||||
206.109.75.0/24,
|
||||
210.2.0.0/19,
|
||||
210.5.0.0/19,
|
||||
@@ -6286,7 +5959,7 @@ set clashoo_china {
|
||||
211.100.0.0/15,
|
||||
211.102.0.0/17,
|
||||
211.102.128.0/21,
|
||||
211.102.144.0/21,
|
||||
211.102.144.0/20,
|
||||
211.102.160.0/20,
|
||||
211.102.192.0/18,
|
||||
211.103.0.0/16,
|
||||
@@ -6295,6 +5968,7 @@ set clashoo_china {
|
||||
211.148.0.0/16,
|
||||
211.149.0.0/19,
|
||||
211.149.32.0/22,
|
||||
211.149.44.0/22,
|
||||
211.149.48.0/21,
|
||||
211.149.64.0/21,
|
||||
211.149.80.0/21,
|
||||
@@ -6336,9 +6010,7 @@ set clashoo_china {
|
||||
218.30.32.0/22,
|
||||
218.30.36.0/23,
|
||||
218.30.38.0/24,
|
||||
218.30.40.0/22,
|
||||
218.30.45.0/24,
|
||||
218.30.46.0/23,
|
||||
218.30.40.0/21,
|
||||
218.30.48.0/21,
|
||||
218.30.56.0/22,
|
||||
218.30.60.0/23,
|
||||
@@ -6492,9 +6164,11 @@ set clashoo_china {
|
||||
223.122.18.0/23,
|
||||
223.122.20.0/22,
|
||||
223.122.26.0/23,
|
||||
223.122.28.0/23,
|
||||
223.122.29.0/24,
|
||||
223.123.176.0/21,
|
||||
223.123.196.0/22,
|
||||
223.123.204.0/22,
|
||||
223.123.205.0/24,
|
||||
223.123.206.0/23,
|
||||
223.123.208.0/20,
|
||||
223.123.224.0/19,
|
||||
223.124.0.0/14,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-3
@@ -5,10 +5,10 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dae
|
||||
PKG_VERSION:=2026.11.05
|
||||
PKG_RELEASE:=54
|
||||
PKG_VERSION:=2026.11.09
|
||||
PKG_RELEASE:=55
|
||||
|
||||
PKG_SOURCE:=dae-src-2026.11.05-7cf97ff42dc6.tar.gz
|
||||
PKG_SOURCE:=dae-src-2026.11.09-45df6d7de7ee.tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/kenzok8/openwrt-daede/releases/download/dae-src
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_HASH:=skip
|
||||
|
||||
+3
-3
@@ -5,10 +5,10 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=daed
|
||||
PKG_VERSION:=2026.11.05
|
||||
PKG_RELEASE:=66
|
||||
PKG_VERSION:=2026.11.09
|
||||
PKG_RELEASE:=67
|
||||
|
||||
PKG_SOURCE:=daed-src-2026.11.05-b1e30bc02200.tar.gz
|
||||
PKG_SOURCE:=daed-src-2026.11.09-82f4f6af67da.tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/kenzok8/openwrt-daede/releases/download/daed-src
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_HASH:=skip
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ddns-go
|
||||
PKG_VERSION:=6.17.7
|
||||
PKG_RELEASE:=24
|
||||
PKG_VERSION:=6.17.8
|
||||
PKG_RELEASE:=25
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/jeessy2/ddns-go/tar.gz/v$(PKG_VERSION)?
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_ARCH_FASTNET:=$(ARCH)
|
||||
|
||||
PKG_NAME:=fastnet
|
||||
PKG_VERSION:=0.8.0
|
||||
PKG_RELEASE:=8
|
||||
PKG_VERSION:=0.8.1
|
||||
PKG_RELEASE:=9
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/istoreos/istoreos-app-hub/releases/download/fastnet-runtime-v$(PKG_VERSION)/
|
||||
|
||||
@@ -8,8 +8,8 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=LuCI support for fastnet
|
||||
LUCI_DEPENDS:=+fastnet +luci-lib-linkeaseauth +linkease-app-entry
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=0.8.0-r5
|
||||
PKG_RELEASE:=6
|
||||
PKG_VERSION:=0.8.1-r5
|
||||
PKG_RELEASE:=7
|
||||
LUCI_MINIFY_CSS:=0
|
||||
LUCI_MINIFY_JS:=0
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
}
|
||||
}
|
||||
o.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = form.Value.prototype.renderWidget.call(this, section_id, option_index, cfgvalue);
|
||||
let node = form.Value.prototype.renderWidget.apply(this, arguments);
|
||||
const cbid = this.cbid(section_id) + '._keytype_select';
|
||||
const selected = this.hm_options.type;
|
||||
|
||||
@@ -305,7 +305,7 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
|
||||
o = s.taboption('field_general', form.DynamicList, 'sudoku_custom_tables', _('Custom byte layout'),
|
||||
_('Only applies to the %s.').format(_('Low-entropy data stream')));
|
||||
o.renderWidget = function(/* ... */) {
|
||||
o.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = form.DynamicList.prototype.renderWidget.apply(this, arguments);
|
||||
|
||||
(node.querySelector('.control-group') || node).appendChild(E('button', {
|
||||
@@ -954,7 +954,7 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
}
|
||||
}
|
||||
o.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = hm.TextValue.prototype.renderWidget.call(this, section_id, option_index, cfgvalue);
|
||||
let node = hm.TextValue.prototype.renderWidget.apply(this, arguments);
|
||||
const cbid = this.cbid(section_id) + '._keytype_select';
|
||||
const selected = this.hm_options.type;
|
||||
|
||||
@@ -1216,7 +1216,7 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
}
|
||||
}
|
||||
o.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = hm.TextValue.prototype.renderWidget.call(this, section_id, option_index, cfgvalue);
|
||||
let node = hm.TextValue.prototype.renderWidget.apply(this, arguments);
|
||||
const cbid = this.cbid(section_id) + '._outer_sni';
|
||||
|
||||
node.appendChild(E('div', { 'class': 'control-group' }, [
|
||||
|
||||
@@ -596,7 +596,7 @@ return view.extend({
|
||||
}
|
||||
}
|
||||
so.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = hm.TextValue.prototype.renderWidget.call(this, section_id, option_index, cfgvalue);
|
||||
let node = hm.TextValue.prototype.renderWidget.apply(this, arguments);
|
||||
const cbid = this.cbid(section_id) + '._outer_sni';
|
||||
|
||||
node.appendChild(E('div', { 'class': 'control-group' }, [
|
||||
|
||||
@@ -2459,7 +2459,7 @@ return view.extend({
|
||||
}
|
||||
}
|
||||
so.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
let node = form.Value.prototype.renderWidget.call(this, section_id, option_index, cfgvalue);
|
||||
let node = form.Value.prototype.renderWidget.apply(this, arguments);
|
||||
const cbid = this.cbid(section_id) + '._keytype_select';
|
||||
const selected = this.hm_options.type;
|
||||
|
||||
|
||||
@@ -121,6 +121,20 @@ function parse_filter(cfg) {
|
||||
return cfg;
|
||||
}
|
||||
|
||||
function get_listener(cfg, no_verify) {
|
||||
if (isEmpty(cfg))
|
||||
return null;
|
||||
|
||||
const label = uci.get(uciconf, cfg, 'label');
|
||||
if (isEmpty(label)) {
|
||||
if (no_verify)
|
||||
return cfg;
|
||||
else
|
||||
die(sprintf("%s's label is missing, please check your configuration.", cfg));
|
||||
} else
|
||||
return label;
|
||||
}
|
||||
|
||||
function get_proxy(cfg, no_verify) {
|
||||
if (isEmpty(cfg))
|
||||
return null;
|
||||
@@ -179,7 +193,11 @@ function parse_entry(cfg) {
|
||||
function _payloadStrategy(payload) {
|
||||
// LOGIC_TYPE,((payload1),(payload2))
|
||||
if (payload.factor === null || (type(payload.factor) in ['bool', 'int', 'string'])) {
|
||||
return sprintf(payload.deny ? 'NOT,((%s))' : '%s', join(',', [payload.type, payload.factor ?? '']));
|
||||
return sprintf(payload.deny ? 'NOT,((%s))' : '%s', join(',',
|
||||
(payload.type === 'IN-NAME')
|
||||
? [payload.type, get_listener(payload.factor) ?? '']
|
||||
: [payload.type, payload.factor ?? '']
|
||||
));
|
||||
} else if (type(payload.factor) === 'array') {
|
||||
return sprintf(`${payload.type},(%s)`, join(',', map(payload.factor, p => `(${_payloadStrategy(p)})`)));
|
||||
} else if (type(payload.factor) === 'object') {
|
||||
@@ -352,22 +370,7 @@ uci.foreach(uciconf, uciinbd, (cfg) => {
|
||||
if (cfg.enabled === '0')
|
||||
return;
|
||||
|
||||
const listener = parseListener(cfg);
|
||||
listener.proxy = get_proxy(listener.proxy);
|
||||
if (listener["reality-config"])
|
||||
listener["reality-config"].proxy = get_proxy(listener["reality-config"].proxy);
|
||||
if (listener["shadow-tls"])
|
||||
listener["shadow-tls"].handshake.proxy = get_proxy(listener["shadow-tls"].handshake.proxy);
|
||||
if (listener["res-tls"])
|
||||
listener["res-tls"].proxy = get_proxy(listener["res-tls"].proxy);
|
||||
if (listener["jls-config"])
|
||||
listener["jls-config"].proxy = get_proxy(listener["jls-config"].proxy);
|
||||
if (listener["jls-upstream"])
|
||||
listener["jls-upstream"].proxy = get_proxy(listener["jls-upstream"].proxy);
|
||||
if (listener["realm-opts"])
|
||||
listener["realm-opts"].proxy = get_proxy(listener["realm-opts"].proxy);
|
||||
|
||||
push(config.listeners, listener);
|
||||
push(config.listeners, parseListener(cfg, get_proxy));
|
||||
});
|
||||
/* Tun settings */
|
||||
if (match(proxy_mode, /tun/))
|
||||
|
||||
@@ -224,16 +224,24 @@ export function parseVlessEncryption(payload, side) {
|
||||
(isEmpty(content.keypairs) ? '' : '.' + join('.', map(content.keypairs, e => e[side]))); // Required
|
||||
};
|
||||
|
||||
export function parseListener(cfg) {
|
||||
export function parseListener(cfg, proxyResolver) {
|
||||
if (proxyResolver == null)
|
||||
proxyResolver = value => value;
|
||||
else
|
||||
assert(
|
||||
type(proxyResolver) == 'function',
|
||||
'parseListener: proxyResolver must be a function'
|
||||
);
|
||||
|
||||
return {
|
||||
name: cfg['.name'],
|
||||
name: cfg.label,
|
||||
type: cfg.type,
|
||||
|
||||
listen: cfg.listen || '::',
|
||||
port: strToInt(cfg.listen_port),
|
||||
"routing-mark": strToInt(cfg.routing_mark) || null,
|
||||
rule: cfg.rule,
|
||||
proxy: cfg.proxy, // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.proxy),
|
||||
|
||||
/* HTTP / SOCKS / Mieru / VMess / VLESS / Trojan / AnyTLS / Tuic / Hysteria2 / TrustTunnel */
|
||||
users: (cfg.type in ['http', 'socks', 'mixed', 'vmess', 'vless', 'trojan', 'trusttunnel']) ? [
|
||||
@@ -332,7 +340,7 @@ export function parseListener(cfg) {
|
||||
"skip-cert-verify": strToBool(cfg.hysteria2_realm_skip_cert_verify),
|
||||
certificate: cfg.hysteria2_realm_cert_path, // mTLS
|
||||
"private-key": cfg.hysteria2_realm_key_path, // mTLS
|
||||
proxy: cfg.hysteria2_realm_proxy // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.hysteria2_realm_proxy)
|
||||
} : null,
|
||||
|
||||
/* Hysteria2 Realmserver */
|
||||
@@ -356,7 +364,7 @@ export function parseListener(cfg) {
|
||||
"jls-upstream": cfg.type === 'shadowquic' ? {
|
||||
addr: cfg.plugin_opts_handshake_dest,
|
||||
sni: cfg.plugin_opts_host,
|
||||
proxy: cfg.plugin_opts_dest_proxy, // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.plugin_opts_dest_proxy),
|
||||
"rate-limit": strToInt(cfg.plugin_opts_rate_limit)
|
||||
} : null,
|
||||
cwnd: strToInt(cfg.shadowquic_cwnd),
|
||||
@@ -410,7 +418,7 @@ export function parseListener(cfg) {
|
||||
} : { password: cfg.plugin_opts_thetlspassword }),
|
||||
handshake: {
|
||||
dest: cfg.plugin_opts_handshake_dest,
|
||||
proxy: cfg.plugin_opts_dest_proxy // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.plugin_opts_dest_proxy)
|
||||
}
|
||||
}
|
||||
} : cfg.plugin_type === 'restls' ? {
|
||||
@@ -421,7 +429,7 @@ export function parseListener(cfg) {
|
||||
password: cfg.plugin_opts_thetlspassword,
|
||||
"restls-script": cfg.plugin_opts_restls_script,
|
||||
//"min-record-len": 0,
|
||||
proxy: cfg.plugin_opts_dest_proxy, // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.plugin_opts_dest_proxy),
|
||||
"rate-limit": strToInt(cfg.plugin_opts_rate_limit)
|
||||
}
|
||||
} : cfg.plugin_type === 'jls' ? {
|
||||
@@ -437,7 +445,7 @@ export function parseListener(cfg) {
|
||||
dest: cfg.plugin_opts_handshake_dest,
|
||||
sni: cfg.plugin_opts_host,
|
||||
alpn: cfg.tls_alpn,
|
||||
proxy: cfg.plugin_opts_dest_proxy, // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.plugin_opts_dest_proxy),
|
||||
"rate-limit": strToInt(cfg.plugin_opts_rate_limit)
|
||||
}
|
||||
} : {}
|
||||
@@ -453,7 +461,7 @@ export function parseListener(cfg) {
|
||||
"short-id": cfg.tls_reality_short_id,
|
||||
"server-names": cfg.tls_reality_server_names,
|
||||
"max-time-difference": strToInt(cfg.tls_reality_max_time_difference),
|
||||
proxy: cfg.plugin_opts_dest_proxy, // raw data need post-processing
|
||||
proxy: proxyResolver(cfg.plugin_opts_dest_proxy),
|
||||
}
|
||||
} : {
|
||||
certificate: cfg.tls_cert_path,
|
||||
|
||||
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-openvpn-plus
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=11
|
||||
PKG_RELEASE:=12
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_MAINTAINER:=Manfred Jaider <info@masmbit.com>
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
google-site-verification: google8db8fb957efb7575.html
|
||||
@@ -0,0 +1,289 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- SEO Meta Tags -->
|
||||
<meta name="description" content="Configure high-performance OpenVPN servers & clients on OpenWrt instantly with luci-app-openvpn-plus. Features DCO support, QR-code export, setup wizards, and Flood Guard.">
|
||||
<meta name="keywords" content="openwrt, luci, openvpn, openvpn-dco, vpn-wizard, network-security, double-nat, duckdns">
|
||||
<meta name="robots" content="index, follow">
|
||||
|
||||
<!-- Open Graph / Facebook / Discord (Für schöne Link-Vorschauen) -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://ihre-domain.com">
|
||||
<meta property="og:title" content="luci-app-openvpn-plus - OpenWrt Web Interface">
|
||||
<meta property="og:description" content="A modern, all-in-one web interface to configure OpenVPN with kernel acceleration (DCO) and QR-code profile export.">
|
||||
<meta property="og:image" content="https://ihre-domain.comscreenshots/status-dark.png">
|
||||
|
||||
<!-- Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="luci-app-openvpn-plus - OpenWrt Web Interface">
|
||||
<meta name="twitter:description" content="A modern, all-in-one web interface to configure OpenVPN with kernel acceleration (DCO).">
|
||||
<meta name="twitter:image" content="https://ihre-domain.comscreenshots/status-dark.png">
|
||||
|
||||
<title>luci-app-openvpn-plus - OpenWrt Web Interface</title>
|
||||
<!-- Tailwind CSS for modern styling -->
|
||||
<script src="https://jsdelivr.net"></script>
|
||||
<style>
|
||||
.custom-gradient {
|
||||
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-slate-50 text-slate-800 font-sans antialiased">
|
||||
|
||||
<!-- Header / Hero Section -->
|
||||
<header class="custom-gradient text-white py-16 px-4 border-b border-slate-700">
|
||||
<div class="max-w-5xl mx-auto text-center">
|
||||
<h1 class="text-4xl md:text-5xl font-extrabold tracking-tight mb-4 text-teal-400">
|
||||
luci-app-openvpn-plus
|
||||
</h1>
|
||||
<p class="text-xl md:text-2xl text-slate-300 max-w-3xl mx-auto font-light">
|
||||
Modern and easy web interface to configure OpenVPN servers and clients on OpenWrt.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Main Content Container -->
|
||||
<main class="max-w-5xl mx-auto px-4 py-12 space-y-16">
|
||||
|
||||
<!-- Description Section -->
|
||||
<section id="description" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-6 text-slate-900 border-b border-slate-100 pb-3">Description</h2>
|
||||
<div class="space-y-4 text-slate-600 leading-relaxed text-base">
|
||||
<p>
|
||||
This package provides a modern, all-in-one web interface to configure OpenVPN servers and clients quickly. Featuring a built-in key generator, setup wizard, Flood Guard protocol protection, DDNS, SSL-VPN, and profile import/export via QR-code, your VPN is ready to use immediately.
|
||||
</p>
|
||||
<p>
|
||||
Thanks to this simple application, <strong class="text-slate-900 font-semibold">anyone can build a professional SSL/TLS-VPN network now</strong>. You do not need to understand complex crypto keys or write config files. The app does all the hard background work for you. With the step-by-step wizard, you can create secure VPN connections for travel and mobile devices in seconds.
|
||||
</p>
|
||||
<p>
|
||||
Setting up your mobile phone is incredibly easy—just scan the secure QR-code on your screen with your smartphone camera. In the past, running a VPN behind internet provider modems was very complex. To fix this, the app includes smart Double-NAT detection and automated live port checking. This makes the installation completely effortless and brings professional, enterprise-grade VPN features straight to standard OpenWrt routers.
|
||||
</p>
|
||||
<p class="bg-teal-50/50 border-l-4 border-teal-500 p-4 rounded-r-lg text-slate-700 mt-6">
|
||||
<strong class="text-teal-900 font-bold">High Performance for Affordable Hardware:</strong> You don't need expensive enterprise equipment. Thanks to native <strong class="font-semibold text-slate-900">OpenVPN Data Channel Offload (DCO)</strong> integration and our automatic MTU engine, the app achieves outstanding throughput rates—matching the speed of Wireguard even on budget-friendly wireless access points.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Benchmarks Section -->
|
||||
<section id="benchmarks" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-4 text-slate-900 flex items-center gap-2">
|
||||
<span>📊</span> Real-World Performance Benchmarks (iperf3)
|
||||
</h2>
|
||||
<p class="text-slate-600 mb-6">
|
||||
We tested the real-world performance of <code class="bg-slate-100 px-1.5 py-0.5 rounded text-sm text-pink-600 font-mono">luci-app-openvpn-plus</code> using two affordable <strong class="text-slate-900 font-semibold">Zyxel NWA50AX Pro</strong> wireless access points. Both devices run as pure APs behind standard internet provider modems.
|
||||
</p>
|
||||
<p class="text-slate-600 mb-8">
|
||||
Even though the traffic has to pass through <strong class="text-slate-900 font-semibold">Double-NAT</strong> and simple port forwardings, the performance matches expensive enterprise hardware:
|
||||
</p>
|
||||
|
||||
<div class="grid md:grid-cols-2 gap-6">
|
||||
<!-- Test A -->
|
||||
<div class="border border-slate-200 rounded-xl p-6 bg-slate-50/50 hover:border-slate-300 transition-colors">
|
||||
<h3 class="text-lg font-bold text-slate-900 mb-3 flex items-center gap-2">
|
||||
<span class="text-blue-500">🔹</span> Test A: Site-to-Site Tunnel (UDP Mode)
|
||||
</h3>
|
||||
<ul class="space-y-2 text-sm text-slate-600 mb-4">
|
||||
<li><strong class="text-slate-800">Setup:</strong> Zyxel AP ↔️ WAN Router ↔️ Internet ↔️ WAN Router ↔️ Zyxel AP</li>
|
||||
<li><strong class="text-slate-800">Network Status:</strong> Both routers are behind Double-NAT.</li>
|
||||
<li class="pt-2 text-base"><strong class="text-slate-800">Benchmark Result:</strong> <span class="bg-emerald-100 text-emerald-800 font-bold px-2 py-0.5 rounded">450+ Mbit/s 🚀</span></li>
|
||||
</ul>
|
||||
<p class="text-xs italic text-slate-500 border-t border-slate-200 pt-3">
|
||||
The crypto load is perfectly split across multiple CPU cores thanks to OpenVPN DCO and our automatic MTU engine.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Test B -->
|
||||
<div class="border border-slate-200 rounded-xl p-6 bg-slate-50/50 hover:border-slate-300 transition-colors">
|
||||
<h3 class="text-lg font-bold text-slate-900 mb-3 flex items-center gap-2">
|
||||
<span class="text-amber-500">🔸</span> Test B: Mobile Client / Roadwarrior (TCP / SSL-VPN Mode)
|
||||
</h3>
|
||||
<ul class="space-y-2 text-sm text-slate-600 mb-4">
|
||||
<li><strong class="text-slate-800">Setup:</strong> Zyxel AP ↔️ WAN Router ↔️ Internet ↔️ Smartphone with OpenVPN App</li>
|
||||
<li><strong class="text-slate-800">Network Status:</strong> The server AP is behind Double-NAT</li>
|
||||
<li class="pt-2 text-base"><strong class="text-slate-800">Benchmark Result:</strong> <span class="bg-emerald-100 text-emerald-800 font-bold px-2 py-0.5 rounded">200+ Mbit/s 📱</span></li>
|
||||
</ul>
|
||||
<p class="text-xs italic text-slate-500 border-t border-slate-200 pt-3">
|
||||
This is the absolute maximum for a single CPU core under TCP. It bypasses strict public firewalls easily while keeping your smartphone connection incredibly fast.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Features Section -->
|
||||
<section id="features" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-6 text-slate-900 border-b border-slate-100 pb-3">Features</h2>
|
||||
<ul class="grid sm:grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Easy Setup:</strong> Build fully working OpenVPN servers or clients in seconds.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Connection Wizard:</strong> Simple step-by-step setup for mobile phones, laptops, and router-to-router networks (Site-to-Site).</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Enterprise-Grade Speeds:</strong> Out-of-the-box support for OpenVPN Data Channel Offload (DCO) to match Wireguard performance.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Smart MTU Engine:</strong> Automatically calculates and tunes packet sizes to eliminate fragmentation and balance multi-core CPU load.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Secure Site-to-Site Routing:</strong> Built-in iroute() hook with dynamic Anti-Loop Prevention to prevent kernel freezes.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Instant Mobile QR Scan:</strong> Instantly import configurations into the OpenVPN Mobile Connect app via QR-code.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Effortless Installation:</strong> Smart Double-NAT detection and automated live port-open checking.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">OpenVPN over TCP 443 (SSL-VPN):</strong> Special travel presets to bypass strict public firewalls by hiding traffic as HTTPS.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Built-in DDNS Daemon:</strong> Automatic dynamic DNS support for DuckDNS, IPv64, dynv6, Dynu, and No-IP.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Flood Guard Protection:</strong> Detects and blocks malicious requests and port scanners directly in the Linux kernel.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Automated Firewall Zones:</strong> Automatic creation of all required firewall zones, traffic rules, and forwardings.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">High-Security Keygen:</strong> Automatic generation of RSA-2048/ECC-Prime256, DH params, and TLS-crypt-v2.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Hardware Crypto Optimization:</strong> Smart auto-cipher selection (AES-GCM for new chips, ChaCha20 for older hardware).</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Integrated Key Editor:</strong> View, edit, and check key files or expiration dates directly in your browser.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Profile Import & Export:</strong> Upload existing .ovpn files or multi-key configurations instantly.</div></li>
|
||||
<li class="flex items-start gap-3 text-slate-600"><span class="text-teal-500 font-bold">✓</span><div><strong class="text-slate-900 font-medium">Clear Status Table:</strong> Quick overview of active tunnels, PIDs, ciphers, and live bandwidth usage.</div></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- Screenshots Section -->
|
||||
<section id="screenshots" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-6 text-slate-900 border-b border-slate-100 pb-3">Screenshots</h2>
|
||||
<div class="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 gap-4">
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/server.png')">
|
||||
<img src="screenshots/server.png" alt="Server/Client View" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Server/Client View</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/status-dark.png')">
|
||||
<img src="screenshots/status-dark.png" alt="Status View" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Status View</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/client.png')">
|
||||
<img src="screenshots/client.png" alt="Client View" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Client View</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/qr-client-export.png')">
|
||||
<img src="screenshots/qr-client-export.png" alt="QR Export" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">QR Export</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-mobile-server-01.png')">
|
||||
<img src="screenshots/wizard-mobile-server-01.png" alt="Wizard Mobile Start" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Mobile Start</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-mobile-server-02.png')">
|
||||
<img src="screenshots/wizard-mobile-server-02.png" alt="Wizard Mobile Tunnel" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Mobile Tunnel</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-mobile-server-03.png')">
|
||||
<img src="screenshots/wizard-mobile-server-03.png" alt="Wizard Mobile IP Setup" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Mobile IP Setup</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-mobile-server-04.png')">
|
||||
<img src="screenshots/wizard-mobile-server-04.png" alt="Wizard DDNS Setup" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard DDNS Setup</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-main-office-01.png')">
|
||||
<img src="screenshots/wizard-main-office-01.png" alt="Wizard Site-To-Site Start" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Site-To-Site Start</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/wizard-main-office-02.png')">
|
||||
<img src="screenshots/wizard-main-office-02.png" alt="Wizard Site-To-Site Routing" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Site-To-Site Routing</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/port-forward.png')">
|
||||
<img src="screenshots/port-forward.png" alt="Wizard Port Forwarding" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Port Forwarding</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/add-instance.png')">
|
||||
<img src="screenshots/add-instance.png" alt="Wizard Add Instance" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Add Instance</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/keyview.png')">
|
||||
<img src="screenshots/keyview.png" alt="Wizard Key View" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard Key View</div>
|
||||
</div>
|
||||
<div class="group relative border border-slate-200 rounded-lg overflow-hidden cursor-pointer" onclick="openLightbox('screenshots/keygen.png')">
|
||||
<img src="screenshots/keygen.png" alt="Wizard KeyGen" class="w-full h-auto object-cover group-hover:scale-105 transition-transform duration-200">
|
||||
<div class="absolute bottom-0 inset-x-0 bg-slate-900/70 text-white text-xs p-2 text-center">Wizard KeyGen</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="configuration" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-6 text-slate-900 border-b border-slate-100 pb-3">Configuration Layout</h2>
|
||||
<p class="text-slate-600 mb-4">The application manages settings inside <code class="bg-slate-100 px-1.5 py-0.5 rounded text-sm text-pink-600 font-mono">/etc/config/openvpn</code>:</p>
|
||||
<pre class="bg-slate-900 text-slate-200 p-5 rounded-xl font-mono text-sm overflow-x-auto shadow-inner leading-relaxed"><code><span class="text-teal-400">config</span> openvpn <span class="text-amber-400">'instance1'</span>
|
||||
<span class="text-teal-400">option</span> enabled <span class="text-amber-400">'0'</span>
|
||||
<span class="text-teal-400">option</span> role <span class="text-amber-400">'server'</span>
|
||||
<span class="text-teal-400">option</span> config <span class="text-amber-400">'/etc/openvpn/luci/instance1.conf'</span></code></pre>
|
||||
</section>
|
||||
|
||||
<section id="structure" class="bg-white p-8 rounded-2xl shadow-sm border border-slate-100">
|
||||
<h2 class="text-2xl font-bold mb-6 text-slate-900 border-b border-slate-100 pb-3">Directory Structure</h2>
|
||||
<pre class="bg-slate-900 text-slate-300 p-5 rounded-xl font-mono text-xs md:text-sm overflow-x-auto shadow-inner leading-normal">luci-app-openvpn-plus/
|
||||
├── Makefile
|
||||
├── LICENSE
|
||||
├── README.md
|
||||
├── po/
|
||||
│ ├── de/
|
||||
│ │ └── luci-app-openvpn-plus.po
|
||||
│ ├── zh-cn/
|
||||
│ │ └── luci-app-openvpn-plus.po
|
||||
├── screenshots/
|
||||
└── root/
|
||||
├── etc/
|
||||
│ ├── config/
|
||||
│ └── hotplug.d/
|
||||
│ │ ├── iface/
|
||||
│ │ │ └── 35-luci-app-openvpn-plus-bootup
|
||||
│ │ └── openvpn/
|
||||
│ │ └── 35-luci-app-openvpn-plus-lifecycle
|
||||
│ ├── openvpn/
|
||||
│ │ ├── keys/
|
||||
│ │ └── luci/
|
||||
│ │ ├── default.nft
|
||||
│ │ ├── client.default.conf
|
||||
│ │ └── server.default.conf
|
||||
├── usr/
|
||||
│ ├── libexec/
|
||||
│ │ └── luci-app-openvpn-plus
|
||||
│ └── share/
|
||||
│ ├── luci/menu.d/
|
||||
│ │ └── luci-app-openvpn-plus.json
|
||||
│ └── rpcd/acl.d/
|
||||
│ ├── luci-app-openvpn-plus.json
|
||||
│ └── luci-app-openvpn-plus-status.json
|
||||
└── www/
|
||||
└── luci-static/resources/view/
|
||||
├── status/include/
|
||||
│ └── 35_openvpn.js
|
||||
└── vpn/
|
||||
├── openvpn.js
|
||||
├── openvpn-keygen.js
|
||||
├── openvpn-status.js
|
||||
└── openvpn-wizard.js</pre>
|
||||
</section>
|
||||
|
||||
<footer class="bg-slate-900 text-slate-400 text-center py-8 mt-16 text-sm border-t border-slate-800">
|
||||
<p class="mb-2">Licensed under the Apache License 2.0.</p>
|
||||
<p class="text-xs text-slate-600">© 2026 luci-app-openvpn-plus Project.</p>
|
||||
</footer>
|
||||
|
||||
<div id="lightbox" class="fixed inset-0 bg-black/80 hidden z-50 flex items-center justify-center p-4" onclick="closeLightbox()">
|
||||
<div class="relative max-w-4xl max-h-full">
|
||||
<img id="lightbox-img" src="" alt="Enlarged screenshot" class="max-w-full max-h-[85vh] rounded-lg shadow-2xl object-contain border border-slate-700">
|
||||
<button class="absolute -top-10 right-0 text-white text-3xl font-bold hover:text-slate-300 focus:outline-none">×</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function openLightbox(src) {
|
||||
const lightbox = document.getElementById('lightbox');
|
||||
const img = document.getElementById('lightbox-img');
|
||||
img.src = src;
|
||||
lightbox.classList.remove('hidden');
|
||||
document.body.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
function closeLightbox() {
|
||||
const lightbox = document.getElementById('lightbox');
|
||||
lightbox.classList.add('hidden');
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Escape') closeLightbox();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://github.com/masmbit/luci-app-openvpn-plus/blob/main/README.md/</loc>
|
||||
<lastmod>2026-01-11</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://raw.githubusercontent.com/masmbit/luci-app-openvpn-plus/refs/heads/main/README.md</loc>
|
||||
<lastmod>2026-01-11</lastmod>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
@@ -0,0 +1,11 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
@@ -0,0 +1,13 @@
|
||||
* text=auto eol=lf
|
||||
Makefile text eol=lf
|
||||
*.mk text eol=lf
|
||||
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.tif binary
|
||||
*.ttf binary
|
||||
*.tiff binary
|
||||
*.ico binary
|
||||
*.eps binary
|
||||
@@ -0,0 +1,14 @@
|
||||
# MacOS related
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Vim
|
||||
*~
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# IDE user config
|
||||
.vscode/
|
||||
.idea/
|
||||
.vs/
|
||||
@@ -0,0 +1,39 @@
|
||||
# Changelog
|
||||
|
||||
## [0.2.2-r4] - 2026-09-08
|
||||
|
||||
- Require SafeShield 0.3.20 or newer.
|
||||
|
||||
## [0.2.2-r3] - 2026-09-02
|
||||
|
||||
- Require SafeShield 0.3.19 or newer.
|
||||
|
||||
## [0.2.2-r2] - 2026-08-30
|
||||
|
||||
- Require SafeShield 0.3.17 or newer.
|
||||
|
||||
## [0.2.2-r1] - 2026-08-30
|
||||
|
||||
- Require SafeShield 0.3.15 or newer.
|
||||
|
||||
## [0.2.1-r2] - 2026-08-30
|
||||
|
||||
- Localize all current SafeShield `summary.code` states in LuCI (`idle`, `ready`, `refreshing`, `degraded`, `error`, `paused`, and `disabled`).
|
||||
- Fall back to the backend `summary.message` for unknown summary codes.
|
||||
- Require SafeShield 0.3.14-r8 or newer for summary code support.
|
||||
|
||||
## [0.2.1-r1] - 2026-08-29
|
||||
|
||||
- Require SafeShield 0.3.13 or newer.
|
||||
|
||||
## [0.2.0-r1] - 2026-08-20
|
||||
|
||||
- Use the public `safeshield` ubus management API as the only SafeShield control plane.
|
||||
- Remove direct LuCI UCI writes for SafeShield lifecycle, license and configuration.
|
||||
- Add enable/disable and manual refresh actions to Overview.
|
||||
- Show local-rule apply timestamps and the current fast-apply state from `safeshield.status`.
|
||||
- Add a Local Rules page backed by `rules_list`, `rule_add` and `rule_delete`.
|
||||
- Wait for `last_local_apply` / `last_local_apply_failure` after rule mutations so the UI distinguishes file persistence from active DNS application.
|
||||
- Stop exposing obsolete/non-public options such as local rule paths and dnsmasq file/instance settings.
|
||||
- Fix physical fingerprint fields to match the current SafeShield status schema.
|
||||
- Require SafeShield 0.3.10 or newer.
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,23 @@
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 3
|
||||
# of the License, or (at your option) any later version.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-safeshield
|
||||
PKG_VERSION:=0.2.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_MAINTAINER:=Beomjun Kang <kals323@gmail.com>
|
||||
|
||||
LUCI_TITLE:=SafeShield Web UI
|
||||
LUCI_URL:=https://github.com/Junatum/luci-app-safeshield
|
||||
LUCI_DESCRIPTION:=SafeShield Web UI for OpenWrt
|
||||
LUCI_DEPENDS:=+luci-base +rpcd +ucode +safeshield
|
||||
LUCI_EXTRA_DEPENDS:=safeshield (>=0.3.20)
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
@@ -0,0 +1,244 @@
|
||||
# SafeShield (luci-app-safeshield)
|
||||
|
||||

|
||||

|
||||
|
||||
A lightweight DNS-based ad blocker for OpenWrt, designed with a powerful, easy-to-use Web UI. Blocks ads and phishing sites, fully compatible with dnsmasq.
|
||||
|
||||
## Build from source
|
||||
|
||||
`luci-app-safeshield` is a LuCI web interface package for SafeShield.
|
||||
It depends on the main `safeshield` package, so both repositories should be available in the OpenWrt buildroot or SDK when building from source.
|
||||
|
||||
### Build with OpenWrt buildroot
|
||||
|
||||
Clone OpenWrt and prepare the build environment:
|
||||
|
||||
```sh
|
||||
cd /opt/build
|
||||
|
||||
git clone -b production https://github.com/Junatum/openwrt.git
|
||||
cd openwrt
|
||||
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
```
|
||||
|
||||
Clone SafeShield and the LuCI application into the OpenWrt package tree:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/Junatum/safeshield package/safeshield
|
||||
git clone https://github.com/Junatum/luci-app-safeshield package/luci-app-safeshield
|
||||
```
|
||||
|
||||
Select the target device and enable the packages:
|
||||
|
||||
```sh
|
||||
make menuconfig
|
||||
```
|
||||
|
||||
For example, for a MediaTek Filogic based device such as `ipTIME AX3000SM`, select:
|
||||
|
||||
```text
|
||||
Target System ---> MediaTek Ralink ARM
|
||||
Subtarget ---> Filogic 8x0
|
||||
```
|
||||
|
||||
Then enable the packages as modules:
|
||||
|
||||
```text
|
||||
Network ---> safeshield <M>
|
||||
LuCI ---> Applications ---> luci-app-safeshield <M>
|
||||
```
|
||||
|
||||
Alternatively, append the package selections directly to `.config`:
|
||||
|
||||
```sh
|
||||
cat >> .config <<'EOF'
|
||||
CONFIG_PACKAGE_safeshield=m
|
||||
CONFIG_PACKAGE_luci-app-safeshield=m
|
||||
EOF
|
||||
|
||||
make defconfig
|
||||
```
|
||||
|
||||
Build the packages:
|
||||
|
||||
```sh
|
||||
make package/safeshield/clean V=s
|
||||
make package/luci-app-safeshield/clean V=s
|
||||
|
||||
make package/safeshield/compile V=s
|
||||
make package/luci-app-safeshield/compile V=s
|
||||
```
|
||||
|
||||
Find the generated packages:
|
||||
|
||||
```sh
|
||||
find bin -type f \( \
|
||||
-name 'safeshield*.apk' \
|
||||
-o -name 'luci-app-safeshield*.apk' \
|
||||
\) -print
|
||||
```
|
||||
|
||||
Depending on the OpenWrt version and package manager, the output may be located under one of these directories:
|
||||
|
||||
```text
|
||||
bin/targets/<target>/<subtarget>/packages/
|
||||
bin/packages/<architecture>/<feed-name>/
|
||||
```
|
||||
|
||||
For example, on a MediaTek Filogic target, packages may appear under:
|
||||
|
||||
```text
|
||||
bin/targets/mediatek/filogic/packages/
|
||||
bin/packages/aarch64_cortex-a53/base/
|
||||
bin/packages/aarch64_cortex-a53/luci/
|
||||
```
|
||||
|
||||
OpenWrt 25.12 and newer snapshot builds usually generate `.apk` packages.
|
||||
|
||||
### Build with OpenWrt SDK
|
||||
|
||||
If you only need to build packages and do not need to build a full firmware image, use the OpenWrt SDK for your target.
|
||||
|
||||
Extract the SDK and enter the SDK directory:
|
||||
|
||||
```sh
|
||||
tar xf openwrt-sdk-*.tar.zst
|
||||
cd openwrt-sdk-*
|
||||
```
|
||||
|
||||
Update and install feeds:
|
||||
|
||||
```sh
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a
|
||||
```
|
||||
|
||||
Clone the required packages:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/Junatum/safeshield package/safeshield
|
||||
git clone https://github.com/Junatum/luci-app-safeshield package/luci-app-safeshield
|
||||
```
|
||||
|
||||
Enable the packages:
|
||||
|
||||
```sh
|
||||
cat >> .config <<'EOF'
|
||||
CONFIG_PACKAGE_safeshield=m
|
||||
CONFIG_PACKAGE_luci-app-safeshield=m
|
||||
EOF
|
||||
|
||||
make defconfig
|
||||
```
|
||||
|
||||
Build:
|
||||
|
||||
```sh
|
||||
make package/safeshield/compile V=s
|
||||
make package/luci-app-safeshield/compile V=s
|
||||
```
|
||||
|
||||
### Install the built packages on OpenWrt
|
||||
|
||||
Copy the generated packages to the device:
|
||||
|
||||
```sh
|
||||
scp -O safeshield-*.apk luci-app-safeshield-*.apk root@192.168.1.1:/tmp/
|
||||
```
|
||||
|
||||
Install on an `apk` based OpenWrt system:
|
||||
|
||||
```sh
|
||||
ssh root@192.168.1.1
|
||||
|
||||
apk add --allow-untrusted /tmp/safeshield-*.apk
|
||||
apk add --allow-untrusted /tmp/luci-app-safeshield-*.apk
|
||||
|
||||
/etc/init.d/rpcd restart
|
||||
/etc/init.d/uhttpd restart
|
||||
/etc/init.d/safeshield restart
|
||||
```
|
||||
|
||||
### Verify installation
|
||||
|
||||
Check that the packages are installed:
|
||||
|
||||
```sh
|
||||
apk info | grep safeshield
|
||||
```
|
||||
|
||||
Check that the LuCI application files exist:
|
||||
|
||||
```sh
|
||||
ls -la /www/luci-static/resources/view/safeshield/
|
||||
ls -la /usr/share/luci/menu.d/ | grep safeshield
|
||||
ls -la /usr/share/rpcd/acl.d/ | grep safeshield
|
||||
```
|
||||
|
||||
Check that the SafeShield RPC endpoint is available:
|
||||
|
||||
```sh
|
||||
ubus list | grep safeshield
|
||||
ubus call safeshield status
|
||||
```
|
||||
|
||||
If the LuCI page does not update after installing a new build, clear the LuCI cache and restart services:
|
||||
|
||||
```sh
|
||||
rm -rf /tmp/luci-*
|
||||
/etc/init.d/rpcd restart
|
||||
/etc/init.d/uhttpd restart
|
||||
```
|
||||
|
||||
Then open LuCI:
|
||||
|
||||
```text
|
||||
http://192.168.1.1/cgi-bin/luci/admin/services/safeshield
|
||||
```
|
||||
|
||||
## Management API architecture
|
||||
|
||||
Starting with `luci-app-safeshield` 0.2.0, the LuCI application does not write
|
||||
SafeShield UCI state or `/etc/safeshield` rule files directly. The `safeshield`
|
||||
package owns configuration validation, lifecycle, license storage, local rule
|
||||
files, refresh scheduling, dnsmasq integration and DNS verification.
|
||||
|
||||
LuCI consumes the public API exposed by SafeShield:
|
||||
|
||||
```text
|
||||
safeshield.status
|
||||
safeshield.config
|
||||
safeshield.config_update
|
||||
safeshield.set_enabled
|
||||
safeshield.refresh
|
||||
safeshield.rules_list
|
||||
safeshield.rule_add
|
||||
safeshield.rule_delete
|
||||
safeshield.license_update
|
||||
```
|
||||
|
||||
The Local Rules page uses SafeShield's fast local apply path. A normal rule edit
|
||||
reuses the cached normalized Hub artifact and only rebuilds local allow/block
|
||||
inputs, merges the active blocklist, restarts dnsmasq and verifies DNS. A full
|
||||
Hub refresh is used only when the cached artifact is unavailable.
|
||||
|
||||
After installation, verify the API contract with:
|
||||
|
||||
```sh
|
||||
ubus -v list safeshield
|
||||
```
|
||||
|
||||
The LuCI ACL should not need direct UCI access to the `safeshield` package.
|
||||
|
||||
## Contributors
|
||||
|
||||
<a href="https://github.com/Junatum/luci-app-safeshield/graphs/contributors">
|
||||
<img src="https://contrib.rocks/image?repo=Junatum/luci-app-safeshield" alt="Contributors">
|
||||
</a>
|
||||
|
||||
## License
|
||||
|
||||
SafeShield (luci-app-safeshield) is under the [GNU Public License version 3](https://www.gnu.org/licenses/gpl-3.0.html)
|
||||
@@ -0,0 +1,377 @@
|
||||
'use strict';
|
||||
|
||||
'require rpc';
|
||||
'require ui';
|
||||
'require view';
|
||||
|
||||
var callConfig = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'config',
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callConfigUpdate = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'config_update',
|
||||
params: [ 'values' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callSetEnabled = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'set_enabled',
|
||||
params: [ 'enabled' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callLicenseUpdate = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'license_update',
|
||||
params: [ 'license_key' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var CONFIG_SECTIONS = [
|
||||
{
|
||||
id: 'general',
|
||||
title: 'General',
|
||||
fields: [
|
||||
{ name: 'refresh_on_boot', kind: 'bool', title: 'Refresh on boot', description: 'Refresh the Hub artifact after boot when the existing successful refresh is no longer recent.' },
|
||||
{ name: 'refresh_interval_s', kind: 'int', min: 1, max: 2147483647, title: 'Refresh interval', suffix: 'seconds', description: 'Interval between successful Hub artifact refreshes.' },
|
||||
{ name: 'require_wan', kind: 'bool', title: 'Require WAN before refresh', description: 'Wait for WAN connectivity before resolving and downloading Hub artifacts.' }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'rules',
|
||||
title: 'Local rules',
|
||||
fields: [
|
||||
{ name: 'apply_local_overrides', kind: 'bool', title: 'Apply local allow/block rules', description: 'Apply local rules on top of the cached Hub artifact. Rule files are managed through the SafeShield rule API.' }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'advanced',
|
||||
title: 'Artifact and runtime safety',
|
||||
fields: [
|
||||
{ name: 'max_blocklist_file_size_kb', kind: 'int', min: 1, max: 2147483647, title: 'Maximum blocklist size', suffix: 'KB', description: 'Maximum accepted final blocklist size.' },
|
||||
{ name: 'min_valid_line_count', kind: 'int', min: 0, max: 2147483647, title: 'Minimum valid rule count', description: 'Reject an artifact when the generated dnsmasq rule count is below this value.' },
|
||||
{ name: 'compress_blocklist', kind: 'bool', title: 'Compress blocklist', description: 'Keep disabled unless the SafeShield runtime explicitly supports compressed dnsmasq blocklists.' },
|
||||
{ name: 'initial_dnsmasq_restart', kind: 'bool', title: 'Restart dnsmasq before install', description: 'Restart dnsmasq before installing a newly downloaded artifact. Normally this should stay disabled.' },
|
||||
{ name: 'dnsmasq_sanity_check', kind: 'bool', title: 'Run dnsmasq sanity check', description: 'Validate dnsmasq state after installing or applying the blocklist.' },
|
||||
{ name: 'download_timeout', kind: 'int', min: 1, max: 86400, title: 'Download timeout', suffix: 'seconds', description: 'Timeout used for Hub resolve and artifact downloads.' },
|
||||
{ name: 'download_retry', kind: 'int', min: 1, max: 100, title: 'Download retries', description: 'Maximum retry count for artifact downloads.' },
|
||||
{ name: 'pause_timeout', kind: 'int', min: 1, max: 86400, title: 'Pause timeout', suffix: 'seconds', description: 'Maximum duration used by the SafeShield pause command.' },
|
||||
{ name: 'boot_start_delay_s', kind: 'int', min: 0, max: 86400, title: 'Boot start delay', suffix: 'seconds', description: 'Delay before SafeShield performs boot-time work.' }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'diagnostics',
|
||||
title: 'Diagnostics',
|
||||
fields: [
|
||||
{ name: 'verbosity', kind: 'select-int', title: 'Log verbosity', options: [ [ 0, 'Errors only' ], [ 1, 'Warnings' ], [ 2, 'Info' ], [ 3, 'Debug' ] ] },
|
||||
{ name: 'debug', kind: 'bool', title: 'Enable debug logging', description: 'Enable additional debug output for troubleshooting.' }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
function apiError(response, fallback) {
|
||||
if (response && response.error) {
|
||||
if (response.error.message)
|
||||
return response.error.message;
|
||||
if (response.error.code)
|
||||
return response.error.code;
|
||||
}
|
||||
|
||||
return fallback || _('SafeShield request failed.');
|
||||
}
|
||||
|
||||
function notify(level, message) {
|
||||
ui.addNotification(null, E('p', {}, [ message ]), level || 'info');
|
||||
}
|
||||
|
||||
function boolText(value) {
|
||||
return value ? _('Enabled') : _('Disabled');
|
||||
}
|
||||
|
||||
function valueRow(title, field, description) {
|
||||
var children = [ field ];
|
||||
|
||||
if (description)
|
||||
children.push(E('div', { 'class': 'cbi-value-description' }, [ description ]));
|
||||
|
||||
return E('div', { 'class': 'cbi-value' }, [
|
||||
E('label', { 'class': 'cbi-value-title' }, [ title ]),
|
||||
E('div', { 'class': 'cbi-value-field' }, children)
|
||||
]);
|
||||
}
|
||||
|
||||
function makeInput(spec, value) {
|
||||
var input, option;
|
||||
|
||||
if (spec.kind === 'bool') {
|
||||
input = E('input', { 'type': 'checkbox' });
|
||||
input.checked = !!value;
|
||||
return input;
|
||||
}
|
||||
|
||||
if (spec.kind === 'select-int') {
|
||||
input = E('select', { 'class': 'cbi-input-select' });
|
||||
spec.options.forEach(function(item) {
|
||||
option = E('option', { 'value': String(item[0]) }, [ _(item[1]) ]);
|
||||
if (Number(value) === Number(item[0]))
|
||||
option.selected = true;
|
||||
input.appendChild(option);
|
||||
});
|
||||
return input;
|
||||
}
|
||||
|
||||
input = E('input', {
|
||||
'class': 'cbi-input-text',
|
||||
'type': 'number',
|
||||
'min': String(spec.min),
|
||||
'max': String(spec.max),
|
||||
'step': '1',
|
||||
'value': String(value == null ? '' : value)
|
||||
});
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
function readInput(spec, input) {
|
||||
var value;
|
||||
|
||||
if (spec.kind === 'bool')
|
||||
return !!input.checked;
|
||||
|
||||
value = Number(input.value);
|
||||
if (!Number.isInteger(value))
|
||||
throw new Error(_('%s must be an integer.').format(_(spec.title)));
|
||||
|
||||
if (spec.min != null && value < spec.min)
|
||||
throw new Error(_('%s must be at least %d.').format(_(spec.title), spec.min));
|
||||
|
||||
if (spec.max != null && value > spec.max)
|
||||
throw new Error(_('%s must not exceed %d.').format(_(spec.title), spec.max));
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
function renderConfigSections(config, inputs) {
|
||||
var values = (config && config.values) || {};
|
||||
|
||||
return CONFIG_SECTIONS.map(function(group) {
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _(group.title) ])
|
||||
].concat(group.fields.map(function(spec) {
|
||||
var input = makeInput(spec, values[spec.name]);
|
||||
var label = _(spec.title);
|
||||
|
||||
inputs[spec.name] = { spec: spec, input: input };
|
||||
if (spec.suffix)
|
||||
label += ' (' + _(spec.suffix) + ')';
|
||||
|
||||
return valueRow(label, input, spec.description ? _(spec.description) : null);
|
||||
})));
|
||||
});
|
||||
}
|
||||
|
||||
function collectValues(inputs) {
|
||||
var values = {};
|
||||
|
||||
Object.keys(inputs).forEach(function(name) {
|
||||
values[name] = readInput(inputs[name].spec, inputs[name].input);
|
||||
});
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
function renderServiceSection(config, reload) {
|
||||
var values = (config && config.values) || {};
|
||||
var enabled = values.enabled === true;
|
||||
var state = E('strong', {}, [ boolText(enabled) ]);
|
||||
var button = E('button', {
|
||||
'class': 'btn cbi-button cbi-button-action'
|
||||
}, [ enabled ? _('Disable SafeShield') : _('Enable SafeShield') ]);
|
||||
|
||||
button.addEventListener('click', function(ev) {
|
||||
ev.preventDefault();
|
||||
button.disabled = true;
|
||||
|
||||
callSetEnabled(!enabled).then(function(response) {
|
||||
if (!response || response.ok !== true || response.accepted !== true)
|
||||
throw new Error(apiError(response, _('SafeShield rejected the lifecycle request.')));
|
||||
|
||||
notify('info', !enabled
|
||||
? _('Enable request accepted. Runtime convergence is asynchronous; check Overview for the live state.')
|
||||
: _('Disable request accepted. Runtime convergence is asynchronous; check Overview for the live state.'));
|
||||
|
||||
return reload();
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
button.disabled = false;
|
||||
});
|
||||
});
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('Service state') ]),
|
||||
valueRow(_('Configured state'), state, _('SafeShield owns enable/disable lifecycle. LuCI uses safeshield.set_enabled rather than writing UCI directly.')),
|
||||
E('div', { 'class': 'cbi-value' }, [
|
||||
E('div', { 'class': 'cbi-value-title' }),
|
||||
E('div', { 'class': 'cbi-value-field' }, [ button ])
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
||||
function renderLicenseSection(config, reload) {
|
||||
var license = (config && config.license) || {};
|
||||
var input = E('input', {
|
||||
'class': 'cbi-input-text',
|
||||
'type': 'password',
|
||||
'autocomplete': 'off',
|
||||
'placeholder': license.configured ? _('Enter a new key to replace the configured key') : _('Enter license key')
|
||||
});
|
||||
var update = E('button', { 'class': 'btn cbi-button cbi-button-positive' }, [ _('Update license') ]);
|
||||
var clear = E('button', { 'class': 'btn cbi-button cbi-button-negative' }, [ _('Clear license') ]);
|
||||
|
||||
update.addEventListener('click', function(ev) {
|
||||
var key = input.value.trim();
|
||||
ev.preventDefault();
|
||||
|
||||
if (!key) {
|
||||
notify('warning', _('Enter a license key first. Use Clear license to remove the current key.'));
|
||||
return;
|
||||
}
|
||||
|
||||
update.disabled = true;
|
||||
callLicenseUpdate(key).then(function(response) {
|
||||
if (!response || response.ok !== true)
|
||||
throw new Error(apiError(response));
|
||||
input.value = '';
|
||||
notify('info', response.changed
|
||||
? _('License key updated. SafeShield requested an artifact refresh.')
|
||||
: _('The license key is unchanged.'));
|
||||
return reload();
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
update.disabled = false;
|
||||
});
|
||||
});
|
||||
|
||||
clear.addEventListener('click', function(ev) {
|
||||
ev.preventDefault();
|
||||
if (!license.configured)
|
||||
return;
|
||||
if (!window.confirm(_('Clear the configured SafeShield license key?')))
|
||||
return;
|
||||
|
||||
clear.disabled = true;
|
||||
callLicenseUpdate('').then(function(response) {
|
||||
if (!response || response.ok !== true)
|
||||
throw new Error(apiError(response));
|
||||
input.value = '';
|
||||
notify('info', _('License key cleared. SafeShield will use the unlicensed/free artifact path.'));
|
||||
return reload();
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
clear.disabled = false;
|
||||
});
|
||||
});
|
||||
|
||||
clear.disabled = !license.configured;
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('License') ]),
|
||||
valueRow(_('Configured'), E('span', {}, [ license.configured ? _('Yes') : _('No') ])),
|
||||
valueRow(_('Masked key'), E('code', {}, [ license.key_masked || '-' ]), _('The raw license key is never returned by the SafeShield API.')),
|
||||
valueRow(_('New license key'), input),
|
||||
E('div', { 'class': 'cbi-value' }, [
|
||||
E('div', { 'class': 'cbi-value-title' }),
|
||||
E('div', { 'class': 'cbi-value-field' }, [ update, ' ', clear ])
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
||||
function renderDeviceSection(config) {
|
||||
var device = (config && config.device) || {};
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('Device (read only)') ]),
|
||||
valueRow(_('Vendor'), E('span', {}, [ device.vendor || '-' ])),
|
||||
valueRow(_('Model'), E('span', {}, [ device.model || '-' ])),
|
||||
valueRow(_('Architecture'), E('span', {}, [ device.arch || '-' ])),
|
||||
valueRow(_('Memory'), E('span', {}, [ device.memory_mb ? device.memory_mb + ' MB' : '-' ]), _('Device identity and profile fields are owned by SafeShield and are not editable from LuCI.'))
|
||||
]);
|
||||
}
|
||||
|
||||
function renderPage(config, root) {
|
||||
var inputs = {};
|
||||
var save = E('button', { 'class': 'btn cbi-button cbi-button-apply important' }, [ _('Save settings') ]);
|
||||
var reload = function() {
|
||||
return callConfig().then(function(updated) {
|
||||
root.replaceChild(renderPage(updated, root), root.firstChild);
|
||||
return updated;
|
||||
});
|
||||
};
|
||||
var nodes = [
|
||||
E('h2', {}, [ _('SafeShield settings') ]),
|
||||
E('div', { 'class': 'cbi-map-descr' }, [
|
||||
_('This page uses the public SafeShield ubus API. UCI, local rule files, service lifecycle and license storage remain owned by the safeshield package.')
|
||||
]),
|
||||
renderServiceSection(config, reload),
|
||||
renderLicenseSection(config, reload)
|
||||
];
|
||||
|
||||
nodes = nodes.concat(renderConfigSections(config, inputs));
|
||||
nodes.push(renderDeviceSection(config));
|
||||
nodes.push(E('div', { 'class': 'cbi-page-actions' }, [ save ]));
|
||||
|
||||
save.addEventListener('click', function(ev) {
|
||||
var values;
|
||||
ev.preventDefault();
|
||||
|
||||
try {
|
||||
values = collectValues(inputs);
|
||||
}
|
||||
catch (err) {
|
||||
notify('danger', err.message || String(err));
|
||||
return;
|
||||
}
|
||||
|
||||
save.disabled = true;
|
||||
callConfigUpdate(values).then(function(response) {
|
||||
if (!response || response.ok !== true)
|
||||
throw new Error(apiError(response));
|
||||
|
||||
if (response.changed && response.changed.length)
|
||||
notify('info', _('SafeShield settings saved. The service was restarted and a refresh was requested where applicable.'));
|
||||
else
|
||||
notify('info', _('No SafeShield settings changed.'));
|
||||
|
||||
return reload();
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
save.disabled = false;
|
||||
});
|
||||
});
|
||||
|
||||
return E('div', {}, nodes);
|
||||
}
|
||||
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return callConfig();
|
||||
},
|
||||
|
||||
render: function(data) {
|
||||
var root = E('div', {}, []);
|
||||
root.appendChild(renderPage(data || {}, root));
|
||||
return root;
|
||||
},
|
||||
|
||||
handleSaveApply: null,
|
||||
handleSave: null,
|
||||
handleReset: null
|
||||
});
|
||||
@@ -0,0 +1,595 @@
|
||||
'use strict';
|
||||
|
||||
'require poll';
|
||||
'require rpc';
|
||||
'require ui';
|
||||
'require view';
|
||||
|
||||
var callStatus = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'status',
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callSetEnabled = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'set_enabled',
|
||||
params: [ 'enabled' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callRefresh = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'refresh',
|
||||
expect: { }
|
||||
});
|
||||
|
||||
const SUMMARY_MESSAGES = {
|
||||
idle: _('SafeShield is idle.'),
|
||||
ready: _('SafeShield is ready.'),
|
||||
refreshing: _('SafeShield is refreshing the blocklist.'),
|
||||
degraded: _('SafeShield is running with degraded protection.'),
|
||||
error: _('SafeShield encountered an error.'),
|
||||
paused: _('SafeShield is paused.'),
|
||||
disabled: _('SafeShield is disabled.')
|
||||
};
|
||||
|
||||
|
||||
function apiError(response, fallback) {
|
||||
if (response && response.error) {
|
||||
if (response.error.message)
|
||||
return response.error.message;
|
||||
if (response.error.code)
|
||||
return response.error.code;
|
||||
}
|
||||
|
||||
return fallback || _('SafeShield request failed.');
|
||||
}
|
||||
|
||||
function notify(level, message) {
|
||||
ui.addNotification(null, E('p', {}, [ message ]), level || 'info');
|
||||
}
|
||||
|
||||
function delay(ms) {
|
||||
return new Promise(function(resolve) {
|
||||
window.setTimeout(resolve, ms);
|
||||
});
|
||||
}
|
||||
|
||||
function enabledStateConverged(status, target) {
|
||||
var runtime = (status && status.runtime) || {};
|
||||
|
||||
if (target)
|
||||
return status && status.enabled === true && status.active === true && runtime.refreshd_running === true;
|
||||
|
||||
return status && status.enabled === false && status.active === false && runtime.refreshd_running === false;
|
||||
}
|
||||
|
||||
function waitForEnabledState(target, timeoutMs) {
|
||||
var started = Date.now();
|
||||
|
||||
function check() {
|
||||
return callStatus().then(function(status) {
|
||||
if (enabledStateConverged(status, target) || Date.now() - started >= timeoutMs)
|
||||
return status;
|
||||
return delay(500).then(check);
|
||||
});
|
||||
}
|
||||
|
||||
return check();
|
||||
}
|
||||
|
||||
function renderActions(status, root) {
|
||||
var enabled = status && status.enabled === true;
|
||||
var toggle = E('button', { 'class': 'btn cbi-button cbi-button-action' }, [ enabled ? _('Disable SafeShield') : _('Enable SafeShield') ]);
|
||||
var refresh = E('button', { 'class': 'btn cbi-button cbi-button-positive' }, [ _('Refresh now') ]);
|
||||
|
||||
function replaceStatus(updated) {
|
||||
root.replaceChild(renderStatus(updated, root), root.firstChild);
|
||||
}
|
||||
|
||||
toggle.addEventListener('click', function(ev) {
|
||||
var target = !enabled;
|
||||
ev.preventDefault();
|
||||
toggle.disabled = true;
|
||||
|
||||
callSetEnabled(target).then(function(response) {
|
||||
if (!response || response.ok !== true || response.accepted !== true)
|
||||
throw new Error(apiError(response, _('SafeShield rejected the lifecycle request.')));
|
||||
|
||||
notify('info', target ? _('Enable request accepted.') : _('Disable request accepted.'));
|
||||
return waitForEnabledState(target, 15000);
|
||||
}).then(function(updated) {
|
||||
replaceStatus(updated);
|
||||
if (enabledStateConverged(updated, target))
|
||||
notify('info', target ? _('SafeShield is enabled and running.') : _('SafeShield is disabled and stopped.'));
|
||||
else
|
||||
notify('warning', _('SafeShield accepted the request but runtime convergence was not observed within 15 seconds. Status polling will continue.'));
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
toggle.disabled = false;
|
||||
});
|
||||
});
|
||||
|
||||
refresh.disabled = !enabled;
|
||||
refresh.addEventListener('click', function(ev) {
|
||||
ev.preventDefault();
|
||||
refresh.disabled = true;
|
||||
|
||||
callRefresh().then(function(response) {
|
||||
if (!response || response.ok !== true)
|
||||
throw new Error(apiError(response, _('SafeShield refresh request failed.')));
|
||||
|
||||
if (response.accepted)
|
||||
notify('info', _('SafeShield refresh started.'));
|
||||
else if (response.reason === 'already_running')
|
||||
notify('info', _('A SafeShield refresh is already running.'));
|
||||
else
|
||||
notify('warning', _('Refresh was not started: %s').format(response.reason || _('unknown reason')));
|
||||
|
||||
return callStatus();
|
||||
}).then(replaceStatus).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
refresh.disabled = !enabled;
|
||||
});
|
||||
});
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('Actions') ]),
|
||||
E('div', { 'class': 'cbi-section-descr' }, [
|
||||
_('Enable/disable and refresh actions use the public SafeShield ubus API. Enable/disable convergence is asynchronous and is verified through safeshield.status.')
|
||||
]),
|
||||
E('div', {}, [ toggle, ' ', refresh ])
|
||||
]);
|
||||
}
|
||||
|
||||
function asText(value, fallback) {
|
||||
if (value === null || value === undefined || value === '')
|
||||
return fallback || '-';
|
||||
|
||||
if (typeof value === 'boolean')
|
||||
return value ? _('Yes') : _('No');
|
||||
|
||||
return String(value);
|
||||
}
|
||||
|
||||
function formatBool(value) {
|
||||
if (value === true || value === 1 || value === '1')
|
||||
return _('Yes');
|
||||
if (value === false || value === 0 || value === '0')
|
||||
return _('No');
|
||||
return '-';
|
||||
}
|
||||
|
||||
function formatNumber(value) {
|
||||
if (value === null || value === undefined || value === '')
|
||||
return '-';
|
||||
return String(value);
|
||||
}
|
||||
|
||||
function formatSizeKb(value) {
|
||||
if (value === null || value === undefined || value === '')
|
||||
return '-';
|
||||
return String(value) + ' KB';
|
||||
}
|
||||
|
||||
function formatHash(value) {
|
||||
if (!value)
|
||||
return '-';
|
||||
|
||||
var text = String(value);
|
||||
return text.length > 24 ? text.substring(0, 16) + '…' + text.substring(text.length - 8) : text;
|
||||
}
|
||||
|
||||
function formatTimestamp(value) {
|
||||
var n, date;
|
||||
|
||||
if (!value)
|
||||
return '-';
|
||||
|
||||
if (typeof value === 'number') {
|
||||
n = value;
|
||||
}
|
||||
else if (typeof value === 'string' && /^\d+$/.test(value)) {
|
||||
n = Number(value);
|
||||
}
|
||||
else {
|
||||
date = new Date(value);
|
||||
return isNaN(date.getTime()) ? String(value) : date.toLocaleString();
|
||||
}
|
||||
|
||||
if (!n)
|
||||
return '-';
|
||||
|
||||
/* SafeShield RPC returns Unix timestamps in seconds. JavaScript Date expects milliseconds. */
|
||||
if (n < 100000000000)
|
||||
n = n * 1000;
|
||||
|
||||
date = new Date(n);
|
||||
return isNaN(date.getTime()) ? String(value) : date.toLocaleString();
|
||||
}
|
||||
|
||||
function formatDuration(value) {
|
||||
var n, days, hours, minutes, seconds, parts = [];
|
||||
|
||||
if (value === null || value === undefined || value === '')
|
||||
return '-';
|
||||
|
||||
n = Number(value);
|
||||
if (isNaN(n) || n < 0)
|
||||
return String(value);
|
||||
|
||||
seconds = Math.floor(n);
|
||||
days = Math.floor(seconds / 86400);
|
||||
seconds = seconds % 86400;
|
||||
hours = Math.floor(seconds / 3600);
|
||||
seconds = seconds % 3600;
|
||||
minutes = Math.floor(seconds / 60);
|
||||
seconds = seconds % 60;
|
||||
|
||||
if (days)
|
||||
parts.push(days + 'd');
|
||||
if (hours)
|
||||
parts.push(hours + 'h');
|
||||
if (minutes)
|
||||
parts.push(minutes + 'm');
|
||||
if (seconds || !parts.length)
|
||||
parts.push(seconds + 's');
|
||||
|
||||
return parts.join(' ');
|
||||
}
|
||||
|
||||
function translateValue(value) {
|
||||
switch (String(value || '').toLowerCase()) {
|
||||
case 'idle': return _('Idle');
|
||||
case 'scheduled_wait': return _('Waiting for scheduled refresh');
|
||||
case 'boot_delay': return _('Waiting after boot');
|
||||
case 'local_apply': return _('Applying local rules');
|
||||
case 'local_merge': return _('Merging local rules');
|
||||
case 'local_restart_dnsmasq': return _('Restarting DNS service');
|
||||
case 'local_runtime_check': return _('Checking DNS service');
|
||||
case 'local_blocklist_verify': return _('Verifying blocklist');
|
||||
case 'ok': return _('OK');
|
||||
case 'ready': return _('Ready');
|
||||
case 'success': return _('Success');
|
||||
case 'active': return _('Active');
|
||||
case 'running': return _('Running');
|
||||
case 'refreshing': return _('Refreshing');
|
||||
case 'pending': return _('Pending');
|
||||
case 'notice': return _('Notice');
|
||||
case 'warning': return _('Warning');
|
||||
case 'degraded': return _('Degraded');
|
||||
case 'disabled': return _('Disabled');
|
||||
case 'error': return _('Error');
|
||||
case 'failed': return _('Failed');
|
||||
case 'failure': return _('Failure');
|
||||
case 'expired': return _('Expired');
|
||||
case 'revoked': return _('Revoked');
|
||||
case 'suspended': return _('Suspended');
|
||||
case 'free': return _('Free');
|
||||
case 'unlicensed': return _('Unlicensed');
|
||||
case 'licensed': return _('Licensed');
|
||||
case 'light': return _('Light');
|
||||
case 'standard': return _('Standard');
|
||||
case 'full': return _('Full');
|
||||
case 'block': return _('Block');
|
||||
case 'allow': return _('Allow');
|
||||
default: return value;
|
||||
}
|
||||
}
|
||||
|
||||
function badgeClass(value) {
|
||||
switch (String(value || '').toLowerCase()) {
|
||||
case 'ok':
|
||||
case 'ready':
|
||||
case 'success':
|
||||
case 'active':
|
||||
return 'label success';
|
||||
case 'running':
|
||||
case 'refreshing':
|
||||
case 'pending':
|
||||
case 'notice':
|
||||
case 'boot_delay':
|
||||
case 'scheduled_wait':
|
||||
case 'local_apply':
|
||||
case 'local_merge':
|
||||
case 'local_restart_dnsmasq':
|
||||
case 'local_runtime_check':
|
||||
case 'local_blocklist_verify':
|
||||
return 'label notice';
|
||||
case 'warning':
|
||||
case 'warn':
|
||||
case 'degraded':
|
||||
case 'disabled':
|
||||
return 'label warning';
|
||||
case 'error':
|
||||
case 'failed':
|
||||
case 'failure':
|
||||
case 'expired':
|
||||
case 'revoked':
|
||||
case 'suspended':
|
||||
return 'label danger';
|
||||
default:
|
||||
return 'label';
|
||||
}
|
||||
}
|
||||
|
||||
function badge(value, fallback) {
|
||||
var text = asText(value, fallback || '-');
|
||||
return E('span', { 'class': badgeClass(text), 'style': 'padding: 0' }, [ translateValue(text) ]);
|
||||
}
|
||||
|
||||
function row(label, value) {
|
||||
var children;
|
||||
|
||||
if (Array.isArray(value))
|
||||
children = value;
|
||||
else if (value && typeof value === 'object')
|
||||
children = [ value ];
|
||||
else
|
||||
children = [ asText(value) ];
|
||||
|
||||
return E('tr', {}, [
|
||||
E('th', { 'style': 'width: 32%' }, [ label ]),
|
||||
E('td', {}, children)
|
||||
]);
|
||||
}
|
||||
|
||||
function table(rows) {
|
||||
return E('table', { 'class': 'table' }, rows);
|
||||
}
|
||||
|
||||
function section(title, rows) {
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ title ]),
|
||||
table(rows)
|
||||
]);
|
||||
}
|
||||
|
||||
function renderMessage(message) {
|
||||
if (typeof message === 'string')
|
||||
return message;
|
||||
|
||||
if (message && typeof message === 'object') {
|
||||
if (message.message)
|
||||
return message.message;
|
||||
if (message.code)
|
||||
return message.code;
|
||||
return JSON.stringify(message);
|
||||
}
|
||||
|
||||
return asText(message);
|
||||
}
|
||||
|
||||
function renderMessages(title, items, className) {
|
||||
if (!items || !items.length)
|
||||
return null;
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ title ]),
|
||||
E('ul', { 'class': className || '' }, items.map(function(item) {
|
||||
return E('li', {}, [ renderMessage(item) ]);
|
||||
}))
|
||||
]);
|
||||
}
|
||||
|
||||
function summaryMessage(summary) {
|
||||
var code = String((summary && summary.code) || '').toLowerCase();
|
||||
|
||||
return SUMMARY_MESSAGES[code] || asText(summary && summary.message, '-');
|
||||
}
|
||||
|
||||
function renderSummary(summary) {
|
||||
if (!summary)
|
||||
return '-';
|
||||
|
||||
if (typeof summary === 'string')
|
||||
return translateValue(summary);
|
||||
|
||||
return [
|
||||
E('span', { 'class': badgeClass(summary.severity || summary.label), 'style': 'padding: 0' }, [ translateValue(asText(summary.label, '-')) ]),
|
||||
' ',
|
||||
summaryMessage(summary)
|
||||
];
|
||||
}
|
||||
|
||||
function renderSources(sources) {
|
||||
var items = (sources && sources.items) || [];
|
||||
var body;
|
||||
|
||||
if (!items.length) {
|
||||
body = [ E('tr', {}, [ E('td', { 'colspan': 8 }, [ _('No sources reported by SafeShield.') ]) ]) ];
|
||||
}
|
||||
else {
|
||||
var cstyle = { 'style': 'text-align:center' };
|
||||
body = items.map(function(item) {
|
||||
return E('tr', {}, [
|
||||
E('td', cstyle, [ asText(item.name || item.id) ]),
|
||||
E('td', cstyle, [ translateValue(asText(item.action || sources.mode)) ]),
|
||||
E('td', cstyle, [ formatBool(item.enabled) ]),
|
||||
E('td', cstyle, [ badge(item.last_result) ]),
|
||||
E('td', cstyle, [ formatNumber(item.line_count) ]),
|
||||
E('td', cstyle, [ formatSizeKb(item.size_kb) ]),
|
||||
E('td', cstyle, [ translateValue(asText(item.artifact_tier)) ]),
|
||||
E('td', cstyle, [ asText(item.artifact_version) ])
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('Sources') ]),
|
||||
E('table', { 'class': 'table' }, [
|
||||
E('tr', { 'class': 'tr table-titles' }, [
|
||||
E('th', {}, [ _('Name') ]),
|
||||
E('th', {}, [ _('Mode / action') ]),
|
||||
E('th', {}, [ _('Enabled') ]),
|
||||
E('th', {}, [ _('Last result') ]),
|
||||
E('th', {}, [ _('Domains / lines') ]),
|
||||
E('th', {}, [ _('Size') ]),
|
||||
E('th', {}, [ _('Tier') ]),
|
||||
E('th', {}, [ _('Version') ])
|
||||
])
|
||||
].concat(body))
|
||||
]);
|
||||
}
|
||||
|
||||
function renderHealth(checks) {
|
||||
var names = [
|
||||
[ 'api_resolve', _('Artifact metadata resolve') ],
|
||||
[ 'artifact_download', _('Artifact download') ],
|
||||
[ 'artifact_sha256', _('Artifact SHA-256') ],
|
||||
[ 'dnsmasq_binary', _('dnsmasq binary') ],
|
||||
[ 'dnsmasq_confdir', _('dnsmasq confdir') ],
|
||||
[ 'dnsmasq_initial_restart', _('Initial dnsmasq restart') ],
|
||||
[ 'dnsmasq_final_restart', _('Final dnsmasq restart') ],
|
||||
[ 'dns_runtime', _('DNS runtime') ],
|
||||
[ 'blocklist_verify', _('Blocklist verify') ],
|
||||
[ 'min_valid_line_count', _('Minimum valid rule count') ],
|
||||
[ 'max_file_size', _('Maximum file size') ]
|
||||
];
|
||||
|
||||
return section(_('Health checks'), names.map(function(item) {
|
||||
var value = checks ? checks[item[0]] : null;
|
||||
return row(item[1], badge(value));
|
||||
}));
|
||||
}
|
||||
|
||||
function renderStatus(data, root) {
|
||||
var status = data || {};
|
||||
var runtime = status.runtime || {};
|
||||
var license = status.license || {};
|
||||
var device = status.device || {};
|
||||
var deviceConfigured = device.configured || {};
|
||||
var artifact = status.artifact || {};
|
||||
var localOverrides = status.local_overrides || {};
|
||||
var blocklist = status.blocklist || {};
|
||||
var sources = status.sources || {};
|
||||
var health = status.health || {};
|
||||
var timestamps = status.timestamps || {};
|
||||
var schema = status.schema || {};
|
||||
|
||||
var warnings = renderMessages(_('Warnings'), status.warnings, '');
|
||||
var errors = renderMessages(_('Errors'), status.errors, '');
|
||||
|
||||
var nodes = [
|
||||
E('h2', {}, [ _('SafeShield') ]),
|
||||
renderActions(status, root),
|
||||
|
||||
section(_('Current status'), [
|
||||
row(_('Status'), badge(status.status)),
|
||||
row(_('Stage'), badge(status.stage)),
|
||||
row(_('Summary'), renderSummary(status.summary)),
|
||||
row(_('Version'), status.version),
|
||||
row(_('Schema'), schema.name ? schema.name + ' v' + asText(schema.version) : '-'),
|
||||
row(_('Enabled'), formatBool(status.enabled)),
|
||||
row(_('Active'), formatBool(status.active)),
|
||||
row(_('Health'), badge(health.overall)),
|
||||
row(_('Generated at'), formatTimestamp(timestamps.generated_at)),
|
||||
row(_('Last attempt'), formatTimestamp(timestamps.last_attempt)),
|
||||
row(_('Last success'), formatTimestamp(timestamps.last_success)),
|
||||
row(_('Last failure'), formatTimestamp(timestamps.last_failure)),
|
||||
row(_('Last local apply'), formatTimestamp(timestamps.last_local_apply)),
|
||||
row(_('Last local apply failure'), formatTimestamp(timestamps.last_local_apply_failure))
|
||||
]),
|
||||
|
||||
section(_('Runtime'), [
|
||||
row(_('Refresh daemon running'), formatBool(runtime.refreshd_running)),
|
||||
row(_('dnsmasq running'), formatBool(runtime.dnsmasq_running)),
|
||||
row(_('DNS runtime OK'), formatBool(runtime.dns_runtime_ok)),
|
||||
row(_('Config loaded'), formatBool(runtime.config_loaded)),
|
||||
row(_('Require WAN'), formatBool(runtime.require_wan)),
|
||||
row(_('Refresh on boot'), formatBool(runtime.refresh_on_boot)),
|
||||
row(_('Last result'), badge(runtime.last_result)),
|
||||
row(_('Last error code'), runtime.last_error_code)
|
||||
]),
|
||||
|
||||
|
||||
section(_('License'), [
|
||||
row(_('Configured'), formatBool(license.configured)),
|
||||
row(_('Masked key'), license.key_masked),
|
||||
row(_('Plan'), translateValue(asText(license.plan))),
|
||||
row(_('Status'), badge(license.status))
|
||||
]),
|
||||
|
||||
section(_('Device'), [
|
||||
row(_('Physical fingerprint'), device.physical_fingerprint),
|
||||
row(_('Runtime profile'), device.profile),
|
||||
row(_('Configured physical fingerprint'), deviceConfigured.physical_fingerprint),
|
||||
row(_('Vendor'), deviceConfigured.vendor),
|
||||
row(_('Model'), deviceConfigured.model),
|
||||
row(_('Architecture'), deviceConfigured.arch),
|
||||
row(_('Memory'), deviceConfigured.memory_mb ? deviceConfigured.memory_mb + ' MB' : '-')
|
||||
]),
|
||||
|
||||
section(_('Hub artifact'), [
|
||||
row(_('Resolved'), formatBool(artifact.resolved)),
|
||||
row(_('Tier'), translateValue(asText(artifact.tier))),
|
||||
row(_('Version'), artifact.version),
|
||||
row(_('SHA-256'), formatHash(artifact.sha256)),
|
||||
row(_('Unique domains'), formatNumber(artifact.unique_domains)),
|
||||
row(_('Rules'), formatNumber(artifact.rules)),
|
||||
row(_('Download URL present'), formatBool(artifact.download_url_present))
|
||||
]),
|
||||
|
||||
section(_('Local overrides'), [
|
||||
row(_('Enabled'), formatBool(localOverrides.enabled)),
|
||||
row(_('Allowlist path'), localOverrides.allowlist_path),
|
||||
row(_('Blocklist path'), localOverrides.blocklist_path)
|
||||
]),
|
||||
|
||||
section(_('Blocklist'), [
|
||||
row(_('Installed'), formatBool(blocklist.installed)),
|
||||
row(_('Path'), blocklist.path),
|
||||
row(_('Valid rules'), formatNumber(blocklist.valid_line_count)),
|
||||
row(_('File size'), formatSizeKb(blocklist.file_size_kb)),
|
||||
row(_('Compressed'), formatBool(blocklist.compressed)),
|
||||
row(_('Verification OK'), formatBool(blocklist.verification_ok)),
|
||||
row(_('Test domain'), blocklist.test_domain),
|
||||
row(_('Test domain success'), formatNumber(blocklist.test_domain_success_count) + ' / ' + formatNumber(blocklist.test_domain_sample_count)),
|
||||
row(_('Previous backup available'), formatBool(blocklist.previous_backup_available))
|
||||
]),
|
||||
|
||||
section(_('Schedule'), [
|
||||
row(_('Refresh interval'), formatDuration(timestamps.refresh_interval_s)),
|
||||
row(_('Next refresh'), formatTimestamp(timestamps.next_refresh_at)),
|
||||
row(_('Next refresh in'), formatDuration(timestamps.next_refresh_in_s)),
|
||||
row(_('Boot start delay'), formatDuration(timestamps.boot_start_delay_s))
|
||||
]),
|
||||
|
||||
renderHealth(health.checks),
|
||||
renderSources(sources)
|
||||
];
|
||||
|
||||
if (warnings)
|
||||
nodes.push(warnings);
|
||||
if (errors)
|
||||
nodes.push(errors);
|
||||
|
||||
return E('div', {}, nodes);
|
||||
}
|
||||
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return callStatus();
|
||||
},
|
||||
|
||||
render: function(data) {
|
||||
var root = E('div', {}, []);
|
||||
|
||||
root.appendChild(renderStatus(data, root));
|
||||
|
||||
poll.add(function() {
|
||||
return callStatus().then(function(updated) {
|
||||
root.replaceChild(renderStatus(updated, root), root.firstChild);
|
||||
});
|
||||
}, 5);
|
||||
|
||||
return root;
|
||||
},
|
||||
|
||||
handleSaveApply: null,
|
||||
handleSave: null,
|
||||
handleReset: null
|
||||
});
|
||||
@@ -0,0 +1,285 @@
|
||||
'use strict';
|
||||
|
||||
'require rpc';
|
||||
'require ui';
|
||||
'require view';
|
||||
|
||||
var callStatus = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'status',
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callRulesList = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'rules_list',
|
||||
params: [ 'action' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callRuleAdd = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'rule_add',
|
||||
params: [ 'action', 'domain', 'refresh' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
var callRuleDelete = rpc.declare({
|
||||
object: 'safeshield',
|
||||
method: 'rule_delete',
|
||||
params: [ 'action', 'domain', 'refresh' ],
|
||||
expect: { }
|
||||
});
|
||||
|
||||
function apiError(response, fallback) {
|
||||
if (response && response.error) {
|
||||
if (response.error.message)
|
||||
return response.error.message;
|
||||
if (response.error.code)
|
||||
return response.error.code;
|
||||
}
|
||||
|
||||
return fallback || _('SafeShield rule request failed.');
|
||||
}
|
||||
|
||||
function notify(level, message) {
|
||||
ui.addNotification(null, E('p', {}, [ message ]), level || 'info');
|
||||
}
|
||||
|
||||
function formatTimestamp(value) {
|
||||
var n = Number(value || 0);
|
||||
var date;
|
||||
|
||||
if (!n)
|
||||
return '-';
|
||||
|
||||
date = new Date(n * 1000);
|
||||
return isNaN(date.getTime()) ? String(value) : date.toLocaleString();
|
||||
}
|
||||
|
||||
function delay(ms) {
|
||||
return new Promise(function(resolve) {
|
||||
window.setTimeout(resolve, ms);
|
||||
});
|
||||
}
|
||||
|
||||
function waitForLocalApply(beforeSuccess, beforeFailure, timeoutMs) {
|
||||
var started = Date.now();
|
||||
|
||||
function check() {
|
||||
return callStatus().then(function(status) {
|
||||
var timestamps = (status && status.timestamps) || {};
|
||||
var success = Number(timestamps.last_local_apply || 0);
|
||||
var failure = Number(timestamps.last_local_apply_failure || 0);
|
||||
|
||||
if (success > beforeSuccess)
|
||||
return { applied: true, status: status };
|
||||
|
||||
if (failure > beforeFailure)
|
||||
return { applied: false, failed: true, status: status };
|
||||
|
||||
if (Date.now() - started >= timeoutMs)
|
||||
return { applied: false, pending: true, status: status };
|
||||
|
||||
return delay(1000).then(check);
|
||||
});
|
||||
}
|
||||
|
||||
return check();
|
||||
}
|
||||
|
||||
function applyMessage(action, mutation, result) {
|
||||
var verb = action === 'block' ? _('block') : _('allow');
|
||||
var refresh = mutation.refresh || {};
|
||||
|
||||
if (!refresh.requested) {
|
||||
if (refresh.reason === 'unchanged')
|
||||
return _('The %s rule was already in the requested state.').format(verb);
|
||||
if (refresh.reason === 'local_overrides_disabled')
|
||||
return _('The rule was saved, but local overrides are disabled so it is not active.');
|
||||
return _('The rule was saved without requesting a DNS apply.');
|
||||
}
|
||||
|
||||
if (!refresh.accepted) {
|
||||
if (refresh.reason === 'disabled')
|
||||
return _('The rule was saved, but SafeShield is disabled so it is not active yet.');
|
||||
if (refresh.reason === 'service_stopped')
|
||||
return _('The rule was saved, but the SafeShield service is stopped.');
|
||||
return _('The rule was saved, but the local DNS apply request was not accepted: %s').format(refresh.reason || _('unknown reason'));
|
||||
}
|
||||
|
||||
if (result && result.applied)
|
||||
return _('The %s rule was saved and applied to DNS.').format(verb);
|
||||
if (result && result.failed)
|
||||
return _('The rule was saved, but SafeShield reported a local apply failure. Check Overview and system logs.');
|
||||
return _('The rule was saved and local apply was accepted, but completion was not observed before the UI timeout. SafeShield may still be applying it.');
|
||||
}
|
||||
|
||||
function mutationLevel(mutation, result) {
|
||||
var refresh = mutation.refresh || {};
|
||||
|
||||
if (!refresh.requested && refresh.reason === 'unchanged')
|
||||
return 'info';
|
||||
if (refresh.requested && refresh.accepted && result && result.applied)
|
||||
return 'info';
|
||||
return 'warning';
|
||||
}
|
||||
|
||||
function mutateRule(action, domain, add, status) {
|
||||
var timestamps = (status && status.timestamps) || {};
|
||||
var beforeSuccess = Number(timestamps.last_local_apply || 0);
|
||||
var beforeFailure = Number(timestamps.last_local_apply_failure || 0);
|
||||
var request = add ? callRuleAdd(action, domain, true) : callRuleDelete(action, domain, true);
|
||||
|
||||
return request.then(function(response) {
|
||||
var changedField = add ? 'added' : 'deleted';
|
||||
var refresh;
|
||||
|
||||
if (!response || response.ok !== true)
|
||||
throw new Error(apiError(response));
|
||||
|
||||
if (!response[changedField])
|
||||
return { mutation: response, result: null };
|
||||
|
||||
refresh = response.refresh || {};
|
||||
if (!refresh.requested || !refresh.accepted)
|
||||
return { mutation: response, result: null };
|
||||
|
||||
return waitForLocalApply(beforeSuccess, beforeFailure, 90000).then(function(result) {
|
||||
return { mutation: response, result: result };
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function renderApplyStatus(status) {
|
||||
var timestamps = (status && status.timestamps) || {};
|
||||
var local = (status && status.local_overrides) || {};
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ _('Local apply status') ]),
|
||||
E('table', { 'class': 'table' }, [
|
||||
E('tr', {}, [ E('th', {}, [ _('Local overrides enabled') ]), E('td', {}, [ local.enabled ? _('Yes') : _('No') ]) ]),
|
||||
E('tr', {}, [ E('th', {}, [ _('Last local apply') ]), E('td', {}, [ formatTimestamp(timestamps.last_local_apply) ]) ]),
|
||||
E('tr', {}, [ E('th', {}, [ _('Last local apply failure') ]), E('td', {}, [ formatTimestamp(timestamps.last_local_apply_failure) ]) ]),
|
||||
E('tr', {}, [ E('th', {}, [ _('Current stage') ]), E('td', {}, [ status.stage || '-' ]) ])
|
||||
]),
|
||||
E('div', { 'class': 'cbi-section-descr' }, [
|
||||
_('SafeShield applies rule edits using the cached Hub artifact, then atomically rebuilds the active dnsmasq blocklist and verifies DNS. A full artifact refresh is only used as a fallback when the cached Hub artifact is unavailable.')
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
||||
function renderRuleSection(action, entries, status, root, reload) {
|
||||
var isBlock = action === 'block';
|
||||
var title = isBlock ? _('Block list') : _('Allow list');
|
||||
var description = isBlock
|
||||
? _('Domains in this list are always added to the final SafeShield blocklist.')
|
||||
: _('Domains in this list are removed from the final SafeShield blocklist.');
|
||||
var input = E('input', {
|
||||
'class': 'cbi-input-text',
|
||||
'type': 'text',
|
||||
'placeholder': 'example.com',
|
||||
'autocomplete': 'off',
|
||||
'spellcheck': 'false'
|
||||
});
|
||||
var add = E('button', { 'class': 'btn cbi-button cbi-button-positive' }, [ isBlock ? _('Add block rule') : _('Add allow rule') ]);
|
||||
var rows = [];
|
||||
|
||||
function runMutation(domain, adding, button) {
|
||||
button.disabled = true;
|
||||
mutateRule(action, domain, adding, status).then(function(outcome) {
|
||||
notify(mutationLevel(outcome.mutation, outcome.result), applyMessage(action, outcome.mutation, outcome.result));
|
||||
return reload();
|
||||
}).catch(function(err) {
|
||||
notify('danger', err.message || String(err));
|
||||
}).finally(function() {
|
||||
button.disabled = false;
|
||||
});
|
||||
}
|
||||
|
||||
add.addEventListener('click', function(ev) {
|
||||
var domain = input.value.trim();
|
||||
ev.preventDefault();
|
||||
|
||||
if (!domain) {
|
||||
notify('warning', _('Enter a domain name first.'));
|
||||
return;
|
||||
}
|
||||
|
||||
runMutation(domain, true, add);
|
||||
});
|
||||
|
||||
input.addEventListener('keydown', function(ev) {
|
||||
if (ev.key === 'Enter') {
|
||||
ev.preventDefault();
|
||||
add.click();
|
||||
}
|
||||
});
|
||||
|
||||
(entries || []).forEach(function(domain) {
|
||||
var remove = E('button', { 'class': 'btn cbi-button cbi-button-negative' }, [ _('Delete') ]);
|
||||
remove.addEventListener('click', function(ev) {
|
||||
ev.preventDefault();
|
||||
if (!window.confirm(_('Delete %s from the %s list?').format(domain, isBlock ? _('block') : _('allow'))))
|
||||
return;
|
||||
runMutation(domain, false, remove);
|
||||
});
|
||||
|
||||
rows.push(E('tr', {}, [
|
||||
E('td', {}, [ E('code', {}, [ domain ]) ]),
|
||||
E('td', { 'style': 'width: 1%; white-space: nowrap' }, [ remove ])
|
||||
]));
|
||||
});
|
||||
|
||||
if (!rows.length)
|
||||
rows.push(E('tr', {}, [ E('td', { 'colspan': 2 }, [ _('No local rules in this list.') ]) ]));
|
||||
|
||||
return E('div', { 'class': 'cbi-section' }, [
|
||||
E('h3', {}, [ title ]),
|
||||
E('div', { 'class': 'cbi-section-descr' }, [ description ]),
|
||||
E('div', { 'class': 'cbi-value' }, [
|
||||
E('label', { 'class': 'cbi-value-title' }, [ _('Domain') ]),
|
||||
E('div', { 'class': 'cbi-value-field' }, [ input, ' ', add ])
|
||||
]),
|
||||
E('table', { 'class': 'table' }, [
|
||||
E('tr', { 'class': 'tr table-titles' }, [ E('th', {}, [ _('Domain') ]), E('th', {}, [ _('Action') ]) ])
|
||||
].concat(rows))
|
||||
]);
|
||||
}
|
||||
|
||||
function renderPage(data, root) {
|
||||
var rules = data[0] || {};
|
||||
var status = data[1] || {};
|
||||
var reload = function() {
|
||||
return Promise.all([ callRulesList(''), callStatus() ]).then(function(updated) {
|
||||
root.replaceChild(renderPage(updated, root), root.firstChild);
|
||||
return updated;
|
||||
});
|
||||
};
|
||||
|
||||
return E('div', {}, [
|
||||
E('h2', {}, [ _('SafeShield local rules') ]),
|
||||
E('div', { 'class': 'cbi-map-descr' }, [
|
||||
_('Local allow and block rules are managed through the public SafeShield rule API. LuCI never edits /etc/safeshield files directly.')
|
||||
]),
|
||||
renderApplyStatus(status),
|
||||
renderRuleSection('allow', rules.allow || [], status, root, reload),
|
||||
renderRuleSection('block', rules.block || [], status, root, reload)
|
||||
]);
|
||||
}
|
||||
|
||||
return view.extend({
|
||||
load: function() {
|
||||
return Promise.all([ callRulesList(''), callStatus() ]);
|
||||
},
|
||||
|
||||
render: function(data) {
|
||||
var root = E('div', {}, []);
|
||||
root.appendChild(renderPage(data || [ {}, {} ], root));
|
||||
return root;
|
||||
},
|
||||
|
||||
handleSaveApply: null,
|
||||
handleSave: null,
|
||||
handleReset: null
|
||||
});
|
||||
@@ -0,0 +1,701 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: luci-app-safeshield\n"
|
||||
"PO-Revision-Date: 2026-01-01 00:00+0000\n"
|
||||
"Last-Translator: SafeShield Translators\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "Action"
|
||||
msgstr ""
|
||||
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Active"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add allow rule"
|
||||
msgstr ""
|
||||
|
||||
msgid "Add block rule"
|
||||
msgstr ""
|
||||
|
||||
msgid "allow"
|
||||
msgstr ""
|
||||
|
||||
msgid "Allow list"
|
||||
msgstr ""
|
||||
|
||||
msgid "Allowlist path"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply local allow/block rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply local rules on top of the cached Hub artifact. Rule files are managed through the SafeShield rule API."
|
||||
msgstr ""
|
||||
|
||||
msgid "Architecture"
|
||||
msgstr ""
|
||||
|
||||
msgid "Artifact and runtime safety"
|
||||
msgstr ""
|
||||
|
||||
msgid "Artifact download"
|
||||
msgstr ""
|
||||
|
||||
msgid "Artifact metadata resolve"
|
||||
msgstr ""
|
||||
|
||||
msgid "Artifact SHA-256"
|
||||
msgstr ""
|
||||
|
||||
msgid "A SafeShield refresh is already running."
|
||||
msgstr ""
|
||||
|
||||
msgid "block"
|
||||
msgstr ""
|
||||
|
||||
msgid "Block list"
|
||||
msgstr ""
|
||||
|
||||
msgid "Blocklist"
|
||||
msgstr ""
|
||||
|
||||
msgid "Blocklist path"
|
||||
msgstr ""
|
||||
|
||||
msgid "Blocklist verify"
|
||||
msgstr ""
|
||||
|
||||
msgid "Boot start delay"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear license"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear the configured SafeShield license key?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Compress blocklist"
|
||||
msgstr ""
|
||||
|
||||
msgid "Compressed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Config loaded"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configured"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configured physical fingerprint"
|
||||
msgstr ""
|
||||
|
||||
msgid "Configured state"
|
||||
msgstr ""
|
||||
|
||||
msgid "Current stage"
|
||||
msgstr ""
|
||||
|
||||
msgid "Current status"
|
||||
msgstr ""
|
||||
|
||||
msgid "Debug"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delay before SafeShield performs boot-time work."
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete %s from the %s list?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Device"
|
||||
msgstr ""
|
||||
|
||||
msgid "Device identity and profile fields are owned by SafeShield and are not editable from LuCI."
|
||||
msgstr ""
|
||||
|
||||
msgid "Device (read only)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Diagnostics"
|
||||
msgstr ""
|
||||
|
||||
msgid "Disabled"
|
||||
msgstr ""
|
||||
|
||||
msgid "Disable request accepted."
|
||||
msgstr ""
|
||||
|
||||
msgid "Disable request accepted. Runtime convergence is asynchronous; check Overview for the live state."
|
||||
msgstr ""
|
||||
|
||||
msgid "Disable SafeShield"
|
||||
msgstr ""
|
||||
|
||||
msgid "dnsmasq binary"
|
||||
msgstr ""
|
||||
|
||||
msgid "dnsmasq confdir"
|
||||
msgstr ""
|
||||
|
||||
msgid "dnsmasq running"
|
||||
msgstr ""
|
||||
|
||||
msgid "DNS runtime"
|
||||
msgstr ""
|
||||
|
||||
msgid "DNS runtime OK"
|
||||
msgstr ""
|
||||
|
||||
msgid "Domain"
|
||||
msgstr ""
|
||||
|
||||
msgid "Domains in this list are always added to the final SafeShield blocklist."
|
||||
msgstr ""
|
||||
|
||||
msgid "Domains in this list are removed from the final SafeShield blocklist."
|
||||
msgstr ""
|
||||
|
||||
msgid "Domains / lines"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download retries"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download timeout"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download URL present"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable additional debug output for troubleshooting."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enabled"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable debug logging"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable/disable and refresh actions use the public SafeShield ubus API. Enable/disable convergence is asynchronous and is verified through safeshield.status."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable request accepted."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable request accepted. Runtime convergence is asynchronous; check Overview for the live state."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable SafeShield"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enter a domain name first."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enter a license key first. Use Clear license to remove the current key."
|
||||
msgstr ""
|
||||
|
||||
msgid "Enter a new key to replace the configured key"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enter license key"
|
||||
msgstr ""
|
||||
|
||||
msgid "Errors"
|
||||
msgstr ""
|
||||
|
||||
msgid "Errors only"
|
||||
msgstr ""
|
||||
|
||||
msgid "File size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Final dnsmasq restart"
|
||||
msgstr ""
|
||||
|
||||
msgid "General"
|
||||
msgstr ""
|
||||
|
||||
msgid "Generated at"
|
||||
msgstr ""
|
||||
|
||||
msgid "Health"
|
||||
msgstr ""
|
||||
|
||||
msgid "Health checks"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hub artifact"
|
||||
msgstr ""
|
||||
|
||||
msgid "Info"
|
||||
msgstr ""
|
||||
|
||||
msgid "Initial dnsmasq restart"
|
||||
msgstr ""
|
||||
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Interval between successful Hub artifact refreshes."
|
||||
msgstr ""
|
||||
|
||||
msgid "KB"
|
||||
msgstr ""
|
||||
|
||||
msgid "Keep disabled unless the SafeShield runtime explicitly supports compressed dnsmasq blocklists."
|
||||
msgstr ""
|
||||
|
||||
msgid "Last attempt"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last error code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last failure"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last local apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last local apply failure"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last result"
|
||||
msgstr ""
|
||||
|
||||
msgid "Last success"
|
||||
msgstr ""
|
||||
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
msgid "License key cleared. SafeShield will use the unlicensed/free artifact path."
|
||||
msgstr ""
|
||||
|
||||
msgid "License key updated. SafeShield requested an artifact refresh."
|
||||
msgstr ""
|
||||
|
||||
msgid "Local allow and block rules are managed through the public SafeShield rule API. LuCI never edits /etc/safeshield files directly."
|
||||
msgstr ""
|
||||
|
||||
msgid "Local apply status"
|
||||
msgstr ""
|
||||
|
||||
msgid "Local overrides"
|
||||
msgstr ""
|
||||
|
||||
msgid "Local overrides enabled"
|
||||
msgstr ""
|
||||
|
||||
msgid "Local rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Local Rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Log verbosity"
|
||||
msgstr ""
|
||||
|
||||
msgid "Masked key"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum accepted final blocklist size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum blocklist size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum duration used by the SafeShield pause command."
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum file size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Maximum retry count for artifact downloads."
|
||||
msgstr ""
|
||||
|
||||
msgid "Memory"
|
||||
msgstr ""
|
||||
|
||||
msgid "Minimum valid rule count"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mode / action"
|
||||
msgstr ""
|
||||
|
||||
msgid "Model"
|
||||
msgstr ""
|
||||
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
msgid "New license key"
|
||||
msgstr ""
|
||||
|
||||
msgid "Next refresh"
|
||||
msgstr ""
|
||||
|
||||
msgid "Next refresh in"
|
||||
msgstr ""
|
||||
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
msgid "No local rules in this list."
|
||||
msgstr ""
|
||||
|
||||
msgid "No SafeShield settings changed."
|
||||
msgstr ""
|
||||
|
||||
msgid "No sources reported by SafeShield."
|
||||
msgstr ""
|
||||
|
||||
msgid "Path"
|
||||
msgstr ""
|
||||
|
||||
msgid "Pause timeout"
|
||||
msgstr ""
|
||||
|
||||
msgid "Physical fingerprint"
|
||||
msgstr ""
|
||||
|
||||
msgid "Plan"
|
||||
msgstr ""
|
||||
|
||||
msgid "Previous backup available"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh daemon running"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh interval"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh now"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh on boot"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh the Hub artifact after boot when the existing successful refresh is no longer recent."
|
||||
msgstr ""
|
||||
|
||||
msgid "Refresh was not started: %s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Reject an artifact when the generated dnsmasq rule count is below this value."
|
||||
msgstr ""
|
||||
|
||||
msgid "Require WAN"
|
||||
msgstr ""
|
||||
|
||||
msgid "Require WAN before refresh"
|
||||
msgstr ""
|
||||
|
||||
msgid "Resolved"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart dnsmasq before install"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restart dnsmasq before installing a newly downloaded artifact. Normally this should stay disabled."
|
||||
msgstr ""
|
||||
|
||||
msgid "Rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Run dnsmasq sanity check"
|
||||
msgstr ""
|
||||
|
||||
msgid "Runtime"
|
||||
msgstr ""
|
||||
|
||||
msgid "Runtime profile"
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield"
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield accepted the request but runtime convergence was not observed within 15 seconds. Status polling will continue."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield applies rule edits using the cached Hub artifact, then atomically rebuilds the active dnsmasq blocklist and verifies DNS. A full artifact refresh is only used as a fallback when the cached Hub artifact is unavailable."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is disabled and stopped."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is enabled and running."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is idle."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is ready."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is refreshing the blocklist."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is running with degraded protection."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield encountered an error."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is paused."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield is disabled."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield local rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield owns enable/disable lifecycle. LuCI uses safeshield.set_enabled rather than writing UCI directly."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield refresh request failed."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield refresh started."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield rejected the lifecycle request."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield request failed."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield rule request failed."
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield settings"
|
||||
msgstr ""
|
||||
|
||||
msgid "SafeShield settings saved. The service was restarted and a refresh was requested where applicable."
|
||||
msgstr ""
|
||||
|
||||
msgid "Save settings"
|
||||
msgstr ""
|
||||
|
||||
msgid "Schedule"
|
||||
msgstr ""
|
||||
|
||||
msgid "Schema"
|
||||
msgstr ""
|
||||
|
||||
msgid "seconds"
|
||||
msgstr ""
|
||||
|
||||
msgid "Service state"
|
||||
msgstr ""
|
||||
|
||||
msgid "SHA-256"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
msgid "%s must be an integer."
|
||||
msgstr ""
|
||||
|
||||
msgid "%s must be at least %d."
|
||||
msgstr ""
|
||||
|
||||
msgid "%s must not exceed %d."
|
||||
msgstr ""
|
||||
|
||||
msgid "Sources"
|
||||
msgstr ""
|
||||
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
|
||||
msgid "Summary"
|
||||
msgstr ""
|
||||
|
||||
msgid "Test domain"
|
||||
msgstr ""
|
||||
|
||||
msgid "Test domain success"
|
||||
msgstr ""
|
||||
|
||||
msgid "The license key is unchanged."
|
||||
msgstr ""
|
||||
|
||||
msgid "The raw license key is never returned by the SafeShield API."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved and local apply was accepted, but completion was not observed before the UI timeout. SafeShield may still be applying it."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved, but local overrides are disabled so it is not active."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved, but SafeShield is disabled so it is not active yet."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved, but SafeShield reported a local apply failure. Check Overview and system logs."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved, but the local DNS apply request was not accepted: %s"
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved, but the SafeShield service is stopped."
|
||||
msgstr ""
|
||||
|
||||
msgid "The rule was saved without requesting a DNS apply."
|
||||
msgstr ""
|
||||
|
||||
msgid "The %s rule was already in the requested state."
|
||||
msgstr ""
|
||||
|
||||
msgid "The %s rule was saved and applied to DNS."
|
||||
msgstr ""
|
||||
|
||||
msgid "This page uses the public SafeShield ubus API. UCI, local rule files, service lifecycle and license storage remain owned by the safeshield package."
|
||||
msgstr ""
|
||||
|
||||
msgid "Tier"
|
||||
msgstr ""
|
||||
|
||||
msgid "Timeout used for Hub resolve and artifact downloads."
|
||||
msgstr ""
|
||||
|
||||
msgid "Unique domains"
|
||||
msgstr ""
|
||||
|
||||
msgid "unknown reason"
|
||||
msgstr ""
|
||||
|
||||
msgid "Update license"
|
||||
msgstr ""
|
||||
|
||||
msgid "Validate dnsmasq state after installing or applying the blocklist."
|
||||
msgstr ""
|
||||
|
||||
msgid "Valid rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Vendor"
|
||||
msgstr ""
|
||||
|
||||
msgid "Verification OK"
|
||||
msgstr ""
|
||||
|
||||
msgid "Version"
|
||||
msgstr ""
|
||||
|
||||
msgid "Wait for WAN connectivity before resolving and downloading Hub artifacts."
|
||||
msgstr ""
|
||||
|
||||
msgid "Warnings"
|
||||
msgstr ""
|
||||
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
msgid "Idle"
|
||||
msgstr ""
|
||||
|
||||
msgid "Waiting for scheduled refresh"
|
||||
msgstr ""
|
||||
|
||||
msgid "Waiting after boot"
|
||||
msgstr ""
|
||||
|
||||
msgid "Applying local rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Merging local rules"
|
||||
msgstr ""
|
||||
|
||||
msgid "Restarting DNS service"
|
||||
msgstr ""
|
||||
|
||||
msgid "Checking DNS service"
|
||||
msgstr ""
|
||||
|
||||
msgid "Verifying blocklist"
|
||||
msgstr ""
|
||||
|
||||
msgid "OK"
|
||||
msgstr ""
|
||||
|
||||
msgid "Ready"
|
||||
msgstr ""
|
||||
|
||||
msgid "Success"
|
||||
msgstr ""
|
||||
|
||||
msgid "Running"
|
||||
msgstr ""
|
||||
|
||||
msgid "Refreshing"
|
||||
msgstr ""
|
||||
|
||||
msgid "Pending"
|
||||
msgstr ""
|
||||
|
||||
msgid "Notice"
|
||||
msgstr ""
|
||||
|
||||
msgid "Warning"
|
||||
msgstr ""
|
||||
|
||||
msgid "Degraded"
|
||||
msgstr ""
|
||||
|
||||
msgid "Error"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Failure"
|
||||
msgstr ""
|
||||
|
||||
msgid "Expired"
|
||||
msgstr ""
|
||||
|
||||
msgid "Revoked"
|
||||
msgstr ""
|
||||
|
||||
msgid "Suspended"
|
||||
msgstr ""
|
||||
|
||||
msgid "Free"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unlicensed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Licensed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Light"
|
||||
msgstr ""
|
||||
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgid "Full"
|
||||
msgstr ""
|
||||
|
||||
msgid "Block"
|
||||
msgstr ""
|
||||
|
||||
msgid "Allow"
|
||||
msgstr ""
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
zh_Hans
|
||||
@@ -0,0 +1,702 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: luci-app-safeshield\n"
|
||||
"PO-Revision-Date: 2026-08-26 00:00+0000\n"
|
||||
"Last-Translator: ZagWrt Translators\n"
|
||||
"Language: zh_Hans\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
msgid "Action"
|
||||
msgstr "操作"
|
||||
|
||||
msgid "Actions"
|
||||
msgstr "操作"
|
||||
|
||||
msgid "Active"
|
||||
msgstr "活跃"
|
||||
|
||||
msgid "Add allow rule"
|
||||
msgstr "添加放行规则"
|
||||
|
||||
msgid "Add block rule"
|
||||
msgstr "添加拦截规则"
|
||||
|
||||
msgid "allow"
|
||||
msgstr "放行"
|
||||
|
||||
msgid "Allow list"
|
||||
msgstr "放行列表"
|
||||
|
||||
msgid "Allowlist path"
|
||||
msgstr "放行列表路径"
|
||||
|
||||
msgid "Apply local allow/block rules"
|
||||
msgstr "应用本地放行/拦截规则"
|
||||
|
||||
msgid "Apply local rules on top of the cached Hub artifact. Rule files are managed through the SafeShield rule API."
|
||||
msgstr "在已缓存的 Hub 产物基础上应用本地规则。规则文件通过 SafeShield 规则 API 管理。"
|
||||
|
||||
msgid "Architecture"
|
||||
msgstr "架构"
|
||||
|
||||
msgid "Artifact and runtime safety"
|
||||
msgstr "产物和运行时安全"
|
||||
|
||||
msgid "Artifact download"
|
||||
msgstr "产物下载"
|
||||
|
||||
msgid "Artifact metadata resolve"
|
||||
msgstr "产物元数据解析"
|
||||
|
||||
msgid "Artifact SHA-256"
|
||||
msgstr "产物 SHA-256"
|
||||
|
||||
msgid "A SafeShield refresh is already running."
|
||||
msgstr "SafeShield 刷新已在运行中。"
|
||||
|
||||
msgid "block"
|
||||
msgstr "拦截"
|
||||
|
||||
msgid "Block list"
|
||||
msgstr "拦截列表"
|
||||
|
||||
msgid "Blocklist"
|
||||
msgstr "拦截列表"
|
||||
|
||||
msgid "Blocklist path"
|
||||
msgstr "拦截列表路径"
|
||||
|
||||
msgid "Blocklist verify"
|
||||
msgstr "拦截列表校验"
|
||||
|
||||
msgid "Boot start delay"
|
||||
msgstr "启动延迟"
|
||||
|
||||
msgid "Clear license"
|
||||
msgstr "清除许可证"
|
||||
|
||||
msgid "Clear the configured SafeShield license key?"
|
||||
msgstr "确定要清除已配置的 SafeShield 许可证密钥?"
|
||||
|
||||
msgid "Compress blocklist"
|
||||
msgstr "压缩拦截列表"
|
||||
|
||||
msgid "Compressed"
|
||||
msgstr "已压缩"
|
||||
|
||||
msgid "Config loaded"
|
||||
msgstr "配置已加载"
|
||||
|
||||
msgid "Configured"
|
||||
msgstr "已配置"
|
||||
|
||||
msgid "Configured physical fingerprint"
|
||||
msgstr "已配置的物理指纹"
|
||||
|
||||
msgid "Configured state"
|
||||
msgstr "配置状态"
|
||||
|
||||
msgid "Current stage"
|
||||
msgstr "当前阶段"
|
||||
|
||||
msgid "Current status"
|
||||
msgstr "当前状态"
|
||||
|
||||
msgid "Debug"
|
||||
msgstr "调试"
|
||||
|
||||
msgid "Delay before SafeShield performs boot-time work."
|
||||
msgstr "SafeShield 执行启动任务前的延迟。"
|
||||
|
||||
msgid "Delete"
|
||||
msgstr "删除"
|
||||
|
||||
msgid "Delete %s from the %s list?"
|
||||
msgstr "确定从 %s 列表中删除 %s?"
|
||||
|
||||
msgid "Device"
|
||||
msgstr "设备"
|
||||
|
||||
msgid "Device identity and profile fields are owned by SafeShield and are not editable from LuCI."
|
||||
msgstr "设备身份和配置文件字段由 SafeShield 管理,不能通过 LuCI 编辑。"
|
||||
|
||||
msgid "Device (read only)"
|
||||
msgstr "设备(只读)"
|
||||
|
||||
msgid "Diagnostics"
|
||||
msgstr "诊断"
|
||||
|
||||
msgid "Disabled"
|
||||
msgstr "已禁用"
|
||||
|
||||
msgid "Disable request accepted."
|
||||
msgstr "禁用请求已接受。"
|
||||
|
||||
msgid "Disable request accepted. Runtime convergence is asynchronous; check Overview for the live state."
|
||||
msgstr "禁用请求已接受。运行时状态收敛是异步的,请在概览页查看实时状态。"
|
||||
|
||||
msgid "Disable SafeShield"
|
||||
msgstr "禁用 SafeShield"
|
||||
|
||||
msgid "dnsmasq binary"
|
||||
msgstr "dnsmasq 可执行文件"
|
||||
|
||||
msgid "dnsmasq confdir"
|
||||
msgstr "dnsmasq 配置目录"
|
||||
|
||||
msgid "dnsmasq running"
|
||||
msgstr "dnsmasq 运行中"
|
||||
|
||||
msgid "DNS runtime"
|
||||
msgstr "DNS 运行时"
|
||||
|
||||
msgid "DNS runtime OK"
|
||||
msgstr "DNS 运行时正常"
|
||||
|
||||
msgid "Domain"
|
||||
msgstr "域名"
|
||||
|
||||
msgid "Domains in this list are always added to the final SafeShield blocklist."
|
||||
msgstr "此列表中的域名将始终添加到最终的 SafeShield 拦截列表中。"
|
||||
|
||||
msgid "Domains in this list are removed from the final SafeShield blocklist."
|
||||
msgstr "此列表中的域名将从最终的 SafeShield 拦截列表中移除。"
|
||||
|
||||
msgid "Domains / lines"
|
||||
msgstr "域名 / 行数"
|
||||
|
||||
msgid "Download retries"
|
||||
msgstr "下载重试次数"
|
||||
|
||||
msgid "Download timeout"
|
||||
msgstr "下载超时"
|
||||
|
||||
msgid "Download URL present"
|
||||
msgstr "下载 URL 存在"
|
||||
|
||||
msgid "Enable additional debug output for troubleshooting."
|
||||
msgstr "启用额外的调试输出用于故障排查。"
|
||||
|
||||
msgid "Enabled"
|
||||
msgstr "已启用"
|
||||
|
||||
msgid "Enable debug logging"
|
||||
msgstr "启用调试日志"
|
||||
|
||||
msgid "Enable/disable and refresh actions use the public SafeShield ubus API. Enable/disable convergence is asynchronous and is verified through safeshield.status."
|
||||
msgstr "启用/禁用和刷新操作使用公共 SafeShield ubus API。启用/禁用状态收敛是异步的,通过 safeshield.status 验证。"
|
||||
|
||||
msgid "Enable request accepted."
|
||||
msgstr "启用请求已接受。"
|
||||
|
||||
msgid "Enable request accepted. Runtime convergence is asynchronous; check Overview for the live state."
|
||||
msgstr "启用请求已接受。运行时状态收敛是异步的,请在概览页查看实时状态。"
|
||||
|
||||
msgid "Enable SafeShield"
|
||||
msgstr "启用 SafeShield"
|
||||
|
||||
msgid "Enter a domain name first."
|
||||
msgstr "请先输入域名。"
|
||||
|
||||
msgid "Enter a license key first. Use Clear license to remove the current key."
|
||||
msgstr "请先输入许可证密钥。使用“清除许可证”可移除当前密钥。"
|
||||
|
||||
msgid "Enter a new key to replace the configured key"
|
||||
msgstr "输入新密钥以替换已配置的密钥"
|
||||
|
||||
msgid "Enter license key"
|
||||
msgstr "输入许可证密钥"
|
||||
|
||||
msgid "Errors"
|
||||
msgstr "错误"
|
||||
|
||||
msgid "Errors only"
|
||||
msgstr "仅错误"
|
||||
|
||||
msgid "File size"
|
||||
msgstr "文件大小"
|
||||
|
||||
msgid "Final dnsmasq restart"
|
||||
msgstr "最终 dnsmasq 重启"
|
||||
|
||||
msgid "General"
|
||||
msgstr "常规"
|
||||
|
||||
msgid "Generated at"
|
||||
msgstr "生成时间"
|
||||
|
||||
msgid "Health"
|
||||
msgstr "健康状态"
|
||||
|
||||
msgid "Health checks"
|
||||
msgstr "健康检查"
|
||||
|
||||
msgid "Hub artifact"
|
||||
msgstr "Hub 产物"
|
||||
|
||||
msgid "Info"
|
||||
msgstr "信息"
|
||||
|
||||
msgid "Initial dnsmasq restart"
|
||||
msgstr "初始 dnsmasq 重启"
|
||||
|
||||
msgid "Installed"
|
||||
msgstr "已安装"
|
||||
|
||||
msgid "Interval between successful Hub artifact refreshes."
|
||||
msgstr "成功刷新 Hub 产物之间的间隔。"
|
||||
|
||||
msgid "KB"
|
||||
msgstr "KB"
|
||||
|
||||
msgid "Keep disabled unless the SafeShield runtime explicitly supports compressed dnsmasq blocklists."
|
||||
msgstr "除非 SafeShield 运行时明确支持压缩的 dnsmasq 拦截列表,否则请保持禁用。"
|
||||
|
||||
msgid "Last attempt"
|
||||
msgstr "上次尝试"
|
||||
|
||||
msgid "Last error code"
|
||||
msgstr "上次错误代码"
|
||||
|
||||
msgid "Last failure"
|
||||
msgstr "上次失败"
|
||||
|
||||
msgid "Last local apply"
|
||||
msgstr "上次本地应用"
|
||||
|
||||
msgid "Last local apply failure"
|
||||
msgstr "上次本地应用失败"
|
||||
|
||||
msgid "Last result"
|
||||
msgstr "上次结果"
|
||||
|
||||
msgid "Last success"
|
||||
msgstr "上次成功"
|
||||
|
||||
msgid "License"
|
||||
msgstr "许可证"
|
||||
|
||||
msgid "License key cleared. SafeShield will use the unlicensed/free artifact path."
|
||||
msgstr "许可证密钥已清除。SafeShield 将使用免费/无授权的产物路径。"
|
||||
|
||||
msgid "License key updated. SafeShield requested an artifact refresh."
|
||||
msgstr "许可证密钥已更新。SafeShield 已请求刷新产物。"
|
||||
|
||||
msgid "Local allow and block rules are managed through the public SafeShield rule API. LuCI never edits /etc/safeshield files directly."
|
||||
msgstr "本地放行和拦截规则通过公共 SafeShield 规则 API 管理。LuCI 不会直接编辑 /etc/safeshield 文件。"
|
||||
|
||||
msgid "Local apply status"
|
||||
msgstr "本地应用状态"
|
||||
|
||||
msgid "Local overrides"
|
||||
msgstr "本地覆盖"
|
||||
|
||||
msgid "Local overrides enabled"
|
||||
msgstr "本地覆盖已启用"
|
||||
|
||||
msgid "Local rules"
|
||||
msgstr "本地规则"
|
||||
|
||||
msgid "Local Rules"
|
||||
msgstr "本地规则"
|
||||
|
||||
msgid "Log verbosity"
|
||||
msgstr "日志详细程度"
|
||||
|
||||
msgid "Masked key"
|
||||
msgstr "掩码密钥"
|
||||
|
||||
msgid "Maximum accepted final blocklist size."
|
||||
msgstr "最终拦截列表允许的最大大小。"
|
||||
|
||||
msgid "Maximum blocklist size"
|
||||
msgstr "拦截列表最大大小"
|
||||
|
||||
msgid "Maximum duration used by the SafeShield pause command."
|
||||
msgstr "SafeShield 暂停命令使用的最大持续时间。"
|
||||
|
||||
msgid "Maximum file size"
|
||||
msgstr "最大文件大小"
|
||||
|
||||
msgid "Maximum retry count for artifact downloads."
|
||||
msgstr "产物下载的最大重试次数。"
|
||||
|
||||
msgid "Memory"
|
||||
msgstr "内存"
|
||||
|
||||
msgid "Minimum valid rule count"
|
||||
msgstr "最少有效规则数"
|
||||
|
||||
msgid "Mode / action"
|
||||
msgstr "模式 / 动作"
|
||||
|
||||
msgid "Model"
|
||||
msgstr "型号"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "名称"
|
||||
|
||||
msgid "New license key"
|
||||
msgstr "新许可证密钥"
|
||||
|
||||
msgid "Next refresh"
|
||||
msgstr "下次刷新"
|
||||
|
||||
msgid "Next refresh in"
|
||||
msgstr "距下次刷新"
|
||||
|
||||
msgid "No"
|
||||
msgstr "否"
|
||||
|
||||
msgid "No local rules in this list."
|
||||
msgstr "此列表中没有本地规则。"
|
||||
|
||||
msgid "No SafeShield settings changed."
|
||||
msgstr "SafeShield 设置未更改。"
|
||||
|
||||
msgid "No sources reported by SafeShield."
|
||||
msgstr "SafeShield 未报告任何源。"
|
||||
|
||||
msgid "Path"
|
||||
msgstr "路径"
|
||||
|
||||
msgid "Pause timeout"
|
||||
msgstr "暂停超时"
|
||||
|
||||
msgid "Physical fingerprint"
|
||||
msgstr "物理指纹"
|
||||
|
||||
msgid "Plan"
|
||||
msgstr "方案"
|
||||
|
||||
msgid "Previous backup available"
|
||||
msgstr "上一备份可用"
|
||||
|
||||
msgid "Refresh daemon running"
|
||||
msgstr "刷新守护进程运行中"
|
||||
|
||||
msgid "Refresh interval"
|
||||
msgstr "刷新间隔"
|
||||
|
||||
msgid "Refresh now"
|
||||
msgstr "立即刷新"
|
||||
|
||||
msgid "Refresh on boot"
|
||||
msgstr "启动时刷新"
|
||||
|
||||
msgid "Refresh the Hub artifact after boot when the existing successful refresh is no longer recent."
|
||||
msgstr "当上次成功刷新不再是最新时,在启动后刷新 Hub 产物。"
|
||||
|
||||
msgid "Refresh was not started: %s"
|
||||
msgstr "刷新未启动:%s"
|
||||
|
||||
msgid "Reject an artifact when the generated dnsmasq rule count is below this value."
|
||||
msgstr "当生成的 dnsmasq 规则数低于此值时拒绝产物。"
|
||||
|
||||
msgid "Require WAN"
|
||||
msgstr "需要 WAN"
|
||||
|
||||
msgid "Require WAN before refresh"
|
||||
msgstr "刷新前需要 WAN"
|
||||
|
||||
msgid "Resolved"
|
||||
msgstr "已解析"
|
||||
|
||||
msgid "Restart dnsmasq before install"
|
||||
msgstr "安装前重启 dnsmasq"
|
||||
|
||||
msgid "Restart dnsmasq before installing a newly downloaded artifact. Normally this should stay disabled."
|
||||
msgstr "在安装新下载的产物前重启 dnsmasq。通常应保持禁用。"
|
||||
|
||||
msgid "Rules"
|
||||
msgstr "规则"
|
||||
|
||||
msgid "Run dnsmasq sanity check"
|
||||
msgstr "运行 dnsmasq 健全性检查"
|
||||
|
||||
msgid "Runtime"
|
||||
msgstr "运行时"
|
||||
|
||||
msgid "Runtime profile"
|
||||
msgstr "运行时配置文件"
|
||||
|
||||
msgid "SafeShield"
|
||||
msgstr "SafeShield"
|
||||
|
||||
msgid "SafeShield accepted the request but runtime convergence was not observed within 15 seconds. Status polling will continue."
|
||||
msgstr "SafeShield 已接受请求,但在 15 秒内未观察到运行时状态收敛。将继续轮询状态。"
|
||||
|
||||
msgid "SafeShield applies rule edits using the cached Hub artifact, then atomically rebuilds the active dnsmasq blocklist and verifies DNS. A full artifact refresh is only used as a fallback when the cached Hub artifact is unavailable."
|
||||
msgstr "SafeShield 使用缓存的 Hub 产物应用规则编辑,然后原子性地重建活跃的 dnsmasq 拦截列表并验证 DNS。仅当缓存的 Hub 产物不可用时,才会完整刷新产物作为备选。"
|
||||
|
||||
msgid "SafeShield is disabled and stopped."
|
||||
msgstr "SafeShield 已禁用并停止。"
|
||||
|
||||
msgid "SafeShield is enabled and running."
|
||||
msgstr "SafeShield 已启用并运行中。"
|
||||
|
||||
msgid "SafeShield is idle."
|
||||
msgstr "SafeShield 处于空闲状态。"
|
||||
|
||||
msgid "SafeShield is ready."
|
||||
msgstr "SafeShield 已就绪。"
|
||||
|
||||
msgid "SafeShield is refreshing the blocklist."
|
||||
msgstr "SafeShield 正在刷新拦截列表。"
|
||||
|
||||
msgid "SafeShield is running with degraded protection."
|
||||
msgstr "SafeShield 正在降级保护状态下运行。"
|
||||
|
||||
msgid "SafeShield encountered an error."
|
||||
msgstr "SafeShield 遇到错误。"
|
||||
|
||||
msgid "SafeShield is paused."
|
||||
msgstr "SafeShield 已暂停。"
|
||||
|
||||
msgid "SafeShield is disabled."
|
||||
msgstr "SafeShield 已禁用。"
|
||||
|
||||
msgid "SafeShield local rules"
|
||||
msgstr "SafeShield 本地规则"
|
||||
|
||||
msgid "SafeShield owns enable/disable lifecycle. LuCI uses safeshield.set_enabled rather than writing UCI directly."
|
||||
msgstr "SafeShield 拥有启用/禁用生命周期。LuCI 使用 safeshield.set_enabled 而非直接写入 UCI。"
|
||||
|
||||
msgid "SafeShield refresh request failed."
|
||||
msgstr "SafeShield 刷新请求失败。"
|
||||
|
||||
msgid "SafeShield refresh started."
|
||||
msgstr "SafeShield 刷新已启动。"
|
||||
|
||||
msgid "SafeShield rejected the lifecycle request."
|
||||
msgstr "SafeShield 拒绝了生命周期请求。"
|
||||
|
||||
msgid "SafeShield request failed."
|
||||
msgstr "SafeShield 请求失败。"
|
||||
|
||||
msgid "SafeShield rule request failed."
|
||||
msgstr "SafeShield 规则请求失败。"
|
||||
|
||||
msgid "SafeShield settings"
|
||||
msgstr "SafeShield 设置"
|
||||
|
||||
msgid "SafeShield settings saved. The service was restarted and a refresh was requested where applicable."
|
||||
msgstr "SafeShield 设置已保存。服务已重启,并在适用时请求了刷新。"
|
||||
|
||||
msgid "Save settings"
|
||||
msgstr "保存设置"
|
||||
|
||||
msgid "Schedule"
|
||||
msgstr "计划"
|
||||
|
||||
msgid "Schema"
|
||||
msgstr "模式"
|
||||
|
||||
msgid "seconds"
|
||||
msgstr "秒"
|
||||
|
||||
msgid "Service state"
|
||||
msgstr "服务状态"
|
||||
|
||||
msgid "SHA-256"
|
||||
msgstr "SHA-256"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "大小"
|
||||
|
||||
msgid "%s must be an integer."
|
||||
msgstr "%s 必须为整数。"
|
||||
|
||||
msgid "%s must be at least %d."
|
||||
msgstr "%s 不能小于 %d。"
|
||||
|
||||
msgid "%s must not exceed %d."
|
||||
msgstr "%s 不能超过 %d。"
|
||||
|
||||
msgid "Sources"
|
||||
msgstr "源"
|
||||
|
||||
msgid "Stage"
|
||||
msgstr "阶段"
|
||||
|
||||
msgid "Status"
|
||||
msgstr "状态"
|
||||
|
||||
msgid "Summary"
|
||||
msgstr "摘要"
|
||||
|
||||
msgid "Test domain"
|
||||
msgstr "测试域名"
|
||||
|
||||
msgid "Test domain success"
|
||||
msgstr "测试域名成功"
|
||||
|
||||
msgid "The license key is unchanged."
|
||||
msgstr "许可证密钥未更改。"
|
||||
|
||||
msgid "The raw license key is never returned by the SafeShield API."
|
||||
msgstr "SafeShield API 不会返回原始许可证密钥。"
|
||||
|
||||
msgid "The rule was saved and local apply was accepted, but completion was not observed before the UI timeout. SafeShield may still be applying it."
|
||||
msgstr "规则已保存且本地应用已接受,但在界面超时前未观察到完成。SafeShield 可能仍在应用中。"
|
||||
|
||||
msgid "The rule was saved, but local overrides are disabled so it is not active."
|
||||
msgstr "规则已保存,但本地覆盖已禁用,因此规则未生效。"
|
||||
|
||||
msgid "The rule was saved, but SafeShield is disabled so it is not active yet."
|
||||
msgstr "规则已保存,但 SafeShield 已禁用,因此规则尚未生效。"
|
||||
|
||||
msgid "The rule was saved, but SafeShield reported a local apply failure. Check Overview and system logs."
|
||||
msgstr "规则已保存,但 SafeShield 报告本地应用失败。请检查概览和系统日志。"
|
||||
|
||||
msgid "The rule was saved, but the local DNS apply request was not accepted: %s"
|
||||
msgstr "规则已保存,但本地 DNS 应用请求未被接受:%s"
|
||||
|
||||
msgid "The rule was saved, but the SafeShield service is stopped."
|
||||
msgstr "规则已保存,但 SafeShield 服务已停止。"
|
||||
|
||||
msgid "The rule was saved without requesting a DNS apply."
|
||||
msgstr "规则已保存,但未请求 DNS 应用。"
|
||||
|
||||
msgid "The %s rule was already in the requested state."
|
||||
msgstr "%s 规则已处于请求的状态。"
|
||||
|
||||
msgid "The %s rule was saved and applied to DNS."
|
||||
msgstr "%s 规则已保存并应用到 DNS。"
|
||||
|
||||
msgid "This page uses the public SafeShield ubus API. UCI, local rule files, service lifecycle and license storage remain owned by the safeshield package."
|
||||
msgstr "此页面使用公共 SafeShield ubus API。UCI、本地规则文件、服务生命周期和许可证存储仍由 safeshield 软件包管理。"
|
||||
|
||||
msgid "Tier"
|
||||
msgstr "等级"
|
||||
|
||||
msgid "Timeout used for Hub resolve and artifact downloads."
|
||||
msgstr "用于 Hub 解析和产物下载的超时时间。"
|
||||
|
||||
msgid "Unique domains"
|
||||
msgstr "唯一域名数"
|
||||
|
||||
msgid "unknown reason"
|
||||
msgstr "未知原因"
|
||||
|
||||
msgid "Update license"
|
||||
msgstr "更新许可证"
|
||||
|
||||
msgid "Validate dnsmasq state after installing or applying the blocklist."
|
||||
msgstr "安装或应用拦截列表后验证 dnsmasq 状态。"
|
||||
|
||||
msgid "Valid rules"
|
||||
msgstr "有效规则"
|
||||
|
||||
msgid "Vendor"
|
||||
msgstr "厂商"
|
||||
|
||||
msgid "Verification OK"
|
||||
msgstr "验证通过"
|
||||
|
||||
msgid "Version"
|
||||
msgstr "版本"
|
||||
|
||||
msgid "Wait for WAN connectivity before resolving and downloading Hub artifacts."
|
||||
msgstr "在解析和下载 Hub 产物前等待 WAN 连接。"
|
||||
|
||||
msgid "Warnings"
|
||||
msgstr "警告"
|
||||
|
||||
msgid "Yes"
|
||||
msgstr "是"
|
||||
|
||||
msgid "Idle"
|
||||
msgstr "空闲"
|
||||
|
||||
msgid "Waiting for scheduled refresh"
|
||||
msgstr "等待计划刷新"
|
||||
|
||||
msgid "Waiting after boot"
|
||||
msgstr "启动后等待"
|
||||
|
||||
msgid "Applying local rules"
|
||||
msgstr "应用本地规则"
|
||||
|
||||
msgid "Merging local rules"
|
||||
msgstr "合并本地规则"
|
||||
|
||||
msgid "Restarting DNS service"
|
||||
msgstr "重启 DNS 服务"
|
||||
|
||||
msgid "Checking DNS service"
|
||||
msgstr "检查 DNS 服务"
|
||||
|
||||
msgid "Verifying blocklist"
|
||||
msgstr "校验拦截列表"
|
||||
|
||||
msgid "OK"
|
||||
msgstr "正常"
|
||||
|
||||
msgid "Ready"
|
||||
msgstr "就绪"
|
||||
|
||||
msgid "Success"
|
||||
msgstr "成功"
|
||||
|
||||
msgid "Running"
|
||||
msgstr "运行中"
|
||||
|
||||
msgid "Refreshing"
|
||||
msgstr "刷新中"
|
||||
|
||||
msgid "Pending"
|
||||
msgstr "等待中"
|
||||
|
||||
msgid "Notice"
|
||||
msgstr "通知"
|
||||
|
||||
msgid "Warning"
|
||||
msgstr "警告"
|
||||
|
||||
msgid "Degraded"
|
||||
msgstr "降级"
|
||||
|
||||
msgid "Error"
|
||||
msgstr "错误"
|
||||
|
||||
msgid "Failed"
|
||||
msgstr "失败"
|
||||
|
||||
msgid "Failure"
|
||||
msgstr "失败"
|
||||
|
||||
msgid "Expired"
|
||||
msgstr "已过期"
|
||||
|
||||
msgid "Revoked"
|
||||
msgstr "已撤销"
|
||||
|
||||
msgid "Suspended"
|
||||
msgstr "已暂停"
|
||||
|
||||
msgid "Free"
|
||||
msgstr "免费"
|
||||
|
||||
msgid "Unlicensed"
|
||||
msgstr "未授权"
|
||||
|
||||
msgid "Licensed"
|
||||
msgstr "已授权"
|
||||
|
||||
msgid "Light"
|
||||
msgstr "轻量版"
|
||||
|
||||
msgid "Standard"
|
||||
msgstr "标准版"
|
||||
|
||||
msgid "Full"
|
||||
msgstr "完整版"
|
||||
|
||||
msgid "Block"
|
||||
msgstr "拦截"
|
||||
|
||||
msgid "Allow"
|
||||
msgstr "放行"
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf /tmp/luci-modulecache
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
[ -x /etc/init.d/rpcd ] && /etc/init.d/rpcd reload
|
||||
[ -x /etc/init.d/uhttpd ] && /etc/init.d/uhttpd reload
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"admin/services/safeshield": {
|
||||
"title": "SafeShield",
|
||||
"order": 60,
|
||||
"action": {
|
||||
"type": "firstchild"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-safeshield" ]
|
||||
}
|
||||
},
|
||||
"admin/services/safeshield/overview": {
|
||||
"title": "Overview",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "safeshield/overview"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-safeshield" ]
|
||||
}
|
||||
},
|
||||
"admin/services/safeshield/rules": {
|
||||
"title": "Local Rules",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "safeshield/rules"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-safeshield" ]
|
||||
}
|
||||
},
|
||||
"admin/services/safeshield/config": {
|
||||
"title": "Settings",
|
||||
"order": 30,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "safeshield/config"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-safeshield" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"luci-app-safeshield": {
|
||||
"description": "Grant LuCI access to the public SafeShield management API",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"safeshield": [
|
||||
"status",
|
||||
"config",
|
||||
"rules_list"
|
||||
]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"ubus": {
|
||||
"safeshield": [
|
||||
"config_update",
|
||||
"set_enabled",
|
||||
"refresh",
|
||||
"rule_add",
|
||||
"rule_delete",
|
||||
"license_update"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,9 @@ LUCI_TITLE:=LuCI support for sunpanel
|
||||
LUCI_DEPENDS:=+sunpanel
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
PKG_VERSION:=1.3.1-r2
|
||||
PKG_VERSION:=1.8.1-r1
|
||||
# PKG_RELEASE MUST be empty for luci.mk
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
LUCI_MINIFY_CSS:=0
|
||||
LUCI_MINIFY_JS:=0
|
||||
@@ -19,4 +19,3 @@ LUCI_MINIFY_JS:=0
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<svg viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="36" y="32" width="329" height="237"><path d="M364.5 32H36v237h328.5V32Z" fill="#fff" /></mask><g mask="url(#a)"><g opacity=".4"><path fill-rule="evenodd" clip-rule="evenodd" d="M194.196 77.903c2.3.6 4.5 1.2 6.8 1.8 2.3.6 4.6 1.3 6.9 2 4.8 1.4 9.5 3.1 14 5.1 1.2.5 2.4 1.1 3.6 1.8.6.3 1.2.7 1.8 1.1.6.4 1.1.8 1.7 1.3 2 1.7 3.7 3.6 5.1 5.7 2.7 4 4.2 8.1 5.8 12 1.6 3.9 3 7.7 4.8 11.4 1.7 3.6 4 7 6.6 10.2 2.6 3.1 5.8 5.8 9.4 7.9 3.7 2.1 7.6 3.7 11.6 4.4 1.9.3 3.9.4 5.8.2 1.7-.2 3.4-.6 5-1.3 2.8-1.3 4.8-3.5 5.6-6.1.4-1.3.6-2.7.5-4-.1-1.4-.3-2.9-.8-4.2-.1-.4-.3-.7-.4-1.1l-.5-1.3c-.4-.8-.7-1.7-1.1-2.5-.8-1.6-1.7-3.2-2.7-4.8-2-3.2-4.5-6.3-7.1-9.8-2.9-3.7-5.4-7.5-7.6-11.5-2.2-4.2-3.9-8.5-5.1-12.9-.2-.5-.3-1.1-.4-1.6l-.4-1.5c-.2-.8-.4-1.6-.7-2.5-.5-1.7-1.1-3.3-1.8-4.9-2.8-6.4-7.1-12-12.9-16.2-3-2.2-6.2-4-9.8-5.4-1.8-.8-3.7-1.5-5.7-2-2-.6-4.1-1.1-6.1-1.6-2.1-.4-4.3-.8-6.5-1.1-1-.1-2.4-.3-3.6-.4-1.3-.1-2.5-.3-3.7-.5-4.9-.8-9.7-1.8-14.5-3.2-4.7-1.3-9.2-2.8-13.6-4.4-2.2-.8-4.4-1.6-6.6-2.3-2.1-.7-4.3-1.2-6.6-1.4-4.7-.3-9.3.3-13.8 1.5-4.4 1.3-8.4 3.5-11 6.5-.7.7-1.2 1.5-1.7 2.3-.5.8-.8 1.6-1.1 2.5-.6 1.7-.7 3.4-.6 5.1.4 3.4 2.1 6.6 4.4 9.5.1.2.3.4.4.5l.4.4c.3.3.6.5.9.8.6.5 1.3 1 2 1.5 1.5 1 3.2 1.8 4.9 2.5 3.8 1.6 7.8 2.9 11.9 4 8.4 2.3 17.4 4.3 26.5 6.5ZM210.2 95c2.2.4 4.3.9 6.3 1.4 1 .3 1.9.6 2.8.9.4.2.8.3 1.2.5.4.1.8.3 1.2.5 1.6.9 3.1 2 4.4 3.2 2.7 2.7 5 6.1 7 9.7 4.1 7.1 7.5 15 13 22.1 1.4 1.8 2.9 3.5 4.5 5.1 1.7 1.6 3.5 3.2 5.4 4.6 3.9 3 8.4 5.4 13.3 7.1 2.7.9 5.5 1.4 8.3 1.6 3.1.2 6.2-.1 9.1-.9 3.2-.8 6-2.2 8.5-4 2.5-1.9 4.5-4.2 6-6.7s2.4-5.2 2.7-7.9c.3-2.7.2-5.3-.3-7.9-.1-.7-.2-1.3-.4-1.9l-.5-1.7c-.3-1.1-.7-2.2-1.1-3.3-.9-2.2-1.8-4.3-2.9-6.4-2.1-4.1-4.6-7.9-6.8-11.3-2.1-3.2-3.9-6.6-5.5-10-1.5-3.3-2.6-6.7-3.4-10.2l-.6-2.8c-.2-1.2-.5-2.4-.9-3.5-.7-2.3-1.6-4.5-2.6-6.7-2-4.5-4.7-8.6-8.1-12.4-3.4-3.9-7.5-7.2-12.2-10-4.6-2.7-9.7-4.7-15.2-5.9-5.2-1.2-10.6-1.7-16-1.5-2.6.1-5.2.3-7.8.6-1.3.2-2.4.4-3.5.5-1.1.1-2.3.2-3.4.3-4.6.4-9.2.4-13.8 0-2.3-.2-4.6-.5-6.9-.9-2.3-.4-4.7-.8-6.9-1.4-2.2-.6-4.5-1.2-6.8-1.8-1.2-.3-2.3-.6-3.5-.8-1.2-.3-2.4-.4-3.7-.5-4.9-.2-9.8.2-15.2 1.4-5 1-9.6 3-13.5 5.9-1 .8-1.9 1.6-2.7 2.5-.8.9-1.6 1.9-2.2 2.9-1.3 2.2-2.2 4.4-2.6 6.8-.4 2.3-.4 4.7 0 7.1.4 2.3 1 4.6 2 6.8.2.3.3.5.4.8l.5.9c.4.6.7 1.1 1.1 1.7.8 1.1 1.6 2.1 2.6 3.1.9 1 1.9 1.9 3 2.7 1.1.8 2.1 1.6 3.2 2.3 4.3 2.7 8.8 4.9 13.7 6.7 9.4 3.4 18.9 5.5 28.2 7.2 2.4.4 4.7.8 7 1.2l6.9 1.1c2.3.4 4.5.8 6.7 1.2Z" fill="#EBEBEB" opacity=".4" /><path fill-rule="evenodd" clip-rule="evenodd" d="M156.302 100.995c-1.3.7-2.6 1.3-3.9 2l-3.8 2c-5 2.8-9.8 5.6-14.6 8.1-2.4 1.3-4.8 2.5-7.2 3.5-2.3 1-4.7 1.8-7.1 2.5-2.3.5-4.7 1-7.1 1.2-2.5.3-5 .5-7.6.5h-8.1l-8.4-.2c-6-.2-12 0-18 .6-3.3.3-6.5.9-9.7 1.7-3.3.9-6.6 2.1-9.6 3.6-3.1 1.5-5.9 3.5-8.4 5.7-.6.6-1.3 1.2-1.8 1.8-.5.6-1.1 1.3-1.6 2s-1.1 1.5-1.4 2.2c-.3.7-.7 1.5-1 2.3-1 3-1.3 6.1-.7 9.1.5 2.6 1.4 5.2 2.6 7.6 1.2 2.3 2.5 4.5 3.9 6.6 1.3 2.1 2.8 4.2 4.2 6.2 2.9 4.1 5.6 8.1 8 12.3 2.4 4.1 4.2 8.5 5.3 13.1l2.7 14.2.8 3.5c.3 1.2.5 2.3.8 3.5.3 1.2.6 2.3.9 3.5.3 1.2.6 2.3.9 3.5 1.2 4.7 2.8 9.4 4.7 14 1 2.3 2.2 4.7 3.5 6.9 1.4 2.3 3 4.5 4.8 6.6.9 1.1 2 2.1 3 3.1.5.4 1.1.9 1.7 1.4.3.2.6.5.9.7l1 .7c2.7 1.9 5.6 3.4 8.8 4.5.8.3 1.7.6 2.5.8.9.2 1.7.4 2.6.6.4.1.9.2 1.3.3l1.3.2 2.7.3 2.7.1h1.3l3.9-.2c.9-.1 1.7-.2 2.6-.3 1.7-.2 3.3-.5 5-.9l1.2-.3 1.2-.3 2.4-.7c.8-.2 1.5-.5 2.3-.7.8-.3 1.5-.5 2.3-.8 1.6-.6 3.1-1.1 4.6-1.8 3.2-1.3 6.3-2.9 9.1-4.8 3-2 5.6-4.3 7.9-6.8 2.2-2.4 4-4.9 5.6-7.6 1.5-2.5 2.7-5 3.8-7.3 2.2-4.7 4.2-9.2 6.2-13.6 4-8.8 8.7-17.4 13.9-25.7l1-1.6 1-1.6c.7-1 1.4-2.1 2.1-3.1l4.3-6.3c.8-1.1 1.5-2.3 2.2-3.4.7-1.1 1.4-2.3 2.1-3.4.7-1.2 1.4-2.3 2-3.5.6-1.2 1.2-2.3 1.8-3.5 1.2-2.4 2.2-4.8 3.2-7.2l.7-1.8.7-1.8c.5-1.2.8-2.5 1.2-3.7.7-2.5 1.4-5.1 1.8-7.6.5-2.6.8-5.1.9-7.7.4-5.1-.2-10.2-1.7-15.2-.4-1.2-.8-2.4-1.3-3.6l-.8-1.8c-.3-.6-.6-1.1-.9-1.7-1.2-2.3-2.7-4.5-4.5-6.5-1.8-2-3.8-3.8-6-5.5-.6-.4-1.1-.8-1.7-1.2l-1.8-1.2c-1.3-.7-2.7-1.4-4.1-1.9-3-1.1-6.2-1.5-9.5-1.4-3.2.2-6.3.8-9.3 1.8-2.9.9-5.6 2.1-8.3 3.4Zm3.401 4.503c-2.3 1.4-4.5 2.8-6.7 4.4-4.4 3.1-8.6 6.5-13.2 9.8-2.3 1.7-4.7 3.3-7.2 4.9-2.6 1.7-5.4 3.1-8.3 4.4-6.2 2.6-12.6 3.8-18.8 4.5-12.3 1.3-23.7.5-33.9 1.2-5.1.3-9.7 1-13.8 2.5-2.1.7-4 1.7-5.8 2.8-1.6 1-3 2.2-4 3.7-1 1.6-1.6 3.3-1.8 5.1-.2 2.1 0 4.2.5 6.3.5 2.2 1.1 4.4 1.9 6.6.8 2.2 1.7 4.4 2.7 6.6 1.9 4.4 4.1 8.8 6.1 13.2 1.9 4.4 3.5 8.9 4.7 13.6 1 4.601 2.2 9.201 3.8 13.701l.6 1.7.6 1.7c.4 1.1.9 2.2 1.3 3.3.9 2.2 1.9 4.4 2.9 6.5 2.1 4.2 4.6 8.3 7.6 12.1 1.4 1.9 3 3.6 4.7 5.3 1.6 1.6 3.4 3.1 5.3 4.5.9.7 1.9 1.2 2.8 1.8l1.5.8c.2.1.5.3.7.4l.8.3c1.9.9 3.9 1.5 6.1 1.8.5.1 1 .2 1.5.2l1.6.1c.3 0 .5.1.8.1H107.103l1.6-.1c.3 0 .5 0 .8-.1l.8-.1 1.6-.2 1.7-.4c2.3-.5 4.5-1.2 6.7-2 .6-.2 1.2-.4 1.7-.6.6-.2 1.2-.4 1.7-.7 1.1-.5 2.2-.9 3.2-1.4 2-.9 3.8-2 5.5-3.2 1.6-1.1 3-2.4 4.2-3.8 2.5-2.8 4.5-6.7 6.7-11 1.1-2.2 2.1-4.4 3.2-6.7s2.3-4.6 3.4-6.9c4.8-9.3 10.3-18.201 16.6-26.901l1.2-1.6 1.2-1.6c.8-1.Line truncated
|
||||
|
Before Width: | Height: | Size: 28 KiB |
@@ -1,48 +0,0 @@
|
||||
import{m as d,p as t,K as v,aT as F,n as H,f as j,q as M,z as C,af as N,y as p,aN as O,A as i,B as V,r as W,g as o,P as D,aL as K,F as q,G,aS as J,cT as Q,S as U,aD as X,aE as Y,aF as Z,aC as ee}from"./index-7e19b821.js";const re=d("alert",`
|
||||
line-height: var(--n-line-height);
|
||||
border-radius: var(--n-border-radius);
|
||||
position: relative;
|
||||
transition: background-color .3s var(--n-bezier);
|
||||
background-color: var(--n-color);
|
||||
text-align: start;
|
||||
word-break: break-word;
|
||||
`,[t("border",`
|
||||
border-radius: inherit;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
transition: border-color .3s var(--n-bezier);
|
||||
border: var(--n-border);
|
||||
pointer-events: none;
|
||||
`),v("closable",[d("alert-body",[t("title",`
|
||||
padding-right: 24px;
|
||||
`)])]),t("icon",{color:"var(--n-icon-color)"}),d("alert-body",{padding:"var(--n-padding)"},[t("title",{color:"var(--n-title-text-color)"}),t("content",{color:"var(--n-content-text-color)"})]),F({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),t("icon",`
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
width: var(--n-icon-size);
|
||||
height: var(--n-icon-size);
|
||||
font-size: var(--n-icon-size);
|
||||
margin: var(--n-icon-margin);
|
||||
`),t("close",`
|
||||
transition:
|
||||
color .3s var(--n-bezier),
|
||||
background-color .3s var(--n-bezier);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin: var(--n-close-margin);
|
||||
`),v("show-icon",[d("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),v("right-adjust",[d("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),d("alert-body",`
|
||||
border-radius: var(--n-border-radius);
|
||||
transition: border-color .3s var(--n-bezier);
|
||||
`,[t("title",`
|
||||
transition: color .3s var(--n-bezier);
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
font-weight: var(--n-title-font-weight);
|
||||
`,[H("& +",[t("content",{marginTop:"9px"})])]),t("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),t("icon",{transition:"color .3s var(--n-bezier)"})]),oe=Object.assign(Object.assign({},C.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ie=j({name:"Alert",inheritAttrs:!1,props:oe,setup(n){const{mergedClsPrefixRef:e,mergedBorderedRef:l,inlineThemeDisabled:g,mergedRtlRef:u}=M(n),h=C("Alert","-alert",re,Q,n,e),z=N("Alert",u,e),f=p(()=>{const{common:{cubicBezierEaseInOut:a},self:r}=h.value,{fontSize:x,borderRadius:R,titleFontWeight:I,lineHeight:A,iconSize:T,iconMargin:m,iconMarginRtl:$,closeIconSize:w,closeBorderRadius:P,closeSize:B,closeMargin:S,closeMarginRtl:_,padding:L}=r,{type:s}=n,{left:k,right:E}=O(m);return{"--n-bezier":a,"--n-color":r[i("color",s)],"--n-close-icon-size":w,"--n-close-border-radius":P,"--n-close-color-hover":r[i("closeColorHover",s)],"--n-close-color-pressed":r[i("closeColorPressed",s)],"--n-close-icon-color":r[i("closeIconColor",s)],"--n-close-icon-color-hover":r[i("closeIconColorHover",s)],"--n-close-icon-color-pressed":r[i("closeIconColorPressed",s)],"--n-icon-color":r[i("iconColor",s)],"--n-border":r[i("border",s)],"--n-title-text-color":r[i("titleTextColor",s)],"--n-content-text-color":r[i("contentTextColor",s)],"--n-line-height":A,"--n-border-radius":R,"--n-font-size":x,"--n-title-font-weight":I,"--n-icon-size":T,"--n-icon-margin":m,"--n-icon-margin-rtl":$,"--n-close-size":B,"--n-close-margin":S,"--n-close-margin-rtl":_,"--n-padding":L,"--n-icon-margin-left":k,"--n-icon-margin-right":E}}),c=g?V("alert",p(()=>n.type[0]),f,n):void 0,b=W(!0),y=()=>{const{onAfterLeave:a,onAfterHide:r}=n;a&&a(),r&&r()};return{rtlEnabled:z,mergedClsPrefix:e,mergedBordered:l,visible:b,handleCloseClick:()=>{var a;Promise.resolve((a=n.onClose)===null||a===void 0?void 0:a.call(n)).then(r=>{r!==!1&&(b.value=!1)})},handleAfterLeave:()=>{y()},mergedTheme:h,cssVars:g?void 0:f,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var n;return(n=this.onRender)===null||n===void 0||n.call(this),o(J,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:l}=this,g={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?o("div",Object.assign({},D(this.$attrs,g)),this.closable&&o(K,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&o("div",{class:`${e}-alert__border`}),this.showIcon&&o("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},q(l.icon,()=>[o(U,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return o(ee,null);case"info":return o(Z,null);case"warning":return o(Y,null);case"error":return o(X,null);default:return null}}})])),o("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},G(l.header,u=>{const h=u||this.title;return h?o("div",{class:`${e}-alert-body__title`},h):null}),l.default&&o("div",{class:`${e}-alert-body__content`},l))):null}})}});export{ie as N};
|
||||
@@ -1,42 +0,0 @@
|
||||
import{m as p,aj as c,p as n,K as t,f,q as u,z as v,cO as b,y as x,B as C,g as d,ao as $}from"./index-7e19b821.js";const w=p("divider",`
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
font-size: 16px;
|
||||
color: var(--n-text-color);
|
||||
transition:
|
||||
color .3s var(--n-bezier),
|
||||
background-color .3s var(--n-bezier);
|
||||
`,[c("vertical",`
|
||||
margin-top: 24px;
|
||||
margin-bottom: 24px;
|
||||
`,[c("no-title",`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
`)]),n("title",`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
white-space: nowrap;
|
||||
font-weight: var(--n-font-weight);
|
||||
`),t("title-position-left",[n("line",[t("left",{width:"28px"})])]),t("title-position-right",[n("line",[t("right",{width:"28px"})])]),t("dashed",[n("line",`
|
||||
background-color: #0000;
|
||||
height: 0px;
|
||||
width: 100%;
|
||||
border-style: dashed;
|
||||
border-width: 1px 0 0;
|
||||
`)]),t("vertical",`
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
margin: 0 8px;
|
||||
vertical-align: middle;
|
||||
width: 1px;
|
||||
`),n("line",`
|
||||
border: none;
|
||||
transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
`),c("dashed",[n("line",{backgroundColor:"var(--n-color)"})]),t("dashed",[n("line",{borderColor:"var(--n-color)"})]),t("vertical",{backgroundColor:"var(--n-color)"})]),_=Object.assign(Object.assign({},v.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),z=f({name:"Divider",props:_,setup(r){const{mergedClsPrefixRef:o,inlineThemeDisabled:l}=u(r),s=v("Divider","-divider",w,b,r,o),a=x(()=>{const{common:{cubicBezierEaseInOut:e},self:{color:h,textColor:g,fontWeight:m}}=s.value;return{"--n-bezier":e,"--n-color":h,"--n-text-color":g,"--n-font-weight":m}}),i=l?C("divider",void 0,a,r):void 0;return{mergedClsPrefix:o,cssVars:l?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var r;const{$slots:o,titlePlacement:l,vertical:s,dashed:a,cssVars:i,mergedClsPrefix:e}=this;return(r=this.onRender)===null||r===void 0||r.call(this),d("div",{role:"separator",class:[`${e}-divider`,this.themeClass,{[`${e}-divider--vertical`]:s,[`${e}-divider--no-title`]:!o.default,[`${e}-divider--dashed`]:a,[`${e}-divider--title-position-${l}`]:o.default&&l}],style:i},s?null:d("div",{class:`${e}-divider__line ${e}-divider__line--left`}),!s&&o.default?d($,null,d("div",{class:`${e}-divider__title`},this.$slots),d("div",{class:`${e}-divider__line ${e}-divider__line--right`})):null)}});export{z as N};
|
||||
@@ -1,12 +0,0 @@
|
||||
import{m as p,f as x,q as v,y as o,z as f,A as g,B as z,g as S,cH as T}from"./index-7e19b821.js";import{u as C}from"./index-2b595d91.js";import{f as R}from"./index-c238f14b.js";const $=p("gradient-text",`
|
||||
display: inline-block;
|
||||
font-weight: var(--n-font-weight);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: #0000;
|
||||
white-space: nowrap;
|
||||
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
|
||||
transition:
|
||||
--n-color-start .3s var(--n-bezier),
|
||||
--n-color-end .3s var(--n-bezier);
|
||||
`),k=Object.assign(Object.assign({},f.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),O=x({name:"GradientText",props:k,setup(t){C();const{mergedClsPrefixRef:n,inlineThemeDisabled:l}=v(t),i=o(()=>{const{type:e}=t;return e==="danger"?"error":e}),m=o(()=>{let e=t.size||t.fontSize;return e&&(e=R(e)),e||void 0}),u=o(()=>{const e=t.color||t.gradient;if(typeof e=="string")return e;if(e){const s=e.deg||0,a=e.from,c=e.to;return`linear-gradient(${s}deg, ${a} 0%, ${c} 100%)`}}),h=f("GradientText","-gradient-text",$,T,t,n),d=o(()=>{const{value:e}=i,{common:{cubicBezierEaseInOut:s},self:{rotate:a,[g("colorStart",e)]:c,[g("colorEnd",e)]:y,fontWeight:b}}=h.value;return{"--n-bezier":s,"--n-rotate":a,"--n-color-start":c,"--n-color-end":y,"--n-font-weight":b}}),r=l?z("gradient-text",o(()=>i.value[0]),d,t):void 0;return{mergedClsPrefix:n,compatibleType:i,styleFontSize:m,styleBgImage:u,cssVars:l?void 0:d,themeClass:r==null?void 0:r.themeClass,onRender:r==null?void 0:r.onRender}},render(){const{mergedClsPrefix:t,onRender:n}=this;return n==null||n(),S("span",{class:[`${t}-gradient-text`,`${t}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});export{O as N};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Loaded 100 of 185 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user