Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'innersvg-polyfill';
import jsencrypt from 'jsencrypt';
window.numeral = numeral_;
window.Backbone.Model = CoreModel;
window.Backbone.Collection = CoreCollection;
const api = {
moment: moment_,
Handlebars: Handlebars_,
_: window._,
Marionette: Marionette_,
numeral: numeral_,
codemirror: codemirror_,
JSEncrypt: jsencrypt.JSEncrypt,
autosize
};
const moment = api.moment;
const Handlebars = api.Handlebars;
const _ = window._;
const Marionette = Marionette_;
const numeral = api.numeral;
const codemirror = api.codemirror;
export default api;
export { moment, Handlebars, Marionette, numeral, codemirror, autosize };
encryptStr(password: string) {
this.publicKey = sessionStorage.getItem('pubKey');
const encrypt = new JsEncryptModule.JSEncrypt();
encrypt.setPublicKey(this.publicKey);
const encrypted = encrypt.encrypt(password.trim());
this.others.boardAdminPassword = encrypted;
}