Skip to content

Commit 040b0c6

Browse files
committed
chore: try
1 parent 01c3557 commit 040b0c6

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script setup lang="ts">
22
import type { VueUiXyDatasetItem } from 'vue-data-ui'
3-
import { VueUiXy } from 'vue-data-ui/vue-ui-xy'
43
import { useDebounceFn, useElementSize } from '@vueuse/core'
54
import { useCssVariables } from '~/composables/useColors'
65
import { 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+
2023
const props = withDefaults(
2124
defineProps<{
2225
// For single package downloads history

app/components/Package/VersionDistribution.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup lang="ts">
2-
import { VueUiXy } from 'vue-data-ui/vue-ui-xy'
32
import 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+
2225
const props = defineProps<{
2326
packageName: string
2427
inModal?: boolean

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<script setup lang="ts">
2-
import { VueUiSparkline } from 'vue-data-ui/vue-ui-sparkline'
32
import { useCssVariables } from '~/composables/useColors'
43
import type { WeeklyDataPoint } from '~/types/chart'
54
import { 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+
712
const props = defineProps<{
813
packageName: string
914
createdIso: string | null

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: '',

0 commit comments

Comments
 (0)