Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/foogallery/gutenberg/src/block/edit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/foogallery/gutenberg/src/block/edit/rendered.js
const rendered = [];
export default class FooGalleryEditRendered {
	static get array(){
		return rendered;
	}

	static add( id, clientId ){
		let index = rendered.findIndex(r => r.id === id);
		if (index === -1){
			rendered.push({ id, clientId });
			return true;
		}
		return false;
	}

	static remove( clientId ){
		let index = rendered.findIndex(r => r.clientId === clientId);
		if (index !== -1){
			rendered.splice(index, 1);
			return true;
		}
		return index === -1 || false;
	}

	static update( id, clientId ){
		if (this.remove( clientId )){
			return this.add( id, clientId );
		}
		return false;
	}

	static ids(){
		return rendered.map(r => r.id);
	}

	static contains( id, clientId ){
		return rendered.findIndex(r => r.id === id && r.clientId !== clientId) !== -1;
	}
}

Spamworldpro Mini