v1.5-alpha.2

This commit is contained in:
carodej
2020-05-16 12:04:28 +02:00
parent 41656235fc
commit d2c4f2aa23
23 changed files with 221 additions and 256 deletions

BIN
.rnd

Binary file not shown.

View File

@@ -0,0 +1,63 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Deploy extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'deploy:production';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Automatic deployment for production';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
// Start deployment
$this->info('Running auto deployment');
$this->call('down');
// Exec commands
exec('git pull origin dev');
exec('composer install --no-interaction --no-dev --prefer-dist');
$this->migrateDatabase();
// Stop deployment
$this->call('up');
$this->info('Everything is done, congratulations! 🥳🥳🥳');
}
/**
* Migrate database
*/
public function migrateDatabase()
{
$this->call('migrate', [
'--force' => true,
]);
}
}

View File

@@ -2,6 +2,7 @@
namespace App\Console;
use App\Console\Commands\Deploy;
use App\Console\Commands\SetupDevEnvironment;
use App\Console\Commands\SetupProductionEnvironment;
use Illuminate\Console\Scheduling\Schedule;
@@ -17,6 +18,7 @@ class Kernel extends ConsoleKernel
protected $commands = [
SetupProductionEnvironment::class,
SetupDevEnvironment::class,
Deploy::class,
];
/**

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Artisan;
class DeployController extends Controller
{
/**
* Get web hook payload and verify request
*
* @param Request $request
*/
public function deploy(Request $request) {
$githubPayload = $request->getContent();
$localToken = config('app.deploy_secret');
$localHash = 'sha1=' . hash_hmac('sha1', $githubPayload, $localToken, false);
if (hash_equals( $request->header('X-Hub-Signature'), $localHash)) {
Artisan::call('deploy:production');
}
}
}

View File

@@ -19,6 +19,6 @@ class VerifyCsrfToken extends Middleware
* @var array
*/
protected $except = [
//
'/deploy',
];
}

View File

