Skip to content

Commit

Permalink
feat: manage contact tasks (monicahq/chandler#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored May 16, 2022
1 parent b86ca32 commit d576eed
Show file tree
Hide file tree
Showing 538 changed files with 3,558 additions and 2,086 deletions.
2 changes: 0 additions & 2 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
preset: laravel
version: 8
enabled:
- length_ordered_imports
- fully_qualified_strict_types
disabled:
- alpha_ordered_imports
- no_useless_return
finder:
not-name:
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/SetupApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Console\Commands;

use MeiliSearch\Client;
use Illuminate\Console\Command;
use MeiliSearch\Client;

class SetupApplication extends Command
{
Expand Down
16 changes: 8 additions & 8 deletions app/Console/Commands/SetupDummyAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace App\Console\Commands;

use Carbon\Carbon;
use App\Contact\ManageContact\Services\CreateContact;
use App\Contact\ManageContactImportantDates\Services\CreateContactImportantDate;
use App\Contact\ManageNotes\Services\CreateNote;
use App\Models\Contact;
use App\Models\ContactImportantDate;
use App\Models\User;
use App\Models\Vault;
use App\Models\Contact;
use App\Settings\CreateAccount\Services\CreateAccount;
use App\Vault\ManageVault\Services\CreateVault;
use Carbon\Carbon;
use Faker\Factory as Faker;
use Illuminate\Console\Command;
use App\Models\ContactImportantDate;
use App\Vault\ManageVault\Services\CreateVault;
use App\Contact\ManageNotes\Services\CreateNote;
use App\Contact\ManageContact\Services\CreateContact;
use App\Settings\CreateAccount\Services\CreateAccount;
use App\Contact\ManageContactImportantDates\Services\CreateContactImportantDate;

class SetupDummyAccount extends Command
{
Expand Down
8 changes: 4 additions & 4 deletions app/Console/Commands/TestReminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace App\Console\Commands;

use App\Contact\ManageReminders\Services\RescheduleContactReminderForChannel;
use App\Jobs\Notifications\SendEmailNotification;
use App\Models\UserNotificationChannel;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\App;
use App\Models\UserNotificationChannel;
use App\Jobs\Notifications\SendEmailNotification;
use App\Contact\ManageReminders\Services\RescheduleContactReminderForChannel;
use Illuminate\Support\Facades\DB;

class TestReminders extends Command
{
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Console;

use App\Contact\ManageReminders\Jobs\ProcessScheduledContactReminders;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Contact\ManageReminders\Jobs\ProcessScheduledContactReminders;

class Kernel extends ConsoleKernel
{
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Exceptions;

use Throwable;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;

class Handler extends ExceptionHandler
{
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/AuditLogHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Helpers;

use App\Models\AuditLog;
use App\Models\Contact;
use App\Models\User;
use App\Models\Vault;
use App\Models\Contact;
use App\Models\AuditLog;

class AuditLogHelper
{
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/ContactReminderHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Helpers;

use Carbon\Carbon;
use App\Models\User;
use App\Models\ContactReminder;
use App\Models\User;
use Carbon\Carbon;

class ContactReminderHelper
{
Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/DateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Helpers;

use Carbon\Carbon;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Support\Collection;

class DateHelper
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/ImportantDateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Helpers;

use Carbon\Carbon;
use App\Models\User;
use App\Models\ContactImportantDate;
use App\Models\User;
use Carbon\Carbon;

class ImportantDateHelper
{
Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/NameHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Helpers;

use App\Models\User;
use App\Models\Contact;
use App\Models\User;

class NameHelper
{
Expand Down
12 changes: 6 additions & 6 deletions app/Http/Controllers/Auth/AcceptInvitationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App\Http\Controllers\Auth;

use App\Models\User;
use Inertia\Inertia;
use Illuminate\Http\Request;
use Illuminate\Validation\Rules;
use App\Http\Controllers\Auth\ViewHelpers\AcceptInvitationShowViewHelper;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use App\Models\User;
use App\Settings\ManageUsers\Services\AcceptInvitation;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use App\Http\Controllers\Auth\ViewHelpers\AcceptInvitationShowViewHelper;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rules;
use Inertia\Inertia;

class AcceptInvitationController extends Controller
{
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/Auth/AuthenticatedSessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Http\Request;
use App\Helpers\WallpaperHelper;
use App\Http\Controllers\Controller;
use App\Http\Requests\Auth\LoginRequest;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use App\Providers\RouteServiceProvider;
use App\Http\Requests\Auth\LoginRequest;
use Inertia\Inertia;

class AuthenticatedSessionController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Auth/ConfirmablePasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;

class ConfirmablePasswordController extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Http\Controllers\Auth;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;

class EmailVerificationNotificationController extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Http\Request;
use Inertia\Inertia;

class EmailVerificationPromptController extends Controller
{
Expand Down
10 changes: 5 additions & 5 deletions app/Http/Controllers/Auth/NewPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Validation\Rules;
use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Support\Str;
use Illuminate\Validation\Rules;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;

class NewPasswordController extends Controller
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/PasswordResetLinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
use Illuminate\Validation\ValidationException;
use Inertia\Inertia;

class PasswordResetLinkController extends Controller
{
Expand Down
10 changes: 5 additions & 5 deletions app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace App\Http\Controllers\Auth;

use Inertia\Inertia;
use Illuminate\Http\Request;
use Illuminate\Validation\Rules;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\Events\Registered;
use App\Providers\RouteServiceProvider;
use App\Settings\CreateAccount\Services\CreateAccount;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rules;
use Inertia\Inertia;

class RegisteredUserController extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/VerifyEmailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\Verified;
use App\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\Verified;
use Illuminate\Foundation\Auth\EmailVerificationRequest;

class VerifyEmailController extends Controller
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
{
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace App\Http;

use App\Http\Middleware\CheckVaultAccess;
use App\Http\Middleware\CheckContactAccess;
use App\Http\Middleware\CheckAdministratorPrivilege;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use App\Http\Middleware\CheckContactAccess;
use App\Http\Middleware\CheckVaultAccess;
use App\Http\Middleware\CheckVaultPermissionAtLeastEditor;
use App\Http\Middleware\CheckVaultPermissionAtLeastManager;
use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/CheckVaultAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

class CheckVaultAccess
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/CheckVaultPermissionAtLeastEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

class CheckVaultPermissionAtLeastEditor
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/CheckVaultPermissionAtLeastManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

class CheckVaultPermissionAtLeastManager
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Http\Middleware;

use Inertia\Middleware;
use Illuminate\Http\Request;
use Inertia\Middleware;

class HandleInertiaRequests extends Middleware
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Http\Middleware;

use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Providers\RouteServiceProvider;

class RedirectIfAuthenticated
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;

class TrustProxies extends Middleware
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Requests/Auth/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace App\Http\Requests\Auth;

use Illuminate\Support\Str;
use Illuminate\Auth\Events\Lockout;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;

class LoginRequest extends FormRequest
Expand Down
Loading

0 comments on commit d576eed

Please sign in to comment.