From 4356cb7b9b3fa0c841a94f84a9a482008516eff6 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 15 Aug 2024 11:32:42 +0100 Subject: [PATCH] Added confetti option Signed-off-by: snipe --- app/Http/Controllers/ProfileController.php | 1 + ...024_08_15_111816_add_confetti_to_users.php | 28 ++++++++++++++++++ package-lock.json | 10 +++++++ package.json | 1 + public/js/build/app.js | Bin 982781 -> 1008666 bytes public/js/dist/all.js | Bin 2751134 -> 2777019 bytes public/mix-manifest.json | 4 +-- resources/lang/en-US/account/general.php | 1 + resources/views/account/profile.blade.php | 13 ++++++-- resources/views/notifications.blade.php | 2 ++ .../views/partials/confetti-js.blade.php | 25 ++++++++++++++++ webpack.mix.js | 1 + 12 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 database/migrations/2024_08_15_111816_add_confetti_to_users.php create mode 100644 resources/views/partials/confetti-js.blade.php diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index bf0b1c3ecc..abe09e8afa 100755 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -50,6 +50,7 @@ class ProfileController extends Controller $user->skin = $request->input('skin'); $user->phone = $request->input('phone'); $user->enable_sounds = $request->input('enable_sounds', false); + $user->enable_confetti = $request->input('enable_confetti', false); if (! config('app.lock_passwords')) { $user->locale = $request->input('locale', 'en-US'); diff --git a/database/migrations/2024_08_15_111816_add_confetti_to_users.php b/database/migrations/2024_08_15_111816_add_confetti_to_users.php new file mode 100644 index 0000000000..a3aa85d4f4 --- /dev/null +++ b/database/migrations/2024_08_15_111816_add_confetti_to_users.php @@ -0,0 +1,28 @@ +boolean('enable_confetti')->default(false); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('enable_confetti'); + }); + } +}; diff --git a/package-lock.json b/package-lock.json index afe7b5f7ce..d71c3f9fdd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "bootstrap-datepicker": "^1.10.0", "bootstrap-less": "^3.3.8", "bootstrap-table": "1.23.0", + "canvas-confetti": "^1.9.3", "chart.js": "^2.9.4", "clipboard": "^2.0.11", "css-loader": "^5.0.0", @@ -4098,6 +4099,15 @@ ], "license": "CC-BY-4.0" }, + "node_modules/canvas-confetti": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/canvas-confetti/-/canvas-confetti-1.9.3.tgz", + "integrity": "sha512-rFfTURMvmVEX1gyXFgn5QMn81bYk70qa0HLzcIOSVEyl57n6o9ItHeBtUSWdvKAPY0xlvBHno4/v3QPrT83q9g==", + "funding": { + "type": "donate", + "url": "https://www.paypal.me/kirilvatev" + } + }, "node_modules/canvg": { "version": "3.0.10", "license": "MIT", diff --git a/package.json b/package.json index 95ccf94f84..468c6c2891 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "bootstrap-datepicker": "^1.10.0", "bootstrap-less": "^3.3.8", "bootstrap-table": "1.23.0", + "canvas-confetti": "^1.9.3", "chart.js": "^2.9.4", "clipboard": "^2.0.11", "css-loader": "^5.0.0", diff --git a/public/js/build/app.js b/public/js/build/app.js index 66bbc638c6161210ac0a8748806b00b55ef40a0d..c5c6a5cd6b0dce71db851fb5ce9a652f2ec09342 100644 GIT binary patch delta 23834 zcmbtcU5p&ZaRz0YzZNBhKl-s8_eqv^kGh-NJ5iK)G(%COgwPO0f;>f{XG!^|d;8_BC!V>lHt&6O{Jn1+9=HDDz`pHEZ|^M@ zOs$!@xfq-Xo;RzbxR;w`V3t}-$L3qd=AUn^EG;cBo>*RdF?jLBu`lnNX?910b{+$! zxe*UK$;O=NC!J9*nl-ogEi9NU8Kv#Wfb2XP@Sh+FwEWp;{lZs3 zfboiouoqlPlYX2o{D?dUXBKxD2)eeXKAdP`O>)>{4cLucwG>^ z+Kc+&hSnFB+6jPQm?n9WZw;d$Ps2ghjZ#9MCcTx!(N^o_&C9P(mIN3@m`4{^-;LTi zAZAbQ14op9t6<=zFkjEW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DG(gGZ*g=Jku8nwrwz`MX0895nlvV#h2SX8q;& zCJySaeR}NvNp2x!-`EPw&24^TPFTJ@xfRDo^S+Co2y;WrQGa5GK@YmA&;UMFP40 z^+zg`Hl9HR4$$raDIUtNNkeCN)oSrtA&Kgc?vb;N7~a5ZiP59gj#o_#fY@e|zqq0Ibm7VE_OC delta 136 zcmWN=ISRs107X%LoagVXF-~z#qbm?xfJ+iAF1Q3CMZhYg7gAWbm2AS^ci?=!iHUx( zxnpq1k*7eB5@jk>sZpmvlNOdX9lG@BGhoPwF)ow07v3H=^K_~+o$ErE>g!6^y3wuf Tbf4PnaJfFuPT;5RDR>?K(5o 'Account successfully updated', 'no_tokens' => 'You have not created any personal access tokens.', 'enable_sounds' => 'Enable sound effects', + 'enable_confetti' => 'Enable confetti effects', ); diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 4f2c7aa55f..a1d9e2b080 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -89,15 +89,24 @@ -

+
-
+
+
+ +
+
+
+@include ('partials.confetti-js') @endif @@ -44,6 +45,7 @@ {!! $message !!} + @include ('partials.confetti-js') @endif diff --git a/resources/views/partials/confetti-js.blade.php b/resources/views/partials/confetti-js.blade.php new file mode 100644 index 0000000000..733d96d1b4 --- /dev/null +++ b/resources/views/partials/confetti-js.blade.php @@ -0,0 +1,25 @@ +@if (auth()->user() && auth()->user()->enable_confetti=='1') + +@endif \ No newline at end of file diff --git a/webpack.mix.js b/webpack.mix.js index fee66acfb2..f4e0e69d5d 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -65,6 +65,7 @@ mix [ "./resources/assets/js/snipeit.js", //this is the actual Snipe-IT JS - require()s bootstrap.js "./resources/assets/js/snipeit_modals.js", + "./node_modules/canvas-confetti/dist/confetti.browser.js", ], "./public/js/build/app.js" //because of compiling - this does not work very well :( )