##// END OF EJS Templates
encryption: added new backend using cryptography + Fernet encryption....
encryption: added new backend using cryptography + Fernet encryption. - This would soon replace the old deprecated one based on pycrypto - We need a migration for the encryption data

File last commit:

r3192:689a0c93 merge stable
r3522:3910c057 default
Show More
rhodecode-unsafe-html.js
30 lines | 651 B | application/javascript | JavascriptLexer
js: migrate to polymer 3.x
r3173 import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
export class RhodecodeUnsafeHtml extends PolymerElement {
static get is() {
return 'rhodecode-unsafe-html';
}
static get template() {
return html`
<style include="shared-styles"></style>
<slot></slot>
`;
}
static get properties() {
return {
text: {
type: String,
observer: '_handleText'
}
}
}
_handleText(newVal, oldVal) {
this.innerHTML = this.text;
}
}
customElements.define(RhodecodeUnsafeHtml.is, RhodecodeUnsafeHtml);