0.3.24 • Published 1 year ago

@backstage/plugin-shortcuts v0.3.24

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

shortcuts

The shortcuts plugin allows a user to have easy access to pages within a Backstage app by storing them as "shortcuts" in the Sidebar.

Usage

Install the package:

yarn add @backstage/plugin-shortcuts

Add it to your App's plugins.ts file:

// ...
export { shortcutsPlugin } from '@backstage/plugin-shortcuts';

Add the <Shortcuts /> component within your <Sidebar>:

import { Sidebar, SidebarDivider, SidebarSpace } from '@backstage/core';
import { Shortcuts } from '@backstage/plugin-shortcuts';

export const SidebarComponent = () => (
  <Sidebar>
    {/* ... */}
    <SidebarDivider />
    <Shortcuts />
    <SidebarSpace />
  </Sidebar>
);

The plugin exports a shortcutApiRef but the plugin includes a default implementation of the ShortcutApi that uses localStorage to store each user's shortcuts.

To overwrite the default implementation add it to the App's apis.ts:

import { shortcutsApiRef } from '@backstage/plugin-shortcuts';
import { CustomShortcutsImpl } from '...';

export const apis = [
  // ...
  createApiFactory({
    api: shortcutsApiRef,
    deps: {},
    factory: () => new CustomShortcutsImpl(),
  }),
];
0.3.24

1 year ago

0.3.23

1 year ago

0.3.23-next.0

1 year ago

0.3.22

1 year ago

0.3.21

1 year ago

0.3.20

1 year ago

0.3.20-next.2

1 year ago

0.3.20-next.1

1 year ago

0.3.20-next.0

1 year ago

0.3.19

1 year ago

0.3.19-next.2

1 year ago

0.3.19-next.1

1 year ago

0.3.19-next.0

1 year ago

0.3.18

1 year ago

0.3.18-next.1

1 year ago

0.3.18-next.0

1 year ago

0.3.17

1 year ago

0.3.17-next.3

1 year ago

0.3.17-next.2

2 years ago

0.3.17-next.1

2 years ago

0.3.13-next.0

2 years ago

0.3.13-next.1

2 years ago

0.3.15-next.0

2 years ago

0.3.15-next.1

2 years ago

0.3.15-next.2

2 years ago

0.3.12-next.1

2 years ago

0.3.12-next.2

2 years ago

0.3.16-next.2

2 years ago

0.3.16-next.1

2 years ago

0.3.16-next.0

2 years ago

0.3.17-next.0

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.14-next.1

2 years ago

0.3.14-next.0

2 years ago

0.3.14-next.3

2 years ago

0.3.14-next.2

2 years ago

0.3.12-next.0

2 years ago

0.3.11-next.2

2 years ago

0.3.11-next.3

2 years ago

0.3.11

2 years ago

0.3.11-next.0

2 years ago

0.3.11-next.1

2 years ago

0.3.10

2 years ago

0.3.10-next.1

2 years ago

0.3.10-next.2

2 years ago

0.3.9-next.3

2 years ago

0.3.9

2 years ago

0.3.10-next.0

2 years ago

0.3.9-next.1

2 years ago

0.3.8-next.1

2 years ago

0.3.9-next.0

2 years ago

0.3.8-next.2

2 years ago

0.3.9-next.2

2 years ago

0.3.8-next.0

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.7-next.1

2 years ago

0.3.7-next.0

2 years ago

0.3.6-next.1

2 years ago

0.3.6-next.2

2 years ago

0.3.6

2 years ago

0.3.3-next.0

3 years ago

0.3.6-next.0

2 years ago

0.3.3-next.1

3 years ago

0.3.5

2 years ago

0.3.2

3 years ago

0.3.4

2 years ago

0.3.3

3 years ago

0.3.4-next.2

3 years ago

0.3.4-next.1

3 years ago

0.3.4-next.4

2 years ago

0.3.4-next.3

3 years ago

0.3.4-next.0

3 years ago

0.3.2-next.2

3 years ago

0.3.2-next.1

3 years ago

0.3.2-next.0

3 years ago

0.3.1-next.2

3 years ago

0.3.1-next.3

3 years ago

0.3.1-next.0

3 years ago

0.3.1-next.1

3 years ago

0.3.1

3 years ago

0.2.8-next.1

3 years ago

0.2.8-next.0

3 years ago

0.2.8-next.3

3 years ago

0.2.8-next.2

3 years ago

0.3.0-next.1

3 years ago

0.3.0-next.0

3 years ago

0.2.7-next.1

3 years ago

0.2.7-next.0

3 years ago

0.3.0

3 years ago

0.2.7

3 years ago

0.2.8

3 years ago

0.2.6-next.0

3 years ago

0.2.6

3 years ago

0.2.5-next.0

3 years ago

0.2.5-next.1

3 years ago

0.2.3-next.0

3 years ago

0.2.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.1.21-next.0

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.15

4 years ago

0.1.20-next.0

3 years ago

0.1.22-next.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago