Skip to content

Repository files navigation

Halolight Angular | Admin Pro

LicenseAngularTypeScriptTailwind CSSTanStack Query

基于 Angular 21 + Tailwind CSS 4 的现代化中文后台管理系统,使用 Standalone Components、Signals 和 TanStack Query 构建。

功能亮点

  • Angular 21 + TypeScript:使用最新 Standalone Components 和 Signals API
  • 响应式状态:Angular Signals (signal, computed, effect) + RxJS
  • 新控制流语法@if@for@switch@defer
  • Tailwind CSS 4:原子化样式、CSS 变量主题系统
  • 自定义 UI 组件:shadcn 风格组件库
  • 可拖拽仪表盘:angular-gridster2 支持布局持久化
  • ECharts 图表:主题自适应配色
  • TanStack Angular Query:强大的数据获取和缓存
  • Mock.js 集成:环境变量一键启用

目录结构

src/app/
├── app.ts # 根组件 (Standalone)
├── app.config.ts # 应用配置 (Providers)
├── app.routes.ts # 路由配置
├── core/ # 核心模块
│ ├── guards/ # 路由守卫
│ ├── interceptors/ # HTTP 拦截器
│ └── services/ # 单例服务
├── shared/components/ui/ # UI 组件
├── features/ # 功能模块
├── layouts/ # 布局组件
└── environments/ # 环境配置

快速开始

环境要求:Node.js 20.19+ 或 22.12+

npm install
npm start # 开发模式 http://localhost:4200
npm run build # 生产构建
npm test# 运行测试

技术栈

类别技术
核心框架Angular 21 (Standalone + Signals)
类型系统TypeScript 5.9
路由@angular/router + View Transitions
状态管理Signals + RxJS
数据请求HttpClient + TanStack Angular Query
样式Tailwind CSS 4 + class-variance-authority
图表ECharts + ngx-echarts
测试Vitest + jsdom

Angular 21 特性

  • Standalone Components:无需 NgModule
  • Signalssignal(), computed(), effect(), model(), input(), output()
  • 新控制流@if, @for, @switch, @defer
  • View Transitions:页面切换动画
  • Function-based Guards/Interceptors

许可证

MIT

About

🔺 Angular 21 企业级管理后台 - Signals 响应式, Standalone Components, spartan/ui, TypeScript, RBAC, Mock 数据 → halolight-angular.h7ml.cn

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages