summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material/luasrc
AgeCommit message (Collapse)Author
2021-10-05themes: warn if booted from initramfsPaul Spooren
Some devices offer a full LuCI interface from their recovery interface. As it's read-only it should only be used for installing sysupgrades and therefore warn users that no settings are saved. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-08-17luci-theme-material: add support for modmenuAnsuel Smith
Improve support for modmenu. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-08-11luci-theme-material: standardize menu and drop jqueryAnsuel Smith
- Drop jquery lib - Move to the new menu.js implementation - Rework css to mimic old js transition - Rework footer and header to new implementation Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-06-09themes: Call striptags() on hostname to prevent XSSHauke Mehrtens
This calls striptags() on the hostname to prevent any XSS over the hostname. This should fix CVE-2021-33425 as far as I understood it. If someone adds some Javascript into system.@system[0].hostname it would have been directly added to the page, this prevents the problem. This can only be exploited by someone being able to modify the uci configuration, normally a user with such privileges could also just modify the webpage. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-16themes: remove deprecated reference to enabling SSHHannu Nyman
Remove the reference to setting a password being linked to SSH capability. (SSH has been initially enabled since year 2015.) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-03-30themes: generalize indicator markup and stylingJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-15themes: ensure that data-page attribute is escapedJo-Philipp Wich
Fixes: #3757 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-25themes: render menu even when not logged inJo-Philipp Wich
Ref: #3563 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16luci-theme-material: render menu on client sideJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-29luci-theme-material: show logo also on login pageMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-07-07luci-base: replace uci change pages with client side modal dialogJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-06-27luci-theme-material: change string 'Loading...' to 'Collecting data...'Martin Schiller
It's better to reuse the already available and well translated string 'Collecting data...'. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-26luci-theme-material: make 'Loading...' text translatableMartin Schiller
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2018-12-05luci-theme-material: make header logo link to main overviewshunjou
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-29luci-theme-material: remove obsolete header infoshunjou
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-05themes: load client side translationsJo-Philipp Wich
Extend the theme headers to include the translation string scripts, allowing client side code to translate strings without server side support. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29themes: add data-page attribute to body elementsJo-Philipp Wich
This is useful to write page specific CSS rules. Also fix a missing space in the body CSS class name in the bootstrap theme while we're at it. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-27luci-theme-material: do not double escape menu titlesJo-Philipp Wich
Fixes #1410. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-26luci-theme-material: add logo brandFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de> Signed-off-by: Konrad Kreitmair <kreitmair.konrad@web.de>
2018-09-25luci-theme-material: fix whitspaces and change modeFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-19modules: Make luci-base sufficient to use luci appsDaniel F. Dickinson
Per the discussion in https://github.com/openwrt/luci/issues/869, make luci-base sufficient to login, logout, and review and apply or revert uci changes. This allows most luci-app-xxx to work without having luci-mod-admin-full installed. It has been tested with some apps and not luci-mod-admin-full, as well as with luci-mod-admin-full (to make sure the usual case doesn't break). Instead of creating a new module namespace (e.g. 'Base') we reduce the opportunities for breakage by having luci-base take over the 'shell' of the 'Administration' (admin/....) namespace. Since admin is assumed by all current building LuCI components (including Freifunk), this doesn't introduce the 'Administration' tab into any situation where it would not already be present (but includes it where it was before). We also add a "Component not installed" page to avoid fatal errors and backtrace when e.g. luci-mod-admin-full is not installed. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-08-13treewide: rework uci change displayJo-Philipp Wich
- Use native rpcd uci changes format instead of incompletely converting back and forth between the old and the new format - Rework uci changelog template to print the equivalent uci commands for the various changes - Rework theme headers to properly count the uncomitted changes - Rework theme CSS to properly style new changelog Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-07luci-theme-material: fix theme for applyreboot page changesAnsuel Smith
This rename style.css to casade.css (like the other themes) and fix the css to display the header even in the applyreboot page Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-07-09treewide: always include cbi.jsJo-Philipp Wich
Include cbi.js in the main header template like it is done for xhr.js and remove the page specific includes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31themes: unify no-password / no-javascript alert boxesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-26themes: fix CSS class of uci change indicatorJo-Philipp Wich
The previous commit incorrectly added a new class attribute without considering existing ones. Fixes 736d8fee4 ("themes: add common class to uci change indicator") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-26themes: add common class to uci change indicatorJo-Philipp Wich
Add a common CSS class name to the change indicator and modify the openwrt.org theme to hide it when no changes are present, similar to all other themes. This is needed for upcoming uci apply handling changes to be able to auto-hide the indicator without page reload after an apply. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-05treewide: improve handling of page redirections in uci change viewsJo-Philipp Wich
Instead of passing the full LuCI request url, pass the relative resolved request path instead and filter the received value through the lookup() dispatcher function to only allow paths to actual internal pages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-02fix some bug and sync some code from luci-theme-bootstraplutty
Signed-off-by: lutty <lutty@lutty.me>
2016-12-10luci-theme-material: remove link to distro repo from footerHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-26luci-theme-material: remove the double slash (//) from menu urlShuanglei Tao
Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
2016-02-18luci-theme-material: Rasterization CodeLutty Yang
Signed-off-by: Lutty Yang <lutty@wcan.in>
2016-02-18luci-theme-material: Decrease font and spacingLutty Yang
1) Decrease font and spacing 2) Synchronized to the LUCI version 99f5d4e Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23luci-theme-material: try find current position by using lua codeLutty Yang
thanks for jow Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-23luci-theme-material: Synchronized to the LUCI version f9e590aLutty Yang
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-10-13luci-theme-material: PR from Version 0.2.11Lutty Yang
Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-20luci-theme-material: add button select input themeLutty Yang
add button select input theme Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-19luci-theme-material: add some new features and fix some bugsLutty Yang
add footer and loading animation and auto focus switches compact Fonts Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-18luci-theme-material: fix some bugLutty Yang
fixed "logout" text theme error and "unsaved changes" page dislocation. Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-17Material is a clean HTML5 theme for LuCI. It is based on ↵Lutty Yang
luci-theme-bootstrap and MUI Signed-off-by: Lutty Yang <lutty@wcan.in>
2015-09-16init Material Design themeLutty Yang