clean code
This commit is contained in:
parent
a9c3af4e1b
commit
14c7c60d01
@ -3,19 +3,13 @@
|
|||||||
import DailyStats from "$lib/components/Options/DailyStats.svelte";
|
import DailyStats from "$lib/components/Options/DailyStats.svelte";
|
||||||
import TickerFlow from "$lib/components/Options/TickerFlow.svelte";
|
import TickerFlow from "$lib/components/Options/TickerFlow.svelte";
|
||||||
|
|
||||||
import { Chart } from "svelte-echarts";
|
|
||||||
import { abbreviateNumberWithColor, monthNames } from "$lib/utils";
|
import { abbreviateNumberWithColor, monthNames } from "$lib/utils";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
|
import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
|
||||||
import { init, use } from "echarts/core";
|
|
||||||
import { BarChart, LineChart } from "echarts/charts";
|
|
||||||
import { GridComponent, TooltipComponent } from "echarts/components";
|
|
||||||
import { CanvasRenderer } from "echarts/renderers";
|
|
||||||
import Infobox from "$lib/components/Infobox.svelte";
|
import Infobox from "$lib/components/Infobox.svelte";
|
||||||
import SEO from "$lib/components/SEO.svelte";
|
import SEO from "$lib/components/SEO.svelte";
|
||||||
|
|
||||||
use([BarChart, LineChart, GridComponent, TooltipComponent, CanvasRenderer]);
|
|
||||||
|
|
||||||
export let data;
|
export let data;
|
||||||
let dailyStats = data?.getDailyStats;
|
let dailyStats = data?.getDailyStats;
|
||||||
let tickerFlow = data?.getTickerFlow;
|
let tickerFlow = data?.getTickerFlow;
|
||||||
|
|||||||
@ -3,19 +3,13 @@
|
|||||||
import DailyStats from "$lib/components/Options/DailyStats.svelte";
|
import DailyStats from "$lib/components/Options/DailyStats.svelte";
|
||||||
import TickerFlow from "$lib/components/Options/TickerFlow.svelte";
|
import TickerFlow from "$lib/components/Options/TickerFlow.svelte";
|
||||||
|
|
||||||
import { Chart } from "svelte-echarts";
|
|
||||||
import { abbreviateNumberWithColor, monthNames } from "$lib/utils";
|
import { abbreviateNumberWithColor, monthNames } from "$lib/utils";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
|
import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
|
||||||
import { init, use } from "echarts/core";
|
|
||||||
import { BarChart, LineChart } from "echarts/charts";
|
|
||||||
import { GridComponent, TooltipComponent } from "echarts/components";
|
|
||||||
import { CanvasRenderer } from "echarts/renderers";
|
|
||||||
import Infobox from "$lib/components/Infobox.svelte";
|
import Infobox from "$lib/components/Infobox.svelte";
|
||||||
import SEO from "$lib/components/SEO.svelte";
|
import SEO from "$lib/components/SEO.svelte";
|
||||||
|
|
||||||
use([BarChart, LineChart, GridComponent, TooltipComponent, CanvasRenderer]);
|
|
||||||
|
|
||||||
export let data;
|
export let data;
|
||||||
let dailyStats = data?.getDailyStats;
|
let dailyStats = data?.getDailyStats;
|
||||||
let tickerFlow = data?.getTickerFlow;
|
let tickerFlow = data?.getTickerFlow;
|
||||||
@ -639,21 +633,3 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!--Start Options Detail Desktop Modal-->
|
<!--Start Options Detail Desktop Modal-->
|
||||||
|
|
||||||
<style>
|
|
||||||
.app {
|
|
||||||
height: 400px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 560px) {
|
|
||||||
.app {
|
|
||||||
width: 100%;
|
|
||||||
height: 300px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.chart {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user