Commit graph

14 commits

Author SHA1 Message Date
Ansuel Smith
e478875c6c
luci-app-ddns: rework with new ddns changes
This commit rework the app with the new ddns changes. DDns services are now stored in a dedicated list and the service specific data is stored in a dedicated json. This json can both preinstalled with a companion package or be downloaded on demand. The new app now check if the script is present and give a button to install it if not present in the system.
The app now will search for all the available service in the services directory and optionally if present will include in the list the service not installed from a static list. Special service that use a separate script (for example cloudflare-v4) will install directly in the services directory and will be included automatically.
The app now reset the ddns rule settings on service change.
Also rework the app to drop any global function and rework the function to use more default way to get data.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-02 14:30:20 +02:00
Florian Eckert
809d085ada luci-app-ddns: refactoring translation and source styling
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-06 15:23:09 +03:00
Florian Eckert
139c6a1481 luci-app-ddns: remove obsolete header
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-06 15:23:09 +03:00
Florian Eckert
1540db4a56 luci-app-ddns: remove unused variable declaration
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-06 15:23:09 +03:00
Florian Eckert
38ab29229a luci-app-ddns: add tabs section
The page was a bit confusing. By adding the tabs for information and
global settings, the page looks clearer.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-09-06 15:23:09 +03:00
Jo-Philipp Wich
f555ab56a8
Merge pull request #4380 from Ansuel/ddns-fix-pt2
luci-app-ddns: fix wrong service with custom selected
2020-08-23 18:32:38 +02:00
Ansuel Smith
8aac2a339a
luci-app-ddns: fix wrong service with custom selected
If custom service is selected, no service is actually set in the uci config.
Fallback to custom service if no service is detected in the config.

Fixes #4301

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-08-22 19:58:28 +02:00
Ansuel Smith
151ca6df55
luci-app-ddns: Fix broken Custom provider select #4150
Fix broken Custom provider selection in luci-app-ddns.
Fixes: #4150

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-06-10 22:11:59 +02:00
Jo-Philipp Wich
3c4bc228a1 treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03 10:00:06 +02:00
Ansuel Smith
03af89a24b luci-app-ddns: fix invalid markup
Fix invalid markup to be XHTML compliant in order to prevent exceptions
when opening DDNS pages with luci-theme-openwrt.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Ref: https://forum.openwrt.org/t/19-07-luci-app-ddns-broken/57596
Fixes: 34fa5122f ("luci-app-ddns: convert to client side implementatio")
[reword commit message, drop unrelated ui.js changes]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-15 00:31:38 +01:00
Anton Kikin
359b927d3a luci-app-ddns: fix update interval unit values in combobox
Value "hours" is used twice instead of "hours" and "days".

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2020-02-19 03:24:06 +03:00
MartB
0d53606908 luci-app-ddns: fix syntax error
unexpected token: punc ) caused by extra ,

Signed-off-by: MartB <mart.b@outlook.de>
2019-11-29 01:29:05 +01:00
Chen Minqiang
56ed870746 luci-app-ddns: use the correct widget Select
ip_network should be NetworkSelect
ip_interface/interface should be DeviceSelect

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2019-11-17 18:51:57 +08:00
Ansuel Smith
34fa5122f9
luci-app-ddns: convert to client side implementation
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-11-11 20:47:16 +01:00