Commit graph

397 commits

Author SHA1 Message Date
Jo-Philipp Wich
7a3f0dd6d4 treewide: fix "Unhandled token" errors with Lua CBI maps
The `data-type` attribute is used to bind datatype validators to a widget
while some templates used the same attribute to denote the name of the
underlying widget.

Change the `data-type` attributes referring to the widget name to
`data-widget` in order to stop the JS token error spam.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 13e9e3e9e8)
2019-11-16 18:28:39 +01:00
Anton Kikin
9c5162d596 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>
(backported from commit 5d26fec0bf)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-08 18:24:38 +02:00
Jo-Philipp Wich
7e9de0d25f themes: don't reset theme on package upgrades
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 5fd071aadb)
2019-06-03 16:53:02 +02:00
Jo-Philipp Wich
a11f4ac2eb treewide: rework uci change display
- 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

Fixes: #2170

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 849d153851)
2019-01-20 12:28:39 +01:00
Ansuel Smith
e0599d5064 luci-mod-admin-full: fix broken applyreboot page
This improve applyreboot page and fix problem with luci-nginx that doesn't refresh the page when the router reboot.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 327e284b74)
2018-08-16 10:52:14 +02:00
Ansuel Smith
f9121fd86c luci-theme-material: fix theme for applyreboot page changes
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>
(cherry picked from commit 35da63fa9a)
2018-08-16 10:52:09 +02:00
Jo-Philipp Wich
5ec72617ee luci-theme-bootstrap: fix CSS regression in kernel/system log pages
An unrelated removed some crucial fixes due to improper rebasing.

Fixes: 7ba4eb1a4 ("luci-theme-bootstrap: add styling for input-adjacent buttons")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 176e246998)
2018-07-31 17:26:48 +02:00
Jo-Philipp Wich
6df9a57ef0 luci-theme-openwrt: style tweaks for DSL status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6d74a82bf6)
2018-07-29 21:12:59 +02:00
Jo-Philipp Wich
c26709a850 luci-theme-bootstrap: style tweak for DSL status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 765816d07d)
2018-07-29 21:12:59 +02:00
Jo-Philipp Wich
867fcff8bb luci-theme-openwrt: fix button placement quirk
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit efc1a5261a)
2018-07-26 20:31:05 +02:00
Jo-Philipp Wich
97e647bb25 luci-theme-bootstrap: add styling for input-adjacent buttons
Also add styling for CBI column title references.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7ba4eb1a42)
2018-07-26 20:30:44 +02:00
Jo-Philipp Wich
b8a0b617ad luci-theme-openwrt: add styling for input-adjacent buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2287e79a5c)
2018-07-26 20:30:44 +02:00
Jo-Philipp Wich
024fa3cf30 luci-theme-openwrt: support rendering tblsection cell descriptions
Add support for rendering the "data-description" attribute when rendering
decomposed tables for small screen resolutions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e3f76c255a)
2018-07-26 20:28:36 +02:00
Jo-Philipp Wich
91238dccc7 luci-theme-bootstrap: allow pointer events on readonly textareas and dropdowns
This is required to scroll and select text.

Fixes #1965
Fixes 887d0a685 ("luci-theme-bootstrap: cleanup CSS")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

(cherry picked from commit a68006245d)
2018-07-20 08:01:04 +02:00
Jo-Philipp Wich
5d4c365f13 luci-theme-openwrt: fix another instance of misplaced page action button
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 369553cd14)
2018-07-20 08:00:49 +02:00
Jo-Philipp Wich
5ea795a4b8 luci-theme-openwrt: fixes for page action button placement
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 68dae07225)
2018-07-20 07:56:53 +02:00
Jo-Philipp Wich
fbc02d33a3 luci-theme-bootstrap: various fixes
- Styling fixes for table hover rows, striping and title row coloring
- Fixes for page action button placement

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 29f542fa62)
2018-07-20 07:56:50 +02:00
Jo-Philipp Wich
8a7cd70d4d luci-theme-bootstrap: small style fix for link buttons
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-15 17:35:28 +02:00
Jo-Philipp Wich
053682c4c3 luci-theme-bootstrap: margin fix for multiple wifs on status overview
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 16:31:14 +02:00
Jo-Philipp Wich
4381a27ef0 luci-theme-material: table and button style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 12:39:26 +02:00
Jo-Philipp Wich
58cee79869 luci-theme-openwrt: cleanup CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 09:38:31 +02:00
Jo-Philipp Wich
887d0a6859 luci-theme-bootstrap: cleanup CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-13 09:38:25 +02:00
Jo-Philipp Wich
a0e5e8a9da luci-theme-bootstrap: compress color names, fix table striping
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:57:20 +02:00
Jo-Philipp Wich
0d96655f8b luci-theme-openwrt: consolidate font sizes and button styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:10 +02:00
Jo-Philipp Wich
9651be2953 luci-theme-material: table layout fixes and minor CSS corrections
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
690f3f13ac luci-theme-bootstrap: add CSS fixes for IE 11
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
bf084f7f95 luci-theme-openwrt: add CSS fixes for IE 11
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00
Jo-Philipp Wich
c0de036b31 treewide: always include cbi.js
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-07-09 11:51:43 +02:00
Jo-Philipp Wich
e8a9a6695e luci-theme-bootstrap: minor style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-03 18:49:00 +02:00
Jo-Philipp Wich
04e483d16a luci-theme-openwrt: minor mobile style fixes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-02 09:23:56 +02:00
Jo-Philipp Wich
2ee1873acc luci-theme-openwrt: add further style tweaks
- slightly increase button color saturation
 - unify margins and paddings

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-02 08:46:26 +02:00
Jo-Philipp Wich
532846c3d8 luci-theme-bootstrap: fix input width in table cells
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-29 08:57:22 +02:00
Jo-Philipp Wich
167d371305 luci-theme-material: fix switch status display
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 22:00:01 +02:00
Jo-Philipp Wich
2efcc53f2e luci-theme-openwrt: add some compatibility styles
Add a few CSS rules and general tweaks improving the look of legacy markup.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 14:59:37 +02:00
Jo-Philipp Wich
c32097d7d5 luci-theme-freifunk-generic: fix & modernize
Align theme with current markup, port missing CSS directives from OpenWrt
theme and drop a few outdated resources.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-26 14:31:39 +02:00
Jo-Philipp Wich
211d8bc55e luci-theme-bootstrap: render tblsection row titles
The Bootstrap theme lacked appropriate CSS yet to render section title
attributes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-25 09:52:29 +02:00
Jo-Philipp Wich
e3d02b1a49 luci-theme-bootstrap: remove unused styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-25 09:42:10 +02:00
Jo-Philipp Wich
c4e25bebfc luci-theme-material: align CSS with markup changes
Add the bare minimum of changes to make the theme render correctly with the
latest markup, requires further refinement and tuning in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:37 +02:00
Jo-Philipp Wich
b453624dce luci-theme-bootstrap: align CSS with markup changes
Add changes to make the theme render correctly with the latest markup,
requires further refinement and tuning in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:31 +02:00
Jo-Philipp Wich
f714f684fa luci-theme-openwrt: rework and polish OpenWrt theme
- polish styling
 - move main menu to the left for large resolutions and collapse into
   dropdown header bar for small mobile resolutions
 - make tables responsive by utilizing extra attributes to turn rows
   into wrappable flexboxes for low resolutions
 - mostly get rid of button icon references and use a uniform color
   scheme for action-, positive, negative and neutral buttons

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-23 17:59:09 +02:00
Jo-Philipp Wich
9d48490729 luci-base: add markup, JS and CSS for new dropdown
This commit introduces the required code for a new, markup based dropdown
widget which can be used as a styleable alternative to select boxes or
radio/checkbox button groups.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-08 08:14:36 +02:00
Jo-Philipp Wich
fed315a5e3 themes: drop errorbox styles
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 19:09:51 +02:00
Jo-Philipp Wich
e3bc12da6d themes: unify no-password / no-javascript alert boxes
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 18:57:32 +02:00
Jo-Philipp Wich
79d793dffe themes: adjust CSS for reworked apply widget
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-31 15:38:42 +02:00
Jo-Philipp Wich
879f90d15c luci-theme-material: add new style classes
Add new style classes required for status page changes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
7875d92c42 luci-theme-bootstrap: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility script and vendor prefixed properties.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
f8221b9825 luci-theme-openwrt: add new style classes
Add new style classes required for status page changes, also drop old
Internet Explorer compatibility CSS.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-30 14:59:24 +02:00
Jo-Philipp Wich
5e37b724c4
Merge pull request #1827 from Ansuel/luci-map
luci-theme-material: upgrade jquery
2018-05-28 15:19:30 +02:00
Jo-Philipp Wich
97a640c836 themes: add forward-compatibility CSS
Subsequent changes will largely replace tables with div based markup, so
add forward compatibility style rules to keep the rendering intact.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-28 15:18:45 +02:00
Ansuel Smith
2f0c07a2c7
luci-theme-material: upgrade jquery
This upgrade jquery to latest version and solve 404 error for the useless .map file. Also it's 85kb instead of 97kb

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-05-26 18:58:45 +02:00