Skip to content

A free open source IT asset/license management system

completely kill vue

spencerrlongg65cbba3c2e8b
diff --git a/package.json b/package.json
index 93080aae48..54de826673 100644
--- a/package.json
+++ b/package.json
@@ -18,10 +18,7 @@
"jquery": "<3.6.0",
"laravel-mix": "^6.0.49",
"lodash": "^4.17.20",
- "postcss": "^8.4.5",
- "vue": "2.4.4",
- "vue-loader": "^15.9.7",
- "vue-template-compiler": "2.4.4"
+ "postcss": "^8.4.5"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.2",
@@ -56,7 +53,6 @@
"sheetjs": "^2.0.0",
"tableexport.jquery.plugin": "1.28.0",
"tether": "^1.4.0",
- "vue-resource": "^1.5.2",
"webpack": "^5.89.0"
}
}
diff --git a/resources/assets/js/vue.js b/resources/assets/js/vue.js
deleted file mode 100644
index f70169c890..0000000000
--- a/resources/assets/js/vue.js
+++ /dev/null
@@ -1,45 +0,0 @@
-
-/**
- * First we will load all of this project's JavaScript dependencies which
- * include Vue and Vue Resource. This gives a great starting point for
- * building robust, powerful web applications using Vue and Laravel.
- */
-require('./bootstrap');
-
-/**
- * Next, we will create a fresh Vue application instance and attach it to
- * the page. Then, you may begin adding components to this application
- * or customize the JavaScript scaffolding to fit your unique needs.
- */
-// Vue.component(
-// 'passport-clients',
-// require('./components/passport/Clients.vue').default
-// );
-
-// Vue.component(
-// 'passport-authorized-clients',
-// require('./components/passport/AuthorizedClients.vue').default
-// );
-
-// This component has been removed and replaced with a Livewire implementation
-// Vue.component(
-// 'passport-personal-access-tokens',
-// require('./components/passport/PersonalAccessTokens.vue').default
-// );
-
-// This component has been removed and replaced with a Livewire implementation
-// Vue.component(
-// 'importer',
-// require('./components/importer/importer.vue').default
-// );
-
-// This component has been removed and replaced with a Livewire implementation
-// Vue.component(
-// 'fieldset-default-values',
-// require('./components/forms/asset-models/fieldset-default-values.vue').default
-// );
-
-// Commented out currently to avoid trying to load vue everywhere.
-// const app = new Vue({
-// el: '#app'
-// });
diff --git a/resources/views/account/api.blade.php b/resources/views/account/api.blade.php
index af263fb3b8..4c153e6aae 100644
--- a/resources/views/account/api.blade.php
+++ b/resources/views/account/api.blade.php
@@ -34,9 +34,4 @@
@stop
@section('moar_scripts')
-<script nonce="{{ csrf_token() }}">
- new Vue({
- el: "#app",
- });
-</script>
@endsection
diff --git a/webpack.mix.js b/webpack.mix.js
index 4f931be8bd..5563ad96e0 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -50,7 +50,6 @@ mix
mix
.js(
[
- "./resources/assets/js/vue.js", // require()s vue, and require()s bootstrap.js
"./resources/assets/js/snipeit.js", //this is the actual Snipe-IT JS
"./resources/assets/js/snipeit_modals.js",
],