Add pdfobject and laravel-dompdf dependencies

Added `pdfobject` to npm dependencies and `barryvdh/laravel-dompdf` to composer dependencies. Corrected import order in `app.js` and streamlined dependency imports.
This commit is contained in:
Daeng Deni Mardaeni 2024-11-03 08:16:07 +07:00
parent ae12a3301f
commit 4fa9bac73c
3 changed files with 8 additions and 9 deletions

View File

@ -6,13 +6,14 @@
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^8.2", "php": "^8.2",
"barryvdh/laravel-dompdf": "^3.0",
"daengdeni/authentication-module": "dev-master", "daengdeni/authentication-module": "dev-master",
"daengdeni/basicdata-module": "dev-master",
"daengdeni/laravel-id-generator": "^1.0", "daengdeni/laravel-id-generator": "^1.0",
"daengdeni/location-module": "dev-master", "daengdeni/location-module": "dev-master",
"daengdeni/logs-module": "dev-master", "daengdeni/logs-module": "dev-master",
"daengdeni/basicdata-module": "dev-master",
"daengdeni/usermanagement-module": "dev-master",
"daengdeni/lpj-module": "dev-staging", "daengdeni/lpj-module": "dev-staging",
"daengdeni/usermanagement-module": "dev-master",
"diglactic/laravel-breadcrumbs": "^9.0", "diglactic/laravel-breadcrumbs": "^9.0",
"joshbrw/laravel-module-installer": "^2.0", "joshbrw/laravel-module-installer": "^2.0",
"laravel/framework": "^11.9", "laravel/framework": "^11.9",

View File

@ -26,6 +26,7 @@
"jquery": "^3.7.1", "jquery": "^3.7.1",
"mini-svg-data-uri": "^1.4.4", "mini-svg-data-uri": "^1.4.4",
"notie": "^4.3.1", "notie": "^4.3.1",
"pdfobject": "^2.3.0",
"sweetalert2": "^11.14.3", "sweetalert2": "^11.14.3",
"toastr": "^2.1.4", "toastr": "^2.1.4",
"tom-select": "^2.3.1" "tom-select": "^2.3.1"

View File

@ -1,19 +1,18 @@
import "./bootstrap"; import "./bootstrap";
import "../metronic/core/index"; import "../metronic/core/index";
import "../metronic/app/layouts/base.js"; import "../metronic/app/layouts/base.js";
import $ from "jquery"; import $ from "jquery";
import Swal from "sweetalert2";
import TomSelect from "tom-select";
import toast from "toastr";
import "toastr/build/toastr.css";
window.jQuery = $; window.jQuery = $;
window.$ = $; window.$ = $;
import Swal from "sweetalert2";
window.Swal = Swal; window.Swal = Swal;
window.swal = Swal; window.swal = Swal;
import TomSelect from "tom-select";
document.querySelectorAll(".tomselect").forEach((el) => { document.querySelectorAll(".tomselect").forEach((el) => {
let settings = { let settings = {
plugins: ["dropdown_input"], plugins: ["dropdown_input"],
@ -25,9 +24,7 @@ document.querySelectorAll(".tomselect").forEach((el) => {
new TomSelect(el, settings); new TomSelect(el, settings);
}); });
import toast from "toastr";
window.toast = toast; window.toast = toast;
import "toastr/build/toastr.css";
document.querySelectorAll(".toastr").forEach((el) => { document.querySelectorAll(".toastr").forEach((el) => {
toast.options = { toast.options = {