f80a7189a0
* chore(fe2): upgrade to nuxt 3.8.2 * fix tailwind-theme build * readme update * removing storybook from fe2 :( * fix(fe2): codegen schema url resolution
37 lines
631 B
TypeScript
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 }
|