Go to file
Aigars Silkalns f4b69c631c Refactor: Remove console logs and warnings for cleaner production code
- Removed various console.log and console.warn statements from chart-initializer.js, main-core.js, main-form-advanced.js, main-form-basic.js, main-inbox.js, main-minimal-modern.js, main-minimal.js, main-upload.js, and main-tables.js to reduce noise in the console output.
- Updated typography.html to remove inline code example text.
- Updated examples.js to replace moment.js with dayjs for date manipulation.
- Added landing.scss for landing page styles and integrated it into main.scss.
- Created main-tables.js for dedicated DataTables initialization.
- Adjusted vite.config.js for better chunking of vendor libraries.
- Removed references to Morris.js in charts.js and custom.scss, transitioning fully to Chart.js.
- Added checks for already initialized maps in maps.js to prevent redundant initializations.
2025-09-05 16:47:08 +03:00
.github/workflows Create jekyll-gh-pages.yml 2025-06-12 10:21:59 +03:00
docs Refactor SCSS styles for consistency and readability; update color codes to lowercase hex values, remove unnecessary whitespace, and improve formatting across multiple files. Enhance JavaScript utility functions for better readability and maintainability, including DOM manipulation and validation functions. Optimize table performance with lazy loading and progressive initialization. Improve HTML sanitization and validation logic for credit card and file type checks. 2025-09-03 16:58:29 +03:00
production Refactor: Remove console logs and warnings for cleaner production code 2025-09-05 16:47:08 +03:00
src Refactor: Remove console logs and warnings for cleaner production code 2025-09-05 16:47:08 +03:00
tests feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
.editorconfig feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
.gitignore feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
.npmignore Small cleanup 2025-07-28 21:36:34 +03:00
.prettierignore feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
.prettierrc feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
LICENSE.txt Code cleanup, fixed Dashboard pages 2025-06-13 17:13:12 +03:00
README.md Added favicon and changelog 2025-07-28 21:27:57 +03:00
README_CN.md Remove iCheck vendor dependency and replace with modern CSS-only styling 2025-06-20 13:36:45 +03:00
changelog.md Added favicon and changelog 2025-07-28 21:27:57 +03:00
dev-watch.sh feat: Introduce modern jQuery-free minimal bundle with native DOM utilities, easing functions, and various vendor libraries 2025-09-05 14:54:21 +03:00
eslint.config.js feat: Complete Phase 1 modernization - security, progress bars, and IE compatibility removal 2025-07-25 10:33:32 +03:00
package-lock.json feat: Introduce modern jQuery-free minimal bundle with native DOM utilities, easing functions, and various vendor libraries 2025-09-05 14:54:21 +03:00
package.json feat: Introduce modern jQuery-free minimal bundle with native DOM utilities, easing functions, and various vendor libraries 2025-09-05 14:54:21 +03:00
vite.config.js Refactor: Remove console logs and warnings for cleaner production code 2025-09-05 16:47:08 +03:00

README.md

Gentelella Admin Template

Modern Bootstrap 5 Admin Dashboard Template with Vite Build System

Gentelella is a powerful, free-to-use Bootstrap 5 admin template that has been completely modernized with Vite, performance optimizations, and the latest web technologies. This template provides a comprehensive foundation for building admin panels, dashboards, and back-end applications.

Gentelella Bootstrap Admin Template

โœจ What's New in v2.1.0 (Latest Release)

  • โšก jQuery-Free Core System - Complete main-core.js modernization with vanilla JavaScript
  • ๐ŸŽจ Brand-Consistent Favicon Suite - Modern favicon system with comprehensive browser support
  • ๐ŸŽฏ Perfect UI Alignment - Precision vertical centering for navigation elements
  • ๐Ÿงน Production-Ready Code - Clean console output with professional debugging
  • ๐Ÿ“ฑ Enhanced Mobile Experience - Improved touch interactions and responsive behavior
  • ๐Ÿ”ง Modern DOM Utilities - Comprehensive jQuery-free DOM manipulation library

Previous Major Release: v2.0.0

  • ๐Ÿš€ Vite Build System - Lightning-fast development and optimized production builds
  • ๐Ÿ“ฆ Bootstrap 5.3.7 - Latest Bootstrap with modern design system
  • โšก Performance Optimized - 90% smaller initial bundle size with smart code splitting
  • ๐Ÿ”ง Modern JavaScript - ES6+ modules with dynamic imports
  • ๐ŸŽฏ TypeScript Ready - Full TypeScript support available
  • ๐Ÿ“ฑ Mobile First - Responsive design optimized for all devices
  • ๐ŸŽจ Morris.js Eliminated - Complete replacement with modern Chart.js

๐Ÿ“Š Performance Improvements

  • Before: 779 KB monolithic JavaScript bundle
  • After: 79 KB initial load + smart chunk loading
  • Result: 90% smaller initial bundle with 40-70% faster page loads

๐Ÿš€ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/puikinsh/gentelella.git
cd gentelella

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Development Commands

# Development with hot reload
npm run dev

# Production build with optimizations
npm run build

# Preview production build locally
npm run preview

๐Ÿ—๏ธ Project Structure

gentelella/
โ”œโ”€โ”€ production/           # HTML templates and static assets
โ”‚   โ”œโ”€โ”€ *.html           # 42 pre-built admin pages
โ”‚   โ””โ”€โ”€ images/          # Image assets
โ”œโ”€โ”€ src/                 # Source files
โ”‚   โ”œโ”€โ”€ main-core.js     # Core essentials (79 KB, jQuery-free)
โ”‚   โ”œโ”€โ”€ main.scss        # Styles entry point
โ”‚   โ”œโ”€โ”€ js/              # Custom JavaScript (modernized)
โ”‚   โ”œโ”€โ”€ scss/            # Custom SASS files
โ”‚   โ”œโ”€โ”€ utils/           # Modern utility libraries
โ”‚   โ”‚   โ””โ”€โ”€ dom-modern.js # jQuery-free DOM manipulation
โ”‚   โ””โ”€โ”€ modules/         # Feature-specific modules
โ”‚       โ”œโ”€โ”€ charts.js    # Chart functionality (219 KB)
โ”‚       โ”œโ”€โ”€ forms.js     # Form enhancements (200 KB)
โ”‚       โ”œโ”€โ”€ tables.js    # DataTables functionality
โ”‚       โ””โ”€โ”€ dashboard.js # Dashboard widgets
โ”œโ”€โ”€ dist/                # Production build output
โ”œโ”€โ”€ vite.config.js       # Vite configuration
โ””โ”€โ”€ package.json         # Dependencies and scripts

๐ŸŽฏ Smart Loading System

The template uses intelligent code splitting with modern JavaScript:

  • Core Bundle (79 KB): Essential libraries with jQuery-free DOM utilities
  • Chart Module (219 KB): Only loads on pages with charts
  • Form Module (200 KB): Only loads on pages with advanced forms
  • Table Module: Only loads on pages with DataTables
  • Dashboard Module: Only loads dashboard-specific widgets

โšก Modern JavaScript Architecture

jQuery-Free Core System

  • Vanilla JavaScript: All core functionality uses modern DOM APIs
  • Dynamic Loading: Intelligent module loading with caching and performance monitoring
  • Error Boundaries: Robust error handling with development debugging tools
  • Loading States: Visual indicators for better user experience

DOM Utilities Library

  • Complete jQuery Replacement: Full-featured DOM manipulation without dependencies
  • Animation Support: Slide, fade, and custom animations using CSS transitions
  • Event Management: Modern event handling with custom event support
  • Responsive Utilities: Mobile-first responsive behavior management

๐Ÿ“ฑ Responsive Design

Built with mobile-first approach:

  • Phones: Optimized touch interfaces
  • Tablets: Adaptive layouts
  • Desktops: Full-featured experience
  • Large Screens: Enhanced productivity layouts

๐Ÿ› ๏ธ Customization

Adding New Pages

  1. Create HTML file in production/ directory
  2. Add entry to vite.config.js input configuration
  3. Reference appropriate modules for functionality needed

Custom Styling

// src/scss/custom.scss
.my-custom-component {
  // Your custom styles
}

Adding Features

// Load modules conditionally
if (document.querySelector('.chart-container')) {
  const charts = await loadModule('charts');
}

Modern Favicon System

The template includes a comprehensive favicon suite optimized for 2025 standards:

  • SVG-first approach - Sharp display across all devices and screen densities
  • Apple Touch Icon - Optimized for iOS devices and web apps
  • Android Chrome Icons - PWA-ready with multiple sizes (192x192, 512x512)
  • Legacy ICO support - Fallback for older browsers
  • Web App Manifest - Complete PWA integration with theme colors

๐Ÿ“ฆ Available Components

Dashboard Features

  • Multiple Dashboard Layouts - 3 different dashboard designs
  • Widgets - Various dashboard widgets and cards
  • Charts - Chart.js, ECharts, Sparklines integration
  • Maps - Interactive world maps with jVectorMap

Form Components

  • Advanced Forms - Multi-step wizards, validation
  • Form Elements - Rich text editors, date pickers
  • File Upload - Drag & drop file upload with progress
  • Input Enhancements - Autocomplete, tags, switches

UI Elements

  • Tables - DataTables with sorting, filtering, pagination
  • Typography - Comprehensive typography system
  • Icons - Font Awesome 6
  • Media Gallery - Image gallery with lightbox
  • Calendar - Full-featured calendar component

Additional Pages

  • E-commerce - Product listings, shopping cart
  • User Management - Profiles, contacts, projects
  • Authentication - Login, registration pages
  • Error Pages - 403, 404, 500 error pages

๐ŸŽจ Built With

Core Technologies

  • ๐Ÿš€ Vite 7.0.6 - Ultra-fast ES module build system with 90% smaller bundle size
  • ๐Ÿ“ฆ Bootstrap 5.3.6 - Latest Bootstrap with modern design system
  • ๐ŸŽจ SASS Modules - Modern CSS architecture with custom theme variables
  • โšก Vanilla JavaScript - Modern DOM APIs with jQuery-free core system
  • ๐Ÿ”ง Modern DOM Utilities - Custom library for jQuery-free DOM manipulation

Charts & Visualization

  • Chart.js 4.4.2 - Modern charting library (Morris.js completely removed)
  • ECharts 5.6.0 - Professional data visualization
  • Sparklines - Mini charts and graphs
  • jVectorMap - Interactive world maps

Form & UI Libraries

  • Select2 - Enhanced select dropdowns
  • Tempus Dominus - Bootstrap 5 date/time picker
  • Ion Range Slider - Range slider component
  • Switchery - iOS-style toggle switches
  • DataTables - Advanced table functionality

Utilities

  • Day.js - Lightweight date library
  • NProgress - Progress bars for page loading
  • Autosize - Auto-resizing textareas
  • Font Awesome 6 - Icon library

๐Ÿ”ง Configuration

Vite Configuration

The template includes optimized Vite configuration with:

  • Smart code splitting for optimal loading
  • Asset optimization with cache-busting
  • Development server with hot reload
  • Production builds with compression

Performance Features

  • Tree Shaking - Removes unused code
  • Code Splitting - Loads only what's needed
  • Caching Strategy - Optimized for browser caching

๐Ÿš€ Deployment

Build for Production

npm run build

Deploy to Various Platforms

  • Netlify: Drag and drop the dist folder
  • Vercel: Connect your GitHub repository
  • GitHub Pages: Use the built-in GitHub Actions
  • Traditional Hosting: Upload dist folder contents

๐Ÿค Contributing

We welcome contributions! To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

git clone https://github.com/your-username/gentelella.git
cd gentelella
npm install
npm run dev

๐Ÿ“š Documentation & Demo

๐Ÿ’ผ Showcase Your Work

We would love to see how you use this awesome admin template. You can notify us about your site, app or service by tweeting to @colorlib. Once the list grows long enough we will write a post similar to this showcase to feature the best examples.

๐Ÿ“ฆ Installation via Package Managers

# npm
npm install gentelella --save

# yarn  
yarn add gentelella

# bower (legacy)
bower install gentelella --save

๐ŸŒ Community Integrations

Gentelella has been integrated into various frameworks:

Let us know if you have done integration for this admin template on other platforms and frameworks and we'll be happy to share your work.

๐ŸŽจ Other Templates and Resources by Colorlib

๐Ÿ“„ License

Gentelella is licensed under The MIT License (MIT). You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

Attribution Required: Colorlib must be credited as the original author.

๐Ÿ‘ฅ Maintainers

๐Ÿ™ Acknowledgments

  • Bootstrap team for the amazing CSS framework
  • All contributors who have helped improve this template
  • The open-source community for the excellent libraries

Made with โค๏ธ by Colorlib