From c235e0ae302bb60b44673df6f595e7bbfd5e0c92 Mon Sep 17 00:00:00 2001 From: Ilya Stepenko <38462532+VampireAotD@users.noreply.github.com> Date: Sat, 2 Nov 2024 12:40:47 +0200 Subject: [PATCH] Added ripple --- src/resources/js/app.ts | 2 + .../features/theme-switcher/ThemeSwitcher.vue | 2 +- .../js/shared/directives/ripple.test.ts | 83 +++++++++++++++++++ src/resources/js/shared/directives/ripple.ts | 42 ++++++++++ ...{tailwind.config.js => tailwind.config.ts} | 8 +- 5 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 src/resources/js/shared/directives/ripple.test.ts create mode 100644 src/resources/js/shared/directives/ripple.ts rename src/{tailwind.config.js => tailwind.config.ts} (93%) diff --git a/src/resources/js/app.ts b/src/resources/js/app.ts index 0d061979..24fa8156 100644 --- a/src/resources/js/app.ts +++ b/src/resources/js/app.ts @@ -4,6 +4,7 @@ import { createInertiaApp } from '@inertiajs/vue3'; import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; import { ZiggyVue } from 'ziggy-js'; +import ripple from '@/shared/directives/ripple'; import { HasRolePlugin } from '@/shared/plugins/user/authorize'; import '../css/app.css'; @@ -23,6 +24,7 @@ createInertiaApp({ .use(plugin) .use(ZiggyVue) .use(HasRolePlugin) + .directive('ripple', ripple) .mount(el); }, progress: { diff --git a/src/resources/js/features/theme-switcher/ThemeSwitcher.vue b/src/resources/js/features/theme-switcher/ThemeSwitcher.vue index 20332f9a..1cc8d704 100644 --- a/src/resources/js/features/theme-switcher/ThemeSwitcher.vue +++ b/src/resources/js/features/theme-switcher/ThemeSwitcher.vue @@ -10,7 +10,7 @@ const toggleDarkMode = useToggle(isDark);