From ffa7f097af87e433886d75ff8e61f81f830135c8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 12 Dec 2023 20:20:36 +0800 Subject: [PATCH] :sparkles: Challenges Modification --- .../components/problem/solution/program.vue | 61 +++++++++++++++- application/pages/challenges/[id].vue | 71 +++++++++++-------- .../migrations/20231210135930_challenges.sql | 2 +- 3 files changed, 103 insertions(+), 31 deletions(-) diff --git a/application/components/problem/solution/program.vue b/application/components/problem/solution/program.vue index b802c0a..76360aa 100644 --- a/application/components/problem/solution/program.vue +++ b/application/components/problem/solution/program.vue @@ -1,11 +1,70 @@ \ No newline at end of file +.divider-below-code { + margin-top: 0 !important; +} + diff --git a/application/pages/challenges/[id].vue b/application/pages/challenges/[id].vue index 684759b..5ec251a 100644 --- a/application/pages/challenges/[id].vue +++ b/application/pages/challenges/[id].vue @@ -12,15 +12,14 @@ - - + - - - + - - diff --git a/supabase/migrations/20231210135930_challenges.sql b/supabase/migrations/20231210135930_challenges.sql index ab57fb1..1a4a7ec 100644 --- a/supabase/migrations/20231210135930_challenges.sql +++ b/supabase/migrations/20231210135930_challenges.sql @@ -32,5 +32,5 @@ policy "Enable update access for users' own items" on "public"."challenges" as permissive for update to public - using (author = auth.uid()) + using (author = auth.uid() and status = 'in-progress') with check (author = auth.uid()) \ No newline at end of file