From 2e82398e5cadb773f7e5d7c72a44b893b1716ea1 Mon Sep 17 00:00:00 2001
From: Hayden <64056131+hay-kot@users.noreply.github.com>
Date: Sun, 25 Sep 2022 14:33:13 -0800
Subject: [PATCH] chore: cleanup (#27)
* implement password score UI and functions
* update strings tests to use `test`instead of `it`
* update typing
* refactor login/register UI+Logic
* fix width on switches to properly display
* fetch and store self in store
* (WIP) unify card styles
* update labels page
* bump nuxt
* use form area
* use text area for description
* unify confirm API
* unify UI around pages
* change header background height
---
frontend/components/App/Header.vue | 2 +-
frontend/components/Base/Card.vue | 16 +
frontend/components/Label/CreateModal.vue | 2 +-
frontend/components/Location/CreateModal.vue | 2 +-
.../global/DetailsSection/DetailsSection.vue | 32 +
.../components/global/DetailsSection/index.ts | 2 +
.../components/global/DetailsSection/types.ts | 15 +
frontend/components/global/PasswordScore.vue | 40 +
frontend/composables/use-confirm.ts | 7 +-
frontend/composables/use-password-score.ts | 37 +
frontend/lib/api/user.ts | 10 +-
frontend/lib/passwords/index.test.ts | 30 +
frontend/lib/passwords/index.ts | 45 +
frontend/lib/strings/index.test.ts | 26 +-
frontend/package.json | 2 +-
frontend/pages/home.vue | 122 +-
frontend/pages/index.vue | 118 +-
frontend/pages/item/[id]/edit.vue | 2 +-
frontend/pages/item/[id]/index.vue | 4 +-
frontend/pages/label/[id].vue | 108 +-
frontend/pages/location/[id].vue | 111 +-
frontend/pnpm-lock.yaml | 2510 ++++++-----------
frontend/stores/auth.ts | 3 +
frontend/test/vitest.config.ts | 1 -
24 files changed, 1313 insertions(+), 1934 deletions(-)
create mode 100644 frontend/components/Base/Card.vue
create mode 100644 frontend/components/global/DetailsSection/DetailsSection.vue
create mode 100644 frontend/components/global/DetailsSection/index.ts
create mode 100644 frontend/components/global/DetailsSection/types.ts
create mode 100644 frontend/components/global/PasswordScore.vue
create mode 100644 frontend/composables/use-password-score.ts
create mode 100644 frontend/lib/passwords/index.test.ts
create mode 100644 frontend/lib/passwords/index.ts
diff --git a/frontend/components/App/Header.vue b/frontend/components/App/Header.vue
index 678e1be..176aa04 100644
--- a/frontend/components/App/Header.vue
+++ b/frontend/components/App/Header.vue
@@ -64,7 +64,7 @@
+
Password Strength: {{ message }}
+ +@@ -98,6 +112,7 @@
Welcome back,
-Username
-User
+