Skip to content

Commit 1b263ff

Browse files
chore: Adding floating action button (redhat-developer#99)
Co-authored-by: Armel Soro <asoro@redhat.com>
1 parent 6b9b5f9 commit 1b263ff

2 files changed

Lines changed: 39 additions & 3 deletions

File tree

configs/app-config/app-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ backend:
5757
- "data:"
5858
- "https://quay.io"
5959
- "https://*.quay.io"
60-
6160
# comment out the following 'database' section to use the PostgreSQL database
6261
database:
6362
client: better-sqlite3

configs/dynamic-plugins/dynamic-plugins.yaml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,42 @@ plugins:
1313

1414
# Scaffolder Github plugin - used by Dynamic Plugin Software Templates
1515
- package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-github-dynamic
16-
disabled: false
17-
16+
disabled: false
17+
18+
# Floating Action Button plugin with submenu actions
19+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-global-floating-action-button
20+
disabled: false
21+
pluginConfig:
22+
dynamicPlugins:
23+
frontend:
24+
red-hat-developer-hub.backstage-plugin-global-floating-action-button:
25+
mountPoints:
26+
- mountPoint: application/listener
27+
importName: DynamicGlobalFloatingActionButton
28+
- mountPoint: global.floatingactionbutton/config
29+
importName: NullComponent
30+
config:
31+
icon: '<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="130.25 118.25 663.00 663.00"><path d="M462.236 131.002c2.404.036 4.769.612 6.919 1.686l303 151.5c2.658 1.329 4.893 3.372 6.455 5.9 1.563 2.527 2.39 5.441 2.39 8.412v303c0 6.06-3.424 11.6-8.845 14.311l-303 151.5c-2.221 1.11-4.671 1.689-7.155 1.689s-4.934-.579-7.155-1.689l-303-151.5a15.99755 15.99755 0 0 1-6.455-5.9c-1.562-2.527-2.39-5.44-2.39-8.411v-303c0-6.06 3.424-11.601 8.845-14.312l303-151.5.425-.205c2.181-1.011 4.563-1.517 6.966-1.481zM271 343c-8.401 0-12.601 0-15.81 1.635-2.822 1.438-5.117 3.733-6.555 6.555C247 354.399 247 358.6 247 367v166c0 8.4 0 12.601 1.635 15.81 1.438 2.822 3.733 5.117 6.555 6.555C258.399 557 262.599 557 271 557h382c8.401 0 12.601 0 15.81-1.635 2.822-1.438 5.117-3.733 6.555-6.555C677 545.601 677 541.4 677 533V367c0-8.4 0-12.601-1.635-15.81-1.438-2.822-3.733-5.117-6.555-6.555C665.601 343 661.401 343 653 343H271zm40 36c2.8 0 4.2 0 5.27.545.94.48 1.706 1.245 2.185 2.185.545 1.07.545 2.47.545 5.27v90c0 2.8 0 4.201-.545 5.271-.48.94-1.245 1.705-2.185 2.184-1.07.545-2.47.545-5.27.545h-20c-2.8 0-4.2 0-5.27-.545-.94-.479-1.705-1.244-2.185-2.184C283 481.201 283 479.8 283 477v-90c0-2.8 0-4.2.545-5.27.479-.94 1.245-1.705 2.185-2.185C286.8 379 288.2 379 291 379h20zm72 0c2.8 0 4.2 0 5.27.545.94.48 1.706 1.245 2.185 2.185.545 1.07.545 2.47.545 5.27v90c0 2.8 0 4.201-.545 5.271-.48.94-1.245 1.705-2.185 2.184-1.07.545-2.47.545-5.27.545h-20c-2.8 0-4.2 0-5.27-.545-.94-.479-1.705-1.244-2.185-2.184C355 481.201 355 479.8 355 477v-90c0-2.8 0-4.2.545-5.27.479-.94 1.245-1.705 2.185-2.185C358.8 379 360.2 379 363 379h20zm72 0c2.8 0 4.2 0 5.27.545.94.48 1.706 1.245 2.185 2.185.545 1.07.545 2.47.545 5.27v90c0 2.8 0 4.201-.545 5.271-.48.94-1.245 1.705-2.185 2.184-1.07.545-2.47.545-5.27.545h-20c-2.8 0-4.2 0-5.27-.545-.94-.479-1.705-1.244-2.185-2.184C427 481.201 427 479.8 427 477v-90c0-2.8 0-4.2.545-5.27.479-.94 1.245-1.705 2.185-2.185C430.8 379 432.2 379 435 379h20zm72 0c2.8 0 4.201 0 5.271.545.94.48 1.705 1.245 2.184 2.185.545 1.07.545 2.47.545 5.27v90c0 2.8 0 4.201-.545 5.271-.479.94-1.244 1.705-2.184 2.184-1.07.545-2.471.545-5.271.545h-20c-2.8 0-4.2 0-5.27-.545-.94-.479-1.705-1.244-2.185-2.184C499 481.201 499 479.8 499 477v-90c0-2.8 0-4.2.545-5.27.479-.94 1.245-1.705 2.185-2.185C502.8 379 504.2 379 507 379h20z"/></svg>'
32+
label: "Podman Desktop"
33+
showLabel: true
34+
toolTip: "Podman Desktop"
35+
to: "https://podman-desktop.io"
36+
visibleOnPaths: ["/"]
37+
- mountPoint: global.floatingactionbutton/config
38+
importName: NullComponent
39+
config:
40+
icon: github
41+
label: "RHDH Local on GitHub"
42+
showLabel: true
43+
toolTip: "RHDH Local on GitHub"
44+
to: "https://github.com/redhat-developer/rhdh-local"
45+
visibleOnPaths: ["/"]
46+
- mountPoint: global.floatingactionbutton/config
47+
importName: NullComponent
48+
config:
49+
icon: docs
50+
label: "RHDH Documentation"
51+
showLabel: true
52+
toolTip: "RHDH Documentation"
53+
to: "https://docs.redhat.com/en/documentation/red_hat_developer_hub/"
54+
visibleOnPaths: ["/"]

0 commit comments

Comments
 (0)