Skip to content
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

コンテスト系ページ / コンポーネントの表示権限の整理 (フェーズ1用) #149

Open
arumakan1727 opened this issue Oct 12, 2023 · 0 comments
Assignees

Comments

@arumakan1727
Copy link
Contributor

arumakan1727 commented Oct 12, 2023

備考: フェーズ1 では admin 用画面はナシとする

ページの表示権限の整理

表示制御 ページパス
* contests
& contests/[slug]
* contests/[slug]/standings
A contests/[slug]/submissions
A contests/[slug]/submissions/[sid]
A contests/[slug]/tasks
A contests/[slug]/tasks/[seq]

現時点では /contests を prefix にもつページは全部で7つ

  • *: ログイン必要なし
  • &: ページ内部でログイン状態やコンテストの時刻などに応じてごちゃごちゃ
  • A:
    • コンテスト終了後なら誰でも見れる
    • コンテスト開始前は誰も見れない
    • コンテスト中はコンテスト参加者なら見れる
    • (now > contest.endAt) || (now >= contest.startAt && logined && registered)

コンポーネントの表示権限の整理

  • TaskDetailCommon (問題詳細)
    • 未ログインの場合は提出フォームの代わりに「提出するにはログインしてください」という文章・リンクを表示する
  • ContestSidebar (コンテストサイドバー)
    • TODO (あとで考える)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant