Updates desktopManager to handle extServer, bump dependencies, 3.0.22

This commit is contained in:
Mo Bitar
2019-11-21 16:01:11 -06:00
parent ec0555ad26
commit 7cbbf5ae1b
6 changed files with 127 additions and 97 deletions

View File

@@ -32,9 +32,9 @@ class DesktopManager {
this.majorDataChangeHandler && this.majorDataChangeHandler(); this.majorDataChangeHandler && this.majorDataChangeHandler();
} }
getApplicationDataPath() { getExtServerHost() {
console.assert(this.applicationDataPath, "applicationDataPath is null"); console.assert(this.extServerHost, "extServerHost is null");
return this.applicationDataPath; return this.extServerHost;
} }
/* /*
@@ -152,9 +152,9 @@ class DesktopManager {
} }
/* Used to resolve "sn://" */ /* Used to resolve "sn://" */
desktop_setApplicationDataPath(path) { desktop_setExtServerHost(host) {
this.applicationDataPath = path; this.extServerHost = host;
this.$rootScope.$broadcast("desktop-did-set-application-path"); this.$rootScope.$broadcast("desktop-did-set-ext-server-host");
} }
desktop_setComponentInstallationSyncHandler(handler) { desktop_setComponentInstallationSyncHandler(handler) {

View File

@@ -18,7 +18,7 @@ class ThemeManager {
}) })
if(desktopManager.isDesktop) { if(desktopManager.isDesktop) {
$rootScope.$on("desktop-did-set-application-path", () => { $rootScope.$on("desktop-did-set-ext-server-host", () => {
this.activateCachedThemes(); this.activateCachedThemes();
}) })
} else { } else {

View File

@@ -13078,6 +13078,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var SKAlert = var SKAlert =
/*#__PURE__*/ /*#__PURE__*/
function () { function () {
@@ -13085,12 +13087,24 @@ function () {
buttons: [{text, style, action}] buttons: [{text, style, action}]
*/ */
function SKAlert(_ref) { function SKAlert(_ref) {
var _this = this;
var title = _ref.title, var title = _ref.title,
text = _ref.text, text = _ref.text,
buttons = _ref.buttons; buttons = _ref.buttons;
_classCallCheck(this, SKAlert); _classCallCheck(this, SKAlert);
_defineProperty(this, "keyupListener", function (event) {
if (event.key === "Enter") {
var primaryButton = _this.primaryButton();
primaryButton.action && primaryButton.action();
_this.dismiss();
}
});
this.title = title; this.title = title;
this.text = text; this.text = text;
this.buttons = buttons; this.buttons = buttons;
@@ -13118,9 +13132,30 @@ function () {
var template = "\n <div class=\"sk-modal\">\n <div class=\"sk-modal-background\"></div>\n <div class=\"sk-modal-content\">\n <div class=\"sn-component\">\n <div class=\"sk-panel\" style='max-width: 500px;'>\n <div class=\"sk-panel-content\">\n <div class=\"sk-panel-section\">\n ".concat(titleTemplate, "\n\n <div class=\"sk-panel-row\">\n ").concat(messageTemplate, "\n </div>\n\n <div class=\"sk-panel-row\" style='margin-top: 8px;'>\n ").concat(buttonsTemplate, "\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n "); var template = "\n <div class=\"sk-modal\">\n <div class=\"sk-modal-background\"></div>\n <div class=\"sk-modal-content\">\n <div class=\"sn-component\">\n <div class=\"sk-panel\" style='max-width: 500px;'>\n <div class=\"sk-panel-content\">\n <div class=\"sk-panel-section\">\n ".concat(titleTemplate, "\n\n <div class=\"sk-panel-row\">\n ").concat(messageTemplate, "\n </div>\n\n <div class=\"sk-panel-row\" style='margin-top: 8px;'>\n ").concat(buttonsTemplate, "\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n ");
return template; return template;
} }
}, {
key: "dismiss",
value: function dismiss() {
this.onElement.removeChild(this.element);
document.removeEventListener("keyup", this.keyupListener);
}
}, {
key: "primaryButton",
value: function primaryButton() {
var primary = this.buttons.find(function (button) {
return button.primary === true;
});
if (!primary) {
primary = this.buttons[this.buttons.length - 1];
}
return primary;
}
}, { }, {
key: "present", key: "present",
value: function present() { value: function present() {
var _this2 = this;
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
onElement = _ref2.onElement; onElement = _ref2.onElement;
@@ -13128,21 +13163,21 @@ function () {
onElement = document.body; onElement = document.body;
} }
var div = document.createElement('div'); this.onElement = onElement;
div.innerHTML = this.templateString().trim(); this.element = document.createElement('div');
var background = div.querySelector(".sk-modal-background"); this.element.className = 'sn-component';
background.addEventListener('click', function () { this.element.innerHTML = this.templateString().trim();
onElement.removeChild(div); document.addEventListener("keyup", this.keyupListener);
});
this.buttons.forEach(function (buttonDesc, index) { this.buttons.forEach(function (buttonDesc, index) {
var buttonElem = div.querySelector("#button-".concat(index)); var buttonElem = _this2.element.querySelector("#button-".concat(index));
buttonElem.onclick = function () { buttonElem.onclick = function () {
buttonDesc.action && buttonDesc.action(); buttonDesc.action && buttonDesc.action();
onElement.removeChild(div);
_this2.dismiss();
}; };
}); });
onElement.appendChild(div); onElement.appendChild(this.element);
} }
}]); }]);
@@ -13157,7 +13192,7 @@ function () {
/***/ }) /***/ })
/******/ ]);;/** /******/ ]);;/**
* @license AngularJS v1.7.8 * @license AngularJS v1.7.9
* (c) 2010-2018 Google, Inc. http://angularjs.org * (c) 2010-2018 Google, Inc. http://angularjs.org
* License: MIT * License: MIT
*/ */
@@ -13257,7 +13292,7 @@ function isValidObjectMaxDepth(maxDepth) {
function minErr(module, ErrorConstructor) { function minErr(module, ErrorConstructor) {
ErrorConstructor = ErrorConstructor || Error; ErrorConstructor = ErrorConstructor || Error;
var url = 'https://errors.angularjs.org/1.7.8/'; var url = 'https://errors.angularjs.org/1.7.9/';
var regex = url.replace('.', '\\.') + '[\\s\\S]*'; var regex = url.replace('.', '\\.') + '[\\s\\S]*';
var errRegExp = new RegExp(regex, 'g'); var errRegExp = new RegExp(regex, 'g');
@@ -13639,8 +13674,10 @@ function baseExtend(dst, objs, deep) {
} else if (isElement(src)) { } else if (isElement(src)) {
dst[key] = src.clone(); dst[key] = src.clone();
} else { } else {
if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {}; if (key !== '__proto__') {
baseExtend(dst[key], [src], true); if (!isObject(dst[key])) dst[key] = isArray(src) ? [] : {};
baseExtend(dst[key], [src], true);
}
} }
} else { } else {
dst[key] = src; dst[key] = src;
@@ -15963,11 +16000,11 @@ function toDebugString(obj, maxDepth) {
var version = { var version = {
// These placeholder strings will be replaced by grunt's `build` task. // These placeholder strings will be replaced by grunt's `build` task.
// They need to be double- or single-quoted. // They need to be double- or single-quoted.
full: '1.7.8', full: '1.7.9',
major: 1, major: 1,
minor: 7, minor: 7,
dot: 8, dot: 9,
codeName: 'enthusiastic-oblation' codeName: 'pollution-eradication'
}; };
@@ -16117,7 +16154,7 @@ function publishExternalAPI(angular) {
}); });
} }
]) ])
.info({ angularVersion: '1.7.8' }); .info({ angularVersion: '1.7.9' });
} }
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -20618,7 +20655,7 @@ function $TemplateCacheProvider() {
* *
* This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the * This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the
* actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large * actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large
* arrays or objects can have a negative impact on your application performance) * arrays or objects can have a negative impact on your application performance.)
* *
* <example name="doCheckArrayExample" module="do-check-module"> * <example name="doCheckArrayExample" module="do-check-module">
* <file name="index.html"> * <file name="index.html">
@@ -20941,7 +20978,7 @@ function $TemplateCacheProvider() {
* would result in the whole app "stalling" until all templates are loaded asynchronously - even in the * would result in the whole app "stalling" until all templates are loaded asynchronously - even in the
* case when only one deeply nested directive has `templateUrl`. * case when only one deeply nested directive has `templateUrl`.
* *
* Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache} * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}.
* *
* You can specify `templateUrl` as a string representing the URL or as a function which takes two * You can specify `templateUrl` as a string representing the URL or as a function which takes two
* arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns
@@ -21002,7 +21039,7 @@ function $TemplateCacheProvider() {
* own templates or compile functions. Compiling these directives results in an infinite loop and * own templates or compile functions. Compiling these directives results in an infinite loop and
* stack overflow errors. * stack overflow errors.
* *
* This can be avoided by manually using $compile in the postLink function to imperatively compile * This can be avoided by manually using `$compile` in the postLink function to imperatively compile
* a directive's template instead of relying on automatic template compilation via `template` or * a directive's template instead of relying on automatic template compilation via `template` or
* `templateUrl` declaration or manual compilation inside the compile function. * `templateUrl` declaration or manual compilation inside the compile function.
* </div> * </div>
@@ -21106,17 +21143,17 @@ function $TemplateCacheProvider() {
* *
* * `true` - transclude the content (i.e. the child nodes) of the directive's element. * * `true` - transclude the content (i.e. the child nodes) of the directive's element.
* * `'element'` - transclude the whole of the directive's element including any directives on this * * `'element'` - transclude the whole of the directive's element including any directives on this
* element that defined at a lower priority than this directive. When used, the `template` * element that are defined at a lower priority than this directive. When used, the `template`
* property is ignored. * property is ignored.
* * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template. * * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template.
* *
* **Mult-slot transclusion** is declared by providing an object for the `transclude` property. * **Multi-slot transclusion** is declared by providing an object for the `transclude` property.
* *
* This object is a map where the keys are the name of the slot to fill and the value is an element selector * This object is a map where the keys are the name of the slot to fill and the value is an element selector
* used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`) * used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)
* and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc). * and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).
* *
* For further information check out the guide on {@link guide/directive#matching-directives Matching Directives} * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}.
* *
* If the element selector is prefixed with a `?` then that slot is optional. * If the element selector is prefixed with a `?` then that slot is optional.
* *
@@ -21141,7 +21178,7 @@ function $TemplateCacheProvider() {
* </div> * </div>
* *
* If you want to manually control the insertion and removal of the transcluded content in your directive * If you want to manually control the insertion and removal of the transcluded content in your directive
* then you must use this transclude function. When you call a transclude function it returns a a jqLite/JQuery * then you must use this transclude function. When you call a transclude function it returns a jqLite/JQuery
* object that contains the compiled DOM, which is linked to the correct transclusion scope. * object that contains the compiled DOM, which is linked to the correct transclusion scope.
* *
* When you call a transclusion function you can pass in a **clone attach function**. This function accepts * When you call a transclusion function you can pass in a **clone attach function**. This function accepts
@@ -21226,8 +21263,8 @@ function $TemplateCacheProvider() {
* The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the
* `link()` or `compile()` functions. It has a variety of uses. * `link()` or `compile()` functions. It has a variety of uses.
* *
* * *Accessing normalized attribute names:* Directives like 'ngBind' can be expressed in many ways: * * *Accessing normalized attribute names:* Directives like `ngBind` can be expressed in many ways:
* 'ng:bind', `data-ng-bind`, or 'x-ng-bind'. The attributes object allows for normalized access * `ng:bind`, `data-ng-bind`, or `x-ng-bind`. The attributes object allows for normalized access
* to the attributes. * to the attributes.
* *
* * *Directive inter-communication:* All directives share the same instance of the attributes * * *Directive inter-communication:* All directives share the same instance of the attributes
@@ -21268,25 +21305,24 @@ function $TemplateCacheProvider() {
<file name="index.html"> <file name="index.html">
<script> <script>
angular.module('compileExample', [], function($compileProvider) { angular.module('compileExample', [], function($compileProvider) {
// configure new 'compile' directive by passing a directive // Configure new 'compile' directive by passing a directive
// factory function. The factory function injects the '$compile' // factory function. The factory function injects '$compile'.
$compileProvider.directive('compile', function($compile) { $compileProvider.directive('compile', function($compile) {
// directive factory creates a link function // The directive factory creates a link function.
return function(scope, element, attrs) { return function(scope, element, attrs) {
scope.$watch( scope.$watch(
function(scope) { function(scope) {
// watch the 'compile' expression for changes // Watch the 'compile' expression for changes.
return scope.$eval(attrs.compile); return scope.$eval(attrs.compile);
}, },
function(value) { function(value) {
// when the 'compile' expression changes // When the 'compile' expression changes
// assign it into the current DOM // assign it into the current DOM.
element.html(value); element.html(value);
// compile the new DOM and link it to the current // Compile the new DOM and link it to the current scope.
// scope. // NOTE: we only compile '.childNodes' so that we
// NOTE: we only compile .childNodes so that // don't get into an infinite loop compiling ourselves.
// we don't get into infinite loop compiling ourselves
$compile(element.contents())(scope); $compile(element.contents())(scope);
} }
); );
@@ -21359,13 +21395,13 @@ function $TemplateCacheProvider() {
* } * }
* ``` * ```
* * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add * * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
* the cloned elements; only needed for transcludes that are allowed to contain non html * the cloned elements; only needed for transcludes that are allowed to contain non HTML
* elements (e.g. SVG elements). See also the directive.controller property. * elements (e.g. SVG elements). See also the `directive.controller` property.
* *
* Calling the linking function returns the element of the template. It is either the original * Calling the linking function returns the element of the template. It is either the original
* element passed in, or the clone of the element if the `cloneAttachFn` is provided. * element passed in, or the clone of the element if the `cloneAttachFn` is provided.
* *
* After linking the view is not updated until after a call to $digest which typically is done by * After linking the view is not updated until after a call to `$digest`, which typically is done by
* AngularJS automatically. * AngularJS automatically.
* *
* If you need access to the bound view, there are two ways to do it: * If you need access to the bound view, there are two ways to do it:
@@ -21373,21 +21409,23 @@ function $TemplateCacheProvider() {
* - If you are not asking the linking function to clone the template, create the DOM element(s) * - If you are not asking the linking function to clone the template, create the DOM element(s)
* before you send them to the compiler and keep this reference around. * before you send them to the compiler and keep this reference around.
* ```js * ```js
* var element = $compile('<p>{{total}}</p>')(scope); * var element = angular.element('<p>{{total}}</p>');
* $compile(element)(scope);
* ``` * ```
* *
* - if on the other hand, you need the element to be cloned, the view reference from the original * - if on the other hand, you need the element to be cloned, the view reference from the original
* example would not point to the clone, but rather to the original template that was cloned. In * example would not point to the clone, but rather to the original template that was cloned. In
* this case, you can access the clone via the cloneAttachFn: * this case, you can access the clone either via the `cloneAttachFn` or the value returned by the
* linking function:
* ```js * ```js
* var templateElement = angular.element('<p>{{total}}</p>'), * var templateElement = angular.element('<p>{{total}}</p>');
* scope = ....;
*
* var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) { * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
* //attach the clone to DOM document at the right place * // Attach the clone to DOM document at the right place.
* }); * });
* *
* //now we have reference to the cloned DOM via `clonedElement` * // Now we have reference to the cloned DOM via `clonedElement`.
* // NOTE: The `clonedElement` returned by the linking function is the same as the
* // `clonedElement` passed to `cloneAttachFn`.
* ``` * ```
* *
* *
@@ -21913,9 +21951,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
* @description * @description
* Register a new directive with the compiler. * Register a new directive with the compiler.
* *
* @param {string|Object} name Name of the directive in camel-case (i.e. <code>ngBind</code> which * @param {string|Object} name Name of the directive in camel-case (i.e. `ngBind` which will match
* will match as <code>ng-bind</code>), or an object map of directives where the keys are the * as `ng-bind`), or an object map of directives where the keys are the names and the values
* names and the values are the factories. * are the factories.
* @param {Function|Array} directiveFactory An injectable directive factory function. See the * @param {Function|Array} directiveFactory An injectable directive factory function. See the
* {@link guide/directive directive guide} and the {@link $compile compile API} for more info. * {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
* @returns {ng.$compileProvider} Self for chaining. * @returns {ng.$compileProvider} Self for chaining.
@@ -47582,14 +47620,7 @@ var ngHideDirective = ['$animate', function($animate) {
var ngStyleDirective = ngDirective(function(scope, element, attr) { var ngStyleDirective = ngDirective(function(scope, element, attr) {
scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) { scope.$watchCollection(attr.ngStyle, function ngStyleWatchAction(newStyles, oldStyles) {
if (oldStyles && (newStyles !== oldStyles)) { if (oldStyles && (newStyles !== oldStyles)) {
if (!newStyles) { forEach(oldStyles, function(val, style) { element.css(style, ''); });
newStyles = {};
}
forEach(oldStyles, function(val, style) {
if (newStyles[style] == null) {
newStyles[style] = '';
}
});
} }
if (newStyles) element.css(newStyles); if (newStyles) element.css(newStyles);
}); });
@@ -51023,7 +51054,7 @@ var SNComponentManager = exports.SNComponentManager = function () {
console.log("Web|sendMessageToComponent", component, message); console.log("Web|sendMessageToComponent", component, message);
} }
var origin = this.urlForComponent(component, "file://"); var origin = this.urlForComponent(component);
if (!origin.startsWith("http") && !origin.startsWith("file")) { if (!origin.startsWith("http") && !origin.startsWith("file")) {
// Native extension running in web, prefix current host // Native extension running in web, prefix current host
@@ -51053,14 +51084,13 @@ var SNComponentManager = exports.SNComponentManager = function () {
}, { }, {
key: "urlForComponent", key: "urlForComponent",
value: function urlForComponent(component) { value: function urlForComponent(component) {
var offlinePrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; // offlineOnly is available only on desktop, and not on web or mobile. // offlineOnly is available only on desktop, and not on web or mobile.
if (component.offlineOnly && !this.isDesktop) { if (component.offlineOnly && !this.isDesktop) {
return null; return null;
} }
if (component.offlineOnly || this.isDesktop && component.local_url) { if (component.offlineOnly || this.isDesktop && component.local_url) {
return component.local_url && component.local_url.replace("sn://", offlinePrefix + this.desktopManager.getApplicationDataPath() + "/"); return component.local_url && component.local_url.replace("sn://", this.desktopManager.getExtServerHost());
} else { } else {
var url = component.hosted_url || component.legacy_url; var url = component.hosted_url || component.legacy_url;
@@ -51804,7 +51834,7 @@ var SNComponentManager = exports.SNComponentManager = function () {
}, _callee2, this, [[7, 20, 24, 32], [25,, 27, 31]]); }, _callee2, this, [[7, 20, 24, 32], [25,, 27, 31]]);
})); }));
function handleSaveItemsMessage(_x3, _x4) { function handleSaveItemsMessage(_x2, _x3) {
return _ref2.apply(this, arguments); return _ref2.apply(this, arguments);
} }
@@ -52426,7 +52456,7 @@ var SNComponentManager = exports.SNComponentManager = function () {
}, _callee4, this); }, _callee4, this);
})); }));
function registerComponentWindow(_x5, _x6) { function registerComponentWindow(_x4, _x5) {
return _ref5.apply(this, arguments); return _ref5.apply(this, arguments);
} }
@@ -52697,7 +52727,7 @@ var SNComponentManager = exports.SNComponentManager = function () {
}, _callee5, this, [[5, 9, 13, 21], [14,, 16, 20]]); }, _callee5, this, [[5, 9, 13, 21], [14,, 16, 20]]);
})); }));
function reloadComponent(_x9) { function reloadComponent(_x8) {
return _ref6.apply(this, arguments); return _ref6.apply(this, arguments);
} }
@@ -55590,7 +55620,7 @@ angular.module('app').directive("footer", ["authManager", function (authManager)
}, _callee7); }, _callee7);
})); }));
return function (_x2) { return function (_x6) {
return _ref7.apply(this, arguments); return _ref7.apply(this, arguments);
}; };
}(); }();
@@ -57709,7 +57739,7 @@ function () {
}, _callee14, this); }, _callee14, this);
})); }));
function executeAction(_x8, _x10, _x11, _x12) { function executeAction(_x9, _x10, _x11, _x12) {
return _executeAction.apply(this, arguments); return _executeAction.apply(this, arguments);
} }
@@ -59069,10 +59099,10 @@ function () {
this.majorDataChangeHandler && this.majorDataChangeHandler(); this.majorDataChangeHandler && this.majorDataChangeHandler();
} }
}, { }, {
key: "getApplicationDataPath", key: "getExtServerHost",
value: function getApplicationDataPath() { value: function getExtServerHost() {
console.assert(this.applicationDataPath, "applicationDataPath is null"); console.assert(this.extServerHost, "extServerHost is null");
return this.applicationDataPath; return this.extServerHost;
} }
/* /*
Sending a component in its raw state is really slow for the desktop app Sending a component in its raw state is really slow for the desktop app
@@ -59351,10 +59381,10 @@ function () {
/* Used to resolve "sn://" */ /* Used to resolve "sn://" */
}, { }, {
key: "desktop_setApplicationDataPath", key: "desktop_setExtServerHost",
value: function desktop_setApplicationDataPath(path) { value: function desktop_setExtServerHost(host) {
this.applicationDataPath = path; this.extServerHost = host;
this.$rootScope.$broadcast("desktop-did-set-application-path"); this.$rootScope.$broadcast("desktop-did-set-ext-server-host");
} }
}, { }, {
key: "desktop_setComponentInstallationSyncHandler", key: "desktop_setComponentInstallationSyncHandler",
@@ -62205,7 +62235,7 @@ function () {
}); });
if (desktopManager.isDesktop) { if (desktopManager.isDesktop) {
$rootScope.$on("desktop-did-set-application-path", function () { $rootScope.$on("desktop-did-set-ext-server-host", function () {
_this92.activateCachedThemes(); _this92.activateCachedThemes();
}); });
} else { } else {

File diff suppressed because one or more lines are too long

20
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "3.0.21", "version": "3.0.22",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@@ -1583,9 +1583,9 @@
"dev": true "dev": true
}, },
"angular": { "angular": {
"version": "1.7.8", "version": "1.7.9",
"resolved": "https://registry.npmjs.org/angular/-/angular-1.7.8.tgz", "resolved": "https://registry.npmjs.org/angular/-/angular-1.7.9.tgz",
"integrity": "sha512-wtef/y4COxM7ZVhddd7JtAAhyYObq9YXKar9tsW7558BImeVYteJiTxCKeJOL45lJ/+7B4wrAC49j8gTFYEthg==", "integrity": "sha512-5se7ZpcOtu0MBFlzGv5dsM1quQDoDeUTwZrWjGtTNA7O88cD8TEk5IEKCTDa3uECV9XnvKREVUr7du1ACiWGFQ==",
"dev": true "dev": true
}, },
"ansi-colors": { "ansi-colors": {
@@ -6241,9 +6241,9 @@
"dev": true "dev": true
}, },
"sn-stylekit": { "sn-stylekit": {
"version": "2.0.17", "version": "2.0.19",
"resolved": "https://registry.npmjs.org/sn-stylekit/-/sn-stylekit-2.0.17.tgz", "resolved": "https://registry.npmjs.org/sn-stylekit/-/sn-stylekit-2.0.19.tgz",
"integrity": "sha512-TmLIgpI9TeQZhnxIEZ3ANKTPWwCBfmMiva9TNECB73jEJ2WNeAIkT7SyegPBauyCSP62Td8vxxo4UStUtj1PbQ==", "integrity": "sha512-3eanXKhuLB95S/mlBw15hHv7h993+BeURJAeEsZWs4oug00gE4TwAhv7iepMO2FcZ4vyfd8JH/wnj6P2Pem/Ow==",
"dev": true "dev": true
}, },
"snapdragon": { "snapdragon": {
@@ -6355,9 +6355,9 @@
} }
}, },
"snjs": { "snjs": {
"version": "0.2.8", "version": "0.2.9",
"resolved": "https://registry.npmjs.org/snjs/-/snjs-0.2.8.tgz", "resolved": "https://registry.npmjs.org/snjs/-/snjs-0.2.9.tgz",
"integrity": "sha512-qUPy+9DAQnF/MHnGt9lWndBpaC2EdSgZVf0HnRtMx5pRZ7vpcGeyuvyZwPGnRCwFJZcQDdidRp33/Xewy8wsww==", "integrity": "sha512-lJcwbHup3oRzwhcRmeu56WPyNT2R3s3CS8889hW3SfPIvDYK1526949exT69J+q0eIFe6J9orldeKFN8JEgIoQ==",
"dev": true "dev": true
}, },
"source-map": { "source-map": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "3.0.21", "version": "3.0.22",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -17,7 +17,7 @@
"@babel/plugin-transform-runtime": "^7.6.2", "@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3", "@babel/preset-env": "^7.6.3",
"@babel/runtime": "^7.6.3", "@babel/runtime": "^7.6.3",
"angular": "1.7.8", "angular": "1.7.9",
"babel-plugin-angularjs-annotate": "^0.10.0", "babel-plugin-angularjs-annotate": "^0.10.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"connect": "^3.7.0", "connect": "^3.7.0",
@@ -38,8 +38,8 @@
"grunt-shell": "^3.0.1", "grunt-shell": "^3.0.1",
"mocha": "^6.2.2", "mocha": "^6.2.2",
"serve-static": "^1.14.1", "serve-static": "^1.14.1",
"sn-stylekit": "2.0.17", "sn-stylekit": "2.0.19",
"snjs": "0.2.8", "snjs": "0.2.9",
"standard-file-js": "0.3.71" "standard-file-js": "0.3.71"
} }
} }