2018-05-22 14:31:27 +00:00
|
|
|
import EmbarkJS from 'Embark/EmbarkJS';
|
2018-05-23 18:45:29 +00:00
|
|
|
import ENSRegistry from 'Embark/contracts/ENSRegistry';
|
2018-09-04 21:49:39 +00:00
|
|
|
import UsernameRegistrar from 'Embark/contracts/UsernameRegistrar';
|
2018-05-29 20:51:19 +00:00
|
|
|
import TestToken from 'Embark/contracts/TestToken';
|
2018-05-22 14:31:27 +00:00
|
|
|
import React, { Fragment } from 'react';
|
|
|
|
import { Form, FormGroup, FormControl, HelpBlock, Button, ControlLabel } from 'react-bootstrap';
|
2018-05-27 20:28:07 +00:00
|
|
|
import AddDomain from './ens/addDomain';
|
2018-08-10 23:49:26 +00:00
|
|
|
import MoveDomain from './ens/moveDomain';
|
2018-05-27 20:28:07 +00:00
|
|
|
import RegisterSubDomain from './ens/registerSubDomain';
|
2018-05-29 20:51:19 +00:00
|
|
|
import TokenPermissions from './standard/TokenPermission';
|
2018-05-27 20:28:07 +00:00
|
|
|
import SetupENS from './ens/setupENS';
|
2018-08-08 20:54:18 +00:00
|
|
|
import UpdateController from './ens/updateController';
|
2018-05-22 14:31:27 +00:00
|
|
|
|
|
|
|
const FieldGroup = ({ id, label, help, ...props }) => (
|
|
|
|
<FormGroup controlId={id}>
|
|
|
|
<ControlLabel>{label}</ControlLabel>
|
|
|
|
<FormControl {...props} />
|
|
|
|
{help && <HelpBlock>{help}</HelpBlock>}
|
|
|
|
</FormGroup>
|
|
|
|
)
|
|
|
|
|
2018-08-08 20:54:18 +00:00
|
|
|
const ENSSubManagement = props => (
|
2018-05-22 14:31:27 +00:00
|
|
|
<Fragment>
|
2018-08-08 20:54:18 +00:00
|
|
|
<h2 style={{ textAlign: 'center' }}>Subdomain Management</h2>
|
|
|
|
<h3>Change Registry Controller</h3>
|
|
|
|
<UpdateController />
|
2018-09-04 21:49:39 +00:00
|
|
|
<h3>Activate Registry/Update Registry Price</h3>
|
2018-05-22 19:44:33 +00:00
|
|
|
<AddDomain />
|
2018-08-10 23:49:26 +00:00
|
|
|
<h3>Move Domain To Another Registry</h3>
|
|
|
|
<MoveDomain />
|
2018-05-23 18:45:29 +00:00
|
|
|
<hr/>
|
2018-05-27 20:28:07 +00:00
|
|
|
<h3>Register Sub-Domain</h3>
|
|
|
|
<RegisterSubDomain />
|
|
|
|
<hr/>
|
2018-05-29 20:51:19 +00:00
|
|
|
<TokenPermissions
|
|
|
|
symbol='SNT'
|
2018-09-04 21:49:39 +00:00
|
|
|
spender={UsernameRegistrar._address}
|
2018-05-29 20:51:19 +00:00
|
|
|
methods={TestToken.methods} />
|
|
|
|
<hr/>
|
2018-05-23 18:45:29 +00:00
|
|
|
<SetupENS ENSRegistry={ENSRegistry} />
|
2018-05-22 14:31:27 +00:00
|
|
|
</Fragment>
|
|
|
|
)
|
2018-05-27 20:28:07 +00:00
|
|
|
|
|
|
|
export default ENSSubManagement;
|