Initial release: DictIA v0.8.14-alpha (fork de Speakr, AGPL-3.0)
This commit is contained in:
23
static/js/modules/state/chat.js
Normal file
23
static/js/modules/state/chat.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Chat state management
|
||||
*/
|
||||
|
||||
export function createChatState(ref) {
|
||||
const showChat = ref(false);
|
||||
const isChatMaximized = ref(false);
|
||||
const chatMessages = ref([]);
|
||||
const chatInput = ref('');
|
||||
const isChatLoading = ref(false);
|
||||
const chatMessagesRef = ref(null);
|
||||
const chatInputRef = ref(null);
|
||||
|
||||
return {
|
||||
showChat,
|
||||
isChatMaximized,
|
||||
chatMessages,
|
||||
chatInput,
|
||||
isChatLoading,
|
||||
chatMessagesRef,
|
||||
chatInputRef
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user