Skip to content

Commit e0a26d5

Browse files
StyleJS-Botm1guelpf
authored andcommitted
StyleJS fixes [skip ci]
1 parent 3ea3d8e commit e0a26d5

File tree

4 files changed

+361
-376
lines changed

4 files changed

+361
-376
lines changed

composer.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "laravel-frontend-presets/tailwindcss",
3-
"description": "Laravel 5.5 frontend preset for Tailwind CSS",
4-
"keywords": ["laravel", "preset", "tailwindcss"],
5-
"license": "MIT",
6-
"require": {
7-
"laravel/framework": "5.5.*"
8-
},
9-
"autoload": {
10-
"psr-4": {
11-
"LaravelFrontendPresets\\TailwindCssPreset\\": "src/"
12-
}
13-
},
14-
"extra": {
15-
"laravel": {
16-
"providers": [
17-
"LaravelFrontendPresets\\TailwindCssPreset\\TailwindCssPresetServiceProvider"
18-
]
19-
}
2+
"name": "laravel-frontend-presets/tailwindcss",
3+
"description": "Laravel 5.5 frontend preset for Tailwind CSS",
4+
"keywords": ["laravel", "preset", "tailwindcss"],
5+
"license": "MIT",
6+
"require": {
7+
"laravel/framework": "5.5.*"
8+
},
9+
"autoload": {
10+
"psr-4": {
11+
"LaravelFrontendPresets\\TailwindCssPreset\\": "src/"
2012
}
13+
},
14+
"extra": {
15+
"laravel": {
16+
"providers": [
17+
"LaravelFrontendPresets\\TailwindCssPreset\\TailwindCssPresetServiceProvider"
18+
]
19+
}
20+
}
2121
}

src/tailwindcss-stubs/bootstrap.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
2-
window._ = require('lodash');
1+
window._ = require("lodash");
32

43
/**
54
* We'll load the axios HTTP library which allows us to easily issue requests
65
* to our Laravel back-end. This library automatically handles sending the
76
* CSRF token as a header based on the value of the "XSRF" token cookie.
87
*/
98

10-
window.axios = require('axios');
9+
window.axios = require("axios");
1110

12-
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
11+
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
1312

1413
/**
1514
* Next we will register the CSRF Token as a common header with Axios so that
@@ -20,9 +19,11 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
2019
let token = document.head.querySelector('meta[name="csrf-token"]');
2120

2221
if (token) {
23-
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
22+
window.axios.defaults.headers.common["X-CSRF-TOKEN"] = token.content;
2423
} else {
25-
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
24+
console.error(
25+
"CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"
26+
);
2627
}
2728

2829
/**

0 commit comments

Comments
 (0)