{\fn黑体\fs22\bord1\shad0\3ahbe\4ah00\fscx67\fscy66\2chffffff\3ch808080}必须去网游 -nano
这个 neeto-webhooks-nano 管理 neto 应用程序中的 Webhooks 。 纳米
出口 @bigbinary/neeto-webhooks-frontend 国家防范机制一揽子计划
财务报告和审定财务报表 neeto-webhooks-engine 铁路发展引擎. 它的网钩
Playwright 帮助器独立发布为
@bigbinary/neeto-webhooks-playwright 从
playwright/ 目录.
目录
用主机应用程序开发
发动机
该引擎被用于管理横跨neto产品的webhooks.
安装
-
将此行添加到您的应用程序的 Gemfile 中 :
source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'neeto-webhooks-engine' # Use this for live development: # gem 'neeto-webhooks-engine', path: "../neeto-webhooks-nano" end -
然后执行:
bundle install -
将此行添加到您的应用程序
config/routes.rb文件 :mount NeetoWebhooksEngine::Engine, at: "/neeto_webhooks" -
运行以下命令以复制从引擎到主机的迁移 应用程序 :
rails g neeto_webhooks_engine:install -
添加迁移到数据库 :
bundle exec rails db:migrate -
在应用程序中添加下行 配置/ 初始化/ neto webhooks engine. rb 文件. 替换 事件 识别符,其中包含一系列代表可能的唯一关键字 网络事件.
NeetoWebhooksEngine.event_identifiers = ["create", "update", "cancel"] -
使用密钥格式添加 Webhook 事件的翻译 webhook.events.webhook event,其中由自定义的webhook event 事件 标识符.
webhooks: events: create: "Booking creation" update: "Booking reschedule" cancel: "Booking cancellation" -
(可选) 配置分类标识符自动注入分类 值为翻译字符串。 然后这些值可以用于语言字符串 作为插值变量.
NeetoWebhooksEngine.taxonomy_identifiers = { customer: "singular", teamMember: "singular" } -
添加权限
neeto_webhooks_engine.manage_webhooks给您的permissions.yml文档.
使用量
您可以在此了解更多设置和用途:
前端软件包
安装
- 安装最新的
neeto-webhooks-nano使用下列命令的软件包:yarn add @bigbinary/neeto-webhooks-frontend
发展指示
检查 前端软件包开发指南 用于开发前端软件包的分步指令.
构成部分
NeetoWebhooks (单位:千美元)源代码(中文(简体) )
此组件用于管理您的网络应用程序中的 Webhooks .
- 它为浏览,添加,并编辑webhooks提供了一个用户界面.
- 它还包括一个用户界面,用于列出交货和取景交货 细节,显示既显示请求信息又显示响应信息的标签.
道具
两者都需要,组件记录一个错误,以名称为准
失踪。 他们失败不同, 值得知道当其中之一是
错误:没有 entityId 列表中无法装入, 而不需要
entityType 列表仍然会生成,并且只创建一个 webhook 失败 .
entityType: 拥有这些 Webhoks 的唱片的类名, 和一个 数值NeetoWebhooksEngine.valid_entity_types。通常情况下"Organization"。 。 。 .entityId:该记录的ID. 请注意:globalProps.organization已经 不携带id在大多数需要的应用程序中,它被序列化为名称,子域名, favicon和密钥——所以主机通常需要通过自己的id发送 客户端道具.
可选道具
breadcrumbs: 指定用于导航的面包屑的一系列物体.helpLinkUrls: 指定帮助链接的 URL 对象.webhooks:webhooks的URL帮助链接.secrets: 机密的URL帮助链接.deliveries: 交付的URL帮助链接.
使用量
import React from "react";
import { NeetoWebhooks } from "@bigbinary/neeto-webhooks-frontend";
import { routes } from "common/routes";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import { ToastContainer } from "react-toastify";
const Main = () => (
<BrowserRouter>
<div className="flex">
<Switch>
<Route
path={routes.webhooks}
component={() => (
<NeetoWebhooks
entityId={entityId}
entityType={entityType}
breadcrumbs={[
{
text: "Settings",
link: routes.settings,
},
{ text: "Webhook" },
]}
helpLinkUrls={{
webhooks:
"https://help.neetokb.com/articles/creating-a-webhook",
secrets:
"https://help.neetokb.com/articles/securing-webhook-requests",
deliveries:
"https://help.neetokb.com/articles/managing-webhook-deliveries",
}}
/>
)}
/>
</Switch>
</div>
<ToastContainer />
</BrowserRouter>
);
export default Main;
出版指令
咨询 构建和释放软件包 关于如何出版的详细指南.
@bigbinary/neeto-webhooks-playwright 与
playwright/ 当合并后的公关有 playwright
标签和a patch, (中文(简体) ), minor,或 major 标签.