Skip to content

Commit

Permalink
Add @inertiajs/progress to package dependencies (#46)
Browse files Browse the repository at this point in the history
* add @inertiajs/progress to the base scaffold

* Update app.js

* Update InstallCommand.php

* Update app.js

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
ninjaparade and taylorotwell authored Feb 17, 2021
1 parent f81d03c commit e2ae8b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ protected function installInertiaStack()
return [
'@inertiajs/inertia' => '^0.8.4',
'@inertiajs/inertia-vue3' => '^0.3.5',
'@inertiajs/progress': '^0.2.4',
'@tailwindcss/forms' => '^0.2.1',
'@vue/compiler-sfc' => '^3.0.5',
'autoprefixer' => '^10.2.4',
Expand Down
8 changes: 8 additions & 0 deletions stubs/inertia/resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require('./bootstrap');
// Import modules...
import { createApp, h } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress'

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

Expand All @@ -16,3 +17,10 @@ createApp({
.mixin({ methods: { route } })
.use(InertiaPlugin)
.mount(el);

InertiaProgress.init({
delay: 250,
color: '#4B5563',
includeCSS: true,
showSpinner: false,
});

0 comments on commit e2ae8b1

Please sign in to comment.