Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/mock #6

Merged
merged 8 commits into from
Aug 29, 2024
Merged
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
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: CI/CD

on:
push:
branches: [ "main" , "dev" ]
pull_request:
branches: [ "main" ]


jobs:
build_frontend_and_push_to_docker_hub:
Expand Down
Binary file added src/assets/images/2photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Beautiful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Blonde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Entrepreneur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Smilin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Studile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Waie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Waistl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/Woman6e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/amera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/fident.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ge3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/gen506.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/gen7d.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/genera28.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generat.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generat6.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generate9644e1857.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generateb8.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generated.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generated0705.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generated120.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/generated1d6.jpeg
Binary file added src/assets/images/generated3506.jpeg
Binary file added src/assets/images/generated3823d.jpeg
Binary file added src/assets/images/generated3ddbb.jpeg
Binary file added src/assets/images/generated4c1.jpeg
Binary file added src/assets/images/generated506.jpeg
Binary file added src/assets/images/generated749.jpeg
Binary file added src/assets/images/generated9.jpeg
Binary file added src/assets/images/generated942fa.jpeg
Binary file added src/assets/images/generatedb35.jpeg
Binary file added src/assets/images/generatedbed2.jpeg
Binary file added src/assets/images/generatedc1.jpeg
Binary file added src/assets/images/generatedc16c58.jpeg
Binary file added src/assets/images/generatedd0506.jpeg
Binary file added src/assets/images/generateded2.jpeg
Binary file added src/assets/images/image.jpeg
Binary file added src/assets/images/lose.png
Binary file added src/assets/images/lowers.png
Binary file added src/assets/images/olated.png
Binary file added src/assets/images/unsash.png
Binary file added src/assets/images/unsn6deo.png
Binary file added src/assets/images/unspla66.png
Binary file added src/assets/images/unsplash.png
Binary file added src/assets/images/unsplash654.png
Binary file added src/assets/images/unsplash_kMJp7620W6U.png
5 changes: 2 additions & 3 deletions src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
setLoggedIn,
} from 'src/store/features/slice/userSlice';


export default function App() {
const { loggedIn, loading } = useAppSelector(selectUsers);
const [droppedCards, setDroppedCards] = useState<membersProps[]>([]);
Expand All @@ -37,8 +36,8 @@ export default function App() {
dispatch(fetchRegisterUser({ email, password }))
.unwrap()
.then((data) => {
if (data.access) {
localStorage.setItem('token', data.access);
if (data.token) {
localStorage.setItem('token', data.token);
dispatch(setLoggedIn(true));
navigate('/');
fetchTeamsId();
Expand Down
1 change: 1 addition & 0 deletions src/pages/Employees/Employees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default function Employees() {
title={card.position}
full_name={card.full_name}
department={card.department}
image={card.image}
index={index}
/>
))}
Expand Down
4 changes: 4 additions & 0 deletions src/pages/Profile/Profile.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@
cursor: pointer;
}

.colorBlack {
color: $main-text-black;
}

.link {
text-decoration: none;
}
7 changes: 2 additions & 5 deletions src/pages/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
selectUsers,
} from 'src/store/features/slice/userSlice';
import { useEffect } from 'react';
import { BASE_URL } from 'src/store/api';
import DigramOne from 'src/assets/images/diagram1.png';
import DigramTwo from 'src/assets/images/diagram2.png';
import DigramThree from 'src/assets/images/diagram3.png';
Expand All @@ -25,14 +24,12 @@ export default function Profile() {
dispatch(fetchGetProfile());
}, [dispatch]);

const imageUrl = profile?.image ? `${BASE_URL}${profile.image}` : '';

return (
<section className={styles.profile}>
<div className={styles.containerProfile}>
<div className={styles.photoContainer}>
<img
src={imageUrl}
src= {profile?.image}
alt='ваше фото'
className={styles.photo}
/>
Expand Down Expand Up @@ -105,7 +102,7 @@ export default function Profile() {
))}
</ul>
<a
className={`${styles.itemContainerItem} ${styles.colorBlue}`}
className={`${styles.itemContainerItem} ${styles.colorBlack}`}
href='#'
>
{cont.link}
Expand Down
1 change: 1 addition & 0 deletions src/pages/Teams/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default function Teams() {
}
return card;
};

const renderCardsServer = (card: membersProps) => {
if (!card.cellId || !card.subordinates) {
return null;
Expand Down
1 change: 1 addition & 0 deletions src/services/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const renderCards = (
>
<Card
id={card.id}
image={card.image}
title={card.position}
full_name={card.full_name}
department={card.department}
Expand Down
Loading