@bigbinary/neeto-tags-frontend

中文文档
2.4.0发布于 2026/11/03UNLICENSEDTypeScriptESM + CJS近 30 天下载 3.7万

一个回波作为新纳米结构,配置,数据等的真理来源.

中文使用文档
文档目录9 节
  1. 发动机
  2. 安装
  3. 使用量
  4. 前端软件包
  5. 安装
  6. 发展指示
  7. 构成部分
  8. 钩子
  9. 释放门

需要调教 - 不

这个 neeto-tags-nano 管理横跨 neto 应用程序的标签 。 纳米出口 页:1 @bigbinary/neeto-tags-frontend 国家防范机制一揽子计划 @bigbinary/neeto-tags-playwright Playwright 助手软件包,以及 neeto-tags-engine 铁路发展引擎.

目录

  1. 用主机应用程序开发
  2. 出版指令

用主机应用程序开发

发动机

该引擎用于管理横跨neto产品的任何实体的标记.

安装

  1. 将此行添加到您的应用程序的 Gemfile 中 :

    source "NEETO_GEM_SERVER_URL" do
       # ..existing gems
    
       gem 'neeto-tags-engine'
    end
    
  2. 然后执行:

    bundle install
    
  3. 将此行添加到您的应用程序 config/routes.rb 文件 :

    mount NeetoTagsEngine::Engine, at: "/neeto_tags"
    
  4. 运行以下命令以复制从引擎到主机的迁移 应用程序 :

    bundle exec rails neeto_tags_engine:install:migrations
    
  5. 添加迁移到数据库 :

    bundle exec rails db:migrate
    

使用量

您可以在此了解更多设置和用途:

  1. 模型
  2. 主计长

前端软件包

该套件输出出三个组成部分: NeetoTags, (中文(简体) ), Tags,以及 TagsDropdown。 。 。 .

套件还输出出一钩: refetchTags。 。 。 .

安装

  1. 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]
    
  2. 现在安装最新的 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 跳过闸口并立即合并. 它只供紧急情况下的维护者使用,使用它的大门评论记录.

版本与发布记录

@bigbinary/neeto-tags-frontend 共发布 186 个版本,首次发布于 2022/06/27;过去 12 个月发布了 48 个版本。

版本发布日期距今
2.4.0latest2026/11/035 天前
2.3.82026/11/035 天前
2.3.72026/11/017 天前
2.3.7-beta2beta2026/11/017 天前
2.4.0-beta42026/11/017 天前
2.4.0-beta32026/10/317 天前

关于 @bigbinary/neeto-tags-frontend 的常见问题

@bigbinary/neeto-tags-frontend 是什么?

一个回波作为新纳米结构,配置,数据等的真理来源.

如何安装 @bigbinary/neeto-tags-frontend?

在项目目录运行 npm install @bigbinary/neeto-tags-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:qs(6.16.2)、url(0.11.4)、yup(0.32.11)、antd(5.22.1)、util(^0.12.5)、axios(1.20.0)、ramda(0.29.0)、react(18.3.1)、buffer(^6.0.3)、formik(2.4.6)、i18next(22.5.1)、zustand(4.4.2)、dompurify(3.4.17)、js-logger(1.6.1)、react-dom(18.3.1)、classnames(2.5.1)、stream-http(3.2.0)、tailwindcss(3.4.14)、lucide-react(0.577.0)、react-helmet(^6.1.0)、os-browserify(0.3.0)、react-i18next(12.3.1)、vm-browserify(1.1.2)、@babel/runtime(7.29.7)、react-toastify(8.0.2)、tty-browserify(0.0.1)、path-browserify(^1.0.1)、https-browserify(1.0.0)、mixpanel-browser(^2.45.0)、react-router-dom(5.3.3)、crypto-browserify(3.12.1)、source-map-loader(4.0.1)、stream-browserify(^3.0.0)、@bigbinary/neetoui(8.8.3)、@honeybadger-io/js(6.10.1)、@bigbinary/neeto-cist(1.0.17)、@honeybadger-io/react(6.1.25)、@tanstack/react-query(5.59.20)、@bigbinary/neeto-atoms(1.1.2)、@bigbinary/neeto-icons(1.20.89)、@bigbinary/neeto-hotkeys(1.0.9)、@bigbinary/neeto-molecules(5.9.15)、@tailwindcss/container-queries(^0.1.1)、@tanstack/react-query-devtools(5.59.20)、@bigbinary/neeto-commons-frontend(4.14.8)、@bigbinary/neeto-filters-frontend(4.6.3)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bigbinary/neeto-tags-frontend 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bigbinary/neeto-tags-frontend 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@bigbinary/neeto-tags-frontend 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.13。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bigbinary/neeto-tags-frontend 可以商用吗?

@bigbinary/neeto-tags-frontend 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@bigbinary/neeto-tags-frontend 的下载量有多少?

根据 npm 官方下载统计,@bigbinary/neeto-tags-frontend 在 2026/10/08 – 2026/11/06 这 30 天内被下载 37,243 次,日均约 1,241 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bigbinary/neeto-tags-frontend 还在维护吗?

最新版本 2.4.0 发布于 2026/11/03(5 天前);至今共发布 186 个版本,其中过去 12 个月发布了 48 个;首次发布于 2022/06/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。