@meese-os/widgets

1.0.4 • Public • Published

MeeseOS Widgets module

This is the Widgets module for MeeseOS

Usage

In your client bootstrap (src/client/index.js):

import { WidgetServiceProvider } from "@aaronmeese.com/widgets";

meeseOS.register(WidgetServiceProvider);

And in your stylesheet (src/client/index.scss):

@import "~@aaronmeese.com/widgets/dist/main.css";

To set up a default set of widgets in the user settings, modify your client configuration file (src/client/config.js):

{
	desktop: {
		settings: {
			widgets: [
				{
					name: "digitalclock",
				},
			];
		}
	}
}

A contextmenu entry on the desktop is automatically added so users can add these themselves.

TODO: Figure out how to move the widgets on mobile.

Package Sidebar

Install

npm i @meese-os/widgets

Weekly Downloads

2

Version

1.0.4

License

BSD-3-Clause

Unpacked Size

120 kB

Total Files

8

Last publish

Collaborators

  • ajmeese7