added api key to settings UI

This commit is contained in:
Ro 2021-06-13 14:24:20 -07:00
parent 3df2720009
commit 65def75433
4 changed files with 28 additions and 5 deletions

View file

@ -44,6 +44,7 @@ class Auth
"email" => $found["email"],
"role" => $found["role"],
"avatar" => $found["avi"],
"key" => $found["key"],
];
$token = Token::create(

View file

@ -11,7 +11,7 @@
{% endblock %}
{% 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 %}
{% block mainContent %}
@ -58,9 +58,10 @@
</div>
<div class="columns">
<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>

View file

@ -2527,10 +2527,21 @@ svg.icons {
#settings-index #settings-index-wrapper textarea {
background: #1D3040;
width: 93%;
height: 128px;
height: 80px;
color: #f5ab35;
padding: 10px;
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 {
width: 95%;

View file

@ -129,10 +129,20 @@
textarea
background: $primary
width: 93%
height: 128px
height: 80px
color: $tertiary
padding: 10px
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
#theme-settings