Repository navigation
feat: accounts を開くまでログインとアカウント管理の入口を隠す - #2
Merged
Merged
Conversation
accounts は Cloudflare Access で運営者だけに見える状態なので、 ほかの人がログインを押すと Access の画面で行き止まりになる。 ビルドで data-accounts-entry の要素を hidden にし、accounts の origin を 空にしてセッションの取得もしない。LUMORPHIA_ACCOUNTS_OPEN=1 で元に戻る。 README の配信に Cloudflare Pages の設定を書き、古い記述を直した。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
何を変えるか
accounts は Cloudflare Access で運営者だけに見える状態なので、公開したトップでほかの人がログインを押すと Access の画面で行き止まりになる。相棒の判断で、accounts を開くまで入口を隠す。
index.htmlのログイン (ヘッダー)、「アカウントを管理」、フッターの「アカウント」にdata-accounts-entryを付けたnpm run buildは既定でその 3 つをhiddenにし、lumorphia-accounts-originを空にする。account.jsは origin が空だと何もしないので、/api/website/sessionも呼ばないLUMORPHIA_ACCOUNTS_OPEN=1でビルドし直せば元に戻るnpm run devはビルドを通さないので、手元と accounts の E2E では入口が見えるまま確かめたこと
npm test12/12 (隠す / 開くの 2 件を追加。実装前に落ちるのを確認済み)、npm run checkdistを 1280px と 390px で開き、ログインの入口が見えず、ヘッダーが崩れないことを確認🤖 Generated with Claude Code