Age | Commit message (Collapse) | Author |
|
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>
|
|
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
|
|
- Move CSS and JS code to external files
- Use responsive table markup
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Thanks to a recent commit, the translation files will now
have info about locations where the string is used. That
can help is deciding the correct translation, as all contexts
are more easily found.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Do not concatenate the yet undefined mtime variable to avoid a controller
error with backtrace.
Fixes: b3642f476 ("luci-app-nlbwmon: add proper file names for json and csv exports.")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Currently, the json and csv exports are just named `data` which is not
intuitive. This adds proper file name extensions using the
Content-disposition HTTP header.
Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
|
|
Signed-off-by: David Yang <mmyangfl@gmail.com>
|
|
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>
|
|
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
|
|
Signed-off-by: Vladimir <picfun@ya.ru>
|
|
Specific timing patterns sometimes caused the LuCI controller to prematurely
stop reading data, resulting in truncated JSON output.
Turn the nonblocking waitpid() call into a blocking call after the IO read
loop to avoid this issue.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-app-nlbwmon: Fix and update Simplified Chinese translation
|
|
Signed-off-by: Hsing-wang Liao <kuoruan@gmail.com>
|
|
This allows proper rendering in OpenWrt theme. Fixes #1284.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
|
|
luci-app-nlbwmon: Update Japanese translation
|
|
When displaying the most current accounting period, pass an empty timestamp
to the backend in order to query the current in-memory data instead of the
latest committed values.
This ensures that the dashboard always renders the most current data in its
default view.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Updated Japanese translations.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Make sure that placeholder pie charts are rendered, display a hint about
yet missing data in the tables and offer a link to force-commit ("Reload")
the data.
Also fix some mixed white space, an imbalanced dom operation and sync
translation template.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Added po templates and Japanese translation.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
|
|
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the
lightweight NetLink BandWidth Montor.
The nlbwmon daemon gathers per-host traffic statistics by querying netlink
accounting data. Due to this approach, the executable is very small and does
not rely on libpcap and CPU intensive raw sockets to monitor traffic.
Depends on PR https://github.com/openwrt/packages/pull/4646
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|