Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Restore v2 layout in dev.
James Colef7c01e6821dc
diff --git a/app/Http/Middleware/SecureHeaders.php b/app/Http/Middleware/SecureHeaders.phpindex 143f17a6b7..2633f23510 100644--- a/app/Http/Middleware/SecureHeaders.php+++ b/app/Http/Middleware/SecureHeaders.php@@ -70,16 +70,17 @@ class SecureHeaders// overrule in development modeif (true === config('firefly.is_local_dev')) {+ $ip = '192.168.96.165';$csp = ["default-src 'none'","object-src 'none'",sprintf("script-src 'unsafe-eval' 'strict-dynamic' 'nonce-%1s'", $nonce),// sprintf("style-src 'self' 'nonce-%1s' https://10.0.0.15:5173/", $nonce), // safe variant- "style-src 'self' 'unsafe-inline' https://10.0.0.15:5173/", // unsafe variant+ sprintf("style-src 'self' 'unsafe-inline' https://%s:5173/", $ip), // unsafe variant"base-uri 'self'","form-action 'self'",- "font-src 'self' data: https://10.0.0.15:5173/",- sprintf("connect-src 'self' %s https://10.0.0.15:5173/ wss://10.0.0.15:5173/", $trackingScriptSrc),+ sprintf("font-src 'self' data: https://%s:5173/", $ip),+ sprintf('connect-src \'self\' %1$s https://%2$s:5173/ wss://%2$s:5173/', $trackingScriptSrc, $ip),sprintf("img-src 'self' data: 'nonce-%1s'", $nonce),"manifest-src 'self'",];diff --git a/package-lock.json b/package-lock.jsonindex e1269ec585..ccd735cc65 100644--- a/package-lock.json+++ b/package-lock.json@@ -4,6 +4,7 @@"requires": true,"packages": {"": {+ "name": "firefly-iii","hasInstallScript": true,"workspaces": ["resources/assets/v1",diff --git a/patches/admin-lte+4.0.0-rc6.patch b/patches/admin-lte+4.0.0-rc7.patchsimilarity index 100%rename from patches/admin-lte+4.0.0-rc6.patchrename to patches/admin-lte+4.0.0-rc7.patchdiff --git a/resources/assets/v2/vite.config.js b/resources/assets/v2/vite.config.jsindex 79b2feae6d..b203d01096 100644--- a/resources/assets/v2/vite.config.js+++ b/resources/assets/v2/vite.config.js@@ -23,8 +23,6 @@ import laravel from 'laravel-vite-plugin';import manifestSRI from 'vite-plugin-manifest-sri';import * as fs from "fs";-const host = '127.0.0.1';-function manualChunks(id) {if (id.includes('node_modules')) {return 'vendor';@@ -84,7 +82,7 @@ export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {server: {cors: true,// make sure this IP matches the IP of the dev machine.- origin: 'https://192.168.96.162:5173',+ origin: 'https://192.168.96.165:5173',watch: {usePolling: true,},