Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
25
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/.bower.json
vendored
Executable file
25
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/.bower.json
vendored
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "smart-bubbles",
|
||||
"homepage": "https://github.com/smart-components/smart-bubbles",
|
||||
"main": "script.js",
|
||||
"license": "MPL",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"examples",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
],
|
||||
"_release": "600518ce80",
|
||||
"_resolution": {
|
||||
"type": "branch",
|
||||
"branch": "master",
|
||||
"commit": "600518ce807d8f8cddc0d0553f61738698df98b8"
|
||||
},
|
||||
"_source": "git://github.com/smart-components/smart-bubbles.git",
|
||||
"_target": "*",
|
||||
"_originalSource": "smart-components/smart-bubbles"
|
||||
}
|
||||
17
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/bower.json
vendored
Executable file
17
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/bower.json
vendored
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "smart-bubbles",
|
||||
"version": "0.0.0",
|
||||
"homepage": "https://github.com/smart-components/smart-bubbles",
|
||||
"main": "script.js",
|
||||
"license": "MPL",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"examples",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
74
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/script.js
vendored
Executable file
74
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/script.js
vendored
Executable file
|
|
@ -0,0 +1,74 @@
|
|||
'use strict';
|
||||
|
||||
window.SmartBubbles = (function(win) {
|
||||
|
||||
var DEFAULT_INTERVAL = 100;
|
||||
|
||||
// Extend from the HTMLElement prototype
|
||||
var proto = Object.create(HTMLElement.prototype);
|
||||
|
||||
proto.fireEvent = function(event, detail) {
|
||||
var evtObject = new CustomEvent(event, {
|
||||
bubbles: false,
|
||||
detail: detail || this
|
||||
});
|
||||
this.dispatchEvent(evtObject);
|
||||
};
|
||||
|
||||
proto.handleEvent = function(evt) {
|
||||
switch(evt.type) {
|
||||
case 'animationend':
|
||||
evt.currentTarget.classList.remove('smart-bubble-playing');
|
||||
evt.currentTarget.classList.add('smart-bubble-stopped');
|
||||
window.getComputedStyle(evt.currentTarget).animationName;
|
||||
evt.currentTarget.classList.remove('smart-bubble-stopped');
|
||||
window.getComputedStyle(evt.currentTarget).animationName;
|
||||
|
||||
this.fireEvent('item-bubbled', ++this._finishedAnimationCount);
|
||||
if (this._targetAnimationCount === this._finishedAnimationCount) {
|
||||
this.playing = false;
|
||||
this._elements = null;
|
||||
this.fireEvent('all-items-bubbled');
|
||||
}
|
||||
evt.currentTarget.removeEventListener('animationend', this);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
proto.play = function(elements) {
|
||||
this.stopImmediately();
|
||||
this._elements = elements;
|
||||
this._finishedAnimationCount = 0;
|
||||
this._targetAnimationCount = 0;
|
||||
var interval = parseInt(this.getAttribute('interval'), 10) ||
|
||||
DEFAULT_INTERVAL;
|
||||
[].forEach.call(elements, function(elem) {
|
||||
this._targetAnimationCount++;
|
||||
var delay = this._targetAnimationCount * interval / 1000;
|
||||
elem.classList.add('smart-bubble-playing');
|
||||
elem.style.animationDelay = delay + 's';
|
||||
elem.addEventListener('animationend', this);
|
||||
}.bind(this));
|
||||
this.playing = true;
|
||||
};
|
||||
|
||||
proto.stopImmediately = function() {
|
||||
if (!this.playing || !this._elements) {
|
||||
return;
|
||||
}
|
||||
[].forEach.call(this._elements, function(elem) {
|
||||
elem.classList.remove('smart-bubble-playing');
|
||||
elem.classList.add('smart-bubble-stopped');
|
||||
elem.removeEventListener('animationend', this);
|
||||
// use getComputedStyle to force flushing re-style
|
||||
window.getComputedStyle(elem).animationName;
|
||||
elem.classList.remove('smart-bubble-stopped');
|
||||
}.bind(this));
|
||||
this._elements = null;
|
||||
this.playing = false;
|
||||
this.fireEvent('all-items-stopped');
|
||||
};
|
||||
|
||||
// Register and return the constructor
|
||||
return document.registerElement('smart-bubbles', { prototype: proto });
|
||||
})(window);
|
||||
18
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/style.css
vendored
Executable file
18
gaia/tv_apps/tv-deck/bower_components/smart-bubbles/style.css
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
*[smart-bubbles="true"] .smart-bubble-playing {
|
||||
transition-property: none;
|
||||
transform: none;
|
||||
animation: bubble-animation .5s cubic-bezier(0.25, 0, 0, 1);
|
||||
animation-fill-mode: backwards;
|
||||
}
|
||||
|
||||
*[smart-bubbles="true"] .smart-bubble-stopped {
|
||||
transition-property: none;
|
||||
transform: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
@keyframes bubble-animation {
|
||||
0% {opacity: 0; transform: translateY(8rem);}
|
||||
50% {opacity: 1;}
|
||||
100% {transform: translateY(0);}
|
||||
}
|
||||
Loading…
Reference in a new issue