Skip to content

Commit

Permalink
Update tailwind config (#110)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mckenziearts committed Mar 28, 2023
1 parent 3144172 commit fddde15
Show file tree
Hide file tree
Showing 44 changed files with 2,391 additions and 12,756 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $ composer dump-autoload
3. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error
4. Include notify partial to your master layout `@include('notify::components.notify')`

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

```html
<x:notify-messages />
Expand Down Expand Up @@ -87,9 +87,7 @@ A complete example:
<body>
@include('notify::messages')
// Laravel 7 or greater
<x:notify-messages />
<x-notify::notify />
@notifyJs
</body>
</html>
Expand Down Expand Up @@ -189,11 +187,11 @@ The example above shows the config for two preset notifications: 'user-updated'

## Change log

Please see the [changelog](changelog.md) for more information on what has changed recently.
Please see the [changelog](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [contributing.md](contributing.md) for details and a todolist.
Please see [contributing.md](CONTRIBUTING.md) for details and a todolist.

## Security

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

## Donate :heart:

If you use and enjoy Laravel Notify you can encourage the author by

* [Donating today](https://www.paypal.com/paypalme/jvquilichini?locale.x=fr_FR)!.
* Star the project :star:.

### Donors list:

1. **[Charlie J](https://github.com/Chazza)** - (10,00 $ USD) - `Donation made with love by Charlie from United Kingdom` - 9 October 2020

## License

license. Please see the [license file](license.md) for more information.
license. Please see the [license file](LICENCE.md) for more information.

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

[link-packagist]: https://packagist.org/packages/mckenziearts/laravel-notify
[link-downloads]: https://packagist.org/packages/mckenziearts/laravel-notify
[link-travis]: https://travis-ci.org/mckenziearts/laravel-notify
[link-author]: https://arthurmonney.me
[link-author]: https://twitter.com/MonneyArthur
[link-contributors]: ../../contributors
15 changes: 6 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"name": "mckenziearts/laravel-notify",
"description": "Flexible flash notifications for Laravel",
"keywords": ["Laravel", "laravel-notify", "notification"],
"license": "MIT",
"support": {
"issues": "https://github.com/mckenziearts/laravel-notify/issues",
"source": "https://github.com/mckenziearts/laravel-notify"
},
"authors": [
{
"name": "Arthur Monney",
"email": "monneylobe@gmail.com",
"homepage": "https://twitter.com/MonneyArthur",
"role": "Developer"
"email": "monneylobe@gmail.com"
}
],
"homepage": "https://github.com/mckenziearts/laravel-notify",
"keywords": [
"Laravel",
"laravel-notify",
"notification"
],
"require": {
"php": "~8.0",
"illuminate/support": "^8.0|^9.0|^10.0"
Expand Down
12 changes: 0 additions & 12 deletions config/notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@

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

/*
|--------------------------------------------------------------------------
| Demo URL
|--------------------------------------------------------------------------
|
| if true you can access to the demo documentation of the notify package
| here: http://localhost:8000/notify/demo, by default is true
|
*/

'demo' => true,

/*
|--------------------------------------------------------------------------
| Notification timeout
Expand Down
17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@
"hot": "mix watch --hot",
"production": "mix --production"
},
"devDependencies": {
"cross-env": "^5.1",
"resolve-url-loader": "^2.3.1",
"vue-template-compiler": "^2.6.10"
},
"dependencies": {
"alpinejs": "^2.8.1",
"autoprefixer": "^10.2.6",
"laravel-mix": "^6.0.19",
"postcss": "^8.3.0",
"tailwindcss": "^2.1.2"
"alpinejs": "^3.12.0"
},
"devDependencies": {
"autoprefixer": "^10.4.14",
"laravel-mix": "^6.0.49",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7"
}
}
7 changes: 7 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
},
}

0 comments on commit fddde15

Please sign in to comment.