需要调教 - 不
这个 neeto-tags-nano 管理横跨 neto 应用程序的标签 。 纳米出口
页:1 @bigbinary/neeto-tags-frontend 国家防范机制一揽子计划
@bigbinary/neeto-tags-playwright Playwright 助手软件包,以及
neeto-tags-engine 铁路发展引擎.
目录
用主机应用程序开发
发动机
该引擎用于管理横跨neto产品的任何实体的标记.
安装
-
将此行添加到您的应用程序的 Gemfile 中 :
source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'neeto-tags-engine' end -
然后执行:
bundle install -
将此行添加到您的应用程序
config/routes.rb文件 :mount NeetoTagsEngine::Engine, at: "/neeto_tags" -
运行以下命令以复制从引擎到主机的迁移 应用程序 :
bundle exec rails neeto_tags_engine:install:migrations -
添加迁移到数据库 :
bundle exec rails db:migrate
使用量
您可以在此了解更多设置和用途:
前端软件包
该套件输出出三个组成部分: NeetoTags, (中文(简体) ), Tags,以及 TagsDropdown。 。 。 .
套件还输出出一钩: refetchTags。 。 。 .
安装
-
neeto-tags-nano拥有若干对等依赖关系,这些依附关系是: 软件包的正常运作。 使用 : 以下命令:yarn add @bigbinary/[email protected] @bigbinary/[email protected] @bigbinary/[email protected] @honeybadger-io/[email protected] @honeybadger-io/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] -
现在安装最新的
neeto-tags-nano使用下列命令的软件包:yarn add @bigbinary/neeto-tags-frontend
发展指示
检查 前端软件包开发指南 用于开发前端软件包的分步指令.
构成部分
NeetoTags (单位:千美元)源代码(中文(简体) )
这个组件提供一个仪表板来管理应用程序的标记.
道具
config: 包含标签、 显示规格的配置对象 菜单和面包屑.
配置
参见 内托塔克 详细章节
现有配置信息 NeetoTags 组件.
使用量
import React from "react";
import { NeetoTags } from "@bigbinary/neeto-tags-frontend";
const App = () => {
return <NeetoTags config={config} />;
};
export default App;
Tags (单位:千美元)源代码(中文(简体) )
这个组件提供了向一个实体分配标记的功能.
配置
参见 标记 详细信息
用于 Tags 组件.
使用量
import React from "react";
import { TagsComponent } from "@bigbinary/neeto-tags-frontend";
const App = ({
allTags,
buttonProps,
selectProps,
selectedTags,
handleTagCreate,
handleTagRemove,
handleTagSelect,
}) => {
return (
<TagsComponent
allTags={allTags}
buttonProps={buttonProps}
selectProps={selectProps}
selectedTags={selectedTags}
onTagCreate={handleTagCreate}
onTagDelete={handleTagRemove}
onTagSelect={handleTagSelect}
/>
);
};
export default App;
TagsDropdown (单位:千美元)源代码(中文(简体) )
此组件提供一个下拉面板来指定一个实体的标记 .
配置
参见 标记向下 页:1
现有组合的详细信息 TagsDropdown
组件.
使用量
import React from "react";
import { TagsDropdown } from "@bigbinary/neeto-tags-frontend";
const App = ({
isOpen,
containerRef,
allTags,
selectedTags,
tagType,
manageAllTagsHref,
handleRequestClose,
handleTagCreate,
handleTagDelete,
handleTagSelect,
}) => {
return (
<TagsDropdown
allTags={allTags}
containerRef={containerRef}
isOpen={isOpen}
manageAllTagsHref={manageAllTagsHref}
selectedTags={selectedTags}
tagType={tagType}
onRequestClose={handleRequestClose}
onTagCreate={handleTagCreate}
onTagDelete={handleTagDelete}
onTagSelect={handleTagSelect}
/>
);
};
export default App;
钩子
refetchTags (单位:千美元)源代码(中文(简体) )
此函数重排标签列表 .
使用量
以下例举使用 refetchTags 钩:
const useBulkUpdateTickets = () =>
useMutationWithInvalidation(
({ payload }) => ticketsApi.bulkUpdateTickets(payload),
{
keysToInvalidate: [
[QUERY_KEYS.TICKETS_LIST],
[QUERY_KEYS.TICKETS_DEFAULT_VIEWS],
[QUERY_KEYS.TEAMS],
...REPORT_DATA_KEYS_TO_INVALIDATE,
],
onSuccess: () => {
refetchTags();
},
}
);
用于 必须去德士克
出版指令
咨询 构建和释放软件包 关于如何出版的详细指南.
@bigbinary/neeto-tags-playwright 发表于 playwright/ 当合并时
公关有 playwright 标签并列 patch, (中文(简体) ), minor,或 major。见
剧作家/README.md。 。 。 .
释放门
牵引请求只通过NeetoTower的放出门合并. 准确添加其中之一 patch, (中文(简体) ), minor
或者说 major,然后添加 release 最后一个 NeetoTower发布一个β的引擎和软件包,
打开一个 [do-not-merge] 在使用纳米的每个产品中拉取请求,等待检查
并审查应用部署,将结果作为评论发布,并在每个产品为绿色时合并.
如果产品因更改而失败, NeetoTower 将删除 release 标签。 解决问题
添加 release 再次开始新的尝试. force-release 跳过闸口并立即合并.
它只供紧急情况下的维护者使用,使用它的大门评论记录.