403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/laragon/www/quilla/wp-content/plugins/wp-smushit/_src/react/bulk/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/laragon/www/quilla/wp-content/plugins/wp-smushit/_src/react/bulk/media-library-scanner-modal.js
import React, {useEffect, useRef, useState} from "react";
import Modal from "../common/modal";
import {post} from "../utils/request";
import Button from "../common/button";
import ProgressBar from "../common/progress-bar";

const {__} = wp.i18n;

export default function MediaLibraryScannerModal(
	{
		inProgress = false,
		progress = 0,
		onClose = () => false,
		onStart = () => false,
		onCancel = () => false,
		focusAfterClose = ''
	}
) {
	function content() {
		if (inProgress) {
			return <>
				<ProgressBar progress={progress}/>
				<Button id="wp-smush-cancel-media-library-scan"
						icon="sui-icon-close"
						text={__('Cancel', 'wp-smushit')}
						ghost={true}
						onClick={onCancel}
				/>
			</>;
		} else {
			return <>
				<Button id="wp-smush-start-media-library-scan"
						icon="sui-icon-play"
						text={__('Start', 'wp-smushit')}
						onClick={onStart}
				/>
			</>;
		}
	}

	return <Modal id="wp-smush-media-library-scanner-modal"
				  title={__('Scan Media Library', 'wp-smushit')}
				  description={__('Scans the media library to detect items to Smush.', 'wp-smushit')}
				  onClose={onClose}
				  focusAfterClose={focusAfterClose}
				  disableCloseButton={inProgress}>
		{content()}
	</Modal>;
};

Youez - 2016 - github.com/yon3zu
LinuXploit