@oasisomniverse/nextjs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +29 -0
- package/src/components/ForgetPassword.tsx +127 -0
- package/src/components/Login.tsx +223 -0
- package/src/components/ResetPassword.tsx +177 -0
- package/src/components/Signup.tsx +286 -0
- package/src/components/VerifyEmail.tsx +69 -0
- package/src/components/common/AvatarConnect.tsx +90 -0
- package/src/components/common/Contact.tsx +61 -0
- package/src/components/common/Eggs.tsx +51 -0
- package/src/components/common/Game.tsx +37 -0
- package/src/components/common/HyperDrive.tsx +51 -0
- package/src/components/common/KarmaToast.tsx +39 -0
- package/src/components/common/Map.tsx +43 -0
- package/src/components/common/MenuMessage.tsx +71 -0
- package/src/components/common/Messaging.tsx +75 -0
- package/src/components/common/Mission.tsx +41 -0
- package/src/components/common/NFT.tsx +43 -0
- package/src/components/common/NavBar.tsx +138 -0
- package/src/components/common/OApp.tsx +42 -0
- package/src/components/common/ONET.tsx +51 -0
- package/src/components/common/ONODE.tsx +50 -0
- package/src/components/common/OasisModal.tsx +30 -0
- package/src/components/common/ProviderDropdown.tsx +26 -0
- package/src/components/common/Providers.tsx +39 -0
- package/src/components/common/Quest.tsx +41 -0
- package/src/components/common/SearchAvatars.tsx +50 -0
- package/src/components/common/Seeds.tsx +40 -0
- package/src/components/common/Settings.tsx +71 -0
- package/src/components/common/StarField.tsx +57 -0
- package/src/components/common/Wallet.tsx +46 -0
- package/src/components/popups/avatar/components/AvatarWallet.tsx +170 -0
- package/src/components/popups/avatar/components/EditAvatar.tsx +35 -0
- package/src/components/popups/avatar/components/SearchAvatar.tsx +35 -0
- package/src/components/popups/avatar/components/ViewAvatar.tsx +149 -0
- package/src/components/popups/avatar/index.tsx +40 -0
- package/src/components/popups/comingsoon/ComingSoon.tsx +29 -0
- package/src/components/popups/confirmation/Confirmation.tsx +31 -0
- package/src/components/popups/contact/index.tsx +101 -0
- package/src/components/popups/data-screen/components/AddData.tsx +90 -0
- package/src/components/popups/data-screen/components/CrossChainManagement.tsx +88 -0
- package/src/components/popups/data-screen/components/LoadData.tsx +158 -0
- package/src/components/popups/data-screen/components/ManageData.tsx +35 -0
- package/src/components/popups/data-screen/components/OffChainManagement.tsx +178 -0
- package/src/components/popups/data-screen/components/SearchData.tsx +35 -0
- package/src/components/popups/data-screen/index.tsx +53 -0
- package/src/components/popups/eggs/components/ManageEggs.tsx +35 -0
- package/src/components/popups/eggs/components/SearchEggs.tsx +35 -0
- package/src/components/popups/eggs/components/ViewEggs.tsx +35 -0
- package/src/components/popups/eggs/index.tsx +32 -0
- package/src/components/popups/game/components/SearchProfiles.tsx +35 -0
- package/src/components/popups/game/components/ViewAchievements.tsx +35 -0
- package/src/components/popups/game/components/ViewLeagues.tsx +35 -0
- package/src/components/popups/game/components/ViewTournaments.tsx +35 -0
- package/src/components/popups/game/index.tsx +39 -0
- package/src/components/popups/karma/components/SearchKarma.tsx +35 -0
- package/src/components/popups/karma/components/ViewAvatarKarma.tsx +140 -0
- package/src/components/popups/karma/components/ViewKarma.tsx +104 -0
- package/src/components/popups/karma/components/VoteKarma.tsx +35 -0
- package/src/components/popups/karma/index.tsx +35 -0
- package/src/components/popups/map/components/Add2dObjectMap.tsx +35 -0
- package/src/components/popups/map/components/Add3dObjectMap.tsx +35 -0
- package/src/components/popups/map/components/AddQuestToMap.tsx +35 -0
- package/src/components/popups/map/components/DownloadOurWorld.tsx +35 -0
- package/src/components/popups/map/components/ManageMap.tsx +35 -0
- package/src/components/popups/map/components/PlotRouteOnMap.tsx +35 -0
- package/src/components/popups/map/components/SearchMap.tsx +35 -0
- package/src/components/popups/map/components/ViewGlobal3dMap.tsx +35 -0
- package/src/components/popups/map/components/ViewHalonsOnMap.tsx +35 -0
- package/src/components/popups/map/components/ViewOappOnMap.tsx +35 -0
- package/src/components/popups/map/components/ViewQuestOnMap.tsx +35 -0
- package/src/components/popups/map/index.tsx +80 -0
- package/src/components/popups/messages/Message.tsx +87 -0
- package/src/components/popups/mission/components/ManageMission.tsx +35 -0
- package/src/components/popups/mission/components/SearchMission.tsx +35 -0
- package/src/components/popups/mission/components/ViewMission.tsx +35 -0
- package/src/components/popups/mission/index.tsx +33 -0
- package/src/components/popups/nft/ContactPopup.tsx +147 -0
- package/src/components/popups/nft/Solana.tsx +71 -0
- package/src/components/popups/nft/components/ManageOasisNft.tsx +35 -0
- package/src/components/popups/nft/components/PurchaseOasisNft.tsx +35 -0
- package/src/components/popups/nft/components/PurchaseOasisVirtualLandNft.tsx +35 -0
- package/src/components/popups/nft/components/SearchOasisNft.tsx +35 -0
- package/src/components/popups/nft/components/ViewOasisNft.tsx +35 -0
- package/src/components/popups/nft/index.tsx +46 -0
- package/src/components/popups/oapp/components/CreateOAPP.tsx +35 -0
- package/src/components/popups/oapp/components/DeployOAPP.tsx +35 -0
- package/src/components/popups/oapp/components/DownloadOurWorld.tsx +35 -0
- package/src/components/popups/oapp/components/EditOAPP.tsx +35 -0
- package/src/components/popups/oapp/components/InstallOAPP.tsx +35 -0
- package/src/components/popups/oapp/components/LaunchOAPP.tsx +35 -0
- package/src/components/popups/oapp/components/ManageOAPP.tsx +69 -0
- package/src/components/popups/oapp/components/SearchOAPP.tsx +35 -0
- package/src/components/popups/oapp/index.tsx +63 -0
- package/src/components/popups/provider/components/ActivityPub.tsx +35 -0
- package/src/components/popups/provider/components/CompareProviderSpeeds.tsx +124 -0
- package/src/components/popups/provider/components/Eosio.tsx +35 -0
- package/src/components/popups/provider/components/Ethereum.tsx +35 -0
- package/src/components/popups/provider/components/Holochain.tsx +35 -0
- package/src/components/popups/provider/components/Ipfs.tsx +36 -0
- package/src/components/popups/provider/components/ManageAutoFailOver.tsx +35 -0
- package/src/components/popups/provider/components/ManageAutoReplicaton.tsx +35 -0
- package/src/components/popups/provider/components/ManageLoadBalancing.tsx +35 -0
- package/src/components/popups/provider/components/ManageProviders.tsx +35 -0
- package/src/components/popups/provider/components/MongoDb.tsx +35 -0
- package/src/components/popups/provider/components/Neo4j.tsx +35 -0
- package/src/components/popups/provider/components/SearchProviders.tsx +123 -0
- package/src/components/popups/provider/components/Seeds.tsx +35 -0
- package/src/components/popups/provider/components/Solid.tsx +35 -0
- package/src/components/popups/provider/components/SqlLite.tsx +35 -0
- package/src/components/popups/provider/components/ThreeFold.tsx +35 -0
- package/src/components/popups/provider/components/ViewProviderStats.tsx +124 -0
- package/src/components/popups/provider/components/ViewProviders.tsx +122 -0
- package/src/components/popups/provider/index.tsx +114 -0
- package/src/components/popups/quest/components/ManageQuest.tsx +35 -0
- package/src/components/popups/quest/components/SearchQuest.tsx +35 -0
- package/src/components/popups/quest/components/ViewQuest.tsx +35 -0
- package/src/components/popups/quest/index.tsx +33 -0
- package/src/components/popups/seeds/components/AcceptInvite.tsx +62 -0
- package/src/components/popups/seeds/components/DonateSeeds.tsx +179 -0
- package/src/components/popups/seeds/components/ManageSeeds.tsx +35 -0
- package/src/components/popups/seeds/components/PayWithSeeds.tsx +234 -0
- package/src/components/popups/seeds/components/RewardSeeds.tsx +179 -0
- package/src/components/popups/seeds/components/SearchSeeds.tsx +92 -0
- package/src/components/popups/seeds/components/SendInvite.tsx +179 -0
- package/src/components/popups/seeds/components/ViewOrganizations.tsx +179 -0
- package/src/components/popups/seeds/components/ViewSeeds.tsx +222 -0
- package/src/components/popups/seeds/index.tsx +71 -0
- package/src/index.ts +129 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class SearchMap extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('map', 'searchMap')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('map', 'searchMap')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default SearchMap;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ViewGlobal3dMap extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('map', 'viewGlobal3dMap')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Our World Coming Soon.</h2>
|
|
26
|
+
<p>This is functionaliy that is built in the Unity Smartphone Prototype for Our World and will soon be released. You can then download Our World from either the Map or OAPP menu.</p>
|
|
27
|
+
<button onClick={() => hide('map', 'viewGlobal3dMap')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ViewGlobal3dMap;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ViewHalonsOnMap extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('map', 'viewHalonsOnMap')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('map', 'viewHalonsOnMap')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ViewHalonsOnMap;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ViewOappOnMap extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('map', 'viewOappOnMap')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('map', 'viewOappOnMap')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ViewOappOnMap;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ViewQuestOnMap extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('map', 'viewQuestOnMap')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('map', 'viewQuestOnMap')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ViewQuestOnMap;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Add2dObjectMap from './components/Add2dObjectMap';
|
|
4
|
+
import Add3dObjectMap from './components/Add3dObjectMap';
|
|
5
|
+
import AddQuestToMap from './components/AddQuestToMap';
|
|
6
|
+
import DownloadOurWorld from './components/DownloadOurWorld';
|
|
7
|
+
import ManageMap from './components/ManageMap';
|
|
8
|
+
import SearchMap from './components/SearchMap';
|
|
9
|
+
import PlotRouteOnMap from './components/PlotRouteOnMap';
|
|
10
|
+
import ViewGlobal3dMap from './components/ViewGlobal3dMap';
|
|
11
|
+
import ViewHalonsOnMap from './components/ViewHalonsOnMap';
|
|
12
|
+
import ViewOappOnMap from './components/ViewOappOnMap';
|
|
13
|
+
import ViewQuestOnMap from './components/ViewQuestOnMap';
|
|
14
|
+
|
|
15
|
+
class Map extends React.Component {
|
|
16
|
+
|
|
17
|
+
render() {
|
|
18
|
+
const props=this.props;
|
|
19
|
+
return(
|
|
20
|
+
<>
|
|
21
|
+
<Add2dObjectMap
|
|
22
|
+
show={props.map.add2dObjectMap}
|
|
23
|
+
hide={props.toggleScreenPopup}
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<Add3dObjectMap
|
|
27
|
+
show={props.map.add3dObjectMap}
|
|
28
|
+
hide={props.toggleScreenPopup}
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<AddQuestToMap
|
|
32
|
+
show={props.map.addQuestToMap}
|
|
33
|
+
hide={props.toggleScreenPopup}
|
|
34
|
+
/>
|
|
35
|
+
|
|
36
|
+
<DownloadOurWorld
|
|
37
|
+
show={props.map.downloadOurWorld}
|
|
38
|
+
hide={props.toggleScreenPopup}
|
|
39
|
+
/>
|
|
40
|
+
|
|
41
|
+
<ManageMap
|
|
42
|
+
show={props.map.manageMap}
|
|
43
|
+
hide={props.toggleScreenPopup}
|
|
44
|
+
/>
|
|
45
|
+
|
|
46
|
+
<PlotRouteOnMap
|
|
47
|
+
show={props.map.plotRouteOnMap}
|
|
48
|
+
hide={props.toggleScreenPopup}
|
|
49
|
+
/>
|
|
50
|
+
|
|
51
|
+
<SearchMap
|
|
52
|
+
show={props.map.searchMap}
|
|
53
|
+
hide={props.toggleScreenPopup}
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
<ViewGlobal3dMap
|
|
57
|
+
show={props.map.viewGlobal3dMap}
|
|
58
|
+
hide={props.toggleScreenPopup}
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<ViewHalonsOnMap
|
|
62
|
+
show={props.map.viewHalonsOnMap}
|
|
63
|
+
hide={props.toggleScreenPopup}
|
|
64
|
+
/>
|
|
65
|
+
|
|
66
|
+
<ViewOappOnMap
|
|
67
|
+
show={props.map.viewOappOnMap}
|
|
68
|
+
hide={props.toggleScreenPopup}
|
|
69
|
+
/>
|
|
70
|
+
|
|
71
|
+
<ViewQuestOnMap
|
|
72
|
+
show={props.map.viewQuestOnMap}
|
|
73
|
+
hide={props.toggleScreenPopup}
|
|
74
|
+
/>
|
|
75
|
+
</>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export default Map;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from "react";
|
|
3
|
+
// import { Link } from "react-router-dom";
|
|
4
|
+
import { Modal } from "react-bootstrap";
|
|
5
|
+
|
|
6
|
+
import MessageContacts from "../../common/message/MessageContacts";
|
|
7
|
+
import Messages from "../../common/message/Messages";
|
|
8
|
+
import "../../../assets/scss/popup.scss";
|
|
9
|
+
import "../../../assets/scss/message.scss";
|
|
10
|
+
import avatar from "../../../assets/images/loggedin.png"
|
|
11
|
+
|
|
12
|
+
class Message extends React.Component {
|
|
13
|
+
constructor(props) {
|
|
14
|
+
super(props);
|
|
15
|
+
this.state = {
|
|
16
|
+
contactList: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Test 123',
|
|
19
|
+
img: avatar,
|
|
20
|
+
date: '13th October 2021',
|
|
21
|
+
lastMessage: 'Test 123',
|
|
22
|
+
active: true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Test 123',
|
|
26
|
+
img: avatar,
|
|
27
|
+
date: '13th October 2021',
|
|
28
|
+
lastMessage: 'Test 123',
|
|
29
|
+
active: false
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
messageList: [
|
|
33
|
+
{
|
|
34
|
+
from: 'Admin',
|
|
35
|
+
img: avatar,
|
|
36
|
+
date: '10th October',
|
|
37
|
+
message: 'Hey what are you doing?'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
from: 'me',
|
|
41
|
+
date: '10th October',
|
|
42
|
+
message: 'Making chating work on React'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
from: 'Admin',
|
|
46
|
+
img: avatar,
|
|
47
|
+
date: 'Yesterday',
|
|
48
|
+
message: 'OK Good luck'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
from: 'me',
|
|
52
|
+
date: '8:00 am',
|
|
53
|
+
message: 'Thank you'
|
|
54
|
+
},
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
render() {
|
|
60
|
+
return (
|
|
61
|
+
<Modal
|
|
62
|
+
size="xl"
|
|
63
|
+
show={true}
|
|
64
|
+
dialogClassName=""
|
|
65
|
+
onHide={() => this.props.history.push("/")}
|
|
66
|
+
>
|
|
67
|
+
<Modal.Header closeButton>
|
|
68
|
+
<Modal.Title>Messages</Modal.Title>
|
|
69
|
+
</Modal.Header>
|
|
70
|
+
<Modal.Body>
|
|
71
|
+
<div class="container">
|
|
72
|
+
<div class="messaging">
|
|
73
|
+
<div class="inbox_msg">
|
|
74
|
+
<MessageContacts
|
|
75
|
+
contactList={this.state.contactList}
|
|
76
|
+
/>
|
|
77
|
+
<Messages messageList={this.state.messageList}/>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</Modal.Body>
|
|
82
|
+
</Modal>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export default Message;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ManageMission extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('mission', 'manageMission')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('mission', 'manageMission')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ManageMission;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class SearchMission extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('mission', 'searchMission')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('mission', 'searchMission')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default SearchMission;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import InfoIcon from '../../../../assets/images/icon-info.svg'
|
|
6
|
+
|
|
7
|
+
class ViewMission extends React.Component {
|
|
8
|
+
state = { }
|
|
9
|
+
render() {
|
|
10
|
+
const { show, hide } = this.props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
<Modal
|
|
15
|
+
size="sm"
|
|
16
|
+
show={show}
|
|
17
|
+
dialogClassName=""
|
|
18
|
+
onHide={() => hide('mission', 'viewMission')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>Coming Soon</h2>
|
|
26
|
+
<p>This module is coming soon...</p>
|
|
27
|
+
<button onClick={() => hide('mission', 'viewMission')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ViewMission;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import ManageMission from './components/ManageMission';
|
|
5
|
+
import SearchMission from './components/SearchMission';
|
|
6
|
+
import ViewMission from './components/ViewMission';
|
|
7
|
+
|
|
8
|
+
class Mission extends React.Component {
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
const props=this.props;
|
|
12
|
+
return(
|
|
13
|
+
<>
|
|
14
|
+
<ViewMission
|
|
15
|
+
show={props.mission.viewMission}
|
|
16
|
+
hide={props.toggleScreenPopup}
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<ManageMission
|
|
20
|
+
show={props.mission.manageMission}
|
|
21
|
+
hide={props.toggleScreenPopup}
|
|
22
|
+
/>
|
|
23
|
+
|
|
24
|
+
<SearchMission
|
|
25
|
+
show={props.mission.searchMission}
|
|
26
|
+
hide={props.toggleScreenPopup}
|
|
27
|
+
/>
|
|
28
|
+
</>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default Mission;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { Modal } from 'react-bootstrap';
|
|
5
|
+
|
|
6
|
+
import '../../../assets/scss/contact-popup.scss';
|
|
7
|
+
|
|
8
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
9
|
+
|
|
10
|
+
var filterParams = {
|
|
11
|
+
comparator: function (filterLocalDateAtMidnight, cellValue) {
|
|
12
|
+
var dateAsString = cellValue;
|
|
13
|
+
if (dateAsString === null) return -1;
|
|
14
|
+
var dateParts = dateAsString.split('/');
|
|
15
|
+
var cellDate = new Date(
|
|
16
|
+
Number(dateParts[2]),
|
|
17
|
+
Number(dateParts[1]) - 1,
|
|
18
|
+
Number(dateParts[0])
|
|
19
|
+
);
|
|
20
|
+
if (filterLocalDateAtMidnight.getTime() === cellDate.getTime()) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
if (cellDate < filterLocalDateAtMidnight) {
|
|
24
|
+
return -1;
|
|
25
|
+
}
|
|
26
|
+
if (cellDate > filterLocalDateAtMidnight) {
|
|
27
|
+
return 1;
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
browserDatePicker: true,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
class ContactPopup extends React.Component {
|
|
34
|
+
|
|
35
|
+
state = {
|
|
36
|
+
columnDefs: [
|
|
37
|
+
{
|
|
38
|
+
field: 'athlete'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: 'age',
|
|
42
|
+
filter: 'agNumberColumnFilter',
|
|
43
|
+
maxWidth: 100,
|
|
44
|
+
},
|
|
45
|
+
{ field: 'country' },
|
|
46
|
+
{
|
|
47
|
+
field: 'year',
|
|
48
|
+
maxWidth: 100,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
field: 'date',
|
|
52
|
+
filter: 'agDateColumnFilter',
|
|
53
|
+
filterParams: filterParams,
|
|
54
|
+
},
|
|
55
|
+
{ field: 'sport' },
|
|
56
|
+
{
|
|
57
|
+
field: 'gold',
|
|
58
|
+
filter: 'agNumberColumnFilter',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
field: 'silver',
|
|
62
|
+
filter: 'agNumberColumnFilter',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
field: 'bronze',
|
|
66
|
+
filter: 'agNumberColumnFilter',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
field: 'total',
|
|
70
|
+
filter: false,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
defaultColDef: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
minWidth: 150,
|
|
76
|
+
filter: true,
|
|
77
|
+
sortable: true,
|
|
78
|
+
floatingFilter: true,
|
|
79
|
+
resizable: true,
|
|
80
|
+
},
|
|
81
|
+
rowData: null,
|
|
82
|
+
};
|
|
83
|
+
onGridReady = (params) => {
|
|
84
|
+
this.gridApi = params.api;
|
|
85
|
+
this.gridColumnApi = params.columnApi;
|
|
86
|
+
|
|
87
|
+
const updateData = (data) => {
|
|
88
|
+
this.setState({ rowData: data });
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
fetch('https://www.ag-grid.com/example-assets/olympic-winners.json')
|
|
92
|
+
.then((resp) => resp.json())
|
|
93
|
+
.then((data) => updateData(data));
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
render() {
|
|
98
|
+
const { show, hide } = this.props;
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<>
|
|
102
|
+
<Modal
|
|
103
|
+
centered
|
|
104
|
+
className="custom-modal custom-contact-modal custom-popup-component"
|
|
105
|
+
show={show}
|
|
106
|
+
onHide={() => hide('nft', 'contactPopup')}
|
|
107
|
+
>
|
|
108
|
+
<Modal.Body>
|
|
109
|
+
<span className="form-cross-icon" onClick={() => hide('nft', 'contactPopup')}>
|
|
110
|
+
<i className="fa fa-times"></i>
|
|
111
|
+
</span>
|
|
112
|
+
|
|
113
|
+
<div className="popup-container contact-Popup default-popup">
|
|
114
|
+
<div className="popup-content">
|
|
115
|
+
<h1 className="single-heading">Contacts</h1>
|
|
116
|
+
<div className="button-bar">
|
|
117
|
+
<button className="sm-button" >Friends</button>
|
|
118
|
+
<button className="sm-button">Family</button>
|
|
119
|
+
<button className="sm-button">Colleagues</button>
|
|
120
|
+
<button className="sm-button">My list 1</button>
|
|
121
|
+
<button className="sm-button">My list 2</button>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<div className="ag-theme-alpine custom-ag-parent">
|
|
126
|
+
<AgGridReact
|
|
127
|
+
columnDefs={this.state.columnDefs}
|
|
128
|
+
defaultColDef={this.state.defaultColDef}
|
|
129
|
+
onGridReady={this.onGridReady}
|
|
130
|
+
rowData={this.state.rowData}
|
|
131
|
+
/>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<div className="right-btn">
|
|
135
|
+
<button className="sm-button" >Find Avatar</button>
|
|
136
|
+
<button className="sm-button" >Create List</button>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
</Modal.Body>
|
|
141
|
+
</Modal>
|
|
142
|
+
</>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export default ContactPopup;
|