@@ -20,6 +20,7 @@
"laravel/tinker": "^2.0",
"league/flysystem-aws-s3-v3": "^1.0",
"league/flysystem-cached-adapter": "^1.0",
"symfony/process": "^5.0",
"teamtnt/laravel-scout-tntsearch-driver": "^7.2"
},
"require-dev": {

View File

@@ -233,6 +233,8 @@ return [
],
'deploy_secret' => env('APP_DEPLOY_SECRET'),
'debug_blacklist' => [
'_ENV' => [
'APP_KEY',

4
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/main.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,216 +1,18 @@
{
"/js/main.js": "/js/main.js",
"/css/app.css": "/css/app.css",
"/js/main.9a4ffec7a76c1b950830.hot-update.js": "/js/main.9a4ffec7a76c1b950830.hot-update.js",
"/js/main.c1573e91bed87a15ffef.hot-update.js": "/js/main.c1573e91bed87a15ffef.hot-update.js",
"/js/main.2496d75d386d00064417.hot-update.js": "/js/main.2496d75d386d00064417.hot-update.js",
"/js/main.013ceb75b1bf0e141b26.hot-update.js": "/js/main.013ceb75b1bf0e141b26.hot-update.js",
"/js/main.db3a428e25bff41c3723.hot-update.js": "/js/main.db3a428e25bff41c3723.hot-update.js",
"/js/main.46ddf30da37231310b6b.hot-update.js": "/js/main.46ddf30da37231310b6b.hot-update.js",
"/js/main.6a3838d1437c8c764776.hot-update.js": "/js/main.6a3838d1437c8c764776.hot-update.js",
"/js/main.e0f95966baa9e2d001db.hot-update.js": "/js/main.e0f95966baa9e2d001db.hot-update.js",
"/js/main.7a53126cf46010fc1987.hot-update.js": "/js/main.7a53126cf46010fc1987.hot-update.js",
"/js/main.05df349f8999d3a70dcc.hot-update.js": "/js/main.05df349f8999d3a70dcc.hot-update.js",
"/js/main.b3df17ce1d00b834d523.hot-update.js": "/js/main.b3df17ce1d00b834d523.hot-update.js",
"/js/main.a7bdfebc3c7c81757275.hot-update.js": "/js/main.a7bdfebc3c7c81757275.hot-update.js",
"/js/main.b4703f4b691febc87771.hot-update.js": "/js/main.b4703f4b691febc87771.hot-update.js",
"/js/main.9011812c86e8bda6014e.hot-update.js": "/js/main.9011812c86e8bda6014e.hot-update.js",
"/js/main.3736c833209c79dd36f3.hot-update.js": "/js/main.3736c833209c79dd36f3.hot-update.js",
"/js/main.c486cae59721fcb8d2e2.hot-update.js": "/js/main.c486cae59721fcb8d2e2.hot-update.js",
"/js/main.43677a4bde29458f485d.hot-update.js": "/js/main.43677a4bde29458f485d.hot-update.js",
"/js/main.66fc64b7cc4b7123b5aa.hot-update.js": "/js/main.66fc64b7cc4b7123b5aa.hot-update.js",
"/js/main.41bae96b129129c8f285.hot-update.js": "/js/main.41bae96b129129c8f285.hot-update.js",
"/js/main.db3a48ceef0177374498.hot-update.js": "/js/main.db3a48ceef0177374498.hot-update.js",
"/js/main.8fd98bd943661d02f03a.hot-update.js": "/js/main.8fd98bd943661d02f03a.hot-update.js",
"/js/main.0c8fb4ef996784ecba37.hot-update.js": "/js/main.0c8fb4ef996784ecba37.hot-update.js",
"/js/main.906d9b3d72ff1b1d79a7.hot-update.js": "/js/main.906d9b3d72ff1b1d79a7.hot-update.js",
"/js/main.2fcc8cefed2e5702040d.hot-update.js": "/js/main.2fcc8cefed2e5702040d.hot-update.js",
"/js/main.75ff3612c2490cb2e40d.hot-update.js": "/js/main.75ff3612c2490cb2e40d.hot-update.js",
"/js/main.6a00ba337c54f793bba4.hot-update.js": "/js/main.6a00ba337c54f793bba4.hot-update.js",
"/js/main.da006123f1e03d2bcc92.hot-update.js": "/js/main.da006123f1e03d2bcc92.hot-update.js",
"/js/main.e219de194687e3d70948.hot-update.js": "/js/main.e219de194687e3d70948.hot-update.js",
"/js/main.94b3786c9089a8383469.hot-update.js": "/js/main.94b3786c9089a8383469.hot-update.js",
"/js/main.281b345ecdc7ca542158.hot-update.js": "/js/main.281b345ecdc7ca542158.hot-update.js",
"/js/main.f4510859f5397aa6a991.hot-update.js": "/js/main.f4510859f5397aa6a991.hot-update.js",
"/js/main.fc87ed4e22905cf6e7f0.hot-update.js": "/js/main.fc87ed4e22905cf6e7f0.hot-update.js",
"/js/main.e2225b5b67c9eed50400.hot-update.js": "/js/main.e2225b5b67c9eed50400.hot-update.js",
"/js/main.65e9e758f35bc6182f74.hot-update.js": "/js/main.65e9e758f35bc6182f74.hot-update.js",
"/js/main.ee60d93ee2eeb1869262.hot-update.js": "/js/main.ee60d93ee2eeb1869262.hot-update.js",
"/js/main.62e9d4ca11c61479faed.hot-update.js": "/js/main.62e9d4ca11c61479faed.hot-update.js",
"/js/main.81a823d8b5035716d6f8.hot-update.js": "/js/main.81a823d8b5035716d6f8.hot-update.js",
"/js/main.730819f5aef97dab3c0a.hot-update.js": "/js/main.730819f5aef97dab3c0a.hot-update.js",
"/js/main.b50f2feb59558a4d2e8a.hot-update.js": "/js/main.b50f2feb59558a4d2e8a.hot-update.js",
"/js/main.2e9b8768c31ca95de317.hot-update.js": "/js/main.2e9b8768c31ca95de317.hot-update.js",
"/js/main.8ad2d7f4f8b4ea94c513.hot-update.js": "/js/main.8ad2d7f4f8b4ea94c513.hot-update.js",
"/js/main.05a917f18ce609220d68.hot-update.js": "/js/main.05a917f18ce609220d68.hot-update.js",
"/js/main.e46948c0117a686a1bad.hot-update.js": "/js/main.e46948c0117a686a1bad.hot-update.js",
"/js/main.175b4c582ca1d6d54044.hot-update.js": "/js/main.175b4c582ca1d6d54044.hot-update.js",
"/js/main.aa7b63ada5b60d1a06be.hot-update.js": "/js/main.aa7b63ada5b60d1a06be.hot-update.js",
"/js/main.175acbe8df535a093bc9.hot-update.js": "/js/main.175acbe8df535a093bc9.hot-update.js",
"/js/main.d9c93f3d3c1b48e395c8.hot-update.js": "/js/main.d9c93f3d3c1b48e395c8.hot-update.js",
"/js/main.0bf746d0a2700b6a0825.hot-update.js": "/js/main.0bf746d0a2700b6a0825.hot-update.js",
"/js/main.6aeea20e4837205d9f71.hot-update.js": "/js/main.6aeea20e4837205d9f71.hot-update.js",
"/js/main.75be313981585885c19b.hot-update.js": "/js/main.75be313981585885c19b.hot-update.js",
"/js/main.f107c620f8f074c4b0d6.hot-update.js": "/js/main.f107c620f8f074c4b0d6.hot-update.js",
"/js/main.bc4702a35db6d7f525c1.hot-update.js": "/js/main.bc4702a35db6d7f525c1.hot-update.js",
"/js/main.d047491e33aaf7c4272a.hot-update.js": "/js/main.d047491e33aaf7c4272a.hot-update.js",
"/js/main.27762d9425b3e41a56f6.hot-update.js": "/js/main.27762d9425b3e41a56f6.hot-update.js",
"/js/main.6b32539c74f058c4202c.hot-update.js": "/js/main.6b32539c74f058c4202c.hot-update.js",
"/js/main.f5f68ed520fafa89950c.hot-update.js": "/js/main.f5f68ed520fafa89950c.hot-update.js",
"/js/main.1e27c14375907bf60254.hot-update.js": "/js/main.1e27c14375907bf60254.hot-update.js",
"/js/main.e9d94282271512dee765.hot-update.js": "/js/main.e9d94282271512dee765.hot-update.js",
"/js/main.c26a5d38a19bb110f583.hot-update.js": "/js/main.c26a5d38a19bb110f583.hot-update.js",
"/js/main.3be90dc14a32237bbd12.hot-update.js": "/js/main.3be90dc14a32237bbd12.hot-update.js",
"/js/main.a184c4223e2290d0e5be.hot-update.js": "/js/main.a184c4223e2290d0e5be.hot-update.js",
"/js/main.56d0e49040b82122b25e.hot-update.js": "/js/main.56d0e49040b82122b25e.hot-update.js",
"/js/main.f91b6d35b547aa0f4c68.hot-update.js": "/js/main.f91b6d35b547aa0f4c68.hot-update.js",
"/js/main.f8fa29ca4f13fffdce5e.hot-update.js": "/js/main.f8fa29ca4f13fffdce5e.hot-update.js",
"/js/main.76d04779d7c61cec900e.hot-update.js": "/js/main.76d04779d7c61cec900e.hot-update.js",
"/js/main.c2c2271a1f1eb81bc0f9.hot-update.js": "/js/main.c2c2271a1f1eb81bc0f9.hot-update.js",
"/js/main.e51b16966f9f48d355e8.hot-update.js": "/js/main.e51b16966f9f48d355e8.hot-update.js",
"/js/main.41ae2db21d24f79f1f1a.hot-update.js": "/js/main.41ae2db21d24f79f1f1a.hot-update.js",
"/js/main.ca923845d9496ccf9a16.hot-update.js": "/js/main.ca923845d9496ccf9a16.hot-update.js",
"/js/main.8ed5245a993756bdd5a9.hot-update.js": "/js/main.8ed5245a993756bdd5a9.hot-update.js",
"/js/main.0e60352530acf042bdeb.hot-update.js": "/js/main.0e60352530acf042bdeb.hot-update.js",
"/js/main.2d636142b38d4d55cc32.hot-update.js": "/js/main.2d636142b38d4d55cc32.hot-update.js",
"/js/main.33bd6a17e1a39b3a64fe.hot-update.js": "/js/main.33bd6a17e1a39b3a64fe.hot-update.js",
"/js/main.126d0d04a13f63ffb359.hot-update.js": "/js/main.126d0d04a13f63ffb359.hot-update.js",
"/js/main.a82bb0a24bc2dbba24b5.hot-update.js": "/js/main.a82bb0a24bc2dbba24b5.hot-update.js",
"/js/main.4b4834fd74ddc582671c.hot-update.js": "/js/main.4b4834fd74ddc582671c.hot-update.js",
"/js/main.590c813c8d8ce9325563.hot-update.js": "/js/main.590c813c8d8ce9325563.hot-update.js",
"/js/main.713a4650e3653a8083e8.hot-update.js": "/js/main.713a4650e3653a8083e8.hot-update.js",
"/js/main.ee26dd2fd8ee88f9eb81.hot-update.js": "/js/main.ee26dd2fd8ee88f9eb81.hot-update.js",
"/js/main.09e8cddd553747923c04.hot-update.js": "/js/main.09e8cddd553747923c04.hot-update.js",
"/js/main.b265758be1eb7bacf4ce.hot-update.js": "/js/main.b265758be1eb7bacf4ce.hot-update.js",
"/js/main.811cd46163a1f38b9581.hot-update.js": "/js/main.811cd46163a1f38b9581.hot-update.js",
"/js/main.cdfdb287ad2d56a5d92a.hot-update.js": "/js/main.cdfdb287ad2d56a5d92a.hot-update.js",
"/js/main.771b6994f834bd13c5b9.hot-update.js": "/js/main.771b6994f834bd13c5b9.hot-update.js",
"/js/main.347f3bb1df2245165ad0.hot-update.js": "/js/main.347f3bb1df2245165ad0.hot-update.js",
"/js/main.918351da11b0a9b61ac2.hot-update.js": "/js/main.918351da11b0a9b61ac2.hot-update.js",
"/js/main.f3a7f2f99dec221c4fa3.hot-update.js": "/js/main.f3a7f2f99dec221c4fa3.hot-update.js",
"/js/main.8e0d48026bea459f7fea.hot-update.js": "/js/main.8e0d48026bea459f7fea.hot-update.js",
"/js/main.5938fda9f07c3fe2c8c1.hot-update.js": "/js/main.5938fda9f07c3fe2c8c1.hot-update.js",
"/js/main.1890a16b03ca520f0a02.hot-update.js": "/js/main.1890a16b03ca520f0a02.hot-update.js",
"/js/main.771c1dbc13bfd10787c4.hot-update.js": "/js/main.771c1dbc13bfd10787c4.hot-update.js",
"/js/main.781c07cbda6ffc31dc40.hot-update.js": "/js/main.781c07cbda6ffc31dc40.hot-update.js",
"/js/main.4f97e7df7702cda6bf2d.hot-update.js": "/js/main.4f97e7df7702cda6bf2d.hot-update.js",
"/js/main.465571060eff0d3fa288.hot-update.js": "/js/main.465571060eff0d3fa288.hot-update.js",
"/js/main.1d2e374e3082b5170fce.hot-update.js": "/js/main.1d2e374e3082b5170fce.hot-update.js",
"/js/main.18ebf87ae63353c1e063.hot-update.js": "/js/main.18ebf87ae63353c1e063.hot-update.js",
"/js/main.d32df851cc5fb8c90157.hot-update.js": "/js/main.d32df851cc5fb8c90157.hot-update.js",
"/js/main.e9698a217e749c50f9ab.hot-update.js": "/js/main.e9698a217e749c50f9ab.hot-update.js",
"/js/main.230c4d67179a05e1048c.hot-update.js": "/js/main.230c4d67179a05e1048c.hot-update.js",
"/js/main.a8954b1fd49d0d6bee63.hot-update.js": "/js/main.a8954b1fd49d0d6bee63.hot-update.js",
"/js/main.bd5093999405251d5b34.hot-update.js": "/js/main.bd5093999405251d5b34.hot-update.js",
"/js/main.225a11eddb8d0ec2a92f.hot-update.js": "/js/main.225a11eddb8d0ec2a92f.hot-update.js",
"/js/main.3636188be5e36d684855.hot-update.js": "/js/main.3636188be5e36d684855.hot-update.js",
"/js/main.9cae767dbe2ad8bd70fb.hot-update.js": "/js/main.9cae767dbe2ad8bd70fb.hot-update.js",
"/js/main.5b7aab65cd03a9489f9c.hot-update.js": "/js/main.5b7aab65cd03a9489f9c.hot-update.js",
"/js/main.39510cc3b23189a7de7d.hot-update.js": "/js/main.39510cc3b23189a7de7d.hot-update.js",
"/js/main.8c8334291c620cc95ad8.hot-update.js": "/js/main.8c8334291c620cc95ad8.hot-update.js",
"/js/main.74c6814faa0fd4817bc1.hot-update.js": "/js/main.74c6814faa0fd4817bc1.hot-update.js",
"/js/main.849ad6dc3cdffe9b1b20.hot-update.js": "/js/main.849ad6dc3cdffe9b1b20.hot-update.js",
"/js/main.f395f2fbb2f3b64cc6f1.hot-update.js": "/js/main.f395f2fbb2f3b64cc6f1.hot-update.js",
"/js/main.18d0e8348fd8aa793839.hot-update.js": "/js/main.18d0e8348fd8aa793839.hot-update.js",
"/js/main.fc377ac6d969c7293455.hot-update.js": "/js/main.fc377ac6d969c7293455.hot-update.js",
"/js/main.b22b433586703b7576b4.hot-update.js": "/js/main.b22b433586703b7576b4.hot-update.js",
"/js/main.7b47ddfc9f3a3d983cde.hot-update.js": "/js/main.7b47ddfc9f3a3d983cde.hot-update.js",
"/js/main.a6f75e262f697452f523.hot-update.js": "/js/main.a6f75e262f697452f523.hot-update.js",
"/js/main.e8f47f9fa5312f922155.hot-update.js": "/js/main.e8f47f9fa5312f922155.hot-update.js",
"/js/main.73357d64beeae3e97de3.hot-update.js": "/js/main.73357d64beeae3e97de3.hot-update.js",
"/js/main.ee16315e9e65b0852dd5.hot-update.js": "/js/main.ee16315e9e65b0852dd5.hot-update.js",
"/js/main.88913702eaef335e9e02.hot-update.js": "/js/main.88913702eaef335e9e02.hot-update.js",
"/js/main.db6ac98cf398928c2e73.hot-update.js": "/js/main.db6ac98cf398928c2e73.hot-update.js",
"/js/main.4f12951001656503a158.hot-update.js": "/js/main.4f12951001656503a158.hot-update.js",
"/js/main.2db2982c3308f8cccd4c.hot-update.js": "/js/main.2db2982c3308f8cccd4c.hot-update.js",
"/js/main.a86fdc224969debff737.hot-update.js": "/js/main.a86fdc224969debff737.hot-update.js",
"/js/main.e6fd5ecac90e63e12a02.hot-update.js": "/js/main.e6fd5ecac90e63e12a02.hot-update.js",
"/js/main.d887cfdc43db76b7faa2.hot-update.js": "/js/main.d887cfdc43db76b7faa2.hot-update.js",
"/js/main.f13944ff1e78574af5b5.hot-update.js": "/js/main.f13944ff1e78574af5b5.hot-update.js",
"/js/main.1605a1b0627d94f11dbc.hot-update.js": "/js/main.1605a1b0627d94f11dbc.hot-update.js",
"/js/main.22eb174299088da1c3fa.hot-update.js": "/js/main.22eb174299088da1c3fa.hot-update.js",
"/js/main.a5225ccfa63fc20acf67.hot-update.js": "/js/main.a5225ccfa63fc20acf67.hot-update.js",
"/js/main.9a90c8e6884fcf574b9a.hot-update.js": "/js/main.9a90c8e6884fcf574b9a.hot-update.js",
"/js/main.fd70edb50c7cf7b69785.hot-update.js": "/js/main.fd70edb50c7cf7b69785.hot-update.js",
"/js/main.2eeb2743f199bbf38613.hot-update.js": "/js/main.2eeb2743f199bbf38613.hot-update.js",
"/js/main.b3736284cc46395265b1.hot-update.js": "/js/main.b3736284cc46395265b1.hot-update.js",
"/js/main.66b85201485b4a7421e8.hot-update.js": "/js/main.66b85201485b4a7421e8.hot-update.js",
"/js/main.f8e3e20d4767d7c31781.hot-update.js": "/js/main.f8e3e20d4767d7c31781.hot-update.js",
"/js/main.19e1852773f997b06d2b.hot-update.js": "/js/main.19e1852773f997b06d2b.hot-update.js",
"/js/main.b876869c2a9bbe11f29a.hot-update.js": "/js/main.b876869c2a9bbe11f29a.hot-update.js",
"/js/main.d21c32c24c9eb00a499a.hot-update.js": "/js/main.d21c32c24c9eb00a499a.hot-update.js",
"/js/main.497bde486c82480961bb.hot-update.js": "/js/main.497bde486c82480961bb.hot-update.js",
"/js/main.e36bec81b81e41aca056.hot-update.js": "/js/main.e36bec81b81e41aca056.hot-update.js",
"/js/main.512efb656f2451a94ae4.hot-update.js": "/js/main.512efb656f2451a94ae4.hot-update.js",
"/js/main.f3dc0ec60d2ab5f95622.hot-update.js": "/js/main.f3dc0ec60d2ab5f95622.hot-update.js",
"/js/main.9da7bd56b66dcb221f0d.hot-update.js": "/js/main.9da7bd56b66dcb221f0d.hot-update.js",
"/js/main.7754f0dfc22da448a4e6.hot-update.js": "/js/main.7754f0dfc22da448a4e6.hot-update.js",
"/js/main.4487182e61023c6ea81e.hot-update.js": "/js/main.4487182e61023c6ea81e.hot-update.js",
"/js/main.f004735dd9650ba0cb69.hot-update.js": "/js/main.f004735dd9650ba0cb69.hot-update.js",
"/js/main.1140b2605fe4b2e37b5b.hot-update.js": "/js/main.1140b2605fe4b2e37b5b.hot-update.js",
"/js/main.971b052f4f90d9abebad.hot-update.js": "/js/main.971b052f4f90d9abebad.hot-update.js",
"/js/main.a4ca9ab902b0a36f79da.hot-update.js": "/js/main.a4ca9ab902b0a36f79da.hot-update.js",
"/js/main.677e9d63a56b101c8cc5.hot-update.js": "/js/main.677e9d63a56b101c8cc5.hot-update.js",
"/js/main.0dc9c63f4e16799a8d7d.hot-update.js": "/js/main.0dc9c63f4e16799a8d7d.hot-update.js",
"/js/main.13b1fd1d2a5776adbcc3.hot-update.js": "/js/main.13b1fd1d2a5776adbcc3.hot-update.js",
"/js/main.fcd30219a79ae88d35b9.hot-update.js": "/js/main.fcd30219a79ae88d35b9.hot-update.js",
"/js/main.7948463ef3bb7055317f.hot-update.js": "/js/main.7948463ef3bb7055317f.hot-update.js",
"/js/main.c125e420ab4fe4c9f7d3.hot-update.js": "/js/main.c125e420ab4fe4c9f7d3.hot-update.js",
"/js/main.fbcf324618f293514643.hot-update.js": "/js/main.fbcf324618f293514643.hot-update.js",
"/js/main.5cf641b4d0bf252e9459.hot-update.js": "/js/main.5cf641b4d0bf252e9459.hot-update.js",
"/js/main.5b05d1725e7ea0a4bdc7.hot-update.js": "/js/main.5b05d1725e7ea0a4bdc7.hot-update.js",
"/js/main.77c81b5a940ec02ad546.hot-update.js": "/js/main.77c81b5a940ec02ad546.hot-update.js",
"/js/main.db4f6f2bf820e0c51e3e.hot-update.js": "/js/main.db4f6f2bf820e0c51e3e.hot-update.js",
"/js/main.dc61645ae230a8f1c693.hot-update.js": "/js/main.dc61645ae230a8f1c693.hot-update.js",
"/js/main.7725a1c58241a6c96525.hot-update.js": "/js/main.7725a1c58241a6c96525.hot-update.js",
"/js/main.40a5066ec9316e75e78e.hot-update.js": "/js/main.40a5066ec9316e75e78e.hot-update.js",
"/js/main.97f1c64eab8ba538f510.hot-update.js": "/js/main.97f1c64eab8ba538f510.hot-update.js",
"/js/main.6bf46e7d071777d819ac.hot-update.js": "/js/main.6bf46e7d071777d819ac.hot-update.js",
"/js/main.d5bce653b584abdec0e5.hot-update.js": "/js/main.d5bce653b584abdec0e5.hot-update.js",
"/js/main.a158e667c7e797193ce1.hot-update.js": "/js/main.a158e667c7e797193ce1.hot-update.js",
"/js/main.3f419ca1efc24822133c.hot-update.js": "/js/main.3f419ca1efc24822133c.hot-update.js",
"/js/main.cd2493fb57be52830881.hot-update.js": "/js/main.cd2493fb57be52830881.hot-update.js",
"/js/main.06d9fe7643a92be279ab.hot-update.js": "/js/main.06d9fe7643a92be279ab.hot-update.js",
"/js/main.ee38321d3a966fca7d05.hot-update.js": "/js/main.ee38321d3a966fca7d05.hot-update.js",
"/js/main.42a81ed8c7e29b5813f1.hot-update.js": "/js/main.42a81ed8c7e29b5813f1.hot-update.js",
"/js/main.3360b0fb7831cebd90a5.hot-update.js": "/js/main.3360b0fb7831cebd90a5.hot-update.js",
"/js/main.65d9140c15f311c37f83.hot-update.js": "/js/main.65d9140c15f311c37f83.hot-update.js",
"/js/main.58cfd53649eace0c70b1.hot-update.js": "/js/main.58cfd53649eace0c70b1.hot-update.js",
"/js/main.cb6270bbc347b69aca43.hot-update.js": "/js/main.cb6270bbc347b69aca43.hot-update.js",
"/js/main.4697cc6965085628186a.hot-update.js": "/js/main.4697cc6965085628186a.hot-update.js",
"/js/main.6dc892cffa3e5926b3c8.hot-update.js": "/js/main.6dc892cffa3e5926b3c8.hot-update.js",
"/js/main.f6b489ab9bfe6884487d.hot-update.js": "/js/main.f6b489ab9bfe6884487d.hot-update.js",
"/js/main.174349a38afa813b263b.hot-update.js": "/js/main.174349a38afa813b263b.hot-update.js",
"/js/main.8a6d60407d80835ecbad.hot-update.js": "/js/main.8a6d60407d80835ecbad.hot-update.js",
"/js/main.2746deb0d433bbd85f68.hot-update.js": "/js/main.2746deb0d433bbd85f68.hot-update.js",
"/js/main.f85bddc056d7d7b16f99.hot-update.js": "/js/main.f85bddc056d7d7b16f99.hot-update.js",
"/js/main.e10202aa85190653ad73.hot-update.js": "/js/main.e10202aa85190653ad73.hot-update.js",
"/js/main.15de957e562857d144a5.hot-update.js": "/js/main.15de957e562857d144a5.hot-update.js",
"/js/main.75da45714f63bd5486bd.hot-update.js": "/js/main.75da45714f63bd5486bd.hot-update.js",
"/js/main.2070d47c01eb224307b4.hot-update.js": "/js/main.2070d47c01eb224307b4.hot-update.js",
"/js/main.495ebfa70d0a3166d97b.hot-update.js": "/js/main.495ebfa70d0a3166d97b.hot-update.js",
"/js/main.36ff64ad1058f1a77239.hot-update.js": "/js/main.36ff64ad1058f1a77239.hot-update.js",
"/js/main.b9ac2ee5ec64a0a63d2d.hot-update.js": "/js/main.b9ac2ee5ec64a0a63d2d.hot-update.js",
"/js/main.af2a7936bd8b82ef9d98.hot-update.js": "/js/main.af2a7936bd8b82ef9d98.hot-update.js",
"/js/main.267cc5cffe3e293b9d79.hot-update.js": "/js/main.267cc5cffe3e293b9d79.hot-update.js",
"/js/main.ea833f8d49e28fcb63f9.hot-update.js": "/js/main.ea833f8d49e28fcb63f9.hot-update.js",
"/js/main.0e6735e3a459e47c4f3f.hot-update.js": "/js/main.0e6735e3a459e47c4f3f.hot-update.js",
"/js/main.39ffc75da70e1ea506b4.hot-update.js": "/js/main.39ffc75da70e1ea506b4.hot-update.js",
"/js/main.c68d38bdcf92538c0303.hot-update.js": "/js/main.c68d38bdcf92538c0303.hot-update.js",
"/js/main.a0cdb18827fddb4cd559.hot-update.js": "/js/main.a0cdb18827fddb4cd559.hot-update.js",
"/js/main.03aa488609c2be5c87af.hot-update.js": "/js/main.03aa488609c2be5c87af.hot-update.js",
"/js/main.09afd8a92a7772f1062e.hot-update.js": "/js/main.09afd8a92a7772f1062e.hot-update.js",
"/js/main.f0804ab252dad4e91396.hot-update.js": "/js/main.f0804ab252dad4e91396.hot-update.js",
"/js/main.b4cbf800c67983771132.hot-update.js": "/js/main.b4cbf800c67983771132.hot-update.js",
"/js/main.b86cc490a20b731241fd.hot-update.js": "/js/main.b86cc490a20b731241fd.hot-update.js",
"/js/main.bb077fd5365dc113e5ce.hot-update.js": "/js/main.bb077fd5365dc113e5ce.hot-update.js",
"/js/main.3036afc5655ec8f5b6d5.hot-update.js": "/js/main.3036afc5655ec8f5b6d5.hot-update.js",
"/js/main.5ae29336999df63d0ed8.hot-update.js": "/js/main.5ae29336999df63d0ed8.hot-update.js",
"/js/main.30716b58191d830fb6a7.hot-update.js": "/js/main.30716b58191d830fb6a7.hot-update.js",
"/js/main.96730b11d2c8ae2f9757.hot-update.js": "/js/main.96730b11d2c8ae2f9757.hot-update.js",
"/js/main.a1edb6896e4b978b22be.hot-update.js": "/js/main.a1edb6896e4b978b22be.hot-update.js",
"/js/main.d8e3f00bec4b902263ac.hot-update.js": "/js/main.d8e3f00bec4b902263ac.hot-update.js",
"/js/main.917bd2f050edc6b443d9.hot-update.js": "/js/main.917bd2f050edc6b443d9.hot-update.js",
"/js/main.e38019d32e49fdfddadc.hot-update.js": "/js/main.e38019d32e49fdfddadc.hot-update.js",
"/js/main.d7423441df4bdf0cd124.hot-update.js": "/js/main.d7423441df4bdf0cd124.hot-update.js"
"/js/main.a05f73bdafb408ba63a7.hot-update.js": "/js/main.a05f73bdafb408ba63a7.hot-update.js",
"/js/main.579b27226152eb2190c1.hot-update.js": "/js/main.579b27226152eb2190c1.hot-update.js",
"/js/main.474fac8c0b24783c7fd4.hot-update.js": "/js/main.474fac8c0b24783c7fd4.hot-update.js",
"/js/main.9de5b2f0650cb1631fbd.hot-update.js": "/js/main.9de5b2f0650cb1631fbd.hot-update.js",
"/js/main.196265dde80422c79d51.hot-update.js": "/js/main.196265dde80422c79d51.hot-update.js",
"/js/main.790a1213f689ada568d7.hot-update.js": "/js/main.790a1213f689ada568d7.hot-update.js",
"/js/main.4c03a0715105eb662aa6.hot-update.js": "/js/main.4c03a0715105eb662aa6.hot-update.js",
"/js/main.dfb012ee3ada7c88003c.hot-update.js": "/js/main.dfb012ee3ada7c88003c.hot-update.js",
"/js/main.4366673749cb86066900.hot-update.js": "/js/main.4366673749cb86066900.hot-update.js",
"/js/main.39e751cdbfc560b8373e.hot-update.js": "/js/main.39e751cdbfc560b8373e.hot-update.js",
"/js/main.470782a603a3ebebd0d3.hot-update.js": "/js/main.470782a603a3ebebd0d3.hot-update.js",
"/js/main.cb1e5b4da45c099da804.hot-update.js": "/js/main.cb1e5b4da45c099da804.hot-update.js",
"/js/main.e27d59fc1c47efaa7ecd.hot-update.js": "/js/main.e27d59fc1c47efaa7ecd.hot-update.js",
"/js/main.6b57c225da289f9e5ec9.hot-update.js": "/js/main.6b57c225da289f9e5ec9.hot-update.js"
}

View File

@@ -25,12 +25,21 @@
</div>
<!--Files controlls-->
<div class="toolbar-button-wrapper"
v-if="$checkPermission(['master', 'editor'])">
<div class="toolbar-button-wrapper" v-if="$checkPermission(['master', 'editor'])">
<ToolbarButtonUpload
:class="{'is-inactive': canUploadInView}"
:action="$t('actions.upload')"
/>
<ToolbarButton
:class="{'is-inactive': canCreateFolderInView}"
@click.native="createFolder"
source="folder-plus"
:action="$t('actions.create_folder')"
/>
</div>
<div class="toolbar-button-wrapper"
v-if="$checkPermission(['master', 'editor'])">
<ToolbarButton
source="move"
:class="{'is-inactive': canMoveInView}"
@@ -50,12 +59,6 @@
:action="$t('actions.delete')"
@click.native="deleteItem"
/>
<ToolbarButton
:class="{'is-inactive': canCreateFolderInView}"
@click.native="createFolder"
source="folder-plus"
:action="$t('actions.create_folder')"
/>
</div>
<!--View options-->

View File

@@ -12,8 +12,13 @@
<h1 class="title">{{ $t('empty_page.title') }}</h1>
</div>
<!--Trash empty message-->
<div class="text-content" v-if="$isThisLocation(['participant_uploads']) && ! isLoading">
<h1 class="title">You don't have any uploads from other users.</h1>
</div>
<!--Base file browser empty message-->
<div class="text-content" v-if="$isThisLocation(['base', 'public']) && !isLoading">
<div class="text-content" v-if="$isThisLocation(['base', 'public', 'latest']) && !isLoading">
<h1 class="title">{{ $t('empty_page.title') }}</h1>
<p v-if="$checkPermission(['master', 'editor'])" class="description">{{ $t('empty_page.description') }}</p>
<ButtonUpload
@@ -79,14 +84,14 @@
margin: 30px 0;
.title {
@include font-size(24);
@include font-size(20);
color: $text;
font-weight: 700;
margin: 0;
}
.description {
@include font-size(15);
@include font-size(13);
color: $text-muted;
margin-bottom: 20px;
display: block;

View File

@@ -225,6 +225,7 @@
}
.file-content {
height: 100%;
display: flex;
flex-wrap: nowrap;
@@ -307,13 +308,6 @@
@media only screen and (max-width: 690px) {
.file-list {
&.grid {
grid-template-columns: repeat(auto-fill, 120px);
}
}
.files-container {
padding-left: 15px;
padding-right: 15px;
@@ -323,6 +317,13 @@
bottom: 0;
position: absolute;
overflow-y: auto;
.file-list {
&.grid {
grid-template-columns: repeat(auto-fill, 120px);
}
}
}
.file-content {

View File

@@ -463,11 +463,23 @@
@media (prefers-color-scheme: dark) {
.file-wrapper {
.icon-item .file-icon {
.icon-item {
path {
fill: $dark_mode_foreground;
stroke: #2F3C54;
.file-icon {
path {
fill: $dark_mode_foreground;
stroke: #2F3C54;
}
}
.folder-icon {
&.is-deleted {
path {
fill: lighten($dark_mode_foreground, 5%);
}
}
}
}
@@ -486,9 +498,18 @@
}
}
.item-name .name {
color: $dark_mode_text_primary;
.item-name {
.name {
color: $dark_mode_text_primary;
}
.item-size,
.item-length {
color: $dark_mode_text_secondary;
}
}
}
}

View File

@@ -422,14 +422,26 @@
.file-wrapper {
.icon-item .file-icon {
.icon-item {
.file-icon {
path {
fill: $dark_mode_foreground;
stroke: #2F3C54;
path {
fill: $dark_mode_foreground;
stroke: #2F3C54;
}
}
.folder-icon {
&.is-deleted {
path {
fill: lighten($dark_mode_foreground, 5%);
}
}
}
}
.file-item {
&:hover,

View File

@@ -60,7 +60,7 @@
&.icon-append {
.icon {
padding: 8px 10px;
padding: 10px;
}
}

View File

@@ -97,6 +97,17 @@
@media (prefers-color-scheme: dark) {
.popup-header {
.label {
.close-icon {
&:hover {
background: $dark_mode_foreground;
}
cursor: pointer;
}
}
.title {
color: $dark_mode_text_primary;
}

View File

@@ -135,7 +135,7 @@
.popup-wrapper {
left: 15px;
right: 15px;
padding: 25px 15px;
padding: 0;
}
}

View File

@@ -28,6 +28,9 @@
<!--Navigator-->
<ContentGroup title="Navigator" class="navigator">
<span class="empty-note navigator" v-if="app.tree.length == 0">
Create some new folder.
</span>
<TreeMenuNavigator class="folder-tree" :depth="0" :nodes="items" v-for="items in app.tree"
:key="items.unique_id"/>
</ContentGroup>
@@ -42,9 +45,9 @@
@drop="dragFinish($event)"
>
<transition-group tag="div" class="menu-list" name="folder-item">
<a class="empty-list" v-if="app.favourites.length == 0" :key="0">
<span class="empty-note favourites" v-if="app.favourites.length == 0" :key="0">
{{ $t('sidebar.favourites_empty') }}
</a>
</span>
<a @click.stop="openFolder(folder)"
class="menu-list-item"
@@ -147,6 +150,17 @@
<style lang="scss" scoped>
.empty-note {
&.navigator {
padding: 5px 25px 10px;
}
&.favourites {
padding: 5px 23px 10px;
}
}
.navigator {
width: 100%;
overflow-x: auto;

View File

@@ -140,13 +140,12 @@
}
}
}
}
.empty-list {
@include font-size(12);
color: $text-muted;
display: block;
padding: 15px;
}
.empty-note {
@include font-size(12);
color: $text-muted;
display: block;
}
@media only screen and (max-width: 1024px) {

View File

@@ -194,6 +194,7 @@ input[type="email"] {
}
&[disabled] {
background: $dark_mode_foreground;
color: rgba($dark_mode_text_secondary, 15%);
}
}

View File

@@ -11,6 +11,9 @@
|
*/
// Deployment Webhook URL
Route::post('/deploy', 'DeployController@deploy');
// Get public thumbnails and files
Route::get('/thumbnail/{name}/public/{token}', 'FileAccessController@get_thumbnail_public');
Route::get('/avatars/{avatar}', 'FileAccessController@get_avatar')->name('avatar');

2
webpack.mix.js vendored
View File

@@ -26,7 +26,7 @@ mix.js('resources/js/main.js', 'public/js')
.options({
hmrOptions: {
//host: '172.20.10.5',
//host: '192.168.1.131',
host: '192.168.1.131',
port: '8080'
},
})