-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from kodaline/develop_heavy_endpoints
EDIT: Heavy duty endpoints
- Loading branch information
Showing
12 changed files
with
128 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ const closeModal = () => { | |
defineExpose({ | ||
toggleModal, | ||
isOpen, | ||
closeModal, | ||
}) | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { Directive } from 'vue' | ||
|
||
export const vLock: Directive<HTMLElement, boolean> = { | ||
mounted(el, binding) { | ||
if (binding.value) { | ||
el.style.pointerEvents = 'none' | ||
} else { | ||
el.style.pointerEvents = 'initial' | ||
} | ||
}, | ||
updated(el, binding) { | ||
if (binding.value) { | ||
el.style.pointerEvents = 'none' | ||
} else { | ||
el.style.pointerEvents = 'initial' | ||
} | ||
}, | ||
} | ||
export default vLock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useEmbedderConfig } from '@/stores/useEmbedderConfig' | ||
import { useLLMConfig } from '@/stores/useLLMConfig' | ||
import { useMemory } from '@/stores/useMemory' | ||
import { usePlugins } from '@/stores/usePlugins' | ||
|
||
export default function useStoreMapping() { | ||
const storeEmbedder = useEmbedderConfig() | ||
const storeLLM = useLLMConfig() | ||
const storePlugins = usePlugins() | ||
const storeMemory = useMemory() | ||
|
||
const storeMapping: Record<string, typeof storeEmbedder | typeof storeLLM | typeof storeMemory | typeof storePlugins> = { | ||
embedders: storeEmbedder, | ||
providers: storeLLM, | ||
memory: storeMemory, | ||
plugins: storePlugins, | ||
} | ||
|
||
return { storeMapping } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters