From ad58b7a1e66e723bf1774d1ae16683d61eb6b07e Mon Sep 17 00:00:00 2001 From: 3x1 Date: Tue, 6 Sep 2022 12:00:17 +0200 Subject: [PATCH] =?UTF-8?q?first=20commit=20=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE.md | 9 ++++++++ README.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ composer.json | 29 +++++++++++++++++++++---- module.json | 12 ++++++++-- package.json | 21 ------------------ webpack.mix.js | 14 ------------ 6 files changed, 103 insertions(+), 41 deletions(-) create mode 100644 LICENSE.md create mode 100644 README.md delete mode 100644 package.json delete mode 100644 webpack.mix.js diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..780778d --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2022 info@3x1.io + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c7e6731 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# VILT Notifications Module + +Notifications Module with multi channels and vendors like FCM / Pusher + +## Install + +```bash +composer require queents/notifications-module +``` +Add Module to `modules_statuses.json` if not exists + +```json +{ + "Notifications": true +} +``` + +```bash +php artisan notifications:install +``` + +Make a migration + +```bash +php artisan migrate +``` + +Publish Assets + +```bash +npm i & npm run build +``` + +OR + +```bash +yarn & yarn build +``` + +## Support + +you can join our discord server to get support [VILT Admin](https://discord.gg/HUNYbgKDdx) + +## Docs + +look to the new docs of v4.00 on my website [Docs](https://vilt.3x1.io/docs/) + +## Changelog + +Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. + +## Credits + +- [Queen Tech Solutions](https://github.com/queents) + +## License + +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. + diff --git a/composer.json b/composer.json index bc1c2ca..ad3b95f 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,33 @@ { - "name": "nwidart/notifications", - "description": "", + "name": "queents/notifications-module", + "description": "VILT Notifications Module with multi channels and vendors like FCM / Pusher", + "keywords": [ + "laravel", + "notifications", + "laravel fcm", + "laravel pusher", + "ui", + "vilt-admin", + "Vilt stack" + ], + "type": "laravel-module", + "homepage": "https://www.queentechsolutions.net", + "license": "MIT", "authors": [ { - "name": "Nicolas Widart", - "email": "n.widart@gmail.com" + "name": "Fady Mondy", + "email": "info@3x1.io", + "role": "Senior Fullstack developer" } ], + "require": { + "queents/vilt": "^1.0", + "kreait/firebase-php": "6.3.1", + "kreait/firebase-tokens": "3.0", + "laravel-notification-channels/discord": "^1.3", + "laravel-notification-channels/fcm": "^2.4", + "laravel/slack-notification-channel": "^2.4" + }, "extra": { "laravel": { "providers": [], diff --git a/module.json b/module.json index bb7346b..f667a32 100644 --- a/module.json +++ b/module.json @@ -1,8 +1,16 @@ { "name": "Notifications", "alias": "notifications", - "description": "", - "keywords": [], + "description": "VILT Notifications Module with multi channels and vendors like FCM / Pusher", + "keywords": [ + "laravel", + "notifications", + "laravel fcm", + "laravel pusher", + "ui", + "vilt-admin", + "Vilt stack" + ], "priority": 1, "providers": [ "Modules\\Notifications\\Providers\\NotificationsServiceProvider" diff --git a/package.json b/package.json deleted file mode 100644 index 7303146..0000000 --- a/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "private": true, - "scripts": { - "dev": "npm run development", - "development": "mix", - "watch": "mix watch", - "watch-poll": "mix watch -- --watch-options-poll=1000", - "hot": "mix watch --hot", - "prod": "npm run production", - "production": "mix --production" - }, - "devDependencies": { - "axios": "^0.21.4", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "laravel-mix": "^6.0.31", - "laravel-mix-merge-manifest": "^2.0.0", - "lodash": "^4.17.21", - "postcss": "^8.3.7" - } -} diff --git a/webpack.mix.js b/webpack.mix.js deleted file mode 100644 index 4f373ed..0000000 --- a/webpack.mix.js +++ /dev/null @@ -1,14 +0,0 @@ -const dotenvExpand = require('dotenv-expand'); -dotenvExpand(require('dotenv').config({ path: '../../.env'/*, debug: true*/})); - -const mix = require('laravel-mix'); -require('laravel-mix-merge-manifest'); - -mix.setPublicPath('../../public').mergeManifest(); - -mix.js(__dirname + '/Resources/assets/js/app.js', 'js/notifications.js') - .sass( __dirname + '/Resources/assets/sass/app.scss', 'css/notifications.css'); - -if (mix.inProduction()) { - mix.version(); -}