diff --git a/.env.example b/.env.example index b7bad90..ccd6635 100644 --- a/.env.example +++ b/.env.example @@ -42,7 +42,7 @@ SESSION_DOMAIN=null BROADCAST_CONNECTION=log FILESYSTEM_DISK=local -QUEUE_CONNECTION=database +QUEUE_CONNECTION=redis CACHE_STORE=database # CACHE_PREFIX= diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 8de12ae..2ade2dd 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -23,11 +23,5 @@ public function run(): void 'email' => 'admin@omniboard.com', 'password' => bcrypt('password'), // A senha será 'password' ]); - - User::factory()->create([ - 'name' => 'Test User', - 'email' => 'test@example.com', - ]); - $this->call([OmniBoardSeeder::class]); } } diff --git a/resources/css/app.css b/resources/css/app.css index b5c61c9..eba5c64 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -1,3 +1,53 @@ @tailwind base; @tailwind components; @tailwind utilities; + + +/* Animações para a página de welcome */ +@keyframes float { + 0% { + transform: translateY(0px); + } + + 50% { + transform: translateY(-15px); + } + + 100% { + transform: translateY(0px); + } +} + +@keyframes slide-up { + from { + opacity: 0; + transform: translateY(20px); + } + + to { + opacity: 1; + transform: translateY(0); + } +} + +.animate-float { + animation: float 6s ease-in-out infinite; +} + +.animate-slide-up { + animation: slide-up 0.8s ease-out forwards; + opacity: 0; +} + +.delay-100 { + animation-delay: 0.1s; +} + +.delay-200 { + animation-delay: 0.2s; +} + +.delay-300 { + animation-delay: 0.3s; +} +/* Fim das animações */ \ No newline at end of file diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index 61a0492..c6d32b8 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -10,17 +10,13 @@ const props = defineProps({ const page = usePage(); const userTenantId = page.props.auth.user.tenant_id; -// Variável para guardar a inscrição do canal let channel = null; onMounted(() => { if (userTenantId) { - // Verifica se o Echo já está carregado if (window.Echo) { connectToChannel(); } else { - // Se não, espera um pouco e tenta de novo (Fallback simples) - // Ou melhor: escuta o evento de carregamento, mas o setInterval é mais prático aqui const checkEcho = setInterval(() => { if (window.Echo) { clearInterval(checkEcho); @@ -41,7 +37,6 @@ const connectToChannel = () => { }) .error((err) => { console.error("❌ Erro de Conexão/Auth:", err); - // Dica: Se o erro for detalhado, ele vai aparecer aqui. }); }; diff --git a/resources/js/Pages/Welcome.vue b/resources/js/Pages/Welcome.vue index e90d5c2..2f46ad7 100644 --- a/resources/js/Pages/Welcome.vue +++ b/resources/js/Pages/Welcome.vue @@ -1,273 +1,224 @@ - - - - \ No newline at end of file