2.0.6 • Published 7 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
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.0.26
7 years ago
1.0.25
7 years ago
1.0.24
7 years ago
1.0.23
7 years ago
1.0.22
7 years ago
1.0.21
7 years ago
1.0.20
7 years ago
1.0.19
7 years ago
1.0.18
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago