Skip to content

Commit fddde15

Browse files
authored
Update tailwind config (#110)
* update npm dependencies * update notifications template * Apply refactoring * update code documentation * Remove unused class and fix assets url * remove title on smiley notification * remove demo config key * update tailwind config * build assets
1 parent 3144172 commit fddde15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2391
-12756
lines changed
File renamed without changes.
File renamed without changes.

license.md renamed to LICENCE.md

File renamed without changes.

README.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ composer dump-autoload
5656
3. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error
5757
4. Include notify partial to your master layout `@include('notify::components.notify')`
5858

59-
If you are on Laravel 7 or greater, you can use the tag syntax.
59+
If you are on Laravel 8 or greater, you can use the tag syntax.
6060

6161
```html
6262
<x:notify-messages />
@@ -87,9 +87,7 @@ A complete example:
8787
<body>
8888
8989
90-
@include('notify::messages')
91-
// Laravel 7 or greater
92-
<x:notify-messages />
90+
<x-notify::notify />
9391
@notifyJs
9492
</body>
9593
</html>
@@ -189,11 +187,11 @@ The example above shows the config for two preset notifications: 'user-updated'
189187

190188
## Change log
191189

192-
Please see the [changelog](changelog.md) for more information on what has changed recently.
190+
Please see the [changelog](CHANGELOG.md) for more information on what has changed recently.
193191

194192
## Contributing
195193

196-
Please see [contributing.md](contributing.md) for details and a todolist.
194+
Please see [contributing.md](CONTRIBUTING.md) for details and a todolist.
197195

198196
## Security
199197

@@ -204,27 +202,14 @@ If you discover any security related issues, please email author email instead o
204202
- [Arthur Monney][link-author]
205203
- [All Contributors][link-contributors]
206204

207-
## Donate :heart:
208-
209-
If you use and enjoy Laravel Notify you can encourage the author by
210-
211-
* [Donating today](https://www.paypal.com/paypalme/jvquilichini?locale.x=fr_FR)!.
212-
* Star the project :star:.
213-
214-
### Donors list:
215-
216-
1. **[Charlie J](https://github.com/Chazza)** - (10,00 $ USD) - `Donation made with love by Charlie from United Kingdom` - 9 October 2020
217-
218205
## License
219206

220-
license. Please see the [license file](license.md) for more information.
207+
license. Please see the [license file](LICENCE.md) for more information.
221208

222209
[ico-version]: https://img.shields.io/packagist/v/mckenziearts/laravel-notify.svg?style=flat-square
223210
[ico-downloads]: https://img.shields.io/packagist/dt/mckenziearts/laravel-notify.svg?style=flat-square
224-
[ico-travis]: https://img.shields.io/travis/mckenziearts/laravel-notify/master.svg?style=flat-square
225211

226212
[link-packagist]: https://packagist.org/packages/mckenziearts/laravel-notify
227213
[link-downloads]: https://packagist.org/packages/mckenziearts/laravel-notify
228-
[link-travis]: https://travis-ci.org/mckenziearts/laravel-notify
229-
[link-author]: https://arthurmonney.me
214+
[link-author]: https://twitter.com/MonneyArthur
230215
[link-contributors]: ../../contributors

composer.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
{
22
"name": "mckenziearts/laravel-notify",
33
"description": "Flexible flash notifications for Laravel",
4+
"keywords": ["Laravel", "laravel-notify", "notification"],
45
"license": "MIT",
6+
"support": {
7+
"issues": "https://github.com/mckenziearts/laravel-notify/issues",
8+
"source": "https://github.com/mckenziearts/laravel-notify"
9+
},
510
"authors": [
611
{
712
"name": "Arthur Monney",
8-
"email": "[email protected]",
9-
"homepage": "https://twitter.com/MonneyArthur",
10-
"role": "Developer"
13+
"email": "[email protected]"
1114
}
1215
],
13-
"homepage": "https://github.com/mckenziearts/laravel-notify",
14-
"keywords": [
15-
"Laravel",
16-
"laravel-notify",
17-
"notification"
18-
],
1916
"require": {
2017
"php": "~8.0",
2118
"illuminate/support": "^8.0|^9.0|^10.0"

config/notify.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@
1515

1616
'theme' => env('NOTIFY_THEME', 'light'),
1717

18-
/*
19-
|--------------------------------------------------------------------------
20-
| Demo URL
21-
|--------------------------------------------------------------------------
22-
|
23-
| if true you can access to the demo documentation of the notify package
24-
| here: http://localhost:8000/notify/demo, by default is true
25-
|
26-
*/
27-
28-
'demo' => true,
29-
3018
/*
3119
|--------------------------------------------------------------------------
3220
| Notification timeout

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
"hot": "mix watch --hot",
88
"production": "mix --production"
99
},
10-
"devDependencies": {
11-
"cross-env": "^5.1",
12-
"resolve-url-loader": "^2.3.1",
13-
"vue-template-compiler": "^2.6.10"
14-
},
1510
"dependencies": {
16-
"alpinejs": "^2.8.1",
17-
"autoprefixer": "^10.2.6",
18-
"laravel-mix": "^6.0.19",
19-
"postcss": "^8.3.0",
20-
"tailwindcss": "^2.1.2"
11+
"alpinejs": "^3.12.0"
12+
},
13+
"devDependencies": {
14+
"autoprefixer": "^10.4.14",
15+
"laravel-mix": "^6.0.49",
16+
"postcss": "^8.4.21",
17+
"tailwindcss": "^3.2.7"
2118
}
2219
}

postcss.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
6+
},
7+
}

0 commit comments

Comments
 (0)