public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 00/12] Fix Auth Guard, Move SEO
@ 2025-03-08 19:26 Muhammad Rizki
  2025-03-08 19:26 ` [PATCH v2 01/12] fix(svelte): use relative false Muhammad Rizki
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Muhammad Rizki @ 2025-03-08 19:26 UTC (permalink / raw)
  To: Ammar Faizi
  Cc: Muhammad Rizki, Alviro Iskandar Setiawan, GNU/Weeb Mailing List

Hello,
This series fixes auth guard to prevent users calling API with invalid
credentials, they will redirected to the login page if invalid
credentials occurs.

Please give it a test again if this bug still occurs, thanks.

## Changelog

v1 -> v2
- Move SEO from +layout.svelte to +page.svelte of /home page.
- Fix auth guard to prevent users calling API with invalid credentials.

Muhammad Rizki (12):
  fix(svelte): use relative false
  fix(avatar): change avatarImg state to use from auth.user.photo state
  chore(profile): add toUpperCase() on getShortName()
  fix(profile): make social fields default to empty string
  chore(toaster): change toast message position and use richColors
  chore(profile): reset password value on success
  fix(profile-avatar): add delete avatar method
  chore(profile): add space for password confirmation form
  feat(ui): add dropdown-menu and update bits-ui version
  chore(sidebar-menu): change sidebar menu look
  chore(seo): move seo from layout to /home page
  fix(auth): fix auth guard when credentials is invalid

 package-lock.json                             |   8 +-
 package.json                                  |   2 +-
 src/lib/components/customs/app-sidebar.svelte | 230 ++++++++++++------
 .../dropdown-menu-checkbox-item.svelte        |  40 +++
 .../dropdown-menu-content.svelte              |  27 ++
 .../dropdown-menu-group-heading.svelte        |  19 ++
 .../dropdown-menu/dropdown-menu-item.svelte   |  23 ++
 .../dropdown-menu/dropdown-menu-label.svelte  |  23 ++
 .../dropdown-menu-radio-item.svelte           |  30 +++
 .../dropdown-menu-separator.svelte            |  16 ++
 .../dropdown-menu-shortcut.svelte             |  20 ++
 .../dropdown-menu-sub-content.svelte          |  19 ++
 .../dropdown-menu-sub-trigger.svelte          |  28 +++
 src/lib/components/ui/dropdown-menu/index.ts  |  50 ++++
 src/lib/hooks/auth.svelte.ts                  |  26 +-
 src/lib/hooks/http.svelte.ts                  |   4 +-
 src/lib/schemas/profile-schema.ts             |   8 +-
 src/routes/(protected)/+layout.svelte         |  15 +-
 src/routes/(protected)/+layout.ts             |   9 +-
 src/routes/(protected)/home/+page.svelte      |  10 +
 .../(protected)/settings/profile/+page.svelte | 120 +++++----
 .../(protected)/settings/profile/+page.ts     |   2 +-
 src/routes/+layout.svelte                     |   2 +-
 src/routes/+page.ts                           |   2 +
 svelte.config.js                              |   1 +
 25 files changed, 590 insertions(+), 144 deletions(-)
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
 create mode 100644 src/lib/components/ui/dropdown-menu/index.ts


base-commit: 063f5f0deac9844c05e8439dc0cc0d1e1d5063dd
--
Muhammad Rizki

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-03-08 19:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 19:26 [PATCH v2 00/12] Fix Auth Guard, Move SEO Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 01/12] fix(svelte): use relative false Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 02/12] fix(avatar): change avatarImg state to use from auth.user.photo state Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 03/12] chore(profile): add toUpperCase() on getShortName() Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 04/12] fix(profile): make social fields default to empty string Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 05/12] chore(toaster): change toast message position and use richColors Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 06/12] chore(profile): reset password value on success Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 07/12] fix(profile-avatar): add delete avatar method Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 08/12] chore(profile): add space for password confirmation form Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 09/12] feat(ui): add dropdown-menu and update bits-ui version Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 10/12] chore(sidebar-menu): change sidebar menu look Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 11/12] chore(seo): move seo from layout to /home page Muhammad Rizki
2025-03-08 19:26 ` [PATCH v2 12/12] fix(auth): fix auth guard when credentials is invalid Muhammad Rizki
2025-03-08 19:38 ` [PATCH v2 00/12] Fix Auth Guard, Move SEO Ammar Faizi
2025-03-08 19:51   ` Alviro Iskandar Setiawan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox