Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"window.autoDetectColorScheme": true
}
7 changes: 7 additions & 0 deletions client-side/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react',
],
};

411 changes: 234 additions & 177 deletions client-side/package-lock.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions client-side/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@fontsource/roboto": "^5.0.13",
"@mui/base": "^5.0.0-beta.40",
"@mui/icons-material": "^5.16.0",
"@mui/material": "^5.16.0",
"@mui/styled-engine-sc": "^6.0.0-alpha.18",
Expand All @@ -17,11 +18,10 @@
"@testing-library/user-event": "^13.5.0",
"@types/redux": "^3.6.31",
"axios": "^1.7.2",
"formik": "^2.4.6",

"jest": "^29.7.0",
"formik": "^2.4.6",
"html2canvas": "^1.4.1",
"html2pdf.js": "^0.10.2",
"jest": "^29.7.0",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.8.2",
"react": "^18.3.1",
Expand All @@ -38,7 +38,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "jest",
"eject": "react-scripts eject",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
Expand All @@ -63,6 +63,8 @@
]
},
"devDependencies": {
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@chromatic-com/storybook": "^1.6.0",
"@eslint/compat": "^1.1.0",
"@eslint/js": "^9.6.0",
Expand Down
12 changes: 6 additions & 6 deletions client-side/src/stories/GenericInput/genericInput.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import './style.scss';
@import '../variables.scss';

.generic-input {
.MuiOutlinedInput-root {
Expand All @@ -24,12 +24,12 @@
}

&.Mui-disabled {
opacity: 0.7;
cursor: not-allowed;
opacity: 0.7;
cursor: not-allowed;

input {
color: rgba($color-black, 0.7);
pointer-events: none;
color: rgba($color-black, 0.7);
pointer-events: none;
}
}

Expand Down Expand Up @@ -69,4 +69,4 @@
color: $color-error;
}
}
}
}
86 changes: 0 additions & 86 deletions client-side/src/stories/genericInput.jsx

This file was deleted.

78 changes: 0 additions & 78 deletions client-side/src/stories/genericInput.scss

This file was deleted.

91 changes: 0 additions & 91 deletions client-side/src/stories/genericInput.stories.js

This file was deleted.

4 changes: 1 addition & 3 deletions client-side/src/stories/header/header.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import '../variables.scss';
.arooundDiv{
.navbar{
.navbar{
background-color: $primary-color ;
color: $secondary-color ;
}
Expand Down Expand Up @@ -31,4 +30,3 @@
display: flex;
}
}
}
28 changes: 28 additions & 0 deletions client-side/src/stories/popup/popup.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as React from 'react';
import { Unstable_Popup as BasePopup } from '@mui/base/Unstable_Popup';
import GenericButton from '../Button/GenericButton';
import './popup.scss';

export default function SimplePopup({message='',labelButtonOutThePopup='open message',iconInButton,labelButtonInThePopup='delete message',onClick}) {
const [anchor, setAnchor] = React.useState(null);

const handleClick = (event) => {
setAnchor(anchor ? null : event.currentTarget);
};

const open = Boolean(anchor);
const id = open ? 'simple-popup' : undefined;

return (
<div>
<GenericButton className="secondary" label={labelButtonOutThePopup} aria-describedby={id} type="button" onClick={handleClick} />
<BasePopup id={id} open={open} anchor={anchor}>
<div className='popup-body'>
<div className='massage'>{message}</div>
<GenericButton icon={iconInButton} className="secondary" onClick={onClick} label={labelButtonInThePopup}/>
</div>
</BasePopup>
</div>
);
}

Loading