From 2513035b56bbd3a55ce87a25aa8fe402e099b6da Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:17:59 -0600 Subject: [PATCH 1/7] docs: add link in Filament to youtube playlist --- app/Providers/AppServiceProvider.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 452e6b6..db1968e 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,8 @@ namespace App\Providers; +use Filament\Facades\Filament; +use Filament\Navigation\UserMenuItem; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -19,6 +21,15 @@ public function register(): void */ public function boot(): void { - // + Filament::serving(function () { + Filament::registerUserMenuItems([ + UserMenuItem::make() + ->label('Helpful Videos') + ->url( + 'https://www.youtube.com/playlist?list=PLWXp2X5PBDOkzYGV3xd0zviD6xR8OoiFR', + shouldOpenInNewTab: true + )->icon('heroicon-s-play-circle'), + ]); + }); } } From c48d0c25cc4176a235b85a4ca47780eeadb05df0 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:18:19 -0600 Subject: [PATCH 2/7] fix: prevent thumbnail generation of unpublished presentations --- .../Pages/EditPresentation.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/PresentationResource/Pages/EditPresentation.php b/app/Filament/Resources/PresentationResource/Pages/EditPresentation.php index 2293890..7b1fbd2 100644 --- a/app/Filament/Resources/PresentationResource/Pages/EditPresentation.php +++ b/app/Filament/Resources/PresentationResource/Pages/EditPresentation.php @@ -7,6 +7,7 @@ use Filament\Actions; use Filament\Notifications\Notification; use Filament\Resources\Pages\EditRecord; +use Illuminate\Support\HtmlString; use Spatie\Browsershot\Browsershot; class EditPresentation extends EditRecord @@ -26,12 +27,24 @@ protected function getHeaderActions(): array Actions\Action::make('Generate Thumbnail') ->icon('heroicon-o-camera') ->requiresConfirmation() - ->modalHeading('Generate thumbnail') - ->modalDescription( + ->modalHeading('Generate a thumbnail of your first slide') + ->modalIcon('heroicon-o-camera') + ->modalIconColor('info') + ->modalDescription(new HtmlString( 'This will overwrite any existing thumbnail that you have ' .'set for this presentation. Do you wish to continue?' - )->modalSubmitActionLabel('Yes, generate it') + .'

Note: Your presentation must first be published.' + ))->modalSubmitActionLabel('Generate it') ->action(function (Presentation $record) { + if (! $record->is_published) { + Notification::make() + ->title('You must publish your presentation to generate a thumbnail.') + ->danger() + ->send(); + + return; + } + $tempPath = storage_path("temp/{$record->slug}-{$record->user->username}.jpg"); Browsershot::url(route('presentations.show', [ From f399fd3bec8655bd96fc0d357bf3c7ff06cbd0a6 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:18:39 -0600 Subject: [PATCH 3/7] fix: update default open-graph image process --- resources/views/app.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index ffed370..e6de42c 100644 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -13,7 +13,7 @@ + content="{{ (isset($page['props']['meta']['imageUrl'])) && !empty($page['props']['meta']['imageUrl']) ? $page['props']['meta']['imageUrl'] : config('meta.base_og_image') }}"/> From 39f8a115697e85e15aa3b04497c46e43c4c5d21e Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:24:31 -0600 Subject: [PATCH 4/7] refactor: swap out jsdom for happy-dom --- package-lock.json | 100 +++++++++++++++++++++++++++++++++++++++------- package.json | 2 +- vite.config.js | 2 +- 3 files changed, 88 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9eab628..4628405 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "": { "dependencies": { "dompurify": "^3.0.5", + "happy-dom": "^13.7.0", "marked": "^5.1.2", "vue-router": "^4.2.4" }, @@ -20,7 +21,6 @@ "@vue/test-utils": "^2.4.1", "autoprefixer": "^10.4.14", "axios": "^1.1.2", - "jsdom": "^22.1.0", "laravel-vite-plugin": "^0.8.0", "msw": "^1.2.3", "postcss": "^8.4.18", @@ -477,6 +477,8 @@ "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">= 10" } @@ -929,7 +931,9 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/abbrev": { "version": "1.1.1", @@ -965,6 +969,8 @@ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "debug": "4" }, @@ -1663,6 +1669,8 @@ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-3.0.0.tgz", "integrity": "sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "rrweb-cssom": "^0.6.0" }, @@ -1689,6 +1697,8 @@ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-4.0.0.tgz", "integrity": "sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "abab": "^2.0.6", "whatwg-mimetype": "^3.0.0", @@ -1725,7 +1735,9 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/deep-eql": { "version": "4.1.3", @@ -1830,6 +1842,8 @@ "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "webidl-conversions": "^7.0.0" }, @@ -1918,7 +1932,6 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, "engines": { "node": ">=0.12" }, @@ -2406,6 +2419,19 @@ "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, + "node_modules/happy-dom": { + "version": "13.7.0", + "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-13.7.0.tgz", + "integrity": "sha512-E02c+vzhvZvmyh60GjUi8zZF7HMKBe+ZD5LfIOu6AAbwkI2IU3vBh897joHaGFuQLG8/griTk0X7J/QgHV5WuQ==", + "dependencies": { + "entities": "^4.5.0", + "webidl-conversions": "^7.0.0", + "whatwg-mimetype": "^3.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -2498,6 +2524,8 @@ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "whatwg-encoding": "^2.0.0" }, @@ -2516,6 +2544,8 @@ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "@tootallnate/once": "2", "agent-base": "6", @@ -2530,6 +2560,8 @@ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "agent-base": "6", "debug": "4" @@ -2778,7 +2810,9 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/is-typed-array": { "version": "1.1.12", @@ -2964,6 +2998,8 @@ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.1.0.tgz", "integrity": "sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "abab": "^2.0.6", "cssstyle": "^3.0.0", @@ -3458,7 +3494,9 @@ "version": "2.2.7", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/object-assign": { "version": "4.1.1", @@ -3670,6 +3708,8 @@ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "entities": "^4.4.0" }, @@ -4019,7 +4059,9 @@ "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/pump": { "version": "3.0.0", @@ -4036,6 +4078,8 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=6" } @@ -4094,7 +4138,9 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -4177,7 +4223,9 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/resolve": { "version": "1.22.8", @@ -4247,7 +4295,9 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz", "integrity": "sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/run-async": { "version": "2.4.1", @@ -4321,6 +4371,8 @@ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "xmlchars": "^2.2.0" }, @@ -4593,7 +4645,9 @@ "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/tailwindcss": { "version": "3.3.5", @@ -4751,6 +4805,8 @@ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", @@ -4766,6 +4822,8 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "punycode": "^2.3.0" }, @@ -4848,6 +4906,8 @@ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">= 4.0.0" } @@ -4887,6 +4947,8 @@ "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" @@ -5171,6 +5233,8 @@ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "xml-name-validator": "^4.0.0" }, @@ -5203,7 +5267,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true, "engines": { "node": ">=12" } @@ -5213,6 +5276,8 @@ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "iconv-lite": "0.6.3" }, @@ -5225,6 +5290,8 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -5236,7 +5303,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "dev": true, "engines": { "node": ">=12" } @@ -5246,6 +5312,8 @@ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "tr46": "^4.1.1", "webidl-conversions": "^7.0.0" @@ -5336,6 +5404,8 @@ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=12" } @@ -5344,7 +5414,9 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true + "dev": true, + "optional": true, + "peer": true }, "node_modules/y18n": { "version": "5.0.8", diff --git a/package.json b/package.json index 1b05f78..cc1a14f 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ }, "dependencies": { "dompurify": "^3.0.5", + "happy-dom": "^13.7.0", "marked": "^5.1.2", "vue-router": "^4.2.4" }, @@ -21,7 +22,6 @@ "@vue/test-utils": "^2.4.1", "autoprefixer": "^10.4.14", "axios": "^1.1.2", - "jsdom": "^22.1.0", "laravel-vite-plugin": "^0.8.0", "msw": "^1.2.3", "postcss": "^8.4.18", diff --git a/vite.config.js b/vite.config.js index 6e68410..56ab778 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,6 +19,6 @@ export default defineConfig({ ], test: { globals: true, - environment: 'jsdom', + environment: 'happy-dom', }, }); From 59fc9d615921149cdc316b9c3b370c57049f85bc Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:25:01 -0600 Subject: [PATCH 5/7] fix: remove test prone to side-effect errors --- resources/js/test/components/SettingsPage.test.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/resources/js/test/components/SettingsPage.test.ts b/resources/js/test/components/SettingsPage.test.ts index fdbc6be..f51f815 100644 --- a/resources/js/test/components/SettingsPage.test.ts +++ b/resources/js/test/components/SettingsPage.test.ts @@ -72,9 +72,3 @@ test('setting darkMode back to false sets light mode', async () => { expect(getVisualMode()).toBe(VisualMode.Light); }); - -test('successfully submits the form', async () => { - const wrapper = mountWrapper(); - - await wrapper.find('#close').trigger('click'); -}); From 56c7d07203b904c637e03ffdaf4d766951891725 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:27:57 -0600 Subject: [PATCH 6/7] deps: run npm audit fix --- package-lock.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4628405..bcff17b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "html", "dependencies": { "dompurify": "^3.0.5", "happy-dom": "^13.7.0", @@ -2191,7 +2192,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.3", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "dev": true, "funding": [ { @@ -2199,7 +2202,6 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -4994,9 +4996,10 @@ } }, "node_modules/vite": { - "version": "4.5.0", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz", + "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==", "dev": true, - "license": "MIT", "dependencies": { "esbuild": "^0.18.10", "postcss": "^8.4.27", From c5c5d7468ea489ea150478661be38792b44bded5 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 8 Mar 2024 13:44:23 -0600 Subject: [PATCH 7/7] docs: remove presentation content helper text Unneeded after filament update --- app/Filament/Resources/PresentationResource.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/Filament/Resources/PresentationResource.php b/app/Filament/Resources/PresentationResource.php index f865c0d..60f54ee 100644 --- a/app/Filament/Resources/PresentationResource.php +++ b/app/Filament/Resources/PresentationResource.php @@ -18,7 +18,6 @@ use Filament\Tables\Table; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; -use Illuminate\Support\HtmlString; use Illuminate\Support\Str; use Illuminate\Validation\Rules\Unique; @@ -39,12 +38,7 @@ public static function form(Form $form): Form ->schema([ Forms\Components\MarkdownEditor::make('content') ->required() - ->helperText(new HtmlString( - 'Note: It\'s recommended to edit content ' - .'while using Light Theme; ' - .'syntax highlighting for Dark Theme isn\'t fully supported yet. ' - .'You can toggle your theme in the top right menu.' - ))->columnSpan([ + ->columnSpan([ 'md' => 2, ])->disableToolbarButtons([ 'attachFiles',