oxe
A mighty tiny web components framework/library
Last updated 8 days ago by alexanderelias .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install oxe 
SYNC missed versions from official npm registry.

Oxe

A mighty tiny web components framework/library.

API

Api documentation can be found at API.md.

VERSION

Breaking version changes can be found at VERSION.md.

Features

  • Small size
  • Front end routing
  • Configuration based
  • Dynamic import polyfill
  • Template string polyfill
  • In browser Template and Import/Export rewrites

Polyfill

  • poly.min.js includes everything need except shadow poly code.
    • customElements
    • DocumentFragment
    • URL, Promise, fetch
    • HTMLTemplateElement
    • Event, CustomEvent, MouseEvent constructors and Object.assign, Array.from
  • poly.shadow.min.js includes everything.
    • Webcomponentsjs
    • DocumentFragment
    • URL, Promise, fetch

Support

  • IE10~
  • IE11
  • Chrome
  • Firefox
  • Safari 7
  • Mobile Safari
  • Chrome Android

Overview

Live examples vokeio.github.io/oxe/.

Install

  • npm i oxe --save
  • Script dst/poly.min.js
  • UMD dst/oxe.min.js

Example

// home.js

export default {
	path: '/',
	title: 'Home',
	component: {
		name: 'r-home',
		template: `
			<h1 o-text="title"></h1>
			<button o-on-click="greet">Greet</button>
		`,
		model: {
			greeting: 'Old Hello World'
		},
		methods: {
			greet: function () {
				console.log(this.model.greeting);
			}
		},
		created: function () {
			console.log(this.model.greeting);
			this.model.greeting = 'New Hello World';
		}
	}
};
// index.js

import './elements/e-menu.js';
import Home from './home.js';

Oxe.setup({
	loader: {
		type: 'es' // required to rewrite import exports
	},
	router: {
		routes: [
			Home,
			'error' // dynamically loads and resolves to /routes/error.js
		]
	}
}).catch(console.error);
<!-- index.html -->

<html>
<head>

	<base href="/">
	<script src="./poly.min.js" defer></script>
	<script src="./oxe.min.js" o-setup="./index.js, es" defer></script>

</head>
<body>

	<e-menu>
		<ul>
			<li><a href="/home">Home</a></li>
		</ul>
	</e-menu>

	<o-router></o-router>

</body>
</html>

Author

vokeio

License

Why You Should Choose MPL-2.0 This project is licensed under the MPL-2.0 License

Current Tags

  • 5.2.7                                ...           latest (8 days ago)

