forked from tutur3u/platform
-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add QR Generator page #357
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
Merged
Changes from 81 commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
4acc28e
initial commit for ae
travinhcot a3e052a
Added library and generate QR that can put link
travinhcot de1c272
feat(login): enhance sendOtpAction to conditionally handle Turnstile …
khangronky 2d9cbd9
refactor: improve component imports and styling consistency across sc…
khangronky f64aa86
fix(StudentForm): update form submission handling and improve initial…
khangronky 5ed9f51
add navbar neo-qr-generator button in cong cu sections
DungDao59 8f2c1db
style: apply biome formatting
DungDao59 3da0d0e
Merge pull request #322 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 223fcb9
successfull added UI/UX and QR
travinhcot 0e6b7b9
fixed vercel failed development
travinhcot 749d822
Added three buttons for png jpeg and webp format file
travinhcot 79ebba9
fix the deployment fail
travinhcot 548adb5
added color selected QR
travinhcot 70ecf2c
UI enhancement
DungDao59 8322806
fix minor error
DungDao59 63034c2
style: apply biome formatting
DungDao59 eff0d58
Merge pull request #344 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 c4ca120
fix installing dependencies
DungDao59 ae434e2
changed text-white to text-foreground
travinhcot c5776d5
Removed unneccessary functions
travinhcot 2353df7
fixed failed deployment
travinhcot 48a3f47
Merge branch 'feat/neo-QR-generator-dung-dao' into feat/neo-QR-generator
travinhcot 874566e
Remove unneccessary Save button
travinhcot d00d6db
fix the Front end with switching from vertical to horizontal
travinhcot e19675d
merge the left and right div, also move the logo under QR code
travinhcot ae1831e
some adjustment for UI
DungDao59 3626641
style: apply biome formatting
DungDao59 1ec0ad3
Merge pull request #353 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 f0c6ea6
improve UI QR generator
DungDao59 aed8890
style: apply biome formatting
DungDao59 0b2bf5c
Merge pull request #356 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 823b5e8
Merge branch 'main' into feat/neo-QR-generator
khangronky 09755be
Merge branch 'main' into feat/neo-QR-generator
khangronky b45afce
stable version of the QR code
DungDao59 dfaf9ef
improve UI of the QR generator - back 1 commit to the old version
DungDao59 834d470
Merge branch 'main' into feat/neo-QR-generator
khangronky 2d959a5
fixing style for design
travinhcot 3287a0f
Merge branch 'feat/neo-QR-generator' of https://github.com/rmit-nct/h…
travinhcot 78b6193
added new color picker for the color scheme pick
travinhcot 0d12fe2
added SEO patterns for the website
travinhcot 9826371
something
DungDao59 26540e5
fix dark mde and light mode input and QR increase imagesize
DungDao59 a8e9bae
fix the expected nested class
travinhcot 49b1aee
Merge branch 'feat/neo-QR-generator' of https://github.com/rmit-nct/h…
travinhcot 48f2db8
added missing "`"
travinhcot 8bf813a
Added generate button for correct input from users, otherwise the QR …
travinhcot 0c74473
fixed biome check error
travinhcot 8ef7731
fix biome check
travinhcot e52700d
remove redudant code
travinhcot a92d475
remove another unused code
travinhcot 1e49de3
Merge branch 'feat/neo-QR-generator' of https://github.com/rmit-nct/h…
relearn-cap 4f54cc7
Added frame for qr code
travinhcot 710044d
Merge branch 'feat/neo-QR-generator' of https://github.com/rmit-nct/h…
travinhcot 4f63ab0
Merge branch 'main' into feat/neo-QR-generator
khangronky d0f74d0
fix QR code image fixed live preview section and download section
DungDao59 f0373fc
style: apply biome formatting
DungDao59 38dac4d
Merge pull request #372 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 5a1c952
remove unused fields and colors
travinhcot 1f4f146
Merge branch 'main' into feat/neo-QR-generator
khangronky dcbc0d4
fix: remove unused punycode.js dependency from bun.lock
khangronky 70a9f60
remove unnecessary metadata
travinhcot 5615603
Merge branch 'feat/neo-shortener' into feat/neo-QR-generator-dung-dao
DungDao59 510517a
add feature for qrcode, change it to dynamic qrcode if needed
DungDao59 f95fdd4
style: apply biome formatting
DungDao59 938336b
Merge pull request #389 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 222604e
someting
DungDao59 abd7eca
style: apply biome formatting
DungDao59 0135fe9
Merge pull request #391 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 f0fce24
format fix
DungDao59 9a8380a
fix somethin
DungDao59 e3cc451
style: apply biome formatting
DungDao59 02a7fbf
Merge pull request #392 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 259a8a0
fix: regenerate supabase types
DungDao59 0c49bfd
Merge pull request #390 from rmit-nct/feat/neo-QR-generator-dung-dao
DungDao59 980cf60
Merge branch 'main' into feat/neo-QR-generator
khangronky cd3c8db
add error handling for login
DungDao59 490a19f
style: apply biome formatting
DungDao59 6bb0347
Merge pull request #394 from rmit-nct/fix/biome-formatting-feat/neo-Q…
DungDao59 c4098f4
fix error
DungDao59 ae124f1
Merge branch 'main' into feat/neo-QR-generator
khangronky 120b631
refactor: move dependencies from package.json at the project root to …
khangronky 14f8790
chore: remove unused data.json and userTracker.tsx files
khangronky 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
128 changes: 128 additions & 0 deletions
128
apps/db/supabase/migrations/20260424111249_add_qr_code.sql
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,128 @@ | ||
| create table "public"."qr_code" ( | ||
| "id" uuid not null default gen_random_uuid(), | ||
| "short_code" text not null, | ||
| "target_url" text, | ||
| "qr_type" character varying, | ||
| "design_settings" json, | ||
| "created_at" timestamp without time zone, | ||
| "scan_count" bigint, | ||
| "user_id" uuid default gen_random_uuid() | ||
| ); | ||
|
|
||
|
|
||
| alter table "public"."qr_code" enable row level security; | ||
|
|
||
|
|
||
| create table "public"."scans" ( | ||
| "id" uuid not null default gen_random_uuid(), | ||
| "qr_id" uuid not null default auth.uid(), | ||
| "scanned_at" timestamp without time zone, | ||
| "device_type" character varying, | ||
| "country" character varying, | ||
| "ip_address" text | ||
| ); | ||
|
|
||
|
|
||
| alter table "public"."scans" enable row level security; | ||
|
|
||
| CREATE UNIQUE INDEX qr_code_pkey ON public.qr_code USING btree (id); | ||
|
|
||
| CREATE UNIQUE INDEX scans_pkey ON public.scans USING btree (id); | ||
|
|
||
| alter table "public"."qr_code" add constraint "qr_code_pkey" PRIMARY KEY using index "qr_code_pkey"; | ||
|
|
||
| alter table "public"."scans" add constraint "scans_pkey" PRIMARY KEY using index "scans_pkey"; | ||
|
|
||
| alter table "public"."qr_code" add constraint "qr_code_user_id_fkey" FOREIGN KEY (user_id) REFERENCES public.users(id) ON UPDATE CASCADE ON DELETE CASCADE not valid; | ||
|
|
||
| alter table "public"."qr_code" validate constraint "qr_code_user_id_fkey"; | ||
|
|
||
| alter table "public"."scans" add constraint "scans_qr_id_fkey" FOREIGN KEY (qr_id) REFERENCES public.qr_code(id) ON UPDATE CASCADE ON DELETE CASCADE not valid; | ||
|
|
||
| alter table "public"."scans" validate constraint "scans_qr_id_fkey"; | ||
|
|
||
| grant delete on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant insert on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant references on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant select on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant trigger on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant truncate on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant update on table "public"."qr_code" to "anon"; | ||
|
|
||
| grant delete on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant insert on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant references on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant select on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant trigger on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant truncate on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant update on table "public"."qr_code" to "authenticated"; | ||
|
|
||
| grant delete on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant insert on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant references on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant select on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant trigger on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant truncate on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant update on table "public"."qr_code" to "service_role"; | ||
|
|
||
| grant delete on table "public"."scans" to "anon"; | ||
|
|
||
| grant insert on table "public"."scans" to "anon"; | ||
|
|
||
| grant references on table "public"."scans" to "anon"; | ||
|
|
||
| grant select on table "public"."scans" to "anon"; | ||
|
|
||
| grant trigger on table "public"."scans" to "anon"; | ||
|
|
||
| grant truncate on table "public"."scans" to "anon"; | ||
|
|
||
| grant update on table "public"."scans" to "anon"; | ||
|
|
||
| grant delete on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant insert on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant references on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant select on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant trigger on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant truncate on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant update on table "public"."scans" to "authenticated"; | ||
|
|
||
| grant delete on table "public"."scans" to "service_role"; | ||
|
|
||
| grant insert on table "public"."scans" to "service_role"; | ||
|
|
||
| grant references on table "public"."scans" to "service_role"; | ||
|
|
||
| grant select on table "public"."scans" to "service_role"; | ||
|
|
||
| grant trigger on table "public"."scans" to "service_role"; | ||
|
|
||
| grant truncate on table "public"."scans" to "service_role"; | ||
|
|
||
| grant update on table "public"."scans" to "service_role"; | ||
|
|
||
|
|
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
32 changes: 32 additions & 0 deletions
32
apps/web/src/app/[locale]/(marketing)/neo-qr-generator/data.json
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,32 @@ | ||
| [ | ||
| { | ||
| "id": "1", | ||
| "name": "John Doe", | ||
| "dob": "1995-05-15", | ||
| "major": "Computer Science" | ||
| }, | ||
| { | ||
| "id": "2", | ||
| "name": "Jane Smith", | ||
| "dob": "1996-08-22", | ||
| "major": "Mathematics" | ||
| }, | ||
| { | ||
| "id": "3", | ||
| "name": "Emily Johnson", | ||
| "dob": "1994-12-10", | ||
| "major": "Physics" | ||
| }, | ||
| { | ||
| "id": "4", | ||
| "name": "Michael Brown", | ||
| "dob": "1997-03-30", | ||
| "major": "Chemistry" | ||
| }, | ||
| { | ||
| "id": "5", | ||
| "name": "Sarah Davis", | ||
| "dob": "1995-11-05", | ||
| "major": "Biology" | ||
| } | ||
| ] |
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.
Uh oh!
There was an error while loading. Please reload this page.