diff --git a/resources/lang/en-US/admin/settings/general.php b/resources/lang/en-US/admin/settings/general.php index 01adf36ebf..727c35a6e9 100644 --- a/resources/lang/en-US/admin/settings/general.php +++ b/resources/lang/en-US/admin/settings/general.php @@ -287,8 +287,18 @@ return [ 'zerofill_count' => 'Length of asset tags, including zerofill', 'username_format_help' => 'This setting will only be used by the import process if a username is not provided and we have to generate a username for you.', 'oauth_title' => 'OAuth API Settings', + 'oauth_clients' => 'OAuth Clients', 'oauth' => 'OAuth', 'oauth_help' => 'Oauth Endpoint Settings', + 'oauth_no_clients' => 'You have not created any OAuth clients yet.', + 'oauth_secret' => 'Secret', + 'oauth_authorized_apps' => 'Authorized Applications', + 'oauth_redirect_url' => 'Redirect URL', + 'oauth_name_help' => ' Something your users will recognize and trust.', + 'oauth_scopes' => 'Scopes', + 'oauth_callback_url' => 'Your application authorization callback URL.', + 'create_client' => 'Create Client', + 'no_scopes' => 'No scopes', 'asset_tag_title' => 'Update Asset Tag Settings', 'barcode_title' => 'Update Barcode Settings', 'barcodes' => 'Barcodes', diff --git a/resources/views/livewire/oauth-clients.blade.php b/resources/views/livewire/oauth-clients.blade.php index cee841501c..e05da87a6f 100644 --- a/resources/views/livewire/oauth-clients.blade.php +++ b/resources/views/livewire/oauth-clients.blade.php @@ -1,79 +1,84 @@
-
-
-
-

- OAuth Clients +
+ +
+

+ {{ trans('admin/settings/general.oauth_clients') }}

- @if($authorizationError) + @if ($authorizationError)
-

Whoops! Something went wrong!

+

{{ trans('admin/users/message.insufficient_permissions') }}
{{ $authorizationError }} +

@endif - - Create New Client - +
-
-
- - @if($clients->count() === 0) -

- You have not created any OAuth clients. -

- @endif +
+ + @if($clients->count() === 0) +

+ {{ trans('admin/settings/general.oauth_no_clients') }} +

+ @endif - @if($clients->count() > 0) - + @if ($clients->count() > 0) +
- - - - - + + + + + - @foreach($clients as $client) - - + + + - - - + + @@ -82,20 +87,28 @@
Client IDNameSecretEditDelete{{ trans('general.id') }}{{ trans('general.name') }}{{ trans('admin/settings/general.oauth_redirect_url') }}{{ trans('admin/settings/general.oauth_secret') }}{{ trans('general.actions') }}
+ {{ $client->id }} + {{ $client->name }} + {{ $client->redirect }} + + {{ $client->secret }} - - Edit - - + + + {{ trans('general.update') }} + - - - + + + {{ trans('general.delete') }} +
@endif
+
+ + +
@if ($authorized_tokens->count() > 0)
-
-

Authorized Applications

+
+
+

+ {{ trans('admin/settings/general.oauth_authorized_apps') }} +

+
-
+
- +
- - - + + + @@ -103,23 +116,28 @@ @foreach($authorized_tokens as $token) - - - @@ -130,8 +148,10 @@ @endif - - + + + + @@ -166,7 +186,9 @@
- +
+ autofocus> - Something your users will recognize and trust. + {{ trans('admin/settings/general.oauth_name_help') }}
- +
- Your application's authorization callback URL. + {{ trans('admin/settings/general.oauth_callback_url') }}
@@ -218,6 +239,8 @@ + +
- +
- Your application's authorization callback URL. + {{ trans('admin/settings/general.oauth_callback_url') }}
@@ -330,4 +352,5 @@ - \ No newline at end of file + + diff --git a/resources/views/models/bulk-delete.blade.php b/resources/views/models/bulk-delete.blade.php index d198c06ec4..570be2bce8 100644 --- a/resources/views/models/bulk-delete.blade.php +++ b/resources/views/models/bulk-delete.blade.php @@ -35,7 +35,7 @@ - +
NameScopesDelete{{ trans('general.name') }}{{ trans('admin/settings/general.oauth_scopes') }}
+ {{ $token->client->name }} + @if(!$token->scopes) - No Scopes + + {{ trans('admin/settings/general.no_scopes') }} + @endif - + - + + + {{ trans('general.delete') }} +
Name{{ trans('general.name') }}