Skip to content

Commit

Permalink
style: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Jan 9, 2025
1 parent cf3faea commit 1822831
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/admin/src/component/SearchDialog/src/SearchDialog.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { Menu } from "@celeris/types";
import type { ScrollbarInst } from "naive-ui";
import type { SearchGroup, SearchGroupItem, SearchGroups } from "~/component/SearchDialog/src/types";
import { isWindows } from "@celeris/utils";
import Highlighter from "headless-highlighter";
import type { SearchGroup, SearchGroupItem, SearchGroups } from "~/component/SearchDialog/src/types";
import { useSearchDialog } from "~/composables/useSearchDialog";
import { getShallowMenus } from "~/router/menus";
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/composables/useTabs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { RouteLocationNormalized, Router } from "vue-router";

import type { Tab } from "~/store/modules/tabs";
import { unref } from "vue";
import { useRouter } from "vue-router";
import type { Tab } from "~/store/modules/tabs";
import { useTabsStore } from "~/store/modules/tabs";

export function useTabs(_router?: Router) {
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/pages/chat/chatContext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Ref } from "vue";
import { createInjectionKey } from "@celeris/utils";
import type { Assistant } from "~/pages/chat/components/AssistantSidebar/types";
import { createInjectionKey } from "@celeris/utils";

export interface ChatContextInjectionKey {
selectedAssistantRef: Ref<Assistant>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Assistant } from "~/pages/chat/components/AssistantSidebar/types";
import { type ChatContextInjectionKey, chatContextInjectionKey } from "~/pages/chat/chatContext";
import AssistantItem from "~/pages/chat/components/AssistantSidebar/components/AssistantItem.vue";
import type { Assistant } from "~/pages/chat/components/AssistantSidebar/types";
import { defaultAssistant, fakeAssistants } from "~/pages/chat/data";
const { selectedAssistantRef } = inject<ChatContextInjectionKey>(chatContextInjectionKey)!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { RendererElement, RendererNode, VNode } from "vue";
import type { ChatSummary } from "~/pages/chat/components/AssistantSidebar/types";
import { renderIcon } from "@celeris/components";
import ActionIcon from "~/component/ActionIcon/src/ActionIcon.vue";
import type { ChatSummary } from "~/pages/chat/components/AssistantSidebar/types";
defineProps({
chatSummary: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import ActionIcon from "~/component/ActionIcon/src/ActionIcon.vue";
import type { ChatContextInjectionKey } from "~/pages/chat/chatContext";
import ActionIcon from "~/component/ActionIcon/src/ActionIcon.vue";
import { chatContextInjectionKey } from "~/pages/chat/chatContext";
const { selectedAssistantRef } = inject<ChatContextInjectionKey>(chatContextInjectionKey)!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import type { ChatHistorySidebar } from "~/pages/chat/components/AssistantSidebar/types";
import { onMounted, ref } from "vue";
import ChatHistoryItem from "~/pages/chat/components/ChatHistorySidebar/components/ChatHistoryItem.vue";
const chatHistory = ref<ChatHistorySidebar>(); // 使用 ChatHistorySidebar 类型的 ref
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { RendererElement, RendererNode, VNode } from "vue";
import type { ChatContextInjectionKey } from "~/pages/chat/chatContext";
import { renderIcon } from "@celeris/components";
import ActionIcon from "~/component/ActionIcon/src/ActionIcon.vue";
import type { ChatContextInjectionKey } from "~/pages/chat/chatContext";
import { chatContextInjectionKey } from "~/pages/chat/chatContext";
const { selectedAssistantRef } = inject<ChatContextInjectionKey>(chatContextInjectionKey)!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { createColumnHelper, getCoreRowModel, useVueTable } from "@tanstack/vue-table";
import type { ChatGPTDemoTableRow } from "~/pages/components/headless-table/basic/data";
import { createColumnHelper, getCoreRowModel, useVueTable } from "@tanstack/vue-table";
import { AppTable } from "~/component/AppTable";
import PageWrapper from "~/component/PageWrapper/src/PageWrapper.vue";
import type { ChatGPTDemoTableRow } from "~/pages/components/headless-table/basic/data";
import { chatGPTDemoTestData } from "~/pages/components/headless-table/basic/data";
defineOptions({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { createColumnHelper, FlexRender, getCoreRowModel, getPaginationRowModel, useVueTable } from "@tanstack/vue-table";
import type { ChatGPTDemoTableRow } from "~/pages/components/headless-table/basic/data";
import { createColumnHelper, FlexRender, getCoreRowModel, getPaginationRowModel, useVueTable } from "@tanstack/vue-table";
import PageWrapper from "~/component/PageWrapper/src/PageWrapper.vue";
import type { ChatGPTDemoTableRow } from "~/pages/components/headless-table/basic/data";
defineOptions({
name: "HeadlessTablePagination",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import type { ForgotPasswordFromType } from "~/pages/login/types";
import {
type FormInst,
type FormRules,
Expand All @@ -9,9 +11,7 @@ import {
NInput,
useMessage,
} from "naive-ui";
import { ref } from "vue";
import type { ForgotPasswordFromType } from "~/pages/login/types";
const { t } = useI18n();
const formRef = ref<FormInst | null>(null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { FormInst, FormRules } from "naive-ui";
import { useI18n } from "@celeris/locale";
import { useUserStore } from "~/store/modules/user";
// 登录表单数据
import type { SignInFromType } from "~/pages/login/types";
import { useI18n } from "@celeris/locale";
import { useUserStore } from "~/store/modules/user";
const emit = defineEmits<{
(e: "forgotPassword"): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import type { SignUpFromType } from "~/pages/login/types";
import {
type FormInst,
type FormItemRule,
Expand All @@ -12,8 +14,6 @@ import {
} from "naive-ui";
import { ref } from "vue";
import type { SignUpFromType } from "~/pages/login/types";
import { useUserStore } from "~/store/modules/user";
const { t } = useI18n();
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/pages/login/components/AuthForm/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts" setup>
import type { AuthFormType } from "~/pages/login/types";
import { RouterTransitionConstants } from "@celeris/constants";
import { NButton, NDivider } from "naive-ui";
import { computed, onBeforeMount, ref } from "vue";
import ForgotPassword from "~/pages/login/components/AuthForm/components/ForgotPassword.vue";
import SignIn from "~/pages/login/components/AuthForm/components/SignIn.vue";
import SignUp from "~/pages/login/components/AuthForm/components/SignUp.vue";
import type { AuthFormType } from "~/pages/login/types";
const props = defineProps<{
type?: AuthFormType;
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/store/modules/user.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { RoleConstants } from "@celeris/constants";
import type { MessageMode } from "@celeris/request";
import type { UserInfo } from "@celeris/types/src/user";
import type { LoginParams } from "~/apis/internal/auth";
import { PageConstants, PermissionCacheTypeConstants } from "@celeris/constants";
import { field, getErrorMessage, logger } from "@celeris/utils";
import { defineStore } from "pinia";
import { loginApi, logoutApi, userInfoApi } from "~/apis/internal/auth";
import type { LoginParams } from "~/apis/internal/auth";
import { router } from "~/router";
import { PAGE_NOT_FOUND_ROUTE } from "~/router/routes/basic";
import { DEFAULT_PROJECT_SETTING } from "~/setting/projectSetting";
Expand Down

0 comments on commit 1822831

Please sign in to comment.