storage API

GetSettings

Returns the list of global components, global settings, and projects associated with the application.

await storageInterface.getSettings();
/*logs something like:
result:
settings:components:
{component1: {…},
component2: {…},
PWA-API: {…},
bootstrap: {…},
documentation: {…},
…}
globalSettings:
{server: {…},
workspace: 'www',
applicationName: 'tilepieces',
panelPosition: 'right',
sandboxFrame: true,
…}
projects: (7) [{…}, {…}, {…}, {…}, {…}, {…}, {…}]*/

Parameters

None

Return Value

A Promise that resolve to a JSON object structured as follows.

settings
JSON object
components
object- A list of global components in the form key (name) - value (associated properties)
globalSettings
objectList the global properties. 
projects
array- List of projects. The first one must be the last project opened.