REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 945 B
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Library/state/site.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 path = '/extendify/v1/library/settings'; const storage = { getItem: async () => await apiFetch({ path }), setItem: async (_name, state) => await apiFetch({ path, method: 'POST', data: { state } }), }; const startingState = { category: '', totalImports: 0, }; const incomingState = safeParseJson(window.extLibraryData.siteInfo); export const useSiteSettingsStore = create( persist( (set) => ({ ...startingState, ...(incomingState?.state ?? {}), setCategory: (category) => set({ category }), incrementImports: () => set((state) => ({ totalImports: Number(state.totalImports) + 1 })), }), { name: 'extendify_library_site_data', storage: createJSONStorage(() => storage), skipHydration: true, }, ), );
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cache.js
299 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
482 B
lrw-r--r--
2023-10-21 00:04:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
site.js
945 B
lrw-r--r--
2026-02-27 04:48:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user.js
899 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).