@foldspace-fe/casdoor-next-auth-kit 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,31 +3,31 @@
3
3
  [![npm version](https://img.shields.io/npm/v/@foldspace-fe/casdoor-next-auth-kit?label=npm)](https://www.npmjs.com/package/@foldspace-fe/casdoor-next-auth-kit)
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@foldspace-fe/casdoor-next-auth-kit?label=downloads)](https://www.npmjs.com/package/@foldspace-fe/casdoor-next-auth-kit)
5
5
 
6
- Headless Casdoor auth and billing toolkit for Next.js.
6
+ 面向 Next.js 的无头 Casdoor 认证与 billing 工具包。
7
7
 
8
- This package provides:
8
+ 提供:
9
9
 
10
- - Host-side login, signup, callback, and logout route shells
11
- - React provider and hook wrappers for auth state
12
- - Headless billing runtime for SaaS subscriptions, virtual products, and credits
13
- - CLI helpers to generate and validate the managed host files
10
+ - 宿主站内登录、注册、回调、注销路由壳
11
+ - 认证状态与动作的 React Provider / Hook
12
+ - SaaS 订阅、虚拟商品、积分商品的 headless billing runtime
13
+ - 生成和校验宿主受管文件的 CLI
14
14
 
15
- ## Install
15
+ ## 安装
16
16
 
17
17
  ```bash
18
18
  npm install @foldspace-fe/casdoor-next-auth-kit
19
19
  ```
20
20
 
21
- Or with your preferred package manager:
21
+ 也可以使用你常用的包管理器:
22
22
 
23
23
  ```bash
24
24
  pnpm add @foldspace-fe/casdoor-next-auth-kit
25
25
  yarn add @foldspace-fe/casdoor-next-auth-kit
26
26
  ```
27
27
 
28
- ## Quick Start
28
+ ## 快速开始
29
29
 
30
- ### Auth
30
+ ### 认证导入
31
31
 
32
32
  ```ts
33
33
  import {
@@ -36,7 +36,7 @@ import {
36
36
  } from '@foldspace-fe/casdoor-next-auth-kit';
37
37
  ```
38
38
 
39
- ### React Auth Hooks
39
+ ### React 认证
40
40
 
41
41
  ```tsx
42
42
  'use client';
@@ -48,14 +48,14 @@ import {
48
48
  } from '@foldspace-fe/casdoor-next-auth-kit/react';
49
49
  ```
50
50
 
51
- ### Billing Runtime
51
+ ### Billing runtime
52
52
 
53
53
  ```ts
54
54
  import type { BillingCatalogConfig } from '@foldspace-fe/casdoor-next-auth-kit/billing';
55
55
  import { BillingProvider } from '@foldspace-fe/casdoor-next-auth-kit/react';
56
56
  ```
57
57
 
58
- ### Billing Actions
58
+ ### Billing 动作
59
59
 
60
60
  ```tsx
61
61
  'use client';
@@ -67,7 +67,7 @@ import {
67
67
  } from '@foldspace-fe/casdoor-next-auth-kit/react';
68
68
  ```
69
69
 
70
- ## CLI
70
+ ## 最常用命令
71
71
 
72
72
  ```bash
73
73
  npx @foldspace-fe/casdoor-next-auth-kit init
@@ -75,22 +75,22 @@ npx @foldspace-fe/casdoor-next-auth-kit update
75
75
  npx @foldspace-fe/casdoor-next-auth-kit check
76
76
  ```
77
77
 
78
- ## Package Exports
78
+ ## 包导出
79
79
 
80
80
  - `@foldspace-fe/casdoor-next-auth-kit`
81
81
  - `@foldspace-fe/casdoor-next-auth-kit/react`
82
82
  - `@foldspace-fe/casdoor-next-auth-kit/billing`
83
83
  - `@foldspace-fe/casdoor-next-auth-kit/next`
84
84
 
85
- ## Docs
85
+ ## 文档
86
86
 
87
- - [Repository README](https://github.com/foldspace-stack/casdoor-next-auth-kit)
88
- - [Auth docs](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/auth/README.md)
89
- - [Billing docs](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/billing/README.md)
90
- - [CLI docs](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/cli/README.md)
91
- - [Skills docs](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/skills/README.md)
87
+ - [仓库 README](https://github.com/foldspace-stack/casdoor-next-auth-kit)
88
+ - [Auth 文档](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/auth/README.md)
89
+ - [Billing 文档](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/billing/README.md)
90
+ - [CLI 文档](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/cli/README.md)
91
+ - [Skills 文档](https://github.com/foldspace-stack/casdoor-next-auth-kit/blob/main/docs/skills/README.md)
92
92
 
93
93
  ## npm
94
94
 
95
- - Package page: https://www.npmjs.com/package/@foldspace-fe/casdoor-next-auth-kit
96
- - Publish scope: `@foldspace-fe`
95
+ - 包页面:https://www.npmjs.com/package/@foldspace-fe/casdoor-next-auth-kit
96
+ - 发布 scope:`@foldspace-fe`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldspace-fe/casdoor-next-auth-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {