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

update main branch with latest changes #288

Merged
merged 75 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
bcd5f92
fix mobile menu bg and pagination
SeanM322 Sep 25, 2024
1d55ff1
solve theme issue
SeanM322 Sep 25, 2024
908665c
style fix
SeanM322 Sep 26, 2024
1c74ad9
create NotificationsSlice(redux part)
SeanM322 Oct 1, 2024
7e57118
format fix
SeanM322 Oct 1, 2024
af48406
solve clear button count
SeanM322 Oct 1, 2024
0a2a060
fix issue with pagination
SeanM322 Oct 4, 2024
54f60e5
fix ts issue
SeanM322 Oct 4, 2024
c7b7277
Merge branch 'dev' into 220-notifications-not-displayed-on-mobile123
SeanM322 Oct 7, 2024
8cb25e5
fix style issue for serial number picker
SeanM322 Oct 7, 2024
7974a3e
Merge pull request #229 from rairprotocol/220-notifications-not-displ…
sarora180673 Oct 7, 2024
d46207e
Fix refresh on filter
jmsm412 Oct 8, 2024
aa94474
fix style issue
SeanM322 Oct 8, 2024
a47e22e
Handle missing first token
jmsm412 Oct 8, 2024
6136b60
Merge pull request #246 from rairprotocol/244-page-is-refreshing
sarora180673 Oct 8, 2024
f357d5f
Merge pull request #241 from rairprotocol/236-serial-number-picker-no…
sarora180673 Oct 8, 2024
9143443
Use last token loaded
jmsm412 Oct 10, 2024
d0ca9da
Merge pull request #249 from rairprotocol/247-slow-loading-of-tokens
sarora180673 Oct 10, 2024
824b492
Merge branch 'dev' into 243-clear-all-button-should-be-disabled-when-…
SeanM322 Oct 10, 2024
a3f1e88
disable "Clear All" btn If totalCount === 0
SeanM322 Oct 10, 2024
a1b7d07
Add sorting of items/videos to the Main Page
SeanM322 Oct 10, 2024
6aca13b
Merge pull request #250 from rairprotocol/243-clear-all-button-should…
sarora180673 Oct 10, 2024
cc03a4a
Merge pull request #251 from rairprotocol/242-sort-functionality-on-h…
sarora180673 Oct 10, 2024
2b677d9
Change category
jmsm412 Oct 14, 2024
dadeb78
Fix demo page
jmsm412 Oct 15, 2024
aea9ef1
Ignore demos if blockchain filter is on
jmsm412 Oct 15, 2024
ed5620a
And
jmsm412 Oct 15, 2024
4fd4ea9
Merge pull request #258 from rairprotocol/253-video-manager
sarora180673 Oct 15, 2024
e57dd8e
Merge pull request #259 from rairprotocol/255-filter-by-blockchain
sarora180673 Oct 15, 2024
3a39642
add new package and fix heart issue
SeanM322 Oct 15, 2024
dbc2496
add loader for next page in CollectionPage
SeanM322 Oct 15, 2024
b3b4b47
Merge pull request #261 from rairprotocol/257-provide-indication-to-u…
sarora180673 Oct 15, 2024
73f993f
Keep collection data if filter result is 0
jmsm412 Oct 15, 2024
2e364d8
Merge pull request #260 from rairprotocol/252-metadata-filter
sarora180673 Oct 15, 2024
bdc63f2
Add rate limiting
jmsm412 Oct 15, 2024
5b7c73a
Create deploy.yml
sarora180673 Oct 15, 2024
20dcfea
Update deploy.yml
sarora180673 Oct 15, 2024
4b3ebcc
Update deploy.yml
sarora180673 Oct 16, 2024
b183f8c
Merge pull request #262 from rairprotocol/256-rate-limiting-security-…
sarora180673 Oct 16, 2024
6169b3e
Add metadata filter blocks to mobile and fix issue
SeanM322 Oct 18, 2024
61dbe56
styles
SeanM322 Oct 18, 2024
39d4fe4
Merge pull request #266 from rairprotocol/245-no-metadata-displayed-o…
sarora180673 Oct 18, 2024
ea3d25b
Message if not logged in
jmsm412 Oct 22, 2024
b51c7a7
Merge pull request #268 from rairprotocol/267-logout-mint
sarora180673 Oct 22, 2024
f0b2fe6
Update deploy.yml
sarora180673 Oct 25, 2024
28f33b5
Update user list endpoint
jmsm412 Oct 30, 2024
500d5ef
Pagination
jmsm412 Oct 30, 2024
861494d
264 - Populate data on signup
jmsm412 Oct 30, 2024
f16a1fd
Cookie secret
jmsm412 Oct 30, 2024
b784295
Lusca
jmsm412 Oct 30, 2024
bf4ec76
Fix lusca
jmsm412 Oct 31, 2024
83ee4ab
Disable lusca
jmsm412 Oct 31, 2024
b8ee76e
Login data fix
jmsm412 Oct 31, 2024
703df7e
Extra failsafe
jmsm412 Nov 1, 2024
480b2f1
ui config
jmsm412 Nov 4, 2024
61fc682
ui remove
jmsm412 Nov 4, 2024
be6200e
Merge pull request #274 from rairprotocol/272-add-pagination-for-user…
sarora180673 Nov 4, 2024
db210cf
Update deploy.yml
sarora180673 Nov 6, 2024
f9bd9ed
Updates
jmsm412 Nov 14, 2024
71c5c9f
Fix delete file
jmsm412 Nov 15, 2024
2ebdc87
Only alphanumeric characters
jmsm412 Nov 15, 2024
60b7fa2
Fix delete offer unlock
jmsm412 Nov 15, 2024
af8a158
Fix media patch
jmsm412 Nov 15, 2024
b65f945
Total count for users
jmsm412 Nov 15, 2024
4a33341
Rate limit env
jmsm412 Nov 15, 2024
098558d
Merge pull request #281 from rairprotocol/280-update-validation-for-sdk
sarora180673 Nov 15, 2024
72ea808
Create BatchUsersCreate.py
sarora180673 Nov 15, 2024
f8d0b0c
Create Locators.py
sarora180673 Nov 18, 2024
4fafd77
selenium scripts
sarora180673 Nov 18, 2024
b175449
Cast to number
jmsm412 Nov 18, 2024
4857c4c
Merge pull request #283 from rairprotocol/282-params-in-userlist-bein…
sarora180673 Nov 18, 2024
e6a0f97
Update README.md
sarora180673 Nov 25, 2024
038f2c5
Update README.md
sarora180673 Nov 25, 2024
5e1521b
Update HealthCheck.py
sarora180673 Nov 25, 2024
48e592a
Update README.md
sarora180673 Nov 25, 2024
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ RAIR deploys each its services in a self-contained Docker image:

