Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/store.tar

.htaccess000066600000000424151142207040006342 0ustar00<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
    Deny from all
</FilesMatch>
</IfModule>index.js000066600000001434151142207040006213 0ustar00const {
	data,
	apiRequest
} = wp;

const {
	registerStore,
	dispatch
} = data;

const DEFAULT_STATE = {};

registerStore( 'themeisle-gutenberg/blocks', {
	reducer( state = DEFAULT_STATE, action ) {

		switch ( action.type ) {
		case 'GET_ICONS_LIST':
			return {
				iconsList: action.data
			};
		}

		return state;
	},

	actions: {
		setFaIconsList( data ) {
			return {
				type: 'GET_ICONS_LIST',
				data: data
			};
		}
	},

	selectors: {
		getFaIconsList( data ) {
			if ( 'undefined' !== typeof data.iconsList ) {
				return data.iconsList;
			}
		}
	},

	resolvers: {
		async getFaIconsList() {
			let result = [];

			result = await apiRequest({ path: 'themeisle-gutenberg-blocks/v1/get_icons_list' });

			dispatch( 'themeisle-gutenberg/blocks' ).setFaIconsList( result );
		}
	}
});