
它会做什么
- 将图像,视频和文档以Finder风格的探索器进行组织,其中包含智能视图,搜索,拖放和批量动作.
- 将文件直接上传到项目的文件存储并自稳定发送
/media/<id>/<name>URLs (英语). - 渲染器在第一次请求时命名了图像大小,其收成和旋转可以还原为原始.
- 应用基于 DMS 权限和角色的每文件夹权限.
- 添加一个
AssetType窗体字段,从@antelopejs/interface-dms-media在你的页面上打开了图书馆. - 让工程船文件夹和文件作为代码
EnsureMediaFolder财务报告和审定财务报表ImportMediaAsset,创造了一次,从未覆盖过成员的变化.
安装
从已加载的工程根端运行 AtelopeJS CLI @antelopejs/dms 和一个文件存储模块 :
ajs project modules add @antelopejs/dms-media
快开始
将模块的链接指向API的公开URL,并允许仪表板的出处,因为浏览器直接上传到存储处:
// antelope.config.ts
"dms-media": {
source: { type: "package", package: "@antelopejs/dms-media", version: "^0.7.0" },
config: {
publicBaseUrl: "${@api.API_PUBLIC_BASE_URL}",
},
},
api: {
config: {
cors: { allowedOrigins: ["https://dms.example.com"] },
},
},
重新打开后端, 然后打开前端 模块 QQ 媒体 (单位:千美元)/modules/media/overview) (中文(简体) ). 要让成员从自己的页面中选择文件,请添加一个资产字段:
import { AssetType } from "@antelopejs/interface-dms-media";
new AssetType({
mimetypes: ["image/*"],
binding: { id: "articles.cover", folderName: "Article covers", permissionsFromPage: ArticlesPage },
});
兼容性
| 软件包 | 支助 | 测试过 |
|---|---|---|
@antelopejs/interface-api | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-api-util | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-core | >=0.4.0 <1.0.0 | 0.4.0 |
@antelopejs/interface-database | >=0.3.0 <1.0.0 | 0.3.0 |
@antelopejs/interface-database-decorators | >=0.2.0 <1.0.0 | 0.2.0 |
@antelopejs/interface-dms | >=0.12.0 <1.0.0 | 0.12.0 |
@antelopejs/interface-dms-media | >=0.3.0 <0.4.0 | 0.3.1 |
@antelopejs/interface-file-storage | >=0.1.6 <1.0.0 | 0.1.6 |
模块还需要一个执行 @antelopejs/interface-dms 区域,以及 @antelopejs/dms-frontend 区域中的渲染器,其前端模块宣布在 engines["@antelopejs/dms-frontend"] 联 合 国 frontend-vue/package.json编辑 ajs dms CLI拒绝用这个范围以外的渲染器来建造.
- 文件存储: a
@antelopejs/interface-file-storage执行,例如:@antelopejs/file-storage-local。 。 。 .
文档
向导的消息来源 packages/dms-media/docs模块将 dms-media Claude代码技巧 packages/dms-media/skills,在 antelopeJs.skills。 。 。 .
捐款
这个包裹住在 AntelopeJS/dms-media pnpm 工作空间旁边 @antelopejs/interface-dms-media读取 捐款额 编辑 仓库读取器 用于开发命令.