##// END OF EJS Templates
database: dropped CheckConstraint for auto-increment field for mysql/mariadb compatability....
database: dropped CheckConstraint for auto-increment field for mysql/mariadb compatability. - https://mariadb.com/kb/en/library/constraint/#auto_increment - causes installation error on later MariaDB/MySQL

File last commit:

r3192:689a0c93 merge stable
r3486:118155b6 default
Show More
rhodecode-favicon.js
33 lines | 727 B | application/javascript | JavascriptLexer
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
export class RhodecodeFavicon extends PolymerElement {
static get is() {
return 'rhodecode-favicon';
}
static get properties() {
return {
favicon: Object,
counter: {
type: Number,
observer: '_handleCounter'
}
}
}
connectedCallback() {
super.connectedCallback();
this.favicon = new Favico({
type: 'rectangle',
animation: 'none'
});
}
_handleCounter(newVal, oldVal) {
this.favicon.badge(this.counter);
}
}
customElements.define(RhodecodeFavicon.is, RhodecodeFavicon);