Skip to content

Commit

Permalink
fix: update translations and dependencies (#1462)
Browse files Browse the repository at this point in the history
* fix: update translations

* fix: update husky hooks

* fix: update ui
  • Loading branch information
spaenleh authored Sep 19, 2024
1 parent eda7d06 commit 3646eef
Show file tree
Hide file tree
Showing 17 changed files with 736 additions and 1,537 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 0 additions & 4 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git status
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn type-check
yarn prettier:check
yarn lint
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn type-check
yarn lint
yarn build
2 changes: 1 addition & 1 deletion cypress/e2e/item/move/move.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ describe('Move Items', () => {
moveItems({ toItemPath: '' });

cy.wait('@moveItems').then(({ request: { url, body } }) => {
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(body.parentId).to.be.undefined;
folders.forEach((item) => {
expect(url).to.contain(item.id);
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/item/view/viewFolder.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('View Folder', () => {
cy.get(`#${ITEM_SEARCH_INPUT_ID}`).type(searchText);

cy.wait('@getChildren').then(({ request: { query } }) => {
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
expect(
(query.keywords as unknown as string[]).every((k) =>
searchText.includes(k),
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"@graasp/sdk": "4.29.1",
"@graasp/stylis-plugin-rtl": "2.2.0",
"@graasp/translations": "1.37.0",
"@graasp/ui": "4.27.0",
"@graasp/ui": "5.0.1",
"@mui/icons-material": "5.16.4",
"@mui/lab": "5.0.0-alpha.172",
"@mui/material": "5.16.4",
"@sentry/react": "7.118.0",
"@sentry/react": "7.119.0",
"axios": "1.7.7",
"date-fns": "3.6.0",
"date-fns": "4.1.0",
"filesize": "10.1.6",
"http-status-codes": "2.3.0",
"i18next": "23.15.1",
Expand All @@ -49,7 +49,7 @@
"react-dom": "18.3.1",
"react-ga4": "2.1.0",
"react-helmet-async": "2.0.5",
"react-i18next": "15.0.0",
"react-i18next": "15.0.2",
"react-image-crop": "11.0.7",
"react-qr-code": "2.0.15",
"react-query": "3.39.3",
Expand Down Expand Up @@ -98,11 +98,11 @@
]
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@cypress/code-coverage": "3.12.49",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^16.0.0",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@cypress/code-coverage": "3.13.1",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/jest": "29.5.13",
Expand All @@ -111,36 +111,36 @@
"@types/lodash.isequal": "4.5.8",
"@types/lodash.partition": "4.6.9",
"@types/lodash.truncate": "4.4.9",
"@types/node": "20.14.15",
"@types/node": "20.16.5",
"@types/papaparse": "5.3.14",
"@types/react": "18.3.7",
"@types/react-csv": "1.1.10",
"@types/react-dom": "18.3.0",
"@types/uuid": "10.0.0",
"@types/validator": "13.12.2",
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/parser": "7.17.0",
"@typescript-eslint/eslint-plugin": "8.6.0",
"@typescript-eslint/parser": "8.6.0",
"@vitejs/plugin-react": "4.3.1",
"concurrently": "8.2.2",
"cypress": "13.13.3",
"concurrently": "9.0.1",
"cypress": "13.14.2",
"cypress-localstorage-commands": "2.2.6",
"env-cmd": "10.1.0",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-react": "7.35.2",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-react-hooks": "4.6.2",
"husky": "9.0.11",
"nyc": "17.0.0",
"husky": "9.1.6",
"nyc": "17.1.0",
"prettier": "3.3.3",
"typescript": "5.5.4",
"vite": "5.3.6",
"vite-plugin-checker": "0.7.2",
"typescript": "5.6.2",
"vite": "5.4.6",
"vite-plugin-checker": "0.8.0",
"vite-plugin-istanbul": "6.0.2",
"vitest": "2.0.5"
"vitest": "2.1.1"
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion src/components/item/ItemContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const AppContent = ({
contextPayload={{
apiHost: API_HOST,
itemId: item.id,
memberId: member?.id,
accountId: member?.id,
permission,
settings: item.settings,
lang: item.settings?.lang || member?.extra?.lang || DEFAULT_LANG,
Expand Down
1 change: 0 additions & 1 deletion src/langs/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"BOOKMARKED_ITEMS_TITLE": "العناصر المفضلة",
"FLAG_ITEM_BUTTON": "علامة",
"FLAG_ITEM_MODAL_TITLE": "وضع علامة على العنصر",
"FLAG_ITEM_REASON_TITLE": "قم بإختيار سبب وضع علامة على هذا العنصر",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "هذا العنصر مخفي لأن العنصر الأصلي الخاص به مخفي.",
"HIDE_ITEM_HIDE_TEXT": "إخفاء",
"HIDE_ITEM_SHOW_TEXT": "اظهار",
Expand Down
1 change: 0 additions & 1 deletion src/langs/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export const BUILDER = {
BOOKMARKED_ITEMS_TITLE: 'BOOKMARKED_ITEMS_TITLE',
FLAG_ITEM_BUTTON: 'FLAG_ITEM_BUTTON',
FLAG_ITEM_MODAL_TITLE: 'FLAG_ITEM_MODAL_TITLE',
FLAG_ITEM_REASON_TITLE: 'FLAG_ITEM_REASON_TITLE',
HIDE_ITEM_HIDDEN_PARENT_INFORMATION: 'HIDE_ITEM_HIDDEN_PARENT_INFORMATION',
HIDE_ITEM_HIDE_TEXT: 'HIDE_ITEM_HIDE_TEXT',
HIDE_ITEM_SHOW_TEXT: 'HIDE_ITEM_SHOW_TEXT',
Expand Down
1 change: 0 additions & 1 deletion src/langs/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"BOOKMARKED_ITEMS_TITLE": "Lieblingselemente",
"FLAG_ITEM_BUTTON": "Markieren",
"FLAG_ITEM_MODAL_TITLE": "Element markieren",
"FLAG_ITEM_REASON_TITLE": "Wählen Sie den Grund für die Markierung dieses Elements aus",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "Dieses Element ist ausgeblendet, weil sein übergeordnetes Element ausgeblendet ist.",
"HIDE_ITEM_HIDE_TEXT": "Ausblenden",
"HIDE_ITEM_SHOW_TEXT": "Zeigen",
Expand Down
1 change: 0 additions & 1 deletion src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"BOOKMARKED_ITEMS_TITLE": "Bookmarks",
"FLAG_ITEM_BUTTON": "Flag",
"FLAG_ITEM_MODAL_TITLE": "Flag Item",
"FLAG_ITEM_REASON_TITLE": "Select reason for flagging this item",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "This item is hidden because its parent item is hidden.",
"HIDE_ITEM_HIDE_TEXT": "Hide",
"HIDE_ITEM_SHOW_TEXT": "Show",
Expand Down
1 change: 0 additions & 1 deletion src/langs/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"BOOKMARKED_ITEMS_TITLE": "Artículos favoritos",
"FLAG_ITEM_BUTTON": "Bandera",
"FLAG_ITEM_MODAL_TITLE": "Artículo de bandera",
"FLAG_ITEM_REASON_TITLE": "Seleccione el motivo para marcar este elemento",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "Este elemento está oculto porque su elemento principal está oculto.",
"HIDE_ITEM_HIDE_TEXT": "Esconder",
"HIDE_ITEM_SHOW_TEXT": "Espectáculo",
Expand Down
1 change: 0 additions & 1 deletion src/langs/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"BOOKMARKED_ITEMS_TITLE": "Signets",
"FLAG_ITEM_BUTTON": "Signaler",
"FLAG_ITEM_MODAL_TITLE": "Signaler l'élément",
"FLAG_ITEM_REASON_TITLE": "Sélectionner la raison du signalement de cet élément",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "Cet élément est caché car son élément parent est caché.",
"HIDE_ITEM_HIDE_TEXT": "Cacher",
"HIDE_ITEM_SHOW_TEXT": "Montrer",
Expand Down
1 change: 0 additions & 1 deletion src/langs/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"BOOKMARKED_ITEMS_TITLE": "Elementi preferiti",
"FLAG_ITEM_BUTTON": "Segnala",
"FLAG_ITEM_MODAL_TITLE": "Segnala elemento",
"FLAG_ITEM_REASON_TITLE": "Seleziona il motivo per cui segnali questo elemento",
"HIDE_ITEM_HIDDEN_PARENT_INFORMATION": "Questo elemento è nascosto perché il suo elemento padre è nascosto.",
"HIDE_ITEM_HIDE_TEXT": "Nascondi",
"HIDE_ITEM_SHOW_TEXT": "Mostra",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const copyToClipboard = async (
try {
await navigator.clipboard.writeText(s);
onSuccess?.();
} catch (e) {
} catch {
onError?.();
}
};
Loading

0 comments on commit 3646eef

Please sign in to comment.