Actions

面向 EmDash 提供商插件的原生操作界面。

插件

Actions

面向 EmDash 提供商插件的原生操作界面。

  • 分类: 集成
  • 状态: 可用
  • 版本: 0.5.0
  • 价格: 未知
  • 来源: npm 软件包
  • 安装方式: npm 原生集成
  • 核实日期: 2026-11-01

面向 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(),
      ],
    }),
  ],
});

详细信息