From c38a3644c6806d763c90af055399de96b2354b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 15:05:21 +0200 Subject: [PATCH 01/11] vite laravel-vite-plugin --- package-lock.json | 756 +++++++++++++++++++++++++++++++++++++++++++++- package.json | 2 + 2 files changed, 743 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9597ffaf605d..1bbb71a8395e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "invoiceninja", + "name": "@invoiceninja/invoiceninja", "lockfileVersion": 2, "requires": true, "packages": { @@ -31,6 +31,8 @@ "@tailwindcss/aspect-ratio": "^0.4.2", "cypress": "^12.5.1", "laravel-mix-purgecss": "^6.0.0", + "laravel-vite-plugin": "^0.8.0", + "vite": "^4.4.9", "vue-template-compiler": "^2.6.14" } }, @@ -1646,6 +1648,358 @@ "node": ">=10.0.0" } }, + "node_modules/@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@fullhuman/postcss-purgecss": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@fullhuman/postcss-purgecss/-/postcss-purgecss-3.1.3.tgz", @@ -4574,6 +4928,43 @@ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==" }, + "node_modules/esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -6384,6 +6775,22 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, + "node_modules/laravel-vite-plugin": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-0.8.0.tgz", + "integrity": "sha512-6VjLI+azBpeK6rWBiKcb/En5GnTdYpL0U4zS8gXYvb2/VSq4mlau5H3NWpSktUDBMM1b97LLgICx5zevi8IY0w==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.0.5" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0" + } + }, "node_modules/launch-editor": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", @@ -6972,9 +7379,15 @@ } }, "node_modules/nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -7507,9 +7920,9 @@ } }, "node_modules/postcss": { - "version": "8.4.21", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", - "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "version": "8.4.29", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.29.tgz", + "integrity": "sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==", "funding": [ { "type": "opencollective", @@ -7518,10 +7931,14 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "nanoid": "^3.3.4", + "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -8673,6 +9090,22 @@ "inherits": "^2.0.1" } }, + "node_modules/rollup": { + "version": "3.28.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.1.tgz", + "integrity": "sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -10001,6 +10434,74 @@ "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", "dev": true }, + "node_modules/vite": { + "version": "4.4.9", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", + "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "dev": true, + "dependencies": { + "esbuild": "^0.18.10", + "postcss": "^8.4.27", + "rollup": "^3.27.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "@types/node": ">= 14", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.0.5.tgz", + "integrity": "sha512-kVZFDFWr0DxiHn6MuDVTQf7gnWIdETGlZh0hvTiMXzRN80vgF4PKbONSq8U1d0WtHsKaFODTQgJeakLacoPZEQ==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + }, + "peerDependencies": { + "vite": "^2 || ^3 || ^4" + } + }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -11795,6 +12296,160 @@ "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==" }, + "@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "dev": true, + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "dev": true, + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "dev": true, + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "dev": true, + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "dev": true, + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "dev": true, + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "dev": true, + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "dev": true, + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "dev": true, + "optional": true + }, "@fullhuman/postcss-purgecss": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@fullhuman/postcss-purgecss/-/postcss-purgecss-3.1.3.tgz", @@ -14120,6 +14775,36 @@ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==" }, + "esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "dev": true, + "requires": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + }, "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -15446,6 +16131,16 @@ "postcss-purgecss-laravel": "^2.0.0" } }, + "laravel-vite-plugin": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-0.8.0.tgz", + "integrity": "sha512-6VjLI+azBpeK6rWBiKcb/En5GnTdYpL0U4zS8gXYvb2/VSq4mlau5H3NWpSktUDBMM1b97LLgICx5zevi8IY0w==", + "dev": true, + "requires": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.0.5" + } + }, "launch-editor": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", @@ -15885,9 +16580,9 @@ } }, "nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" }, "negotiator": { "version": "0.6.3", @@ -16292,11 +16987,11 @@ } }, "postcss": { - "version": "8.4.21", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", - "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "version": "8.4.29", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.29.tgz", + "integrity": "sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==", "requires": { - "nanoid": "^3.3.4", + "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } @@ -17075,6 +17770,15 @@ "inherits": "^2.0.1" } }, + "rollup": { + "version": "3.28.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.1.tgz", + "integrity": "sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==", + "dev": true, + "requires": { + "fsevents": "~2.3.2" + } + }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -18053,6 +18757,28 @@ } } }, + "vite": { + "version": "4.4.9", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", + "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "dev": true, + "requires": { + "esbuild": "^0.18.10", + "fsevents": "~2.3.2", + "postcss": "^8.4.27", + "rollup": "^3.27.1" + } + }, + "vite-plugin-full-reload": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.0.5.tgz", + "integrity": "sha512-kVZFDFWr0DxiHn6MuDVTQf7gnWIdETGlZh0hvTiMXzRN80vgF4PKbONSq8U1d0WtHsKaFODTQgJeakLacoPZEQ==", + "dev": true, + "requires": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", diff --git a/package.json b/package.json index 06c9a26d602c..f5c8273783f5 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,8 @@ "@tailwindcss/aspect-ratio": "^0.4.2", "cypress": "^12.5.1", "laravel-mix-purgecss": "^6.0.0", + "laravel-vite-plugin": "^0.8.0", + "vite": "^4.4.9", "vue-template-compiler": "^2.6.14" }, "dependencies": { From 2f50ddbe3a73afdf4a720c97328ce233c12444fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 15:10:08 +0200 Subject: [PATCH 02/11] Migrate main JS and SCSS files --- vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vite.config.ts diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 000000000000..7f88db5f8e86 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,6 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [laravel(['resources/js/app.js', 'resources/sass/app.scss'])], +}); From 168bab8d998722eac63253031de5a641fe8ca93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 15:10:32 +0200 Subject: [PATCH 03/11] vite-plugin-static-copy --- package-lock.json | 58 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 59 insertions(+) diff --git a/package-lock.json b/package-lock.json index 1bbb71a8395e..f1466debb888 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "laravel-mix-purgecss": "^6.0.0", "laravel-vite-plugin": "^0.8.0", "vite": "^4.4.9", + "vite-plugin-static-copy": "^0.17.0", "vue-template-compiler": "^2.6.14" } }, @@ -10502,6 +10503,38 @@ "vite": "^2 || ^3 || ^4" } }, + "node_modules/vite-plugin-static-copy": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-0.17.0.tgz", + "integrity": "sha512-2HpNbHfDt8SDy393AGXh9llHkc8FJMQkI8s3T5WsH3SWLMO+f5cFIyPErl4yGKU9Uh3Vaqsd4lHZYTf042fQ2A==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.3", + "fast-glob": "^3.2.11", + "fs-extra": "^11.1.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/vite-plugin-static-copy/node_modules/fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -18779,6 +18812,31 @@ "picomatch": "^2.3.1" } }, + "vite-plugin-static-copy": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-0.17.0.tgz", + "integrity": "sha512-2HpNbHfDt8SDy393AGXh9llHkc8FJMQkI8s3T5WsH3SWLMO+f5cFIyPErl4yGKU9Uh3Vaqsd4lHZYTf042fQ2A==", + "dev": true, + "requires": { + "chokidar": "^3.5.3", + "fast-glob": "^3.2.11", + "fs-extra": "^11.1.0", + "picocolors": "^1.0.0" + }, + "dependencies": { + "fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } + } + }, "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", diff --git a/package.json b/package.json index f5c8273783f5..e34e8dea899f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "laravel-mix-purgecss": "^6.0.0", "laravel-vite-plugin": "^0.8.0", "vite": "^4.4.9", + "vite-plugin-static-copy": "^0.17.0", "vue-template-compiler": "^2.6.14" }, "dependencies": { From 3e01b46cc0194f0ad209615eba1b137e02857f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 15:25:20 +0200 Subject: [PATCH 04/11] Migrate files into vite.config.ts --- vite.config.ts | 64 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 7f88db5f8e86..66e3f520b4bc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,68 @@ import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; +import { viteStaticCopy } from 'vite-plugin-static-copy'; export default defineConfig({ - plugins: [laravel(['resources/js/app.js', 'resources/sass/app.scss'])], + plugins: [ + laravel([ + 'resources/js/app.js', + 'resources/sass/app.scss', + 'resources/js/clients/payment_methods/authorize-authorize-card.js', + 'resources/js/clients/payments/authorize-credit-card-payment.js', + 'resources/js/clients/payments/forte-credit-card-payment.js', + 'resources/js/clients/payments/forte-ach-payment.js', + 'resources/js/clients/payments/stripe-ach.js', + 'resources/js/clients/payments/stripe-klarna.js', + 'resources/js/clients/payments/stripe-bacs.js', + 'resources/js/clients/invoices/action-selectors.js', + 'resources/js/clients/purchase_orders/action-selectors.js', + 'resources/js/clients/purchase_orders/accept.js', + 'resources/js/clients/invoices/payment.js', + 'resources/js/clients/payments/stripe-sofort.js', + 'resources/js/clients/payments/stripe-alipay.js', + 'resources/js/clients/payments/checkout-credit-card.js', + 'resources/js/clients/quotes/action-selectors.js', + 'resources/js/clients/quotes/approve.js', + 'resources/js/clients/payments/stripe-credit-card.js', + 'resources/js/setup/setup.js', + 'node_modules/card-js/card-js.min.js', + 'resources/js/clients/shared/pdf.js', + 'resources/js/clients/shared/multiple-downloads.js', + 'resources/js/clients/linkify-urls.js', + 'resources/js/clients/payments/braintree-credit-card.js', + 'resources/js/clients/payments/braintree-paypal.js', + 'resources/js/clients/payments/wepay-credit-card.js', + 'resources/js/clients/payment_methods/wepay-bank-account.js', + 'resources/js/clients/payments/paytrace-credit-card.js', + 'resources/js/clients/payments/mollie-credit-card.js', + 'resources/js/clients/payments/eway-credit-card.js', + 'resources/js/clients/payment_methods/braintree-ach.js', + 'resources/js/clients/payments/square-credit-card.js', + 'resources/js/clients/statements/view.js', + 'resources/js/clients/payments/razorpay-aio.js', + 'resources/js/clients/payments/stripe-sepa.js', + 'resources/js/clients/payment_methods/authorize-checkout-card.js', + 'resources/js/clients/payments/stripe-giropay.js', + 'resources/js/clients/payments/stripe-acss.js', + 'resources/js/clients/payments/stripe-bancontact.js', + 'resources/js/clients/payments/stripe-becs.js', + 'resources/js/clients/payments/stripe-eps.js', + 'resources/js/clients/payments/stripe-ideal.js', + 'resources/js/clients/payments/stripe-przelewy24.js', + 'resources/js/clients/payments/stripe-browserpay.js', + 'resources/js/clients/payments/stripe-fpx.js', + ]), + viteStaticCopy({ + targets: [ + { + src: 'node_modules/card-js/card-js.min.css', + dest: 'public/css/card-js.min.css', + }, + { + src: 'node_modules/clipboard/dist/clipboard.min.js', + dest: 'public/vendor/clipboard.min.js', + }, + ], + }), + ], }); From 6df3a5abeee6c58bafdddc22ca5df4be85434962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:07:34 +0200 Subject: [PATCH 05/11] Migrate file refs --- resources/views/layouts/app.blade.php | 4 ++-- resources/views/layouts/ninja.blade.php | 4 ++-- .../ninja2020/components/livewire/invoices-table.blade.php | 2 +- .../components/livewire/purchase-orders-table.blade.php | 2 +- .../ninja2020/components/livewire/quotes-table.blade.php | 2 +- .../views/portal/ninja2020/components/pdf-viewer.blade.php | 1 + .../ninja2020/components/statement-pdf-viewer.blade.php | 2 +- resources/views/portal/ninja2020/documents/index.blade.php | 2 +- .../gateways/authorize/credit_card/authorize.blade.php | 4 ++-- .../ninja2020/gateways/authorize/credit_card/pay.blade.php | 4 ++-- .../ninja2020/gateways/braintree/ach/authorize.blade.php | 2 +- .../ninja2020/gateways/braintree/credit_card/pay.blade.php | 2 +- .../portal/ninja2020/gateways/braintree/paypal/pay.blade.php | 2 +- .../gateways/checkout/credit_card/authorize.blade.php | 2 +- .../ninja2020/gateways/checkout/credit_card/pay.blade.php | 2 +- .../views/portal/ninja2020/gateways/eway/authorize.blade.php | 2 +- resources/views/portal/ninja2020/gateways/eway/pay.blade.php | 2 +- .../views/portal/ninja2020/gateways/forte/ach/pay.blade.php | 2 +- .../portal/ninja2020/gateways/forte/credit_card/pay.blade.php | 2 +- .../ninja2020/gateways/mollie/credit_card/pay.blade.php | 4 ++-- .../portal/ninja2020/gateways/paytrace/authorize.blade.php | 1 + .../views/portal/ninja2020/gateways/paytrace/pay.blade.php | 2 +- .../portal/ninja2020/gateways/razorpay/hosted/pay.blade.php | 2 +- .../ninja2020/gateways/square/credit_card/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/ach/authorize.blade.php | 2 +- .../views/portal/ninja2020/gateways/stripe/acss/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/alipay/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/bacs/authorize.blade.php | 2 +- .../views/portal/ninja2020/gateways/stripe/bacs/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/bancontact/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/becs/authorize.blade.php | 2 +- .../ninja2020/gateways/stripe/browser_pay/pay.blade.php | 2 +- .../ninja2020/gateways/stripe/credit_card/authorize.blade.php | 2 +- .../ninja2020/gateways/stripe/credit_card/pay.blade.php | 2 +- .../views/portal/ninja2020/gateways/stripe/eps/pay.blade.php | 2 +- .../views/portal/ninja2020/gateways/stripe/fpx/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/giropay/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/ideal/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/klarna/pay.blade.php | 2 +- .../ninja2020/gateways/stripe/przelewy24/authorize.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/przelewy24/pay.blade.php | 2 +- .../views/portal/ninja2020/gateways/stripe/sepa/pay.blade.php | 2 +- .../portal/ninja2020/gateways/stripe/sofort/pay.blade.php | 2 +- .../ninja2020/gateways/wepay/authorize/authorize.blade.php | 4 ++-- .../gateways/wepay/authorize/bank_transfer.blade.php | 2 +- .../portal/ninja2020/gateways/wepay/credit_card/pay.blade.php | 4 ++-- .../views/portal/ninja2020/invoices/includes/terms.blade.php | 2 +- resources/views/portal/ninja2020/invoices/payment.blade.php | 2 +- resources/views/portal/ninja2020/invoices/show.blade.php | 2 +- resources/views/portal/ninja2020/layout/app.blade.php | 4 ++-- resources/views/portal/ninja2020/layout/clean.blade.php | 4 ++-- resources/views/portal/ninja2020/layout/clean_setup.blade.php | 4 ++-- resources/views/portal/ninja2020/layout/vendor_app.blade.php | 4 ++-- .../views/portal/ninja2020/purchase_orders/show.blade.php | 2 +- resources/views/portal/ninja2020/quotes/approve.blade.php | 2 +- resources/views/portal/ninja2020/quotes/show.blade.php | 2 +- resources/views/portal/ninja2020/statement/index.blade.php | 4 ++-- resources/views/setup/index.blade.php | 2 +- resources/views/themes/ninja2020/clean.blade.php | 4 ++-- resources/views/themes/ninja2020/view_entity/index.blade.php | 2 +- 60 files changed, 73 insertions(+), 71 deletions(-) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 75d4a01b7ff4..9a156ad10d14 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -10,7 +10,7 @@ {{ config('app.name', 'Laravel') }} - + @vite('resources/js/app.js') {{-- --}} @@ -28,7 +28,7 @@ - + @vite('sass/app.scss')
diff --git a/resources/views/layouts/ninja.blade.php b/resources/views/layouts/ninja.blade.php index 8a4d1802b386..c5e280c03a13 100644 --- a/resources/views/layouts/ninja.blade.php +++ b/resources/views/layouts/ninja.blade.php @@ -48,7 +48,7 @@ - + @vite('resources/js/app.js') @@ -67,7 +67,7 @@ - + @vite('sass/app.scss') diff --git a/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php b/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php index 630f4ccc9e28..6a377d79f020 100644 --- a/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php @@ -139,5 +139,5 @@
@push('footer') - + @vite('resources/js/clients/invoices/action-selectors.js') @endpush diff --git a/resources/views/portal/ninja2020/components/livewire/purchase-orders-table.blade.php b/resources/views/portal/ninja2020/components/livewire/purchase-orders-table.blade.php index c207f6bc42e3..7501aa42dfdf 100644 --- a/resources/views/portal/ninja2020/components/livewire/purchase-orders-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/purchase-orders-table.blade.php @@ -117,5 +117,5 @@ @push('footer') - + @vite('resources/js/clients/purchase_orders/action-selectors.js') @endpush diff --git a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php index 4c306a752878..71dac3c9b86c 100644 --- a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php @@ -113,5 +113,5 @@ @push('footer') - + @vite('resources/js/clients/quotes/action-selectors.js') @endpush diff --git a/resources/views/portal/ninja2020/components/pdf-viewer.blade.php b/resources/views/portal/ninja2020/components/pdf-viewer.blade.php index 9c31effb6d11..5b6cf228b379 100644 --- a/resources/views/portal/ninja2020/components/pdf-viewer.blade.php +++ b/resources/views/portal/ninja2020/components/pdf-viewer.blade.php @@ -51,5 +51,6 @@ @if($mobile) @push('footer') + {{-- @vite('resources/js/clients/shared/pdf.js') --}} @endpush @endif diff --git a/resources/views/portal/ninja2020/components/statement-pdf-viewer.blade.php b/resources/views/portal/ninja2020/components/statement-pdf-viewer.blade.php index c40b22e62496..7c02a4062940 100644 --- a/resources/views/portal/ninja2020/components/statement-pdf-viewer.blade.php +++ b/resources/views/portal/ninja2020/components/statement-pdf-viewer.blade.php @@ -93,6 +93,6 @@ @if($mobile) @push('footer') - + @vite('resources/js/clients/shared/pdf.js') @endpush @endif \ No newline at end of file diff --git a/resources/views/portal/ninja2020/documents/index.blade.php b/resources/views/portal/ninja2020/documents/index.blade.php index 09d40bcb2aac..b0766c87d90a 100644 --- a/resources/views/portal/ninja2020/documents/index.blade.php +++ b/resources/views/portal/ninja2020/documents/index.blade.php @@ -6,7 +6,7 @@ @component('portal.ninja2020.upload.index') @endcomponent @endif - + @vite('resources/js/clients/shared/multiple-downloads.js') @endsection @section('body') diff --git a/resources/views/portal/ninja2020/gateways/authorize/credit_card/authorize.blade.php b/resources/views/portal/ninja2020/gateways/authorize/credit_card/authorize.blade.php index 6ba12c7118d4..3f973961770d 100644 --- a/resources/views/portal/ninja2020/gateways/authorize/credit_card/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/authorize/credit_card/authorize.blade.php @@ -9,7 +9,7 @@ - + @vite('node_modules/card-js/card-js.min.js') @endsection @@ -51,7 +51,7 @@ @endif - + @vite('resources/js/clients/payment_methods/authorize-authorize-card.js') @endsection @push('footer') diff --git a/resources/views/portal/ninja2020/gateways/authorize/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/authorize/credit_card/pay.blade.php index 650d5dc02cc7..b37989f894dc 100644 --- a/resources/views/portal/ninja2020/gateways/authorize/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/authorize/credit_card/pay.blade.php @@ -5,7 +5,7 @@ - + @vite('node_modules/card-js/card-js.min.js') @@ -71,7 +71,7 @@ @endif - + @vite('resources/js/clients/payments/authorize-credit-card-payment.js') @endsection @push('footer') diff --git a/resources/views/portal/ninja2020/gateways/braintree/ach/authorize.blade.php b/resources/views/portal/ninja2020/gateways/braintree/ach/authorize.blade.php index 5847c21bff61..4f2e9918b587 100644 --- a/resources/views/portal/ninja2020/gateways/braintree/ach/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/braintree/ach/authorize.blade.php @@ -92,5 +92,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payment_methods/braintree-ach.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/braintree/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/braintree/credit_card/pay.blade.php index 7bc11f626b26..44cd24702c5d 100644 --- a/resources/views/portal/ninja2020/gateways/braintree/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/braintree/credit_card/pay.blade.php @@ -75,7 +75,7 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payments/braintree-credit-card.js') @endsection
\ No newline at end of file diff --git a/resources/views/portal/ninja2020/gateways/braintree/paypal/pay.blade.php b/resources/views/portal/ninja2020/gateways/braintree/paypal/pay.blade.php index cb967a2e6f5e..b405cebafed9 100644 --- a/resources/views/portal/ninja2020/gateways/braintree/paypal/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/braintree/paypal/pay.blade.php @@ -65,5 +65,5 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payments/braintree-paypal.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/checkout/credit_card/authorize.blade.php b/resources/views/portal/ninja2020/gateways/checkout/credit_card/authorize.blade.php index eb0f26e4d241..25d976697cdf 100644 --- a/resources/views/portal/ninja2020/gateways/checkout/credit_card/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/checkout/credit_card/authorize.blade.php @@ -40,5 +40,5 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payment_methods/authorize-checkout-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/checkout/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/checkout/credit_card/pay.blade.php index acfe8c6921f7..308cba1a0656 100644 --- a/resources/views/portal/ninja2020/gateways/checkout/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/checkout/credit_card/pay.blade.php @@ -86,5 +86,5 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payments/checkout-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php index df9553087b8c..7f062ea3ca63 100644 --- a/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/eway/authorize.blade.php @@ -36,5 +36,5 @@ ctrans('texts.credit_card')]) @section('gateway_footer') - + @vite('resources/js/clients/payments/eway-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/eway/pay.blade.php b/resources/views/portal/ninja2020/gateways/eway/pay.blade.php index fd4ce3573ab1..3f0cc9c788a1 100644 --- a/resources/views/portal/ninja2020/gateways/eway/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/eway/pay.blade.php @@ -58,5 +58,5 @@ ctrans('texts.credit_card')]) @section('gateway_footer') - + @vite('resources/js/clients/payments/eway-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php index be1167b12948..8dfab33c4269 100644 --- a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php @@ -49,5 +49,5 @@ @endif - + @vite('resources/js/clients/payments/forte-ach-payment.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php index 31ec9435ee21..7f54fc61251d 100644 --- a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php @@ -47,7 +47,7 @@ @endif - + @vite('resources/js/clients/payments/forte-credit-card-payment.js') @endsection @push('footer') diff --git a/resources/views/portal/ninja2020/gateways/mollie/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/mollie/credit_card/pay.blade.php index 3b471f5ce119..7a470d7b96ad 100644 --- a/resources/views/portal/ninja2020/gateways/mollie/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/mollie/credit_card/pay.blade.php @@ -6,7 +6,7 @@ ctrans('texts.credit_card')]) - + @vite('node_modules/card-js/card-js.min.js') @endsection @@ -86,5 +86,5 @@ ctrans('texts.credit_card')]) @section('gateway_footer') - + @vite('resources/js/clients/payments/mollie-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/paytrace/authorize.blade.php b/resources/views/portal/ninja2020/gateways/paytrace/authorize.blade.php index 8ca6f62fe7fa..43f99ed6da6a 100644 --- a/resources/views/portal/ninja2020/gateways/paytrace/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/paytrace/authorize.blade.php @@ -38,6 +38,7 @@ @endif + {{-- @vite('resources/js/clients/payments/paytrace-credit-card.js') --}} @endif - + @vite('resources/js/clients/payments/paytrace-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/razorpay/hosted/pay.blade.php b/resources/views/portal/ninja2020/gateways/razorpay/hosted/pay.blade.php index 43a76890f809..c5c130ef84cf 100644 --- a/resources/views/portal/ninja2020/gateways/razorpay/hosted/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/razorpay/hosted/pay.blade.php @@ -32,5 +32,5 @@ ctrans('texts.aio_checkout')]) @section('gateway_footer') - + @vite('resources/js/clients/payments/razorpay-aio.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php index 5c9e852cdcac..f4841afd7295 100644 --- a/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/square/credit_card/pay.blade.php @@ -112,5 +112,5 @@ @endif - + @vite('resources/js/clients/payments/square-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/ach/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/ach/authorize.blade.php index 46f4e5443766..cf98b6f94ca1 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/ach/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/ach/authorize.blade.php @@ -92,5 +92,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-ach.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/acss/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/acss/pay.blade.php index dba21e08c822..3665e954d8ae 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/acss/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/acss/pay.blade.php @@ -36,5 +36,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-acss.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php index f56cbfc83d9d..91df047a272f 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php @@ -26,5 +26,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-alipay.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php index a18484125868..c004978497a2 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/bacs/authorize.blade.php @@ -34,5 +34,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-bacs.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/bacs/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/bacs/pay.blade.php index 895d09fdae92..40e57f291cce 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/bacs/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/bacs/pay.blade.php @@ -46,5 +46,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-bacs.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/bancontact/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/bancontact/pay.blade.php index 9fd167fd5f6d..91ea5ee9cc58 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/bancontact/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/bancontact/pay.blade.php @@ -33,5 +33,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-bancontact.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/becs/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/becs/authorize.blade.php index 1537ee4c6e01..de6d2d188296 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/becs/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/becs/authorize.blade.php @@ -80,5 +80,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-sepa.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/browser_pay/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/browser_pay/pay.blade.php index 24fd269d76b9..7bbae14bb70a 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/browser_pay/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/browser_pay/pay.blade.php @@ -35,5 +35,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-browserpay.js') @endsection \ No newline at end of file diff --git a/resources/views/portal/ninja2020/gateways/stripe/credit_card/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/credit_card/authorize.blade.php index 84986f505717..38b3f801a707 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/credit_card/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/credit_card/authorize.blade.php @@ -39,5 +39,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php index c4bc33bbdf5a..4c36676c3478 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/credit_card/pay.blade.php @@ -97,5 +97,5 @@ - + @vite('resources/js/clients/payments/stripe-credit-card.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/eps/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/eps/pay.blade.php index 3cc8002d9a4a..80995e0653c8 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/eps/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/eps/pay.blade.php @@ -32,5 +32,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-eps.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/fpx/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/fpx/pay.blade.php index 6c5b60ae7db5..a1ea200ab23d 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/fpx/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/fpx/pay.blade.php @@ -30,5 +30,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-fpx.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/giropay/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/giropay/pay.blade.php index f050e0f566e5..f4996bb3db36 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/giropay/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/giropay/pay.blade.php @@ -30,5 +30,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-giropay.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/ideal/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/ideal/pay.blade.php index 0e688a3778e4..b0ac53a3e19e 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/ideal/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/ideal/pay.blade.php @@ -30,5 +30,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-ideal.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/klarna/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/klarna/pay.blade.php index bc8fea2f8cfd..2d6d9de448f5 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/klarna/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/klarna/pay.blade.php @@ -35,5 +35,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-klarna.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/przelewy24/authorize.blade.php b/resources/views/portal/ninja2020/gateways/stripe/przelewy24/authorize.blade.php index 1537ee4c6e01..de6d2d188296 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/przelewy24/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/przelewy24/authorize.blade.php @@ -80,5 +80,5 @@ @section('gateway_footer') - + @vite('resources/js/clients/payments/stripe-sepa.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/stripe/przelewy24/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/przelewy24/pay.blade.php index f9e54999738d..dc5194b1a788 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/przelewy24/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/przelewy24/pay.blade.php @@ -34,5 +34,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-przelewy24.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/sepa/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/sepa/pay.blade.php index 1b73c9970cf2..9dbdca625c49 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/sepa/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/sepa/pay.blade.php @@ -87,5 +87,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-sepa.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php index 104bbfc3477c..312b9242ddd4 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php @@ -30,5 +30,5 @@ @push('footer') - + @vite('resources/js/clients/payments/stripe-sofort.js') @endpush diff --git a/resources/views/portal/ninja2020/gateways/wepay/authorize/authorize.blade.php b/resources/views/portal/ninja2020/gateways/wepay/authorize/authorize.blade.php index 74f8cb1fd75a..6da24e6c6526 100644 --- a/resources/views/portal/ninja2020/gateways/wepay/authorize/authorize.blade.php +++ b/resources/views/portal/ninja2020/gateways/wepay/authorize/authorize.blade.php @@ -10,7 +10,7 @@ - + @vite('node_modules/card-js/card-js.min.js') @@ -47,7 +47,7 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payments/wepay-credit-card.js') @endsection @push('footer') diff --git a/resources/views/portal/ninja2020/gateways/wepay/authorize/bank_transfer.blade.php b/resources/views/portal/ninja2020/gateways/wepay/authorize/bank_transfer.blade.php index ba8888fb861b..bd9064be22cf 100644 --- a/resources/views/portal/ninja2020/gateways/wepay/authorize/bank_transfer.blade.php +++ b/resources/views/portal/ninja2020/gateways/wepay/authorize/bank_transfer.blade.php @@ -29,5 +29,5 @@ @endsection @section('gateway_footer') - + @vite('resources/js/clients/payment_methods/wepay-bank-account.js') @endsection diff --git a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php index 5c2de7f9be60..39b08974418f 100644 --- a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php @@ -9,7 +9,7 @@ - + @vite('node_modules/card-js/card-js.min.js') @@ -79,7 +79,7 @@ }); - + @vite('resources/js/clients/payments/wepay-credit-card.js') @endsection @push('footer') diff --git a/resources/views/portal/ninja2020/invoices/includes/terms.blade.php b/resources/views/portal/ninja2020/invoices/includes/terms.blade.php index 299bf9fc3f1d..7aa32716bacf 100644 --- a/resources/views/portal/ninja2020/invoices/includes/terms.blade.php +++ b/resources/views/portal/ninja2020/invoices/includes/terms.blade.php @@ -43,5 +43,5 @@ @push('footer') - + @vite('resources/js/clients/linkify-urls.js') @endpush diff --git a/resources/views/portal/ninja2020/invoices/payment.blade.php b/resources/views/portal/ninja2020/invoices/payment.blade.php index 7d6da3475fce..8d5df833d326 100644 --- a/resources/views/portal/ninja2020/invoices/payment.blade.php +++ b/resources/views/portal/ninja2020/invoices/payment.blade.php @@ -156,5 +156,5 @@ @endsection @push('footer') - + @vite('resources/js/clients/invoices/payment.js') @endpush diff --git a/resources/views/portal/ninja2020/invoices/show.blade.php b/resources/views/portal/ninja2020/invoices/show.blade.php index 7f090a4f7ecc..b8db8405fbaa 100644 --- a/resources/views/portal/ninja2020/invoices/show.blade.php +++ b/resources/views/portal/ninja2020/invoices/show.blade.php @@ -105,7 +105,7 @@ @endsection @push('head') - + @vite('resources/js/clients/invoices/payment.js') + @vite('resources/js/app.js') @@ -80,7 +80,7 @@ } - + @vite('sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) diff --git a/resources/views/portal/ninja2020/layout/clean.blade.php b/resources/views/portal/ninja2020/layout/clean.blade.php index 805429cb1ed0..1e1f2e591a56 100644 --- a/resources/views/portal/ninja2020/layout/clean.blade.php +++ b/resources/views/portal/ninja2020/layout/clean.blade.php @@ -73,7 +73,7 @@ - + @vite('resources/js/app.js') @@ -90,7 +90,7 @@ - + @vite('sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) {{-- --}} @endif diff --git a/resources/views/portal/ninja2020/layout/clean_setup.blade.php b/resources/views/portal/ninja2020/layout/clean_setup.blade.php index 2083e6ff5b0a..cb3e620a4e71 100644 --- a/resources/views/portal/ninja2020/layout/clean_setup.blade.php +++ b/resources/views/portal/ninja2020/layout/clean_setup.blade.php @@ -62,7 +62,7 @@ @if(strpos(Request::url(),'setup') === false) - + @vite('resources/js/app.js') @else @endif @@ -85,7 +85,7 @@ @if(strpos(Request::url(),'setup') === false) - + @vite('sass/app.scss') @else @endif diff --git a/resources/views/portal/ninja2020/layout/vendor_app.blade.php b/resources/views/portal/ninja2020/layout/vendor_app.blade.php index 82df45e433c6..921bd3af5dc6 100644 --- a/resources/views/portal/ninja2020/layout/vendor_app.blade.php +++ b/resources/views/portal/ninja2020/layout/vendor_app.blade.php @@ -64,7 +64,7 @@ - + @vite('resources/js/app.js') @@ -83,7 +83,7 @@ - + @vite('sass/app.scss') @if(auth()->guard('vendor')->user() && !auth()->guard('vendor')->user()->user->account->isPaid()) diff --git a/resources/views/portal/ninja2020/purchase_orders/show.blade.php b/resources/views/portal/ninja2020/purchase_orders/show.blade.php index 172beb0291fc..5ebf38fe898b 100644 --- a/resources/views/portal/ninja2020/purchase_orders/show.blade.php +++ b/resources/views/portal/ninja2020/purchase_orders/show.blade.php @@ -56,7 +56,7 @@ @endsection @push('head') - + @vite('resources/js/clients/purchase_orders/accept.js') + @vite('resources/js/clients/quotes/approve.js') @endpush diff --git a/resources/views/portal/ninja2020/quotes/show.blade.php b/resources/views/portal/ninja2020/quotes/show.blade.php index 4b981fb5d4c2..ea71814fe624 100644 --- a/resources/views/portal/ninja2020/quotes/show.blade.php +++ b/resources/views/portal/ninja2020/quotes/show.blade.php @@ -111,7 +111,7 @@ @endsection @push('head') - + @vite('resources/js/clients/quotes/approve.js') -@endpush \ No newline at end of file + @vite('resources/js/clients/statements/view.js') +@endpush diff --git a/resources/views/setup/index.blade.php b/resources/views/setup/index.blade.php index 7c550613aad0..0f77ee84b1e2 100644 --- a/resources/views/setup/index.blade.php +++ b/resources/views/setup/index.blade.php @@ -84,5 +84,5 @@ @endsection @push('footer') - + @vite('resources/js/setup/setup.js') @endpush diff --git a/resources/views/themes/ninja2020/clean.blade.php b/resources/views/themes/ninja2020/clean.blade.php index 66ac3ebda118..0f70d3310a95 100644 --- a/resources/views/themes/ninja2020/clean.blade.php +++ b/resources/views/themes/ninja2020/clean.blade.php @@ -57,7 +57,7 @@ - + @vite('resources/js/app.js') @@ -77,7 +77,7 @@ - + @vite('sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) {{-- --}} @endif diff --git a/resources/views/themes/ninja2020/view_entity/index.blade.php b/resources/views/themes/ninja2020/view_entity/index.blade.php index 381b972eb077..d5c1b1db89b7 100644 --- a/resources/views/themes/ninja2020/view_entity/index.blade.php +++ b/resources/views/themes/ninja2020/view_entity/index.blade.php @@ -54,5 +54,5 @@ @endsection @section('footer') - + @vite('resources/js/clients/shared/pdf.js') @endsection \ No newline at end of file From c23577082bfb60c3948d48649b8ae82896789691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:08:47 +0200 Subject: [PATCH 06/11] Update scripts --- package.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e34e8dea899f..1430107758d1 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,9 @@ { "private": true, "scripts": { - "dev": "npm run development", - "development": "mix", - "watch": "mix watch", - "watch-poll": "mix watch -- --watch-options-poll=1000", - "hot": "mix watch --hot", - "production": "mix --production" + "dev": "vite", + "build": "vite build", + "production": "vite build" }, "devDependencies": { "@babel/compat-data": "7.15.0", From 5f450bd47b8d52258d150167a80b716690a1a95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:09:06 +0200 Subject: [PATCH 07/11] Set package.json type to module --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1430107758d1..bc83620e86c4 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,6 @@ "sass": "^1.43.4", "sass-loader": "^12.3.0", "tailwindcss": "^2.2.17" - } + }, + "type": "module" } From 1ebc6016ab6a1e33dff1a542f8c29d9fb298f61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:12:21 +0200 Subject: [PATCH 08/11] Replace require with ES imports --- resources/js/app.js | 21 ++++++++++----------- resources/js/clients/linkify-urls.js | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index 29cb8ed9b298..579360d3b94f 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,19 +1,18 @@ /** - * Axios + * Invoice Ninja (https://invoiceninja.com). * - * Promise based HTTP client for the browser and node.js - * https://github.com/axios/axios - */ -window.axios = require('axios'); - -/** - * card-validator + * @link https://github.com/invoiceninja/invoiceninja source repository * - * Validate credit cards as users type. - * https://github.com/braintree/card-validator + * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) + * + * @license https://www.elastic.co/licensing/elastic-license */ -window.valid = require('card-validator'); +import axios from 'axios'; +import cardValidator from 'card-validator'; + +window.axios = axios; +window.valid = cardValidator; /** * Remove flashing message div after 3 seconds. diff --git a/resources/js/clients/linkify-urls.js b/resources/js/clients/linkify-urls.js index f90f35a38a98..3875b1d578e6 100644 --- a/resources/js/clients/linkify-urls.js +++ b/resources/js/clients/linkify-urls.js @@ -8,7 +8,7 @@ * @license https://www.elastic.co/licensing/elastic-license */ -const linkifyUrls = require('linkify-urls'); +import linkifyUrls from 'linkify-urls'; document .querySelectorAll('[data-ref=entity-terms]') From 153c9bbc11a73ff6171130d47b291ecc6999c81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:40:32 +0200 Subject: [PATCH 09/11] Expose Vite to global host --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bc83620e86c4..f7318d6ee651 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "dev": "vite", + "dev": "vite --host 0.0.0.0", "build": "vite build", "production": "vite build" }, From 7de7e23d71598a4591e2e6bba1c4fe74d12e4f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:40:43 +0200 Subject: [PATCH 10/11] Migrate Tailwind config to CJS --- postcss.config.cjs | 6 ++++++ tailwind.config.js => tailwind.config.cjs | 0 2 files changed, 6 insertions(+) create mode 100644 postcss.config.cjs rename tailwind.config.js => tailwind.config.cjs (100%) diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 000000000000..33ad091d26d8 --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/tailwind.config.js b/tailwind.config.cjs similarity index 100% rename from tailwind.config.js rename to tailwind.config.cjs From 84d2375fb39434bcf2caefb5ed9609afe0ce2fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Sep 2023 16:40:49 +0200 Subject: [PATCH 11/11] Fixes for SCSS --- resources/views/layouts/app.blade.php | 2 +- resources/views/layouts/ninja.blade.php | 2 +- resources/views/portal/ninja2020/layout/app.blade.php | 2 +- resources/views/portal/ninja2020/layout/clean.blade.php | 2 +- resources/views/portal/ninja2020/layout/clean_setup.blade.php | 2 +- resources/views/portal/ninja2020/layout/vendor_app.blade.php | 2 +- resources/views/themes/ninja2020/clean.blade.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 9a156ad10d14..dca59bc76508 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -28,7 +28,7 @@ - @vite('sass/app.scss') + @vite('resources/sass/app.scss')
diff --git a/resources/views/layouts/ninja.blade.php b/resources/views/layouts/ninja.blade.php index c5e280c03a13..1f21e80d0e6b 100644 --- a/resources/views/layouts/ninja.blade.php +++ b/resources/views/layouts/ninja.blade.php @@ -67,7 +67,7 @@ - @vite('sass/app.scss') + @vite('resources/sass/app.scss') diff --git a/resources/views/portal/ninja2020/layout/app.blade.php b/resources/views/portal/ninja2020/layout/app.blade.php index 87f38d359c99..a51d782b433c 100644 --- a/resources/views/portal/ninja2020/layout/app.blade.php +++ b/resources/views/portal/ninja2020/layout/app.blade.php @@ -80,7 +80,7 @@ } - @vite('sass/app.scss') + @vite('resources/sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) diff --git a/resources/views/portal/ninja2020/layout/clean.blade.php b/resources/views/portal/ninja2020/layout/clean.blade.php index 1e1f2e591a56..93165310d308 100644 --- a/resources/views/portal/ninja2020/layout/clean.blade.php +++ b/resources/views/portal/ninja2020/layout/clean.blade.php @@ -90,7 +90,7 @@ - @vite('sass/app.scss') + @vite('resources/sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) {{-- --}} @endif diff --git a/resources/views/portal/ninja2020/layout/clean_setup.blade.php b/resources/views/portal/ninja2020/layout/clean_setup.blade.php index cb3e620a4e71..643c9a90c511 100644 --- a/resources/views/portal/ninja2020/layout/clean_setup.blade.php +++ b/resources/views/portal/ninja2020/layout/clean_setup.blade.php @@ -85,7 +85,7 @@ @if(strpos(Request::url(),'setup') === false) - @vite('sass/app.scss') + @vite('resources/sass/app.scss') @else @endif diff --git a/resources/views/portal/ninja2020/layout/vendor_app.blade.php b/resources/views/portal/ninja2020/layout/vendor_app.blade.php index 921bd3af5dc6..7a5831235fc4 100644 --- a/resources/views/portal/ninja2020/layout/vendor_app.blade.php +++ b/resources/views/portal/ninja2020/layout/vendor_app.blade.php @@ -83,7 +83,7 @@ - @vite('sass/app.scss') + @vite('resources/sass/app.scss') @if(auth()->guard('vendor')->user() && !auth()->guard('vendor')->user()->user->account->isPaid()) diff --git a/resources/views/themes/ninja2020/clean.blade.php b/resources/views/themes/ninja2020/clean.blade.php index 0f70d3310a95..4bf887bfa2be 100644 --- a/resources/views/themes/ninja2020/clean.blade.php +++ b/resources/views/themes/ninja2020/clean.blade.php @@ -77,7 +77,7 @@ - @vite('sass/app.scss') + @vite('resources/sass/app.scss') @if(auth()->guard('contact')->user() && !auth()->guard('contact')->user()->user->account->isPaid()) {{-- --}} @endif