它会做什么
- 宣布页面、类别、模块和页面扩展(
/page表格、表格、图表和布局/base) (中文(简体) ). - 登记许可、警卫路线和范围数据给租户(
/permissions, (中文(简体) ),/guards, (中文(简体) ),/tenant-scoped-model(......) (中文(简体) ). - 认证请求和管理用户、会话和外部身份
/auth) (中文(简体) ). - 宣布通知类别并发出通知
/notifications),并让 HTML 模板服务器侧(/html-render) (中文(简体) ). - 让我们对照合同而不是执行而汇编一个模块,
@antelopejs/dms。 。 。 .
安装
将接口添加到扩展 DMS 的模块中:
pnpm add @antelopejs/interface-dms
取决于其范围足够广,每个模块共享一个已安装的复制件,并且从不捆绑或销售:主机和每个模块必须解决同一个已安装的复制件,因为软件包持有活的注册. @antelopejs/core 启动时失败 Incompatible interface package resolution 当模块解决了另一个副本时.
快开始
import { PageController, RegisterPage, pagesCategory } from "@antelopejs/interface-dms/page";
import { KpiCard } from "@antelopejs/interface-dms/base/kpi-card";
@RegisterPage()
export class SalesPage extends PageController("sales", {
displayName: "Sales",
icon: "i-ph-chart-line",
category: pagesCategory,
}) {
static revenue = KpiCard({ title: "Revenue", fetchUrl: "/api/sales/revenue" });
}
| 导入 | 它所持有的 |
|---|---|
@antelopejs/interface-dms | 核心表面:页面、权限、租赁、钩子 |
@antelopejs/interface-dms/<module> | 其中一个单元: /page, (中文(简体) ), /permissions, (中文(简体) ), /hooks, (中文(简体) ), /db. |
@antelopejs/interface-dms/auth | 认证:用户、会话、外部身份 |
@antelopejs/interface-dms/base | 组件库:窗体、表格、图表、布局 |
@antelopejs/interface-dms/notifications | 通知类别、对象和交付 |
@antelopejs/interface-dms/html-render | 服务器侧 HTML 模板 |
兼容性
| 软件包 | 支助 | 测试过 |
|---|---|---|
@antelopejs/interface-api | >=0.3.0 <1.0.0 | 0.2.0 |
@antelopejs/interface-api-util | >=0.1.3 <1.0.0 | 0.3.0 |
@antelopejs/interface-core | >=0.4.0 <1.0.0 | 0.4.0 |
@antelopejs/interface-data-api | >=0.6.0 <1.0.0 | 0.6.0 |
@antelopejs/interface-database | >=0.1.11 <1.0.0 | 0.3.0 |
@antelopejs/interface-database-decorators | >=0.1.12 <1.0.0 | 0.2.0 |
@antelopejs/interface-file-storage | >=0.1.4 <1.0.0 | 0.1.4 |
A 类 @antelopejs/dms 释放执行 @antelopejs/interface-dms 区域列表于相容区块 dms 读取。 。 。 .
文档
- DMS 接口: cononical 消费者参考书,随此套件发运并发表于 文件/接口
- 核心, (中文(简体) ), 认证, (中文(简体) ), 基础, (中文(简体) ), 通知, (中文(简体) ), HTML 渲染器
- 页和组件: 任务指南
可导入文件不一定是支持的 API 。 路径 internal/,标记符号 @internal,以及 internal 命名空间是执行线条,即使通配符导出使其可以到达。 使用这里记载的公开声明和合同.
捐款
这个包裹住在 AntelopeJS/dms pnpm 工作空间, 运行时间旁边执行它 。 读取 捐款额,则 仓库读取器 财务报告和审定财务报表 一般事务人员(其他职等)包括公众和内部 释放此软件包( E)发布 DMS 接口a 之前 @antelopejs/dms 这个版本需要它.