From 7ce43d20cb51ff0e002e5fda4267c876bd4a44ce Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Thu, 27 Apr 2023 13:35:54 +0200 Subject: luci-app-banip: more feed editor improvements * add upload safeguards * beautify JSON output * small translation fix Signed-off-by: Dirk Brenken --- applications/luci-app-banip/po/templates/banip.pot | 47 ++++++++++++---------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'applications/luci-app-banip/po/templates/banip.pot') diff --git a/applications/luci-app-banip/po/templates/banip.pot b/applications/luci-app-banip/po/templates/banip.pot index d552ff49e4..c2d19f819b 100644 --- a/applications/luci-app-banip/po/templates/banip.pot +++ b/applications/luci-app-banip/po/templates/banip.pot @@ -171,7 +171,7 @@ msgstr "" msgid "Changes on this tab needs a banIP service restart to take effect." msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:262 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:276 msgid "Clear Custom Feeds" msgstr "" @@ -188,6 +188,10 @@ msgstr "" msgid "Countries" msgstr "" +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:162 +msgid "Custom Feed Editor" +msgstr "" + #: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js:321 msgid "" "Deduplicate IP addresses across all active sets and and tidy up the local " @@ -202,7 +206,7 @@ msgstr "" msgid "Default Block Policy" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:203 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:217 msgid "Description" msgstr "" @@ -220,7 +224,7 @@ msgstr "" msgid "Don't check SSL server certificates during download." msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:235 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:249 msgid "Download Custom Feeds" msgstr "" @@ -280,8 +284,8 @@ msgstr "" msgid "Elements" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:169 -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:207 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:183 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:221 msgid "Empty field not allowed" msgstr "" @@ -309,7 +313,7 @@ msgstr "" msgid "Expiry time for auto added blocklist set members." msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:164 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:178 msgid "Feed Name" msgstr "" @@ -317,7 +321,7 @@ msgstr "" msgid "Feed Selection" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:253 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:267 msgid "Fill Custom Feeds" msgstr "" @@ -325,11 +329,11 @@ msgstr "" msgid "Firewall Log" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:212 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:226 msgid "Flag" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:219 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:233 msgid "Flag not supported" msgstr "" @@ -375,11 +379,11 @@ msgstr "" msgid "Information" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:172 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:186 msgid "Invalid characters" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:100 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:114 msgid "Invalid input values, unable to save modifications." msgstr "" @@ -557,8 +561,8 @@ msgstr "" msgid "Profile used by 'msmtp' for banIP notification E-Mails." msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:183 -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:196 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:197 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:210 msgid "Protocol/URL format not supported" msgstr "" @@ -601,11 +605,11 @@ msgstr "" msgid "Result" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:188 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:202 msgid "Rulev4" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:201 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:215 msgid "Rulev6" msgstr "" @@ -617,7 +621,7 @@ msgstr "" msgid "Run Information" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:271 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:285 msgid "Save Custom Feeds" msgstr "" @@ -798,11 +802,11 @@ msgstr "" msgid "Trigger action on ifup interface events." msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:177 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:191 msgid "URLv4" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:190 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:204 msgid "URLv6" msgstr "" @@ -811,11 +815,12 @@ msgstr "" msgid "Unable to save modifications: %s" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:244 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:258 msgid "Upload Custom Feeds" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:66 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:72 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:80 msgid "Upload of the custom feed file failed." msgstr "" @@ -845,7 +850,7 @@ msgstr "" msgid "WAN-Input Chain" msgstr "" -#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:148 +#: applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js:162 msgid "" "With this editor you can upload your local custom feed file or fill up an " "initial one (a 1:1 copy of the version shipped with the package). The file " -- cgit v1.2.3