@digital-enabler/sidebar

2.0.9 • Public • Published

Sidebar microfrontend

Digital Enabler - Sidebar microfrontend

Digital Enabler - Sidebar microfrontend

The Sidebar microfrontend shows a sidebar with navigation to datasources, mashups, flows, services etc. The Sidebar works within the DME tool in which it is mounted, and to work correctly it also needs the following microfrontends:Mashups List,Flows List, Datasources List and [Auth] (https://github.com/digital-enabler/demf-auth)

NOTE: See here on how to mount a microfrontend and also here to more info about Microfrontend application for Digital Enabler.

This project is also available from the following CDN.

Pre-requisites

Before you continue you need to

  • have NPM installed
  • have NodeJS installed
  • have VueJS and Vue-CLI installed
  • have a GitHub account
  • use VisualStudio Code or IntelliJ Idea as your development IDE

Project management

Installation

Open a Terminal window in the project folder and go inside the app folder, then launch the command:

npm install

NOTE: When install finished, do not care about the warnings on the versions and vulnerability problems reported, and DO NOT launch the npm audit fix or npm audit fix –force commands

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

NOTE: Alternatively to the command indicated above you can use the VueUI browser interface

Configs file

To work properly the Sidebar Microfrontend needs an config.json file with this settings:

{
  "mf": "Sidebar", // Name of the microfrontend used in root-config -gui.js file
  "api": "https://[generic_api_location]/api", // URL path to the backend api
  "storageImgs": "https://[storage_location]/imgs", // URL path to the images
  "jsonTools": "https://[storage_location]/demo/tools.json", // URL path to populate the list of services at the bottom of the sidebar
  "links": [ // Navigation links
    {
      "title": "labels.mashups", // The title that is in localized value
      "icon": "mdi-file-tree", // Icon next to the title
      "link": "/mashups" // Link that leads to the desired location
    },
    {
      "title": "labels.datasources",
      "icon": "mdi-database",
      "link": "/datasources"
    },
    {
      "title": "labels.flows",
      "icon": "mdi-transit-connection-horizontal",
      "link": "/flows"
    }
  ],
  "favorites": {
    "enabled": false, // Show or hide the favorite services
    "uri": "" // API for the favorite services
  },
  "logo": "/DataMashupEditor.svg", // URL of the logo of the Digital Enabler at the top of the sidebar when the sidebar is expanded
  "miniLogo": "/de-mini.svg", // URL of the mini-logo of the Digital Enabler at the top of the sidebar when the sidebar is collapsed
  "showServicesMenu": true // Show or hide the services menu
}

This json file must to be stored and set as described here and also here.

Readme

Keywords

none

Package Sidebar

Install

npm i @digital-enabler/sidebar

Weekly Downloads

0

Version

2.0.9

License

none

Unpacked Size

3.58 MB

Total Files

4

Last publish

Collaborators

  • digital-enabler