feat: 添加 VitePress 配置文件,更新文档以支持多语言和 SEO 优化,同时增强用户自助服务功能的介绍

This commit is contained in:
wood911010 committed 2026-01-17 22:15:39 +08:00
1 parent 4b0248e197
commit d37cf3b53b
9 files changed
+305 -10

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
import { defineConfig } from 'vitepress'
export default defineConfig({
// 网站基本信息
title: 'License Manager',
lang: 'zh-CN',
// SEO 和 Meta 标签
head: [
// 基础 favicon
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/images/logo.png' }],
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/images/logo.png' }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/images/logo.png' }],
['link', { rel: 'manifest', href: '/site.webmanifest' }],
// SEO 基础标签
['meta', { name: 'description', content: 'License Manager - 专业的企业级软件授权管理系统,支持在线/离线授权模式,基于硬件绑定确保安全性。一站式解决授权码生成、发放、验证与全生命周期管理。' }],
['meta', { name: 'keywords', content: '软件授权管理,License Manager,授权码生成,硬件绑定,软件许可,许可证管理,软件保护' }],
['meta', { name: 'author', content: 'License Manager Team' }],
['meta', { name: 'robots', content: 'index, follow' }],
['meta', { name: 'googlebot', content: 'index, follow' }],
['meta', { name: 'language', content: 'zh-CN' }],
// Open Graph (Facebook, LinkedIn, etc.)
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:title', content: 'License Manager - 专业软件授权管理系统' }],
['meta', { property: 'og:description', content: '企业级软件授权管理系统,支持在线/离线授权,硬件绑定保护,完整生命周期管理' }],
['meta', { property: 'og:image', content: '/images/logo.png' }],
['meta', { property: 'og:url', content: 'https://lm.cedar-v.com' }],
['meta', { property: 'og:site_name', content: 'License Manager' }],
['meta', { property: 'og:locale', content: 'zh_CN' }],
// Twitter Card
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:title', content: 'License Manager - 专业软件授权管理系统' }],
['meta', { name: 'twitter:description', content: '企业级软件授权管理系统,支持在线/离线授权,硬件绑定保护,完整生命周期管理' }],
['meta', { name: 'twitter:image', content: '/images/logo.png' }],
['meta', { name: 'twitter:site', content: '@LicenseManager' }],
// 移动设备优化
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0' }],
['meta', { name: 'mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'default' }],
['meta', { name: 'apple-mobile-web-app-title', content: 'License Manager' }],
// 安全和性能
['meta', { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }],
['meta', { name: 'format-detection', content: 'telephone=no' }],
// 结构化数据 (JSON-LD)
['script', { type: 'application/ld+json' }, JSON.stringify({
'@context': 'https://schema.org',
'@type': 'SoftwareApplication',
'name': 'License Manager',
'description': '专业的企业级软件授权管理系统,支持在线/离线授权模式,基于硬件绑定确保安全性',
'url': 'https://lm.cedar-v.com',
'applicationCategory': 'DeveloperApplication',
'operatingSystem': 'Cross-platform',
'offers': {
'@type': 'Offer',
'price': '0',
'priceCurrency': 'CNY'
},
'author': {
'@type': 'Organization',
'name': 'License Manager Team'
},
'publisher': {
'@type': 'Organization',
'name': 'License Manager Team'
}
})]
],
// 多语言配置
locales: {
root: {
label: '中文',
lang: 'zh-CN'
},
en: {
label: 'English',
lang: 'en-US',
link: '/en/'
}
},
// 主题配置
themeConfig: {
// SEO 友好的站点信息
siteTitle: 'License Manager',
// 搜索优化
search: {
provider: 'local',
options: {
locales: {
'zh-CN': {
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档'
},
modal: {
displayDetails: '显示详细列表',
resetButtonTitle: '清除查询条件',
backButtonTitle: '返回上一级',
noResultsText: '无法找到相关结果',
footer: {
selectText: '选择',
selectKeyAriaLabel: 'enter',
navigateText: '切换',
navigateUpKeyAriaLabel: '上箭头',
navigateDownKeyAriaLabel: '下箭头',
closeText: '关闭',
closeKeyAriaLabel: 'escape'
}
}
}
}
}
}
}
},
// Vite 配置
vite: {
build: {
rollupOptions: {
output: {
manualChunks: {
'mermaid': ['mermaid']
}
}
}
}
}
})
+17 -2
View File
@@ -1,10 +1,15 @@
# Introduction # Introduction
License Manager is an independent software licensing management system that provides license code generation, distribution, validation, and management services for software systems. It supports both online and offline licensing modes, with hardware-based binding mechanisms ensuring security. License Manager is an independent software licensing management system that provides license code generation, distribution, validation, and management services for software systems. The system supports both enterprise-level management backend and user-end self-service, supporting both online and offline licensing modes, with hardware-based binding mechanisms ensuring security.
## System Overview ## System Overview
License Manager is an enterprise-grade software licensing management solution that helps software vendors achieve a complete lifecycle management cycle from license generation, distribution, validation to full lifecycle management. The system adopts a frontend-backend separation architecture, providing an intuitive management interface and rich API interfaces, supporting multiple deployment modes to meet licensing management needs in different scenarios. License Manager is an enterprise-grade software licensing management solution that provides dual-end service modes:
- **Enterprise End**: Helps software vendors achieve a complete lifecycle management cycle from license generation, distribution, validation to full lifecycle management
- **User End**: Provides end users with convenient self-service for purchasing, activating, and managing licenses, supporting mobile phone registration, online payment, device binding and other functions
The system adopts a frontend-backend separation architecture, providing an intuitive management interface and rich API interfaces, supporting multiple deployment modes to meet licensing management needs in different scenarios.
## Core Features ## Core Features
@@ -28,6 +33,14 @@ License Manager is an enterprise-grade software licensing management solution th
- **Status Monitoring**: Real-time license status viewing, usage statistics - **Status Monitoring**: Real-time license status viewing, usage statistics
- **Operation Auditing**: Complete operation log records for traceability and auditing - **Operation Auditing**: Complete operation log records for traceability and auditing
### 👤 User Self-Service
- **Self-Service Purchase**: Users register and log in via mobile phone, select packages and device quantities, pay via Alipay
- **One-Click Activation**: After obtaining license code, open the software product and enter the license code, system automatically binds device and activates
- **Order Management**: Support viewing order history, applying for invoices and other services
- **Device Management**: Support viewing bound devices, unbinding unnecessary devices
- **Auto Renewal**: Support heartbeat monitoring and automatic renewal reminders
### 🚀 Easy Integration ### 🚀 Easy Integration
- **RESTful API**: Standardized API interfaces, easy to integrate with existing systems - **RESTful API**: Standardized API interfaces, easy to integrate with existing systems
@@ -104,6 +117,8 @@ sequenceDiagram
- **Embedded Systems**: Require offline verification without network dependency - **Embedded Systems**: Require offline verification without network dependency
- **API Services**: Need to control usage limits such as call counts, concurrency, etc. - **API Services**: Need to control usage limits such as call counts, concurrency, etc.
- **Software Trials**: Provide trial period licenses with automatic feature restrictions upon expiration - **Software Trials**: Provide trial period licenses with automatic feature restrictions upon expiration
- **Individual User Software**: Support user self-service purchase, online payment, device binding activation
- **Multi-Device Management**: Support single user using on multiple devices, support device unbinding and reallocation
## Next Steps ## Next Steps
+32 -1
View File
@@ -13,9 +13,13 @@ This guide walks through the complete lifecycle of License Manager: “create li
## End-to-End Flow ## End-to-End Flow
License Manager supports two operation flows: traditional B2B flow (for enterprise customers) and user-end self-service flow (for individual users).
### Traditional B2B Flow
```mermaid ```mermaid
graph TD graph TD
A[Create License Policy] --> B[Generate License Code] A[Admin creates license policy] --> B[Generate License Code]
B --> C{Deployment Mode?} B --> C{Deployment Mode?}
C -->|Online/Hybrid| D[Customer enters code<br/>+ auto activation] C -->|Online/Hybrid| D[Customer enters code<br/>+ auto activation]
C -->|Offline| E[Collect fingerprint<br/>Generate license] C -->|Offline| E[Collect fingerprint<br/>Generate license]
@@ -30,6 +34,33 @@ graph TD
3. **Customer activation**: The client bundles license code + fingerprint to exchange for a license, or loads an offline license directly. 3. **Customer activation**: The client bundles license code + fingerprint to exchange for a license, or loads an offline license directly.
4. **In-life management**: Monitor heartbeats, enforce revocations, trigger renewals, or increase capacity as needed. 4. **In-life management**: Monitor heartbeats, enforce revocations, trigger renewals, or increase capacity as needed.
### User-End Self-Service Flow
```mermaid
graph TD
A[User mobile login] --> B[Select package & device count]
B --> C[Alipay payment]
C --> D[Order management]
D --> E{Action needed?}
E -->|Apply invoice| F[Apply for invoice]
E -->|Get license code| G[Get license code]
F --> G
G --> H[Open product & enter code<br/>Auto device binding activation]
H --> I[Device management]
I --> J{Action needed?}
J -->|Unbind device| K[Remove device]
K --> I
I --> L[Heartbeat monitoring & auto renewal]
```
1. **User registration**: Users register and log in via mobile phone number.
2. **Package selection**: Browse available packages and select required feature modules and device quantities.
3. **Payment**: Complete online payment via Alipay.
4. **Order management**: Apply for invoices and obtain corresponding license codes in order management.
5. **Product activation**: Users open the software product, enter the license code, and the system automatically binds the current device fingerprint for activation.
6. **Device management**: View bound devices and unbind unnecessary devices.
7. **Monitoring**: System monitors device status through heartbeat mechanism and supports automatic renewal.
## Business Scenarios ## Business Scenarios
### Scenario 1: 7-day trial, customer deploys 100 servers (online mode) ### Scenario 1: 7-day trial, customer deploys 100 servers (online mode)
+13 -2
View File
@@ -73,6 +73,16 @@ hero:
</div> </div>
</article> </article>
<article class="lm-feature-card" style="--accent-from:#a855f7; --accent-to:#ec4899;">
<div class="lm-feature-icon">
<iconify-icon icon="solar:user-hand-up-bold-duotone"></iconify-icon>
</div>
<div>
<h3>User Self-Service</h3>
<p>Mobile registration, online purchase & payment, device binding activation, order & invoice management.</p>
</div>
</article>
<article class="lm-feature-card" style="--accent-from:#f43f5e; --accent-to:#fb7185;"> <article class="lm-feature-card" style="--accent-from:#f43f5e; --accent-to:#fb7185;">
<div class="lm-feature-icon"> <div class="lm-feature-icon">
<iconify-icon icon="solar:rocket-bold-duotone"></iconify-icon> <iconify-icon icon="solar:rocket-bold-duotone"></iconify-icon>
@@ -163,9 +173,10 @@ Check out the [Getting Started Guide](/en/guide/getting-started) for detailed de
This project is licensed under the [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html) license This project is licensed under the [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html) license
- ✅ Free to use, study, modify, and distribute - ✅ Free to use, study, modify, and distribute
- ✅ Commercial use allowed - ✅ Personal and commercial use allowed
- ⚠️ Logo, trademarks and other brand elements may not be modified when used under open source license
- ⚠️ Derivative works must also be open source - ⚠️ Derivative works must also be open source
- ℹ️ For proprietary licenses or commercial support, please contact the maintainers - ℹ️ For proprietary licenses, brand customization, or commercial support, please contact the maintainers
## Join Community ## Join Community
+17 -2
View File
@@ -1,10 +1,15 @@
# 介绍 # 介绍
软件授权管理平台是一个独立的软件授权管理系统,为软件系统提供授权码生成、分发、验证和管理服务。支持在线和离线两种授权模式,基于硬件绑定的授权机制确保安全性。 软件授权管理平台是一个独立的软件授权管理系统,为软件系统提供授权码生成、分发、验证和管理服务。系统同时支持企业级管理后台和用户端自助服务,支持在线和离线两种授权模式,基于硬件绑定的授权机制确保安全性。
## 系统概述 ## 系统概述
License Manager 是一个企业级的软件授权管理解决方案,帮助软件厂商实现从授权生成、分发、验证到全生命周期管理的完整闭环。系统采用前后端分离架构,提供直观的管理界面和丰富的 API 接口,支持多种部署模式,满足不同场景下的授权管理需求。 License Manager 是一个企业级的软件授权管理解决方案,提供双端服务模式:
- **企业端**:帮助软件厂商实现从授权生成、分发、验证到全生命周期管理的完整闭环
- **用户端**:为终端用户提供自助购买、激活、管理授权的便捷服务,支持手机号注册、在线支付、设备绑定等功能
系统采用前后端分离架构,提供直观的管理界面和丰富的 API 接口,支持多种部署模式,满足不同场景下的授权管理需求。
## 核心特性 ## 核心特性
@@ -28,6 +33,14 @@ License Manager 是一个企业级的软件授权管理解决方案,帮助软
- **状态监控**:实时查看授权状态、使用统计 - **状态监控**:实时查看授权状态、使用统计
- **操作审计**:完整的操作日志记录,便于追溯和审计 - **操作审计**:完整的操作日志记录,便于追溯和审计
### 👤 用户自助服务
- **自助购买**:用户通过手机号注册登录,选择套餐和设备数量,支付宝在线支付
- **一键激活**:获取授权码后打开软件产品输入授权码,系统自动绑定设备并激活
- **订单管理**:支持查看订单历史、申请开发票等服务
- **设备管理**:支持查看已绑定设备、解绑不需要的设备
- **自动续费**:支持心跳监控和自动续费提醒
### 🚀 易于集成 ### 🚀 易于集成
- **RESTful API**:标准化的 API 接口,易于与现有系统集成 - **RESTful API**:标准化的 API 接口,易于与现有系统集成
@@ -104,6 +117,8 @@ sequenceDiagram
- **嵌入式系统**:需要离线验证,不依赖网络连接 - **嵌入式系统**:需要离线验证,不依赖网络连接
- **API 服务**:需要控制调用次数、并发数等使用量限制 - **API 服务**:需要控制调用次数、并发数等使用量限制
- **软件试用**:提供试用期授权,到期后自动限制功能 - **软件试用**:提供试用期授权,到期后自动限制功能
- **个人用户软件**:支持用户自助购买、在线支付、设备绑定激活
- **多设备管理**:支持单个用户在多台设备上使用,支持设备解绑和重新分配
## 下一步 ## 下一步
+32 -1
View File
@@ -13,9 +13,13 @@
## 操作流程总览 ## 操作流程总览
License Manager 支持两种操作流程:传统 B2B 流程(面向企业客户)和用户端自助流程(面向个人用户)。
### 传统 B2B 流程
```mermaid ```mermaid
graph TD graph TD
A[创建授权策略] --> B[生成授权码] A[运营后台创建授权策略] --> B[生成授权码]
B --> C{部署模式?} B --> C{部署模式?}
C -->|在线/混合| D[客户录入授权码<br/>+自动激活] C -->|在线/混合| D[客户录入授权码<br/>+自动激活]
C -->|离线| E[采集硬件指纹<br/>生成许可证] C -->|离线| E[采集硬件指纹<br/>生成许可证]
@@ -30,6 +34,33 @@ graph TD
3. **客户激活**:客户端携带授权码 + 硬件指纹向服务端换取许可证,或直接加载离线许可证。 3. **客户激活**:客户端携带授权码 + 硬件指纹向服务端换取许可证,或直接加载离线许可证。
4. **运行期管理**:通过心跳监控活跃状态,必要时下发禁用、续费、扩容等策略。 4. **运行期管理**:通过心跳监控活跃状态,必要时下发禁用、续费、扩容等策略。
### 用户端自助流程
```mermaid
graph TD
A[用户手机号注册登录] --> B[选择套餐与设备数量]
B --> C[支付宝支付购买]
C --> D[订单管理]
D --> E{需要操作?}
E -->|开发票| F[申请发票]
E -->|获取授权码| G[获取授权码]
F --> G
G --> H[打开产品输入授权码<br/>自动绑定设备激活]
H --> I[设备管理]
I --> J{需要操作?}
J -->|解绑设备| K[移除设备]
K --> I
I --> L[心跳监控 & 自动续费]
```
1. **用户注册登录**:用户使用手机号注册账号并登录系统。
2. **选择套餐配置**:浏览可选套餐,选择所需功能模块和设备数量。
3. **支付购买**:通过支付宝完成在线支付。
4. **订单管理**:在订单管理中可申请开发票,获取对应的授权码。
5. **激活软件产品**:用户打开软件产品,输入授权码,系统自动绑定当前设备指纹并完成激活。
6. **设备管理**:支持在用户端查看已绑定设备、解绑不需要的设备。
7. **运行监控**:系统通过心跳机制监控设备状态,支持自动续费。
## 业务示例 ## 业务示例
### 示例 1:试用 7 天,客户部署100台服务器(在线模式) ### 示例 1:试用 7 天,客户部署100台服务器(在线模式)
+13 -2
View File
@@ -73,6 +73,16 @@ hero:
</div> </div>
</article> </article>
<article class="lm-feature-card" style="--accent-from:#a855f7; --accent-to:#ec4899;">
<div class="lm-feature-icon">
<iconify-icon icon="solar:user-hand-up-bold-duotone"></iconify-icon>
</div>
<div>
<h3>用户自助服务</h3>
<p>手机号注册登录、在线购买支付、设备绑定激活、订单发票管理。</p>
</div>
</article>
<article class="lm-feature-card" style="--accent-from:#f43f5e; --accent-to:#fb7185;"> <article class="lm-feature-card" style="--accent-from:#f43f5e; --accent-to:#fb7185;">
<div class="lm-feature-icon"> <div class="lm-feature-icon">
<iconify-icon icon="solar:rocket-bold-duotone"></iconify-icon> <iconify-icon icon="solar:rocket-bold-duotone"></iconify-icon>
@@ -163,9 +173,10 @@ hero:
本项目采用 [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html) 开源许可证 本项目采用 [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html) 开源许可证
- ✅ 自由使用、学习、修改和分发 - ✅ 自由使用、学习、修改和分发
- ✅ 允许商业使用 - ✅ 允许个人和商业使用
- ⚠️ 开源使用时不得修改logo、商标等品牌元素
- ⚠️ 衍生作品必须同样开源 - ⚠️ 衍生作品必须同样开源
- ℹ️ 如需专有许可证或商业支持,请联系项目维护者 - ℹ️ 如需专有许可证、品牌定制或商业支持,请联系项目维护者
## 加入社区 ## 加入社区
+13
View File
@@ -0,0 +1,13 @@
User-agent: *
Allow: /
# 允许搜索引擎索引所有内容
Allow: /guide/
Allow: /en/
# 阻止索引一些不重要的路径
Disallow: /node_modules/
Disallow: /.vitepress/
# Sitemap
Sitemap: https://lm.cedar-v.com/sitemap.xml
+29
View File
@@ -0,0 +1,29 @@
{
"name": "License Manager - 专业软件授权管理系统",
"short_name": "License Manager",
"description": "企业级软件授权管理系统,支持在线/离线授权,硬件绑定保护",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#3b82f6",
"orientation": "portrait-primary",
"categories": ["productivity", "developer-tools"],
"lang": "zh-CN",
"icons": [
{
"src": "/images/logo.png",
"sizes": "32x32",
"type": "image/png"
},
{
"src": "/images/logo.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/images/logo.png",
"sizes": "512x512",
"type": "image/png"
}
]
}