REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.07 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Launch/state/pages-selections.js
Text
Base64
import { safeParseJson } from '@shared/lib/parsing'; import { create } from 'zustand'; import { createJSONStorage, devtools, persist } from 'zustand/middleware'; const initialState = { pages: [], style: null, }; const key = `extendify-launch-pages-selection-${window.extSharedData.siteId}`; const state = (set, get) => ({ // initialize the state with default values ...initialState, ...(safeParseJson(window.localStorage.getItem(key))?.state || {}), has(type, item) { if (!item?.id) return false; return (get()?.[type] ?? [])?.some((t) => t.id === item.id); }, add(type, item) { if (get().has(type, item)) return; set({ [type]: [...(get()?.[type] ?? []), item] }); }, remove(type, item) { set({ [type]: get()?.[type]?.filter((t) => t.id !== item.id) }); }, removeAll(type) { set({ [type]: [] }); }, setStyle(style) { set({ style }); }, }); export const usePagesSelectionStore = create( persist(devtools(state, { name: 'Extendify Launch Pages Selections' }), { name: key, storage: createJSONStorage(() => localStorage), skipHydration: true, }), state, );
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
factory.js
190 B
lrw-r--r--
2023-10-11 06:07:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Global.js
257 B
lrw-r--r--
2023-10-11 06:07:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pages-selections.js
1.07 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Pages.js
3.38 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user-selections.js
5.15 KB
lrw-r--r--
2026-02-27 04:48:52
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).