Skip to content

About

NewLife.Cube.TDesign

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewLife.Cube.TDesign - Vue 3 + TDesign + Vite 6 skin for NewLife.Cube

GitHub License Nuget Downloads Nuget Nuget (with prereleases) test

🌐 简体中文 | 繁體中文 | Español | Deutsch | 日本語 | Français | Português | Русский | 한국어 | العربية

The TDesign skin for the third-generation Web API front end of Cube (NewLife.Cube), delivered as a standalone NuGet package and repository. Built with Vue 3 + TDesign + Vite 6, it renders metadata-driven lists and forms and follows the Cube skin design specification.

Contents: Highlights · Documentation · Quick Start · Local Development · Build and Test · Release · Related repositories · Ecosystem Map · Team · License

Highlights

  • Out of the box: reference the NuGet package, run AddCube + UseCube, and the embedded admin console is ready; no physical front-end files are required.
  • Metadata driven: lists, forms, search and detail pages are rendered from backend meta; adding an entity needs no front-end work.
  • Shared npm core: uses @newlifex/cube for API, page logic, field mapping and auth; the framework-agnostic core is shared by all Cube skins.
  • Skin switching: Cube auto-discovers referenced skin packages; switch with the SpaSkin setting.
  • Feature parity with Cube.Vue / Cube.React: sign-in (captcha, MFA, tenant, OAuth), registration, password recovery, account activation, workbench, account center (profile/security), tree tables, column settings, import/export, developer actions, menu search, multi-tab navigation, theming and UI language.
  • Two test layers: Vitest for utility modules, Playwright for sign-in, navigation, entity CRUD, config pages, permissions, account center and list enhancements.

Documentation

Quick Start

Reference NewLife.Cube and NewLife.Cube.TDesign, then start the host:

dotnet add package NewLife.Cube
dotnet add package NewLife.Cube.TDesign
services.AddCube();

var app = builder.Build();
app.UseCube(app.Environment);
app.MapControllers();
app.Run();

Local Development

Start the demo backend and the Vite dev server:

# backend (SQLite, http://localhost:7120)
dotnet run --project UserCenter/UserCenter.csproj

# frontend (http://localhost:5187)
cd NewLife.Cube.TDesign/web
pnpm install
pnpm dev

Local boundary channel

.NET: dotnet build 魔方TDesign.slnx -p:UseLocalNewLifeSource=true uses the sibling ../NewLife.Cube source. npm: pnpm link:local / pnpm unlink:local switches to ../NewLife.Cube/packages/cube and back.

Build and Test

Build the web assets, run checks and pack the NuGet package:

cd NewLife.Cube.TDesign/web
pnpm build
pnpm test:unit

dotnet build 魔方TDesign.slnx -c Release
dotnet pack NewLife.Cube.TDesign/NewLife.Cube.TDesign.csproj -c Release -o out

E2E tests

The Playwright suite in E2ETest/ covers every menu page plus CRUD, config, permission and navigation flows against the demo site.

# demo site on http://localhost:7120 (SQLite)
dotnet run --project UserCenter/UserCenter.csproj

cd E2ETest
pnpm install
pnpm exec playwright install chromium
pnpm test

Set E2E_BASE_URL (for example http://localhost:7117) to target another host/port, or E2E_NO_WEBSERVER=1 when the site is already running. Admin credentials come from ADMIN_USER / ADMIN_PASS (default admin / admin).

Release

CI builds the web assets, embeds wwwroot into the DLL, then packs and publishes NewLife.Cube.TDesign to NuGet.

NewLife user center

UserCenter/ is a deployable user center built on generation 3. It focuses on identity and platform capabilities: users, roles, menus, permissions, OAuth/SSO, multi-tenant and security audit, plus a small school sample and a field-control showcase.

Every generation-3 skin repository ships the same UserCenter project wired to that skin. To change the look of your user center, publish that repository's UserCenter; the database, permissions and data stay the same. That is how one user center can rotate 10 skins without a data migration.

dotnet run --project UserCenter/UserCenter.csproj

Default login: admin/admin; the first user becomes administrator.

Skin matrix

Generation 2 (MVC): ACE and Layui are the common choices

Skin Stack Location Status
ACE (default) Razor + Bootstrap NewLife.CubeNC/Views/ACE Maintained
Layui Razor + Layui NewLife.CubeNC/Views/layui Maintained
AdminLTE, ElementUI, LayuiAdmin, Metronic, Metronic8, Tabler, Blazor Razor NewLife.Cube repository, separate NuGet packages Frozen: compiles only, no new features

Generation 3 (API): official Vue + 10 independent skins

Skin Stack Repository
Vue (official) Vue 3 + Element Plus NewLife.Cube.Vue in the NewLife.Cube repository
React React 19 + Ant Design 6 NewLife.Cube.React
ArcoVue Vue 3 + Arco Design Vue NewLife.Cube.ArcoVue
Soybean Vue 3 + Soybean Admin + Element Plus NewLife.Cube.Soybean
NaiveUI Vue 3 + Naive UI NewLife.Cube.NaiveUI
Vuetify Vue 3 + Vuetify 3 NewLife.Cube.Vuetify
TDesign Vue 3 + TDesign NewLife.Cube.TDesign
MUI React 19 + MUI 6 NewLife.Cube.MUI
Shadcn React 19 + Radix UI + Tailwind CSS 4 NewLife.Cube.Shadcn
Angular Angular 19 + NG-ZORRO NewLife.Cube.Angular
Svelte SvelteKit 2 + Svelte 5 + Tailwind CSS 4 NewLife.Cube.Svelte

All generation-3 skins consume the same backend metadata and the shared npm package @newlifex/cube. Reference a skin package (or project) and Cube discovers it; choose the active skin with the SpaSkin setting. NewLife.Cube.Vue, NewLife.Cube.React, NewLife.Cube.ArcoVue and NewLife.Cube.Soybean are already on NuGet; the other skins build from their own repositories.

Ecosystem Map

NewLife is a layered ecosystem of independently versioned open-source projects. The map below is shared verbatim by every NewLife repository; each project links to its repository and its primary NuGet package.

Project What it does Downloads
Foundation
NewLife.Core Logging, configuration, caching, networking, serialization, scheduling and APM tracing. NuGet
NewLife.XCode Data middleware: single tables at the tens-of-billions scale, automatic sharding, read-write splitting, 10+ databases. NuGet
NewLife.Net High-performance network library: 1.77M pps / 14.5 Gbps on a single machine (TCP 1KB, 2026-10), 4M long-lived TCP connections. NuGet
NewLife.Remoting Protocol communication and RPC framework for client/server applications and IoT devices. NuGet
NewLife.Agent Installs .NET applications as OS daemons: Windows services and Linux systemd. NuGet
NewLife.Templates dotnet new project templates for console, web, API, service, data and IoT projects. NuGet
Data & Messaging
NewLife.Redis Redis client with microsecond latency, millions of ops/s and built-in message queues. NuGet
NewLife.RocketMQ Pure managed RocketMQ client for Apache RocketMQ and Alibaba Cloud Message Queue. NuGet
NewLife.MQTT MQTT client and server, including Alibaba Cloud IoT connectivity. NuGet
NewLife.NovaDb Hybrid database in C#: embedded or networked, relational, time-series, message queue and KV in one. NuGet
NewLife.MySql MySql driver and helper layer built on the NewLife data stack. NuGet
NewLife.TDengine Pure managed TDengine ADO.NET driver with REST, WebSocket and native RPC transports, no native dependency. NuGet
NewLife.Presto Pure C# Presto/Trino ADO.NET driver with zero third-party dependencies and XCode ORM integration. NuGet
Web & Distributed
NewLife.Cube Rapid admin-platform framework: permissions, SSO, OAuth server and CRUD scaffolding. NuGet
NewLife.Cube.React Decoupled front-end sample for Cube: WebAPI backend with Swagger plus React, Vue and Blazor clients. NuGet
Stardust Distributed service platform: node management, APM, configuration center, registry and release center. NuGet
AntJob Distributed task and real-time data scheduling platform with sharding, retries and backfill. NuGet
AI & Vision
NewLife.AI Unified client for 46 LLM providers plus ChatAI, a ready-to-run web chat application. NuGet
NewLife.Imaging Pure managed imaging foundation: pixel model, codec contracts, drawing and metadata with zero native dependencies. —
NewLife.Vision Vision algorithms: OCR, barcodes, object detection and face recognition on top of NewLife.Imaging. —
NewLife.ML Tabular machine learning for .NET: turn database tables and Excel sheets into deployable prediction and classification models. —
Industrial & IoT
NewLife.IoT IoT standard library defining protocol contracts and device abstractions. NuGet
NewLife.Modbus Modbus TCP/RTU/ASCII implementation on top of NewLife.IoT. NuGet
NewLife.Siemens Siemens PLC protocol on top of NewLife.IoT. NuGet
NewLife.Omron Omron PLC protocol on top of NewLife.IoT. NuGet
NewLife.Melsec Mitsubishi Melsec PLC protocol on top of NewLife.IoT. NuGet
NewLife.Schneider Schneider PLC communication driver built on Modbus TCP. NuGet
NewLife.OPC OPC client for industrial data access. —
NewLife.BACnet BACnet building-automation protocol stack. NuGet
NewLife.LoRa LoRaWAN low-power wide-area protocol for long-range IoT connectivity. NuGet
ZeroIoT Lightweight open-source IoT platform with gateway and device management. —
Vehicle Telematics
NewLife.JT808 JT/T 808 vehicle positioning protocol: 70+ message bodies, 2011/2013/2019. NuGet
NewLife.JT809 JT/T 809 platform-to-platform protocol for transport authorities. NuGet
NewLife.JT1078 JT/T 1078 in-vehicle video: RTP parsing, FLV/fMP4 remuxing and live streaming. NuGet
Domain Components
NewLife.Office One package for Excel, Word, PPT, PDF and 15+ document formats. NuGet
NewLife.Audio Cross-platform audio: codecs, device I/O, DSP, containers and streaming. NuGet
NewLife.Video Video codecs, container formats, frame processing and streaming. NuGet
NewLife.Map Unified interface over Baidu, AMap, Tencent and Tianditu with geocoding and coordinate conversion. NuGet
NewLife.IP IPv4 geolocation with an offline memory-mapped database and an online API fallback. NuGet
NewLife.Holiday Chinese holiday and adjusted-workday identification library with built-in annual data and lunar festival support, fully offline. NuGet
Tools & Products
CrazyCoder Developer toolbox: network, serial port, crypto, regex, Modbus and MQTT. NuGet
NewLife.UnitTest Unit test extensions: test base classes, data-driven tests and dependency-injection helpers. NuGet
GitCandy Self-hosted Git source code management system. —
LuckyClover Installs the matching .NET runtime automatically when launched from an older host. —

Badges show the primary package of each project; theme, extension and satellite packages are listed on their NuGet pages. The 30+ packages not listed here (FTP, Office extensions, protocol drivers and more) are available under the NewLifeX organization and on newlifex.com.

Team

NewLife

Founded in 2002, the NewLife team has spent more than two decades on the .NET and IoT ecosystem, maintains nearly 100 open-source projects (44 of them core to this map), and delivers integrated software and hardware solutions for power, logistics, healthcare, industrial control and internet industries. We live by the motto "learning has no seniority — mastery earns respect".

Open-source components have been downloaded 6.48M times from NuGet (ecosystem-wide, as of 2026-10).

Website: https://newlifex.com · Open source organization: https://github.com/NewLifeX

WeChat Official Account: 智能大石头 (scan to follow)

智能大石头

License

This project is licensed under MIT; the strong-name certificate newlife.snk is published so you can build and replace assemblies yourself, and the sources may be modified and redistributed without attribution.

If this project is helpful to you, welcome to Star it, share it with your team, or provide improvement suggestions via Issue/PR.

About

NewLife.Cube.TDesign

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages