mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
style tweaks
This commit is contained in:
parent
9e1a76a08e
commit
02f8193743
@ -102,10 +102,12 @@ let Form = React.createClass({
|
|||||||
|
|
||||||
if (this.state.edited){
|
if (this.state.edited){
|
||||||
buttons = (
|
buttons = (
|
||||||
|
<div className="row" style={{margin: 0}}>
|
||||||
<p className="pull-right">
|
<p className="pull-right">
|
||||||
<Button className="ascribe-btn" type="submit">Save</Button>
|
<Button className="ascribe-btn" type="submit">Save</Button>
|
||||||
<Button className="ascribe-btn" onClick={this.reset}>Cancel</Button>
|
<Button className="ascribe-btn" onClick={this.reset}>Cancel</Button>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -133,19 +133,13 @@ let BitcoinWalletSettings = React.createClass({
|
|||||||
name='btc_public_key'
|
name='btc_public_key'
|
||||||
label="Bitcoin public key"
|
label="Bitcoin public key"
|
||||||
editable={false}>
|
editable={false}>
|
||||||
<input
|
<pre className="ascribe-pre">{this.state.walletSettings.btc_public_key}</pre>
|
||||||
type="text"
|
|
||||||
defaultValue={this.state.walletSettings.btc_public_key}
|
|
||||||
placeholder="Enter your username"
|
|
||||||
required/>
|
|
||||||
</Property>
|
</Property>
|
||||||
<Property
|
<Property
|
||||||
name='btc_root_address'
|
name='btc_root_address'
|
||||||
label="Root Address"
|
label="Root Address"
|
||||||
editable={false}>
|
editable={false}>
|
||||||
<input
|
<pre className="ascribe-pre">{this.state.walletSettings.btc_root_address}</pre>
|
||||||
type="text"
|
|
||||||
defaultValue={this.state.walletSettings.btc_root_address}/>
|
|
||||||
</Property>
|
</Property>
|
||||||
<hr />
|
<hr />
|
||||||
</Form>);
|
</Form>);
|
||||||
@ -204,7 +198,7 @@ let APISettings = React.createClass({
|
|||||||
handleTokenRefresh: function(event){
|
handleTokenRefresh: function(event){
|
||||||
let applicationName = event.target.getAttribute('data-id');
|
let applicationName = event.target.getAttribute('data-id');
|
||||||
ApplicationActions.refreshApplicationToken(applicationName);
|
ApplicationActions.refreshApplicationToken(applicationName);
|
||||||
let notification = new GlobalNotificationModel('Token refreshed', 'success');
|
let notification = new GlobalNotificationModel('Token refreshed', 'success', 2000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
@ -237,7 +231,6 @@ let APISettings = React.createClass({
|
|||||||
<hr />
|
<hr />
|
||||||
</Form>
|
</Form>
|
||||||
</div>);
|
</div>);
|
||||||
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
@ -257,6 +250,9 @@ let APISettings = React.createClass({
|
|||||||
</Property>
|
</Property>
|
||||||
<hr />
|
<hr />
|
||||||
</Form>
|
</Form>
|
||||||
|
<pre>
|
||||||
|
Usage: curl <url> -H 'Authorization: Bearer <token>'
|
||||||
|
</pre>
|
||||||
{content}
|
{content}
|
||||||
</CollapsibleParagraph>
|
</CollapsibleParagraph>
|
||||||
);
|
);
|
||||||
|
@ -39,10 +39,7 @@
|
|||||||
span {
|
span {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
div {
|
input, div, pre {
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
input {
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
@ -60,8 +57,10 @@
|
|||||||
|
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
|
|
||||||
span {
|
input, div, span, pre {
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
span {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: rgba(0,0,0,.7);
|
color: rgba(0,0,0,.7);
|
||||||
@ -79,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input, pre {
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
|
@ -18,4 +18,7 @@
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin:0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user