summaryrefslogtreecommitdiff
path: root/modules/luci-mod-system/htdocs/luci-static
Commit message (Collapse)AuthorAgeFilesLines
* luci-mod-system: use new "rc" ubus object for init.d scriptsRafał Miłecki2023-12-302-24/+23
| | | | | | | | | | Convert startup.js and system.js to use the generic ubus rc method to handle /etc/init.d/ scripts for enable/disable/start/restart/reload/stop operation. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> [ reword commit description, convert system.js ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* luci-mod-system: Remove unused unspecified optionSergey Ponomarev2023-08-311-1/+0
| | | | Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
* luci-mod-system: grammar fixesPaul Dee2023-08-111-1/+1
| | | | | | | | Login (n) -> Log (v) in Logout (n) -> Log (v) out Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
* luci-mod-system: uhttpd.js: remove flag option overridesJo-Philipp Wich2023-04-281-3/+0
| | | | | | | Use standard 0/1 values for the `redirect_https` option. Supersedes: #6332 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: fix potential stored XSSJo-Philipp Wich2023-01-131-1/+1
| | | | | | Make sure to escape the key contents in the delete confirmation dialog. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: allow ecdsa-sk and ed25519-sk key typesEric McDonald2022-09-211-1/+7
| | | | | | | | | | | | | Allow adding ecdsa-sk and ed25519-sk SSH keys in LuCI These key types can be generated via the -t flag in ssh-keygen and are supported in recent versions of dropbear. As ssh-keygen ignores the -b flag when generating ecdsa-sk and ed25519-sk keys, the curve field in the objects returned by the decode function is set to fixed strings for both ecdsa-sk and ed25519-sk public key strings. This is in contrast to ecdsa keys for which various curves can be provided (e.g., NIST P-256, NIST P-384, and NIST P-521). Signed-off-by: Eric McDonald <ericmcdonald@protonmail.com>
* luci-mod-system: sshkeys.js: prevent XSS through pubkey commentsJo-Philipp Wich2022-09-211-1/+1
| | | | | | | | Ensure to not display public key comments verbatim in order to prevent injection of markup. Reported-by: Eric McDonald <ericmcdonald@protonmail.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: add config option to invert heartbeat triggerFlorian Eckert2022-08-051-1/+10
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Merge pull request #5765 from TDT-AG/pr/20220412-luci-mod-systemFlorian Eckert2022-08-031-0/+1
|\ | | | | luci-mod-system: mount sections are always mounted unless they are explicitly not mounted
| * luci-mod-system: mount sections are always mounted unless they are ↵Florian Eckert2022-04-121-0/+1
| | | | | | | | | | | | | | | | explicitly not mounted fixes #4862 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | luci-mod-system: add interface selection for NTPDAlexey Dobrovolsky2022-05-061-0/+10
| | | | | | | | | | | | | | | | | | | | UCI option `interface` for sysntpd server was introduced in OpenWrt commit 4da60500ebd2. NTP server binds to the specified interface, or if unspecified, to all. This patch adds selection widget to LuCI. Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com>
* | luci-mod-system: enforce availability of english as language choiceJo-Philipp Wich2022-04-271-2/+3
| | | | | | | | | | | | | | | | Always offer english, regardless of whether a dummy language pack for it is installed or not. Fixes: #5783 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-system: Set description to blank if the trigger has noneFlorian Eckert2022-04-121-1/+1
| | | | | | | | | | | | | | | | In this case the cbi description div will not be generated and when switching to another trigger later, attempts to change the description div contents will fail. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | Revert "luci-mod-system: Set description to blank if the trigger has none"Florian Eckert2022-04-121-1/+1
|/ | | | | | | | This reverts commit 3de544600385ca365c833aec99f89113daa12292. I have unfortunately edited the wrong line! Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-mod-system: Set description to blank if the trigger has noneFlorian Eckert2022-04-121-1/+1
| | | | | | | | In this case the cbi description div will not be generated and when switching to another trigger later, attempts to change the description div contents will fail. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-mod-system: mention ED25519 keysJo-Philipp Wich2022-01-191-1/+1
| | | | | | | Also update translations source strings accordingly. Fixes: #5649 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: add missing require to `none` led trigger classJo-Philipp Wich2021-10-315-10/+6
| | | | | | | | Also convert ES6 to ES5 syntax while we're at it. Fixes: #5476 Fixes: 5b42cd5b46 ("luci-mod-system: move default option from defaul-on trigger to none trigger") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* Merge pull request #5328 from TDT-AG/pr/20210903-luci-mod-systemFlorian Eckert2021-10-286-17/+46
|\ | | | | luci-mod-system: add led-trigger description
| * luci-mod-system: move default option from defaul-on trigger to none triggerFlorian Eckert2021-10-282-10/+10
| | | | | | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
| * luci-mod-system: add led-trigger descriptionFlorian Eckert2021-10-276-5/+30
| | | | | | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
| * luci-mod-system: add help text to the led-trigger timerFlorian Eckert2021-09-031-2/+6
| | | | | | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | luci-mod-system: fix time display logicJo-Philipp Wich2021-10-191-5/+18
| | | | | | | | | | | | | | | | | | Use the system/info ubus call to obtain a TZ adjusted epoch value and format the date time string manually instead of relying on the browsers local representation. Fixes: #5454 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | luci-mod-system: allow configuration of HTTPS redirectionPetr Štetiar2021-09-281-0/+22
| | | | | | | | | | | | | | Add a posibility for easy configuration of HTTPS redirection in uHTTPd. References: https://lists.infradead.org/pipermail/openwrt-devel/2020-December/032718.html Signed-off-by: Petr Štetiar <ynezz@true.cz>
* | fix wrong ed25519 informationRosen Penev2021-09-201-1/+1
|/ | | | | | ECDH is not used for the ed25519. The scheme is called EdDSA. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* luci-mod-system: hide unsupported option on flash.jsAnsuel Smith2021-08-181-5/+7
| | | | | | Hide unsupported option when /rom is not used in flash.js Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* system: more text lines for crontabFritz D. Ansel2021-08-111-1/+1
| | | | | | 10 lines are very few and there is much unused space Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
* luci-mod-system: improve sysupgrade pageAnsuel Smith2021-08-051-26/+54
| | | | | | | | | | - Add missing -k and -u option from sysupgrade page. - Fix missing check for image verification exit code - Provide the actual reason of the image verification Fixes: #4160 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* luci-mod-system: reload crond upon saving crontabJo-Philipp Wich2021-07-151-3/+3
| | | | | Fixes: #5184 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: remove bogus btn class in flash.jsDirk Brenken2021-04-151-5/+3
| | | | | | * fixes #4970 * sync translations Signed-off-by: Dirk Brenken <dev@brenken.org>
* luci-mod-system: implement system.description, system.notesHenrique de Moraes Holschuh2021-04-061-0/+7
| | | | | | | | | | | | | | | | Implement two new text "options" for UCI system config, intended to help humans describe the device. "system.description" is a short, single-line description suitable for selector UIs in remote administration applications, or remote UCI (over ubus RPC), etc. It would also be suitable as a default for LLDP/SNMP "system description". "system.notes" is a multi-line, free-form text field that can be used in any way the user wishes, e.g. to hold installation notes, or unit serial number and inventory number, location, etc. Signed-off-by: Henrique de Moraes Holschuh <henrique@nic.br>
* luci-mod-system/zram: remove zram_comp_streamsRui Salvaterra2021-03-141-5/+0
| | | | | | | | Zram uses per-CPU compression streams [1]. This is a no-op. [1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=116191eddf9d8ddba61de788824dea442b265936 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* luci-mod-system/zram: replace deflate with zstdRui Salvaterra2021-03-141-1/+1
| | | | | | | | | | | Deflate is just too slow for zram. Replace it with zstd, which is much faster at similar compression ratios. As a side note, this is an ugly hack. We're hard-coding compression algorithms which might not be available in the system. The availability should be parsed from /sys/block/zram0/comp_algorithm. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* luci-base: correct button name on flash page help textHannu Nyman2021-01-121-1/+1
| | | | | | | | | Correct the help text in the flash page to match the current buttons. 'Continue' instead of "Proceed". Adjust translations. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* luci-mod-system: fix parsing SSH pubkeys with optionsJo-Philipp Wich2020-12-231-38/+47
| | | | | | | Also eliminate some duplicate code while we're at it. Fixes: #4684 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: transition div tables to actual table markupJo-Philipp Wich2020-11-272-12/+12
| | | | | | | | | Modern browsers allow decomposing table markup equally well as nested div constructs, therefor migrate our <div> table markup to actual <table> tags but keep the old table/tr/th/td CSS classes for now to allow for a smooth theme transition. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: fix uci led option remove callbackFlorian Eckert2020-10-061-0/+26
| | | | | | fixes #4478 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-mod-system: use ubus method for rebootRafał Miłecki2020-09-101-4/+10
| | | | | | | It's more generic & convenient than hardcoding /sbin/reboot executable path. procd provides "reboot" method since 2016. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* luci-mod-system: ignore empty /proc/mtd on flash pageJo-Philipp Wich2020-07-221-6/+11
| | | | | | | A present, but empty /proc/mtd causes validation on the flash page to fail, preventing any other operation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: fix button disabled statusHuangbin Zhan2020-05-131-1/+1
| | | | Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* luci-mod-system: update LED trigger translationsFlorian Eckert2020-05-045-5/+5
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-mod-system: password.js: make event handler attachment more robustJo-Philipp Wich2020-05-021-1/+1
| | | | | | | Do not expect a specific markup structure but use querySelector() to locate the input element. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: system.js: disable timesync buttons on readonly mapJo-Philipp Wich2020-04-161-2/+4
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: startup.js: disable action buttons on insufficient ACLsJo-Philipp Wich2020-04-161-6/+10
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: sshkeys.js: make readonly on insufficient ACLsJo-Philipp Wich2020-04-161-5/+14
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: password.js: make readonly on insufficient ACLsJo-Philipp Wich2020-04-161-0/+2
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: mounts.js: disable umount button in readonly mapJo-Philipp Wich2020-04-161-1/+2
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: flash.js: make readonly on insufficient ACLsJo-Philipp Wich2020-04-161-1/+5
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: crontab.js: disable textarea on insufficient ACLsJo-Philipp Wich2020-04-161-1/+3
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: import utility classes explicitlyJo-Philipp Wich2020-04-0315-19/+37
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-system: system.js: rework local time widget markupJo-Philipp Wich2020-03-231-22/+22
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>