Vite Naive Template

screenshot of Vite Naive Template
vite
vue
scss
unocss

一个简洁的 NaiveUI + Vite 7 + Vue3 + TSX + Pinia + UnoCSS + Unplugin + ESLint(v9) + Vitest 的 B 端后台 Admin 原型模板框架, 开箱即用, 内置模块化管理、Commit 规范检测 Husky + lint-staged 、路由鉴权、暗黑模式、Unplugin Auto 自动导入, 适合快速搭建和二次开发实际业务场景, 持续更新最新技术栈

Overview

The Vite Naive Template is a starter template built on Vite 5.x, TypeScript, Vue 3.4, Naive UI, Pinia, UnoCSS, and Unplugin Auto Import. It is designed to provide a clean and efficient framework for building B-end admin prototypes with Naive UI. The template includes features such as modular code management with Pinia, route authentication, dark mode support with UnoCSS, and automatic component importing with Unplugin. It is constantly updated to incorporate the latest technology stack.

Features

  • Vite 5 + Vue 3.4 + TypeScript: The template is built using the latest versions of Vite, Vue, and TypeScript.
  • UI Framework: Naive UI 2.x: The template utilizes the Naive UI 2.x framework for the user interface.
  • State Management: Pinia: Pinia is integrated into the template to provide modular code management.
  • Unit Testing Framework: Vitest: The template includes Vitest, a unit testing framework.
  • Automatic Component Importing: Unplugin Auto Import: Unplugin Auto Import is built-in, allowing for automatic importing of components.
  • Atomic Styles and Icon Importing: UnoCSS + Iconify: The template includes UnoCSS and Iconify for atomic style inlining and automatic icon importing.
  • ESlint and Stylelint: ESlint and Stylelint are pre-configured in the template for linting purposes.
  • Axios Integration: The template includes a pre-configured Axios instance for making HTTP requests, which can be used with Pinia Actions.
  • IconFont Component: The template includes a custom <IconFont /> component for easy use of IconFont icons.
  • Plugin Integration: $ModalXxxx Plugin: The template includes a service-style plugin for convenient plugin usage.
  • Route Authentication: Route authentication is pre-packaged in the template, and Nprogress is integrated for progress tracking. Authentication can be modified by editing the permission.ts file.
  • Modular Component Development Environment: The template provides a modular component development environment with separate directories for page components, route components, styles, etc.
  • Complete Business Process Abstraction: The template abstracts a complete business process involving three core pages: login, list, and detail. This saves configuration time and allows developers to focus on writing their own business code.

Summary

The Vite Naive Template is a powerful starter template for building B-end admin prototypes using Vite, TypeScript, and Vue with Naive UI. It offers a range of features including modular code management, route authentication, automatic component importing, and more. The template is designed to be lightweight and highly efficient, allowing developers to focus on their own business code. With regular updates to incorporate the latest technology stack, the Vite Naive Template provides a solid foundation for building practical business applications.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

unocss
UnoCSS

UnoCSS is an instant, on-demand atomic CSS engine that generates utility classes at build time. It's highly customizable, extremely fast, and compatible with Tailwind CSS utilities while offering additional features like attributify mode and pure CSS icons.

dashboard
Dashboard

A dashboard style website template is a pre-designed layout that features a user interface resembling a control panel or dashboard. It typically includes charts, graphs, tables, and other data visualization tools that allow users to monitor and analyze data in real-time.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

pinia
Pinia

Pinia is the official state management library for Vue.js. It provides a simple and intuitive API with full TypeScript support, devtools integration, and modular design. Pinia replaces Vuex as the recommended state management solution for Vue 3.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.