Skip to content

Commit

Permalink
geosolutions-it#10901: Update plugin documentation of BrandNavbar and…
Browse files Browse the repository at this point in the history
… localConfig
  • Loading branch information
dsuren1 committed Mar 7, 2025
1 parent a5a26ed commit 1ca2b92
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 39 deletions.
28 changes: 0 additions & 28 deletions web/client/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,6 @@
],
"desktop": [
"Details",
{
"name": "BrandNavbar",
"cfg": {
"containerPosition": "header"
}
},
{
"name": "Map",
"cfg": {
Expand Down Expand Up @@ -806,9 +800,6 @@
"FeedbackMask"
],
"common": [
{
"name": "BrandNavbar"
},
{ "name": "ManagerMenu" },
"Login",
"Language",
Expand Down Expand Up @@ -987,12 +978,6 @@
},
{ "name": "DashboardExport" },
{ "name": "DashboardImport" },
{
"name": "BrandNavbar",
"cfg": {
"containerPosition": "header"
}
},
{
"name": "Share",
"cfg": {
Expand Down Expand Up @@ -1118,13 +1103,6 @@
},
{ "name": "Save", "cfg": { "resourceType": "GEOSTORY" } },
{ "name": "SaveAs", "cfg": { "resourceType": "GEOSTORY" } },
{
"name": "BrandNavbar",
"cfg": {
"containerPosition": "header",
"disablePluginIf": "{(state('router') && state('router').includes('/geostory/shared') && state('geostorymode') !== 'edit')}"
}
},
{
"name": "Tutorial",
"cfg": {
Expand Down Expand Up @@ -1195,12 +1173,6 @@
"Permalink"
],
"context-creator": [
{
"name": "BrandNavbar",
"cfg": {
"containerPosition": "header"
}
},
"Redirect",
"Login",
"Language",
Expand Down
29 changes: 18 additions & 11 deletions web/client/plugins/ResourcesCatalog/BrandNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ BrandNavbarMenuItem.defaultProps = {
* @prop {object[]} cfg.leftMenuItems menu items configuration for left side
* @prop {object[]} cfg.rightMenuItems menu items configuration for right side
* @prop {object[]} items this property contains the items injected from the other plugins,
* @prop {object} logo configuration to display a logo in the navbar. If not provided, the default logo will be used.
* @prop {string} logo.src image source path of the logo
* @prop {string} logo.href hyperlink of the logo
* using the `containers` option in the plugin that want to inject new menu items.
* ```javascript
* const MyMenuButtonComponent = connect(selector, { onActivateTool })(({
Expand Down Expand Up @@ -133,17 +136,21 @@ BrandNavbarMenuItem.defaultProps = {
* "type": "divider"
* }
* ],
* "rightMenuItems": [
* {
* "type": "button",
* "href": "/my-link",
* "target": "blank",
* "glyph": "heart",
* "labelId": "myMessageId",
* "variant": "default"
* }
* ]
* }
* "rightMenuItems": [
* {
* "type": "button",
* "href": "/my-link",
* "target": "blank",
* "glyph": "heart",
* "labelId": "myMessageId",
* "variant": "default"
* }
* ],
* "logo": {
* "src": "/my-image.jpg",
* "href": "/my-link",
* }
* }
* }
*/
function BrandNavbar({
Expand Down

0 comments on commit 1ca2b92

Please sign in to comment.