From 994c077d5040befd8c4f1c699c29036b9a70a74c Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 11:31:25 -0700 Subject: [PATCH 01/19] Updated to laravel 6.0 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 621c3f5..b55d010 100644 --- a/composer.json +++ b/composer.json @@ -4,8 +4,8 @@ "keywords": ["laravel", "preset", "vuetify"], "license": "MIT", "require": { - "laravel/framework": "^5.7", - "laravel/passport": "^7.0" + "laravel/framework": "^6.0", + "laravel/passport": "^8.0" }, "autoload": { "psr-4": { From b2d3411f68523fbd2d303dfbc5712f862213b66e Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:23:39 -0700 Subject: [PATCH 02/19] Updated to latest versions --- src/VuetifyPreset.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VuetifyPreset.php b/src/VuetifyPreset.php index 2488947..727ee5b 100644 --- a/src/VuetifyPreset.php +++ b/src/VuetifyPreset.php @@ -43,9 +43,11 @@ public static function install($withAuth = false) protected static function updatePackageArray(array $packages) { return array_merge([ - 'vuetify' => '^1.0', + 'vuetify' => '^2.1.13', 'gravatar' => '^1.0', - 'vuex' => '^3.0', + "vue": "^2.6.10", + "vue-template-compiler": "^2.6.10", + "vuex": "^3.1.2" ], Arr::except($packages, [ 'bootstrap', 'bootstrap-sass', From ee791ae3505ef14411a1ea7312f70b42cba66126 Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:27:51 -0700 Subject: [PATCH 03/19] Update VuetifyPreset.php --- src/VuetifyPreset.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/VuetifyPreset.php b/src/VuetifyPreset.php index 727ee5b..27d3bb5 100644 --- a/src/VuetifyPreset.php +++ b/src/VuetifyPreset.php @@ -45,9 +45,9 @@ protected static function updatePackageArray(array $packages) return array_merge([ 'vuetify' => '^2.1.13', 'gravatar' => '^1.0', - "vue": "^2.6.10", - "vue-template-compiler": "^2.6.10", - "vuex": "^3.1.2" + 'vue': '^2.6.10', + 'vue-template-compiler': '^2.6.10', + 'vuex': "^3.1.2", ], Arr::except($packages, [ 'bootstrap', 'bootstrap-sass', From 971ca29a393c0b62e9027d672ae3137f96b70ca7 Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:28:27 -0700 Subject: [PATCH 04/19] Update VuetifyPreset.php --- src/VuetifyPreset.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/VuetifyPreset.php b/src/VuetifyPreset.php index 27d3bb5..a76d72d 100644 --- a/src/VuetifyPreset.php +++ b/src/VuetifyPreset.php @@ -45,9 +45,9 @@ protected static function updatePackageArray(array $packages) return array_merge([ 'vuetify' => '^2.1.13', 'gravatar' => '^1.0', - 'vue': '^2.6.10', - 'vue-template-compiler': '^2.6.10', - 'vuex': "^3.1.2", + 'vue' => '^2.6.10', + 'vue-template-compiler' => '^2.6.10', + 'vuex' => "^3.1.2", ], Arr::except($packages, [ 'bootstrap', 'bootstrap-sass', From 639805e577a05fc36ec0da0fae7ccd35eec03643 Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:48:30 -0700 Subject: [PATCH 05/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 84aab8c..485b421 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Sorry no time to mantain this package: if anyone is interested to mantain it please email me at sergiturbadenas at gmail.com -# Laravel 5.5+ Frontend preset for Vuetify with Vuex +# Laravel 6.0+ Frontend preset for Vuetify with Vuex A Laravel front-end scaffolding preset for [Vuetify](https://vuetifyjs.com/en/) - a Material Design Component Framework with Vue and Vuex. From 649e086d93309b91119272099275ff671202e75f Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:50:28 -0700 Subject: [PATCH 06/19] Proper init of Vuetify Needed import and init, as well as changing of components to .default as per laravel 6.0 guidelines --- src/vuetify-stubs/js/app.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/vuetify-stubs/js/app.js b/src/vuetify-stubs/js/app.js index eb35ac6..947b155 100644 --- a/src/vuetify-stubs/js/app.js +++ b/src/vuetify-stubs/js/app.js @@ -1,4 +1,4 @@ - +import Vuetify from 'vuetify' /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when @@ -15,9 +15,9 @@ window.Vue = require('vue'); * or customize the JavaScript scaffolding to fit your unique needs. */ -Vue.component('login-button', require('./components/LoginButtonComponent.vue')); -Vue.component('register-button', require('./components/RegisterButtonComponent.vue')); -Vue.component('snackbar', require('./components/SnackBarComponent.vue')); +Vue.component('login-button', require('./components/LoginButtonComponent.vue').default); +Vue.component('register-button', require('./components/RegisterButtonComponent.vue').default); +Vue.component('snackbar', require('./components/SnackBarComponent.vue').default); window.Vuetify = require('vuetify'); Vue.use(Vuetify) @@ -35,5 +35,6 @@ if (window.user ) { const app = new Vue({ el: '#app', - store + store, + vuetify: new Vuetify() }); From 7c62bc629fa2d51518c4deb531fdd8947bec6e5f Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:52:05 -0700 Subject: [PATCH 07/19] Import correct vuetify css from npm install --- src/vuetify-stubs/resources/sass/app.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vuetify-stubs/resources/sass/app.scss b/src/vuetify-stubs/resources/sass/app.scss index fee0ed5..7b9974c 100644 --- a/src/vuetify-stubs/resources/sass/app.scss +++ b/src/vuetify-stubs/resources/sass/app.scss @@ -21,4 +21,6 @@ .pace .pace-activity { border-top-color: #0D47A1; border-left-color: #0D47A1; -} \ No newline at end of file +} + +@import '~vuetify/dist/vuetify.min.css'; From aa4dfa4506fc93e83ce181edc817dd0ad6c4c290 Mon Sep 17 00:00:00 2001 From: Josh <4635851+KronemeyerJoshua@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:55:14 -0700 Subject: [PATCH 08/19] Updated vuetify components / laravel imports --- .../resources/views/layouts/app.blade.php | 371 ++++++++++-------- 1 file changed, 209 insertions(+), 162 deletions(-) diff --git a/src/vuetify-stubs/resources/views/layouts/app.blade.php b/src/vuetify-stubs/resources/views/layouts/app.blade.php index 5f200be..57b7b6c 100644 --- a/src/vuetify-stubs/resources/views/layouts/app.blade.php +++ b/src/vuetify-stubs/resources/views/layouts/app.blade.php @@ -1,176 +1,223 @@
+
+