# sufee-admin-dashboard **Repository Path**: mirrors_puikinsh/sufee-admin-dashboard ## Basic Information - **Project Name**: sufee-admin-dashboard - **Description**: A simple yet powerful Bootstrap 4 admin dashboard template. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-01-10 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sufee HTML5 Admin Dashboard Template v2.1 [![Sufee Admin Dashboard](./sufee-admin-dashboard.png)](https://colorlib.com/polygon/sufee/index.html) **Sufee** is a responsive Bootstrap 5 Admin Dashboard Template. Originally built with Bootstrap 4, this major release brings a complete modernization with Bootstrap 5, Vite build system, component-based architecture, and professional error handling. [View Live Demo →](https://colorlib.com/polygon/sufee/index.html) ## What's New in v2.1 ### Code Quality & Developer Experience - **ESLint & Prettier Integration**: Professional code quality tools with automatic formatting - **Error Handling System**: Custom 404/500 pages with user-friendly messaging and error reporting - **Self-Hosted Fonts**: Privacy-focused local font hosting eliminating Google Fonts CDN - **Enhanced Build Process**: Optimized Vite configuration with error page integration ### Key Improvements - **Professional Error Pages**: Beautiful, branded error pages with helpful navigation - **Global Error Handler**: Automatic error capture and user-friendly notifications - **GDPR Compliance**: Eliminated external CDN dependencies for better privacy - **Development Tools**: Enhanced debugging with toast notifications and error tracking ## What's New in v2.0 ### Major Changes - **Bootstrap 5 Migration**: Complete upgrade from Bootstrap 4 to Bootstrap 5 - **Modern Build System**: Replaced Grunt/Bower with Vite and NPM - **Component Architecture**: New dynamic partials system for code reusability - **ES6 Modules**: Modern JavaScript with proper module imports - **Performance**: Optimized build process with code splitting and tree shaking - **Developer Experience**: Hot Module Replacement (HMR) for instant updates ### Key Features - **Professional Error Handling**: Custom 404/500 pages with user-friendly messaging - **Code Quality Tools**: ESLint & Prettier integration for consistent, high-quality code - **Self-Hosted Fonts**: Privacy-focused local font hosting (no external CDN dependencies) - **Responsive Design**: Works flawlessly on all devices and screen sizes - **Dynamic Sidebar**: Collapsible navigation with smooth animations - **Reusable Components**: Partials system eliminates code duplication - **Modern Charting**: Chart.js integration with interactive visualizations - **Data Tables**: Advanced tables with sorting, searching, and pagination - **Form Validation**: Built-in validation with user-friendly error messages - **Multiple Layouts**: Various dashboard configurations and page templates - **Authentication Pages**: Login, register, and password reset pages - **100+ UI Components**: Comprehensive widget and component library ## Getting Started ### Requirements - Node.js 14.x or higher - NPM or Yarn package manager ### Installation 1. **Clone the repository** ```bash git clone https://github.com/your-repo/sufee-admin-dashboard.git cd sufee-admin-dashboard ``` 2. **Install dependencies** ```bash npm install ``` 3. **Start development server** ```bash npm run dev ``` The development server will start at `http://localhost:3001` 4. **Build for production** ```bash npm run build ``` Production files will be generated in the `dist/` directory ## Project Structure ``` sufee-admin-dashboard/ ├── src/ # Source files │ ├── partials/ # Reusable HTML components │ │ ├── head-common.html │ │ ├── header.html │ │ ├── sidebar.html │ │ └── scripts-common.html │ ├── scripts/ # JavaScript modules │ │ ├── app.js # Main application class │ │ ├── components/ # UI components │ │ └── utils/ # Utility functions │ ├── styles/ # SCSS stylesheets │ │ ├── main.scss # Main stylesheet │ │ ├── variables.scss # Theme variables │ │ └── components/ # Component styles │ ├── *.html # Page templates │ └── main.js # JavaScript entry point ├── public/ # Static assets │ ├── favicon.ico │ └── images/ # Image assets ├── dist/ # Production build (generated) ├── package.json # NPM dependencies └── vite.config.js # Vite configuration ``` ## Creating Pages ### Basic Page Template Create a new HTML file in the `src/` directory: ```html Your Page - Sufee Admin
``` ### Adding to Navigation To add your page to the sidebar navigation, edit `src/partials/sidebar.html`: ```html
  • Your Page
  • ``` ## Partials System The partials system automatically loads common components: | Partial | Description | |---------|-------------| | `head-common` | Meta tags, CSS imports, favicon | | `sidebar` | Navigation sidebar with menu | | `header` | Top header with search and user menu | | `scripts-common` | Common JavaScript imports | ### Partial Attributes - `data-partial="name"` - Specifies which partial to load - `data-partial-replace="true"` - Replaces the container element - `data-page="id"` - Sets active navigation item - `data-breadcrumb` - Enables breadcrumb generation ## Components ### Charts ```javascript // Chart.js is automatically available const ctx = document.getElementById('myChart').getContext('2d'); const chart = new Chart(ctx, { type: 'line', data: { /* ... */ } }); ``` ### Data Tables ```html
    ``` ### Forms ```html
    ``` ## Customization ### Theme Variables Edit `src/styles/variables.scss` to customize colors and sizing: ```scss :root { --sidebar-width: 280px; --sidebar-collapsed-width: 70px; --sidebar-bg: #272c33; --sidebar-text: #c8c9ce; --sidebar-text-active: #ffffff; // Add your custom variables } ``` ### Adding Components 1. Create component file in `src/scripts/components/` 2. Import in relevant pages or main.js 3. Add styles in `src/styles/components/` ## Build Configuration The project uses Vite for building. Configuration is in `vite.config.js`: - Development server runs on port 3001 - SCSS is compiled with modern-compiler API - Source maps enabled for debugging - Legacy browser support available via plugin ## Browser Support - Chrome (last 2 versions) - Firefox (last 2 versions) - Safari (last 2 versions) - Edge (last 2 versions) - No Internet Explorer support ## Available Scripts | Command | Description | |---------|-------------| | `npm run dev` | Start development server with HMR | | `npm run build` | Build for production | | `npm run preview` | Preview production build | | `npm run lint` | Lint and auto-fix JavaScript code | | `npm run format` | Format all files with Prettier | | `npm run quality:fix` | Run both linting and formatting | ## Dependencies ### Core - Bootstrap 5.3.x - Vite 5.x - Sass ### UI Libraries - Chart.js 4.x - DataTables 1.13.x - Font Awesome 6.x - Themify Icons - Flag Icons ### Utilities - NO jQuery - 100% vanilla JavaScript - Native HTML5 form validation - Modern ES6+ JavaScript modules - Various chart libraries (Chart.js, etc.) ## Migration from v1.x If upgrading from version 1.x: 1. **Bootstrap Classes**: Update Bootstrap 4 classes to Bootstrap 5 - `.badge-*` → `.bg-*` - `.font-weight-*` → `.fw-*` - `.text-left/right` → `.text-start/end` - Data attributes: `data-toggle` → `data-bs-toggle` 2. **jQuery**: Completely removed in v2.0. All code now uses vanilla JavaScript 3. **Build Process**: Grunt tasks are replaced with NPM scripts 4. **File Structure**: Move custom code to src/ directory ## Contributing 1. Fork the repository 2. Create your 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 ## License Sufee is licensed under The MIT License (MIT). You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the final products. But you always need to state that Colorlib is the original author of this template. ## Related Resources ### Colorlib Admin Dashboard Articles - [42 Free Bootstrap Admin Dashboard Templates 2025](https://colorlib.com/wp/free-bootstrap-admin-dashboard-templates/) - [42 Best Free HTML5 Admin Dashboard Templates 2025](https://colorlib.com/wp/free-html5-admin-dashboard-templates/) - [39 Best Free & Responsive Admin Templates 2025](https://colorlib.com/wp/free-admin-templates/) - [42 Best Free Dashboard Templates For Admins 2025](https://colorlib.com/wp/free-dashboard-templates/) ### Premium Dashboard Solutions **[DashboardPack.com](https://dashboardpack.com)** offers premium admin dashboard templates and UI kits for multiple frameworks: **Popular Templates:** - **[ArchitectUI](https://dashboardpack.com/theme-details/architectui-dashboard/)** - Multi-purpose Bootstrap admin template (HTML, React, Angular versions) - **[Marketing Dashboard](https://dashboardpack.com/theme-details/marketing-dashboard/)** - Conversion funnel focused dashboard - **[Sales Dashboard](https://dashboardpack.com/theme-details/sales-dashboard/)** - Sales and finance data visualization - **[Adminty HTML Dashboard](https://dashboardpack.com/theme-details/adminty-html-dashboard/)** - Modern Bootstrap-based admin panel **Available Frameworks:** - HTML5 & Bootstrap 5 themes - React (with Reactstrap) - Angular (with @ng-bootstrap) - Vue.js templates **Key Features:** - Multiple layout arrangements (3+ per theme) - 10+ pre-defined color schemes - Unlimited customization options - Personal and Developer licensing ## Credits - Original template by [Colorlib](https://colorlib.com) - Bootstrap 5 migration and modernization by contributors - Icons by Font Awesome, Themify, and Flag Icons - Charts powered by Chart.js and various libraries