Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Montage = require("montage").Montage,
Set = require("montage/collections/set"),
UndoManager = require("montage/core/undo-manager").UndoManager,
Promise = require("montage/core/promise").Promise,
WAITS_FOR_TIMEOUT = 2500;
var Roster = Montage.specialize( {
constructor: {
value: function () {
this._members = [];
}
},
initWithUndoManager: {
value: function (undoManager) {
this._undoManager = undoManager;
return this;
}
},
_undoManager: {
value: null
var Montage = require("montage").Montage;
exports.Calendar = Montage.specialize(null, {
userInterfaceDescriptor: {
value: {
inspectorComponentModule: {
id: 'ui/inspectors/calendar.reel'
},
nameExpression: "'Calendar'"
}
}
});
var Montage = require("montage").Montage;
exports.DockerImage = Montage.specialize({
_created_at: {
value: null
},
created_at: {
set: function (value) {
if (this._created_at !== value) {
this._created_at = value;
}
},
get: function () {
return this._created_at;
}
},
_hosts: {
value: null
},
var Montage = require("montage").Montage;
exports.UpdateInfo = Montage.specialize({
_available: {
value: null
},
available: {
set: function (value) {
if (this._available !== value) {
this._available = value;
}
},
get: function () {
return this._available;
}
},
_changelog: {
value: null
},
{
title: "system-info",
description: null,
imgPreview: null,
moduleId: "ui/widgets/system-info.reel"
},
{
title: "disk-traffic",
description: null,
imgPreview: null,
moduleId: "ui/widgets/disk-traffic.reel"
}
];
exports.WidgetService = Montage.specialize({
_widgetsMap: {
value: null
},
getAvailableWidgets: {
value: function () {
var promise;
if (this._widgetsMap) {
promise = Promise.resolve(this._widgetsMap);
} else if (this._getAvailableWidgetsPromise) {
promise = this._getAvailableWidgetsPromise;
} else {
var self = this;
var Montage = require("montage").Montage;
exports.DockerContainerSection = Montage.specialize(null, {
userInterfaceDescriptor: {
value: {
nameExpression: "'Containers'"
}
}
});
var Montage = require("montage").Montage;
exports.AccountSystem = Montage.specialize(null, {
userInterfaceDescriptor: {
value: {
collectionInspectorComponentModule: {
id: 'ui/controls/viewer.reel'
},
iconComponentModule: {
id: 'ui/icons/freenas-icon.reel'
},
collectionNameExpression: "'System'"
}
}
});
var Montage = require("montage").Montage;
exports.Scrub = Montage.specialize(null, {
userInterfaceDescriptor: {
value: {
inspectorComponentModule: {
id: 'ui/inspectors/scrub.reel'
},
nameExpression: "'Scrub'"
}
}
});
var Montage = require("montage").Montage;
exports.EncryptedVolumeActions = Montage.specialize(null, {
userInterfaceDescriptor: {
value: {
inspectorComponentModule: {
id: 'ui/sections/storage/inspectors/encrypted-volume-actions.reel'
},
nameExpression: "'Encrypted Actions'"
}
}
});
var Montage = require("montage").Montage,
AlertRepository = require("core/repository/alert-repository").AlertRepository;
exports.AlertService = Montage.specialize({
constructor: {
value: function () {
this._alertRepository = AlertRepository.instance;
}
},
loadEntries: {
value: function () {
return this._alertRepository.listAlertFilters();
}
},
loadSettings: {
value: function () {
return this._alertRepository.getMail();
}