226 Versions

  • 5.2.7                                ...           8 days ago
  • 5.2.6                                ...           10 days ago
  • 5.2.5                                ...           11 days ago
  • 5.2.4                                ...           11 days ago
  • 5.2.3                                ...           17 days ago
  • 5.2.2                                ...           18 days ago
  • 5.2.1                                ...           19 days ago
  • 5.2.0                                ...           a month ago
  • 5.1.0                                ...           a month ago
  • 4.16.0                                ...           7 months ago
  • 4.14.0                                ...           7 months ago
  • 4.13.0                                ...           7 months ago
  • 4.12.0                                ...           7 months ago
  • 4.11.4                                ...           8 months ago
  • 4.11.3                                ...           8 months ago
  • 4.11.2                                ...           8 months ago
  • 4.11.1                                ...           8 months ago
  • 4.11.0                                ...           8 months ago
  • 4.10.1                                ...           8 months ago
  • 4.10.0                                ...           8 months ago
  • 4.9.2                                ...           8 months ago
  • 4.9.1                                ...           8 months ago
  • 4.9.0                                ...           8 months ago
  • 4.8.1                                ...           8 months ago
  • 4.8.0                                ...           8 months ago
  • 4.7.3                                ...           8 months ago
  • 4.7.2                                ...           8 months ago
  • 4.7.1                                ...           8 months ago
  • 4.7.0                                ...           8 months ago
  • 4.6.0                                ...           8 months ago
  • 4.5.0                                ...           8 months ago
  • 4.4.0                                ...           8 months ago
  • 4.3.0                                ...           8 months ago
  • 4.2.0                                ...           8 months ago
  • 4.1.0                                ...           8 months ago
  • 4.0.8                                ...           8 months ago
  • 4.0.7                                ...           8 months ago
  • 4.0.6                                ...           8 months ago
  • 4.0.5                                ...           8 months ago
  • 4.0.4                                ...           8 months ago
  • 4.0.3                                ...           8 months ago
  • 4.0.2                                ...           8 months ago
  • 3.20.3                                ...           9 months ago
  • 3.20.2                                ...           9 months ago
  • 3.20.1                                ...           10 months ago
  • 3.20.0                                ...           10 months ago
  • 3.19.3                                ...           10 months ago
  • 3.19.2                                ...           10 months ago
  • 3.19.1                                ...           10 months ago
  • 3.19.0                                ...           10 months ago
  • 3.18.0                                ...           10 months ago
  • 3.17.1                                ...           10 months ago
  • 3.17.0                                ...           10 months ago
  • 3.16.1                                ...           10 months ago
  • 3.16.0                                ...           10 months ago
  • 3.15.12                                ...           10 months ago
  • 3.15.11                                ...           10 months ago
  • 3.15.10                                ...           10 months ago
  • 3.15.9                                ...           a year ago
  • 3.15.8                                ...           a year ago
  • 3.15.7                                ...           a year ago
  • 3.15.6                                ...           a year ago
  • 3.15.5                                ...           a year ago
  • 3.15.4                                ...           a year ago
  • 3.15.3                                ...           a year ago
  • 3.15.2                                ...           a year ago
  • 3.15.1                                ...           a year ago
  • 3.15.0                                ...           a year ago
  • 3.14.3                                ...           a year ago
  • 3.14.2                                ...           a year ago
  • 3.14.1                                ...           a year ago
  • 3.14.0                                ...           a year ago
  • 3.13.2                                ...           a year ago
  • 3.13.1                                ...           a year ago
  • 3.13.0                                ...           a year ago
  • 3.12.0                                ...           a year ago
  • 3.11.3                                ...           a year ago
  • 3.11.2                                ...           a year ago
  • 3.11.1                                ...           a year ago
  • 3.11.0                                ...           a year ago
  • 3.10.5                                ...           a year ago
  • 3.9.4                                ...           a year ago
  • 3.9.3                                ...           a year ago
  • 3.9.2                                ...           a year ago
  • 3.9.1                                ...           a year ago
  • 3.9.0                                ...           a year ago
  • 3.8.0                                ...           a year ago
  • 3.7.0                                ...           a year ago
  • 3.6.14                                ...           a year ago
  • 3.6.13                                ...           a year ago
  • 3.6.12                                ...           a year ago
  • 3.6.11                                ...           a year ago
  • 3.6.10                                ...           a year ago
  • 3.6.9                                ...           a year ago
  • 3.6.8                                ...           a year ago
  • 3.6.6                                ...           a year ago
  • 3.6.5                                ...           a year ago
  • 3.6.4                                ...           a year ago
  • 3.6.3                                ...           a year ago
  • 3.6.2                                ...           2 years ago
  • 3.6.1                                ...           2 years ago
  • 3.6.0                                ...           2 years ago
  • 3.5.1                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.10                                ...           2 years ago
  • 3.4.9                                ...           2 years ago
  • 3.4.8                                ...           2 years ago
  • 3.4.7                                ...           2 years ago
  • 3.4.6                                ...           2 years ago
  • 3.4.5                                ...           2 years ago
  • 3.4.4                                ...           2 years ago
  • 3.4.3                                ...           2 years ago
  • 3.4.2                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.12                                ...           2 years ago
  • 3.1.10                                ...           2 years ago
  • 3.1.9                                ...           2 years ago
  • 3.1.8                                ...           2 years ago
  • 3.1.7                                ...           2 years ago
  • 3.1.6                                ...           2 years ago
  • 3.1.5                                ...           2 years ago
  • 3.1.4                                ...           2 years ago
  • 3.1.3                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.9.9                                ...           2 years ago
  • 2.9.8                                ...           2 years ago
  • 2.9.7                                ...           2 years ago
  • 2.9.6                                ...           2 years ago
  • 2.9.5                                ...           2 years ago
  • 2.9.3                                ...           2 years ago
  • 2.9.2                                ...           2 years ago
  • 2.9.1                                ...           2 years ago
  • 2.9.0                                ...           2 years ago
  • 2.8.24                                ...           2 years ago
  • 2.8.23                                ...           2 years ago
  • 2.8.22                                ...           2 years ago
  • 2.8.21                                ...           2 years ago
  • 2.8.18                                ...           2 years ago
  • 2.8.14                                ...           2 years ago
  • 2.8.13                                ...           2 years ago
  • 2.8.12                                ...           2 years ago
  • 2.8.11                                ...           2 years ago
  • 2.8.10                                ...           2 years ago
  • 2.8.9                                ...           2 years ago
  • 2.8.2                                ...           2 years ago
  • 2.8.1                                ...           2 years ago
  • 2.8.0                                ...           2 years ago
  • 2.7.5                                ...           2 years ago
  • 2.7.4                                ...           2 years ago
  • 2.7.3                                ...           2 years ago
  • 2.7.2                                ...           2 years ago
  • 2.7.1                                ...           2 years ago
  • 2.7.0                                ...           2 years ago
  • 2.6.8                                ...           2 years ago
  • 2.6.7                                ...           2 years ago
  • 2.6.6                                ...           2 years ago
  • 2.6.5                                ...           2 years ago
  • 2.6.4                                ...           2 years ago
  • 2.6.3                                ...           2 years ago
  • 2.6.2                                ...           2 years ago
  • 2.6.1                                ...           2 years ago
  • 2.6.0                                ...           2 years ago
  • 2.5.17                                ...           2 years ago
  • 2.5.16                                ...           2 years ago
  • 2.5.15                                ...           2 years ago
  • 2.5.14                                ...           2 years ago
  • 2.5.13                                ...           2 years ago
  • 2.5.12                                ...           2 years ago
  • 2.5.11                                ...           2 years ago
  • 2.5.10                                ...           2 years ago
  • 2.5.9                                ...           2 years ago
  • 2.5.8                                ...           2 years ago
  • 2.5.7                                ...           2 years ago
  • 2.5.6                                ...           2 years ago
  • 2.5.5                                ...           2 years ago
  • 2.5.3                                ...           2 years ago
  • 2.5.1                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 2.3.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.12                                ...           2 years ago
  • 2.0.11                                ...           2 years ago
  • 2.0.10                                ...           2 years ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.10.7                                ...           2 years ago
  • 1.10.6                                ...           2 years ago
  • 1.10.5                                ...           2 years ago
  • 1.10.4                                ...           2 years ago
  • 1.10.3                                ...           2 years ago
  • 1.10.2                                ...           2 years ago
  • 1.10.1                                ...           2 years ago
  • 1.10.0                                ...           2 years ago
  • 1.9.14                                ...           2 years ago
  • 1.9.13                                ...           2 years ago
  • 1.9.12                                ...           2 years ago
  • 1.9.11                                ...           2 years ago
  • 1.9.10                                ...           2 years ago
  • 1.9.9                                ...           2 years ago
  • 1.9.8                                ...           2 years ago
  • 1.9.7                                ...           2 years ago
  • 1.9.6                                ...           2 years ago
  • 1.9.5                                ...           2 years ago
  • 1.9.4                                ...           2 years ago
  • 1.9.3                                ...           2 years ago
  • 1.9.2                                ...           2 years ago
  • 1.9.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 104
Last Day 0
Last Week 36
Last Month 726
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |