-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feature(client): Timeline page for non-login users #8927
Conversation
@@ -71,6 +73,7 @@ const hideTitle = inject('shouldOmitHeaderTitle', false); | |||
const thin_ = props.thin || inject('shouldHeaderThin', false); | |||
|
|||
const el = $ref<HTMLElement | null>(null); | |||
const tabs = $i ? props.tabs : props.tabs?.filter(tab => !tab.loginRequired); |
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.
どんなタブを表示するかという制御は親側で行った方が分かりやすそう
(loginRequired は消して、timeline.vue 側でタブを出しわける)
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.
スプレッド代入だらけになるか、非ログイン時用とログイン時用で2回定義することになりそう
いっそヘッダーの方弄った方が他のページでも使えるし良いかなと思ったんだけど
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.
スプレッド代入だらけになるか、非ログイン時用とログイン時用で2回定義することになりそう
コード量は増えるけどそっちの方が設計的にはきれいな気がする
いっそヘッダーの方弄った方が他のページでも使えるし良いかなと思ったんだけど
ふーむ
悩むわね
Build fails.
|
headerTabとかcomputed使う必要ない気もする |
コンフリクト解決 |
またコンフリクトしていますが解消されますか? |
コンフリクト解消するか… #9747 を地味にここで修正してて、代わりに(勝手に)ギャラリーとページのリンクを追加してたんだけど ロール機能でタイムライン開閉あたりが変わったり、アイコン変わったりしててコンフリ解消するよりこっちは閉じて新しくPR作った方が楽説がある たいした変更量じゃ無いので… |
#9795 でやり直した |
What
非ログイン時でもタイムラインが使えるように
Why
Additional info (optional)
router.ts を見たところindexページには
globalCacheKey
がついていたがこちらにも付けた方が良かった方かは不明