7.6. 全局标头中的 Quicklinks 和 Starred Items
Quicklinks 列表和 Starred Items 下拉列表默认是启用的,并出现在全局标头中,而无需额外的配置。
Quicklinks 列表按部分组织(如 Documentation 或 Developer Tools),允许用户快速访问内部或外部资源。Starred Items 下拉列表包含用户不足的实体和页面。
默认配置包括以下组件:
StarredDropdown :默认显示全局标头中的 Starred Items 菜单,如以下配置所示:
# Group: Global Header - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header - mountPoint: global.header/component importName: StarredDropdown config: priority: 85ApplicationLauncherDropdown :默认提供 Quicklinks 列表(应用程序启动程序),如下所示:
# Group: Global Header - package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-header - mountPoint: global.header/component importName: ApplicationLauncherDropdown config: priority: 82MenuItemLink 条目 :定义 Quicklinks 列表中的部分、标题、图标和链接。默认配置包括 Developer Hub 文档和 RHDH Local 的链接,如以下配置所示:
- mountPoint: global.header/application-launcher importName: MenuItemLink config: section: Documentation priority: 150 props: title: Developer Hub icon: developerHub link: https://docs.redhat.com/en/documentation/red_hat_developer_hub - mountPoint: global.header/application-launcher importName: MenuItemLink config: section: Developer Tools priority: 100 props: title: RHDH Local icon: developerHub link: https://github.com/redhat-developer/rhdh-local
注意
当从以前的版本升级时,安装程序不会覆盖您现有的 dynamic-plugins.yaml 配置。如果您之前还没有配置 Starred Items 或 Quicklinks,它们会在升级后保持禁用,必须手动启用。