芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/static/js/ActiveServer.app.ab7d856658c5b00ff97b.js
"use strict"; (self["webpackChunkafterlogic_aurora_platform"] = self["webpackChunkafterlogic_aurora_platform"] || []).push([[0],{ /***/ "ENmy": /*!*********************************************!*\ !*** ./modules/ActiveServer/js/Settings.js ***! \*********************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _ = __webpack_require__(/*! underscore */ "C3HO"), Types = __webpack_require__(/*! modules/CoreWebclient/js/utils/Types.js */ "KC/L") ; module.exports = { ServerModuleName: 'ActiveServer', HashModuleName: 'activeserver', EnableModule: false, EnableModuleForUser: false, EnableForNewUsers: false, UsersCount: 0, LicensedUsersCount: 0, UsersFreeSlots: 0, Server: '', LinkToManual: '', ProductName: '', /** * Initializes settings from AppData object sections. * * @param {Object} oAppData Object contained modules settings. */ init: function (oAppData) { var oAppDataSection = oAppData['ActiveServer'], oAppDataCoreSection = oAppData['Core'] ; if (!_.isEmpty(oAppDataSection)) { this.EnableModule = Types.pBool(oAppDataSection.EnableModule, this.EnableModule); this.EnableModuleForUser = Types.pBool(oAppDataSection.EnableModuleForUser, this.EnableModuleForUser); this.EnableForNewUsers = Types.pBool(oAppDataSection.EnableForNewUsers, this.EnableForNewUsers); this.UsersCount = Types.pInt(oAppDataSection.UsersCount, this.UsersCount); this.LicensedUsersCount = oAppDataSection.LicensedUsersCount; this.UsersFreeSlots = oAppDataSection.UsersFreeSlots; this.Server = oAppDataSection.Server; this.LinkToManual = oAppDataSection.LinkToManual; this.ProductName = oAppDataCoreSection.ProductName; } }, updateAdmin: function (sEnableModule, sEnableForNewUsers, sServer, sLinkToManual) { this.EnableModule = sEnableModule; this.EnableForNewUsers = sEnableForNewUsers; this.Server = sServer; this.LinkToManual = sLinkToManual; } }; /***/ }), /***/ "NInl": /*!********************************************!*\ !*** ./modules/ActiveServer/js/manager.js ***! \********************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function (oAppData) { var TextUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Text.js */ "H20a"), App = __webpack_require__(/*! modules/CoreWebclient/js/App.js */ "9kOp"), Settings = __webpack_require__(/*! modules/ActiveServer/js/Settings.js */ "ENmy") ; Settings.init(oAppData); if (App.isUserNormalOrTenant()) { var TextUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Text.js */ "H20a") ; Settings.init(oAppData); return { /** * Registers settings tab of a module before application start. * * @param {Object} ModulesManager */ start: function (ModulesManager) { if (Settings.EnableModuleForUser) { ModulesManager.run('SettingsWebclient', 'registerSettingsTab', [function () { return __webpack_require__(/*! modules/ActiveServer/js/views/SettingsFormView.js */ "g0/5"); }, Settings.HashModuleName, TextUtils.i18n('ACTIVESERVER/LABEL_SETTINGS_TAB')]); } } }; } return null; }; /***/ }), /***/ "g0/5": /*!***********************************************************!*\ !*** ./modules/ActiveServer/js/views/SettingsFormView.js ***! \***********************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _ = __webpack_require__(/*! underscore */ "C3HO"), ko = __webpack_require__(/*! knockout */ "p09A"), ModulesManager = __webpack_require__(/*! modules/CoreWebclient/js/ModulesManager.js */ "TdEd"), CAbstractSettingsFormView = ModulesManager.run('SettingsWebclient', 'getAbstractSettingsFormViewClass'), Settings = __webpack_require__(/*! modules/ActiveServer/js/Settings.js */ "ENmy"), TextUtils = __webpack_require__(/*! modules/CoreWebclient/js/utils/Text.js */ "H20a"), App = __webpack_require__(/*! modules/CoreWebclient/js/App.js */ "9kOp"), UserSettings = __webpack_require__(/*! modules/CoreWebclient/js/Settings.js */ "OfVV") ; /** * Inherits from CAbstractSettingsFormView that has methods for showing and hiding settings tab, * updating settings values on the server, checking if there was changins on the settings page. * * @constructor */ function SettingsFormView() { CAbstractSettingsFormView.call(this, Settings.ServerModuleName); this.server = ko.observable(Settings.Server); this.linkToManual = ko.observable(Settings.LinkToManual); this.infoCredentials = TextUtils.i18n('ACTIVESERVER/INFO_CREDENTIALS', {'EMAIL': App.getUserPublicId()}); this.bDemo = UserSettings.IsDemo; this.infoDemo = TextUtils.i18n('ACTIVESERVER/INFO_DEMO', {'PRODUCT_NAME': Settings.ProductName}); } _.extendOwn(SettingsFormView.prototype, CAbstractSettingsFormView.prototype); /** * Name of template that will be bound to this JS-object. 'SimpleChatWebclient' - name of the object, * 'SimpleChatSettingsFormView' - name of template file in 'templates' folder. */ SettingsFormView.prototype.ViewTemplate = 'ActiveServer_SettingsFormView'; /** * Returns array with all settings values wich is used for indicating if there were changes on the page. * * @returns {Array} Array with all settings values; */ SettingsFormView.prototype.getCurrentValues = function () { return [ this.server() ]; }; /** * Reverts all settings values to global ones. */ SettingsFormView.prototype.revertGlobalValues = function () { this.server(Settings.Server); }; module.exports = new SettingsFormView(); /***/ }) }]);