1.2.15 • Published 5 years ago

@blueeast/bluerain-app-settings v1.2.15

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

BlueRain Settings App

A settings app for the BlueRain OS.

————— TODO: Add Screenshot here —————

Compatibility

🌏 Web🖥 Electron📱 React Native

Installation

Run the following command in the plugin directoy:

yarn add @blueeast/bluerain-app-settings

Then in your boot function, pass the plugin like this:

import BR from '@blueeast/bluerain-os';
import AppSettings from '@blueeast/bluerain-app-settings';

BR.boot({
	apps: [AppSettings]
})

Info

PropertyValue
appNameSettings
slugsettings

Hooks

This app provide the following hooks to dynamically modify it's behavior:

app.settings.items

The items schema that generates the layout and it's routes can be modified before exection.

Parameters

NameTypeDescription
itemsArray<SettingsLayoutItem | string>This is the main schema that is used to generate the layout.

Returns

NameTypeDescription
itemsArray<SettingsLayoutItem | string>This is the main schema that is used to generate the layout.

Components

In addition to hooks, the app also registers various components that work as building blocks to generate the layout.

SettingsLayout

This is the main layout component and is the top level visible view of the app. This layout can also be reused to create setting sections in other apps and plugins.

Props

  • path

    LabelValue
    TypeString
    Required
    DescriptionThis is the path of the page where this layout is used. It is used to build sub pages/routes for each settings item.
  • items

    LabelValue
    TypeArray<SettingsLayoutItem | string>
    Required
    Default[] (Empty Array)
    DescriptionThis is the main schema that is used to generate the settings layout.Defaults to an empty array.
  • componentNamePrefix

    LabelValue
    TypeString
    Required
    DefaultSettingsLayout
    DescriptionThis string is used to build component names which are used as building blocks of the layout.So for example if the layout wants to fetch Menu component, SettingsLayout will look for SettingsLayoutMenu component in the BlueRain registry.
  • appBar

    LabelValue
    Typestring | React.ComponentType
    Required
    DefaultBR.Components.SettingsLayoutMainHeader
    DescriptionThis is the main App Bar of the layout. If a string is given, the layout will try to use it as a component name to look into the BlueRain component registry.On desktop it is used persistently on every route. On mobile, it is only used on the settings index route.
1.2.15

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta.1

5 years ago

1.2.14

6 years ago

1.2.13

6 years ago

1.2.12

6 years ago

1.2.11

6 years ago

1.2.10

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.5.1

6 years ago

0.5.0

7 years ago

0.4.8

7 years ago

0.4.4

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.0.0

7 years ago