##// END OF EJS Templates
pytest: restructure fixtures/plugins to fix problems with pkg_resources and Can't perform this operation for unregistered loader type errors....
pytest: restructure fixtures/plugins to fix problems with pkg_resources and Can't perform this operation for unregistered loader type errors. - seems the latest pytest breaks older packages relying on pkg_resources when defining a entrypoints plugins - change the way we register plugins to be local only, this is what we need anyway

File last commit:

r3192:689a0c93 merge stable
r4986:8782a2c5 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);