Skip to content

Commit

Permalink
remove unneeded props
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 8, 2021
1 parent e87021e commit c439176
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ protected function installInertiaVueStack()
// NPM Packages...
$this->updateNodePackages(function ($packages) {
return [
'@inertiajs/inertia' => '^0.8.4',
'@inertiajs/inertia-vue3' => '^0.3.5',
'@inertiajs/inertia' => '^0.9.0',
'@inertiajs/inertia-vue3' => '^0.4.0',
'@inertiajs/progress' => '^0.2.4',
'@tailwindcss/forms' => '^0.2.1',
'@vue/compiler-sfc' => '^3.0.5',
Expand Down
5 changes: 0 additions & 5 deletions stubs/inertia-vue/resources/js/Pages/Auth/ConfirmPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
BreezeValidationErrors,
},
props: {
auth: Object,
errors: Object,
},
data() {
return {
form: this.$inertia.form({
Expand Down
2 changes: 0 additions & 2 deletions stubs/inertia-vue/resources/js/Pages/Auth/ForgotPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
},
props: {
auth: Object,
errors: Object,
status: String,
},
Expand Down
2 changes: 0 additions & 2 deletions stubs/inertia-vue/resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@
},
props: {
auth: Object,
canResetPassword: Boolean,
errors: Object,
status: String,
},
Expand Down
5 changes: 0 additions & 5 deletions stubs/inertia-vue/resources/js/Pages/Auth/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
BreezeValidationErrors,
},
props: {
auth: Object,
errors: Object,
},
data() {
return {
form: this.$inertia.form({
Expand Down
2 changes: 0 additions & 2 deletions stubs/inertia-vue/resources/js/Pages/Auth/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
},
props: {
auth: Object,
email: String,
errors: Object,
token: String,
},
Expand Down
2 changes: 0 additions & 2 deletions stubs/inertia-vue/resources/js/Pages/Auth/VerifyEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
},
props: {
auth: Object,
errors: Object,
status: String,
},
Expand Down
5 changes: 0 additions & 5 deletions stubs/inertia-vue/resources/js/Pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,5 @@
components: {
BreezeAuthenticatedLayout,
},
props: {
auth: Object,
errors: Object,
},
}
</script>
2 changes: 0 additions & 2 deletions stubs/inertia-vue/resources/js/Pages/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@
<script>
export default {
props: {
auth: Object,
canLogin: Boolean,
canRegister: Boolean,
errors: Object,
laravelVersion: String,
phpVersion: String,
}
Expand Down
21 changes: 10 additions & 11 deletions stubs/inertia-vue/resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ require('./bootstrap');

// Import modules...
import { createApp, h } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { createInertiaApp } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';

const el = document.getElementById('app');

createApp({
render: () =>
h(InertiaApp, {
initialPage: JSON.parse(el.dataset.page),
resolveComponent: (name) => require(`./Pages/${name}`).default,
}),
})
.mixin({ methods: { route } })
.use(InertiaPlugin)
.mount(el);
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({ el, app, props, plugin }) {
createApp({ render: () => h(app, props) })
.mixin({ methods: { route }})
.use(plugin)
.mount(el);
},
});

InertiaProgress.init({ color: '#4B5563' });

0 comments on commit c439176

Please sign in to comment.