Commit graph

103 commits

Author SHA1 Message Date
Hauke Mehrtens
139edfce8b themes: Call striptags() on hostname to prevent XSS
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>
(cherry picked from commit 5cbd79d7e3)
2021-06-09 20:53:15 +02:00
Liangbin Lian
ac0bcc2d10 luci-theme-material: fix wrong active state on common prefix node
Before fixed, if we have two nodes: 'services/ddns' and 'services/ddnsto',
click any one of they, will show they all actived.

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 97d50d2c6b)
2021-05-26 10:09:05 +03:00
Ansuel Smith
01cefed7f0
luci-theme-material: fix bigger button for combo-box
Combobox are bigger than any other button. Align the dimension to all the other buttons.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2020-10-30 21:34:10 +01:00
Oldřich Jedlička
b03a508c6c luci-theme-material: Fix section title padding.
After moving section title from `legend`, which was translated to `span`
with style `panel-title`, to `h3`, update also CSS style to match first
`h3` in `cbi-section`.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-10-25 12:11:24 +01:00
Hannu Nyman
258e74c1c3 themes: remove deprecated reference to enabling SSH
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-08-16 22:19:37 +03:00
Florian Eckert
0024609a00 luci-theme-material: fix Makefile file mod
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 12:44:03 +02:00
Florian Eckert
1b875a610f luci-theme-material: remove useless logging output
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-05-04 12:43:59 +02:00
Chen Minqiang
fc150636b9 luci-theme-*: set mediaurlbase if it is the first time to be installed
If we build multi-themes into firmware, each of them set itself
to be the default theme, what theme should it be?

To make it clear, we only set mediaurlbase if the theme is the
first time to be installed/built-in.

This resolve the issue that theme always change to somewhat default
after upgrading the firmware even with a config-keep-upgrade

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2020-04-03 21:44:28 +08:00
Jo-Philipp Wich
ccb7e4a4a7 themes: generalize indicator markup and styling
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-30 17:12:07 +02:00
Jo-Philipp Wich
5d7dc391d4 themes: ensure that data-page attribute is escaped
Fixes: #3757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-15 17:48:40 +01:00
Jo-Philipp Wich
0130e2b08c themes: render menu even when not logged in
Ref: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-25 23:28:24 +01:00
Florian Eckert
71743a7ef6 luci-theme-material: fix button position on modal save
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-21 09:21:55 +01:00
Florian Eckert
1c49bda198 luci-theme-material: fix apply dropdown color
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-01-20 14:11:53 +01:00
Jo-Philipp Wich
185b84bc9d
Merge pull request #3401 from MartB/modal-heightfixv2
luci-theme-*: remove modal max-height #3383 v2
2019-12-25 17:58:06 +01:00
Jo-Philipp Wich
92eecedc8a luci-theme-material: render menu on client side
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-16 18:07:17 +01:00
MartB
c6122af7ea luci-theme-*: remove modal max-height #3383 v2
Signed-off-by: MartB <mart.b@outlook.de>
2019-12-10 17:26:10 +01:00
Jo-Philipp Wich
277053a5e9 luci-theme-material: mobile style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-22 22:27:12 +02:00
Jo-Philipp Wich
5223c7c221 luci-theme-material: fix some severe styling issues
Add some CSS band aids to fix styling and positioning of hidden tab panes,
cbi maps in modal dialogs and nested cbi sections.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-22 19:33:34 +02:00
Martin Schiller
92069c1f74 luci-theme-material: show logo also on login page
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-08-29 14:17:33 +02:00
Jo-Philipp Wich
fda4ba598c luci-base: replace uci change pages with client side modal dialog
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-07 15:25:49 +02:00
Anton Kikin
5d26fec0bf Fix a overview page style issue for various themes
Fixed a overview page style issue with interface boxes for
bootstrap, material and rosy themes.

