Strapi 插件列表
¥List of Strapi plugins
Strapi 构建和维护扩展核心 Strapi 应用功能的插件。本节是预装插件和 Strapi 开发的附加插件的参考指南,这些插件在 市场 中可用。用户指南和开发者文档的相关部分中提供了有关插件的其他文档,但是,还提供了简短的插件描述、安装的插件如何工作以及对管理面板的更改。
¥Strapi builds and maintains plugins that extend the functionality of a core Strapi application. This section is a reference guide to the pre-installed plugins and additional plugins developed by Strapi, which are available in the Marketplace. Additional documentation on plugins is provided in the relevant sections of the User Guide and the Developer Documentation, however, a brief plugin description, how the installed plugin works, and changes to the admin panel is provided.
某些 Strapi Starters 和模板可能会安装除下面列出的默认插件之外的其他插件。
¥Some Strapi Starters and Templates might install additional plugins beyond the default plugins listed below.
如果插件选项仅适用于 企业版许可证,则在本参考指南中它们会标有 Enterprise。
¥If plugin options are only available with an Enterprise edition license, they are marked with Enterprise in this reference guide.
所有插件安装都可以在
¥All plugin installations can be confirmed in
管理面板中的设置 > 插件。
¥Settings > Plugins in the admin panel.
预装插件
¥Pre-installed plugins
国际化插件
¥ Internationalization plugin
国际化插件默认安装在所有 v5 Strapi 应用上,但可以停用。
¥The Internationalization plugin is installed by default on all v5 Strapi applications, but it can be deactivated.
该插件用于管理不同语言的内容,称为 "locales"。使用国际化插件,可以:
¥This plugin is used to manage content in different languages, called "locales". With the Internationalization plugin, it is possible to:
定义 Strapi 应用中应提供哪些区域设置,
¥define which locales should be available in the Strapi application,
定义哪些内容类型和字段可以在不同的语言环境中翻译,或者只能在默认语言环境中使用,
¥define which content-types and fields can be translated in different locales, or should only be available in the default locale,
翻译内容并单独管理每个区域设置。
¥translate content and manage each locale individually.
国际化插件会影响管理面板的多个部分。下表列出了安装插件后添加到 Strapi 应用的所有附加选项和设置。
¥The Internationalization plugin affects several parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
Section impacted | Options and settings |
---|---|
Settings |
|
Content-type Builder |
|
Content Manager |
|
用户和权限插件
¥ Users & Permissions plugin
所有 v5 Strapi 应用上都默认安装了用户和权限插件,但可以停用。
¥The Users & Permissions plugin is installed by default on all v5 Strapi applications, but can be deactivated.
该插件用于管理终端用户,终端用户使用使用 Strapi 应用创建和管理并显示在前端应用(例如网站、移动应用、连接设备等)上的内容。使用用户和权限插件,可以:
¥This plugin is used to manage end users, who consume the content that is created and managed with a Strapi application and displayed on a front-end application (e.g. website, mobile application, connected device, etc.). With the Users & Permissions plugin, it is possible to:
根据通过插件提供的 "用户" 集合类型管理终端用户账户,
¥manage end users accounts, based on the "User" collection type available through the plugin,
定义可用的终端用户角色及其相关权限,
¥define the available end-user roles and their related permissions,
管理可用的提供者以使终端用户能够通过第三方提供者登录,
¥manage available providers to enable end users to login through third-party providers,
配置针对终端用户的可用电子邮件模板(例如密码重置、电子邮件地址确认)。
¥configure available email templates aimed at the end users (e.g. password reset, email address confirmation).
用户和权限插件会影响管理面板的多个部分。下表列出了安装插件后添加到 Strapi 应用的所有附加选项和设置。
¥The Users & Permissions plugin impacts several parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
Section impacted | Options and settings |
---|---|
Settings |
👉 Path reminder: Settings > Users & Permissions plugin |
Content-type Builder |
|
Content Manager |
|
邮件插件
¥ Email plugin
电子邮件插件允许用户从服务器或外部提供者(例如 Sendgrid)发送电子邮件。电子邮件插件不可在管理面板中配置,但如果管理员已设置,用户可以测试电子邮件发送。有关电子邮件插件的更多信息,请参阅 开发者文档。
¥The Email plugin allows users to send email from the server or from external providers such as Sendgrid. The Email plugin is not configurable in the admin panel, however users can test email delivery if it has been setup by an administrator. More information about the email plugin is available in the Developer Documentation.
Section impacted | Options and settings |
---|---|
Settings |
|
附加插件
¥Additional plugins
文档
¥ Documentation
文档插件使用开放 API 规范版本 3.0.1 自动生成 Strapi 应用中 API 的文档。安装文档插件后,可以在管理面板中的标题 "插件" 下找到该插件。文档插件可在应用内市场和 Strapi 市场 中找到。文档插件可以:
¥The Documentation plugin automates documentation for APIs in a Strapi application using the Open API specification version 3.0.1. When the Documentation plugin is installed it is available in the admin panel, under the heading "Plugins". The Documentation plugin is available in the in-app Marketplace and the Strapi Market. The Documentation plugin enables:
打开 API 文档,
¥opening the API documentation,
重新生成文档,
¥regenerating the documentation,
限制对文档端点的访问。
¥restricting access to the documentation endpoint.
文档插件会影响管理面板的多个部分。下表列出了安装插件后添加到 Strapi 应用的所有附加选项和设置。
¥The Documentation plugin affects multiple parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
Section impacted | Options and settings |
---|---|
Documentation |
|
Settings |
|
Gatsby 预览
¥ Gatsby preview
Gatsby 预览插件允许具有 Gatsby Cloud 账户的应用预览前端。Strapi Gatsby 预览插件可在应用内市场和 Strapi 市场 中找到。
¥The Gatsby preview plugin allows applications with Gatsby Cloud accounts to preview the front end. The Strapi Gatsby preview plugin is available in the in-app Marketplace and the Strapi Market.
Gatsby 预览插件会影响管理面板的多个部分。下表列出了安装插件后添加到 Strapi 应用的所有附加选项和设置。
¥The Gatsby preview plugin affects multiple parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
Section impacted | Options and settings |
---|---|
Settings | Addition of a "Gatsby preview plugin" setting section, enables/disables collection types and single types, and allows the Gatsby Content Sync URL to be added. 👉 Path reminder: Settings > Gatsby preview plugin |
Content Manager | Addition of the open Gatsby preview button in the right-side navigation. |
GraphQL
GraphQL 插件在 Strapi 应用中启用 GraphQL 端点,并提供对 GraphQL Playground 的访问:一个基于浏览器的界面,可帮助编写 GraphQL 查询和数据探索。Strapi GraphQL 插件可在应用内市场和 Strapi 市场 中找到。
¥The GraphQL plugin enables GraphQL endpoints in a Strapi application, and gives access to the GraphQL Playground: a browser-based interface that assists in writing GraphQL queries and data exploration. The Strapi GraphQL plugin is available in the in-app Marketplace and the Strapi Market.
无法在管理面板中访问 GraphQL 插件。GraphQL Playground 可在 Strapi 应用中的 http://localhost:1337/graphql 处访问。有关使用 GraphQL API 的更多信息位于 API 参考 和 开发者文档插件部分 中。
¥There is no access to the GraphQL plugin in the admin panel. The GraphQL Playground is accessible at http://localhost:1337/graphql in a Strapi application. More information on using the GraphQL API is located in the API reference and the Developer Documentation plugins section.
搜索引擎优化
¥ SEO
Strapi SEO 插件旨在改善你的应用 SEO。Strapi SEO 插件可在应用内市场和 Strapi 市场 中找到。安装后,该插件可在主导航中使用,并向内容类型生成器添加 2 个预构建组件 MetaSocial 和 Seo,这些组件可用作常规组件(参见 为内容类型配置字段)。
¥The Strapi SEO plugin is designed to improve your application SEO. The Strapi SEO plugin is available in the in-app Marketplace and the Strapi Market. Once installed, the plugin is available in the main navigation and adds 2 pre-built components MetaSocial and Seo to the Content-type Builder, which can be used as regular components (see Configuring fields for content-types).
安装插件后,可以:
¥With the plugin installed, it is possible to:
导入默认的 Strapi SEO 和元社交组件,
¥import default Strapi SEO and meta-social components,
管理元标题、元描述并预览内容,
¥manage the meta title, meta description, and preview the content,
管理 Facebook 和 Twitter 的社交标签,
¥manage social tags for Facebook and Twitter,
分析应用内容的 SEO。
¥analyze the SEO of the application content.
Strapi SEO 插件会影响管理面板的多个部分。下表列出了安装插件后添加到 Strapi 应用的所有附加选项和设置。
¥The Strapi SEO plugin affects multiple parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
Section impacted | Options and settings |
---|---|
Content Manager |
|
Content-type Builder |
shared - metaSocial and shared - seo components in the Content-type Builder sub navigation. The shared - metaSocial and shared - seo components can be added to a collection type or single type using the Add another field button and adding an existing component (see Configuring fields for content-types). |
Main navigation |
|
Sentry
Strapi Sentry 插件用于通过 Sentry 跟踪 Strapi 错误。Strapi Sentry 插件可在应用内市场和 Strapi 市场 中找到。安装插件后,可以:
¥The Strapi Sentry plugin is used to track Strapi errors with Sentry. The Strapi Sentry plugin is available in the in-app Marketplace and the Strapi Market. With the plugin installed it is possible to:
当 Strapi 应用启动时初始化 Sentry 实例,
¥initialize a Sentry instance when a Strapi application starts,
将应用端 API 遇到的错误发送给 Sentry,
¥send errors encountered in an application end API to Sentry,
将有用的元数据附加到 Sentry 事件,以帮助调试,
¥attach useful metadata to Sentry events, to help with debugging,
公开全局 Sentry 服务。
¥expose a global Sentry service.