diff --git a/content b/content index 241777b8..21664de6 160000 --- a/content +++ b/content @@ -1 +1 @@ -Subproject commit 241777b8df9a8f79c5dba735a4496c696f849c48 +Subproject commit 21664de612fa77ad1a4c4ac5483dc54284950d82 diff --git a/content-sample/qiita/qiita.json b/content-sample/qiita/qiita.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/content-sample/qiita/qiita.json @@ -0,0 +1 @@ +{} diff --git a/content-sample/qiita/qiita.json.txt b/content-sample/qiita/qiita.json.txt new file mode 100644 index 00000000..4e775e04 --- /dev/null +++ b/content-sample/qiita/qiita.json.txt @@ -0,0 +1,2 @@ +TODO: Lapras APIが動作しないため、下記の結果をコピペで一時しのぎ中 +https://qiita.com/api/v2/items?page=1&per_page=100&query=user%3Abicstone diff --git a/gatsby-config.ts b/gatsby-config.ts index 3df8b41f..ae4b240f 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -241,6 +241,7 @@ const config: GatsbyConfig = { }), `gatsby-transformer-sharp`, `gatsby-transformer-yaml`, + `gatsby-transformer-json`, ], }; diff --git a/gatsby-node.ts b/gatsby-node.ts index e2781200..7aa1f86d 100644 --- a/gatsby-node.ts +++ b/gatsby-node.ts @@ -172,10 +172,9 @@ export const createPagesStatefully: GatsbyNode["createPagesStatefully"] = } } } - qiitaItems: allItemsYaml { + qiitaItems: allQiitaJson { nodes { title - date url } } diff --git a/package.json b/package.json index 63698057..047828b7 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "gatsby-remark-images": "7.13.1", "gatsby-remark-prismjs": "7.13.1", "gatsby-source-filesystem": "5.13.1", + "gatsby-transformer-json": "5.13.1", "gatsby-transformer-sharp": "5.13.1", "gatsby-transformer-yaml": "5.13.1", "github-slugger": "2.0.0", diff --git a/src/features/TimelineArchived/ArchivedList.tsx b/src/features/TimelineArchived/ArchivedList.tsx index 6082b338..53b49834 100644 --- a/src/features/TimelineArchived/ArchivedList.tsx +++ b/src/features/TimelineArchived/ArchivedList.tsx @@ -7,7 +7,7 @@ import { TimelineItemCard } from "./TimelineItemCard"; import { type TimelineArchivedListFragment } from "@/generated/graphqlTypes"; export const query = graphql` - fragment TimelineArchivedList on ItemsYamlConnection { + fragment TimelineArchivedList on QiitaJsonConnection { nodes { id ...TimelineItemCard diff --git a/src/features/TimelineArchived/TimelineItemCard.tsx b/src/features/TimelineArchived/TimelineItemCard.tsx index 9ba3c198..2048a103 100644 --- a/src/features/TimelineArchived/TimelineItemCard.tsx +++ b/src/features/TimelineArchived/TimelineItemCard.tsx @@ -10,7 +10,7 @@ import { type TimelineItemCardFragment } from "@/generated/graphqlTypes"; import { type M3ColorTokens, outputColorTokens } from "@/layouts/themes"; export const query = graphql` - fragment TimelineItemCard on ItemsYaml { + fragment TimelineItemCard on QiitaJson { title url } diff --git a/src/generated/graphqlTypes.ts b/src/generated/graphqlTypes.ts index 20c6a49f..8ff4d8cb 100644 --- a/src/generated/graphqlTypes.ts +++ b/src/generated/graphqlTypes.ts @@ -682,6 +682,8 @@ export type File = Node & { readonly childOssesYaml: Maybe; /** Returns the first child node of type ProjectsYaml or null if there are no children of given type on this node */ readonly childProjectsYaml: Maybe; + /** Returns the first child node of type QiitaJson or null if there are no children of given type on this node */ + readonly childQiitaJson: Maybe; /** Returns the first child node of type SlidesYaml or null if there are no children of given type on this node */ readonly childSlidesYaml: Maybe; readonly children: ReadonlyArray; @@ -703,6 +705,8 @@ export type File = Node & { readonly childrenOssesYaml: Maybe>>; /** Returns all children nodes filtered by type ProjectsYaml */ readonly childrenProjectsYaml: Maybe>>; + /** Returns all children nodes filtered by type QiitaJson */ + readonly childrenQiitaJson: Maybe>>; /** Returns all children nodes filtered by type SlidesYaml */ readonly childrenSlidesYaml: Maybe>>; readonly ctime: Scalars['Date']['output']; @@ -856,6 +860,7 @@ export type FileFieldSelector = { readonly childNotesYaml: InputMaybe; readonly childOssesYaml: InputMaybe; readonly childProjectsYaml: InputMaybe; + readonly childQiitaJson: InputMaybe; readonly childSlidesYaml: InputMaybe; readonly children: InputMaybe; readonly childrenArticlesYaml: InputMaybe; @@ -867,6 +872,7 @@ export type FileFieldSelector = { readonly childrenNotesYaml: InputMaybe; readonly childrenOssesYaml: InputMaybe; readonly childrenProjectsYaml: InputMaybe; + readonly childrenQiitaJson: InputMaybe; readonly childrenSlidesYaml: InputMaybe; readonly ctime: InputMaybe; readonly ctimeMs: InputMaybe; @@ -917,6 +923,7 @@ export type FileFilterInput = { readonly childNotesYaml: InputMaybe; readonly childOssesYaml: InputMaybe; readonly childProjectsYaml: InputMaybe; + readonly childQiitaJson: InputMaybe; readonly childSlidesYaml: InputMaybe; readonly children: InputMaybe; readonly childrenArticlesYaml: InputMaybe; @@ -928,6 +935,7 @@ export type FileFilterInput = { readonly childrenNotesYaml: InputMaybe; readonly childrenOssesYaml: InputMaybe; readonly childrenProjectsYaml: InputMaybe; + readonly childrenQiitaJson: InputMaybe; readonly childrenSlidesYaml: InputMaybe; readonly ctime: InputMaybe; readonly ctimeMs: InputMaybe; @@ -1019,6 +1027,7 @@ export type FileSortInput = { readonly childNotesYaml: InputMaybe; readonly childOssesYaml: InputMaybe; readonly childProjectsYaml: InputMaybe; + readonly childQiitaJson: InputMaybe; readonly childSlidesYaml: InputMaybe; readonly children: InputMaybe; readonly childrenArticlesYaml: InputMaybe; @@ -1030,6 +1039,7 @@ export type FileSortInput = { readonly childrenNotesYaml: InputMaybe; readonly childrenOssesYaml: InputMaybe; readonly childrenProjectsYaml: InputMaybe; + readonly childrenQiitaJson: InputMaybe; readonly childrenSlidesYaml: InputMaybe; readonly ctime: InputMaybe; readonly ctimeMs: InputMaybe; @@ -3079,6 +3089,300 @@ export type ProjectsYamlSortInput = { readonly title: InputMaybe; }; +export type QiitaJson = Node & { + readonly body: Maybe; + readonly children: ReadonlyArray; + readonly coediting: Maybe; + readonly comments_count: Maybe; + readonly created_at: Maybe; + readonly id: Scalars['ID']['output']; + readonly internal: Internal; + readonly jsonId: Maybe; + readonly likes_count: Maybe; + readonly parent: Maybe; + readonly private: Maybe; + readonly reactions_count: Maybe; + readonly rendered_body: Maybe; + readonly slide: Maybe; + readonly stocks_count: Maybe; + readonly tags: Maybe>>; + readonly title: Maybe; + readonly updated_at: Maybe; + readonly url: Maybe; + readonly user: Maybe; +}; + + +export type QiitaJsonCreated_AtArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type QiitaJsonUpdated_AtArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + +export type QiitaJsonConnection = { + readonly distinct: ReadonlyArray; + readonly edges: ReadonlyArray; + readonly group: ReadonlyArray; + readonly max: Maybe; + readonly min: Maybe; + readonly nodes: ReadonlyArray; + readonly pageInfo: PageInfo; + readonly sum: Maybe; + readonly totalCount: Scalars['Int']['output']; +}; + + +export type QiitaJsonConnectionDistinctArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonConnectionGroupArgs = { + field: QiitaJsonFieldSelector; + limit: InputMaybe; + skip: InputMaybe; +}; + + +export type QiitaJsonConnectionMaxArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonConnectionMinArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonConnectionSumArgs = { + field: QiitaJsonFieldSelector; +}; + +export type QiitaJsonEdge = { + readonly next: Maybe; + readonly node: QiitaJson; + readonly previous: Maybe; +}; + +export type QiitaJsonFieldSelector = { + readonly body: InputMaybe; + readonly children: InputMaybe; + readonly coediting: InputMaybe; + readonly comments_count: InputMaybe; + readonly created_at: InputMaybe; + readonly id: InputMaybe; + readonly internal: InputMaybe; + readonly jsonId: InputMaybe; + readonly likes_count: InputMaybe; + readonly parent: InputMaybe; + readonly private: InputMaybe; + readonly reactions_count: InputMaybe; + readonly rendered_body: InputMaybe; + readonly slide: InputMaybe; + readonly stocks_count: InputMaybe; + readonly tags: InputMaybe; + readonly title: InputMaybe; + readonly updated_at: InputMaybe; + readonly url: InputMaybe; + readonly user: InputMaybe; +}; + +export type QiitaJsonFilterInput = { + readonly body: InputMaybe; + readonly children: InputMaybe; + readonly coediting: InputMaybe; + readonly comments_count: InputMaybe; + readonly created_at: InputMaybe; + readonly id: InputMaybe; + readonly internal: InputMaybe; + readonly jsonId: InputMaybe; + readonly likes_count: InputMaybe; + readonly parent: InputMaybe; + readonly private: InputMaybe; + readonly reactions_count: InputMaybe; + readonly rendered_body: InputMaybe; + readonly slide: InputMaybe; + readonly stocks_count: InputMaybe; + readonly tags: InputMaybe; + readonly title: InputMaybe; + readonly updated_at: InputMaybe; + readonly url: InputMaybe; + readonly user: InputMaybe; +}; + +export type QiitaJsonFilterListInput = { + readonly elemMatch: InputMaybe; +}; + +export type QiitaJsonGroupConnection = { + readonly distinct: ReadonlyArray; + readonly edges: ReadonlyArray; + readonly field: Scalars['String']['output']; + readonly fieldValue: Maybe; + readonly group: ReadonlyArray; + readonly max: Maybe; + readonly min: Maybe; + readonly nodes: ReadonlyArray; + readonly pageInfo: PageInfo; + readonly sum: Maybe; + readonly totalCount: Scalars['Int']['output']; +}; + + +export type QiitaJsonGroupConnectionDistinctArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonGroupConnectionGroupArgs = { + field: QiitaJsonFieldSelector; + limit: InputMaybe; + skip: InputMaybe; +}; + + +export type QiitaJsonGroupConnectionMaxArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonGroupConnectionMinArgs = { + field: QiitaJsonFieldSelector; +}; + + +export type QiitaJsonGroupConnectionSumArgs = { + field: QiitaJsonFieldSelector; +}; + +export type QiitaJsonSortInput = { + readonly body: InputMaybe; + readonly children: InputMaybe; + readonly coediting: InputMaybe; + readonly comments_count: InputMaybe; + readonly created_at: InputMaybe; + readonly id: InputMaybe; + readonly internal: InputMaybe; + readonly jsonId: InputMaybe; + readonly likes_count: InputMaybe; + readonly parent: InputMaybe; + readonly private: InputMaybe; + readonly reactions_count: InputMaybe; + readonly rendered_body: InputMaybe; + readonly slide: InputMaybe; + readonly stocks_count: InputMaybe; + readonly tags: InputMaybe; + readonly title: InputMaybe; + readonly updated_at: InputMaybe; + readonly url: InputMaybe; + readonly user: InputMaybe; +}; + +export type QiitaJsonTags = { + readonly name: Maybe; +}; + +export type QiitaJsonTagsFieldSelector = { + readonly name: InputMaybe; +}; + +export type QiitaJsonTagsFilterInput = { + readonly name: InputMaybe; +}; + +export type QiitaJsonTagsFilterListInput = { + readonly elemMatch: InputMaybe; +}; + +export type QiitaJsonTagsSortInput = { + readonly name: InputMaybe; +}; + +export type QiitaJsonUser = { + readonly description: Maybe; + readonly facebook_id: Maybe; + readonly followees_count: Maybe; + readonly followers_count: Maybe; + readonly github_login_name: Maybe; + readonly id: Maybe; + readonly items_count: Maybe; + readonly linkedin_id: Maybe; + readonly location: Maybe; + readonly name: Maybe; + readonly organization: Maybe; + readonly permanent_id: Maybe; + readonly profile_image_url: Maybe; + readonly team_only: Maybe; + readonly twitter_screen_name: Maybe; + readonly website_url: Maybe; +}; + +export type QiitaJsonUserFieldSelector = { + readonly description: InputMaybe; + readonly facebook_id: InputMaybe; + readonly followees_count: InputMaybe; + readonly followers_count: InputMaybe; + readonly github_login_name: InputMaybe; + readonly id: InputMaybe; + readonly items_count: InputMaybe; + readonly linkedin_id: InputMaybe; + readonly location: InputMaybe; + readonly name: InputMaybe; + readonly organization: InputMaybe; + readonly permanent_id: InputMaybe; + readonly profile_image_url: InputMaybe; + readonly team_only: InputMaybe; + readonly twitter_screen_name: InputMaybe; + readonly website_url: InputMaybe; +}; + +export type QiitaJsonUserFilterInput = { + readonly description: InputMaybe; + readonly facebook_id: InputMaybe; + readonly followees_count: InputMaybe; + readonly followers_count: InputMaybe; + readonly github_login_name: InputMaybe; + readonly id: InputMaybe; + readonly items_count: InputMaybe; + readonly linkedin_id: InputMaybe; + readonly location: InputMaybe; + readonly name: InputMaybe; + readonly organization: InputMaybe; + readonly permanent_id: InputMaybe; + readonly profile_image_url: InputMaybe; + readonly team_only: InputMaybe; + readonly twitter_screen_name: InputMaybe; + readonly website_url: InputMaybe; +}; + +export type QiitaJsonUserSortInput = { + readonly description: InputMaybe; + readonly facebook_id: InputMaybe; + readonly followees_count: InputMaybe; + readonly followers_count: InputMaybe; + readonly github_login_name: InputMaybe; + readonly id: InputMaybe; + readonly items_count: InputMaybe; + readonly linkedin_id: InputMaybe; + readonly location: InputMaybe; + readonly name: InputMaybe; + readonly organization: InputMaybe; + readonly permanent_id: InputMaybe; + readonly profile_image_url: InputMaybe; + readonly team_only: InputMaybe; + readonly twitter_screen_name: InputMaybe; + readonly website_url: InputMaybe; +}; + export type Query = { readonly allArticlesYaml: ArticlesYamlConnection; readonly allCertificationsYaml: CertificationsYamlConnection; @@ -3094,6 +3398,7 @@ export type Query = { readonly allOutput: OutputConnection; readonly allProject: ProjectConnection; readonly allProjectsYaml: ProjectsYamlConnection; + readonly allQiitaJson: QiitaJsonConnection; readonly allSearch: SearchConnection; readonly allSite: SiteConnection; readonly allSiteBuildMetadata: SiteBuildMetadataConnection; @@ -3101,6 +3406,7 @@ export type Query = { readonly allSitePage: SitePageConnection; readonly allSitePlugin: SitePluginConnection; readonly allSlidesYaml: SlidesYamlConnection; + readonly allStaticImage: StaticImageConnection; readonly allTimeline: TimelineConnection; readonly articlesYaml: Maybe; readonly certificationsYaml: Maybe; @@ -3116,6 +3422,7 @@ export type Query = { readonly output: Maybe; readonly project: Maybe; readonly projectsYaml: Maybe; + readonly qiitaJson: Maybe; readonly search: Maybe; readonly site: Maybe; readonly siteBuildMetadata: Maybe; @@ -3123,6 +3430,7 @@ export type Query = { readonly sitePage: Maybe; readonly sitePlugin: Maybe; readonly slidesYaml: Maybe; + readonly staticImage: Maybe; readonly timeline: Maybe; }; @@ -3239,6 +3547,14 @@ export type QueryAllProjectsYamlArgs = { }; +export type QueryAllQiitaJsonArgs = { + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe>>; +}; + + export type QueryAllSearchArgs = { filter: InputMaybe; limit: InputMaybe; @@ -3295,6 +3611,14 @@ export type QueryAllSlidesYamlArgs = { }; +export type QueryAllStaticImageArgs = { + filter: InputMaybe; + limit: InputMaybe; + skip: InputMaybe; + sort: InputMaybe>>; +}; + + export type QueryAllTimelineArgs = { filter: InputMaybe; limit: InputMaybe; @@ -3388,6 +3712,7 @@ export type QueryFileArgs = { childNotesYaml: InputMaybe; childOssesYaml: InputMaybe; childProjectsYaml: InputMaybe; + childQiitaJson: InputMaybe; childSlidesYaml: InputMaybe; children: InputMaybe; childrenArticlesYaml: InputMaybe; @@ -3399,6 +3724,7 @@ export type QueryFileArgs = { childrenNotesYaml: InputMaybe; childrenOssesYaml: InputMaybe; childrenProjectsYaml: InputMaybe; + childrenQiitaJson: InputMaybe; childrenSlidesYaml: InputMaybe; ctime: InputMaybe; ctimeMs: InputMaybe; @@ -3558,6 +3884,30 @@ export type QueryProjectsYamlArgs = { }; +export type QueryQiitaJsonArgs = { + body: InputMaybe; + children: InputMaybe; + coediting: InputMaybe; + comments_count: InputMaybe; + created_at: InputMaybe; + id: InputMaybe; + internal: InputMaybe; + jsonId: InputMaybe; + likes_count: InputMaybe; + parent: InputMaybe; + private: InputMaybe; + reactions_count: InputMaybe; + rendered_body: InputMaybe; + slide: InputMaybe; + stocks_count: InputMaybe; + tags: InputMaybe; + title: InputMaybe; + updated_at: InputMaybe; + url: InputMaybe; + user: InputMaybe; +}; + + export type QuerySearchArgs = { children: InputMaybe; excerpt: InputMaybe; @@ -3656,6 +4006,46 @@ export type QuerySlidesYamlArgs = { }; +export type QueryStaticImageArgs = { + absolutePath: InputMaybe; + accessTime: InputMaybe; + atime: InputMaybe; + atimeMs: InputMaybe; + base: InputMaybe; + birthTime: InputMaybe; + birthtime: InputMaybe; + birthtimeMs: InputMaybe; + blksize: InputMaybe; + blocks: InputMaybe; + changeTime: InputMaybe; + children: InputMaybe; + ctime: InputMaybe; + ctimeMs: InputMaybe; + dev: InputMaybe; + dir: InputMaybe; + ext: InputMaybe; + extension: InputMaybe; + id: InputMaybe; + ino: InputMaybe; + internal: InputMaybe; + mode: InputMaybe; + modifiedTime: InputMaybe; + mtime: InputMaybe; + mtimeMs: InputMaybe; + name: InputMaybe; + nlink: InputMaybe; + parent: InputMaybe; + prettySize: InputMaybe; + rdev: InputMaybe; + relativeDirectory: InputMaybe; + relativePath: InputMaybe; + root: InputMaybe; + size: InputMaybe; + sourceInstanceName: InputMaybe; + uid: InputMaybe; +}; + + export type QueryTimelineArgs = { children: InputMaybe; date: InputMaybe; @@ -4689,6 +5079,312 @@ export enum SortOrderEnum { Desc = 1 } +export type StaticImage = Node & { + readonly absolutePath: Maybe; + readonly accessTime: Maybe; + readonly atime: Maybe; + readonly atimeMs: Maybe; + readonly base: Maybe; + readonly birthTime: Maybe; + readonly birthtime: Maybe; + readonly birthtimeMs: Maybe; + readonly blksize: Maybe; + readonly blocks: Maybe; + readonly changeTime: Maybe; + readonly children: ReadonlyArray; + readonly ctime: Maybe; + readonly ctimeMs: Maybe; + readonly dev: Maybe; + readonly dir: Maybe; + readonly ext: Maybe; + readonly extension: Maybe; + readonly id: Scalars['ID']['output']; + readonly ino: Maybe; + readonly internal: Internal; + readonly mode: Maybe; + readonly modifiedTime: Maybe; + readonly mtime: Maybe; + readonly mtimeMs: Maybe; + readonly name: Maybe; + readonly nlink: Maybe; + readonly parent: Maybe; + readonly prettySize: Maybe; + readonly rdev: Maybe; + readonly relativeDirectory: Maybe; + readonly relativePath: Maybe; + readonly root: Maybe; + readonly size: Maybe; + readonly sourceInstanceName: Maybe; + readonly uid: Maybe; +}; + + +export type StaticImageAccessTimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageAtimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageBirthTimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageBirthtimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageChangeTimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageCtimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageModifiedTimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + + +export type StaticImageMtimeArgs = { + difference: InputMaybe; + formatString: InputMaybe; + fromNow: InputMaybe; + locale: InputMaybe; +}; + +export type StaticImageConnection = { + readonly distinct: ReadonlyArray; + readonly edges: ReadonlyArray; + readonly group: ReadonlyArray; + readonly max: Maybe; + readonly min: Maybe; + readonly nodes: ReadonlyArray; + readonly pageInfo: PageInfo; + readonly sum: Maybe; + readonly totalCount: Scalars['Int']['output']; +}; + + +export type StaticImageConnectionDistinctArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageConnectionGroupArgs = { + field: StaticImageFieldSelector; + limit: InputMaybe; + skip: InputMaybe; +}; + + +export type StaticImageConnectionMaxArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageConnectionMinArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageConnectionSumArgs = { + field: StaticImageFieldSelector; +}; + +export type StaticImageEdge = { + readonly next: Maybe; + readonly node: StaticImage; + readonly previous: Maybe; +}; + +export type StaticImageFieldSelector = { + readonly absolutePath: InputMaybe; + readonly accessTime: InputMaybe; + readonly atime: InputMaybe; + readonly atimeMs: InputMaybe; + readonly base: InputMaybe; + readonly birthTime: InputMaybe; + readonly birthtime: InputMaybe; + readonly birthtimeMs: InputMaybe; + readonly blksize: InputMaybe; + readonly blocks: InputMaybe; + readonly changeTime: InputMaybe; + readonly children: InputMaybe; + readonly ctime: InputMaybe; + readonly ctimeMs: InputMaybe; + readonly dev: InputMaybe; + readonly dir: InputMaybe; + readonly ext: InputMaybe; + readonly extension: InputMaybe; + readonly id: InputMaybe; + readonly ino: InputMaybe; + readonly internal: InputMaybe; + readonly mode: InputMaybe; + readonly modifiedTime: InputMaybe; + readonly mtime: InputMaybe; + readonly mtimeMs: InputMaybe; + readonly name: InputMaybe; + readonly nlink: InputMaybe; + readonly parent: InputMaybe; + readonly prettySize: InputMaybe; + readonly rdev: InputMaybe; + readonly relativeDirectory: InputMaybe; + readonly relativePath: InputMaybe; + readonly root: InputMaybe; + readonly size: InputMaybe; + readonly sourceInstanceName: InputMaybe; + readonly uid: InputMaybe; +}; + +export type StaticImageFilterInput = { + readonly absolutePath: InputMaybe; + readonly accessTime: InputMaybe; + readonly atime: InputMaybe; + readonly atimeMs: InputMaybe; + readonly base: InputMaybe; + readonly birthTime: InputMaybe; + readonly birthtime: InputMaybe; + readonly birthtimeMs: InputMaybe; + readonly blksize: InputMaybe; + readonly blocks: InputMaybe; + readonly changeTime: InputMaybe; + readonly children: InputMaybe; + readonly ctime: InputMaybe; + readonly ctimeMs: InputMaybe; + readonly dev: InputMaybe; + readonly dir: InputMaybe; + readonly ext: InputMaybe; + readonly extension: InputMaybe; + readonly id: InputMaybe; + readonly ino: InputMaybe; + readonly internal: InputMaybe; + readonly mode: InputMaybe; + readonly modifiedTime: InputMaybe; + readonly mtime: InputMaybe; + readonly mtimeMs: InputMaybe; + readonly name: InputMaybe; + readonly nlink: InputMaybe; + readonly parent: InputMaybe; + readonly prettySize: InputMaybe; + readonly rdev: InputMaybe; + readonly relativeDirectory: InputMaybe; + readonly relativePath: InputMaybe; + readonly root: InputMaybe; + readonly size: InputMaybe; + readonly sourceInstanceName: InputMaybe; + readonly uid: InputMaybe; +}; + +export type StaticImageGroupConnection = { + readonly distinct: ReadonlyArray; + readonly edges: ReadonlyArray; + readonly field: Scalars['String']['output']; + readonly fieldValue: Maybe; + readonly group: ReadonlyArray; + readonly max: Maybe; + readonly min: Maybe; + readonly nodes: ReadonlyArray; + readonly pageInfo: PageInfo; + readonly sum: Maybe; + readonly totalCount: Scalars['Int']['output']; +}; + + +export type StaticImageGroupConnectionDistinctArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageGroupConnectionGroupArgs = { + field: StaticImageFieldSelector; + limit: InputMaybe; + skip: InputMaybe; +}; + + +export type StaticImageGroupConnectionMaxArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageGroupConnectionMinArgs = { + field: StaticImageFieldSelector; +}; + + +export type StaticImageGroupConnectionSumArgs = { + field: StaticImageFieldSelector; +}; + +export type StaticImageSortInput = { + readonly absolutePath: InputMaybe; + readonly accessTime: InputMaybe; + readonly atime: InputMaybe; + readonly atimeMs: InputMaybe; + readonly base: InputMaybe; + readonly birthTime: InputMaybe; + readonly birthtime: InputMaybe; + readonly birthtimeMs: InputMaybe; + readonly blksize: InputMaybe; + readonly blocks: InputMaybe; + readonly changeTime: InputMaybe; + readonly children: InputMaybe; + readonly ctime: InputMaybe; + readonly ctimeMs: InputMaybe; + readonly dev: InputMaybe; + readonly dir: InputMaybe; + readonly ext: InputMaybe; + readonly extension: InputMaybe; + readonly id: InputMaybe; + readonly ino: InputMaybe; + readonly internal: InputMaybe; + readonly mode: InputMaybe; + readonly modifiedTime: InputMaybe; + readonly mtime: InputMaybe; + readonly mtimeMs: InputMaybe; + readonly name: InputMaybe; + readonly nlink: InputMaybe; + readonly parent: InputMaybe; + readonly prettySize: InputMaybe; + readonly rdev: InputMaybe; + readonly relativeDirectory: InputMaybe; + readonly relativePath: InputMaybe; + readonly root: InputMaybe; + readonly size: InputMaybe; + readonly sourceInstanceName: InputMaybe; + readonly uid: InputMaybe; +}; + export type StringQueryOperatorInput = { readonly eq: InputMaybe; readonly glob: InputMaybe; @@ -4927,7 +5623,7 @@ export type OnCreatePagesStatefullyQuery = { readonly blogPosts: { readonly node ) | ( { readonly __typename: 'SlidesYaml' } & Pick - )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> } }; + )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> } }; export type BlogPostTableOfContentFragment = Pick; @@ -5065,9 +5761,9 @@ export type TimelineVirtualizedListTimelineFragment = { readonly nodes: Readonly & { dateX: SlidesYaml['date'] } )> }; -export type TimelineArchivedListFragment = { readonly nodes: ReadonlyArray> }; +export type TimelineArchivedListFragment = { readonly nodes: ReadonlyArray> }; -export type TimelineItemCardFragment = Pick; +export type TimelineItemCardFragment = Pick; export type UseSearchQueryVariables = Exact<{ [key: string]: never; }>; @@ -5124,7 +5820,7 @@ export type IndexPageQuery = { readonly timelineItems: { readonly nodes: Readonl { readonly __typename: 'SlidesYaml' } & Pick & { dateX: SlidesYaml['date'] } - )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> } }; + )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> } }; export type OutputsPageQueryVariables = Exact<{ [key: string]: never; }>; @@ -5147,7 +5843,7 @@ export type OutputsPageQuery = { readonly outputs: { readonly group: ReadonlyArr { readonly __typename: 'SlidesYaml' } & Pick )> } - )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> }, readonly site: Maybe> }; + )> }, readonly qiitaItems: { readonly nodes: ReadonlyArray> }, readonly site: Maybe> }; export type ProjectsPageQueryVariables = Exact<{ [key: string]: never; }>; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 1f4a4939..8d2d899f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -22,7 +22,7 @@ export const query = graphql` timelineItems: allTimeline(sort: { date: DESC }) { ...TimelineVirtualizedListTimeline } - qiitaItems: allItemsYaml(sort: { date: DESC }) { + qiitaItems: allQiitaJson(sort: { created_at: DESC }) { ...TimelineArchivedList } } diff --git a/src/pages/outputs.tsx b/src/pages/outputs.tsx index ca44bda3..3e4b5e9a 100644 --- a/src/pages/outputs.tsx +++ b/src/pages/outputs.tsx @@ -22,7 +22,7 @@ export const query = graphql` outputs: allOutput(sort: { date: DESC }) { ...TimelineListOutput } - qiitaItems: allItemsYaml(sort: { date: DESC }) { + qiitaItems: allQiitaJson(sort: { created_at: DESC }) { ...TimelineArchivedList } site { diff --git a/yarn.lock b/yarn.lock index d2ffba64..b1fa0d9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6214,6 +6214,7 @@ __metadata: gatsby-remark-images: "npm:7.13.1" gatsby-remark-prismjs: "npm:7.13.1" gatsby-source-filesystem: "npm:5.13.1" + gatsby-transformer-json: "npm:5.13.1" gatsby-transformer-sharp: "npm:5.13.1" gatsby-transformer-yaml: "npm:5.13.1" github-slugger: "npm:2.0.0" @@ -10371,6 +10372,18 @@ __metadata: languageName: node linkType: hard +"gatsby-transformer-json@npm:5.13.1": + version: 5.13.1 + resolution: "gatsby-transformer-json@npm:5.13.1" + dependencies: + "@babel/runtime": "npm:^7.20.13" + bluebird: "npm:^3.7.2" + peerDependencies: + gatsby: ^5.0.0-next + checksum: 10c0/5c26b08a161a1d98bff74b8b03a7786e1cf357bf5022b84008d3bbfada89e45b696c01e610cfe9b9a566aecd8c82c935c2bba0ec79d5ce018b6cd970a23d8558 + languageName: node + linkType: hard + "gatsby-transformer-sharp@npm:5.13.1": version: 5.13.1 resolution: "gatsby-transformer-sharp@npm:5.13.1"