Files
speckle-server/packages/frontend-2/lib/user/composables/avatar.ts
T
Kristaps Fabians Geikins f80a7189a0 chore(fe2): upgrade to nuxt 3.8.2 (#1887)
* chore(fe2): upgrade to nuxt 3.8.2

* fix tailwind-theme build

* readme update

* removing storybook from fe2 :(

* fix(fe2): codegen schema url resolution
2023-11-29 10:22:17 +02:00

37 lines
631 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
import type {
ActiveUserAvatarFragment,
LimitedUserAvatarFragment,
AppAuthorAvatarFragment
} from '~~/lib/common/generated/gql/graphql'
graphql(`
fragment AppAuthorAvatar on AppAuthor {
id
name
avatar
}
`)
graphql(`
fragment LimitedUserAvatar on LimitedUser {
id
name
avatar
}
`)
graphql(`
fragment ActiveUserAvatar on User {
id
name
avatar
}
`)
export type AvatarUserType =
| LimitedUserAvatarFragment
| ActiveUserAvatarFragment
| AppAuthorAvatarFragment
| { id: string; name: string; avatar?: string | null }