Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Make selection toggle buttons lighterArthur de Jong2023-09-091-3/+3
| | | | For consistency with the other buttons.
* Have double click on legend only show that traceArthur de Jong2023-07-301-0/+19
|
* Add buttons to toggle selection of values in graphArthur de Jong2023-07-292-4/+67
| | | | | | | | | | This adds "Select all", "Toggle selection" and "Select none" buttons to the legend to allow bulk enabling and disabling individual metrics in graphs. This also switches to using Plotly.newPlot() over Plotly.redraw() (or Plotly.react()) because Plotly has some issues if all traces are removed from a graph and later re-added.
* Show correct order of plots in legendArthur de Jong2023-07-091-1/+1
| | | | Closes https://github.com/arthurdejong/munin-plot/issues/16
* Update NPM packagesArthur de Jong2023-01-031-3/+3
| | | | | | | | | | | | | | | | | This upgrades to version 7 of eslint which results in some minor other changes. Sadly no fix for CVE-2022-46175 in json5 (a transitive dependency of eslint) is available yet. This vulnerability should not affect munin-plot because we don't run eslint on untrusted input. Sadly no fix for a vulnerability in d3-color is available yet (no CVE for GHSA-36jr-mh4h-2g58 has been assigned) because there is not yet a version of plotly.js available that doesn't depend on a version of d3-interpolate that doesn't depend on the vulnerable package. This could affect munin-plot because d3 is used in the web application but we only pass data to d3 (via plotly.js) that is output of the munin-plot server-side component.
* Use pako for compressionArthur de Jong2022-01-031-30/+16
| | | | | The Compression Streams API is not yet widely supported in browsers (i.e. is unsupported in FireFox).
* Provide munin-plot source code as downloadArthur de Jong2021-12-301-1/+4
| | | | | This generates a zip file with the source code of munin-plot as a resource that can be downloaded.
* First attempt at providing a print styleArthur de Jong2021-12-123-11/+75
| | | | | | | | | Whether this actually works is heavily dependant on the browser and in some cases the screen size. Support in Plotly is not completely there and there are also various bugs in browsers, e.g.: https://github.com/plotly/plotly.js/issues/1275 https://bugs.chromium.org/p/chromium/issues/detail?id=697233
* Exclude empty hidden list from dashboard definitionArthur de Jong2021-12-121-1/+5
| | | | | This makes the dump slightly more compact which is particularly useful for when including the dashboard in the URL.
* Update close buttons to Bootstrap 5Arthur de Jong2021-12-121-6/+2
| | | | Fixes cdd68f1
* Load dashboard from URL if it changesArthur de Jong2021-10-201-6/+18
| | | | | If only the anchor part of the URL changes the page is normally not reloaded.
* Re-organise code a little bitArthur de Jong2021-10-201-44/+52
|
* Allow creating a sharable linkArthur de Jong2021-10-202-34/+93
| | | | | | | | | This allows saving the current dashboard to a shareable link that contains a BASE64 encoded compressed JSON blob of the dashboard. This also fixes an issue where the state from local storage was saved instead of the current window state (this could result in saving the wrong browser window if multiple windows were open).
* Start week on Monday and show week numbersArthur de Jong2021-10-161-1/+3
|
* Update calculated ranges when opening pickerArthur de Jong2021-10-161-0/+10
| | | | | | This re-calculates the relative date/time ranges when opening the date range picker to ensure we always get current information even if the page has been loaded for a long time.
* Update NPM packagesArthur de Jong2021-10-151-0/+3
| | | | This include a CSS tweak for a change in Bootstrap.
* Support COLORnn values for field.colourArthur de Jong2021-10-151-1/+8
| | | | | Some Munin plugins specify the custom color as a numbered reference to one of the built-in colors instead of a hexadecimal code.
* Fix the padding around the legendArthur de Jong2021-10-152-3/+2
| | | | | | | A part of the colored block or line disappeared behind the legend. This makes the block smaller and avoids overlapping blocks. Fixes cdd68f1
* Upgrade to Bootstrap 5Arthur de Jong2021-09-033-41/+24
| | | | | | This updates the events that are handled in Javascript to no longer use jQuery and stops the use of Bootstrap tooltips. Bootstrap introduces slightly different font sizes and we include some changes to padding.
* Update to Plotly.js 2.4Arthur de Jong2021-09-031-4/+4
| | | | This includes some changes to import D3 ourselves.
* Fix typos found by codespellArthur de Jong2021-08-101-2/+2
|
* Trim leading and trailing nulls before plottingArthur de Jong2021-05-021-2/+12
| | | | | | This avoids confusing Plotly area plots where a value of 0 is plotted instead. We cannot strip all nulls because that would make it not show gaps in graphs.
* Refactor code to process data in one placeArthur de Jong2021-05-021-134/+133
| | | | | This gets rid of the two invocations of Plotly.d3.csv() function that processed data slightly differently.
* Fix graph auto-reloadingArthur de Jong2021-02-221-3/+2
| | | | | | We can no longer check if our data series are complete because the new API returns null values for the whole date range so we check the time range instead.
* Try to support gaps in graphsArthur de Jong2021-02-211-6/+8
|
* Also dim min/max range for non-highlighted seriesArthur de Jong2021-01-311-12/+10
|
* Support more timestamp formatsArthur de Jong2021-01-301-1/+1
| | | | This results in slightly more compact URLs without escaped spaces.
* Reload the whole data when the range changesArthur de Jong2021-01-301-58/+20
| | | | | | | | This avoids mixing various data point densities in one single graph and ensures that the vertical scales are reasonable for the data that is shown. This also changes the mechanism by which new data is fetched.
* Update some NPM packagesArthur de Jong2020-12-201-72/+74
| | | | | | | | | Includes a fix for CVE-2020-7788 in ini npm package. This upgrades to newer eslint and webpack and includes a few fixes for that. Closes https://github.com/arthurdejong/munin-plot/pull/6
* Allow uploading a dashboard JSON fileArthur de Jong2020-08-162-0/+17
|
* Allow downloading the dashboard as a JSON fileArthur de Jong2020-08-162-11/+30
|
* Allow loading dashboard from JSONArthur de Jong2020-08-162-1/+60
| | | | | This allows copy-pasting the dashboard definition and loading graphs from that.
* Allow exporting dashboard to JSONArthur de Jong2020-08-162-0/+77
| | | | | This puts JSON in the copy-paste buffer so it can be saved to a file by the user.
* Make time period selection simplerArthur de Jong2020-08-161-5/+2
| | | | | This makes all time periods relative time ranges based on the current date and time.
* Ignore seconds when making data requestsArthur de Jong2020-06-201-2/+2
|
* Send the correct relayout eventArthur de Jong2020-06-201-1/+1
| | | | | | | This ensures that the legend for other graphs is correctly updated when changing the date range (zoom or pan). Fixes 63802b9
* Only hover on one series in busy graphArthur de Jong2020-06-141-0/+4
|
* Be slightly more efficient with handling zoom changesArthur de Jong2020-04-101-7/+7
| | | | | This only handles the event if the event contains a change in the X-axis range.
* Add a dashboard chooserArthur de Jong2020-01-272-1/+30
|
* Split setting of graph list to separate functionArthur de Jong2020-01-271-17/+26
|
* Use more jQueryArthur de Jong2020-01-271-114/+88
|
* Add a button to clear all graphsArthur de Jong2020-01-262-0/+18
|
* Hide nav buttons until everything is loadedArthur de Jong2020-01-262-32/+29
|
* Remember hidden traces in graphsArthur de Jong2020-01-201-29/+55
| | | | | This stores the traces that were manually hidden in the graph in local storage and restores the hidden state when re-adding the graphs.
* Save the graph size in local storageArthur de Jong2020-01-202-11/+43
|
* Simplify way assets are addedArthur de Jong2020-01-202-3/+9
| | | | | This adds all entry points to the munin-plot.js file as requirements. This also allows us to ship a simple CSS file instead of a SCSS file.
* Add footerArthur de Jong2020-01-051-2/+9
|
* Add an animation to removing a graphArthur de Jong2020-01-051-4/+6
| | | | This makes it clearer to the use what is going on.
* Store date range and current graphs in local storageArthur de Jong2020-01-051-2/+34
| | | | | This ensures that the list of graphs is restored when the browser is re-opened.
* Various minor improvementsArthur de Jong2020-01-053-28/+35
| | | | | | This has a few minor tweaks to the styling, fixes issues with tooltips lingering around after dragging and uses jQuery a bit more resulting in slightly more compact code.