mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
deleted components i've already rebuilt in livewire
This commit is contained in:
parent
713b21de14
commit
fd02385c22
|
@ -1,89 +0,0 @@
|
|||
@props([
|
||||
'title' => 'Create Token',
|
||||
'errors' => false,
|
||||
])
|
||||
|
||||
<!-- Create Token Modal -->
|
||||
<div class="modal fade" id="modal-create-token" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
||||
<h4 class="modal-title">
|
||||
Create Token
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<!-- Form Errors -->
|
||||
@if($errors === true)
|
||||
<div class="alert alert-danger"
|
||||
{{-- v-if="form.errors.length > 0"--}}
|
||||
>
|
||||
<p><strong>Whoops!</strong> Something went wrong!</p>
|
||||
<br>
|
||||
<ul>
|
||||
<li
|
||||
{{-- v-for="error in form.errors"--}}
|
||||
>
|
||||
{{-- {{ error }}--}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- Create Token Form -->
|
||||
<form class="form-horizontal" role="form"
|
||||
{{-- @submit.prevent="store"--}}
|
||||
>
|
||||
<!-- Name -->
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label" for="name">Name</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="create-token-name" type="text" aria-label="name" class="form-control" name="name"
|
||||
{{-- v-model="form.name"--}}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Scopes -->
|
||||
{{-- <div class="form-group"--}}
|
||||
{{-- v-if="scopes.length > 0"--}}
|
||||
{{-- >--}}
|
||||
{{-- <label class="col-md-4 control-label">Scopes</label>--}}
|
||||
|
||||
{{-- <div class="col-md-6">--}}
|
||||
{{-- <div--}}
|
||||
{{-- v-for="scope in scopes"--}}
|
||||
{{-- >--}}
|
||||
{{-- <div class="checkbox">--}}
|
||||
{{-- <label>--}}
|
||||
{{-- <input type="checkbox"--}}
|
||||
{{-- @click="toggleScope(scope.id)"--}}
|
||||
{{-- :checked="scopeIsAssigned(scope.id)"--}}
|
||||
{{-- >--}}
|
||||
|
||||
{{-- {{ scope.id }}--}}
|
||||
{{-- </label>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Modal Actions -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn primary" data-dismiss="modal">Close</button>
|
||||
|
||||
<button type="button" class="btn btn-primary"
|
||||
{{-- @click="store"--}}
|
||||
>
|
||||
Create
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,86 +0,0 @@
|
|||
@props([
|
||||
'token_url' => url('oauth/personal-access-tokens'),
|
||||
'scopes_url' => url('oauth/scopes'),
|
||||
'tokens' => [],
|
||||
])
|
||||
|
||||
<div>
|
||||
<p>New Personal Access Token Component</p>
|
||||
<div>
|
||||
<p>{{ $token_url }}</p>
|
||||
<p>{{ $scopes_url }}</p>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="text-right" style="display: flex; justify-content: space-between; align-items: center;">
|
||||
|
||||
<a class="btn btn-info btn-sm action-link pull-right"
|
||||
onclick="$('#modal-create-token').modal('show');"
|
||||
>
|
||||
Create New Token
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<!-- No Tokens Notice -->
|
||||
@if($tokens->count() === 0)
|
||||
<p class="m-b-none"
|
||||
>
|
||||
You have not created any personal access tokens.
|
||||
</p>
|
||||
@endif
|
||||
|
||||
<!-- Personal Access Tokens -->
|
||||
<table class="table table-borderless m-b-none">
|
||||
@if($tokens->count() > 0)
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-3">Name</th>
|
||||
<th class="col-md-2">Created</th>
|
||||
<th class="col-md-2">Expires</th>
|
||||
<th class="col-md-2"><span class="sr-only">Delete</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@endif
|
||||
@foreach($tokens as $token)
|
||||
<tbody>
|
||||
<tr>
|
||||
<!-- Client Name -->
|
||||
|
||||
<td style="vertical-align: middle;">
|
||||
{{ $token->name }}
|
||||
</td>
|
||||
|
||||
<td style="vertical-align: middle;">
|
||||
{{ $token->created_at }}
|
||||
</td>
|
||||
|
||||
<td style="vertical-align: middle;">
|
||||
{{ $token->expires_at }}
|
||||
</td>
|
||||
|
||||
|
||||
<!-- Delete Button -->
|
||||
<td style="vertical-align: middle;" class="text-right">
|
||||
<a class="action-link btn btn-danger btn-sm" @click="revoke(token)">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Create Token Modal -->
|
||||
<x-personal-access-tokens.create-token-modal />
|
||||
|
||||
<!-- View New Token Modal -->
|
||||
<x-personal-access-tokens.view-new-token />
|
||||
|
||||
</div>
|
Loading…
Reference in a new issue