-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d1f797
commit acbea96
Showing
19 changed files
with
1,145 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import type { FragmentOf } from 'gql.tada'; | ||
import { graphql } from '../graphql'; | ||
|
||
export const MediaAudioFragment = graphql( | ||
`fragment MediaAudio on MediaAudio { | ||
__typename | ||
artist | ||
cover | ||
credits | ||
duration | ||
genre | ||
item | ||
kind | ||
license | ||
lyrics | ||
recordLabel | ||
type | ||
}`, | ||
); | ||
export type MediaAudio = FragmentOf<typeof MediaAudioFragment>; | ||
|
||
export const MediaImageFragment = graphql( | ||
`fragment MediaImage on MediaImage { | ||
__typename | ||
altTag | ||
item | ||
license | ||
type | ||
}`, | ||
); | ||
export type MediaImage = FragmentOf<typeof MediaImageFragment>; | ||
|
||
export const MediaVideoFragment = graphql( | ||
`fragment MediaVideo on MediaVideo { | ||
__typename | ||
altTag | ||
cover | ||
duration | ||
item | ||
license | ||
type | ||
}`, | ||
); | ||
export type MediaVideo = FragmentOf<typeof MediaVideoFragment>; | ||
|
||
export const AnyMediaFragment = graphql( | ||
`fragment AnyMedia on AnyMedia { | ||
... on MediaAudio { | ||
...MediaAudio | ||
} | ||
... on MediaImage { | ||
...MediaImage | ||
} | ||
... on MediaVideo { | ||
...MediaVideo | ||
} | ||
} | ||
`, | ||
[MediaAudioFragment, MediaImageFragment, MediaVideoFragment], | ||
); | ||
export type AnyMedia = FragmentOf<typeof AnyMediaFragment>; |
Oops, something went wrong.