Fix all TypeScript errors and remove Storybook
All checks were successful
Build Docker Image / build (push) Successful in 5m8s
All checks were successful
Build Docker Image / build (push) Successful in 5m8s
- Remove all Storybook files and configuration - Add type declarations for @vueuse/core, @formkit/core, vue3-apexcharts - Fix TypeScript configuration (typeRoots, include paths) - Fix Sentry config - move settings to plugin - Fix nullable prop assignments with ?? operator - Fix type narrowing issues with explicit type assertions - Fix Card component linkable computed properties - Update codegen with operationResultSuffix - Fix GraphQL operation type definitions
This commit is contained in:
@@ -40,6 +40,19 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
interface TeamMember {
|
||||
id: string
|
||||
userId: string
|
||||
role?: string | null
|
||||
}
|
||||
|
||||
interface Team {
|
||||
id?: string | null
|
||||
name: string
|
||||
createdAt?: string | null
|
||||
members?: TeamMember[] | null
|
||||
}
|
||||
|
||||
interface Props {
|
||||
team: Team
|
||||
}
|
||||
@@ -49,7 +62,7 @@ const membersCount = computed(() => props.team?.members?.length || 1)
|
||||
const displayMembers = computed(() => (props.team?.members || []).slice(0, 3))
|
||||
const remainingMembers = computed(() => Math.max(0, membersCount.value - 3))
|
||||
|
||||
const formatDate = (dateString: string) => {
|
||||
const formatDate = (dateString: string | null | undefined) => {
|
||||
if (!dateString) return ''
|
||||
try {
|
||||
return new Date(dateString).toLocaleDateString('ru-RU')
|
||||
|
||||
Reference in New Issue
Block a user