Recherche des tweets de réponse avec l'API Tweeter
This commit is contained in:
62
resources/views/livewire/contests.blade.php
Normal file
62
resources/views/livewire/contests.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<div class="row">
|
||||
@foreach($contests as $contest)
|
||||
<div class="col-md-6 my-2">
|
||||
<div class="block block-rounded block-link-pop">
|
||||
@if(isset($contest->picture))
|
||||
<div class="block-content pb-8 bg-image" style="background-image: url('{{$contest->picture}}');">
|
||||
@if($contest->participated)
|
||||
<span class="badge bg-danger fw-bold p-2 text-uppercase">
|
||||
Participé
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="block-content text-center @if($contest->participated) bg-light @endif">
|
||||
<h4 class="mb-1">{{$contest->name}}</h4>
|
||||
<p class="fs-sm">
|
||||
Fin le <span class="text-primary">{{ \Carbon\Carbon::parse($contest->fin)->format('d/m/y') }}</span>
|
||||
</p>
|
||||
<p>
|
||||
{!! $contest->description !!}
|
||||
</p>
|
||||
<div class="mb-4">
|
||||
<!-- Bouton pour supprimer -->
|
||||
<button type="button" class="btn btn-alt-danger me-1 mb-3" wire:click="delete({{ $contest->id }})">
|
||||
<i class="fa fa-fw fa-trash opacity-50 me-1"></i> Supprimer
|
||||
</button>
|
||||
<a href="{{$contest->url}}" target="_blank" class="btn btn-alt-info me-1 mb-3">
|
||||
<i class="fa fa-fw fa-eye opacity-50 me-1"></i> Voir
|
||||
</a>
|
||||
<!-- Bouton pour participer -->
|
||||
<button type="button" class="btn btn-alt-success me-1 mb-3" wire:click="auto({{ $contest->id }})">
|
||||
<i class="fa fa-fw fa-gifts opacity-50 me-1"></i> Participer
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="block-content block-content-full bg-body-light">
|
||||
<div class="row g-0 fs-sm text-center">
|
||||
<div class="col-4">
|
||||
<span class="text-muted fw-semibold">
|
||||
<i class="fa fa-fw fa-heart opacity-50 me-1"></i> {{$contest->nblike}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<span class="text-muted fw-semibold">
|
||||
<i class="fa fa-retweet fa-heart opacity-50 me-1"></i> {{$contest->nbretweet}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<span class="text-muted fw-semibold">
|
||||
<i class="fa fa-reply fa-comments opacity-50 me-1"></i> {{$contest->nbreply}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<!-- Pagination -->
|
||||
<div class="mb-3">
|
||||
{!! $contests->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
36
resources/views/pages/blank.blade.php
Normal file
36
resources/views/pages/blank.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@extends('layouts.backend')
|
||||
|
||||
@section('content')
|
||||
<!-- Hero -->
|
||||
<div class="bg-body-light">
|
||||
<div class="content content-full">
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center">
|
||||
<h1 class="flex-grow-1 fs-3 fw-semibold my-2 my-sm-3">Page Title</h1>
|
||||
<nav class="flex-shrink-0 my-2 my-sm-0 ms-sm-3" aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">Examples</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Blank</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Hero -->
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="content">
|
||||
<!-- Your Block -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">
|
||||
Block Title
|
||||
</h3>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<p>Your content..</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Your Block -->
|
||||
</div>
|
||||
<!-- END Page Content -->
|
||||
@endsection
|
||||
135
resources/views/pages/datatables.blade.php
Normal file
135
resources/views/pages/datatables.blade.php
Normal file
@@ -0,0 +1,135 @@
|
||||
@extends('layouts.backend')
|
||||
|
||||
@section('css')
|
||||
<!-- Page JS Plugins CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('js/plugins/datatables-bs5/css/dataTables.bootstrap5.min.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('js/plugins/datatables-buttons-bs5/css/buttons.bootstrap5.min.css') }}">
|
||||
@endsection
|
||||
|
||||
@section('js')
|
||||
<!-- jQuery (required for DataTables plugin) -->
|
||||
<script src="{{ asset('js/lib/jquery.min.js') }}"></script>
|
||||
|
||||
<!-- Page JS Plugins -->
|
||||
<script src="{{ asset('js/plugins/datatables/dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-bs5/js/dataTables.bootstrap5.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons/dataTables.buttons.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons-bs5/js/buttons.bootstrap5.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons-jszip/jszip.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons-pdfmake/pdfmake.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons-pdfmake/vfs_fonts.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons/buttons.print.min.js') }}"></script>
|
||||
<script src="{{ asset('js/plugins/datatables-buttons/buttons.html5.min.js') }}"></script>
|
||||
|
||||
<!-- Page JS Code -->
|
||||
@vite(['resources/js/pages/datatables.js'])
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- Hero -->
|
||||
<div class="bg-body-light">
|
||||
<div class="content content-full">
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center">
|
||||
<h1 class="flex-grow-1 fs-3 fw-semibold my-2 my-sm-3">DataTables Example</h1>
|
||||
<nav class="flex-shrink-0 my-2 my-sm-0 ms-sm-3" aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">Examples</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Plugin</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Hero -->
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="content">
|
||||
<!-- Info -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">Plugin Example</h3>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<p>
|
||||
This page showcases how easily you can add a plugin’s JS/CSS assets and init it using custom JS code.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Info -->
|
||||
|
||||
<!-- Dynamic Table Full -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">Dynamic Table <small>Full</small></h3>
|
||||
</div>
|
||||
<div class="block-content block-content-full">
|
||||
<!-- DataTables init on table by adding .js-dataTable-full class, functionality is initialized in js/pages/tables_datatables.js -->
|
||||
<table class="table table-bordered table-striped table-vcenter js-dataTable-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center" style="width: 80px;">#</th>
|
||||
<th>Name</th>
|
||||
<th class="d-none d-sm-table-cell" style="width: 30%;">Email</th>
|
||||
<th style="width: 15%;">Registered</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for ($i = 1; $i < 21; $i++)
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $i; ?></td>
|
||||
<td class="fw-semibold">
|
||||
<a href="javascript:void(0)">John Doe</a>
|
||||
</td>
|
||||
<td class="d-none d-sm-table-cell">
|
||||
client{{ $i }}<span class="text-muted">@example.com</span>
|
||||
</td>
|
||||
<td class="text-muted">
|
||||
{{ rand(2, 10) }} days ago
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Dynamic Table Full -->
|
||||
|
||||
<!-- Dynamic Table with Export Buttons -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">Dynamic Table <small>Export Buttons</small></h3>
|
||||
</div>
|
||||
<div class="block-content block-content-full">
|
||||
<!-- DataTables init on table by adding .js-dataTable-buttons class, functionality is initialized in js/pages/tables_datatables.js -->
|
||||
<table class="table table-bordered table-striped table-vcenter js-dataTable-buttons">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center" style="width: 80px;">#</th>
|
||||
<th>Name</th>
|
||||
<th class="d-none d-sm-table-cell" style="width: 30%;">Email</th>
|
||||
<th style="width: 15%;">Registered</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for ($i = 1; $i < 21; $i++)
|
||||
<tr>
|
||||
<td class="text-center">{{ $i }}</td>
|
||||
<td class="fw-semibold">
|
||||
<a href="javascript:void(0)">John Smith</a>
|
||||
</td>
|
||||
<td class="d-none d-sm-table-cell">
|
||||
client{{ $i }}<span class="text-muted">@example.com</span>
|
||||
</td>
|
||||
<td class="text-muted">
|
||||
{{ rand(2, 10) }} days ago
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Dynamic Table with Export Buttons -->
|
||||
</div>
|
||||
<!-- END Page Content -->
|
||||
@endsection
|
||||
84
resources/views/pages/slick.blade.php
Normal file
84
resources/views/pages/slick.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.backend')
|
||||
|
||||
@section('css')
|
||||
<link rel="stylesheet" href="{{ asset('js/plugins/slick-carousel/slick.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('js/plugins/slick-carousel/slick-theme.css') }}">
|
||||
@endsection
|
||||
|
||||
@section('js')
|
||||
<!-- jQuery (required for Slick Slider plugin) -->
|
||||
<script src="{{ asset('js/lib/jquery.min.js') }}"></script>
|
||||
|
||||
<!-- Page JS Plugins -->
|
||||
<script src="{{ asset('js/plugins/slick-carousel/slick.min.js') }}"></script>
|
||||
|
||||
<!-- Page JS Code -->
|
||||
<script type="module">
|
||||
// Slick Slider, for more info and examples you can check out http://kenwheeler.github.io/slick/
|
||||
Dashmix.helpersOnLoad(['jq-slick']);
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- Hero -->
|
||||
<div class="bg-body-light">
|
||||
<div class="content content-full">
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center">
|
||||
<h1 class="flex-grow-1 fs-3 fw-semibold my-2 my-sm-3">Slick Slider Example</h1>
|
||||
<nav class="flex-shrink-0 my-2 my-sm-0 ms-sm-3" aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">Examples</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Plugin</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Hero -->
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<!-- Info -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">
|
||||
Plugin Example
|
||||
</h3>
|
||||
</div>
|
||||
<div class="block-content">
|
||||
<p>
|
||||
This page showcases how easily you can add a plugin’s JS/CSS assets and init it using a Dashmix JS helper.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Info -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<!-- Slider with dots -->
|
||||
<div class="block block-rounded">
|
||||
<div class="block-header block-header-default">
|
||||
<h3 class="block-title">
|
||||
Dots
|
||||
</h3>
|
||||
</div>
|
||||
<div class="js-slider" data-dots="true">
|
||||
<div>
|
||||
<img class="img-fluid" src="{{ asset('media/photos/photo2.jpg') }}" alt="photo">
|
||||
</div>
|
||||
<div>
|
||||
<img class="img-fluid" src="{{ asset('media/photos/photo3.jpg') }}" alt="photo">
|
||||
</div>
|
||||
<div>
|
||||
<img class="img-fluid" src="{{ asset('media/photos/photo4.jpg') }}" alt="photo">
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Slider with dots -->
|
||||
</div>
|
||||
<!-- END Dots -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Page Content -->
|
||||
@endsection
|
||||
46
resources/views/vendor/laravelpwa/meta.blade.php
vendored
Normal file
46
resources/views/vendor/laravelpwa/meta.blade.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<!-- Web Application Manifest -->
|
||||
<link rel="manifest" href="{{ route('laravelpwa.manifest') }}">
|
||||
<!-- Chrome for Android theme color -->
|
||||
<meta name="theme-color" content="{{ $config['theme_color'] }}">
|
||||
|
||||
<!-- Add to homescreen for Chrome on Android -->
|
||||
<meta name="mobile-web-app-capable" content="{{ $config['display'] == 'standalone' ? 'yes' : 'no' }}">
|
||||
<meta name="application-name" content="{{ $config['short_name'] }}">
|
||||
<link rel="icon" sizes="{{ data_get(end($config['icons']), 'sizes') }}" href="{{ data_get(end($config['icons']), 'src') }}">
|
||||
|
||||
<!-- Add to homescreen for Safari on iOS -->
|
||||
<meta name="apple-mobile-web-app-capable" content="{{ $config['display'] == 'standalone' ? 'yes' : 'no' }}">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="{{ $config['status_bar'] }}">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ $config['short_name'] }}">
|
||||
<link rel="apple-touch-icon" href="{{ data_get(end($config['icons']), 'src') }}">
|
||||
|
||||
|
||||
<link href="{{ $config['splash']['640x1136'] }}" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['750x1334'] }}" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1242x2208'] }}" media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1125x2436'] }}" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['828x1792'] }}" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1242x2688'] }}" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1536x2048'] }}" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1668x2224'] }}" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['1668x2388'] }}" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
<link href="{{ $config['splash']['2048x2732'] }}" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
|
||||
|
||||
<!-- Tile for Win8 -->
|
||||
<meta name="msapplication-TileColor" content="{{ $config['background_color'] }}">
|
||||
<meta name="msapplication-TileImage" content="{{ data_get(end($config['icons']), 'src') }}">
|
||||
|
||||
<script type="text/javascript">
|
||||
// Initialize the service worker
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/serviceworker.js', {
|
||||
scope: '.'
|
||||
}).then(function (registration) {
|
||||
// Registration was successful
|
||||
console.log('Laravel PWA: ServiceWorker registration successful with scope: ', registration.scope);
|
||||
}, function (err) {
|
||||
// registration failed :(
|
||||
console.log('Laravel PWA: ServiceWorker registration failed: ', err);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
7
resources/views/vendor/laravelpwa/offline.blade.php
vendored
Normal file
7
resources/views/vendor/laravelpwa/offline.blade.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1>You are currently not connected to any networks.</h1>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user