From 37333f7fbec972b4f6cba2d7af2d6afda1ca21d6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 14:23:32 +0100 Subject: [PATCH] fix: two factor --- composer.json | 1 - composer.lock | 60 +------------------ config/wire-elements-modal.php | 52 ---------------- resources/js/app.js | 1 - .../views/auth/two-factor-challenge.blade.php | 36 +++++------ resources/views/layouts/base.blade.php | 1 - resources/views/layouts/simple.blade.php | 4 +- tailwind.config.js | 1 - 8 files changed, 18 insertions(+), 138 deletions(-) delete mode 100644 config/wire-elements-modal.php diff --git a/composer.json b/composer.json index 1624e1390..b57263534 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,6 @@ "stripe/stripe-php": "^12.0", "symfony/yaml": "^6.2", "visus/cuid2": "^2.0.0", - "wire-elements/modal": "^2.0", "yosymfony/toml": "^1.0" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 1c52be3ab..91613ec5f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9bdaf702cdd870434444f8937a816fdb", + "content-hash": "e095b8a9eb22df2943cbc3e9649ff9e8", "packages": [ { "name": "amphp/amp", @@ -11859,64 +11859,6 @@ }, "time": "2022-06-03T18:03:27+00:00" }, - { - "name": "wire-elements/modal", - "version": "2.0.9", - "source": { - "type": "git", - "url": "https://github.com/wire-elements/modal.git", - "reference": "899b05e313403669aa8a359db71a066246184355" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/wire-elements/modal/zipball/899b05e313403669aa8a359db71a066246184355", - "reference": "899b05e313403669aa8a359db71a066246184355", - "shasum": "" - }, - "require": { - "livewire/livewire": "^3.2.3", - "php": "^8.1", - "spatie/laravel-package-tools": "^1.9" - }, - "require-dev": { - "orchestra/testbench": "^8.5", - "phpunit/phpunit": "^9.5" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "LivewireUI\\Modal\\LivewireModalServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "LivewireUI\\Modal\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Philo Hermans", - "email": "me@philohermans.com" - } - ], - "description": "Laravel Livewire modal component", - "keywords": [ - "laravel", - "livewire", - "modal" - ], - "support": { - "issues": "https://github.com/wire-elements/modal/issues", - "source": "https://github.com/wire-elements/modal/tree/2.0.9" - }, - "time": "2023-12-08T09:31:14+00:00" - }, { "name": "yosymfony/parser-utils", "version": "v2.0.0", diff --git a/config/wire-elements-modal.php b/config/wire-elements-modal.php deleted file mode 100644 index b0bf5ff03..000000000 --- a/config/wire-elements-modal.php +++ /dev/null @@ -1,52 +0,0 @@ - false, - - /* - |-------------------------------------------------------------------------- - | Include JS - |-------------------------------------------------------------------------- - | - | Livewire UI will inject the required Javascript in your blade template. - | If you want to bundle the required Javascript you can set this to false - | and add `require('vendor/wire-elements/modal/resources/js/modal');` - | to your script bundler like webpack. - | - */ - 'include_js' => false, - - /* - |-------------------------------------------------------------------------- - | Modal Component Defaults - |-------------------------------------------------------------------------- - | - | Configure the default properties for a modal component. - | - | Supported modal_max_width - | 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl' - */ - 'component_defaults' => [ - 'modal_max_width' => '7xl', - - 'close_modal_on_click_away' => true, - - 'close_modal_on_escape' => true, - - 'close_modal_on_escape_is_forceful' => true, - - 'dispatch_close_event' => false, - - 'destroy_on_close' => false, - ], -]; diff --git a/resources/js/app.js b/resources/js/app.js index a49c95e97..47313863b 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,6 +1,5 @@ import { createApp } from "vue"; import MagicBar from "./components/MagicBar.vue"; -import "../../vendor/wire-elements/modal/resources/js/modal"; const app = createApp({}); app.component("magic-bar", MagicBar); diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php index 7ba75e80a..244487eb8 100644 --- a/resources/views/auth/two-factor-challenge.blade.php +++ b/resources/views/auth/two-factor-challenge.blade.php @@ -3,31 +3,25 @@
Coolify
- + {{-- --}}
-
+
@csrf - - +
{{ __('auth.login') }} @if ($errors->any()) diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php index cd4e6e258..1f02fd95c 100644 --- a/resources/views/layouts/base.blade.php +++ b/resources/views/layouts/base.blade.php @@ -38,7 +38,6 @@ @section('body') - {{-- @livewire('wire-elements-modal') --}}