by Wilson Page
"A collection of low-level, framework agnostic APIs for creating portable UI pieces"
dom.webcomponents.enabled
Sharing common UI brings consistency
But we ran into some problems …
<gaia-slider>
<gaia-tabs>
<gaia-toast>
<gaia-header>
<gaia-picker-date>
<gaia-picker-time>
<gaia-fast-list>
HTML Imports...?
document.registerElement('x-foo', {
prototype: {
createdCallback: function() {
this.createShadowRoot().innerHTML = `
title
`;
}
}
});
;(function(define){define(function(require,exports,module){
var dependency = require('some-dependency');
...
module.exports = { exported: 'stuff' };
});})(typeof define=='function'&&define.amd?define
:(function(n,w){return typeof module=='object'?function(c){
c(require,exports,module);}:function(c){var m={exports:{}};c(function(n){
return w[n];},m.exports,m);w[n]=m.exports;};})('module-name',this));
Powered by CSS Variables
.theme-settings {
--background: #f4f4f4;
--background-plus: #ffffff;
--background-minus: #858585;
--background-minus-minus: #a6a6a6;
--highlight-color: #00caf2;
--border-color: #e7e7e7;
}
<html>
<head>
<link rel="stylesheet" href="gaia-theme.css">
</head>
<body class="theme-settings"></body>
</html>
Tests run automatically
language: node_js
node_js:
- '0.10'
install:
- npm install
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- $CI_ACTION
env:
global:
- TEST_SUITE=unit
matrix:
- CI_ACTION="npm run test-lint"
- CI_ACTION="npm run test-unit"
- CI_ACTION="npm run test-integration"
git tag v0.1.0
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu mollis tortor. Lab mit dior tempor incidentunt ut et dolore magna...