Skip to content

Commit

Permalink
upgrade apexchart
Browse files Browse the repository at this point in the history
  • Loading branch information
olton committed Sep 9, 2024
1 parent b7905cf commit bf484a3
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 29 deletions.
8 changes: 8 additions & 0 deletions server/Views/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Views/css/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions server/Views/css/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -432,4 +432,12 @@ footer a:hover {
}
}

#app-title {
display: none;

@media (min-width: 768px) {
display: inline;
}
}

@import "theme";
26 changes: 1 addition & 25 deletions server/Views/js/index/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const drawPriceChart = data => {
x: datetime(r.timestamp).time()
})
}

console.log(dd)
if (!chartPrice) {
chartPrice = new ApexCharts($("#price-chart-sparkle")[0], {
chart: {
Expand Down Expand Up @@ -328,30 +328,6 @@ const drawPriceChart = data => {
},
colors: ['#50a8ff'],
})
// chartPrice = new ApexCharts($("#price-chart-sparkle")[0], merge({}, lineChartOptions, {
// chart: {
// sparkline: {
// enabled: true
// },
// height: 20,
// },
// series: [{
// name: "Price",
// data: dd
// }],
// yaxis: {
// decimalsInFloat: 4,
// labels: {
// formatter: function (val) {
// return val.toFixed(4)
// }
// }
// },
// colors: ['#50a8ff'],
// tooltip: {
// enabled: false,
// }
// }))
chartPrice.render()
} else {
chartPrice.updateSeries([{
Expand Down
2 changes: 1 addition & 1 deletion server/Views/partials/_appbar.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nav.border-bottom.bd-default(data-role="app-bar" data-expand-point="xl")
img(src="/images/bull.webp" height="32")
span.text-bold MINA
span TAUR
span.text-light   -  #{appTitle}
span#app-title.text-light #{appTitle}

ul.app-bar-menu.ml-auto
li
Expand Down
1 change: 0 additions & 1 deletion server/Views/partials/_live.pug
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
div.live(style="display: none")
span.reduce-2 Live
span.mif-feed.ml-1
2 changes: 1 addition & 1 deletion server/Views/partials/_scripts.pug
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
script.
globalThis.config = !{client}

script(src='https://cdnjs.cloudflare.com/ajax/libs/apexcharts/3.50.0/apexcharts.min.js')
script(src='https://cdn.jsdelivr.net/npm/apexcharts')
script(src='/vendor/metro/metro.js')
script(src='/vendor/qrcode/qrcode.min.js')
script(src='/js/default/qrcode.js')
Expand Down

0 comments on commit bf484a3

Please sign in to comment.