File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { VueUiXyDatasetItem } from ' vue-data-ui'
3- import { VueUiXy } from ' vue-data-ui/vue-ui-xy'
43import { useDebounceFn , useElementSize } from ' @vueuse/core'
54import { useCssVariables } from ' ~/composables/useColors'
65import { OKLCH_NEUTRAL_FALLBACK , transparentizeOklch } from ' ~/utils/colors'
@@ -17,6 +16,10 @@ import type {
1716 YearlyDataPoint ,
1817} from ' ~/types/chart'
1918
19+ import (' vue-data-ui/style.css' )
20+
21+ const VueUiXy = defineAsyncComponent (() => import (' vue-data-ui/vue-ui-xy' ).then (m => m .VueUiXy ))
22+
2023const props = withDefaults (
2124 defineProps <{
2225 // For single package downloads history
Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { VueUiXy } from ' vue-data-ui/vue-ui-xy'
32import type {
43 VueUiXyDatasetItem ,
54 VueUiXyDatasetBarItem ,
@@ -19,6 +18,10 @@ type TooltipParams = MinimalCustomFormatParams<VueUiXyDatapointItem[]> & {
1918 bars: VueUiXyDatasetBarItem []
2019}
2120
21+ import (' vue-data-ui/style.css' )
22+
23+ const VueUiXy = defineAsyncComponent (() => import (' vue-data-ui/vue-ui-xy' ).then (m => m .VueUiXy ))
24+
2225const props = defineProps <{
2326 packageName: string
2427 inModal? : boolean
Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { VueUiSparkline } from ' vue-data-ui/vue-ui-sparkline'
32import { useCssVariables } from ' ~/composables/useColors'
43import type { WeeklyDataPoint } from ' ~/types/chart'
54import { OKLCH_NEUTRAL_FALLBACK , lightenOklch } from ' ~/utils/colors'
65
6+ import (' vue-data-ui/style.css' )
7+
8+ const VueUiSparkline = defineAsyncComponent (() =>
9+ import (' vue-data-ui/vue-ui-sparkline' ).then (m => m .VueUiSparkline ),
10+ )
11+
712const props = defineProps <{
813 packageName: string
914 createdIso: string | null
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default defineNuxtConfig({
3030 storageKey : 'npmx-color-mode' ,
3131 } ,
3232
33- css : [ '~/assets/main.css' , 'vue-data-ui/style.css' ] ,
33+ css : [ '~/assets/main.css' ] ,
3434
3535 runtimeConfig : {
3636 sessionPassword : '' ,
You can’t perform that action at this time.
0 commit comments