summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/luasrc
AgeCommit message (Collapse)Author
2020-04-14luci-mod-system: convert menu controller to declarative JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-23luci-mod-system: remove abbreviation from LED config menu itemHannu Nyman
Remove the abbreviation coding from the menu item, as it does nor work in menu and seems to prevent translation of the menu item. (This was the only menu item in LuCI that had abbr logic.) Reference to #3553 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2019-11-01luci-mod-system: use declarative dependencies in controllerJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07luci-app-advanced-reboot: import applyreboot template from luci-mod-systemJo-Philipp Wich
Since the advanced-reboot app is the sole remaining user of the applyreboot template, import it into this package to avoid the need for shipping it with the default installation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-10-07luci-mod-system: port reboot view to client side jsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-24luci-mod-system: reimplement flashops as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21luci-mod-system: remove unused controller actionsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-21luci-mod-system: remplement fstab settings as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-17luci-mod-system: remplement dropbear settings as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-16luci-mod-system: remplement password change as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-15luci-mod-system: reimplement SSH key mgmt as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12luci-mod-system: reimplent system/crontab as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-12luci-mod-system: reimplent system/startup as client side viewJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07luci-mod-system: use client side cbi forms for system and led configJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-01luci-mod-system: fix flash activity trigger nameMartin Schiller
The former name "Flashmemory write access" is wrong. The triggers also indicate read/erase access to the flash memories. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-28luci-mod-system: fix some led trigger name translationsMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-12luci-mod-system: prevent clearing rc.local on unrelated submit actionsJo-Philipp Wich
Fixes: #2760 Fixes: 1c09ee5e4 ("luci-mod-system: fix SimpleForm usage on file editing pages") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-06-05luci-mod-system: fix SimpleForm usage on file editing pagesJo-Philipp Wich
When a value identical to the stored one is submitted, the CBI framework will not emit an option write event and therfore not store the value in the form data dictionary passed to SimpleForm.handle(). This usage pattern usally works be accident for file editor views such as admin_system/crontab because \r\n windows style line endings are substituted with unix \n ones before writing the data, defeating the equality check in CBI. When a single line without trailing newline is submitted however, the CBI will not see a difference to the data stored in the file and clear out the value on subsequent saves. This commit alignes the logic used by various SimpleForm views to behave identically and predictable: - File data is handled in the SimpleForm.handle() callback - The forcewrite property is used to disable equality checks - Submission of an empty string empties the backing file Fixes: #2737 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-04-30Merge pull request #2620 from TDT-AG/pr/20190311-luci-mod-systemFlorian Eckert
luci-mod-system: add button to sync with ntp server
2019-04-24Merge pull request #2443 from TDT-AG/pr/20190109-luci-mod-system-passwordFlorian Eckert
luci-mod-system: add password strength info
2019-04-12luci-mod-system: add "KiB" to translatable stringsAnton Kikin
Also changed original "kiB" to "KiB" in accordance with IEEE 1541-2002. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-03-11luci-mod-system: add button to sync with ntp serverFlorian Eckert
Especially for systems without RTC this change has two advantages * manual time sync with time server during configuration * test possibility of the time sync over the configured servers Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-09luci-mod-system: add password strength infoFlorian Eckert
Show password strength info. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-09luci-mod-system: add pollinterval optionFlorian Eckert
Make pollinterval configurable. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20luci-base: use default poll intervalFlorian Eckert
Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-04luci-mod-system: add translation for trigger namesFlorian Eckert
Not every user knows which trigger does what. To make this clear, the triggers are now translated with a short help text. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-02luci-mod-system: fix IE10/Edge rendering quirk on SSH keys pageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-23luci-mod-system: sshkeys CSS tweakJo-Philipp Wich
Overflow pubkey preview to the left, not to the right. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-22luci-mod-system: move password and sshkey JS code into external filesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-mod-system: submit password change on enterJo-Philipp Wich
Allow to submit the password change form by pressing enter in the second input field. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-20luci-mod-system: restructure administration pagesJo-Philipp Wich
Split password, dropbear and SSH key configuration into separate pages in order to improve the form layout and to simplify the code. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-16luci-mod-system: fstab: fix table cell rendering without unmount buttonAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-11-15luci-mod-system: rename "Design" to "Theme"Angus Ding
This provides a more accurate description for the theme selection. Signed-off-by: Angus Ding <angus.ding@gmail.com> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: replace builtin opkg support with luci-app-opkgJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: use luci.sys.process.exec() in system controllerJo-Philipp Wich
Switch the system controller to the common luci.sys.process.exec() function and drop the local ltn12_popen() and fork_exec() helpers. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14luci-mod-system: prevent comment injection in mtdbackup endpointJo-Philipp Wich
Rework the parameter handling to both prevent a crash when no parameter is given and to prevent root command injection through the mtd index part of the parameter value. Fixes: 9840d310e ("modules: add backup module for mtdblock devices") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-12Merge pull request #2245 from Ansuel/fstabJo-Philipp Wich
luci-mod-system: add support for additional filesystem
2018-11-12luci-mod-system: add support for additional filesystemAnsuel Smith
The filesystem option doesn't include additional filesystem included with /etc/filesystems, this is usefull if someone have ntfs-3g installed and wants to force use the external utility to mount partition instead of the default present in the kernel (if it's supported) Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-11-12luci-mod-system: add user defined interface to netdev triggerFlorian Eckert
Give the user the possibility to define and interface for the netdev trigger which is not available at the moment. This is usefull if a interface is not presented on configuration time. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-02Merge pull request #2193 from rosysong/freespaceJo-Philipp Wich
luci-mod-system: add id for software/freespace div
2018-10-25luci-mod-system: fstab: "SWAP" section title is made translatableAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2018-10-11luci-mod-system: block install and search if no package listsyangfl
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-10treewide: Fix typos in commentsyangfl
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-01luci-mod-system: add zram optionsAnsuel Smith
This adds option to configure zram size and compression algo Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-09-30luci-mod-system: add id for software/freespace divRosy Song
Signed-off-by: Rosy Song <rosysong@rosinson.com>
2018-09-29luci-base: fix misleading warning message when adding SSH keysDirk Brenken
Prevent an incorrect / misleading "There are no changes to apply" message from popping up when adding a new SSH key to the text box. Fixes #2048. Signed-off-by: Dirk Brenken <dev@brenken.org> [reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29luci-mod-system: correct table cell rendering without umount buttonJo-Philipp Wich
Fixes #2173. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-19modules: Split luci-mod-fullDaniel F. Dickinson
Move some common elements to luci-base, and otherwise make three packages out of status, system, and network. They were mostly separated already, but there were some shared elements between status and network that are now in luci-base. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>