mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Finalisation de Google Drive
This commit is contained in:
@@ -11,39 +11,34 @@
|
||||
@csrf
|
||||
<div class="row ml-2">
|
||||
<h3 class="col-12">Google Drive</h3>
|
||||
<div class="col-6">
|
||||
<div class="col-md-6">
|
||||
<div class="alert alert-info" role="alert">
|
||||
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 id="google-drive-status" class="alert alert-primary" role="alert">
|
||||
<div class="row pb-1">
|
||||
<div class="col-10" id="google-drive-status-text">
|
||||
Google Drive est initialisé correctement
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div id="loaderDot" class="float-right d-none" style="margin-top: -30px;height: 41px">
|
||||
@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>
|
||||
</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="">
|
||||
<input id="is_active" type="checkbox" data-toggle="switch" name="is_active">
|
||||
<span class="toggle"></span>
|
||||
Activer Google Drive
|
||||
</label>
|
||||
@@ -103,11 +98,45 @@ Configuration du système de fichier
|
||||
|
||||
@section('custom_scripts')
|
||||
<script>
|
||||
if({{\App\Config::getData('is_Google_Drive_enabled')}})
|
||||
{
|
||||
$('#is_active').prop( "checked", true );
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#is_active').prop( "checked", false );
|
||||
}
|
||||
checkFileSystem();
|
||||
|
||||
function checkFileSystem() {
|
||||
$('#loaderDot').removeClass('d-none');
|
||||
$('#btn-sync').addClass('d-none');
|
||||
let text = $('#google-drive-status-text');
|
||||
let div = $('#google-drive-status');
|
||||
div.removeClass('alert-primary');
|
||||
div.addClass('alert-info');
|
||||
text.html("Vérification du système de fichier ...");
|
||||
$.get('/api/drive/checkfilestructure',{api_token: api_token}, function (data) {
|
||||
console.log('data');
|
||||
if(data.length != 0)
|
||||
{
|
||||
div.removeClass('alert-primary');
|
||||
div.removeClass('alert-info');
|
||||
div.removeClass('alert-danger');
|
||||
div.addClass('alert-danger');
|
||||
text.html("");
|
||||
data.forEach(d => {
|
||||
text.append(d);
|
||||
console.log(d);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
div.removeClass('alert-primary');
|
||||
div.removeClass('alert-info');
|
||||
div.removeClass('alert-danger');
|
||||
div.addClass('alert-primary');
|
||||
text.html("Google Drive est initialisé correctement");
|
||||
}
|
||||
$('#loaderDot').addClass('d-none');
|
||||
$('#btn-sync').removeClass('d-none');
|
||||
})
|
||||
|
||||
@@ -47,11 +47,11 @@
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
@foreach($cat as $r)
|
||||
<div class="col text-center">
|
||||
<div class="col-3 text-center">
|
||||
<input class="d-none" type="text" id="{{$r['ckey']}}" name="{{$r['ckey']}}">
|
||||
<h5>{{$r['communName']}}</h5>
|
||||
<div class="btn-group">
|
||||
<button type="button" id="{{$r['ckey']}}-close" class="btn btn-just-icon btn-outline-danger" onclick="switchPermissionSwitch('{{$r['ckey']}}','close')"><i class="fa fa-close"></i></button>
|
||||
<button type="button" id="{{$r['ckey']}}-close" class="btn btn-just-icon btn-outline-danger" onclick="switchPermissionSwitch('{{$r['ckey']}}','close')"><i class="fas fa-times"></i></button>
|
||||
<!--<button type="button" id="{{$r['ckey']}}-slash" class="btn btn-just-icon btn-warning" onclick="switchPermissionSwitch('{{$r['ckey']}}','slash')"><i class="fa fa-slash"></i></button>-->
|
||||
<button type="button" id="{{$r['ckey']}}-plus" class="btn btn-just-icon btn-outline-success" onclick="switchPermissionSwitch('{{$r['ckey']}}','plus')"><i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
|
||||
@@ -67,24 +67,7 @@
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Fichiers</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Fichiers/Guide Pédagogique</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Fichier / Guide Pédagogique
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
|
||||
@@ -133,24 +133,7 @@
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Fichiers</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">Fichiers</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Fichier / Autres
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
|
||||
@@ -47,11 +47,11 @@
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
@foreach($cat as $r)
|
||||
<div class="col text-center">
|
||||
<div class="col-3 text-center">
|
||||
<input class="d-none" type="text" id="{{$r['ckey']}}" name="{{$r['ckey']}}">
|
||||
<h5>{{$r['communName']}}</h5>
|
||||
<div class="btn-group">
|
||||
<button type="button" id="{{$r['ckey']}}-close" class="btn btn-just-icon btn-outline-danger" onclick="switchPermissionSwitch('{{$r['ckey']}}','close')"><i class="fa fa-close"></i></button>
|
||||
<button type="button" id="{{$r['ckey']}}-close" class="btn btn-just-icon btn-outline-danger" onclick="switchPermissionSwitch('{{$r['ckey']}}','close')"><i class="fas fa-times"></i></button>
|
||||
<button type="button" id="{{$r['ckey']}}-slash" class="btn btn-just-icon btn-warning" onclick="switchPermissionSwitch('{{$r['ckey']}}','slash')"><i class="fa fa-slash"></i></button>
|
||||
<button type="button" id="{{$r['ckey']}}-plus" class="btn btn-just-icon btn-outline-success" onclick="switchPermissionSwitch('{{$r['ckey']}}','plus')"><i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
|
||||
@@ -132,24 +132,7 @@
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Ajouter un utilisateur</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">utilisateur/Ajouter</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Utilisateur / Ajouter
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
|
||||
@@ -144,24 +144,7 @@
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>Ajouter un utilisateur</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">utilisateur/Ajouter</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Utilisateur / Modifier
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
|
||||
@@ -40,24 +40,7 @@
|
||||
@endsection
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumbs">
|
||||
<div class="col-sm-4">
|
||||
<div class="page-header float-left">
|
||||
<div class="page-title">
|
||||
<h1>{{ trans('admin/dashboard.page_title')}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="page-header float-right">
|
||||
<div class="page-title">
|
||||
<ol class="breadcrumb text-right">
|
||||
<li class="active">{{ trans('admin/dashboard.breadcrumb')}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Utilisateur / Liste
|
||||
@endsection
|
||||
|
||||
@section('custom_scripts')
|
||||
|
||||
Reference in New Issue
Block a user