-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from culturecreates/develop
Develop
- Loading branch information
Showing
80 changed files
with
17,857 additions
and
24,360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import './artsDataInfo.css'; | ||
import { Badge, Col, Row } from 'antd'; | ||
import { LinkOutlined } from '@ant-design/icons'; | ||
|
||
function ArtsDataInfo(props) { | ||
const { artsDataLink, name, disambiguatingDescription } = props; | ||
return ( | ||
<Row className="arts-data-info" align={'middle'} justify={'space-between'}> | ||
<Col span={20}> | ||
<Row gutter={[8, 0]} align={'middle'}> | ||
<Col | ||
className="arts-data-title" | ||
onClick={() => window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer')}> | ||
<span style={{ textDecoration: 'underline' }}>Artsdata</span> | ||
</Col> | ||
<Col className="arts-data-name"> | ||
<span>{name}</span> | ||
</Col> | ||
<Col> | ||
<span> | ||
<Badge color="#1B3DE6" style={{ height: '2px', width: '2px' }} /> | ||
</span> | ||
</Col> | ||
<Col className="arts-data-description">{disambiguatingDescription}</Col> | ||
</Row> | ||
</Col> | ||
<Col onClick={() => window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer')}> | ||
<span> | ||
<LinkOutlined /> | ||
</span> | ||
</Col> | ||
</Row> | ||
); | ||
} | ||
|
||
export default ArtsDataInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.arts-data-info { | ||
background-color: #e3e8ff; | ||
color: #0f0e98; | ||
min-height: 32px; | ||
font-size: 12px; | ||
font-family: Roboto; | ||
font-style: normal; | ||
font-weight: 400; | ||
padding: 8px; | ||
border-radius: 4px; | ||
} | ||
|
||
.arts-data-info .arts-data-title { | ||
cursor: pointer; | ||
} | ||
|
||
.arts-data-info .ant-badge-status-dot { | ||
height: 2px; | ||
width: 2px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ArtsDataInfo'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import './breadCrumbs.css'; | ||
import { useMatches, useNavigate } from 'react-router-dom'; | ||
import { Breadcrumb } from 'antd'; | ||
import { LeftOutlined } from '@ant-design/icons'; | ||
|
||
function Breadcrumbs(props) { | ||
const { name } = props; | ||
let matches = useMatches(); | ||
const navigate = useNavigate(); | ||
|
||
let crumbs = matches.filter((match) => Boolean(match.handle?.crumb)).map((match) => match.handle.crumb(match.data)); | ||
|
||
return ( | ||
<Breadcrumb className="breadcrumbs"> | ||
{crumbs.map((crumb, index) => ( | ||
<Breadcrumb.Item key={index} className="breadcrumb-item cursor" onClick={() => navigate(-1)}> | ||
<LeftOutlined style={{ marginRight: '17px' }} /> | ||
{crumb} | ||
</Breadcrumb.Item> | ||
))} | ||
|
||
{name && <Breadcrumb.Item className="breadcrumb-item">{name}</Breadcrumb.Item>} | ||
</Breadcrumb> | ||
); | ||
} | ||
|
||
export default Breadcrumbs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.breadcrumbs { | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 600; | ||
font-size: 16px; | ||
} | ||
|
||
.breadcrumbs .breadcrumb-item { | ||
color: #0f0e98; | ||
} | ||
|
||
.breadcrumbs .ant-breadcrumb-separator { | ||
color: #222732; | ||
} | ||
|
||
.breadcrumbs .cursor { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Breadcrumbs'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.add-event-section-col { | ||
padding: 24px; | ||
background-color: #ffffff; | ||
padding-left: 24px; | ||
padding-right: 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
import React from 'react'; | ||
import './listItem.css'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { List } from 'antd'; | ||
import { LinkOutlined } from '@ant-design/icons'; | ||
import moment from 'moment-timezone'; | ||
import i18n from 'i18next'; | ||
import Username from '../../Username/Username'; | ||
|
||
import ArtsDataLink from '../../Tags/ArtsDataLink/ArtsDataLink'; | ||
|
||
function ListItem(props) { | ||
const { | ||
id, | ||
title, | ||
description, | ||
logo, | ||
defaultLogo, | ||
artsDataLink, | ||
createdDate, | ||
createdByFirstName, | ||
createdByLastName, | ||
updatedDate, | ||
updatedByFirstName, | ||
updatedByLastName, | ||
scheduleTimezone, | ||
listItemHandler, | ||
actions, | ||
} = props; | ||
const { t } = useTranslation(); | ||
const dateFormat = 'DD-MMM-YYYY'; | ||
const lang = i18n.language; | ||
return ( | ||
<List.Item className="event-list-item-wrapper" key={id} actions={actions} style={{ padding: '20px 0px' }}> | ||
<List.Item.Meta | ||
className="event-list-item-meta" | ||
onClick={listItemHandler} | ||
avatar={ | ||
logo ? ( | ||
<div className="event-list-image-wrapper" style={{ height: '40px', width: '40px' }}> | ||
<img src={logo} className="event-list-image" /> | ||
</div> | ||
) : ( | ||
<div | ||
className="event-list-image-wrapper" | ||
style={{ | ||
height: '40px', | ||
width: '40px', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
borderRadius: '4px', | ||
backgroundColor: '#E3E8FF', | ||
}}> | ||
{defaultLogo} | ||
</div> | ||
) | ||
} | ||
description={ | ||
<div className="event-list-description"> | ||
<span className="event-list-description-name">{title}</span> | ||
<span className="event-list-description-place" style={{ width: '100%' }}> | ||
{description} | ||
</span> | ||
</div> | ||
} | ||
/> | ||
<List.Item.Meta | ||
className="event-status-list-item" | ||
title={ | ||
artsDataLink && ( | ||
<ArtsDataLink onClick={() => window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer')}> | ||
<span style={{ textDecoration: 'underline' }}>Artsdata</span> | ||
<LinkOutlined /> | ||
</ArtsDataLink> | ||
) | ||
} | ||
description={ | ||
<div className="event-list-status"> | ||
<span className="event-list-status-created-by"> | ||
{t('dashboard.events.list.createdBy')} | ||
{moment | ||
.tz(createdDate, scheduleTimezone ?? 'Canada/Eastern') | ||
.locale(lang) | ||
.format(dateFormat) | ||
?.toUpperCase()} | ||
| ||
{t('dashboard.events.list.by')} | ||
<Username firstName={createdByFirstName} lastName={createdByLastName} /> | ||
</span> | ||
{updatedByFirstName && updatedByLastName ? ( | ||
<span className="event-list-status-updated-by"> | ||
{t('dashboard.events.list.updatedBy')} | ||
{moment | ||
.tz(updatedDate, scheduleTimezone ?? 'Canada/Eastern') | ||
.locale(lang) | ||
.format(dateFormat) | ||
?.toUpperCase()} | ||
| ||
{t('dashboard.events.list.by')} | ||
<Username firstName={updatedByFirstName} lastName={updatedByLastName} /> | ||
</span> | ||
) : ( | ||
<></> | ||
)} | ||
</div> | ||
} | ||
/> | ||
</List.Item> | ||
); | ||
} | ||
|
||
export default ListItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './ListItem'; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.