@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,123 @@
|
|
|
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
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
7
|
+
import axios from "axios";
|
|
8
|
+
import { toast } from "react-toastify";
|
|
9
|
+
import API_BASE_URL from "../../../../config/api";
|
|
10
|
+
|
|
11
|
+
class SearchProviders extends React.Component {
|
|
12
|
+
state = {
|
|
13
|
+
columnDefs: [
|
|
14
|
+
{
|
|
15
|
+
fieldName: "provider",
|
|
16
|
+
headerName: "Provider",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
fieldName: "installed",
|
|
20
|
+
headerName: "Installed",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
fieldName: "view",
|
|
24
|
+
headerName: "View",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
fieldName: "running",
|
|
28
|
+
headerName: "Running",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
fieldName: "vpTime",
|
|
32
|
+
headerName: "VPTime"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
defaultColDef: {
|
|
36
|
+
flex: 1,
|
|
37
|
+
minWidth: 150,
|
|
38
|
+
filter: true,
|
|
39
|
+
sortable: true,
|
|
40
|
+
floatingFilter: true,
|
|
41
|
+
resizable: true,
|
|
42
|
+
},
|
|
43
|
+
rowData: null,
|
|
44
|
+
loading: true,
|
|
45
|
+
loggedIn: true,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
onGridReady = async (params) => {
|
|
49
|
+
this.gridApi = params.api;
|
|
50
|
+
this.gridColumnApi = params.columnApi;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
getApiData = () => {
|
|
54
|
+
this.setState({ loading: true })
|
|
55
|
+
|
|
56
|
+
axios({
|
|
57
|
+
method: 'get',
|
|
58
|
+
url: API_BASE_URL,
|
|
59
|
+
headers: {
|
|
60
|
+
'Content-Type': 'application/json'
|
|
61
|
+
},
|
|
62
|
+
})
|
|
63
|
+
.then((response) => {
|
|
64
|
+
this.setState({loading: false})
|
|
65
|
+
|
|
66
|
+
if (response.data.result?.isError) {
|
|
67
|
+
toast.error(response.data.result.message);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
toast.success(response.data.result.message);
|
|
72
|
+
})
|
|
73
|
+
.catch((err) => {
|
|
74
|
+
toast.error('err');
|
|
75
|
+
this.setState({loading: false})
|
|
76
|
+
return { error: true, data: err };
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
render() {
|
|
81
|
+
const { show, hide } = this.props;
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<>
|
|
85
|
+
<Modal
|
|
86
|
+
size="xl"
|
|
87
|
+
show={show}
|
|
88
|
+
dialogClassName=""
|
|
89
|
+
className="custom-modal custom-popup-component"
|
|
90
|
+
onHide={() => hide('providers', 'searchProviders')}
|
|
91
|
+
>
|
|
92
|
+
<Modal.Body className="text-center coming-soon">
|
|
93
|
+
<span className="form-cross-icon" onClick={() => hide('providers', 'searchProviders')}>
|
|
94
|
+
<i className="fa fa-times"></i>
|
|
95
|
+
</span>
|
|
96
|
+
{/* <img
|
|
97
|
+
src={InfoIcon}
|
|
98
|
+
alt="icon"
|
|
99
|
+
/>
|
|
100
|
+
<h2>Coming Soon</h2>
|
|
101
|
+
<p>This module is coming soon...</p>
|
|
102
|
+
<button onClick={() => hide('providers', 'searchProviders')}>OK</button> */}
|
|
103
|
+
|
|
104
|
+
<div className="popup-container default-popup">
|
|
105
|
+
<div className="data-screen-container">
|
|
106
|
+
<div className="ag-theme-alpine custom-ag-parent">
|
|
107
|
+
<AgGridReact
|
|
108
|
+
columnDefs={this.state.columnDefs}
|
|
109
|
+
defaultColDef={this.state.defaultColDef}
|
|
110
|
+
onGridReady={this.onGridReady}
|
|
111
|
+
rowData={this.state.rowData}
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</Modal.Body>
|
|
117
|
+
</Modal>
|
|
118
|
+
</>
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export default SearchProviders;
|
|
@@ -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 Seeds 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('providers', 'seeds')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>UI Coming Soon</h2>
|
|
26
|
+
<p>You can use this functionality directly by accessing the OASIS API from the Developer menu.</p>
|
|
27
|
+
<button onClick={() => hide('providers', 'seeds')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Seeds;
|
|
@@ -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 Solid 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('providers', 'solid')}
|
|
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('providers', 'solid')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Solid;
|
|
@@ -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 SqlLite 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('providers', 'sqlLite')}
|
|
19
|
+
>
|
|
20
|
+
<Modal.Body className="text-center coming-soon">
|
|
21
|
+
<img
|
|
22
|
+
src={InfoIcon}
|
|
23
|
+
alt="icon"
|
|
24
|
+
/>
|
|
25
|
+
<h2>UI Coming Soon</h2>
|
|
26
|
+
<p>You can use this functionality directly by accessing the OASIS API from the Developer menu.</p>
|
|
27
|
+
<button onClick={() => hide('providers', 'sqlLite')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default SqlLite;
|
|
@@ -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 ThreeFold 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('providers', 'threeFold')}
|
|
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('providers', 'threeFold')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ThreeFold;
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
7
|
+
import axios from "axios";
|
|
8
|
+
import { toast } from "react-toastify";
|
|
9
|
+
import API_BASE_URL from "../../../../config/api";
|
|
10
|
+
|
|
11
|
+
class ViewProviderStats extends React.Component {
|
|
12
|
+
state = {
|
|
13
|
+
columnDefs: [
|
|
14
|
+
{
|
|
15
|
+
fieldName: "provider",
|
|
16
|
+
headerName: "Provider",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
fieldName: "installed",
|
|
20
|
+
headerName: "Installed",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
fieldName: "view",
|
|
24
|
+
headerName: "View",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
fieldName: "running",
|
|
28
|
+
headerName: "Running",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
fieldName: "vpTime",
|
|
32
|
+
headerName: "VPTime"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
defaultColDef: {
|
|
36
|
+
flex: 1,
|
|
37
|
+
minWidth: 150,
|
|
38
|
+
filter: true,
|
|
39
|
+
sortable: true,
|
|
40
|
+
floatingFilter: true,
|
|
41
|
+
resizable: true,
|
|
42
|
+
},
|
|
43
|
+
rowData: null,
|
|
44
|
+
loading: true,
|
|
45
|
+
loggedIn: true,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
onGridReady = async (params) => {
|
|
49
|
+
this.gridApi = params.api;
|
|
50
|
+
this.gridColumnApi = params.columnApi;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
getApiData = () => {
|
|
54
|
+
this.setState({ loading: true })
|
|
55
|
+
|
|
56
|
+
axios({
|
|
57
|
+
method: 'get',
|
|
58
|
+
url: API_BASE_URL,
|
|
59
|
+
headers: {
|
|
60
|
+
'Content-Type': 'application/json'
|
|
61
|
+
},
|
|
62
|
+
})
|
|
63
|
+
.then((response) => {
|
|
64
|
+
this.setState({loading: false})
|
|
65
|
+
|
|
66
|
+
if (response.data.result?.isError) {
|
|
67
|
+
toast.error(response.data.result.message);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
toast.success(response.data.result.message);
|
|
72
|
+
})
|
|
73
|
+
.catch((err) => {
|
|
74
|
+
toast.error('err');
|
|
75
|
+
this.setState({loading: false})
|
|
76
|
+
return { error: true, data: err };
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
render() {
|
|
81
|
+
const { show, hide } = this.props;
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<>
|
|
85
|
+
<Modal
|
|
86
|
+
size="xl"
|
|
87
|
+
show={show}
|
|
88
|
+
dialogClassName=""
|
|
89
|
+
className="custom-modal custom-popup-component"
|
|
90
|
+
onHide={() => hide('providers', 'viewProviderStats')}
|
|
91
|
+
>
|
|
92
|
+
<Modal.Body>
|
|
93
|
+
<span className="form-cross-icon" onClick={() => hide('providers', 'viewProviderStats')}>
|
|
94
|
+
<i className="fa fa-times"></i>
|
|
95
|
+
</span>
|
|
96
|
+
|
|
97
|
+
{/* <img
|
|
98
|
+
src={InfoIcon}
|
|
99
|
+
alt="icon"
|
|
100
|
+
/>
|
|
101
|
+
<h2>Coming Soon</h2>
|
|
102
|
+
<p>This module is coming soon...</p>
|
|
103
|
+
<button onClick={() => hide('providers', 'viewProviderStats')}>OK</button> */}
|
|
104
|
+
|
|
105
|
+
<div className="popup-container default-popup">
|
|
106
|
+
<div className="data-screen-container">
|
|
107
|
+
<div className="ag-theme-alpine custom-ag-parent">
|
|
108
|
+
<AgGridReact
|
|
109
|
+
columnDefs={this.state.columnDefs}
|
|
110
|
+
defaultColDef={this.state.defaultColDef}
|
|
111
|
+
onGridReady={this.onGridReady}
|
|
112
|
+
rowData={this.state.rowData}
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</Modal.Body>
|
|
118
|
+
</Modal>
|
|
119
|
+
</>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export default ViewProviderStats;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Modal } from "react-bootstrap";
|
|
4
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
5
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
6
|
+
import axios from "axios";
|
|
7
|
+
import { toast } from "react-toastify";
|
|
8
|
+
import API_BASE_URL from "../../../../config/api";
|
|
9
|
+
|
|
10
|
+
class ViewProviders extends React.Component {
|
|
11
|
+
state = {
|
|
12
|
+
columnDefs: [
|
|
13
|
+
{
|
|
14
|
+
fieldName: "provider",
|
|
15
|
+
headerName: "Provider",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
fieldName: "installed",
|
|
19
|
+
headerName: "Installed",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
fieldName: "view",
|
|
23
|
+
headerName: "View",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
fieldName: "running",
|
|
27
|
+
headerName: "Running",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fieldName: "vpTime",
|
|
31
|
+
headerName: "VPTime"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
defaultColDef: {
|
|
35
|
+
flex: 1,
|
|
36
|
+
minWidth: 150,
|
|
37
|
+
filter: true,
|
|
38
|
+
sortable: true,
|
|
39
|
+
floatingFilter: true,
|
|
40
|
+
resizable: true,
|
|
41
|
+
},
|
|
42
|
+
rowData: null,
|
|
43
|
+
loading: true,
|
|
44
|
+
loggedIn: true,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
onGridReady = async (params) => {
|
|
48
|
+
this.gridApi = params.api;
|
|
49
|
+
this.gridColumnApi = params.columnApi;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
getApiData = () => {
|
|
53
|
+
this.setState({ loading: true })
|
|
54
|
+
|
|
55
|
+
axios({
|
|
56
|
+
method: 'get',
|
|
57
|
+
url: API_BASE_URL,
|
|
58
|
+
headers: {
|
|
59
|
+
'Content-Type': 'application/json'
|
|
60
|
+
},
|
|
61
|
+
})
|
|
62
|
+
.then((response) => {
|
|
63
|
+
this.setState({loading: false})
|
|
64
|
+
|
|
65
|
+
if (response.data.result?.isError) {
|
|
66
|
+
toast.error(response.data.result.message);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
toast.success(response.data.result.message);
|
|
71
|
+
})
|
|
72
|
+
.catch((err) => {
|
|
73
|
+
toast.error('err');
|
|
74
|
+
this.setState({loading: false})
|
|
75
|
+
return { error: true, data: err };
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
render() {
|
|
80
|
+
const { show, hide } = this.props;
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<>
|
|
84
|
+
<Modal
|
|
85
|
+
size="xl"
|
|
86
|
+
show={show}
|
|
87
|
+
dialogClassName=""
|
|
88
|
+
className="custom-modal custom-popup-component"
|
|
89
|
+
onHide={() => hide('providers', 'viewProviders')}
|
|
90
|
+
>
|
|
91
|
+
<Modal.Body className="text-center coming-soon">
|
|
92
|
+
<span className="form-cross-icon" onClick={() => hide('providers', 'viewProviders')}>
|
|
93
|
+
<i className="fa fa-times"></i>
|
|
94
|
+
</span>
|
|
95
|
+
{/* <img
|
|
96
|
+
src={InfoIcon}
|
|
97
|
+
alt="icon"
|
|
98
|
+
/>
|
|
99
|
+
<h2>UI Coming Soon</h2>
|
|
100
|
+
<p>You can use this functionality directly by accessing the OASIS API from the Developer menu.</p>
|
|
101
|
+
<button onClick={() => hide('providers', 'viewProviders')}>OK</button> */}
|
|
102
|
+
|
|
103
|
+
<div className="popup-container default-popup">
|
|
104
|
+
<div className="data-screen-container">
|
|
105
|
+
<div className="ag-theme-alpine custom-ag-parent">
|
|
106
|
+
<AgGridReact
|
|
107
|
+
columnDefs={this.state.columnDefs}
|
|
108
|
+
defaultColDef={this.state.defaultColDef}
|
|
109
|
+
onGridReady={this.onGridReady}
|
|
110
|
+
rowData={this.state.rowData}
|
|
111
|
+
/>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</Modal.Body>
|
|
116
|
+
</Modal>
|
|
117
|
+
</>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default ViewProviders;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ActivityPub from './components/ActivityPub';
|
|
4
|
+
import CompareProviderSpeeds from './components/CompareProviderSpeeds';
|
|
5
|
+
import Eosio from './components/Eosio';
|
|
6
|
+
import Ethereum from './components/Ethereum';
|
|
7
|
+
import Holochain from './components/Holochain';
|
|
8
|
+
import Ipfs from './components/Ipfs';
|
|
9
|
+
import ManageAutoFailOver from './components/ManageAutoFailOver';
|
|
10
|
+
import ManageAutoReplicaton from './components/ManageAutoReplicaton';
|
|
11
|
+
import ManageLoadBalancing from './components/ManageLoadBalancing';
|
|
12
|
+
import ManageProviders from './components/ManageProviders';
|
|
13
|
+
import MongoDb from './components/MongoDb';
|
|
14
|
+
import Neo4j from './components/Neo4j';
|
|
15
|
+
import SearchProviders from './components/SearchProviders';
|
|
16
|
+
import Seeds from './components/Seeds';
|
|
17
|
+
import Solid from './components/Solid';
|
|
18
|
+
import SqlLite from './components/SqlLite';
|
|
19
|
+
import ThreeFold from './components/ThreeFold';
|
|
20
|
+
import ViewProviders from './components/ViewProviders';
|
|
21
|
+
import ViewProviderStats from './components/ViewProviderStats';
|
|
22
|
+
|
|
23
|
+
class Provider extends React.Component {
|
|
24
|
+
|
|
25
|
+
render() {
|
|
26
|
+
const props = this.props;
|
|
27
|
+
const { viewProviders } = this.props.providers;
|
|
28
|
+
console.log(viewProviders)
|
|
29
|
+
return(
|
|
30
|
+
<>
|
|
31
|
+
|
|
32
|
+
<ViewProviders
|
|
33
|
+
show={viewProviders}
|
|
34
|
+
hide={props.toggleScreenPopup}
|
|
35
|
+
/>
|
|
36
|
+
<ManageProviders
|
|
37
|
+
show={props.providers.manageProviders}
|
|
38
|
+
hide={props.toggleScreenPopup}
|
|
39
|
+
/>
|
|
40
|
+
<ManageAutoReplicaton
|
|
41
|
+
show={props.providers.manageAutoReplicaton}
|
|
42
|
+
hide={props.toggleScreenPopup}
|
|
43
|
+
/>
|
|
44
|
+
<ManageAutoFailOver
|
|
45
|
+
show={props.providers.manageAutoFailOver}
|
|
46
|
+
hide={props.toggleScreenPopup}
|
|
47
|
+
/>
|
|
48
|
+
<ManageLoadBalancing
|
|
49
|
+
show={props.providers.manageLoadBalancing}
|
|
50
|
+
hide={props.toggleScreenPopup}
|
|
51
|
+
/>
|
|
52
|
+
<ViewProviderStats
|
|
53
|
+
show={props.providers.viewProviderStats}
|
|
54
|
+
hide={props.toggleScreenPopup}
|
|
55
|
+
/>
|
|
56
|
+
<CompareProviderSpeeds
|
|
57
|
+
show={props.providers.compareProviderSpeeds}
|
|
58
|
+
hide={props.toggleScreenPopup}
|
|
59
|
+
/>
|
|
60
|
+
<SearchProviders
|
|
61
|
+
show={props.providers.searchProviders}
|
|
62
|
+
hide={props.toggleScreenPopup}
|
|
63
|
+
/>
|
|
64
|
+
<Holochain
|
|
65
|
+
show={props.providers.holochain}
|
|
66
|
+
hide={props.toggleScreenPopup}
|
|
67
|
+
/>
|
|
68
|
+
<Seeds
|
|
69
|
+
show={props.providers.seeds}
|
|
70
|
+
hide={props.toggleScreenPopup}
|
|
71
|
+
/>
|
|
72
|
+
<Eosio
|
|
73
|
+
show={props.providers.eosio}
|
|
74
|
+
hide={props.toggleScreenPopup}
|
|
75
|
+
/>
|
|
76
|
+
<Ethereum
|
|
77
|
+
show={props.providers.ethereum}
|
|
78
|
+
hide={props.toggleScreenPopup}
|
|
79
|
+
/>
|
|
80
|
+
<Ipfs
|
|
81
|
+
show={props.providers.ipfs}
|
|
82
|
+
hide={props.toggleScreenPopup}
|
|
83
|
+
/>
|
|
84
|
+
<ThreeFold
|
|
85
|
+
show={props.providers.threeFold}
|
|
86
|
+
hide={props.toggleScreenPopup}
|
|
87
|
+
/>
|
|
88
|
+
<Solid
|
|
89
|
+
show={props.providers.solid}
|
|
90
|
+
hide={props.toggleScreenPopup}
|
|
91
|
+
/>
|
|
92
|
+
<ActivityPub
|
|
93
|
+
show={props.providers.activityPub}
|
|
94
|
+
hide={props.toggleScreenPopup}
|
|
95
|
+
/>
|
|
96
|
+
<MongoDb
|
|
97
|
+
show={props.providers.mongoDb}
|
|
98
|
+
hide={props.toggleScreenPopup}
|
|
99
|
+
/>
|
|
100
|
+
<SqlLite
|
|
101
|
+
show={props.providers.sqlLite}
|
|
102
|
+
hide={props.toggleScreenPopup}
|
|
103
|
+
/>
|
|
104
|
+
<Neo4j
|
|
105
|
+
show={props.providers.neo4j}
|
|
106
|
+
hide={props.toggleScreenPopup}
|
|
107
|
+
/>
|
|
108
|
+
|
|
109
|
+
</>
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export default Provider;
|
|
@@ -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 ManageQuest 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('quest', 'manageQuest')}
|
|
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('quest', 'manageQuest')}>OK</button>
|
|
28
|
+
</Modal.Body>
|
|
29
|
+
</Modal>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default ManageQuest;
|