mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-31 10:29:25 +01:00
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.
This commit is contained in:
@@ -50,7 +50,8 @@ const getActivity = computed(() => {
|
|||||||
.replace('Workspace:', '')
|
.replace('Workspace:', '')
|
||||||
.trim()
|
.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, {
|
const ago = useTimeAgo(timestamps.start, {
|
||||||
messages: activityMessages[locale.value] as UseTimeAgoMessages,
|
messages: activityMessages[locale.value] as UseTimeAgoMessages,
|
||||||
}).value
|
}).value
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify-json/logos": "^1.2.4",
|
"@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/ph": "^1.2.2",
|
||||||
"@iconify-json/twemoji": "^1.2.2",
|
"@iconify-json/twemoji": "^1.2.2",
|
||||||
"@iconify-json/vscode-icons": "^1.2.18",
|
"@iconify-json/vscode-icons": "^1.2.18",
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -12,8 +12,8 @@ importers:
|
|||||||
specifier: ^1.2.4
|
specifier: ^1.2.4
|
||||||
version: 1.2.4
|
version: 1.2.4
|
||||||
'@iconify-json/lucide':
|
'@iconify-json/lucide':
|
||||||
specifier: ^1.2.34
|
specifier: ^1.2.35
|
||||||
version: 1.2.34
|
version: 1.2.35
|
||||||
'@iconify-json/ph':
|
'@iconify-json/ph':
|
||||||
specifier: ^1.2.2
|
specifier: ^1.2.2
|
||||||
version: 1.2.2
|
version: 1.2.2
|
||||||
@@ -1290,8 +1290,8 @@ packages:
|
|||||||
'@iconify-json/logos@1.2.4':
|
'@iconify-json/logos@1.2.4':
|
||||||
resolution: {integrity: sha512-XC4If5D/hbaZvUkTV8iaZuGlQCyG6CNOlaAaJaGa13V5QMYwYjgtKk3vPP8wz3wtTVNVEVk3LRx1fOJz+YnSMw==}
|
resolution: {integrity: sha512-XC4If5D/hbaZvUkTV8iaZuGlQCyG6CNOlaAaJaGa13V5QMYwYjgtKk3vPP8wz3wtTVNVEVk3LRx1fOJz+YnSMw==}
|
||||||
|
|
||||||
'@iconify-json/lucide@1.2.34':
|
'@iconify-json/lucide@1.2.35':
|
||||||
resolution: {integrity: sha512-6xiITvlYP/5d6KQPRBHDQ+eaLxRWiTvXfuVGuNX2ahNLbEi0VKB04v008IQLPrMu/C4tRMI4+sRzHd/wSFxGZQ==}
|
resolution: {integrity: sha512-q1OFEufIzxaiMuuLOrFmhVPvlj0asriU84w1MsfooeOAB2Tk1DFCuL61HJnb4lGxDhcxhU28m6bjYLW1fwox9Q==}
|
||||||
|
|
||||||
'@iconify-json/ph@1.2.2':
|
'@iconify-json/ph@1.2.2':
|
||||||
resolution: {integrity: sha512-PgkEZNtqa8hBGjHXQa4pMwZa93hmfu8FUSjs/nv4oUU6yLsgv+gh9nu28Kqi8Fz9CCVu4hj1MZs9/60J57IzFw==}
|
resolution: {integrity: sha512-PgkEZNtqa8hBGjHXQa4pMwZa93hmfu8FUSjs/nv4oUU6yLsgv+gh9nu28Kqi8Fz9CCVu4hj1MZs9/60J57IzFw==}
|
||||||
@@ -7840,7 +7840,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@iconify/types': 2.0.0
|
'@iconify/types': 2.0.0
|
||||||
|
|
||||||
'@iconify-json/lucide@1.2.34':
|
'@iconify-json/lucide@1.2.35':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@iconify/types': 2.0.0
|
'@iconify/types': 2.0.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user