chore: olho da password em todos os campos, JS morto removido, .gitignore

- assets/js/password-toggle.js, carregado nos dois layouts: liga os botões
  existentes e cria um para cada campo de password que não o tenha (eram 3
  em 12). aria-pressed, aria-label que muda, fora da ordem de tabulação, e
  volta a ocultar ao submeter.
- Removidas 23 bibliotecas/folhas sem nenhuma referência (193 ficheiros),
  incluindo o jQuery 3.2.1 (CVE-2020-11022/11023) que se servia por URL, o
  Splide (a galeria passou a masonry própria em d70f13a), owl, mixitup,
  masonry, magnific-popup, slicknav, jquery.lazy, fullpage, TweenMax,
  circle-progress, progressbar, o template polo e cópias antigas do
  Bootstrap/FontAwesome em site/assets.
- .table-responsive nas listagens de eventos e galerias.
- .gitignore: sem os 5 padrões herdados do fotografia; *.sql/*.dump
  ignorados (exceto migrações e o esquema); .trash/ das imagens; nota sobre
  vendor/ versionado de propósito. database/andmore_fitme3070_dev.sql passa a
  database/schema.sql (só estrutura, 0 INSERT).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andreandClaude Opus 5.5 committed 2026-09-25 07:19:54 +01:00
1 parent 895b3d58d7
commit 2f8f68c61a
200 files changed
+107 -54235

No files matched your search

+372
View File
@@ -0,0 +1,372 @@
-- phpMyAdmin SQL Dump
-- version 5.2.3
-- https://www.phpmyadmin.net/
--
-- Host: mariadb
-- Generation Time: Jun 12, 2026 at 07:47 AM
-- Server version: 11.8.5-MariaDB-ubu2404
-- PHP Version: 8.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `andmore_fitme3070_dev`
--
-- --------------------------------------------------------
--
-- Table structure for table `applied_migrations`
--
CREATE TABLE `applied_migrations` (
`filename` varchar(150) NOT NULL,
`applied_at` datetime NOT NULL DEFAULT current_timestamp(),
`applied_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `fitme3070_info`
--
CREATE TABLE `fitme3070_info` (
`id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`adress` varchar(200) DEFAULT NULL,
`phone` varchar(25) NOT NULL,
`telephone` varchar(25) NOT NULL,
`whatsapp` varchar(13) NOT NULL,
`instagram` varchar(200) NOT NULL,
`facebook` varchar(200) NOT NULL,
`messenger` varchar(200) NOT NULL,
`email` varchar(100) NOT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`website` varchar(100) NOT NULL,
`google_maps` varchar(500) NOT NULL,
`google_maps_link` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `galleries`
--
CREATE TABLE `galleries` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `gallery`
--
CREATE TABLE `gallery` (
`i_id` int(11) NOT NULL,
`i_file_name` varchar(255) NOT NULL,
`i_file_type` varchar(50) NOT NULL,
`i_project_id` int(11) NOT NULL,
`i_created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `horario`
--
CREATE TABLE `horario` (
`id` int(11) NOT NULL,
`id_modalidade` int(11) NOT NULL,
`dia_semana` enum('segunda','terça','quarta','quinta','sexta','sábado','domingo') DEFAULT NULL,
`hora_inicio` varchar(15) NOT NULL,
`hora_fim` time DEFAULT NULL,
`local` enum('sala1','sala2','crossfit','') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `images`
--
CREATE TABLE `images` (
`img_id` int(11) NOT NULL,
`img_file_name` varchar(255) DEFAULT NULL,
`img_created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `modalidades`
--
CREATE TABLE `modalidades` (
`m_id` int(11) NOT NULL,
`deleted_at` datetime DEFAULT NULL,
`nome` varchar(150) NOT NULL,
`cor` varchar(50) NOT NULL DEFAULT '#808080',
`icon` varchar(100) NOT NULL,
`descricao` varchar(1500) NOT NULL,
`item_order` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `system_settings`
--
CREATE TABLE `system_settings` (
`setting_key` varchar(100) NOT NULL,
`setting_value` text DEFAULT NULL,
`updated_by` int(10) UNSIGNED DEFAULT NULL,
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `team`
--
CREATE TABLE `team` (
`id` int(11) NOT NULL,
`photo` varchar(250) NOT NULL,
`name` varchar(150) NOT NULL,
`birthday` date NOT NULL,
`at` enum('gym','crossfit') DEFAULT NULL,
`status` enum('ativo','inativo') NOT NULL DEFAULT 'ativo',
`description` varchar(300) DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp(),
`deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(100) NOT NULL,
`email` varchar(190) NOT NULL,
`phone` varchar(20) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`city` varchar(100) DEFAULT NULL,
`postal_code` varchar(20) DEFAULT NULL,
`notes` text DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT 1,
`email_opt_out` tinyint(1) NOT NULL DEFAULT 0,
`sms_opt_out` tinyint(1) NOT NULL DEFAULT 0,
`marketing_consent` tinyint(1) DEFAULT NULL,
`andmore_id` bigint(20) UNSIGNED DEFAULT NULL,
`password_hash` varchar(255) DEFAULT NULL,
`role` enum('sysadmin','admin','staff','client') NOT NULL DEFAULT 'client',
`last_login_at` datetime DEFAULT NULL,
`last_login_ip` varchar(45) DEFAULT NULL,
`last_login_ua` varchar(512) DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `website_offer`
--
CREATE TABLE `website_offer` (
`o_img` varchar(150) NOT NULL,
`o_description` varchar(1000) NOT NULL,
`o_id` int(11) NOT NULL,
`o_title` varchar(150) NOT NULL,
`o_deleted_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `work_hours`
--
CREATE TABLE `work_hours` (
`id` int(11) NOT NULL,
`week_day` enum('segunda','terça','quarta','quinta','sexta','sabado','domingo','feriados') NOT NULL,
`open` time NOT NULL,
`close` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `applied_migrations`
--
ALTER TABLE `applied_migrations`
ADD PRIMARY KEY (`filename`);
--
-- Indexes for table `fitme3070_info`
--
ALTER TABLE `fitme3070_info`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `galleries`
--
ALTER TABLE `galleries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `gallery`
--
ALTER TABLE `gallery`
ADD PRIMARY KEY (`i_id`);
--
-- Indexes for table `horario`
--
ALTER TABLE `horario`
ADD PRIMARY KEY (`id`),
ADD KEY `id_modalidade` (`id_modalidade`);
--
-- Indexes for table `images`
--
ALTER TABLE `images`
ADD PRIMARY KEY (`img_id`);
--
-- Indexes for table `modalidades`
--
ALTER TABLE `modalidades`
ADD PRIMARY KEY (`m_id`);
--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`
ADD PRIMARY KEY (`setting_key`);
--
-- Indexes for table `team`
--
ALTER TABLE `team`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `uq_users_email` (`email`),
ADD KEY `idx_users_andmore` (`andmore_id`),
ADD KEY `idx_users_role` (`role`);
--
-- Indexes for table `website_offer`
--
ALTER TABLE `website_offer`
ADD PRIMARY KEY (`o_id`);
--
-- Indexes for table `work_hours`
--
ALTER TABLE `work_hours`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `fitme3070_info`
--
ALTER TABLE `fitme3070_info`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `galleries`
--
ALTER TABLE `galleries`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gallery`
--
ALTER TABLE `gallery`
MODIFY `i_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `horario`
--
ALTER TABLE `horario`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `images`
--
ALTER TABLE `images`
MODIFY `img_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `modalidades`
--
ALTER TABLE `modalidades`
MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `team`
--
ALTER TABLE `team`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `website_offer`
--
ALTER TABLE `website_offer`
MODIFY `o_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `work_hours`
--
ALTER TABLE `work_hours`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `horario`
--
ALTER TABLE `horario`
ADD CONSTRAINT `horario_ibfk_1` FOREIGN KEY (`id_modalidade`) REFERENCES `modalidades` (`m_id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;