It's the moment of truth. From the repository root, run:

docker-compose -f {dockerfile.yml} up
docker-compose -f docker-compose.local-new.yml up -d

`{dockerfile.yml}` will be the file configured for your specific deployment. Wait for the app to build. Keep an eye on the terminal for any errors.
Wait for the app to build. Keep an eye on the terminal for any errors.

## Launch the App

Expand Down
1 change: 1 addition & 0 deletions docker-compose-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions docker-compose-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local-ssl-with_certbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local-ssl-without_certbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ services:
AWS_SECRET_ACCESS_KEY: ${filebase_secret_access_key}
FILEBASE_BUCKET: ${filebase_bucket}
YOTI_CLIENT_ID: ${yoti_client_id}
RATE_LIMIT_MINUTE: ${rate_limit_minute}
ports:
- 3000:3000
- 5000:5000
Expand Down
1 change: 1 addition & 0 deletions rair-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@emotion/styled": "^11.13.0",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@getyoti/react-face-capture": "^2.3.1",
Expand Down
19 changes: 0 additions & 19 deletions rair-front/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import {
import { detectBlockchain } from './utils/blockchainData';
// import getInformationGoogleAnalytics from './utils/googleAnalytics';
import gtag from './utils/gtag';
import { rFetch } from './utils/rFetch';
// views
import ErrorFallback from './views/ErrorFallback/ErrorFallback';

Expand Down Expand Up @@ -105,7 +104,6 @@ function App() {
const [tabIndexItems, setTabIndexItems] = useState(0);
const [tokenNumber, setTokenNumber] = useState<number | undefined>(undefined);
const navigate = useNavigate();
const [notificationCount, setNotificationCount] = useState<number>(0);

// Redux
const {
Expand Down Expand Up @@ -171,21 +169,6 @@ function App() {
}
}, [dispatch, logoutUser, blockchainSettings]);

const getNotificationsCount = useCallback(async () => {
if (isLoggedIn && currentUserAddress) {
const result = await rFetch(`/api/notifications?onlyUnread=true`);
if (result.success && result.totalCount >= 0) {
setNotificationCount(result.totalCount);
}
} else {
setNotificationCount(0);
}
}, [isLoggedIn, currentUserAddress]);

useEffect(() => {
getNotificationsCount();
}, [getNotificationsCount]);

// gtag

useEffect(() => {
Expand Down Expand Up @@ -306,8 +289,6 @@ function App() {
showAlert={showAlert}
setTabIndexItems={setTabIndexItems}
isAboutPage={isAboutPage}
notificationCount={notificationCount}
getNotificationsCount={getNotificationsCount}
/>
)
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ts-nocheck
import React, { useCallback, useState } from 'react';
import {
faCheck,
Expand Down Expand Up @@ -40,7 +41,8 @@ const MediaItemChange: React.FC<IMediaItemChange> = ({

const closeModal = useCallback(() => {
setModalIsOpen(false);
}, [setModalIsOpen]);
getMediaList();
}, [setModalIsOpen, getMediaList]);

const [titleValue, setTitleValue] = useState<string>(item.title);
const [disabledBtn, setDisabledBtn] = useState<boolean>(false);
Expand Down Expand Up @@ -103,25 +105,13 @@ const MediaItemChange: React.FC<IMediaItemChange> = ({
className="media-item-title">
{textFlag ? (
<div>
<p className="col-12">
{item.title.length > 15
? item.title.slice(0, 6) +
'...' +
item.title.slice(item.title.length - 10, 10)
: item.title}
</p>
<p className="col-12">{item.title}</p>
</div>
) : (
<div>
{!editTitleVideo ? (
<>
<p className="col-12">
{item.title.length > 15
? item.title.slice(0, 6) +
'...' +
item.title.slice(item.title.length - 10, 10)
: item.title}
</p>
<p className="col-12">{item.title}</p>
{newUserStatus ? (
<button
disabled={!newUserStatus}
Expand All @@ -142,7 +132,7 @@ const MediaItemChange: React.FC<IMediaItemChange> = ({
onClick={() => {
openModal();
}}>
<FontAwesomeIcon icon={faPencilAlt} />
<FontAwesomeIcon icon={faPencilAlt} /> Edit
</button>
</span>
</TooltipBox>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ts-nocheck
import React, { useCallback, useEffect, useState } from 'react';
import Modal from 'react-modal';

Expand All @@ -22,9 +23,8 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
mediaList,
index
}) => {
const { primaryColor, textColor, primaryButtonColor } = useAppSelector(
(store) => store.colors
);
const { primaryColor, textColor, primaryButtonColor, isDarkMode } =
useAppSelector((store) => store.colors);
const { categories } = useAppSelector((store) => store.settings);
const rSwal = useSwal();

Expand All @@ -33,7 +33,7 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
const [categoryList, setCategoryList] = useState<OptionsType[] | undefined>(
undefined
);
const [itemCategory, setItemCategory] = useState(item.category);
const [itemCategory, setItemCategory] = useState(item.category._id);

const getCategory = useCallback(async () => {
if (categories) {
Expand All @@ -42,7 +42,7 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
return {
id: item._id,
label: item.name,
value: item.name,
value: item._id,
disabled: false
};
})
Expand All @@ -69,16 +69,12 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
setMediaList(newMediaList);
closeModal();
} else {
const choiceCategory: any =
categoryList &&
categoryList.find((item: any) => item.value === itemCategory);

setUploadSuccess(true);

const updatedVideo = {
description: desc,
title: title,
category: choiceCategory.id
category: itemCategory
};
try {
const request = await rFetch(`/api/files/update/${item._id}`, {
Expand All @@ -99,14 +95,14 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
closeModal();
setDesc(item.description);
setTitle(item.title);
setItemCategory(item.category);
setItemCategory(item.category._id);
setUploadSuccess(null);
}
} catch (e) {
closeModal();
setDesc(item.description);
setTitle(item.title);
setItemCategory(item.category);
setItemCategory(item.category._id);
setUploadSuccess(null);
}
}
Expand All @@ -122,7 +118,7 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
color: textColor
},
labelCSS: {
color: `${primaryColor === 'rhyno' ? 'rgb(41, 41, 41)' : '#fff'}`,
color: textColor,
marginTop: 5,
marginBottom: 5
}
Expand All @@ -133,7 +129,9 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
zIndex: '1'
},
content: {
background: primaryColor === 'rhyno' ? '#F2F2F2' : '#383637',
background: isDarkMode
? `color-mix(in srgb, ${primaryColor}, #2D2D2D)`
: 'var(--rhyno)',
top: '50%',
left: '50%',
right: 'auto',
Expand Down Expand Up @@ -171,7 +169,7 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
if (defaultCategory) {
setItemCategory(defaultCategory.value);
} else {
setItemCategory(item.category);
setItemCategory(item.category._id);
}
}
}
Expand All @@ -191,15 +189,15 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
label="Title"
customClass="form-control input-select-custom-style"
placeholder="Select a description"
// {...selectCommonInfoNFT}
{...selectCommonInfoNFT}
/>
<InputField
getter={desc}
setter={setDesc}
label="Description"
customClass="form-control input-select-custom-style"
placeholder="Select a description"
// {...selectCommonInfoNFT}
{...selectCommonInfoNFT}
/>
<InputSelect
// customClass="form-control input-select-custom-style"
Expand All @@ -211,7 +209,7 @@ const PopUpChangeVideo: React.FC<IPopUpChangeVideo> = ({
{...selectCommonInfoNFT}
/>
<button
onClick={() => updateVideoData()}
onClick={updateVideoData}
disabled={title === '' || desc === '' || itemCategory === ''}
style={{
marginTop: 30,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ const UploadedListBox: React.FC<IUploadedListBox> = ({
className="medialist-box"
key={index}
style={{
backgroundColor: `color-mix(in srgb, ${primaryColor}, #888888)`,
backgroundColor: isDarkMode
? `color-mix(in srgb, ${primaryColor}, #888888)`
: 'var(--rhyno)',
color: textColor,
borderRadius: '15px',
marginTop: '20px'
Expand Down
Loading
Loading