Repository navigation
promote: data를 main으로 올린다 #3040
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c774351
fix: 첫 화면을 정적 스켈레톤으로 고정하고 스타일과 관리자 지표를 맞춘다
twoimo 47e9342
Merge pull request #3033 from twoimo/codex/home-static-skeleton-20260924
twoimo c22c603
sync: data의 승격 머지를 develop에 포함한다
twoimo f2ecff4
Merge pull request #3035 from twoimo/codex/sync-data-tip-into-develop…
twoimo 0dd5426
fix: 실제 크롬이 올라오면 스켈레톤을 숨기고 배너 실패를 고정 코드로 반환한다
twoimo c71e812
Merge pull request #3036 from twoimo/codex/release-review-fixes-20260924
twoimo 6c7a28b
Merge pull request #3034 from twoimo/develop
twoimo 96f6645
sync: main의 승격 머지를 develop에 포함한다
twoimo 9494e55
sync: 최신 develop을 포함한다
twoimo 4ba91fa
Merge pull request #3037 from twoimo/codex/sync-main-tip-into-develop…
twoimo 75e5c2f
sync: data의 최신 승격 머지를 develop에 포함한다
twoimo 6b2495c
Merge pull request #3039 from twoimo/codex/sync-data-tip-into-develop…
twoimo 5943eb3
Merge pull request #3038 from twoimo/develop
twoimo 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import { NextResponse } from "next/server"; | ||
|
|
||
| import { requireAdmin } from "@/lib/auth/require-admin"; | ||
| import { createSupabaseServiceRoleClient } from "@/lib/supabase/service-role"; | ||
|
|
||
| export const runtime = "nodejs"; | ||
|
|
||
| const AD_BANNER_SELECT = [ | ||
| "id", | ||
| "title", | ||
| "description", | ||
| "image_url", | ||
| "video_url", | ||
| "media_type", | ||
| "link_url", | ||
| "is_active", | ||
| "priority", | ||
| "display_target", | ||
| "created_at", | ||
| "updated_at", | ||
| "created_by", | ||
| ].join(","); | ||
|
|
||
| export async function GET() { | ||
| const auth = await requireAdmin(); | ||
| if (!auth.ok) return auth.response; | ||
|
|
||
| try { | ||
| const supabase = createSupabaseServiceRoleClient(); | ||
| const { data, error } = await supabase | ||
| .from("ad_banners") | ||
| .select(AD_BANNER_SELECT) | ||
| .order("priority", { ascending: false }); | ||
|
|
||
| if (error) { | ||
| return NextResponse.json({ code: "banner_read_failed" }, { status: 500 }); | ||
| } | ||
|
|
||
| return NextResponse.json({ banners: data ?? [] }); | ||
| } catch { | ||
| return NextResponse.json({ code: "banner_read_failed" }, { status: 500 }); | ||
| } | ||
|
|
||
| } |
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
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.
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.
The new initial-home skeleton applies
animate-pulseto every placeholder without amotion-reduce:animate-noneoverride, while the home-specific stylesheet's blanket reduced-motion rule is commented out. Users who request reduced motion therefore still receive several continuously pulsing elements during startup; add the reduced-motion utility or an equivalent active media rule to these placeholders.Useful? React with 👍 / 👎.