mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-22 19:19:09 -04:00
Au cas ou
This commit is contained in:
@@ -10,12 +10,47 @@
|
||||
<form action="/admin/config/files" method="POST">
|
||||
@csrf
|
||||
<div class="row ml-2">
|
||||
<h3 class="col-12">Configuration Google Drive</h3>
|
||||
<div class="col-12">
|
||||
<h3 class="col-12">Google Drive</h3>
|
||||
<div class="col-6">
|
||||
<div class="alert alert-info" role="alert">
|
||||
Vous pouvez suivre un <a target="_blank" href="https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README/1-getting-your-dlient-id-and-secret.md">tutoriel (Anglais) <i class="fas fa-external-link-square-alt text-white"></i></a> pour trouver c'est information.
|
||||
Vous pouvez suivre un <a class="alert-link" target="_blank" href="https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README/1-getting-your-dlient-id-and-secret.md">tutoriel (Anglais) <i class="fas fa-external-link-square-alt text-white"></i></a> pour trouver c'est information.
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@if($error == [])
|
||||
<div class="alert alert-primary" role="alert">
|
||||
Google Drive est initialisé correctement
|
||||
<div id="loaderDot" class="float-right d-none" style="margin-top: -30px;">
|
||||
@loaderDot
|
||||
</div>
|
||||
<div class="float-right" id="btn-sync">
|
||||
<button type="button" class="btn btn-round btn-fab" style="margin-top: -0.55rem" onclick="checkFileSystem()">
|
||||
<i class="fas fa-sync"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-danger" role="alert">
|
||||
Problème détecté avec votre installation ...
|
||||
<ul>
|
||||
@foreach($error as $e)
|
||||
<li>{{$e}}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-8 p-2">
|
||||
<div class="togglebutton">
|
||||
<label>
|
||||
<input type="checkbox" checked="">
|
||||
<span class="toggle"></span>
|
||||
Activer Google Drive
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-6 p-2">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">GOOGLE_DRIVE_CLIENT_ID</label>
|
||||
@@ -67,4 +102,15 @@ Configuration du système de fichier
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
<script>
|
||||
function checkFileSystem() {
|
||||
$('#loaderDot').removeClass('d-none');
|
||||
$('#btn-sync').addClass('d-none');
|
||||
$.get('/api/drive/checkfilestructure',{api_token: api_token}, function (data) {
|
||||
console.log('data');
|
||||
$('#loaderDot').addClass('d-none');
|
||||
$('#btn-sync').removeClass('d-none');
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user