From 5ee900ef2326252cdf66348c2f080f0e2b55bdf7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 7 Apr 2025 13:22:35 +0200 Subject: [PATCH] Update dependencies and improve stateWord logic in Activity component - Updated '@iconify-json/lucide' dependency to version 1.2.35 in package.json and pnpm-lock.yaml for compatibility. - Enhanced stateWord logic in Activity component to handle cases where the state string may be empty, ensuring it defaults to 'secret' when necessary. --- app/components/home/Activity.vue | 3 ++- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/components/home/Activity.vue b/app/components/home/Activity.vue index 49f7337..fc2fe37 100644 --- a/app/components/home/Activity.vue +++ b/app/components/home/Activity.vue @@ -50,7 +50,8 @@ const getActivity = computed(() => { .replace('Workspace:', '') .trim() : '' - const stateWord = state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret') + + const stateWord = state && state.split(' ').length >= 2 ? state.split(' ')[1] : t('secret') const ago = useTimeAgo(timestamps.start, { messages: activityMessages[locale.value] as UseTimeAgoMessages, }).value diff --git a/package.json b/package.json index 6ad34ef..c3ae7e4 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@iconify-json/logos": "^1.2.4", - "@iconify-json/lucide": "^1.2.34", + "@iconify-json/lucide": "^1.2.35", "@iconify-json/ph": "^1.2.2", "@iconify-json/twemoji": "^1.2.2", "@iconify-json/vscode-icons": "^1.2.18", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2bf042c..8216c5f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^1.2.4 version: 1.2.4 '@iconify-json/lucide': - specifier: ^1.2.34 - version: 1.2.34 + specifier: ^1.2.35 + version: 1.2.35 '@iconify-json/ph': specifier: ^1.2.2 version: 1.2.2 @@ -1290,8 +1290,8 @@ packages: '@iconify-json/logos@1.2.4': resolution: {integrity: sha512-XC4If5D/hbaZvUkTV8iaZuGlQCyG6CNOlaAaJaGa13V5QMYwYjgtKk3vPP8wz3wtTVNVEVk3LRx1fOJz+YnSMw==} - '@iconify-json/lucide@1.2.34': - resolution: {integrity: sha512-6xiITvlYP/5d6KQPRBHDQ+eaLxRWiTvXfuVGuNX2ahNLbEi0VKB04v008IQLPrMu/C4tRMI4+sRzHd/wSFxGZQ==} + '@iconify-json/lucide@1.2.35': + resolution: {integrity: sha512-q1OFEufIzxaiMuuLOrFmhVPvlj0asriU84w1MsfooeOAB2Tk1DFCuL61HJnb4lGxDhcxhU28m6bjYLW1fwox9Q==} '@iconify-json/ph@1.2.2': resolution: {integrity: sha512-PgkEZNtqa8hBGjHXQa4pMwZa93hmfu8FUSjs/nv4oUU6yLsgv+gh9nu28Kqi8Fz9CCVu4hj1MZs9/60J57IzFw==} @@ -7840,7 +7840,7 @@ snapshots: dependencies: '@iconify/types': 2.0.0 - '@iconify-json/lucide@1.2.34': + '@iconify-json/lucide@1.2.35': dependencies: '@iconify/types': 2.0.0