Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into #955-footer1200media
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmyko committed Nov 28, 2024
2 parents 6b91f4a + ebcf9e8 commit 5f83600
Show file tree
Hide file tree
Showing 127 changed files with 2,790 additions and 2,312 deletions.
6 changes: 6 additions & 0 deletions BackEnd/forum/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ class ForumPagination(PageNumberPagination):
page_size_query_param = "page_size"
max_page_size = 64

def get_page_number(self, request, paginator):
page_number = super().get_page_number(request, paginator)
if int(page_number) > paginator.num_pages:
page_number = paginator.num_pages or 1
return page_number

def get_paginated_response(self, data):
return Response(
{
Expand Down
Binary file modified FrontEnd/public/favicon-16x16.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 modified FrontEnd/public/favicon-32x32.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 modified FrontEnd/public/favicon.ico
Binary file not shown.
Binary file removed FrontEnd/public/forum-logo.ico
Binary file not shown.
Binary file added FrontEnd/public/img/cookies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/baget.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/car.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/hotel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/people.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/post.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/rocket.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/shop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions FrontEnd/public/svg/wine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion FrontEnd/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

body {
width: 100vw;
}
}
6 changes: 6 additions & 0 deletions FrontEnd/src/components/CompanyCard/CompanyCard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Link } from 'react-router-dom';
import { mutate } from 'swr';
import styles from './CompanyCard.module.css';
import { useAuth } from '../../hooks';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -45,6 +46,11 @@ export default function CompanyCard({
changeCompanies(profile.id, false);
try {
await axios.delete(`${process.env.REACT_APP_BASE_API_URL}/api/saved-list/${profile.id}`);
await mutate(
(key) => typeof key === 'string' && key.includes('/api/profiles/?is_saved=True'),
undefined,
{revalidate: true}
);
} catch (error) {
console.error(error);
}
Expand Down
9 changes: 5 additions & 4 deletions FrontEnd/src/components/CompanyCard/CompanyCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
width: 345px;
height: 365px;
display: block;
align-items: center;
border-radius: 11px;
position: relative;
margin: auto;
background: var(--company-card-color);
box-shadow: 0px 0px 2px 0px #41404533;
}

.company-card:hover {
Expand Down Expand Up @@ -80,7 +80,8 @@
text-align: left;
padding-left: 16px;
padding-top: 6px;
max-width: 300px;
max-width: 262px;
height: 35px;
}

.company-card__name-text {
Expand Down Expand Up @@ -152,7 +153,7 @@
height: 50px;
background: var(--company-card-color);
border-radius: 9999px;
border: 2px solid #232424;
border: 1px solid var(--grey-border-color);
}

.company-card__logo-image {
Expand Down Expand Up @@ -183,6 +184,6 @@
}

.company-card__category-text {
max-width: 250px;
max-width: 220px;
}
}
Loading

0 comments on commit 5f83600

Please sign in to comment.