From c1082898f42100fe98f5c3dc75749c69f5429677 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 14 Oct 2024 00:31:42 +0800 Subject: [PATCH] clean up imports --- AiServer/wwwroot/mjs/components/Chat.mjs | 4 ++-- AiServer/wwwroot/mjs/components/FileUpload.mjs | 4 ++-- AiServer/wwwroot/mjs/components/ImageToImage.mjs | 2 +- AiServer/wwwroot/mjs/components/ImageToText.mjs | 4 ++-- AiServer/wwwroot/mjs/components/ImageUpscale.mjs | 2 +- AiServer/wwwroot/mjs/components/SpeechToText.mjs | 2 +- AiServer/wwwroot/mjs/components/TextToImage.mjs | 4 ++-- AiServer/wwwroot/mjs/components/TextToSpeech.mjs | 8 ++++++-- 8 files changed, 17 insertions(+), 13 deletions(-) diff --git a/AiServer/wwwroot/mjs/components/Chat.mjs b/AiServer/wwwroot/mjs/components/Chat.mjs index 5b33b80..d0a239c 100644 --- a/AiServer/wwwroot/mjs/components/Chat.mjs +++ b/AiServer/wwwroot/mjs/components/Chat.mjs @@ -1,8 +1,8 @@ import { ref, computed, onMounted, inject, watch, nextTick } from "vue" -import { useFormatters, useClient } from "@servicestack/vue" +import { useClient } from "@servicestack/vue" import { marked } from "../markdown.mjs" import { addCopyButtonToCodeBlocks } from "../dom.mjs" -import {useUiLayout, UiLayout, ThreadStorage, HistoryTitle, HistoryGroups } from "../utils.mjs" +import { useUiLayout, UiLayout, ThreadStorage, HistoryTitle, HistoryGroups } from "../utils.mjs" import { QueryPrompts, ActiveAiModels, OpenAiChatCompletion } from "dtos" export default { diff --git a/AiServer/wwwroot/mjs/components/FileUpload.mjs b/AiServer/wwwroot/mjs/components/FileUpload.mjs index a77107b..e9df814 100644 --- a/AiServer/wwwroot/mjs/components/FileUpload.mjs +++ b/AiServer/wwwroot/mjs/components/FileUpload.mjs @@ -1,5 +1,5 @@ -import { computed, inject, onUnmounted, ref, nextTick } from 'vue' -import { errorResponse, humanize, lastLeftPart, lastRightPart, omit, toPascalCase } from '@servicestack/client' +import { computed, inject, onUnmounted, ref } from 'vue' +import { errorResponse, humanize, toPascalCase } from '@servicestack/client' import { useConfig, useFiles } from '@servicestack/vue' import { wordList } from "../utils.mjs" diff --git a/AiServer/wwwroot/mjs/components/ImageToImage.mjs b/AiServer/wwwroot/mjs/components/ImageToImage.mjs index c3b3521..61e8476 100644 --- a/AiServer/wwwroot/mjs/components/ImageToImage.mjs +++ b/AiServer/wwwroot/mjs/components/ImageToImage.mjs @@ -1,4 +1,4 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" +import { ref, computed, onMounted, inject, watch } from "vue" import { useClient } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" import { ImageToImage } from "dtos" diff --git a/AiServer/wwwroot/mjs/components/ImageToText.mjs b/AiServer/wwwroot/mjs/components/ImageToText.mjs index 1ae657b..01ba17e 100644 --- a/AiServer/wwwroot/mjs/components/ImageToText.mjs +++ b/AiServer/wwwroot/mjs/components/ImageToText.mjs @@ -1,7 +1,7 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" +import { ref, onMounted, inject, watch } from "vue" import { useClient, useFiles } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" -import { ImageToText, ActiveMediaModels } from "dtos" +import { ImageToText } from "dtos" import { UiLayout, ThreadStorage, HistoryTitle, HistoryGroups, useUiLayout, icons, Img, acceptedImages } from "../utils.mjs" import FileUpload from "./FileUpload.mjs" diff --git a/AiServer/wwwroot/mjs/components/ImageUpscale.mjs b/AiServer/wwwroot/mjs/components/ImageUpscale.mjs index b6aa1e6..d5d461d 100644 --- a/AiServer/wwwroot/mjs/components/ImageUpscale.mjs +++ b/AiServer/wwwroot/mjs/components/ImageUpscale.mjs @@ -1,4 +1,4 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" +import { ref, onMounted, inject, watch } from "vue" import { useClient, useFiles } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" import { ImageUpscale } from "dtos" diff --git a/AiServer/wwwroot/mjs/components/SpeechToText.mjs b/AiServer/wwwroot/mjs/components/SpeechToText.mjs index 43a1b09..2061e70 100644 --- a/AiServer/wwwroot/mjs/components/SpeechToText.mjs +++ b/AiServer/wwwroot/mjs/components/SpeechToText.mjs @@ -1,4 +1,4 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" +import { ref, onMounted, inject, watch } from "vue" import { useClient, useFiles } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" import { SpeechToText } from "dtos" diff --git a/AiServer/wwwroot/mjs/components/TextToImage.mjs b/AiServer/wwwroot/mjs/components/TextToImage.mjs index 8bdfce6..78a9dd3 100644 --- a/AiServer/wwwroot/mjs/components/TextToImage.mjs +++ b/AiServer/wwwroot/mjs/components/TextToImage.mjs @@ -1,8 +1,8 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" +import { ref, computed, onMounted, inject, watch } from "vue" import { useClient } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" import { TextToImage, ActiveMediaModels } from "dtos" -import {UiLayout, ThreadStorage, HistoryTitle, HistoryGroups, useUiLayout, icons, toArtifacts } from "../utils.mjs" +import { UiLayout, ThreadStorage, HistoryTitle, HistoryGroups, useUiLayout, icons, toArtifacts } from "../utils.mjs" import { ArtifactGallery } from "./Artifacts.mjs" import PromptGenerator from "./PromptGenerator.mjs" diff --git a/AiServer/wwwroot/mjs/components/TextToSpeech.mjs b/AiServer/wwwroot/mjs/components/TextToSpeech.mjs index f426a5e..d149f04 100644 --- a/AiServer/wwwroot/mjs/components/TextToSpeech.mjs +++ b/AiServer/wwwroot/mjs/components/TextToSpeech.mjs @@ -1,5 +1,9 @@ -import { ref, computed, onMounted, inject, watch, nextTick } from "vue" -import { useClient, useFiles } from "@servicestack/vue" +/* +In the ancient land of Eldoria, where the skies were painted with shades of mystic hues and the forests whispered secrets of old, there existed a dragon named Zephyros. Unlike the fearsome tales of dragons that plagued human hearts with terror, Zephyros was a creature of wonder and wisdom, revered by all who knew of his existence. +*/ + +import { ref, onMounted, inject, watch } from "vue" +import { useClient } from "@servicestack/vue" import { createErrorStatus } from "@servicestack/client" import { TextToSpeech } from "dtos" import { UiLayout, ThreadStorage, HistoryTitle, HistoryGroups, useUiLayout, icons, toArtifacts, acceptedImages } from "../utils.mjs"