Skip to content

Commit

Permalink
add data for circle contacts app
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Mar 30, 2024
1 parent f391537 commit d6453c5
Show file tree
Hide file tree
Showing 26 changed files with 307 additions and 13 deletions.
1 change: 1 addition & 0 deletions Modules/CircleContacts/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [3x1io]
Empty file.
63 changes: 63 additions & 0 deletions Modules/CircleContacts/App/Console/CircleContactsInstall.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

namespace Modules\CircleContacts\App\Console;

use Illuminate\Console\Command;
use Modules\CircleApps\App\Models\App;
use TomatoPHP\ConsoleHelpers\Traits\RunCommand;

class CircleContactsInstall extends Command
{
use RunCommand;

/**
* The name and signature of the console command.
*
* @var string
*/
protected $name = 'circle-contacts:install';

/**
* The console command description.
*
* @var string
*/
protected $description = 'install package and publish assets';

public function __construct()
{
parent::__construct();
}


/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->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 = "[email protected]";
$app->save();
}
$this->callSilent('optimize:clear');
$this->artisanCommand(["migrate"]);
$this->artisanCommand(["optimize:clear"]);
$this->info('Circle Contacts App installed successfully.');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -48,7 +49,9 @@ public function register(): void
*/
protected function registerCommands(): void
{
// $this->commands([]);
$this->commands([
CircleContactsInstall::class
]);
}

/**
Expand Down
12 changes: 7 additions & 5 deletions Modules/CircleContacts/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
![Screenshot](https://github.com/tomatophp/circle-contacts/blob/master/art/cover.png)

# Circle Contacts

Manage your contacts and customers from your profile

## Installation

```bash
composer require tomatophp/CircleContacts
composer require tomatophp/circle-contacts-module
```

## Support
Expand All @@ -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.
Binary file added Modules/CircleContacts/art/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Modules/CircleContacts/art/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 23 additions & 4 deletions Modules/CircleContacts/composer.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
"name": "Fady Mondy",
"email": "[email protected]"
}
],
"extra": {
Expand All @@ -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"
}
}
2 changes: 0 additions & 2 deletions bootstrap/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
*
!.gitignore
13 changes: 13 additions & 0 deletions bootstrap/cache/circle_apps_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/circle_contacts_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/circle_x_o_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_category_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_cms_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_crm_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_forms_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_locations_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_menus_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_notifications_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_roles_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_sections_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_settings_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_support_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider',
),
'deferred' =>
array (
),
);
13 changes: 13 additions & 0 deletions bootstrap/cache/tomato_themes_module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php return array (
'providers' =>
array (
0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider',
),
'eager' =>
array (
0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider',
),
'deferred' =>
array (
),
);
Loading

0 comments on commit d6453c5

Please sign in to comment.