Removed redundant items, upgraded to laravel 5.6
This commit is contained in:
25
resources/assets/js/app.js
vendored
25
resources/assets/js/app.js
vendored
@@ -1,23 +1,22 @@
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Laravel Spark Bootstrap
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| First, we will load all of the "core" dependencies for Spark which are
|
||||
| libraries such as Vue and jQuery. This also loads the Spark helpers
|
||||
| for things such as HTTP calls, forms, and form validation errors.
|
||||
|
|
||||
| Next, we'll create the root Vue application for Spark. This will start
|
||||
| the entire application and attach it to the DOM. Of course, you may
|
||||
| customize this script as you desire and load your own components.
|
||||
|
|
||||
/**
|
||||
* First we will load all of this project's JavaScript dependencies which
|
||||
* includes Vue and other libraries. It is a great starting point when
|
||||
* building robust, powerful web applications using Vue and Laravel.
|
||||
*/
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
window.Vue = require('vue');
|
||||
|
||||
/**
|
||||
* 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('example-component', require('./components/ExampleComponent.vue'));
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app'
|
||||
});
|
||||
|
5
resources/assets/js/bootstrap.js
vendored
5
resources/assets/js/bootstrap.js
vendored
@@ -1,5 +1,6 @@
|
||||
|
||||
window._ = require('lodash');
|
||||
window.Popper = require('popper.js').default;
|
||||
|
||||
/**
|
||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
||||
@@ -72,5 +73,7 @@ Vue.component('reset-password-form', require('./components/auth/ResetPasswordFor
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: 'your-pusher-key'
|
||||
// key: process.env.MIX_PUSHER_APP_KEY,
|
||||
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||||
// encrypted: true
|
||||
// });
|
||||
|
@@ -1,23 +0,0 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Example Component</div>
|
||||
|
||||
<div class="panel-body">
|
||||
I'm an example component!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
console.log('Component mounted.')
|
||||
}
|
||||
}
|
||||
</script>
|
@@ -10,10 +10,10 @@ export default {
|
||||
radioClass: 'iradio_square-blue',
|
||||
increaseArea: '20%'
|
||||
}).on('ifChecked', function (event) {
|
||||
component.form.set('terms', true)
|
||||
component.form.setField('terms', true)
|
||||
component.form.errors.clear('terms')
|
||||
}).on('ifUnchecked', function (event) {
|
||||
component.form.set('terms', '')
|
||||
component.form.setField('terms', '')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
14
resources/assets/js/components/bootstrap.js
vendored
14
resources/assets/js/components/bootstrap.js
vendored
@@ -1,14 +0,0 @@
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Laravel Spark Components
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here we will load the Spark components which makes up the core client
|
||||
| application. This is also a convenient spot for you to load all of
|
||||
| your components that you write while building your applications.
|
||||
*/
|
||||
|
||||
require('./../spark-components/bootstrap');
|
||||
|
||||
require('./home');
|
7
resources/assets/js/components/home.js
vendored
7
resources/assets/js/components/home.js
vendored
@@ -1,7 +0,0 @@
|
||||
Vue.component('home', {
|
||||
props: ['user'],
|
||||
|
||||
mounted() {
|
||||
//
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user