diff --git a/Modules/CircleContacts/.github/FUNDING.yml b/Modules/CircleContacts/.github/FUNDING.yml new file mode 100644 index 0000000..892ba05 --- /dev/null +++ b/Modules/CircleContacts/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [3x1io] diff --git a/Modules/CircleContacts/App/Console/.gitkeep b/Modules/CircleContacts/App/Console/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/CircleContacts/App/Console/CircleContactsInstall.php b/Modules/CircleContacts/App/Console/CircleContactsInstall.php new file mode 100644 index 0000000..44a4f11 --- /dev/null +++ b/Modules/CircleContacts/App/Console/CircleContactsInstall.php @@ -0,0 +1,63 @@ +info('Install App'); + $app = App::where('key', 'circle-contacts')->first(); + if(!$app){ + $app = new App(); + $app->key = 'circle-contacts'; + $app->name = 'Circle Contacts'; + $app->description = 'Manage your contacts and customers from your profile'; + $app->is_active = true; + $app->is_free = true; + $app->status = "active"; + $app->homepage = "https://www.github.com/tomatophp/circle-contacts"; + $app->github = "https://www.github.com/tomatophp/circle-contacts"; + $app->docs = "https://www.github.com/tomatophp/circle-contacts"; + $app->privacy = "https://www.github.com/tomatophp/circle-contacts"; + $app->faq = "https://www.github.com/tomatophp/circle-contacts"; + $app->email = "info@3x1.io"; + $app->save(); + } + $this->callSilent('optimize:clear'); + $this->artisanCommand(["migrate"]); + $this->artisanCommand(["optimize:clear"]); + $this->info('Circle Contacts App installed successfully.'); + } +} diff --git a/Modules/CircleContacts/App/Providers/CircleContactsServiceProvider.php b/Modules/CircleContacts/App/Providers/CircleContactsServiceProvider.php index 6ace35f..e6414e3 100644 --- a/Modules/CircleContacts/App/Providers/CircleContactsServiceProvider.php +++ b/Modules/CircleContacts/App/Providers/CircleContactsServiceProvider.php @@ -5,6 +5,7 @@ use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; use Modules\CircleApps\App\Facades\CircleAppsMenu; +use Modules\CircleContacts\App\Console\CircleContactsInstall; use TomatoPHP\TomatoAdmin\Services\Contracts\Menu; class CircleContactsServiceProvider extends ServiceProvider @@ -48,7 +49,9 @@ public function register(): void */ protected function registerCommands(): void { - // $this->commands([]); + $this->commands([ + CircleContactsInstall::class + ]); } /** diff --git a/Modules/CircleContacts/README.md b/Modules/CircleContacts/README.md index b51ec36..2ed8307 100644 --- a/Modules/CircleContacts/README.md +++ b/Modules/CircleContacts/README.md @@ -1,3 +1,5 @@ +![Screenshot](https://github.com/tomatophp/circle-contacts/blob/master/art/cover.png) + # Circle Contacts Manage your contacts and customers from your profile @@ -5,7 +7,7 @@ Manage your contacts and customers from your profile ## Installation ```bash -composer require tomatophp/CircleContacts +composer require tomatophp/circle-contacts-module ``` ## Support @@ -14,16 +16,16 @@ you can join our discord server to get support [TomatoPHP](https://discord.gg/Xq ## Docs -you can check docs of this package on [Docs](https://docs.tomatophp.com/plugins/tomato-themes) +you can check docs of this package on [Docs](https://www.github.com/tomatophp/circle-contacts) ## Changelog -Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. +Please see [CHANGELOG](https://www.github.com/tomatophp/circle-contacts/CHANGELOG.md) for more information on what has changed recently. ## Security -Please see [SECURITY](SECURITY.md) for more information about security. +Please see [SECURITY](https://www.github.com/tomatophp/circle-contacts/SECURITY.md) for more information about security. ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. +The MIT License (MIT). Please see [License File](https://www.github.com/tomatophp/circle-contacts/LICENSE.md) for more information. diff --git a/Modules/CircleContacts/art/cover.png b/Modules/CircleContacts/art/cover.png new file mode 100644 index 0000000..c5800ff Binary files /dev/null and b/Modules/CircleContacts/art/cover.png differ diff --git a/Modules/CircleContacts/art/logo.png b/Modules/CircleContacts/art/logo.png new file mode 100644 index 0000000..00b9858 Binary files /dev/null and b/Modules/CircleContacts/art/logo.png differ diff --git a/Modules/CircleContacts/composer.json b/Modules/CircleContacts/composer.json index e2d0915..776c901 100644 --- a/Modules/CircleContacts/composer.json +++ b/Modules/CircleContacts/composer.json @@ -1,10 +1,21 @@ { - "name": "nwidart/circlecontacts", - "description": "", + "name": "tomatophp/circle-contacts-module", + "type": "laravel-module", + "description": "Manage your contacts and customers from your profile", + "license": "MIT", + "keywords": [ + "laravel", + "module", + "contacts", + "customers", + "profile", + "circlexo", + "tomatophp" + ], "authors": [ { - "name": "Nicolas Widart", - "email": "n.widart@gmail.com" + "name": "Fady Mondy", + "email": "info@3x1.io" } ], "extra": { @@ -27,5 +38,13 @@ "psr-4": { "Modules\\CircleContacts\\Tests\\": "tests/" } + }, + "require": { + "php": "^8.1|^8.2", + "tomatophp/tomato-admin": "^1.2", + "tomatophp/tomato-plugins": "^1.2", + "tomatophp/console-helpers": "^1.1", + "joshbrw/laravel-module-installer": "^2.0", + "nwidart/laravel-modules": "^10.0" } } diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore index d6b7ef3..e69de29 100644 --- a/bootstrap/cache/.gitignore +++ b/bootstrap/cache/.gitignore @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/bootstrap/cache/circle_apps_module.php b/bootstrap/cache/circle_apps_module.php new file mode 100755 index 0000000..9280aee --- /dev/null +++ b/bootstrap/cache/circle_apps_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/circle_contacts_module.php b/bootstrap/cache/circle_contacts_module.php new file mode 100755 index 0000000..e0bc423 --- /dev/null +++ b/bootstrap/cache/circle_contacts_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/circle_x_o_module.php b/bootstrap/cache/circle_x_o_module.php new file mode 100755 index 0000000..a9bfcc1 --- /dev/null +++ b/bootstrap/cache/circle_x_o_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_category_module.php b/bootstrap/cache/tomato_category_module.php new file mode 100755 index 0000000..b8ad816 --- /dev/null +++ b/bootstrap/cache/tomato_category_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_cms_module.php b/bootstrap/cache/tomato_cms_module.php new file mode 100755 index 0000000..1f2d183 --- /dev/null +++ b/bootstrap/cache/tomato_cms_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_crm_module.php b/bootstrap/cache/tomato_crm_module.php new file mode 100755 index 0000000..f1b45c3 --- /dev/null +++ b/bootstrap/cache/tomato_crm_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_forms_module.php b/bootstrap/cache/tomato_forms_module.php new file mode 100755 index 0000000..fb57043 --- /dev/null +++ b/bootstrap/cache/tomato_forms_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_locations_module.php b/bootstrap/cache/tomato_locations_module.php new file mode 100755 index 0000000..30f4938 --- /dev/null +++ b/bootstrap/cache/tomato_locations_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_menus_module.php b/bootstrap/cache/tomato_menus_module.php new file mode 100755 index 0000000..0b4ad09 --- /dev/null +++ b/bootstrap/cache/tomato_menus_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_notifications_module.php b/bootstrap/cache/tomato_notifications_module.php new file mode 100755 index 0000000..c24e2cd --- /dev/null +++ b/bootstrap/cache/tomato_notifications_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_roles_module.php b/bootstrap/cache/tomato_roles_module.php new file mode 100755 index 0000000..3f6ceb5 --- /dev/null +++ b/bootstrap/cache/tomato_roles_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_sections_module.php b/bootstrap/cache/tomato_sections_module.php new file mode 100755 index 0000000..b702113 --- /dev/null +++ b/bootstrap/cache/tomato_sections_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_settings_module.php b/bootstrap/cache/tomato_settings_module.php new file mode 100755 index 0000000..cba4684 --- /dev/null +++ b/bootstrap/cache/tomato_settings_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_support_module.php b/bootstrap/cache/tomato_support_module.php new file mode 100755 index 0000000..6bf3ceb --- /dev/null +++ b/bootstrap/cache/tomato_support_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_themes_module.php b/bootstrap/cache/tomato_themes_module.php new file mode 100755 index 0000000..0b823ad --- /dev/null +++ b/bootstrap/cache/tomato_themes_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/bootstrap/cache/tomato_translations_module.php b/bootstrap/cache/tomato_translations_module.php new file mode 100755 index 0000000..635b8cc --- /dev/null +++ b/bootstrap/cache/tomato_translations_module.php @@ -0,0 +1,13 @@ + + array ( + 0 => 'Modules\\TomatoTranslations\\App\\Providers\\TomatoTranslationsServiceProvider', + ), + 'eager' => + array ( + 0 => 'Modules\\TomatoTranslations\\App\\Providers\\TomatoTranslationsServiceProvider', + ), + 'deferred' => + array ( + ), +); \ No newline at end of file diff --git a/modules_statuses.json b/modules_statuses.json index d14478b..0d296f4 100644 --- a/modules_statuses.json +++ b/modules_statuses.json @@ -15,4 +15,4 @@ "TomatoSections": true, "TomatoMenus": true, "CircleContacts": true -} \ No newline at end of file +}