From a5869f3d4c49c176f9bfc0c4e01fb77897b12d31 Mon Sep 17 00:00:00 2001 From: MissingLink <60206943+Patrick-ring-motive@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:17:17 -0600 Subject: [PATCH 1/5] Update api.js --- src/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index c029d81..8034527 100644 --- a/src/api.js +++ b/src/api.js @@ -21,7 +21,7 @@ export async function createList(listData) { ); return response.data; } catch (error) { - console.error('Error creating list:', error); + console.warn('Error creating list:', error,...arguments); throw error; } } @@ -42,7 +42,7 @@ export async function deleteList(listId) { }); return response.data; } catch (error) { - console.error('Error deleting list:', error); + console.warn('Error deleting list:', error,...arguments); throw error; } } From 76a1706c283939b8fb08719ac4f037ba23064ee5 Mon Sep 17 00:00:00 2001 From: MissingLink <60206943+Patrick-ring-motive@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:19:18 -0600 Subject: [PATCH 2/5] Update store.js --- src/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store.js b/src/store.js index 7e7733f..7e30131 100644 --- a/src/store.js +++ b/src/store.js @@ -36,7 +36,7 @@ const store = createStore({ commit('SET_SESSION_ID', sessionId); } } catch (error) { - console.error('Not authenticated:', error); + console.warn('Not authenticated:', error,...arguments); commit('LOGOUT'); } }, @@ -45,7 +45,7 @@ const store = createStore({ await axios.post('/auth/logout'); commit('LOGOUT'); } catch (error) { - console.error('Logout error:', error); + console.warn('Logout error:', error,...arguments); } }, }, From 3d0abb29c1afdab91519595369c6a1a2e98f34c5 Mon Sep 17 00:00:00 2001 From: MissingLink <60206943+Patrick-ring-motive@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:26:37 -0600 Subject: [PATCH 3/5] Update MinuteInput.vue --- src/components/ListItems/MinuteInput.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/ListItems/MinuteInput.vue b/src/components/ListItems/MinuteInput.vue index 2f8c807..6fb41b2 100644 --- a/src/components/ListItems/MinuteInput.vue +++ b/src/components/ListItems/MinuteInput.vue @@ -30,12 +30,7 @@ export default { methods: { validateInput(event) { const num = Number(event.target.value); - - if (isNaN(num) || num <= 0) { - this.minutes = ''; // Reset to empty if invalid - } else { - this.minutes = num; // Set valid number as minutes - } + this.minutes = (num > 0 ? num : ''); // Emit update:modelValue to enable two-way binding this.$emit('update:modelValue', String(this.minutes)); From dfee0755c24a37331f4f9af905a8b1779d95b3be Mon Sep 17 00:00:00 2001 From: MissingLink <60206943+Patrick-ring-motive@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:35:04 -0600 Subject: [PATCH 4/5] Update index.js --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index a917de4..87b30f3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -29,7 +29,7 @@ const router = createRouter({ }); // Navigation guard for protected routes -router.beforeEach((to, from, next) => { +router.beforeEach(functiom beforeEach(to, from, next) { const isAuthenticated = store.state.isAuthenticated; // Get auth status from Vuex if (to.matched.some(record => record.meta.requiresAuth)) { From 1a409e2f72b5092a8c316df19068d5741112813d Mon Sep 17 00:00:00 2001 From: philwing100 <94712619+philwing100@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:14:21 -0600 Subject: [PATCH 5/5] Update index.js Fixed syntax error --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 87b30f3..202cd76 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -29,7 +29,7 @@ const router = createRouter({ }); // Navigation guard for protected routes -router.beforeEach(functiom beforeEach(to, from, next) { +router.beforeEach(function beforeEach(to, from, next) { const isAuthenticated = store.state.isAuthenticated; // Get auth status from Vuex if (to.matched.some(record => record.meta.requiresAuth)) {