Commit Graph

1694 Commits

Author SHA1 Message Date
Martin Schröder
5a36c9a7a9 Cleanup
Signed-off-by: Martin Schröder <mkschreder.uk@gmail.com>
2021-04-20 13:58:58 +02:00
Martin K. Schröder
442cd87fb3
Update readme 2020-03-20 08:40:59 +01:00
Martin K. Schröder
94f903156f
Merge pull request #86 from bittner/patch-1
Fix repository URLs
2018-08-08 23:25:59 +02:00
Peter Bittner
7f149f9dd5
Fix repository URL 2018-08-08 17:59:31 +02:00
Martin Schröder
b78a663256 fix a few minor bugs 2017-07-15 18:38:38 +02:00
Martin K. Schröder
592e32a1bd Merge pull request #74 from p4u/master
Delete not used luci redirect files.
2017-02-20 23:43:24 +01:00
Pau Escrich
41e5261931 Delete not used luci redirect files.
Signed-off-by: Pau Escrich <p4u@dabax.net>
2017-02-20 04:20:45 +01:00
Martin Schröder
9d07c63b2d update readme 2016-12-19 15:37:14 +01:00
Martin Schröder
69147ab17f final cleanup of uci code. Coverage 99.11%
- remove the "custom validators" function because it horribly breaks incapsulation. Also you can add your own validators to section type ".validators" list. However this is highly discouraged.
- remove a few redundant error checks that never run
2016-12-19 14:31:00 +01:00
Martin Schröder
8e31c2716d add logout timeout
- default is 60 seconds
- changed in config /etc/config/juci section juci option logout_timeout
2016-12-19 12:54:28 +01:00
Martin Schröder
1113149fe6 fix a small issue with navigating between pages and keeping changes. 2016-12-19 12:42:55 +01:00
Martin Schröder
69cfe32343 merge 09 branch and update unit tests 2016-12-19 12:17:22 +01:00
Martin Schröder
b8cf804d16 Merge branch 'v2.16.09' into v2.16.12
Conflicts:
	juci/src/js/uci.js
2016-12-19 12:08:42 +01:00
Martin Schröder
33a2f3edc7 minor cleanup. Coverage 94.57 2016-12-19 11:57:57 +01:00
Martin Schröder
4f17f2ed69 make sure that if a newly added section is added it does not end up in the deleted list 2016-12-19 11:45:07 +01:00
Martin Schröder
cc159da963 fix up support for reverting changes, update unit test and update changes dialog. 2016-12-19 11:40:36 +01:00
Martin Schröder
8818468a99 add test for error paths and make sure we always use scope RPC variable instead of caching local. Coverage at 93.7% 2016-12-17 21:26:56 +01:00
Martin Schröder
27bfe8d4ae fix several issues and raise coverage to 91% 2016-12-17 02:05:25 +01:00
Martin Schröder
d4de6449d2 working add/delete and more tests. Coverage 84.58%. 2016-12-17 00:49:51 +01:00
Martin Schröder
c7d3573c29 minor cleanup and add unit tests for add/delete 2016-12-16 16:39:39 +01:00
Martin Schröder
18fddcc967 fix several more issues in the uci code. Coverage at 76.24%. 2016-12-16 15:56:16 +01:00
Martin Schröder
affdcc9785 add more unit tests to uci (coverage at 71%) 2016-12-15 12:44:13 +01:00
Martin Schröder
ba7c7a2b5b continue adding unit tests for uci 2016-12-15 03:05:07 +01:00
Martin Schröder
a7234b93bf add unit test for uci.js 2016-12-13 14:16:20 +01:00
Martin Schröder
349cbbe3fe fix stupid typo 2016-11-10 13:43:09 +01:00
Martin Schröder
753b48b08e uci: fix $reload method for configs so that we create missing sections 2016-11-10 08:00:23 +01:00
Martin Schröder
073208004f uci: disable automatic section pruning for sections that "do not fit" into what juci considers to be valid. (it was brutal. We don't want to nuke sections in this way actually.)
- this fixes issue with static routes disappearing when interacting with ui
  from two different browsers.
- possible side effects: if invalid data is received from the modem and does
  not validate in juci, we MAY experience cryptic errors. Will have to wait and
  see if this is ever an issue and create a solution for it if it proves to be
  annoying.
2016-10-26 13:40:29 +02:00
Martin Schröder
4498ebb5b2 juci-login: remove unwanted spaces and change invalid password message to "valid" instead of "correct" as it is more standardized formulation. 2016-10-26 13:25:24 +02:00
Martin Schröder
993f468f91 enable config reload on page enter (but only for values that user did not change).
- this is good for config changes outside of the ui. It kindof takes care of what the user would expect.
2016-10-26 13:11:28 +02:00
Martin Schröder
225f622261 add placeholder ipfilter and macfilter pages 2016-10-21 09:42:19 +02:00
Martin Schröder
9b522c71ef add placeholder factory reset page 2016-10-21 09:42:05 +02:00
Martin Schröder
e943d4d834 another attempt at cleaning up IP validators. Hopefully I did not break anything.
- NOTE: requires a full round of testing.
2016-10-18 11:39:06 +02:00
Martin Schröder
9021c52c9a juci-network-netifd: add possibility to optionally ping clients before returning them by supplying "ping":true parameter to /juci/network.clients 2016-10-15 11:46:20 +02:00
Martin Schröder
284ef14400 juci-network-netifd: add possibility to optionally ping clients before returning them by supplying "ping":true parameter to /juci/network.clients 2016-10-15 11:45:26 +02:00
Martin Schröder
4d1ba5e561 cleanup and update bootstrap.sh and ubuntu-bootstrap.sh 2016-10-12 13:24:30 +02:00
Martin Schröder
312b33684d replace $events with $rpc.$on_event in a few more places 2016-10-11 16:42:59 +02:00
Martin Schröder
c47dde990d Merge branch 'v2.16.09' 2016-10-11 15:37:19 +02:00
Martin Schröder
1f04353359 remove juci-event plugin that was polling events and add proper async events using $rpc.$on_event(wildcard, function)
- events can be triggered using orangerpcd-client broadcast <name> {..data..} shell command
- when you subscribe to an event you can specify a wildcard (my* will match anything starting with my like myevent)
- event listeners are cleared on each page load so it is ok to add events inside any controller
2016-10-11 15:27:45 +02:00
Martin Schröder
d5d3d2b853 openwrt wireless: fix ssid validation so we can have 32 chars ssid 2016-10-10 13:03:03 +02:00
Martin Schröder
78fdf26095 disallow 255 completely 2016-10-10 12:36:28 +02:00
Martin Schröder
91a564a38a add 255.255.255.255 to list of invalid ip addresses 2016-10-10 12:34:19 +02:00
Martin Schröder
9b092065af fix validation of IP addresses. (ref 326) 2016-10-10 12:32:20 +02:00
Martin Schröder
5cfccc38ed juci-mod-system: fix ntp settings page npt servers list so that we can add new entries if list is empty and filter out duplicate ntp servers before writing them to the database 2016-10-10 11:42:43 +02:00
Martin Schröder
f91a1c60ac minor sysupgrade fixup 2016-10-06 09:14:02 +02:00
Martin Schröder
66f4e708a6 add static route validation on host field so that we do not allow duplicates 2016-10-05 00:32:19 +02:00
Martin Schröder
1b5acad479 juci-network-netifd: fix layout 2016-10-05 00:24:17 +02:00
Martin Schröder
a1265f5839 juci-network-netifd: static route metric can not be negative. 2016-10-05 00:19:34 +02:00
Martin Schröder
ad1a581190 juci-system: add an extra check for configuration backup when user loads it to catch a case where he tries to load an invalid file.
- default to telling user to provide correct password when we detect that gzip archive is not valid
2016-10-05 00:14:50 +02:00
Martin Schröder
ce205dfc78 add ip address validation on the log ip address for event log 2016-10-05 00:06:27 +02:00
Martin Schröder
3697ef6b29 juci-dnsmasq-dhcp: add unique constraint to duid and hostid on dhcp static host entries 2016-10-04 23:43:15 +02:00