@oasisomniverse/react 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/README.md +69 -0
- package/package.json +72 -0
- package/src/components/App.js +504 -0
- package/src/components/ForgetPassword.js +126 -0
- package/src/components/Login.js +222 -0
- package/src/components/ResetPassword.js +176 -0
- package/src/components/Signup.js +285 -0
- package/src/components/VerifyEmail.js +68 -0
- package/src/components/common/AvatarConnect.jsx +89 -0
- package/src/components/common/Contact.jsx +60 -0
- package/src/components/common/Eggs.jsx +50 -0
- package/src/components/common/Game.jsx +36 -0
- package/src/components/common/HyperDrive.jsx +50 -0
- package/src/components/common/KarmaToast.jsx +38 -0
- package/src/components/common/Map.jsx +42 -0
- package/src/components/common/MenuMessage.jsx +70 -0
- package/src/components/common/Messaging.jsx +74 -0
- package/src/components/common/Mission.jsx +40 -0
- package/src/components/common/NFT.jsx +42 -0
- package/src/components/common/NavBar.jsx +52 -0
- package/src/components/common/Navbar.js +137 -0
- package/src/components/common/OApp.jsx +41 -0
- package/src/components/common/ONET.jsx +50 -0
- package/src/components/common/ONODE.jsx +49 -0
- package/src/components/common/OasisModal.css +9 -0
- package/src/components/common/OasisModal.jsx +29 -0
- package/src/components/common/ProviderDropdown.js +25 -0
- package/src/components/common/ProviderDropdown.jsx +61 -0
- package/src/components/common/Providers.jsx +38 -0
- package/src/components/common/Quest.jsx +40 -0
- package/src/components/common/SearchAvatars.jsx +49 -0
- package/src/components/common/Seeds.jsx +39 -0
- package/src/components/common/Settings.jsx +70 -0
- package/src/components/common/StarField.jsx +56 -0
- package/src/components/common/Wallet.jsx +45 -0
- package/src/components/common/message/MessageContacts.jsx +66 -0
- package/src/components/common/message/Messages.jsx +75 -0
- package/src/components/common/sidebar/Sidebar.jsx +27 -0
- package/src/components/common/sidebar/SidebarData.js +615 -0
- package/src/components/common/sidebar/SidebarMenuItem.jsx +79 -0
- package/src/components/index.js +26 -0
- package/src/components/pages/forgotPassword.js +47 -0
- package/src/components/popups/avatar/components/AvatarWallet.jsx +169 -0
- package/src/components/popups/avatar/components/EditAvatar.jsx +34 -0
- package/src/components/popups/avatar/components/SearchAvatar.jsx +34 -0
- package/src/components/popups/avatar/components/ViewAvatar.jsx +148 -0
- package/src/components/popups/avatar/index.jsx +39 -0
- package/src/components/popups/comingsoon/ComingSoon.jsx +28 -0
- package/src/components/popups/confirmation/Confirmation.js +30 -0
- package/src/components/popups/contact/index.js +100 -0
- package/src/components/popups/data-screen/components/AddData.jsx +89 -0
- package/src/components/popups/data-screen/components/CrossChainManagement.jsx +87 -0
- package/src/components/popups/data-screen/components/LoadData.jsx +157 -0
- package/src/components/popups/data-screen/components/ManageData.jsx +34 -0
- package/src/components/popups/data-screen/components/OffChainManagement.jsx +177 -0
- package/src/components/popups/data-screen/components/SearchData.jsx +34 -0
- package/src/components/popups/data-screen/index.jsx +52 -0
- package/src/components/popups/eggs/components/ManageEggs.jsx +34 -0
- package/src/components/popups/eggs/components/SearchEggs.jsx +34 -0
- package/src/components/popups/eggs/components/ViewEggs.jsx +34 -0
- package/src/components/popups/eggs/index.jsx +31 -0
- package/src/components/popups/game/components/SearchProfiles.jsx +34 -0
- package/src/components/popups/game/components/ViewAchievements.jsx +34 -0
- package/src/components/popups/game/components/ViewLeagues.jsx +34 -0
- package/src/components/popups/game/components/ViewTournaments.jsx +34 -0
- package/src/components/popups/game/index.jsx +38 -0
- package/src/components/popups/karma/components/SearchKarma.jsx +34 -0
- package/src/components/popups/karma/components/ViewAvatarKarma.jsx +139 -0
- package/src/components/popups/karma/components/ViewKarma.jsx +103 -0
- package/src/components/popups/karma/components/VoteKarma.jsx +34 -0
- package/src/components/popups/karma/index.jsx +34 -0
- package/src/components/popups/map/components/Add2dObjectMap.jsx +34 -0
- package/src/components/popups/map/components/Add3dObjectMap.jsx +34 -0
- package/src/components/popups/map/components/AddQuestToMap.jsx +34 -0
- package/src/components/popups/map/components/DownloadOurWorld.jsx +34 -0
- package/src/components/popups/map/components/ManageMap.jsx +34 -0
- package/src/components/popups/map/components/PlotRouteOnMap.jsx +34 -0
- package/src/components/popups/map/components/SearchMap.jsx +34 -0
- package/src/components/popups/map/components/ViewGlobal3dMap.jsx +34 -0
- package/src/components/popups/map/components/ViewHalonsOnMap.jsx +34 -0
- package/src/components/popups/map/components/ViewOappOnMap.jsx +34 -0
- package/src/components/popups/map/components/ViewQuestOnMap.jsx +34 -0
- package/src/components/popups/map/index.jsx +79 -0
- package/src/components/popups/messages/Message.jsx +86 -0
- package/src/components/popups/mission/components/ManageMission.jsx +34 -0
- package/src/components/popups/mission/components/SearchMission.jsx +34 -0
- package/src/components/popups/mission/components/ViewMission.jsx +34 -0
- package/src/components/popups/mission/index.jsx +32 -0
- package/src/components/popups/nft/ContactPopup.jsx +146 -0
- package/src/components/popups/nft/Solana.jsx +70 -0
- package/src/components/popups/nft/components/ManageOasisNft.jsx +34 -0
- package/src/components/popups/nft/components/PurchaseOasisNft.jsx +34 -0
- package/src/components/popups/nft/components/PurchaseOasisVirtualLandNft.jsx +34 -0
- package/src/components/popups/nft/components/SearchOasisNft.jsx +34 -0
- package/src/components/popups/nft/components/ViewOasisNft.jsx +34 -0
- package/src/components/popups/nft/index.jsx +45 -0
- package/src/components/popups/oapp/components/CreateOAPP.jsx +34 -0
- package/src/components/popups/oapp/components/DeployOAPP.jsx +34 -0
- package/src/components/popups/oapp/components/DownloadOurWorld.jsx +34 -0
- package/src/components/popups/oapp/components/EditOAPP.jsx +34 -0
- package/src/components/popups/oapp/components/InstallOAPP.jsx +34 -0
- package/src/components/popups/oapp/components/LaunchOAPP.jsx +34 -0
- package/src/components/popups/oapp/components/ManageOAPP.jsx +68 -0
- package/src/components/popups/oapp/components/SearchOAPP.jsx +34 -0
- package/src/components/popups/oapp/index.jsx +62 -0
- package/src/components/popups/provider/components/ActivityPub.jsx +34 -0
- package/src/components/popups/provider/components/CompareProviderSpeeds.jsx +123 -0
- package/src/components/popups/provider/components/Eosio.jsx +34 -0
- package/src/components/popups/provider/components/Ethereum.jsx +34 -0
- package/src/components/popups/provider/components/Holochain.jsx +34 -0
- package/src/components/popups/provider/components/Ipfs.jsx +35 -0
- package/src/components/popups/provider/components/ManageAutoFailOver.jsx +34 -0
- package/src/components/popups/provider/components/ManageAutoReplicaton.jsx +34 -0
- package/src/components/popups/provider/components/ManageLoadBalancing.jsx +34 -0
- package/src/components/popups/provider/components/ManageProviders.jsx +34 -0
- package/src/components/popups/provider/components/MongoDb.jsx +34 -0
- package/src/components/popups/provider/components/Neo4j.jsx +34 -0
- package/src/components/popups/provider/components/SearchProviders.jsx +122 -0
- package/src/components/popups/provider/components/Seeds.jsx +34 -0
- package/src/components/popups/provider/components/Solid.jsx +34 -0
- package/src/components/popups/provider/components/SqlLite.jsx +34 -0
- package/src/components/popups/provider/components/ThreeFold.jsx +34 -0
- package/src/components/popups/provider/components/ViewProviderStats.jsx +123 -0
- package/src/components/popups/provider/components/ViewProviders.jsx +121 -0
- package/src/components/popups/provider/index.jsx +113 -0
- package/src/components/popups/quest/components/ManageQuest.jsx +34 -0
- package/src/components/popups/quest/components/SearchQuest.jsx +34 -0
- package/src/components/popups/quest/components/ViewQuest.jsx +34 -0
- package/src/components/popups/quest/index.jsx +32 -0
- package/src/components/popups/seeds/components/AcceptInvite.jsx +61 -0
- package/src/components/popups/seeds/components/DonateSeeds.jsx +178 -0
- package/src/components/popups/seeds/components/ManageSeeds.jsx +34 -0
- package/src/components/popups/seeds/components/PayWithSeeds.jsx +233 -0
- package/src/components/popups/seeds/components/RewardSeeds.jsx +178 -0
- package/src/components/popups/seeds/components/SearchSeeds.jsx +91 -0
- package/src/components/popups/seeds/components/SendInvite.jsx +178 -0
- package/src/components/popups/seeds/components/ViewOrganizations.jsx +178 -0
- package/src/components/popups/seeds/components/ViewSeeds.jsx +221 -0
- package/src/components/popups/seeds/index.jsx +70 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Modal } from 'react-bootstrap';
|
|
4
|
+
import axios from "axios";
|
|
5
|
+
import { toast } from "react-toastify";
|
|
6
|
+
import API_BASE_URL from "../../../../config/api";
|
|
7
|
+
|
|
8
|
+
class RewardSeeds extends React.Component {
|
|
9
|
+
constructor(){
|
|
10
|
+
super()
|
|
11
|
+
this.state = {
|
|
12
|
+
// avatar: {
|
|
13
|
+
// selected: false,
|
|
14
|
+
// avatar: ''
|
|
15
|
+
// },
|
|
16
|
+
// username: {
|
|
17
|
+
// selected: false,
|
|
18
|
+
// username: '',
|
|
19
|
+
// amount: '',
|
|
20
|
+
// note: ''
|
|
21
|
+
// },
|
|
22
|
+
group: '',
|
|
23
|
+
avatar: '',
|
|
24
|
+
seedUser: '',
|
|
25
|
+
amount: '',
|
|
26
|
+
note: ''
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
handleChange = (e) => {
|
|
31
|
+
console.log(e.target.value)
|
|
32
|
+
|
|
33
|
+
if(e.target.value === "avatar_section" || e.target.value === "username_section") {
|
|
34
|
+
this.setState({
|
|
35
|
+
group: e.target.value
|
|
36
|
+
})
|
|
37
|
+
} else {
|
|
38
|
+
this.setState({[e.target.name]: e.target.value})
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
handleSubmit=(e) => {
|
|
43
|
+
e.preventDefault()
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getApiData = () => {
|
|
47
|
+
this.setState({ loading: true })
|
|
48
|
+
|
|
49
|
+
axios({
|
|
50
|
+
method: 'post',
|
|
51
|
+
url: API_BASE_URL,
|
|
52
|
+
headers: {
|
|
53
|
+
'Content-Type': 'application/json'
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
.then((response) => {
|
|
57
|
+
this.setState({loading: false})
|
|
58
|
+
|
|
59
|
+
if (response.data.result?.isError) {
|
|
60
|
+
toast.error(response.data.result.message);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
toast.success(response.data.result.message);
|
|
65
|
+
})
|
|
66
|
+
.catch((err) => {
|
|
67
|
+
toast.error('err');
|
|
68
|
+
this.setState({loading: false})
|
|
69
|
+
return { error: true, data: err };
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
render() {
|
|
74
|
+
const { show, hide } = this.props;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<Modal
|
|
79
|
+
centered
|
|
80
|
+
className="custom-modal custom-popup-component"
|
|
81
|
+
show={show}
|
|
82
|
+
onHide={() => hide('seeds', 'rewardSeeds')}
|
|
83
|
+
>
|
|
84
|
+
<Modal.Body>
|
|
85
|
+
<span className="form-cross-icon" onClick={() => hide('seeds', 'rewardSeeds')}>
|
|
86
|
+
<i className="fa fa-times"></i>
|
|
87
|
+
</span>
|
|
88
|
+
|
|
89
|
+
<div className="popup-container default-popup">
|
|
90
|
+
<div className="seed-container paywith-seeds">
|
|
91
|
+
<h1 className="single-heading">
|
|
92
|
+
Pay with Seeds
|
|
93
|
+
</h1>
|
|
94
|
+
<div className="form-container">
|
|
95
|
+
<form onSubmit={this.handleSubmit}>
|
|
96
|
+
<p className="single-form-row">
|
|
97
|
+
<label className="single-radio-btn">
|
|
98
|
+
<input
|
|
99
|
+
type="radio"
|
|
100
|
+
value="avatar_section"
|
|
101
|
+
checked={this.state.group === "avatar_section"}
|
|
102
|
+
onChange={this.handleChange}
|
|
103
|
+
/>
|
|
104
|
+
Avatar
|
|
105
|
+
</label>
|
|
106
|
+
<input
|
|
107
|
+
type="text"
|
|
108
|
+
placeholder="username"
|
|
109
|
+
name="avatar"
|
|
110
|
+
value={this.state.avatar}
|
|
111
|
+
onChange={this.handleChange}
|
|
112
|
+
disabled={this.state.group === "username_section"}
|
|
113
|
+
/>
|
|
114
|
+
</p>
|
|
115
|
+
|
|
116
|
+
<h3>OR</h3>
|
|
117
|
+
|
|
118
|
+
<p className="single-form-row">
|
|
119
|
+
<label className="single-radio-btn">
|
|
120
|
+
<input
|
|
121
|
+
type="radio"
|
|
122
|
+
value="username_section"
|
|
123
|
+
checked={this.state.group === "username_section"}
|
|
124
|
+
onChange={this.handleChange}
|
|
125
|
+
/>
|
|
126
|
+
Seed Username
|
|
127
|
+
</label>
|
|
128
|
+
|
|
129
|
+
<input
|
|
130
|
+
type="text"
|
|
131
|
+
name="seedUser"
|
|
132
|
+
value={this.state.username}
|
|
133
|
+
onChange={this.handleChange}
|
|
134
|
+
placeholder="username"
|
|
135
|
+
disabled={this.state.group === "avatar_section"}
|
|
136
|
+
/>
|
|
137
|
+
</p>
|
|
138
|
+
|
|
139
|
+
<p className="single-form-row">
|
|
140
|
+
<label>Amount</label>
|
|
141
|
+
<input
|
|
142
|
+
type="text"
|
|
143
|
+
name="amount"
|
|
144
|
+
value={this.state.amount}
|
|
145
|
+
onChange={this.handleChange}
|
|
146
|
+
disabled={this.state.group === "avatar_section"}
|
|
147
|
+
/>
|
|
148
|
+
</p>
|
|
149
|
+
|
|
150
|
+
<p className="single-form-row mb-30">
|
|
151
|
+
<label>Note</label>
|
|
152
|
+
<input
|
|
153
|
+
type="text"
|
|
154
|
+
name="note"
|
|
155
|
+
value={this.state.note}
|
|
156
|
+
onChange={this.handleChange}
|
|
157
|
+
disabled={this.state.group === "avatar_section"}
|
|
158
|
+
/>
|
|
159
|
+
</p>
|
|
160
|
+
|
|
161
|
+
<p className="single-form-row btn-right">
|
|
162
|
+
<button
|
|
163
|
+
className="sm-button"
|
|
164
|
+
type="submit"
|
|
165
|
+
>Pay</button>
|
|
166
|
+
</p>
|
|
167
|
+
</form>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</Modal.Body>
|
|
172
|
+
</Modal>
|
|
173
|
+
</>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export default RewardSeeds;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Modal } from "react-bootstrap";
|
|
3
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
4
|
+
import axios from "axios";
|
|
5
|
+
import { toast } from "react-toastify";
|
|
6
|
+
import API_BASE_URL from "../../../../config/api";
|
|
7
|
+
|
|
8
|
+
class SearchSeeds extends React.Component {
|
|
9
|
+
state = { }
|
|
10
|
+
|
|
11
|
+
getApiData = () => {
|
|
12
|
+
this.setState({ loading: true })
|
|
13
|
+
|
|
14
|
+
axios({
|
|
15
|
+
method: 'get',
|
|
16
|
+
url: API_BASE_URL,
|
|
17
|
+
headers: {
|
|
18
|
+
'Content-Type': 'application/json'
|
|
19
|
+
},
|
|
20
|
+
})
|
|
21
|
+
.then((response) => {
|
|
22
|
+
this.setState({loading: false})
|
|
23
|
+
|
|
24
|
+
if (response.data.result?.isError) {
|
|
25
|
+
toast.error(response.data.result.message);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
toast.success(response.data.result.message);
|
|
30
|
+
})
|
|
31
|
+
.catch((err) => {
|
|
32
|
+
toast.error('err');
|
|
33
|
+
this.setState({loading: false})
|
|
34
|
+
return { error: true, data: err };
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
render() {
|
|
39
|
+
const { show, hide } = this.props;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<>
|
|
43
|
+
<Modal
|
|
44
|
+
size="lg"
|
|
45
|
+
show={show}
|
|
46
|
+
dialogClassName=""
|
|
47
|
+
onHide={() => hide('seeds', 'searchSeeds')}
|
|
48
|
+
>
|
|
49
|
+
<Modal.Body className="seed-modal">
|
|
50
|
+
<div className="heading">
|
|
51
|
+
<h2>Search Seeds</h2>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div className="custom-form d-grid grid-gap-20">
|
|
55
|
+
<div className="d-flex justify-content-between">
|
|
56
|
+
<div className="form-field">
|
|
57
|
+
<label>Avatar:</label>
|
|
58
|
+
<input type="text" />
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div className="form-field">
|
|
62
|
+
<label>Seed Username:</label>
|
|
63
|
+
<input type="text" />
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div className="d-flex justify-content-between">
|
|
68
|
+
<div className="form-field">
|
|
69
|
+
<label>From Date:</label>
|
|
70
|
+
<input type="text" />
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div className="form-field">
|
|
74
|
+
<label>To Date:</label>
|
|
75
|
+
<input type="text" />
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div className="d-flex grid-gap-20 justify-content-end">
|
|
80
|
+
<button className="white-button submit-button" onClick={() => hide('seeds', 'searchSeeds')}>Cancel</button>
|
|
81
|
+
<button className="submit-button">Search</button>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</Modal.Body>
|
|
85
|
+
</Modal>
|
|
86
|
+
</>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export default SearchSeeds;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Modal } from 'react-bootstrap';
|
|
4
|
+
import axios from "axios";
|
|
5
|
+
import { toast } from "react-toastify";
|
|
6
|
+
import API_BASE_URL from "../../../../config/api";
|
|
7
|
+
|
|
8
|
+
class SendInvite extends React.Component {
|
|
9
|
+
constructor(){
|
|
10
|
+
super()
|
|
11
|
+
this.state = {
|
|
12
|
+
// avatar: {
|
|
13
|
+
// selected: false,
|
|
14
|
+
// avatar: ''
|
|
15
|
+
// },
|
|
16
|
+
// username: {
|
|
17
|
+
// selected: false,
|
|
18
|
+
// username: '',
|
|
19
|
+
// amount: '',
|
|
20
|
+
// note: ''
|
|
21
|
+
// },
|
|
22
|
+
group: '',
|
|
23
|
+
avatar: '',
|
|
24
|
+
seedUser: '',
|
|
25
|
+
amount: '',
|
|
26
|
+
note: ''
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
handleChange = (e) => {
|
|
31
|
+
console.log(e.target.value)
|
|
32
|
+
|
|
33
|
+
if(e.target.value === "avatar_section" || e.target.value === "username_section") {
|
|
34
|
+
this.setState({
|
|
35
|
+
group: e.target.value
|
|
36
|
+
})
|
|
37
|
+
} else {
|
|
38
|
+
this.setState({[e.target.name]: e.target.value})
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
handleSubmit=(e) => {
|
|
43
|
+
e.preventDefault()
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getApiData = () => {
|
|
47
|
+
this.setState({ loading: true })
|
|
48
|
+
|
|
49
|
+
axios({
|
|
50
|
+
method: 'post',
|
|
51
|
+
url: API_BASE_URL,
|
|
52
|
+
headers: {
|
|
53
|
+
'Content-Type': 'application/json'
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
.then((response) => {
|
|
57
|
+
this.setState({loading: false})
|
|
58
|
+
|
|
59
|
+
if (response.data.result?.isError) {
|
|
60
|
+
toast.error(response.data.result.message);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
toast.success(response.data.result.message);
|
|
65
|
+
})
|
|
66
|
+
.catch((err) => {
|
|
67
|
+
toast.error('err');
|
|
68
|
+
this.setState({loading: false})
|
|
69
|
+
return { error: true, data: err };
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
render() {
|
|
74
|
+
const { show, hide } = this.props;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<Modal
|
|
79
|
+
centered
|
|
80
|
+
className="custom-modal custom-popup-component"
|
|
81
|
+
show={show}
|
|
82
|
+
onHide={() => hide('seeds', 'sendInvite')}
|
|
83
|
+
>
|
|
84
|
+
<Modal.Body>
|
|
85
|
+
<span className="form-cross-icon" onClick={() => hide('seeds', 'sendInvite')}>
|
|
86
|
+
<i className="fa fa-times"></i>
|
|
87
|
+
</span>
|
|
88
|
+
|
|
89
|
+
<div className="popup-container default-popup">
|
|
90
|
+
<div className="seed-container paywith-seeds">
|
|
91
|
+
<h1 className="single-heading">
|
|
92
|
+
Pay with Seeds
|
|
93
|
+
</h1>
|
|
94
|
+
<div className="form-container">
|
|
95
|
+
<form onSubmit={this.handleSubmit}>
|
|
96
|
+
<p className="single-form-row">
|
|
97
|
+
<label className="single-radio-btn">
|
|
98
|
+
<input
|
|
99
|
+
type="radio"
|
|
100
|
+
value="avatar_section"
|
|
101
|
+
checked={this.state.group === "avatar_section"}
|
|
102
|
+
onChange={this.handleChange}
|
|
103
|
+
/>
|
|
104
|
+
Avatar
|
|
105
|
+
</label>
|
|
106
|
+
<input
|
|
107
|
+
type="text"
|
|
108
|
+
placeholder="username"
|
|
109
|
+
name="avatar"
|
|
110
|
+
value={this.state.avatar}
|
|
111
|
+
onChange={this.handleChange}
|
|
112
|
+
disabled={this.state.group === "username_section"}
|
|
113
|
+
/>
|
|
114
|
+
</p>
|
|
115
|
+
|
|
116
|
+
<h3>OR</h3>
|
|
117
|
+
|
|
118
|
+
<p className="single-form-row">
|
|
119
|
+
<label className="single-radio-btn">
|
|
120
|
+
<input
|
|
121
|
+
type="radio"
|
|
122
|
+
value="username_section"
|
|
123
|
+
checked={this.state.group === "username_section"}
|
|
124
|
+
onChange={this.handleChange}
|
|
125
|
+
/>
|
|
126
|
+
Seed Username
|
|
127
|
+
</label>
|
|
128
|
+
|
|
129
|
+
<input
|
|
130
|
+
type="text"
|
|
131
|
+
name="seedUser"
|
|
132
|
+
value={this.state.username}
|
|
133
|
+
onChange={this.handleChange}
|
|
134
|
+
placeholder="username"
|
|
135
|
+
disabled={this.state.group === "avatar_section"}
|
|
136
|
+
/>
|
|
137
|
+
</p>
|
|
138
|
+
|
|
139
|
+
<p className="single-form-row">
|
|
140
|
+
<label>Amount</label>
|
|
141
|
+
<input
|
|
142
|
+
type="text"
|
|
143
|
+
name="amount"
|
|
144
|
+
value={this.state.amount}
|
|
145
|
+
onChange={this.handleChange}
|
|
146
|
+
disabled={this.state.group === "avatar_section"}
|
|
147
|
+
/>
|
|
148
|
+
</p>
|
|
149
|
+
|
|
150
|
+
<p className="single-form-row mb-30">
|
|
151
|
+
<label>Note</label>
|
|
152
|
+
<input
|
|
153
|
+
type="text"
|
|
154
|
+
name="note"
|
|
155
|
+
value={this.state.note}
|
|
156
|
+
onChange={this.handleChange}
|
|
157
|
+
disabled={this.state.group === "avatar_section"}
|
|
158
|
+
/>
|
|
159
|
+
</p>
|
|
160
|
+
|
|
161
|
+
<p className="single-form-row btn-right">
|
|
162
|
+
<button
|
|
163
|
+
className="sm-button"
|
|
164
|
+
type="submit"
|
|
165
|
+
>Pay</button>
|
|
166
|
+
</p>
|
|
167
|
+
</form>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</Modal.Body>
|
|
172
|
+
</Modal>
|
|
173
|
+
</>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export default SendInvite;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Modal } from "react-bootstrap";
|
|
3
|
+
import '../../../../assets/scss/coming-soon.scss';
|
|
4
|
+
import { AgGridReact } from 'ag-grid-react';
|
|
5
|
+
import axios from "axios";
|
|
6
|
+
import { toast } from "react-toastify";
|
|
7
|
+
import API_BASE_URL from "../../../../config/api";
|
|
8
|
+
|
|
9
|
+
class ViewOrganizations extends React.Component {
|
|
10
|
+
state = {
|
|
11
|
+
columnDefs: [
|
|
12
|
+
{
|
|
13
|
+
field: 'athlete'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
field: 'age',
|
|
17
|
+
filter: 'agNumberColumnFilter',
|
|
18
|
+
maxWidth: 100,
|
|
19
|
+
},
|
|
20
|
+
{ field: 'country' },
|
|
21
|
+
{
|
|
22
|
+
field: 'year',
|
|
23
|
+
maxWidth: 100,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
field: 'date',
|
|
27
|
+
filter: 'agDateColumnFilter',
|
|
28
|
+
},
|
|
29
|
+
{ field: 'sport' },
|
|
30
|
+
{
|
|
31
|
+
field: 'gold',
|
|
32
|
+
filter: 'agNumberColumnFilter',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
field: 'silver',
|
|
36
|
+
filter: 'agNumberColumnFilter',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
field: 'bronze',
|
|
40
|
+
filter: 'agNumberColumnFilter',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
field: 'total',
|
|
44
|
+
filter: false,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
defaultColDef: {
|
|
48
|
+
flex: 1,
|
|
49
|
+
minWidth: 150,
|
|
50
|
+
filter: true,
|
|
51
|
+
sortable: true,
|
|
52
|
+
floatingFilter: true,
|
|
53
|
+
resizable: true,
|
|
54
|
+
// overflow:true
|
|
55
|
+
},
|
|
56
|
+
rowData: null,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
onGridReady = (params) => {
|
|
60
|
+
this.gridApi = params.api;
|
|
61
|
+
this.gridColumnApi = params.columnApi;
|
|
62
|
+
|
|
63
|
+
// const updateData = (data) => {
|
|
64
|
+
// this.setState({ rowData: data });
|
|
65
|
+
// };
|
|
66
|
+
|
|
67
|
+
// fetch('https://www.ag-grid.com/example-assets/olympic-winners.json')
|
|
68
|
+
// .then((resp) => resp.json())
|
|
69
|
+
// .then((data) => updateData(data));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
loadDataFromApi = () => {
|
|
73
|
+
const jwtToken = localStorage.getItem('jwtToken');
|
|
74
|
+
const headers = {
|
|
75
|
+
'Authorization': `Bearer ${jwtToken}`,
|
|
76
|
+
'Content-Type': 'application/json'
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
axios.get(`${API_BASE_URL}/seeds/get-all-organisations`, { headers })
|
|
80
|
+
.then(response => {
|
|
81
|
+
console.log(response)
|
|
82
|
+
// if(response.data.isError) {
|
|
83
|
+
// toast.error(response.data.message)
|
|
84
|
+
// } else {
|
|
85
|
+
// toast.success(response.data.result.message)
|
|
86
|
+
// }
|
|
87
|
+
// // this.props.history.goBack()
|
|
88
|
+
// // console.log(this.props)
|
|
89
|
+
})
|
|
90
|
+
.catch(error => {
|
|
91
|
+
console.log(error)
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
getApiData = () => {
|
|
96
|
+
this.setState({ loading: true })
|
|
97
|
+
|
|
98
|
+
axios({
|
|
99
|
+
method: 'get',
|
|
100
|
+
url: API_BASE_URL,
|
|
101
|
+
headers: {
|
|
102
|
+
'Content-Type': 'application/json'
|
|
103
|
+
},
|
|
104
|
+
})
|
|
105
|
+
.then((response) => {
|
|
106
|
+
this.setState({loading: false})
|
|
107
|
+
|
|
108
|
+
if (response.data.result?.isError) {
|
|
109
|
+
toast.error(response.data.result.message);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
toast.success(response.data.result.message);
|
|
114
|
+
})
|
|
115
|
+
.catch((err) => {
|
|
116
|
+
toast.error('err');
|
|
117
|
+
this.setState({loading: false})
|
|
118
|
+
return { error: true, data: err };
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
render() {
|
|
123
|
+
const { show, hide } = this.props;
|
|
124
|
+
|
|
125
|
+
if(show) {
|
|
126
|
+
// this.loadDataFromApi();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return (
|
|
130
|
+
<>
|
|
131
|
+
{/* <Modal
|
|
132
|
+
size="sm"
|
|
133
|
+
show={show}
|
|
134
|
+
dialogClassName=""
|
|
135
|
+
onHide={() => hide('seeds', 'viewOrganizations')}
|
|
136
|
+
>
|
|
137
|
+
<Modal.Body className="text-center coming-soon">
|
|
138
|
+
<img
|
|
139
|
+
src={InfoIcon}
|
|
140
|
+
alt="icon"
|
|
141
|
+
/>
|
|
142
|
+
<h2>UI Coming Soon</h2>
|
|
143
|
+
<p>You can use this functionality directly by accessing the OASIS API from the Developer menu.</p>
|
|
144
|
+
<button onClick={() => hide('seeds', 'viewOrganizations')}>OK</button>
|
|
145
|
+
</Modal.Body>
|
|
146
|
+
</Modal> */}
|
|
147
|
+
|
|
148
|
+
<Modal
|
|
149
|
+
size="xl"
|
|
150
|
+
centered
|
|
151
|
+
className="custom-modal custom-popup-component light-custom-popup"
|
|
152
|
+
show={show}
|
|
153
|
+
dialogClassName=""
|
|
154
|
+
onHide={() => hide('seeds', 'viewOrganizations')}
|
|
155
|
+
>
|
|
156
|
+
<Modal.Body>
|
|
157
|
+
<span className="form-cross-icon" onClick={() => hide('seeds', 'viewOrganizations')}>
|
|
158
|
+
<i className="fa fa-times"></i>
|
|
159
|
+
</span>
|
|
160
|
+
|
|
161
|
+
<h1 className="single-heading">Data</h1>
|
|
162
|
+
|
|
163
|
+
<div className="ag-theme-alpine custom-ag-parent">
|
|
164
|
+
<AgGridReact
|
|
165
|
+
columnDefs={this.state.columnDefs}
|
|
166
|
+
defaultColDef={this.state.defaultColDef}
|
|
167
|
+
onGridReady={this.onGridReady}
|
|
168
|
+
rowData={this.state.rowData}
|
|
169
|
+
/>
|
|
170
|
+
</div>
|
|
171
|
+
</Modal.Body>
|
|
172
|
+
</Modal>
|
|
173
|
+
</>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export default ViewOrganizations;
|