Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…/adopt-material-you
  • Loading branch information
bicstone committed Jun 15, 2023
2 parents 258209d + 47eb9fd commit a8326f7
Show file tree
Hide file tree
Showing 121 changed files with 7,018 additions and 13,189 deletions.
8 changes: 2 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
CONTENTFUL_SPACE_ID=
CONTENTFUL_ACCESS_TOKEN=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
# AWS_S3_BUCKET_NAME is a required option for gatsby-plugin-s3
AWS_S3_BUCKET_NAME=
AWS_CLOUDFRONT_DISTRIBUTION_ID=
AWS_REGION=
# GTM_ID is a required option for gatsby-plugin-google-tagmanager
GTM_ID=

# optional
Expand Down
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/.cache linguist-generated=true
/.yarn linguist-generated=true
/public linguist-generated=true
/src/generated linguist-generated=true
/public/* linguist-generated=true
/src/generated/* linguist-generated=true
/yarn.lock linguist-generated=true
2 changes: 0 additions & 2 deletions .github/workflows/deploy-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
env:
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
AWS_REGION: ${{ secrets.AWS_REGION }}
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
GTM_ID: ${{ vars.GTM_ID }}
GATSBY_ADSENSE_PUB_ID: ${{ vars.GATSBY_ADSENSE_PUB_ID }}
GATSBY_ADSENSE_INARTICLE_AD_ID: ${{ vars.GATSBY_ADSENSE_INARTICLE_AD_ID }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/deploy-to-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
# "bucketName" is a required option for gatsby-plugin-s3
AWS_S3_BUCKET_NAME: "example"
ALL_PAGES_TO_NO_INDEX: "true"
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
GTM_ID: ${{ vars.GTM_ID }}
PREFIX_PATHS: "true"
GATSBY_SITE_URL: "https://bicstone.github.io/portfolio"
Expand Down
1 change: 1 addition & 0 deletions .graphqlrc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
schema: http://localhost:10014/___graphql
documents:
- src/**/*.{ts,tsx}
- gatsby-config.ts
- gatsby-node.ts
extensions:
codegen:
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.0-rc.44.cjs
yarnPath: .yarn/releases/yarn-4.0.0-rc.45.cjs
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

## 構成

Gatsby.js + (Contentful) + Amazon CloudFront (Cloud Functions) + Amazon S3 を用いた Jamstack 構成としました。
Gatsby.js + Amazon CloudFront (Cloud Functions) + Amazon S3 を用いた Jamstack 構成としました。

※ 検証環境は GitHub Pages を使用

※ 現在 Contentful と emotion の引き剥がしを行っています。

## 特徴

### パフォーマンス
Expand All @@ -37,7 +35,6 @@ Gatsby.js + (Contentful) + Amazon CloudFront (Cloud Functions) + Amazon S3 を
### セキュリティ

- SSG で構築しており、ビルド後の資産は完全に静的であるため、脆弱性による改ざん等のリスクが軽減されます。
- DNSSEC を構成しており、DNS キャッシュ ポイズニング攻撃や DNS スプーフィングなどのリスクが軽減されます。
- セキュリティを強化する HTTP ヘッダを設定しています。 (ただし広告配信のため CSP は最小限度の設定)
- 利用可能な暗号スイートを TLSv1.3 と TLSv1.2 に限定し、2022 年現在判明している脆弱なプロトコルをブロックしています。
- Mozilla Observatory, DeepSource, SonarCloud を使用し、レビューを受けています。
Expand All @@ -46,6 +43,7 @@ Gatsby.js + (Contentful) + Amazon CloudFront (Cloud Functions) + Amazon S3 を
- Personal access token が必要な場面では、すべて Fine-grained PAT を用いて最小限度の権限を与えています。
- AWS への認証において OpenID Connect を活用しています。短命の認証情報を用いることで、リポジトリにシークレットを保持せずにデプロイをしています。
- Renovate を用いて依存関係を定期的にアップデートしています。
- 2023 年まで DNSSEC を構成し、DNS キャッシュ ポイズニング攻撃や DNS スプーフィングなどのリスクを軽減していました。2023 年に廃止しました。

### アクセシビリティ

Expand Down
4 changes: 2 additions & 2 deletions content-sample/articles/test.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: "サンプル記事です"
slug: "test"
created: "1960-01-01T00:00+09:00"
updated: "1960-02-02T00:00+09:00"
date: 1960-01-01T00:00+09:00
updateDate: 1960-02-02T00:00+09:00
excerpt: "サンプル記事です"
category: "uncategorized"
tags:
Expand Down
9 changes: 9 additions & 0 deletions content-sample/certifications/certifications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- title: ITパスポート試験
date: 2012-10-15T00:00:00+09:00
category: その他のIT資格
- title: 応用情報技術者試験
date: 2016-12-16T00:00:00+09:00
category: 主な資格
- title: 日本品質管理学会 品質管理検定3級
date: 2016-10-04T00:00:00+09:00
category: その他の工学資格
4 changes: 4 additions & 0 deletions content-sample/histories/histories.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- title: 初めてのPC
date: 2003-01-01T00:00:00+09:00
excerpt: 初めてPCに触れました。ソーテック製Windows XPのデスクトップPCです。最初はダイアルアップ接続でしたが、長時間繋ぐのでADSLに変えてもらいました。当時小学生でローマ字が打てなかった影響で、現在もかな入力を使用しています。
icon: <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"></path>
1 change: 1 addition & 0 deletions content-sample/logos/AutoAwesomeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/BicstoneLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content-sample/logos/CSMLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/CodeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/ConnpassLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/DescriptionIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/FeedLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/GitHubLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/GitHubWhiteLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content-sample/logos/LinkedInLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/PaycareerLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content-sample/logos/RISSLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content-sample/logos/SpeakerDeckLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/TwitterLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/VerifiedIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/YoutrustLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions content-sample/logos/ZennLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions content-sample/osses/osses.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
- date: 2022-08-19T00:00:00+09:00
title: gatsby-plugin-fix-fouc
url: https://github.com/bicstone/gatsby-plugin-fix-fouc
tags:
- TypeScript
- React
- Gatsby.js
- npm
- Jest
- Cypress

- date: 2020-12-01T00:00:00+09:00
title: Portfolio
url: https://bicstone.me
tags:
- TypeScript
- React
- Gatsby.js
- GraphQL
- AWS

- date: 2019-11-17T00:00:00+09:00
title: ra-language-japanese
url: https://github.com/bicstone/ra-language-japanese
tags:
- TypeScript
- npm

- date: 2019-11-15T00:00:00+09:00
title: backlog-notify
url: https://github.com/bicstone/backlog-notify
tags:
- TypeScript
- Node.js
- GitHub Actions
- Jest

- date: 2017-02-17T00:00:00+09:00
title: userscripts
url: https://github.com/bicstone/userscripts
tags:
- JavaScript
4 changes: 2 additions & 2 deletions content-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"license": "UNLICENSED",
"dependencies": {
"eslint": "8.41.0",
"eslint": "8.42.0",
"eslint-plugin-mdx": "2.1.0",
"husky": "8.0.3",
"prettier": "2.8.8",
Expand All @@ -24,5 +24,5 @@
"textlint-rule-preset-ja-spacing": "2.3.0",
"textlint-rule-preset-ja-technical-writing": "7.0.0"
},
"packageManager": "yarn@3.5.1"
"packageManager": "yarn@3.6.0"
}
7 changes: 7 additions & 0 deletions content-sample/projects/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- title: 建物の外装工事に用いる「ゴンドラ」の設計・検査対応
tags:
- Inventor
- AutoCAD
date: 2017-04-01T00:00:00+09:00
endDate: 2019-01-01T00:00:00+09:00
icon: <path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"></path>
3 changes: 3 additions & 0 deletions content-sample/speakerdeck/slides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- title: ファイブフィンガーでスクラムチームの心理的安全性を高める / Fist to Five
date: 2023-05-29T00:00:00+09:00
url: https://speakerdeck.com/bicstone/fist-to-five
3 changes: 3 additions & 0 deletions content-sample/zenn/articles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- title: コードレビューにラベルを付けるだけでチームの心理的安全性を高めた話
date: 2023-03-06T11:00:00+09:00
url: https://zenn.dev/bicstone/articles/code-review-comment-prefix
Loading

0 comments on commit a8326f7

Please sign in to comment.