added api key to settings UI
This commit is contained in:
parent
3df2720009
commit
65def75433
4 changed files with 28 additions and 5 deletions
|
@ -44,6 +44,7 @@ class Auth
|
||||||
"email" => $found["email"],
|
"email" => $found["email"],
|
||||||
"role" => $found["role"],
|
"role" => $found["role"],
|
||||||
"avatar" => $found["avi"],
|
"avatar" => $found["avi"],
|
||||||
|
"key" => $found["key"],
|
||||||
];
|
];
|
||||||
|
|
||||||
$token = Token::create(
|
$token = Token::create(
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/css/dash.css?=adfdf">
|
<link rel="stylesheet" type="text/css" href="/assets/css/dash.css?=asdfdf">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block mainContent %}
|
{% block mainContent %}
|
||||||
|
@ -58,9 +58,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-full">
|
<div class="column is-full">
|
||||||
<textarea id="settings-desc" type='text' name='settings_desc' class='settings-dec' placeholder='description stuff', autofocus>{{desc}}</textarea>
|
<textarea id="settings-desc" type='text' name='settings_desc' class='settings-dec' placeholder='description stuff', autofocus>{{desc}}</textarea><br />
|
||||||
|
<label>YOUR API KEY</label><br />
|
||||||
|
<span id="key">{{member['key']}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2527,10 +2527,21 @@ svg.icons {
|
||||||
#settings-index #settings-index-wrapper textarea {
|
#settings-index #settings-index-wrapper textarea {
|
||||||
background: #1D3040;
|
background: #1D3040;
|
||||||
width: 93%;
|
width: 93%;
|
||||||
height: 128px;
|
height: 80px;
|
||||||
color: #f5ab35;
|
color: #f5ab35;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
#settings-index #settings-index-wrapper span#key {
|
||||||
|
color: #EFEBE3;
|
||||||
|
background: #1D3040;
|
||||||
|
font-size: 0.9em;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 5px;
|
||||||
|
display: block;
|
||||||
|
width: 95%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#settings-index #settings-index-wrapper #option-settings #theme-settings a {
|
#settings-index #settings-index-wrapper #option-settings #theme-settings a {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
|
|
|
@ -129,10 +129,20 @@
|
||||||
textarea
|
textarea
|
||||||
background: $primary
|
background: $primary
|
||||||
width: 93%
|
width: 93%
|
||||||
height: 128px
|
height: 80px
|
||||||
color: $tertiary
|
color: $tertiary
|
||||||
padding: 10px
|
padding: 10px
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
margin-bottom: 10px
|
||||||
|
span#key
|
||||||
|
color: $white
|
||||||
|
background: $primary
|
||||||
|
font-size: 0.9em
|
||||||
|
border-radius: 3px
|
||||||
|
padding: 5px
|
||||||
|
display: block
|
||||||
|
width: 95%
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
#option-settings
|
#option-settings
|
||||||
#theme-settings
|
#theme-settings
|
||||||
|
|
Loading…
Reference in a new issue