ALPHA 3.0.2b

This commit is contained in:
TheGamecraft
2018-09-10 09:13:10 -04:00
parent 0e0ef86b71
commit e536ef7e0a
7 changed files with 33 additions and 72 deletions

View File

@@ -1,17 +1,20 @@
APP_NAME=Laravel
APP_NAME=C-CMS
APP_ENV=local
APP_KEY=
APP_KEY=base64:FQH+yWnhFyB+2gpByIg2Rybmqn5EXkL7VeFawzSJ/Lc=
APP_DEBUG=true
APP_URL=http://localhost
APP_URL=https://dev.c-cms.cf/
SQN_NUMBER=000
SQN_FULLNAME="Escadron 000 Exemple"
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_DATABASE=ddb_dev
DB_USERNAME=root
DB_PASSWORD=nHpz39lp
BROADCAST_DRIVER=log
CACHE_DRIVER=file
@@ -23,13 +26,16 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_DRIVER=mailgun
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
NEXMO_KEY=f52074e0
NEXMO_SECRET=lXK9GasDUdotWqL3
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

1
.gitignore vendored
View File

@@ -12,3 +12,4 @@ npm-debug.log
yarn-error.log
.env
/public/assets/public
/resources/views/public.blade.php

View File

@@ -54,6 +54,17 @@ return [
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Version
|--------------------------------------------------------------------------
|
| This the current version of the application.
|
*/
'version' => "3.0.2b",
/*
|--------------------------------------------------------------------------
| Application Timezone

View File

@@ -7,24 +7,16 @@ return [
| Squadron Number
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'number' => '697',
'number' => env('SQN_NUMBER', "000"),
/*
|--------------------------------------------------------------------------
| Squadron FullName
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'fullname' => 'Escadron 697 Rotary Rimouski',
'fullname' => env('SQN_FULLNAME', "Escadron 000 Exemple"),
];

View File

@@ -4,3 +4,4 @@ sudo chmod -R 777 storage/
sudo chmod -R 777 bootstrap/
php artisan migrate
php artisan db:seed
cp resources/views/default.blade.php resources/views/index.blade.php

View File

@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Escadron 697</title>
<title>Escadron {{config('squadron.number')}}</title>
<!-- Fonts -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
@@ -80,59 +80,12 @@
<div class="content">
<div class="title m-b-md">
Escadron 697 - Rotary Rimouski
</div>
<h4>
Le site de l'escadron sera de retour en septembre pour commencer la nouvelle année d'instruction !
</h4>
<div style="display : inline-flex;">
<h3><p id="demo"></p></h3>
</div>
<div>
<div class="progress mb-2" >
<div class="progress-bar bg-success progress-bar-striped progress-bar-animated" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>
<?php
foreach ($tasks as $task) {
echo $task->body;
}
?>
{{config('squadron.fullname')}}
</div>
<div class="links" style="padding-top: 50px;">
© C-CMS 2018 - Version 2.2.2
© C-CMS 2018 - Version {{config('app.version')}}
</div>
</div>
</div>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Sep 1, 2018 18:30:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("demo").innerHTML = "PLUS QUE " + days + "J " + hours + "H "
+ minutes + "M " + seconds + "S !";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>
</html>

View File

@@ -76,10 +76,7 @@ Route::middleware(['auth','admin'])->group(function () {
/* Other Route */
Route::get('/test', function () {
$users = \App\User::all()->whereNotIn('telephone','null');
foreach ($users as $user) {
$user->notify(new sms($user,"Il y a une une modification a l'horaire vous concernant le 25 octobre"));
}
return view('welcome');
});