From c9160cabc5bfcc45696029e9c727bdad956a691e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 14:09:13 +0100 Subject: [PATCH 1/6] Update version numbers and fix layout in subscription views --- config/sentry.php | 2 +- config/version.php | 2 +- resources/views/auth/verify-email.blade.php | 10 +-- resources/views/layouts/boarding.blade.php | 2 +- .../livewire/subscription/index.blade.php | 68 ++++++++++--------- versions.json | 2 +- 6 files changed, 44 insertions(+), 42 deletions(-) diff --git a/config/sentry.php b/config/sentry.php index d7469ecfc..00613c115 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.242', + 'release' => '4.0.0-beta.243', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index f67327b64..a16c004bf 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ -
-
+ +
+

Verification Email Sent


To activate your account, please open the email and follow the @@ -8,5 +8,5 @@
-
- + + diff --git a/resources/views/layouts/boarding.blade.php b/resources/views/layouts/boarding.blade.php index f65e14a00..4a897ff2f 100644 --- a/resources/views/layouts/boarding.blade.php +++ b/resources/views/layouts/boarding.blade.php @@ -1,7 +1,7 @@ @extends('layouts.base') @section('body')
- {{ $slot }} + {{ $slot }}
@parent @endsection diff --git a/resources/views/livewire/subscription/index.blade.php b/resources/views/livewire/subscription/index.blade.php index 227b94ef7..4c2a03374 100644 --- a/resources/views/livewire/subscription/index.blade.php +++ b/resources/views/livewire/subscription/index.blade.php @@ -1,38 +1,40 @@ -@if ($settings->is_resale_license_active) - @if (auth()->user()->isAdminFromSession()) -
-
-

Choose a Plan

- @if (subscriptionProvider() === 'stripe' && $alreadySubscribed) - Manage My Subscription +
+ @if ($settings->is_resale_license_active) + @if (auth()->user()->isAdminFromSession()) +
+
+

Choose a Plan

+ @if (subscriptionProvider() === 'stripe' && $alreadySubscribed) + Manage My Subscription + @endif +
+ @if (request()->query->get('cancelled')) +
+ + + + Something went wrong with your subscription. Please try again or contact + support. +
+ @endif + + @if (config('subscription.provider') !== null) + @endif
- @if (request()->query->get('cancelled')) -
- - - - Something went wrong with your subscription. Please try again or contact - support. + @else +
+
+

Subscription

- @endif - - @if (config('subscription.provider') !== null) - - @endif -
- @else -
-
-

Subscription

+
You are not an admin or have been removed from this team. If this does not make sense, please contact + us.
-
You are not an admin or have been removed from this team. If this does not make sense, please contact - us.
-
+ @endif + @else +
Resale license is not active. Please contact your instance admin.
@endif -@else -
Resale license is not active. Please contact your instance admin.
-@endif +
diff --git a/versions.json b/versions.json index bcc5d1414..fda35b876 100644 --- a/versions.json +++ b/versions.json @@ -4,7 +4,7 @@ "version": "3.12.36" }, "v4": { - "version": "4.0.0-beta.242" + "version": "4.0.0-beta.243" } } } From 37333f7fbec972b4f6cba2d7af2d6afda1ca21d6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 14:23:32 +0100 Subject: [PATCH 2/6] 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') --}}