Actions
面向 EmDash 提供商插件的原生操作界面。
面向 EmDash 提供商插件的原生操作界面。
安装
从 npm 安装该软件包:
npm install @bnomei/emdash-actions
在 Astro 配置中注册该插件:
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { actionsPlugin } from "@bnomei/emdash-actions";
import { cacheActions } from "./src/emdash/cache-actions";
const cacheActionsProvider = {
pluginId: "cache-actions",
label: "Cache actions",
manifestRoute: "actions",
};
export default defineConfig({
integrations: [
emdash({
plugins: [
actionsPlugin({
providers: [cacheActionsProvider],
}),
cacheActions(),
],
}),
],
});
详细信息
- 最新版本: 0.5.0
- 许可证: MIT
- 发布者: Bruno Meilick
- 要求: EmDash
^1.2.0 - 源代码仓库: https://github.com/bnomei/emdash-actions
- npm 包: @bnomei/emdash-actions