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:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,38 @@
{
"name": "gaia-toast",
"homepage": "https://github.com/gaia-components/gaia-toast",
"authors": [
"Wilson Page <wilsonpage@me.com>"
],
"main": "script.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"index.html",
"test",
"tests",
"examples",
"README.md"
],
"devDependencies": {
"base": "gaia-components/base",
"gaia-theme": "gaia-components/gaia-theme#~0.4.1",
"gaia-fonts": "gaia-components/gaia-fonts#~0.2.1",
"gaia-button": "gaia-components/gaia-button#master"
},
"dependencies": {
"gaia-component": "gaia-components/gaia-component#~0.2.0"
},
"_release": "fd000de635",
"_resolution": {
"type": "branch",
"branch": "master",
"commit": "fd000de635edc3298cf78c387a1bcb7667fd7382"
},
"_source": "git://github.com/gaia-components/gaia-toast.git",
"_target": "*",
"_originalSource": "gaia-components/gaia-toast",
"_direct": true
}

View file

@ -0,0 +1,29 @@
{
"name": "gaia-toast",
"version": "0.0.0",
"homepage": "https://github.com/gaia-components/gaia-toast",
"authors": [
"Wilson Page <wilsonpage@me.com>"
],
"main": "script.js",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"index.html",
"test",
"tests",
"examples",
"README.md"
],
"devDependencies": {
"base": "gaia-components/base",
"gaia-theme": "gaia-components/gaia-theme#~0.4.1",
"gaia-fonts": "gaia-components/gaia-fonts#~0.2.1",
"gaia-button": "gaia-components/gaia-button#master"
},
"dependencies": {
"gaia-component": "gaia-components/gaia-component#~0.2.0"
}
}

View file

@ -0,0 +1,170 @@
;(function(define){define(function(require,exports,module){
/*jshint esnext:true*/
'use strict';
/**
* Dependencies
*/
var component = require('gaia-component');
/**
* Exports
*/
module.exports = component.register('gaia-toast', {
created: function() {
this.setupShadowRoot();
this.els = {
inner: this.shadowRoot.querySelector('.inner'),
bread: this.shadowRoot.querySelector('.bread')
};
this.timeout = this.getAttribute('timeout');
},
show: function() {
this.els.bread.removeEventListener('animationend', this.onAnimateOutEnd);
clearTimeout(this.hideTimeout);
this.els.inner.classList.add('visible');
var reflow = this.els.inner.offsetTop;
this.els.bread.classList.remove('animate-out');
this.els.bread.classList.add('animate-in');
this.hideTimeout = setTimeout(this.hide.bind(this), this.timeout);
},
hide: function() {
var self = this;
clearTimeout(this.hideTimeout);
this.els.bread.classList.remove('animate-in');
this.els.bread.classList.add('animate-out');
this.els.bread.removeEventListener('animationend', this.onAnimateOutEnd);
this.onAnimateOutEnd = function() {
self.els.bread.removeEventListener('animationend', self.onAnimateOutEnd);
self.els.bread.classList.remove('animate-out');
self.els.inner.classList.remove('visible');
};
this.els.bread.addEventListener('animationend', this.onAnimateOutEnd);
},
animateOut: function() {},
attrs: {
timeout: {
get: function() { return this.getAttribute('timeout') || 1000; },
set: function(value) {
var current = this.getAttribute('timeout');
if (current == value) { return; }
else if (!value) { this.removeAttribute('timeout'); }
else { this.setAttribute('timeout', value); }
}
}
},
template: `
<div class="inner">
<div class="bread">
<content></content>
</div>
</div>
<style>
/** Host
---------------------------------------------------------*/
:host {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
font-style: italic;
text-align: center;
z-index: 100;
color:
var(--highlight-color);
}
/** Inner
---------------------------------------------------------*/
.inner {
display: none;
padding: 16px;
}
.inner.visible {
display: block;
}
/**
---------------------------------------------------------*/
.bread {
max-width: 600px;
margin: 0 auto;
padding: 16px;
box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.15);
transform: translateY(100%);
background:
var(--background-plus,
white);
}
.bread.animate-in {
animation-name: gaia-toast-enter;
animation-fill-mode: forwards;
animation-duration: 300ms;
}
.bread.animate-out {
animation-name: gaia-toast-leave;
animation-duration: 600ms;
transform: translateY(0%);
}
</style>
`,
globalCss: `
@keyframes gaia-toast-enter {
0% {
transform: translateY(100%);
opacity: 0;
}
40% {
opacity: 0;
}
100% {
transform: translateY(0%);
opacity: 1;
}
}
@keyframes gaia-toast-leave {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`
});
});})(typeof define=='function'&&define.amd?define
:(function(n,w){'use strict';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;};})('gaia-toast',this));