REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 944 B
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/PageCreator/state/user.js
Text
Base64
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, }, ), );
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cache.js
387 B
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
global.js
466 B
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pages.js
1.52 KB
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
plugins-cache.js
666 B
lrw-r--r--
2025-05-12 16:42:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user.js
944 B
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).