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 20, 2024
1 parent 803784c commit 42748ce
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"cozy-scripts": "^8.4.0",
"cozy-sharing": "^16.17.0",
"cozy-stack-client": "^51.6.0",
"cozy-ui": "^114.0.1",
"cozy-ui": "^115.0.2",
"cozy-viewer": "^10.0.0",
"date-fns": "2.30.0",
"diacritics": "1.3.0",
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
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
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 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 Expand Up @@ -13060,9 +13060,9 @@ msgpack5@^4.0.2:
readable-stream "^2.3.6"
safe-buffer "^5.1.2"

"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9":
"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9":
version "1.0.8"
resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c"
resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c"
dependencies:
"@juggle/resize-observer" "^3.1.3"
jest-environment-jsdom-sixteen "^1.0.3"
Expand Down

0 comments on commit 42748ce

Please sign in to comment.