The issue only appears in the Chrome browser and lies in the
fact that the block with the device name and MAC address gets
out of the  interface block.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-06-28 19:04:22 +03:00
Martin Schiller
f9f71ba673 luci-theme-material: change string 'Loading...' to 'Collecting data...'
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-27 06:24:35 +02:00
Martin Schiller
e633934a4a luci-theme-material: make 'Loading...' text translatable
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2019-06-26 13:53:59 +02:00
Florian Eckert
1e138fdccf
Merge pull request #2746 from TDT-AG/pr/20190603-luci-theme-material
luci-theme-material: fix checkbox css StaticList view
2019-06-04 15:17:50 +02:00
Florian Eckert
74d2b24197 luci-theme-material: fix checkbox css StaticList view
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-06-04 15:16:54 +02:00
Jo-Philipp Wich
5fd071aadb themes: don't reset theme on package upgrades
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-06-03 16:49:10 +02:00
shunjou
7a2085a8e5 luci-theme-material: icons and other changes
* Remove excess font dependency
* Retain two glyphs as svg
* Store svg icons externally
* Add logout icon
* Replace spaces with tabs in script
* Various minor fixes

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-04-07 03:05:36 -04:00
shunjou
731a2d3a0f luci-theme-material: correct main menu color variable
* Also declare default color above as fallback

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-04-07 03:04:48 -04:00
Florian Eckert
e77430d8bb luci-theme-material: fix loading view on href
After opening an external hyperlink in a new browser tab, LuCI hangs in the
load screen. This commit will fix this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-02-27 14:03:56 +01:00
shunjou
6ab3771e9d luci-theme-material: fix firewall table style
Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-01-30 11:24:35 -05:00
shunjou
9375fbe86d luci-theme-material: various css changes
* Improve dropdown menu indicators
* Remove border on code
* Compensate for occasional log overflow
* Restrict webkit scrollbar style from mobile

Signed-off-by: Shun Jou <shunjou@gmail.com>
2019-01-29 18:46:47 -05:00
Florian Eckert
280c55b9ad luci-theme-material: make top level menu fontcolor configurable
If you change the color of the submenues then the colors of the toplevel
should also be changed into the same color.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-12-20 14:46:31 +01:00
Jo-Philipp Wich
5d90e704ef luci-theme-{freifunk-generic,material,rosy}: fixup tab CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-10 13:43:30 +01:00
shunjou
8732a186cb luci-theme-material: make header logo link to main overview
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-12-05 09:29:29 -05:00
shunjou
dba2462fe1 luci-theme-material: partial style overhaul
* Restore theme to near original style
* Properly declare variable fallbacks
* More consistent table and border styling
* Improve responsive design scaling
* Add static ripple effect to sidebar menu
* Style command output as terminal
* Comb coding style and widespread cleanup
* Various other improvements and fixes

Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-12-05 09:29:24 -05:00
shunjou
ba6f7b6d33 luci-theme-material: optimize brand logo
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-29 04:10:38 -05:00
shunjou
9603990cb1 luci-theme-material: remove obsolete header info
Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-29 04:10:18 -05:00
brv phoenix
6dac41a9b4 luci-theme-material: add the missing modal/progressbar rules.
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
2018-11-28 19:27:46 +08:00
Jo-Philipp Wich
4fe427ebcd
Merge pull request #2329 from TDT-AG/pr/20181123-luci-theme-material
luci-theme-material: add missing css cbi-section-error definitions
2018-11-27 23:46:08 +01:00
shunjou
168d80aaa7 luci-theme-material: add new favicon
Also remove logo.png as it is unused.

Signed-off-by: Shun Jou <shunjou@gmail.com>
2018-11-26 21:31:30 -05:00
Florian Eckert
57b8d305af luci-theme-material: add missing css cbi-section-error definitions
Add the missing error css class definitions.
Highlights the wrong inputs detected by the cbi validation function.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-23 13:17:41 +01:00
Jo-Philipp Wich
aea8c89c0c luci-theme-{freifunk-generic,material,openwrt}: z-index fixes
Ensure that open dropdowns cover active tooltips.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-14 20:46:04 +01:00
Jo-Philipp Wich
9b20f7ac52 luci-theme-material: add invalid input class
Fixes #1070.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:05:12 +01:00
Jo-Philipp Wich
7c78218339 luci-base, themes: rework dynlist and dropdown widgets
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:05:12 +01:00
Jo-Philipp Wich
7f613be500 luci-base, themes: add tooltip helpers & styles
Add the required JS and CSS infrastructure to support rich hover/focus
tooltips for element.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
Jo-Philipp Wich
21a151ac1a themes: load client side translations
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-11-05 11:01:45 +01:00
Stefan Weil
ec63339ae5 Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:38:20 +01:00
Simon Tretter
f46ad87750 luci-theme-material: Add main color variable
Signed-off-by: Simon Tretter <simon@mediaarchitectu.re>
2018-10-21 11:50:55 +08:00
Florian Eckert
8095ba5a2d luci-theme-material: fix css to show loading-img again
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-15 13:56:48 +02:00
Florian Eckert
0f8b5402a2 luci-theme-material: fix word wrap on german i18n for username
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-10-01 14:49:02 +02:00