Skip to content

Commit

Permalink
fix: Qiita item list
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Mar 3, 2024
1 parent aa6e68a commit c9916dc
Show file tree
Hide file tree
Showing 12 changed files with 725 additions and 12 deletions.
2 changes: 1 addition & 1 deletion content
1 change: 1 addition & 0 deletions content-sample/qiita/qiita.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions content-sample/qiita/qiita.json.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TODO: Lapras APIが動作しないため、下記の結果をコピペで一時しのぎ中
https://qiita.com/api/v2/items?page=1&per_page=100&query=user%3Abicstone
1 change: 1 addition & 0 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ const config: GatsbyConfig = {
}),
`gatsby-transformer-sharp`,
`gatsby-transformer-yaml`,
`gatsby-transformer-json`,
],
};

Expand Down
3 changes: 1 addition & 2 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@ export const createPagesStatefully: GatsbyNode["createPagesStatefully"] =
}
}
}
qiitaItems: allItemsYaml {
qiitaItems: allQiitaJson {
nodes {
title
date
url
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/features/TimelineArchived/ArchivedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/features/TimelineArchived/TimelineItemCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading

0 comments on commit c9916dc

Please sign in to comment.