GRAYBYTE WORDPRESS FILE MANAGER4375

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/_src/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/_src/js//tutorials.js
/* global ajaxurl */

/**
 * External dependencies
 */
import React from 'react';
import ReactDOM from 'react-dom';

/**
 * WordPress dependencies
 */
import domReady from '@wordpress/dom-ready';

/**
 * SUI dependencies
 */
import { TutorialsList, TutorialsSlider } from '@wpmudev/shared-tutorials';

import tracker from './utils/tracker';

function hideTutorials() {
	const xhr = new XMLHttpRequest();

	xhr.open( 'POST', ajaxurl + '?action=smush_hide_tutorials', true );
	xhr.setRequestHeader( 'Content-type', 'application/x-www-form-urlencoded' );

	xhr.onload = () => {
		if ( 200 === xhr.status ) {
			const noticeMessage = `<p>${ window.wp_smush_msgs.tutorialsRemoved }</p>`,
				noticeOptions = {
					type: 'success',
					icon: 'check',
				};

			window.SUI.openNotice(
				'wp-smush-ajax-notice',
				noticeMessage,
				noticeOptions
			);
		}
	};

	xhr.send( '_ajax_nonce=' + window.wp_smush_msgs.nonce );
}

/**
 * Render the "Tutorials List" component.
 *
 * @since 2.8.5
 */
domReady( function() {
	// Tutorials section on Dashboard page.
	const tutorialsDiv = document.getElementById( 'smush-dash-tutorials' );
	if ( tutorialsDiv ) {
		ReactDOM.render(
			<TutorialsSlider
				category="11228"
				title={ window.smush_tutorials.tutorials }
				viewAll={ window.smush_tutorials.tutorials_link }
				onCloseClick={ hideTutorials }
			/>,
			tutorialsDiv
		);
	}

	// Tutorials page.
	const tutorialsPageBox = document.getElementById( 'smush-box-tutorials' );
	if ( tutorialsPageBox ) {
		ReactDOM.render(
			<TutorialsList
				category="11228"
				title={ window.smush_tutorials.tutorials }
				translate={ window.smush_tutorials.tutorials_strings }
			/>,
			tutorialsPageBox
		);
	}
} );

jQuery(function ($) {
	$(document).on('click', '#smush-box-tutorials li > [role="link"], #smush-dash-tutorials li > [role="link"]', function () {
		const $tutorial = $(this);
		const isDashPage = !!$tutorial.closest('#smush-dash-tutorials').length;
		const decodeHtml = (html) => {
			const txt = document.createElement("textarea");
			txt.innerHTML = html;
			return txt.value;
		};
		const title = decodeHtml($tutorial.attr('title'));

		tracker.track('Tutorial Opened', {
			'Tutorial Name': title,
			'Triggered From': isDashPage ? 'Dashboard' : 'Tutorials Tab'
		});
	});
});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
common
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
frontend
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
modules
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
smush
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
utils
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:33
giriqfky / giriqfky
0644
app.js
1.726 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
global-tracking.js
1.741 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
global.js
2.84 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
loopback-tester.js
1.015 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
shared-ui.js
0.586 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
tutorials.js
2.234 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF