Skip to content

Commit

Permalink
Merge pull request #1433 from OneCommunityGlobal/development
Browse files Browse the repository at this point in the history
Frontend Release to Main [2.95]
  • Loading branch information
one-community authored Oct 20, 2023
2 parents 1860c46 + 5011049 commit 4726d88
Show file tree
Hide file tree
Showing 54 changed files with 1,281 additions and 179 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ src/components/App.jsx
src/components/AutoReload/**
src/components/AutoUpdate/**
src/components/Badge/**
src/components/BMDashboard/**
src/components/common/**
src/components/Header/**
src/components/BMDashboard/BMHeader/**
src/components/Inventory/**
src/components/Login/**
src/components/ManageMemberships/**
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# * text eol=lf
* text eol=lf
Binary file modified images/logo.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 images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
272 changes: 237 additions & 35 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"redux-actions": "^2.6.5",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0",
"tinymce": "^5.10.7",
"tinymce": "^5.10.8",
"uuid": "^9.0.1",
"websocket-extensions": ">=0.1.4"
},
Expand Down
Binary file modified public/pfp-default-header.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 public/pfp-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions src/actions/bmdashboard/materialsActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import axios from "axios";

import { ENDPOINTS } from "utils/URL";
import { SET_MATERIALS } from "constants/bmdashboard/materialsConstants";
import { GET_ERRORS } from "constants/errors";

export const fetchAllMaterials = () => {
return async dispatch => {
axios.get(ENDPOINTS.BM_MATERIALS_LIST)
.then(res => {
dispatch(setMaterials(res.data))
})
.catch(err => {
dispatch(setErrors(err))
})
}
}

export const setMaterials = payload => {
return {
type: SET_MATERIALS,
payload
}
}

export const setErrors = payload => {
return {
type: GET_ERRORS,
payload
}
}
6 changes: 3 additions & 3 deletions src/components/BMDashboard/BMDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Row, Col, Container, Form, Button } from 'reactstrap';
import { Container } from 'reactstrap';
import ProjectsList from './Projects/ProjectsList';
import ProjectSelectForm from './Projects/ProjectSelectForm';
import './BMDashboard.css';
Expand All @@ -22,7 +22,7 @@ const dummyProjects = [
},
];

export const BMDashboard = () => {
export function BMDashboard() {
return (
<Container className="justify-content-center align-items-center mw-80 px-4">
<header className="bm-dashboard__header">
Expand All @@ -34,6 +34,6 @@ export const BMDashboard = () => {
</main>
</Container>
);
};
}

export default BMDashboard;
64 changes: 64 additions & 0 deletions src/components/BMDashboard/BMHeader/BMHeader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.header-wrapper {
height: fit-content;
width: clamp(100vw, 0.1rem + 1vw, 100%);
}

.navbar {
z-index: 100;
white-space: nowrap;
}

.timer-message-section {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 1rem;
}

.nav-links {
align-items: center;
}

.redBackGroupHeader {
z-index: 10;
bottom: 0;
right: 0;
position: relative;
height: 30px;
text-align: center;
vertical-align: middle;
background: #ff4d4f;
border-radius: 40px;
color: #fff;
padding: 3px 6px;
max-width: 39px;
font-size: 1rem;
min-width: 29px;
}

.owner-message {
margin-right: 3rem;
}

@media (max-width: 1500px) {
.dashboard-text-link {
font-size: 14px;
}

.owner-message {
margin-right: 0;
}
}

@media (max-width: 1400px) {
.timer-message-section {
display: flex;
width: 0;
margin-right: 0;
}

.owner-message {
display: none;
}
}
Loading

0 comments on commit 4726d88

Please sign in to comment.