replace uplot lib with npm package
This commit is contained in:
parent
8bfd297008
commit
7fd0117f74
@ -1,4 +1,7 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);
|
||||
|
||||
@import url(uplot/dist/uPlot.min.css);
|
||||
|
||||
@import url(../css/icons.css);
|
||||
|
||||
* {
|
||||
|
@ -6,8 +6,6 @@
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../lib/uPlot.min.css">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="../images/logo.svg">
|
||||
|
||||
<meta charset="UTF-8">
|
||||
|
@ -1,4 +1,4 @@
|
||||
import uPlot from '../lib/uPlot.esm'
|
||||
import uPlot from 'uplot'
|
||||
|
||||
import { RelativeScale } from './scale'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import uPlot from '../lib/uPlot.esm'
|
||||
import uPlot from 'uplot'
|
||||
|
||||
import { RelativeScale } from './scale'
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
1
assets/lib/uPlot.min.css
vendored
1
assets/lib/uPlot.min.css
vendored
@ -1 +0,0 @@
|
||||
.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: max-content;}.uplot .title {text-align: center;font-size: 18px;font-weight: bold;}.uplot .wrap {position: relative;user-select: none;}.uplot .over, .uplot .under {position: absolute;overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.uplot .legend {font-size: 14px;margin: auto;text-align: center;}.uplot .legend.inline {display: block;}.uplot .legend.inline * {display: inline-block;}.uplot .legend.inline tr {margin-right: 16px;}.uplot .legend th {font-weight: 600;}.uplot .legend th > * {vertical-align: middle;display: inline-block;}.uplot .legend .ident {width: 1em;height: 1em;margin-right: 4px;border: 2px solid transparent;}.uplot .legend.inline th::after {content: ":";vertical-align: middle;}.uplot .legend .series > * {padding: 4px;}.uplot .legend .series th {cursor: pointer;}.uplot .legend .off > * {opacity: 0.3;}.uplot .select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.uplot .select.off {display: none;}.uplot .cursor-x, .uplot .cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;z-index: 100;}.uplot .cursor-x {height: 100%;border-right: 1px dashed #607D8B;}.uplot .cursor-y {width: 100%;border-bottom: 1px dashed #607D8B;}.uplot .cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;filter: brightness(85%);pointer-events: none;will-change: transform;z-index: 100;}
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -8519,6 +8519,11 @@
|
||||
"integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==",
|
||||
"dev": true
|
||||
},
|
||||
"uplot": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/uplot/-/uplot-1.0.8.tgz",
|
||||
"integrity": "sha512-oS0YVdq6iEU4B+BXSX1Ln3Dd8iVHk9vKL9elWlIEa7cYzlhqDmnnJQsXSaLjYWTQbnDLRJuuaO3oyGF2q7loiw=="
|
||||
},
|
||||
"uri-js": {
|
||||
"version": "4.2.2",
|
||||
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
|
||||
|
@ -10,6 +10,7 @@
|
||||
"request": "2.88.2",
|
||||
"serve-static": "^1.14.1",
|
||||
"sqlite3": "4.1.1",
|
||||
"uplot": "^1.0.8",
|
||||
"winston": "^2.0.0",
|
||||
"ws": "^7.2.5"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user