API key UI changes and backend storage of the keys
This commit is contained in:
parent
69e67b5e2d
commit
47e14ccaae
11 changed files with 136 additions and 160 deletions
|
@ -33,7 +33,7 @@ return [
|
|||
'header_sub' => 'Manage your API access keys.',
|
||||
'list' => 'API Keys',
|
||||
'create_new' => 'Create New API key',
|
||||
'keypair_created' => 'An API Key-Pair has been generated. Your API secret token is <code>:token</code>. Please take note of this key as it will not be displayed again.',
|
||||
'keypair_created' => 'An API Key-Pair has been generated and is listed below.',
|
||||
],
|
||||
'new' => [
|
||||
'header' => 'New API Key',
|
||||
|
|
|
@ -32,7 +32,7 @@ return [
|
|||
'memo' => 'Memo',
|
||||
'created' => 'Created',
|
||||
'expires' => 'Expires',
|
||||
'public_key' => 'Public key',
|
||||
'public_key' => 'Token',
|
||||
'api_access' => 'Api Access',
|
||||
'never' => 'never',
|
||||
'sign_out' => 'Sign out',
|
||||
|
|
|
@ -20,12 +20,7 @@
|
|||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-danger">
|
||||
API functionality is disabled in this beta release.
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="overlay"></div>
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">@lang('base.api.index.list')</h3>
|
||||
<div class="box-tools">
|
||||
|
@ -44,7 +39,7 @@
|
|||
</tr>
|
||||
@foreach ($keys as $key)
|
||||
<tr>
|
||||
<td><code>{{ $key->public }}</code></td>
|
||||
<td><code>{{ $key->token }}</code></td>
|
||||
<td>{{ $key->memo }}</td>
|
||||
<td class="text-center hidden-sm hidden-xs">
|
||||
{{ (new Carbon($key->created_at))->toDayDateTimeString() }}
|
||||
|
@ -57,7 +52,7 @@
|
|||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="#delete" class="text-danger" data-action="delete" data-attr="{{ $key->public}}"><i class="fa fa-trash"></i></a>
|
||||
<a href="#delete" class="text-danger" data-action="delete" data-attr="{{ $key->token }}"><i class="fa fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue