mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
refactor: change npm package from @memoh to @memohai
This commit is contained in:
@@ -119,7 +119,7 @@ import {
|
||||
TagsInputItemDelete,
|
||||
TagsInputItemText,
|
||||
Switch,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import z from 'zod'
|
||||
import { toTypedSchema } from '@vee-validate/zod'
|
||||
import { useForm } from 'vee-validate'
|
||||
|
||||
@@ -148,13 +148,13 @@ import {
|
||||
Label,
|
||||
Switch,
|
||||
Separator,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import { toTypedSchema } from '@vee-validate/zod'
|
||||
import z from 'zod'
|
||||
import { useForm } from 'vee-validate'
|
||||
import { useMutation, useQueryCache } from '@pinia/colada'
|
||||
import { postProviders, postProvidersByIdImportModels } from '@memoh/sdk'
|
||||
import type { ProvidersCreateRequest } from '@memoh/sdk'
|
||||
import { postProviders, postProvidersByIdImportModels } from '@memohai/sdk'
|
||||
import type { ProvidersCreateRequest } from '@memohai/sdk'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import FormDialogShell from '@/components/form-dialog-shell/index.vue'
|
||||
import { useDialogMutation } from '@/composables/useDialogMutation'
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
Feishu,
|
||||
Wechat,
|
||||
Matrix,
|
||||
} from '@memoh/icon'
|
||||
} from '@memohai/icon'
|
||||
|
||||
const channelIcons: Record<string, Component> = {
|
||||
qq: Qq,
|
||||
|
||||
@@ -37,7 +37,7 @@ import {
|
||||
PopoverContent,
|
||||
PopoverTrigger,
|
||||
Spinner,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
|
||||
withDefaults(defineProps<{
|
||||
message: string
|
||||
|
||||
@@ -168,14 +168,14 @@ import {
|
||||
FormItem,
|
||||
Checkbox,
|
||||
Label,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import { useForm } from 'vee-validate'
|
||||
import { inject, computed, watch, nextTick, type Ref, ref } from 'vue'
|
||||
import { toTypedSchema } from '@vee-validate/zod'
|
||||
import z from 'zod'
|
||||
import { useMutation, useQueryCache } from '@pinia/colada'
|
||||
import { postModels, putModelsById, putModelsModelByModelId } from '@memoh/sdk'
|
||||
import type { ModelsGetResponse, ModelsAddRequest, ModelsUpdateRequest } from '@memoh/sdk'
|
||||
import { postModels, putModelsById, putModelsModelByModelId } from '@memohai/sdk'
|
||||
import type { ModelsGetResponse, ModelsAddRequest, ModelsUpdateRequest } from '@memohai/sdk'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { COMPATIBILITY_OPTIONS } from '@/constants/compatibilities'
|
||||
import FormDialogShell from '@/components/form-dialog-shell/index.vue'
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
TableHead,
|
||||
TableHeader,
|
||||
TableRow,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
|
||||
const props = defineProps<{
|
||||
columns: ColumnDef<TData, TValue>[]
|
||||
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
ContextMenuItem,
|
||||
ContextMenuSeparator,
|
||||
ContextMenuTrigger,
|
||||
} from '@memoh/ui'
|
||||
import type { HandlersFsFileInfo } from '@memoh/sdk'
|
||||
} from '@memohai/ui'
|
||||
import type { HandlersFsFileInfo } from '@memohai/sdk'
|
||||
import { formatFileSize, formatRelativeTime } from './utils'
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
@@ -3,13 +3,13 @@ import { ref, watch, computed, onBeforeUnmount } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { toast } from 'vue-sonner'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
import { Button, Spinner } from '@memoh/ui'
|
||||
import { Button, Spinner } from '@memohai/ui'
|
||||
import {
|
||||
getBotsByBotIdContainerFsRead,
|
||||
postBotsByBotIdContainerFsWrite,
|
||||
getBotsByBotIdContainerFsDownload,
|
||||
} from '@memoh/sdk'
|
||||
import type { HandlersFsFileInfo } from '@memoh/sdk'
|
||||
} from '@memohai/sdk'
|
||||
import type { HandlersFsFileInfo } from '@memohai/sdk'
|
||||
import { resolveApiErrorMessage } from '@/utils/api-error'
|
||||
import MonacoEditor from '@/components/monaco-editor/index.vue'
|
||||
import { isTextFile, isImageFile, formatFileSize } from './utils'
|
||||
|
||||
@@ -15,15 +15,15 @@ import {
|
||||
DialogFooter,
|
||||
Spinner,
|
||||
ScrollArea
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import {
|
||||
getBotsByBotIdContainerFsList,
|
||||
postBotsByBotIdContainerFsUpload,
|
||||
postBotsByBotIdContainerFsMkdir,
|
||||
postBotsByBotIdContainerFsDelete,
|
||||
postBotsByBotIdContainerFsRename,
|
||||
} from '@memoh/sdk'
|
||||
import type { HandlersFsFileInfo } from '@memoh/sdk'
|
||||
} from '@memohai/sdk'
|
||||
import type { HandlersFsFileInfo } from '@memohai/sdk'
|
||||
import { resolveApiErrorMessage } from '@/utils/api-error'
|
||||
import { pathSegments, joinPath } from './utils'
|
||||
import FileList from './file-list.vue'
|
||||
|
||||
@@ -54,7 +54,7 @@ import {
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
Spinner
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
|
||||
|
||||
withDefaults(defineProps<{
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
import { ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useMutation, useQueryCache } from '@pinia/colada'
|
||||
import { postProvidersByIdImportModels } from '@memoh/sdk'
|
||||
import { postProvidersByIdImportModels } from '@memohai/sdk'
|
||||
import { toast } from 'vue-sonner'
|
||||
import { Button } from '@memoh/ui'
|
||||
import { Button } from '@memohai/ui'
|
||||
import FormDialogShell from '@/components/form-dialog-shell/index.vue'
|
||||
import { useDialogMutation } from '@/composables/useDialogMutation'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Button, Input } from '@memoh/ui'
|
||||
import { Button, Input } from '@memohai/ui'
|
||||
|
||||
export interface KeyValuePair {
|
||||
key: string
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Button, Spinner } from '@memoh/ui'
|
||||
import type { ButtonVariants } from '@memoh/ui'
|
||||
import { Button, Spinner } from '@memohai/ui'
|
||||
import type { ButtonVariants } from '@memohai/ui'
|
||||
|
||||
defineOptions({ inheritAttrs: false })
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ import {
|
||||
BreadcrumbSeparator,
|
||||
Separator,
|
||||
ScrollArea,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { computed, unref } from 'vue'
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ import {
|
||||
SidebarFooter,
|
||||
SidebarHeader,
|
||||
SidebarProvider,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
|
||||
const mobileOpen = ref(false)
|
||||
</script>
|
||||
|
||||
@@ -65,10 +65,10 @@ import {
|
||||
YiColor,
|
||||
Zhipu,
|
||||
ZhipuColor,
|
||||
} from '@memoh/icon'
|
||||
} from '@memohai/icon'
|
||||
|
||||
/**
|
||||
* Maps preset icon names (stored in DB) to @memoh/icon Vue components.
|
||||
* Maps preset icon names (stored in DB) to @memohai/icon Vue components.
|
||||
* The key is the SVG filename without extension (e.g. 'openai', 'deepseek-color').
|
||||
*/
|
||||
export const iconMap: Record<string, Component> = {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
:class="containerClass"
|
||||
>
|
||||
<component
|
||||
v-if="iconComponent"
|
||||
:is="iconComponent"
|
||||
v-if="iconComponent"
|
||||
:size="iconSize"
|
||||
/>
|
||||
<FontAwesomeIcon
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
Searxng,
|
||||
Sogou,
|
||||
Serper,
|
||||
} from '@memoh/icon'
|
||||
} from '@memohai/icon'
|
||||
|
||||
const searchIcons: Record<string, Component> = {
|
||||
brave: Brave,
|
||||
|
||||
@@ -123,7 +123,7 @@ import {
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
Button,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
|
||||
export interface SearchableSelectOption {
|
||||
|
||||
@@ -81,7 +81,7 @@ import {
|
||||
SidebarMenu,
|
||||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
} from '@memoh/ui'
|
||||
} from '@memohai/ui'
|
||||
import { computed } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
Reference in New Issue
Block a user