-
Notifications
You must be signed in to change notification settings - Fork 6
feat: スポンサー一覧ページを作成する #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
3b994c4
wip
ryamakuchi 2a87625
add pages/sponsors.vue
ryamakuchi 45014e6
path は /sponsors で不変のため余分なロジックを消した
ryamakuchi fb1cc1b
Contentful からスポンサー情報を取得できるようにした
ryamakuchi 90900c7
Home と同じようにスポンサー一覧を表示した
ryamakuchi c486419
sm サイズのコーディング
ryamakuchi e4229eb
md サイズのコーディング
ryamakuchi a639a6f
アンカー以外の lg サイズのコーディング
ryamakuchi c5b824c
アンカーをつけた
ryamakuchi 2f16dfb
smooth スクロールを実装した
ryamakuchi 277eb07
スクロールしたときに意図した位置までいくように画像の lazyload を外した
ryamakuchi e4f8cb3
/sponsors の中のみスクロールするように修正
ryamakuchi 5b55351
.active 以外の nav レイアウトを追加した(lg サイズ以上)
ryamakuchi fdc75ed
nav でもスポンサーのいないプランは非表示になるように
ryamakuchi 24179e7
lg サイズ以上の全体の余白の調整
ryamakuchi 79caba9
-margin の中の計算を分かりやすく正しく直した
ryamakuchi 349a418
.nuxt-link-active のときのスタイルを追加
ryamakuchi 7fbd178
lg サイズのアンカーにインタラクションをつける
ryamakuchi 1059133
型をつけた
ryamakuchi 9ec0bf2
トップページののリンクを /sponsors に変更した
ryamakuchi add7405
.nav の余計な要素を表示させないように修正
ryamakuchi 79e3ef7
yarn lint:fix
ryamakuchi 667a390
Merge branch 'master' into add-sponsor-details
ryamakuchi e09a1d1
sponsors.spec.ts を追加
ryamakuchi f0e051a
TheSponsorListSection.spec.ts に出ていた warn を解消
ryamakuchi 82e9292
SponsorsPage のテストに sponsorListMock を追加
ryamakuchi 5fdad4d
SponsorsPage にテストケースを追加した
ryamakuchi 0e1b15c
padding ではなく左右の余白は margin でとるように修正
ryamakuchi ba9ed6c
lg のローカルナビのフォントサイズやナビ同士の間隔を調整する
ryamakuchi 08c51ac
スムーズスクロールを window.scroll に切り替える
ryamakuchi 3bf1e8e
sm の .sponsor-name を line-height: 1; に修正する
ryamakuchi af8a1e7
トップに戻るボタンにスタイルを当てるためににクラスをつけた
ryamakuchi d0f7c1f
bronze は PR 文掲載なしに修正
ryamakuchi c23bf3f
トップに戻るボタンのスタイルの適用優先順位を変更した
ryamakuchi 817a535
fix: warning Attribute v-if should go before class
ryamakuchi f5f1583
sm サイズの PR 文と URL のフォントサイズを微調整
ryamakuchi 6f43c54
fix: margin の余分な指定を削除
ryamakuchi 4d758e6
Update src/pages/sponsors.vue
ryamakuchi f42d877
Update src/components/TheSponsorListSection.vue
ryamakuchi f283354
Update nuxt.config.ts
ryamakuchi 4ee4d38
Fix: .sponsor-list -> .sponsor-group-list
ryamakuchi 952a2c6
Fix: .nav -> .index
ryamakuchi 8705de8
Fix: Trailing Slash
ryamakuchi 09e634e
lg サイズ以上のインタラクションに関係するコードを削除
ryamakuchi dc0b4e9
Fix 非推奨の書き方 ssr: false -> mode: client
ryamakuchi e8fa7c7
アンカーを修正
ryamakuchi c4f4212
余白の調整
ryamakuchi 9325372
余分な変数を削除
ryamakuchi 67237fa
スクロールするときにヘッダーの高さ分上部をあけるように修正
ryamakuchi b6a0319
Merge branch 'master' into add-sponsor-details
ryamakuchi 9bb14af
ブロックが分かりやすいように改行を追加
ryamakuchi bfd7d9f
Contentful からスポンサー情報を取得する処理を Vuex に移動する
ryamakuchi 0002a80
スポンサー情報は Vuex Store を利用するように修正する
ryamakuchi bc5609b
TheSponsorListSection.vue のテストを修正 & 追加
ryamakuchi b02c7af
Vuex Store sponsors のテストを追加
ryamakuchi 650c2c3
contentful の .getEntries({order: 'fields.appliedAt'}) でスポンサーをソートするように変更
ryamakuchi 5f982dd
分かりにくいテストにコメントを追加
ryamakuchi 75f20eb
sponsors.vue のテストを追加する
ryamakuchi b602271
.index のアンカーにも trailing slash がついていることをテストで確認した
ryamakuchi 655824d
アンカー移動時のヘッダーとの余白を微調整
ryamakuchi 348dc7b
使っていない SCSS 変数を削除した
ryamakuchi ffeeb88
header-logo の高さを調節するときのために変数をグローバルに移した
ryamakuchi ef8012a
余計な CSS の important を削除した
ryamakuchi 5d0beec
banner の定義を Asset に変更
ryamakuchi 89ef943
余計なコメントを削除
ryamakuchi b05c192
Contenful に登録された内容をそのまま表示するようにした
ryamakuchi b896ec9
existSponsorPlans で sponsorPlans を絞り込んでおくように修正
ryamakuchi 9413e18
テストを修正
ryamakuchi d3fa102
メソッド名を変更 existSponsorPlans -> sponsorPlansToHaveSponsor
ryamakuchi d31af67
store/sponsors.spec.ts のテスト を修正
ryamakuchi e8da82f
fix: 'sponsorPlans を取得できる' -> 'sponsorPlan の一覧を取得できる'
ryamakuchi 166480f
.index のテストを修正
ryamakuchi 51e8eeb
platinumSponsorWrapper を使うように修正
ryamakuchi 340092f
fix: 'const platinumSponsor: string = sponsorList[2]' -> 'const plati…
ryamakuchi f07da6f
fix: sponsorPlansToHaveSponsor -> sponsorPlansHavingSponsors
ryamakuchi d17e4a5
getters をモックせず使うように変更
ryamakuchi 2b9adf2
Update src/types/sponsors.ts
ryamakuchi dc54f27
Merge branch 'add-sponsor-details' of github.com:kazupon/vuefes-2019 …
ryamakuchi 1b9e897
SponsorPlans を SponsorPlan に名前変更してファイルに切り出した
ryamakuchi 496e1b0
sponsorsByPlan のテストを修正
ryamakuchi 60e9470
fix: SponsorList -> Sponsor
ryamakuchi 46eb930
fix: .base-button に margin-top を設定した場合に development 環境では意図したとおりに余白が設定…
inouetakuya 8e8e69a
スロット構文を Vue.js 2.6 以降の新しい書き方に変更した
inouetakuya c88cc68
テストの書き方をカイゼンした
inouetakuya 44c88e0
renamed: test/fixtures/contentful/sponsorList.ts -> test/fixtures/con…
inouetakuya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
スポンサー配下であり、スポンサー情報であることは自明なので、下記でどうでしょう?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML の id 属性が数字から始まる場合、アンカーがうまく動作しないことがあったため
sponsor_
プレフィックスを入れました。ちなみに数字で始まる
sponsor.sys.id
もあるため、プレフィックスを外すとうまく動作しないことが分かるかと思います。確か HTML の仕様で id や class 属性の先頭に数字をつけられなかったと思うのですが、W3C や WHATWG や MDN の仕様書を探しても一次ソースを見つけることができず 😢(すみません...)
もし一次情報の記事を知っていたら教えていただけるとうれしいです! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あー、なるほど 👍
そすねー、自分もどうやって知ったんだっけなあ 🤔
結論
分かんない。途中まで調べたけど結局最後まで辿り着けませんでした。
後日、分かったら共有しますね〜
以下調べたログ
RFC3986
URI については RFC 3986 で定義されていますね。
RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax
https://tools.ietf.org/html/rfc3986
RFC3986 で
fragment
あるいはfragment identifier
と表記されているので、そちらの用語で調べた方がほしい情報に辿り着きやすそうです。RFC2046
という記述があり、つまり、fragment の format は RFC2046 に依存しているよ、と。
で、RFC2046 の中から、フラグメント識別子のフォーマットに関する記述を探してみたのですが、全然わからねえ...