From a2bff05fb656c7c9afdeb2bf859735cdfeaa931a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Sun, 18 Apr 2021 20:35:43 +0200 Subject: [PATCH] add fslightbox --- package.json | 5 ++++- resources/js/bootstrap.js | 1 + resources/views/ticket/index.blade.php | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 31d2bbc..4541492 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,19 @@ { "private": true, "scripts": { + "dev": "mix", "development": "mix", "watch": "mix watch", "watch-poll": "mix watch -- --watch-options-poll=1000", "hot": "mix watch --hot", - "production": "mix --production" + "production": "mix --production", + "prod": "mix --production" }, "devDependencies": { "axios": "^0.21.1", "bootstrap": "^4.0.0", "cross-env": "^7.0", + "fslightbox": "^3.2.3", "jquery": "^3.2", "laravel-mix": "^6.0.16", "lodash": "^4.17.19", diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 63605fa..08f1b20 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -11,6 +11,7 @@ try { window.$ = window.jQuery = require('jquery'); require('bootstrap'); + require('fslightbox'); } catch (e) {} /** diff --git a/resources/views/ticket/index.blade.php b/resources/views/ticket/index.blade.php index e133d21..d45c9b6 100644 --- a/resources/views/ticket/index.blade.php +++ b/resources/views/ticket/index.blade.php @@ -59,14 +59,12 @@ @if ($ticket->file !== null) - Fichier + Fichier @endif @if ($ticket->file2 !== null) - Fichier 2 + Fichier 2 @endif {{ Carbon\Carbon::parse($ticket->created_at)->format('d/m/Y à H:i') }}