npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@blueeast/bluerain-app-settings

v1.2.15

Published

A settings app for the BlueRain OS.

Downloads

28

Readme

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

| Property | Value | | -------- | -------- | | appName | Settings | | slug | settings |

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

| Name | Type | Description | | ----- | ----------------------------- | ------------------------------------------------------------ | | items | Array<SettingsLayoutItem | string> | This is the main schema that is used to generate the layout. |

Returns

| Name | Type | Description | | ----- | ----------------------------- | ------------------------------------------------------------ | | items | Array<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

    | Label | Value | | ----------- | ------------------------------------------------------------ | | Type | String | | Required | ✅ | | Description | This is the path of the page where this layout is used. It is used to build sub pages/routes for each settings item. |

  • items

    | Label | Value | | ----------- | ------------------------------------------------------------ | | Type | Array<SettingsLayoutItem | string> | | Required | ❌ | | Default | [] (Empty Array) | | Description | This is the main schema that is used to generate the settings layout.Defaults to an empty array. |

  • componentNamePrefix

    | Label | Value | | ----------- | ------------------------------------------------------------ | | Type | String | | Required | ❌ | | Default | SettingsLayout | | Description | This 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

    | Label | Value | | ----------- | ------------------------------------------------------------ | | Type | string | React.ComponentType | | Required | ❌ | | Default | BR.Components.SettingsLayoutMainHeader | | Description | This 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. |