🔥 Sync 2024-02-16 20:25:27

This commit is contained in:
github-actions[bot] 2024-02-16 20:25:27 +08:00
parent af31ce14b0
commit db95525b19
13 changed files with 28 additions and 374 deletions

View File

@ -13,7 +13,7 @@ return view.extend({
s.addremove = false;
o = s.option(form.Value, 'router_id', _('Router ID'),
_('String identifying the machine (doesn\'t have to be hostname)'));
_('String identifying the machine (need not be hostname)'));
o.optional = true;
o.placeholder = 'OpenWrt';

View File

@ -64,7 +64,7 @@ return view.extend({
s = m.section(form.GridSection, 'static_ipaddress', _('Static IP Addresses'),
_('Static Addresses are not moved by vrrpd, they stay on the machine.') + '<br/>' +
_('If you already have IPs on your machines and your machines can ping each other, you don\'t need this section'));
_('If your systems already have IPs and they can ping each other, you do not need this section'));
s.anonymous = true;
s.addremove = true;
s.nodescriptions = true;

View File

@ -16,7 +16,7 @@ return view.extend({
var s, o;
s = m.section(form.GridSection, 'route', _('Routes'),
_('Routes would be refereenced into Static and Virtual Routes of VRRP instances'));
_('Routes would be referenced into Static and Virtual Routes of VRRP instances'));
s.anonymous = true;
s.addremove = true;
s.nodescriptions = true;

View File

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2024-01-08 13:28+0000\n"
"PO-Revision-Date: 2024-01-27 05:13+0000\n"
"Last-Translator: Džiugas J <dziugas1959@hotmail.com>\n"
"Language-Team: Lithuanian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsopenwisp/lt/>\n"
@ -76,11 +76,11 @@ msgstr "Duoti prieigą prie „luci-app-openwisp“"
#: applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js:74
msgid "Hardware ID Key"
msgstr "Įrangos ID raktas"
msgstr "Įrangos ID raktas"
#: applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js:78
msgid "Hardware ID Script"
msgstr "Įrangos ID skriptas"
msgstr "Įrangos ID skriptas"
#: applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js:60
msgid ""

View File

@ -1,12 +0,0 @@
# See /LICENSE for more information.
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI app to configure Tor
LUCI_DEPENDS:=+luci-base +tor +tor-hs
PKG_MAINTAINER:=Sergey Ponomarev <stokito@gmail.com>
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -1,108 +0,0 @@
'use strict';
'require view';
'require form';
'require rpc';
'require uci';
var callTorHsList = rpc.declare({
object: 'tor-hs-rpc',
method: 'list-hs',
});
return view.extend({
load: function () {
return Promise.all([
L.resolveDefault(callTorHsList(), {}),
]);
},
render: function (data) {
var hsList = [];
if (data[0]['hs-list']) {
hsList = data[0]['hs-list'];
}
var hsMap = new Map();
hsList.forEach(function (hs) {
hsMap.set(hs.name, hs.hostname);
});
var m, s, o;
m = new form.Map('tor-hs', _('Tor Onion Services'),
_('Tor Onion (Hidden) Services are proxy tunnels to your local website, SSH and other services.') + '<br />' +
_('For further information <a %s>check the documentation</a>')
.format('href="https://openwrt.org/docs/guide-user/services/tor/hs" target="_blank" rel="noreferrer"')
);
s = m.section(form.GridSection, 'hidden-service', _('Tor Onion Services'));
s.addremove = true;
s.nodescriptions = true;
s.sectiontitle = function (section_id) {
let tor = uci.get('tor-hs', section_id);
let sectionName = section_id;
if (tor['.anonymous']) {
sectionName = tor['Name'];
}
return sectionName;
};
o = s.option(form.Flag, 'Enabled', _('Enabled'));
o.default = '1';
o.rmempty = false;
// We also need to set Name field with the same name as section
// The only option to do that is to override write() for some other field i.e. Enabled
o.write = function (section_id, formvalue) {
// first save the Enabled
uci.set('tor-hs', section_id, 'Enabled', formvalue);
// set Name field
var name = this.map.data.get(this.map.config, section_id, 'Name') || '';
if (!name) {
// Typically the empty Name happens for new unsaved sections
name = section_id;
// manually set Name to trigger change
uci.set('tor-hs', section_id, 'Name', name);
}
return name;
};
o = s.option(form.DummyValue, '_Domain', _('Onion domain'));
o.modalonly = false;
o.rawhtml = true;
o.textvalue = function (section_id) {
var name = uci.get('tor-hs', section_id, 'Name');
if (!name)
return '';
var hostname = hsMap.get(name);
if (!hostname)
return '';
return '<a href="http://' + hostname + '" target="_blank" rel="noreferrer">' + _('Link') + '</a>';
};
o = s.option(form.Value, 'Description', _('Description'));
o.modalonly = true;
o = s.option(form.Value, 'IPv4', _('Destination address'),
_('Traffic will be forwarded to the target hostname')
);
o.datatype = 'host';
o.default = '127.0.0.1';
o = s.option(form.DynamicList, 'PublicLocalPort', _('Public ports to local'),
_('A single <code>Port</code> when the public port is the same as local e.g. <code>80</code>.') + '<br />' +
_('A pair <code>PublicPort;LocalPort</code> e.g. <code>80;8080</code>.') + '<br />' +
_('A pair <code>PublicPort;unix:Socket</code> e.g. <code>80;unix:/var/run/nginx.sock</code>.')
);
o.datatype = 'list(string)';
o.default = ['80', '443']; // by default expose http and https ports
o.rmempty = false;
o = s.option(form.Value, 'HookScript', _('Hook Script'),
_('Path to script which is executed after starting Tor.') + '<br />' +
_('The .onion domain is passed into the script via parameter <code>--update-onion HOSTNAME</code>.')
);
o.modalonly = true;
return m.render();
},
});

View File

@ -1,105 +0,0 @@
msgid ""
msgstr ""
"PO-Revision-Date: 2024-01-19 12:38+0000\n"
"Last-Translator: st7105 <st7105@gmail.com>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationstor/ru/>\n"
"Language: ru\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 5.4-dev\n"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:93
msgid "A pair <code>PublicPort;LocalPort</code> e.g. <code>80;8080</code>."
msgstr ""
"Пара <code>ПубличныйПорт;ЛокальныйПорт</code> н.п. <code>80;8080</code>."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:94
msgid ""
"A pair <code>PublicPort;unix:Socket</code> e.g. <code>80;unix:/var/run/nginx."
"sock</code>."
msgstr ""
"Пара <code>ПубличныйПорт;unix:Сокет</code> н.п. <code>80;unix:/var/run/nginx."
"sock</code>."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:92
msgid ""
"A single <code>Port</code> when the public port is the same as local e.g. "
"<code>80</code>."
msgstr ""
"Один <code>Порт</code> когда публичный порт такой же как и локальный н.п. "
"<code>80</code>."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:82
msgid "Description"
msgstr "Описание"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:85
msgid "Destination address"
msgstr "Aдрес назначения"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:50
msgid "Enabled"
msgstr "Включено"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:34
msgid "For further information <a %s>check the documentation</a>"
msgstr ""
"Для получения дополнительной информации <a %s>ознакомьтесь с документацией</"
"a>"
#: applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json:3
msgid "Grant UCI access for luci-app-tor"
msgstr "Предоставить UCI доступ для LuCI приложения Tor"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:100
msgid "Hook Script"
msgstr "Скрипт хука"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:79
msgid "Link"
msgstr "Ссылка"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:69
msgid "Onion domain"
msgstr "Домен Onion"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:101
msgid "Path to script which is executed after starting Tor."
msgstr "Путь к скрипту который будет выполнен после запуска Tor."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:91
msgid "Public ports to local"
msgstr "Публичные порты к Локальным"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:102
msgid ""
"The .onion domain is passed into the script via parameter <code>--update-"
"onion HOSTNAME</code>."
msgstr ""
"Домен .onion передаётся в скрипт через параметр <code>--update-onion "
"HOSTNAME</code>."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:33
msgid ""
"Tor Onion (Hidden) Services are proxy tunnels to your local website, SSH and "
"other services."
msgstr ""
"Tor Onion (Hidden) Services (луковичные/скрытые сервисы Tor) это прокси "
"тунели к вашему локальному вебсайту, SSH и другим сервисам."
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:32
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:38
#: applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json:16
msgid "Tor Onion Services"
msgstr "Tor Onion Сервисы"
#: applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json:3
msgid "Tor onion router"
msgstr "Tor луковичный роутер"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:86
msgid "Traffic will be forwarded to the target hostname"
msgstr "Трафик будет переправлен по этому имени хоста"

View File

@ -1,84 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:93
msgid "A pair <code>PublicPort;LocalPort</code> e.g. <code>80;8080</code>."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:94
msgid ""
"A pair <code>PublicPort;unix:Socket</code> e.g. <code>80;unix:/var/run/nginx."
"sock</code>."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:92
msgid ""
"A single <code>Port</code> when the public port is the same as local e.g. "
"<code>80</code>."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:82
msgid "Description"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:85
msgid "Destination address"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:50
msgid "Enabled"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:34
msgid "For further information <a %s>check the documentation</a>"
msgstr ""
#: applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json:3
msgid "Grant UCI access for luci-app-tor"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:100
msgid "Hook Script"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:79
msgid "Link"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:69
msgid "Onion domain"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:101
msgid "Path to script which is executed after starting Tor."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:91
msgid "Public ports to local"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:102
msgid ""
"The .onion domain is passed into the script via parameter <code>--update-"
"onion HOSTNAME</code>."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:33
msgid ""
"Tor Onion (Hidden) Services are proxy tunnels to your local website, SSH and "
"other services."
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:32
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:38
#: applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json:16
msgid "Tor Onion Services"
msgstr ""
#: applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json:3
msgid "Tor onion router"
msgstr ""
#: applications/luci-app-tor/htdocs/luci-static/resources/view/tor/tor-hs.js:86
msgid "Traffic will be forwarded to the target hostname"
msgstr ""

View File

@ -1,23 +0,0 @@
{
"admin/services/tor": {
"title": "Tor onion router",
"order": 60,
"action": {
"type": "alias",
"path": "admin/services/tor/tor-hs"
},
"depends": {
"acl": [
"luci-app-tor"
]
}
},
"admin/services/tor/tor-hs": {
"title": "Tor Onion Services",
"order": 20,
"action": {
"type": "view",
"path": "tor/tor-hs"
}
}
}

View File

@ -1,22 +0,0 @@
{
"luci-app-tor": {
"description": "Grant UCI access for luci-app-tor",
"read": {
"ubus": {
"tor_rpcd.sh": [
"list-hs"
]
},
"uci": [
"tor",
"tor-hs"
]
},
"write": {
"uci": [
"tor",
"tor-hs"
]
}
}
}

View File

@ -6,9 +6,10 @@
'require ui';
'require form';
'require uci';
'require network';
'require tools.widgets as widgets';
var Hosts, Remotehosts, Remoteinfo, Localinfo, Clients;
var Hosts, Remotehosts, Remoteinfo, Localinfo, Clients, WifiNetworks;
var dns_cache = [];
@ -326,7 +327,8 @@ return view.extend({
this.callGetRemotehosts().catch (function (){return null;}),
this.callGetRemoteinfo().catch (function (){return null;}),
this.callGetLocalinfo().catch (function (){return null;}),
this.callGetClients().catch (function (){return null;})
this.callGetClients().catch (function (){return null;}),
network.getWifiNetworks()
]);
},
@ -379,6 +381,7 @@ return view.extend({
Remoteinfo = data[3];
Localinfo = data[4];
Clients = data[5];
WifiNetworks = data[6];
s = m.section(form.TypedSection);
s.anonymous = true;
@ -607,6 +610,11 @@ return view.extend({
o.datatype = 'list(string)';
o = s.taboption('settings', form.DynamicList, 'ssid_list', _('SSID list'), _('List of SSIDs to enable steering on'));
WifiNetworks.forEach(function (wifiNetwork) {
if (wifiNetwork.getSSID() && (!o.keylist || o.keylist.indexOf(wifiNetwork.getSSID()) === -1)) {
o.value(wifiNetwork.getSSID())
}
});
o.optional = true;
o.datatype = 'list(string)';

View File

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2024-01-20 10:36+0000\n"
"PO-Revision-Date: 2024-02-02 12:51+0000\n"
"Last-Translator: Džiugas J <dziugas1959@hotmail.com>\n"
"Language-Team: Lithuanian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsxfrpc/lt/>\n"
@ -28,7 +28,7 @@ msgstr "Numatytai, ši reikšmė yra „0.0.0.0“."
#: applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js:97
msgid "By default, this value is \"Info\"."
msgstr "Numatytai, ši reikšmė yra „Informacija“."
msgstr "Numatytai, ši reikšmė yra „Info“."
#: applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js:129
msgid "By default, this value is \"tcp\"."
@ -88,7 +88,7 @@ msgstr "Jeigu „remote_port“ yra 0, tada „frps“ priskirs atsitiktinį pri
#: applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js:99
msgid "Info"
msgstr "Info"
msgstr "Informacija"
#: applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js:124
#: applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js:135

View File

@ -6,30 +6,30 @@ include $(TOPDIR)/rules.mk
ifeq ($(ARCH),aarch64)
PKG_ARCH_VERYSYNC:=arm64
PKG_HASH_VERYSYNC:=11f633790539f7b63253d6af886aff6ac831c07320163c2a500598ad9f42f941
PKG_HASH_VERYSYNC:=f4461b26fd4bd56043b1bbb8c3156265bad41a1c53ab3853eb18b241657c5532
else ifeq ($(ARCH),arm)
PKG_ARCH_VERYSYNC:=arm
PKG_HASH_VERYSYNC:=caf3438ead6ef58e9de201dbb94bd3dca718ca26255ea88252f33121bbeb8b63
PKG_HASH_VERYSYNC:=c3b7225594f09023c03ad8ded788c49c5ef0757cc4aaf50677a9c335da4f1512
else ifeq ($(ARCH),i386)
PKG_ARCH_VERYSYNC:=386
PKG_HASH_VERYSYNC:=10ef28459f9b8156ad11307b3eb37f08e5447621e2ec15832da250c7f7c1dca0
PKG_HASH_VERYSYNC:=1c5b3d8bb79dcda9f2688f4b431a5e2a2aa3898ad399a09f6901a68dc545c104
else ifeq ($(ARCH),mips)
PKG_ARCH_VERYSYNC:=mips
PKG_HASH_VERYSYNC:=2c1e81952fc62cde5b0f6bc5341d3f8ba81a59dd9e809cf499d3fad0adaf493e
PKG_HASH_VERYSYNC:=fb40b2231f8f6b8175384b88205ba47c07aab58c950f66f081c5453e7d439d73
else ifeq ($(ARCH),mipsel)
PKG_ARCH_VERYSYNC:=mipsle
PKG_HASH_VERYSYNC:=e28227af74f51da7b301350d8a44b8d6c36a587b7dbed52af255cef3ab0b05d9
PKG_HASH_VERYSYNC:=7b419af7e96522920e51f79a2d0dd26d67234ffeb7e1d739f11a129abf6eef62
else ifeq ($(ARCH),powerpc64)
PKG_ARCH_VERYSYNC:=ppc64
PKG_HASH_VERYSYNC:=6ec7b1df17cf7ed7257fe15e3d11b3bbf0ddb48241d48f9950b4133d9ff3e643
PKG_HASH_VERYSYNC:=9042eed13c00d3e35a3ac81b3a0f4738f8452ee14db7f7bcad4e058706447401
else ifeq ($(ARCH),x86_64)
PKG_ARCH_VERYSYNC:=amd64
PKG_HASH_VERYSYNC:=8a7d26e0839a7ab371be341e7ffe819423707734adda30d17a006a89ffe9a0a4
PKG_HASH_VERYSYNC:=ccd1c64e6f3bb96a71870b6881b391dc4b02f929180f2874856dfe588da21f14
endif
PKG_NAME:=verysync
PKG_VERSION:=2.16.0
PKG_RELEASE:=21
PKG_VERSION:=2.17.0
PKG_RELEASE:=22
PKG_SOURCE:=$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://dl.verysync.com/releases/v$(PKG_VERSION)/ \