2.0.6 • Published 6 years ago
maglove-widgets v2.0.6
Maglove Widgets
Riot Widgets used for MagLoft TypeLoft Editor.
Description
maglove-widgets is a rendering library for widgets created with the TypeLoft 2.0 Editor.
It is using webcomponents using riot.js
(e.g. <container-widget ...>
) to create self-contained widgets that encapsulate UI and functionality of widgets.
Example
<!DOCTYPE html>
<html>
<head>
<script type="module">
import widgets from './widgets.js'
widgets.mount(document.querySelector("page-widget"))
</script>
</head>
<body>
<page-widget widget>
<paragraph-widget>Lorem Ipsum</paragraph-widget>
</page-widget>
</body>
</html>
Installation
$ yarn install
Development
# build, watch
(for developing the widget as a linked npm package)
$ yarn watch
# build, watch and start development server on 127.0.0.1:8080
(for developing the widget by itself)
$ yarn serve
# create distribution files in `dist/widgets.js`
$ yarn build
# lint javascript source files
$ yarn lint
2.0.6
6 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.26
6 years ago
1.0.25
6 years ago
1.0.24
6 years ago
1.0.23
6 years ago
1.0.22
6 years ago
1.0.21
6 years ago
1.0.20
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago