Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 3b47e60

Browse files
committed
update resources folder
1 parent 8a79b0e commit 3b47e60

File tree

13 files changed

+334
-225
lines changed

13 files changed

+334
-225
lines changed

resources/assets/js/app.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

resources/assets/js/bootstrap.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

resources/assets/sass/_variables.scss

Lines changed: 0 additions & 38 deletions
This file was deleted.

resources/assets/sass/app.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

resources/js/app.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* First we will load all of this project's JavaScript dependencies which
3+
* includes Vue and other libraries. It is a great starting point when
4+
* building robust, powerful web applications using Vue and Laravel.
5+
*/
6+
7+
require('./bootstrap');
8+
9+
window.Vue = require('vue');
10+
11+
/**
12+
* The following block of code may be used to automatically register your
13+
* Vue components. It will recursively scan this directory for the Vue
14+
* components and automatically register them with their "basename".
15+
*
16+
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
17+
*/
18+
19+
// const files = require.context('./', true, /\.vue$/i);
20+
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));
21+
22+
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
23+
24+
/**
25+
* Next, we will create a fresh Vue application instance and attach it to
26+
* the page. Then, you may begin adding components to this application
27+
* or customize the JavaScript scaffolding to fit your unique needs.
28+
*/
29+
30+
const app = new Vue({
31+
el: '#app',
32+
});

resources/js/bootstrap.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
window._ = require('lodash');
2+
3+
/**
4+
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
5+
* for JavaScript based Bootstrap features such as modals and tabs. This
6+
* code may be modified to fit the specific needs of your application.
7+
*/
8+
9+
try {
10+
window.Popper = require('popper.js').default;
11+
window.$ = window.jQuery = require('jquery');
12+
13+
require('bootstrap');
14+
} catch (e) {}
15+
16+
/**
17+
* We'll load the axios HTTP library which allows us to easily issue requests
18+
* to our Laravel back-end. This library automatically handles sending the
19+
* CSRF token as a header based on the value of the "XSRF" token cookie.
20+
*/
21+
22+
window.axios = require('axios');
23+
24+
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
25+
26+
/**
27+
* Next we will register the CSRF Token as a common header with Axios so that
28+
* all outgoing HTTP requests automatically have it attached. This is just
29+
* a simple convenience so we don't have to attach every token manually.
30+
*/
31+
32+
let token = document.head.querySelector('meta[name="csrf-token"]');
33+
34+
if (token) {
35+
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
36+
} else {
37+
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
38+
}
39+
40+
/**
41+
* Echo exposes an expressive API for subscribing to channels and listening
42+
* for events that are broadcast by Laravel. Echo and event broadcasting
43+
* allows your team to easily build robust real-time web applications.
44+
*/
45+
46+
// import Echo from 'laravel-echo'
47+
48+
// window.Pusher = require('pusher-js');
49+
50+
// window.Echo = new Echo({
51+
// broadcaster: 'pusher',
52+
// key: process.env.MIX_PUSHER_APP_KEY,
53+
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
54+
// encrypted: true
55+
// });
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<div class="container">
3+
<div class="row justify-content-center">
4+
<div class="col-md-8">
5+
<div class="card">
6+
<div class="card-header">Example Component</div>
7+
8+
<div class="card-body">
9+
I'm an example component.
10+
</div>
11+
</div>
12+
</div>
13+
</div>
14+
</div>
15+
</template>
16+
17+
<script>
18+
export default {
19+
mounted() {
20+
console.log('Component mounted.')
21+
}
22+
}
23+
</script>

resources/lang/en/passwords.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
'password' => 'Passwords must be at least six characters and match the confirmation.',
16+
'password' => 'Passwords must be at least eight characters and match the confirmation.',
1717
'reset' => 'Your password has been reset!',
1818
'sent' => 'We have e-mailed your password reset link!',
1919
'token' => 'This password reset token is invalid.',

0 commit comments

Comments
 (0)