Skip to content

Commit

Permalink
Merge pull request #42 from JimTheCat/CU-8695jvc58_Update-dependencie…
Browse files Browse the repository at this point in the history
…s_Patryk-Kosiski

chore: Update libraries
  • Loading branch information
JimTheCat authored Sep 8, 2024
2 parents 9d327b9 + 6c4a645 commit b87cc2e
Show file tree
Hide file tree
Showing 7 changed files with 6,979 additions and 4,765 deletions.
11,668 changes: 6,941 additions & 4,727 deletions frontend/package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/react": "^11.13.3",
"@mantine/core": "^6.0.20",
"@mantine/dates": "^6.0.20",
"@mantine/form": "^6.0.20",
"@mantine/hooks": "^6.0.20",
"@tabler/icons-react": "^2.34.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.50",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"axios": "^1.7.4",
"dayjs": "^1.11.9",
"http-proxy-middleware": "^2.0.6",
"i18next": "^23.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.2.2",
"react-router-dom": "^6.15.0",
"@tabler/icons-react": "^3.14.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^22.5.1",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"axios": "^1.7.5",
"dayjs": "^1.11.13",
"http-proxy-middleware": "^3.0.0",
"i18next": "^23.14.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.0.1",
"react-router-dom": "^6.26.1",
"react-scripts": "^5.0.1",
"react-tsparticles": "^2.12.2",
"tabler-icons-react": "^1.56.0",
"tsparticles": "^2.12.0",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"web-vitals": "^4.2.3"
},
"scripts": {
"start": "react-scripts start",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/Services/Utils/i18nInitializer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import plGender from "../../Translations/pl/gender.json";
import plRecovery from "../../Translations/pl/recovery.json";

export const i18nInitializer = () => {
const language = localStorage.getItem('language') == null ? 'en' : localStorage.getItem('language');
let language = localStorage.getItem('language');
if (language === null) language = 'en';

return i18next.init({
interpolation: { escapeValue: false }, // React already does escaping
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/__tests__/BluredGradient.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { BluredGradient } from '../Components/BluredGradient';
import {render} from '@testing-library/react';
import '@testing-library/jest-dom';
import {BluredGradient} from '../Components/BluredGradient';

test('renders BluredGradient component with default values', () => {
const { container } = render(<BluredGradient />);
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/__tests__/ContainerVhVw.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect'; // Dla dodatkowych matcherów

import { ContainerVhVw } from '../Components/ContainerVhVw'; // Import komponentu
import {render} from '@testing-library/react';
import '@testing-library/jest-dom'; // Dla dodatkowych matcherów
import {ContainerVhVw} from '../Components/ContainerVhVw'; // Import komponentu

test('renders ContainerVhVw with given vw and vh values', () => {
// Ustaw wartości vw i vh
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render, fireEvent } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { Footer } from '../Components/Footer';
import {fireEvent, render} from '@testing-library/react';
import '@testing-library/jest-dom';
import {Footer} from '../Components/Footer';

const mockChangeLanguage = jest.fn();

Expand Down
18 changes: 9 additions & 9 deletions frontend/src/reportWebVitals.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ReportHandler } from 'web-vitals';
import {MetricType} from "web-vitals";

const reportWebVitals = (onPerfEntry?: ReportHandler) => {
const reportWebVitals = (onPerfEntry?: (metric: MetricType) => void) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
import("web-vitals").then(({onCLS, onINP, onFCP, onLCP, onTTFB}) => {
onCLS(onPerfEntry);
onINP(onPerfEntry);
onFCP(onPerfEntry);
onLCP(onPerfEntry);
onTTFB(onPerfEntry);
});
}
};

export default reportWebVitals;
export default reportWebVitals;

0 comments on commit b87cc2e

Please sign in to comment.