Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/components/CollapsibleSection.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<script setup lang="ts">
import { shallowRef, computed } from 'vue'
import { LinkBase } from '#components'
import type { IconClass } from '../types/icon'
Comment thread
C1ANCYSz marked this conversation as resolved.
Outdated

interface Props {
title: string
subtitle?: string
isLoading?: boolean
headingLevel?: `h${number}`
id: string
icon?: string
icon?: IconClass
}

const props = withDefaults(defineProps<Props>(), {
Expand Down
3 changes: 2 additions & 1 deletion app/components/Diff/SidebarPanel.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { packageRoute } from '~/utils/router'
import type { IconClass } from '../../types/icon'
Comment thread
C1ANCYSz marked this conversation as resolved.
Outdated

const props = defineProps<{
compare: CompareResponse
Expand All @@ -19,7 +20,7 @@ const fileFilter = defineModel<'all' | 'added' | 'removed' | 'modified'>('fileFi

const sectionOrder = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies']
const { t } = useI18n()
const sectionMeta = computed<Record<string, { label: string; icon: string }>>(() => ({
const sectionMeta = computed<Record<string, { label: string; icon: IconClass }>>(() => ({
dependencies: { label: t('compare.dependencies'), icon: 'i-lucide:box' },
devDependencies: { label: t('compare.dev_dependencies'), icon: 'i-lucide:wrench' },
peerDependencies: { label: t('compare.peer_dependencies'), icon: 'i-lucide:users' },
Expand Down
Loading