Added some javascript packages, jquery/select2/fontawesome/dropzone

This commit is contained in:
Deon George 2022-10-22 23:05:10 +11:00
parent de3371bd2f
commit 3be6be1f6c
3 changed files with 1856 additions and 111 deletions

1946
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,15 +5,22 @@
"build": "vite build" "build": "vite build"
}, },
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "5.11.2",
"@tailwindcss/forms": "^0.5.2", "@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.0", "@tailwindcss/typography": "^0.5.0",
"alpinejs": "^3.0.6", "alpinejs": "^3.0.6",
"autoprefixer": "^10.4.7", "autoprefixer": "^10.4.7",
"axios": "^0.27", "axios": "^0.27",
"jquery": "^3.6.1",
"laravel-vite-plugin": "^0.6.0", "laravel-vite-plugin": "^0.6.0",
"lodash": "^4.17.19", "lodash": "^4.17.19",
"postcss": "^8.4.14", "postcss": "^8.4.14",
"sass": "^1.55.0",
"tailwindcss": "^3.1.0", "tailwindcss": "^3.1.0",
"vite": "^3.0.0" "vite": "^3.0.0"
},
"dependencies": {
"dropzone": "^6.0.0-beta.2",
"select2": "^4.1.0-rc.0"
} }
} }

View File

@ -12,6 +12,20 @@ window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
// https://laracasts.com/discuss/channels/vite/laravel-vite-jquery
import '@fortawesome/fontawesome-free/scss/fontawesome.scss';
import '@fortawesome/fontawesome-free/scss/brands.scss';
import '@fortawesome/fontawesome-free/scss/regular.scss';
import '@fortawesome/fontawesome-free/scss/solid.scss';
import '@fortawesome/fontawesome-free/scss/v4-shims.scss';
import $ from 'jquery'
import select2 from "select2"
import dropzone from "dropzone"
window.jQuery = window.$ = $
window.Dropzone = Dropzone
/** /**
* Echo exposes an expressive API for subscribing to channels and listening * Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting * for events that are broadcast by Laravel. Echo and event broadcasting