0.7.0 • Published 5 years ago

amoe-butterworth-widgets v0.7.0

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

amoe-butterworth-widgets

npm version

Usage instructions

There is no default export. A named export WidgetView is exported.

The WidgetView takes a single prop, taxonomies. This is an object defining a set of available taxonomies. The string key is used to uniquely identify the taxonomy. The taxonomy should have a single root node.

Nodes should have a certain structure. A node should be an object with the following structure:

{
    content: "foo",
    uri: "tag:solasistim.net,2018-12-28:occubrow/Transport/1"
}

The URI is an opaque unique identifier string. Here I am using tag URIs. Each node must have a unique value for this property. It doesn't need to be a real URI, it could just as well be an integer, although URIs are preferred.

To get the needed CSS rules, you should do the following either within a component or within your entry point.

import 'amoe-butterworth-widgets/dist/amoe-butterworth-widgets.css';

Include the Vuex module into your store like so.

import Vuex from 'vuex';
import { WidgetsModule } from 'amoe-butterworth-widgets';

Vue.use(Vuex);

export default new Vuex.Store({
    // [rest of store definition omitted]
    modules: {
        widgets: WidgetsModule
    },
});

Releasing a new version

Steps:

Bump version number in package.json

Run

./node_modules/.bin/vue-cli-service build --target lib --name amoe-butterworth-widgets src/library-entry.ts

Now npm publish

0.7.0

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.17

5 years ago

0.5.16

5 years ago

0.5.15

5 years ago

0.5.14

5 years ago

0.5.13

5 years ago

0.5.12

5 years ago

0.5.11

5 years ago

0.5.10

5 years ago

0.5.9

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.6

5 years ago

0.4.5

5 years ago

0.4.4

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago