SILENT KILLERPanel

Current Path: > > usr > src > litespeed-wp-plugin > 6.4.1 > litespeed-cache > assets > > > js


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/src/litespeed-wp-plugin/6.4.1/litespeed-cache/assets///js

NameTypeSizeLast ModifiedActions
babel.min.js File 791234 bytes August 19 2024 22:55:08.
component.cdn.js File 6488 bytes August 19 2024 22:55:08.
component.crawler.js File 2996 bytes August 19 2024 22:55:08.
css_async.js File 1489 bytes August 19 2024 22:55:08.
css_async.min.js File 1353 bytes August 19 2024 22:55:08.
guest.docref.js File 247 bytes August 19 2024 22:55:08.
guest.docref.min.js File 215 bytes August 19 2024 22:55:08.
guest.js File 740 bytes August 19 2024 22:55:08.
guest.min.js File 373 bytes August 19 2024 22:55:08.
instant_click.min.js File 4624 bytes August 19 2024 22:55:08.
instant_click.ori.js File 16705 bytes August 19 2024 22:55:08.
iziModal.min.js File 26266 bytes August 19 2024 22:55:08.
js_delay.js File 2729 bytes August 19 2024 22:55:08.
js_delay.min.js File 1688 bytes August 19 2024 22:55:08.
lazyload.init.js File 823 bytes August 19 2024 22:55:08.
lazyload.lib.js File 25483 bytes August 19 2024 22:55:08.
lazyload.min.js File 8319 bytes August 19 2024 22:55:08.
litespeed-cache-admin.js File 16835 bytes August 19 2024 22:55:08.
react.min.js File 132024 bytes August 19 2024 22:55:08.
webfontloader.js File 12505 bytes August 19 2024 22:55:08.
webfontloader.min.js File 12098 bytes August 19 2024 22:55:08.

Reading File: //usr/src/litespeed-wp-plugin/6.4.1/litespeed-cache/assets///js/component.crawler.js

/**
 * Crawler simulation module
 * @author Hai Zheng
 */
class CrawlerSimulate extends React.Component {
	constructor(props) {
		super(props);
		this.state = {
			list: props.list,
		};

		this.handleInputChange = this.handleInputChange.bind(this);
		this.delRow = this.delRow.bind(this);
		this.addNew = this.addNew.bind(this);
	}

	handleInputChange(e, index) {
		const target = e.target;
		const value = target.type === 'checkbox' ? target.checked : target.value;
		const list = this.state.list;
		list[index][target.dataset.type] = value;

		this.setState({
			list: list,
		});
	}

	delRow(index) {
		const data = this.state.list;
		data.splice(index, 1);
		this.setState({ list: data });
	}

	addNew() {
		const list = this.state.list;
		list.push({ name: '', vals: '' });
		this.setState({ list: list });
	}

	render() {
		return (
			<React.Fragment>
				{this.state.list.map((item, i) => (
					<SimulationBlock item={item} key={i} index={i} handleInputChange={this.handleInputChange} delRow={this.delRow} />
				))}

				<p>
					<button type="button" className="button button-link litespeed-form-action litespeed-link-with-icon" onClick={this.addNew}>
						<span className="dashicons dashicons-plus-alt"></span>
						{litespeed_data['lang']['add_cookie_simulation_row']}
					</button>
				</p>
			</React.Fragment>
		);
	}
}

// { name: '', vals: '' }
class SimulationBlock extends React.Component {
	constructor(props) {
		super(props);

		this.handleInputChange = this.handleInputChange.bind(this);
		this.delRow = this.delRow.bind(this);
	}

	handleInputChange(e) {
		this.props.handleInputChange(e, this.props.index);
	}

	delRow() {
		this.props.delRow(this.props.index);
	}

	render() {
		const item = this.props.item;
		return (
			<div className="litespeed-block">
				<div className="litespeed-col-auto">
					<label className="litespeed-form-label">{litespeed_data['lang']['cookie_name']}</label>
					<input
						type="text"
						name={litespeed_data['ids']['crawler_cookies'] + '[name][]'}
						className="regular-text"
						value={item.name}
						data-type="name"
						onChange={this.handleInputChange}
					/>
				</div>
				<div className="litespeed-col-auto">
					<label className="litespeed-form-label">{litespeed_data['lang']['cookie_values']}</label>
					<textarea
						rows="5"
						cols="40"
						name={litespeed_data['ids']['crawler_cookies'] + '[vals][]'}
						placeholder={litespeed_data['lang']['one_per_line']}
						value={Array.isArray(item.vals) ? item.vals.join('\n') : item.vals}
						data-type="vals"
						onChange={this.handleInputChange}
					/>
				</div>
				<div className="litespeed-col-auto">
					<button type="button" className="button button-link litespeed-collection-button litespeed-danger" onClick={this.delRow}>
						<span className="dashicons dashicons-dismiss"></span>
						<span className="screen-reader-text">{litespeed_data['lang']['remove_cookie_simulation']}</span>
					</button>
				</div>
			</div>
		);
	}
}

SILENT KILLER Tool