Skip to content

Firefly III: a personal finances manager

Remove references to old layout.

James Cole3f2bb074113b
diff --git a/.env.example b/.env.example
index f6c682c56c..db2e4fa872 100644
--- a/.env.example
+++ b/.env.example
@@ -287,12 +287,6 @@ PUSHER_ID=
DEMO_USERNAME=
DEMO_PASSWORD=
-#
-# The v2 layout is very experimental. If it breaks you get to keep both parts.
-# Be wary of data loss.
-#
-FIREFLY_III_LAYOUT=v1
-
#
# Please make sure this URL matches the external URL of your Firefly III installation.
# It is used to validate specific requests and to generate URLs in emails.
diff --git a/.env.testing b/.env.testing
index 2ca0859f2a..49ad43ebda 100644
--- a/.env.testing
+++ b/.env.testing
@@ -22,5 +22,4 @@ APP_NAME=FireflyIII
BROADCAST_DRIVER=log
QUEUE_DRIVER=sync
CACHE_PREFIX=firefly
-FIREFLY_III_LAYOUT=v1
APP_URL=http://localhost
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php
index d9bea17eef..f9e44be6c4 100644
--- a/app/Http/Controllers/Controller.php
+++ b/app/Http/Controllers/Controller.php
@@ -113,14 +113,6 @@ abstract class Controller extends BaseController
$authGuard = config('firefly.authentication_guard');
$logoutUrl = config('firefly.custom_logout_url');
- // overrule v2 layout back to v1.
-
- if ('true' === request()->get('force_default_layout') && 'v2' === config('view.layout')) {
- // config('view.layout','v1');
- Config::set('view.layout', 'v1');
- View::getFinder()->setPaths([realpath(base_path('resources/views'))]);
- }
-
View::share('authGuard', $authGuard);
View::share('logoutUrl', $logoutUrl);
diff --git a/config/view.php b/config/view.php
index a0eb9aa3b8..62e5a17e77 100644
--- a/config/view.php
+++ b/config/view.php
@@ -23,13 +23,6 @@
declare(strict_types=1);
use function Safe\realpath;
-$paths = [realpath(base_path('resources/views'))];
-if ('v2' === env('FIREFLY_III_LAYOUT')) {
- $paths = [
- realpath(base_path('resources/views/v2')),
- realpath(base_path('resources/views'))];
-}
-
return [
/*
|--------------------------------------------------------------------------
@@ -41,8 +34,7 @@ return [
| the usual Laravel view path has already been registered for you.
|
*/
- 'layout' => env('FIREFLY_III_LAYOUT', 'v1'),
- 'paths' => $paths,
+ 'paths' => [realpath(base_path('resources/views'))],
/*
|--------------------------------------------------------------------------
diff --git a/resources/assets/v3/sass/app.scss b/resources/assets/v3/sass/app.scss
index 2222c63b14..9447f8ba68 100644
--- a/resources/assets/v3/sass/app.scss
+++ b/resources/assets/v3/sass/app.scss
@@ -49,6 +49,8 @@ $success: #64b624; // original
$success: $success,
$font-size-base: $font-size-base
);
+@import "shepherd.js/dist/css/shepherd.css";
+
// for light mode, different money colors are used.
html[data-bs-theme="light"] .money-negative {
color: #993b1e !important;
@@ -71,7 +73,13 @@ html[data-bs-theme="dark"] .money-transfer {
color: #0bc1e5 !important;
}
-@import "shepherd.js/dist/css/shepherd.css";
+// some print rules
+@media print {
+ a[href]::after {
+ content: none !important;
+ }
+ * { box-shadow: none !important; }
+}
// custom Firefly III CSS
.general-chart-error {
diff --git a/resources/views/partials/debug-table.blade.php b/resources/views/partials/debug-table.blade.php
index 0031665f49..f3b044de51 100644
--- a/resources/views/partials/debug-table.blade.php
+++ b/resources/views/partials/debug-table.blade.php
@@ -79,10 +79,6 @@
<td>App environment</td>
<td>{{ config('app.env') }}, debug: {{ $app['debug'] }}</td>
</tr>
- <tr>
- <td>Layout</td>
- <td>{{ config('view.layout') }}</td>
- </tr>
<tr>
<td>Logging</td>
<td>{{ config('logging.level') }}, {{ config('logging.default') }} / {{ $app['audit_log_channel'] }}</td>