Skip to content

zenetys/kompot-wui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kompot-wui

Web interface for Kompot.

Project setup

Use Yarn to build the project:

  • yarn to install node modules
  • yarn dev to run dev server
  • yarn build to build app

Optionally edit config.json to customize URL of API endpoints.

Menu items

Menu items are loaded from config.json. In Kompot this file is currently generated by update-menus.

Sample menu item for a drawio diagram:

{
    "name": "Schéma de baie",
    "type": "drawio",
    "schema": "BAIE"
}

Internally, type "drawio" will produce:

{
    "name": "Schéma de baie",
    "type": "drawio",
    "schema": "BAIE",
    "to": "/drawio/view/BAIE",
    "actions": [
        {
            "icon": "mdi-pencil",
            "href": "./drawio-app/kedit.html#BAIE",
            "target": "_blank"
        }
    ]
}

Sample menu item for a classic link, opening in a new tab:

{
    "name": "YaNA",
    "href": "/yana",
    "target": "_blank",
    "icon": "mdi-lan"
}