Commit graph

16 commits

Author SHA1 Message Date
Anton Kikin
fb52e86b54 luci-app-nlbwmon: Add translation context for Download/Upload terms
Added a translation context for the terms 'Download' and 'Upload'
used in this application. The reason is that these terms are
translated differently in Russian depending on the context.

If the terms are used in the sense of an action (download file
or upload file) then the translations should be as follows:
- Download = скачать
- Upload   = загрузить

But if they are used in the context of a traffic counter (like
in this application) the correct translations are:
- Download = скачано
- Upload   = загружено

A translation context has been added to all affected PO files
to avoid breaking existing translations. The Russian translation
in PO file is fixed to comply with the used context.

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2021-07-02 04:45:23 +03:00
Florian Eckert
a7be13ff05 luci-app-nlbwmon: showe force reload button even if data are available
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 15:06:12 +02:00
Florian Eckert
04c4499be7 luci-app-nlbwmon: adjused the display export page
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:50:40 +02:00
Florian Eckert
d6443a6293 luci-app-nlbwmon: change force reload html element to button
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:26:24 +02:00
Florian Eckert
6f6ec9f56c luci-app-nlbwmon: add missing cbi-button class for database backup
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 12:24:43 +02:00
Florian Eckert
7a36518329 luci-app-nlbwmon: fix url
When moving this application to the service section, the links were
forgotten to be changed.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-06-17 08:14:47 +02:00
Jo-Philipp Wich
77d6b28935 luci-app-nlbwmon: fix traffic numbers display in pie chart tooltips
The pie chart tooltips used base 1000 to format traffic numbers while table
cell values were formatted using base 1024. Use base 1024 for both to report
the same values.

Fixes: #4759
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-01 10:27:30 +01:00
Jo-Philipp Wich
03c77dafe3 treewide: transition div tables to actual table markup
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>
2020-11-27 21:36:40 +01:00
Jo-Philipp Wich
cd69c118ad luci-app-nlbwmon: gracefully handle failing oui db download
Fixes: #3980
Fixes: fdce990b9 ("luci-app-nlbwmon: convert to client side JS")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-05-02 23:55:06 +02:00
Jo-Philipp Wich
fdce990b90 luci-app-nlbwmon: convert to client side JS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-20 19:05:27 +02:00
Jo-Philipp Wich
af6fd6dfab luci-app-nlbwmon: use legacy L.dom attribute
Until it is converted to a proper view, we need to use the legacy alias.

Fixes: #3835
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-04 12:01:33 +02:00
Jo-Philipp Wich
3c4bc228a1 treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03 10:00:06 +02:00
Jo-Philipp Wich
6efaea2ffb luci-app-nlbw: simplify table CSS
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-25 12:48:11 +01:00
Jo-Philipp Wich
bd56c1aac6 luci-app-nlbwmon: Fixed incorrect period parameter/display
Switch from using the unreliable string data constructor syntax to
a more explicit year / month / day variant and pass through the
period value as-is in order to ensure that the proper start date
is requested from the backend.

This should fix issues with prevent the display of older data
periods in the nlbwmon gui.

Ref: https://github.com/jow-/nlbwmon/issues/25
Ref: https://github.com/openwrt/luci/pull/2496
Suggested-by: Aktanusa <chanam.geo@yahoo.com>
[squashed commits, add a more thorough commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-02-15 11:57:28 +01:00
Jo-Philipp Wich
1fb069f235 luci-app-nlbwmon: rewrite display section
- Move CSS and JS code to external files
 - Use responsive table markup

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-12-11 11:54:42 +01:00
Jo-Philipp Wich
f7a9c713e5 luci-app-nlbwmon: add missing charting library
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-31 11:11:21 +02:00