Skip to content

Commit

Permalink
feat: Upgrade cozy-ui 115.0.2
Browse files Browse the repository at this point in the history
And apply BC
  • Loading branch information
Merkur39 committed Dec 23, 2024
1 parent 0d62ec7 commit e45c8e0
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 38 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
"cozy-minilog": "3.3.1",
"cozy-realtime": "4.6.0",
"cozy-scripts": "^8.4.0",
"cozy-sharing": "^17.0.0",
"cozy-sharing": "^18.0.0",
"cozy-stack-client": "^51.6.0",
"cozy-ui": "^114.0.1",
"cozy-viewer": "^10.0.0",
"cozy-ui": "^115.0.2",
"cozy-viewer": "^11.3.1",
"date-fns": "2.30.0",
"diacritics": "1.3.0",
"filesize": "10.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/FileHistory/HistoryModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { translate } from 'cozy-ui/transpiled/react/providers/I18n'
import styles from './styles.styl'

const formatDate = (date, f) => {
return f(date, 'DD MMMM - HH:mm')
return f(date, 'dd LLLL - HH:mm')
}

const HistoryModal = ({
Expand Down
5 changes: 4 additions & 1 deletion src/components/FolderPicker/FolderPickerListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ const FolderPickerListItem: FC<FolderPickerListItemProps> = ({
onClick(file)
}

const formattedUpdatedAt = f(file.updated_at, t('table.row_update_format'))
const formattedUpdatedAt = f(
new Date(file.updated_at),
t('table.row_update_format')
)
const formattedSize = file.size
? filesize(file.size, { base: 10 })
: undefined
Expand Down
2 changes: 1 addition & 1 deletion src/declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ declare module 'cozy-ui/transpiled/react' {
declare module 'cozy-ui/transpiled/react/providers/I18n' {
export const useI18n: () => {
t: (key: string, options?: Record<string, unknown>) => string
f: (date: string, format: string) => string
f: (date: Date | number, format: string) => string
lang: string
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
"head_size": "Größe",
"head_status": "Teilen",
"head_thumbnail_size": "Wechsele die Größe des Vorschaubildes",
"row_update_format": "DD.MM.YYYY",
"row_update_format_full": "DD.MM.YYYY",
"row_update_format": "dd.LL.yyyy",
"row_update_format_full": "dd.LL.yyyy",
"row_read_only": "Freigeben (nur Lesen)",
"row_read_write": "Freigeben (Lesen & Schreiben)",
"row_size_symbols": {
Expand Down
6 changes: 3 additions & 3 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
"head_size": "Size",
"head_status": "Share",
"head_thumbnail_size": "Switch thumbnail size",
"row_update_format": "MMM D, YYYY",
"row_update_format_full": "MMMM D, YYYY",
"row_update_format": "LLL d, yyyy",
"row_update_format_full": "LLLL d, yyyy",
"row_read_only": "Share (Read only)",
"row_read_write": "Share (Read & Write)",
"row_size_symbols": {
Expand Down Expand Up @@ -796,7 +796,7 @@
"label": "Open directory"
},
"LastUpdate": {
"titleFormat": "MMMM DD, YYYY, HH:MM"
"titleFormat": "LLLL dd, yyyy, HH:MM"
},
"PublicNoteRedirect": {
"error": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
"head_size": "Tamaño",
"head_status": "Compartir",
"head_thumbnail_size": "Cambiar el tamaño de las miniaturas",
"row_update_format": "MMM D, AAAA",
"row_update_format_full": "MMM D, AAAA",
"row_update_format": "LLL d, yyyy",
"row_update_format_full": "LLL d, yyyy",
"row_read_only": "Compartido (sólo en lectura)",
"row_read_write": "Compartido (Lectura & Escritura)",
"row_size_symbols": {
Expand Down
6 changes: 3 additions & 3 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
"head_size": "Taille",
"head_status": "Partage",
"head_thumbnail_size": "Changer la taille des miniatures",
"row_update_format": "D MMM YYYY",
"row_update_format_full": "D MMMM YYYY",
"row_update_format": "d LLL yyyy",
"row_update_format_full": "d LLLL yyyy",
"row_read_only": "Partagé (lecture seule)",
"row_read_write": "Partagé (lecture & écriture)",
"row_size_symbols": {
Expand Down Expand Up @@ -797,7 +797,7 @@
"label": "Ouvrir le dossier"
},
"LastUpdate": {
"titleFormat": "DD MMMM YYYY, HH:MM"
"titleFormat": "dd LLLL yyyy, HH:MM"
},
"PublicNoteRedirect": {
"error": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@
"head_name": "Nome",
"head_update": "Ultimo aggiornamento",
"head_size": "Dimensione",
"row_update_format": "MMM D, YYYY",
"row_update_format_full": "MMMM D, YYYY",
"row_update_format": "LLL d, yyyy",
"row_update_format_full": "LLLL d, yyyy",
"row_read_only": "Condividi (Solo Lettura)",
"row_read_write": "Condividi (Lettura e Scrittura)",
"row_size_symbols": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"head_update": "最終更新",
"head_size": "サイズ",
"head_thumbnail_size": "サムネイルのサイズを切り替え",
"row_update_format": "yyyy/MM/dd",
"row_update_format_full": "YYYY/MM/DD",
"row_update_format": "yyyy/LL/dd",
"row_update_format_full": "yyyy/LL/dd",
"row_read_only": "共有 (読み取り専用)",
"row_read_write": "共有 (読み書き)",
"row_size_symbols": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/nl_NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
"head_size": "Grootte",
"head_status": "Delen",
"head_thumbnail_size": "Miniatuurgrootte aanpassen",
"row_update_format": "MMM D, YYYY",
"row_update_format_full": "MMMM D, YYYY",
"row_update_format": "LLL d, yyyy",
"row_update_format_full": "LLLL d, yyyy",
"row_read_only": "Delen (alleen-lezen)",
"row_read_write": "Delen (lezen en bewerken)",
"row_size_symbols": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
"head_name": "Имя",
"head_update": "Последнее обновление",
"head_size": "Размер",
"row_update_format": "MMM D, YYYY",
"row_update_format_full": "MMMM D, YYYY",
"row_update_format": "LLL d, yyyy",
"row_update_format_full": "LLLL d, yyyy",
"row_read_only": "Поделится (Чтение)",
"row_read_write": "Поделится (Чтение и Запись)",
"row_size_symbols": {
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6645,10 +6645,10 @@ cozy-scripts@^8.4.0:
webpack-dev-server "3.10.3"
webpack-merge "4.2.2"

cozy-sharing@^17.0.0:
version "17.0.0"
resolved "https://registry.yarnpkg.com/cozy-sharing/-/cozy-sharing-17.0.0.tgz#7da5ec722aa37b9416da845092844e268fe144c0"
integrity sha512-rUDqZLE8BOzfW6QLrEL/7zdKeQbd9m3WdZ2nKXZHkK2ovrfUs7sa2lGtjm0gYn0RYPG0Cfpv237PnhcvHSQzXQ==
cozy-sharing@^18.0.0:
version "18.0.0"
resolved "https://registry.yarnpkg.com/cozy-sharing/-/cozy-sharing-18.0.0.tgz#1c5e14c41a283b67727f896ab3ff7fabc7a6dda4"
integrity sha512-cgoTwwr+FU5GbQexde1gyFYnHem0cyRneo89IdnO1XAbi2w7FkHN/99eDZv7Z+xuMOH05TEQR/Kb2bPJz1tt9w==
dependencies:
"@cozy/minilog" "^1.0.0"
classnames "^2.2.6"
Expand Down Expand Up @@ -6691,10 +6691,10 @@ cozy-tsconfig@1.2.0:
resolved "https://registry.yarnpkg.com/cozy-tsconfig/-/cozy-tsconfig-1.2.0.tgz#17e61f960f139fae4d26cbac2254b9ab632b269e"
integrity sha512-TRHnY9goF3FzVlUbP7BcHxuN2XAA4AmppT4fHHZmTKaSwYTByVR1Al+riFMDbce94kJZ1wzl9WNLWQuqzGZ6Cw==

cozy-ui@^114.0.1:
version "114.0.1"
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-114.0.1.tgz#c3321fbb3272868d50d32dae1792a5668d06bb7f"
integrity sha512-uq0SnZrUPMTya5NiRHxo9qVU/8s59RpO4M1S5w6oglChO+CZSavNi69FNi/bYaBtzrULEXyeXt1QDdRMgRP7gg==
cozy-ui@^115.0.2:
version "115.0.2"
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-115.0.2.tgz#8976de6e6141bd7255092f6e432ddacdb18d4689"
integrity sha512-U74ebvEQdQC1eNTfOEacHAM3yinNHVE3FfmvXyiIg2L0Yrjl2jk2LibdNVq5apHVqVKyJCe6El+tnVsX7x7rDg==
dependencies:
"@babel/runtime" "^7.3.4"
"@material-ui/core" "4.12.3"
Expand All @@ -6703,7 +6703,7 @@ cozy-ui@^114.0.1:
chart.js "3.7.1"
classnames "^2.2.5"
cozy-interapp "^0.5.4"
date-fns "^1.28.5"
date-fns "2.30.0"
filesize "8.0.7"
hammerjs "^2.0.8"
intersection-observer "0.11.0"
Expand All @@ -6721,10 +6721,10 @@ cozy-ui@^114.0.1:
react-swipeable-views "^0.13.3"
rooks "^5.11.2"

cozy-viewer@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/cozy-viewer/-/cozy-viewer-10.0.0.tgz#0dd7d18a6625034bd072698188454ac28289a573"
integrity sha512-8MhPi/OtdkjbpCEInld8awjo1yeinAEoFma1eJpVHoN6Fotj3hHouCdOj0+kqlp7mebUHBtTvUQFGZ0DmWaKSQ==
cozy-viewer@^11.3.1:
version "11.3.1"
resolved "https://registry.yarnpkg.com/cozy-viewer/-/cozy-viewer-11.3.1.tgz#4d0c6154d4d826ae957f86c2299116bcc30527ae"
integrity sha512-TUqqA23bpaQLvjiaWqIGsZzagpuNNckmWLuRdUdNJvJ1iboi+93dJVsDOpttkXjVWOyfq1EkUnDb9F7fGY8b3g==
dependencies:
classnames "^2.2.5"
hammerjs "^2.0.8"
Expand Down Expand Up @@ -7078,7 +7078,7 @@ date-fns@2.30.0, date-fns@^2.22.1:
dependencies:
"@babel/runtime" "^7.21.0"

date-fns@^1.28.5, date-fns@^1.30.1:
date-fns@^1.30.1:
version "1.30.1"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c"
integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==
Expand Down

0 comments on commit e45c8e0

Please sign in to comment.