refactor: clean up codebase and add new features
Replace SCSS variable usages with explicit pixel/hex values for consistent styling across all components Fix broken template syntax including missing class spaces and incorrect closing tags Migrate constant and API imports to centralized @/constants and @/api modules Add new utility classes: IdUtils, CallbackUtils, and TimerUtils Add new chat conversation API endpoints for recent conversations and message lists Add new Discovery page components (FindTabs, QuickQuestions, CardSwiper) and their styles Update app store config to use environment variables for base API and WebSocket URLs Add new selected tab icon assets
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
:finish="item.finish"
|
||||
/> -->
|
||||
|
||||
<LongTextGuideCardPrediv v-if="item.componentName && isLongTextCard(item.componentName)"
|
||||
<LongTextGuideCardPreview v-if="item.componentName && isLongTextCard(item.componentName)"
|
||||
:componentName="item.componentName" />
|
||||
|
||||
<QuickBookingComponent v-if="
|
||||
@@ -147,12 +147,12 @@ import {
|
||||
SEND_MESSAGE_COMMAND_TYPE,
|
||||
NOTICE_EVENT_LOGOUT,
|
||||
NOTICE_EVENT_LOGIN_SUCCESS,
|
||||
} from "@/constant/constant";
|
||||
import { MessageRole, MessageType, CompName, Command } from "@/model/ChatModel";
|
||||
} from "@/constants/constant";
|
||||
import { MessageRole, MessageType, CompName, Command } from "@/constants/ChatModel";
|
||||
|
||||
import HomeWelcome from "../HomeWelcome/index.vue";
|
||||
import AiTabSwitch from "@/components/AiTabSwitch/index.vue";
|
||||
import Discovery from "../../Discovery/index.vue";
|
||||
import Discovery from "../Discovery/index.vue";
|
||||
import ChatGuide from "../ChatGuide/index.vue";
|
||||
|
||||
import ChatTopNavBar from "../ChatTopNavBar/index.vue";
|
||||
@@ -162,37 +162,36 @@ import ChatCardOther from "../ChatCardOther/index.vue";
|
||||
import ChatQuickAccess from "../ChatQuickAccess/index.vue";
|
||||
import ChatInputArea from "../ChatInputArea/index.vue";
|
||||
|
||||
import QuickBookingComponent from "../../ChatModule/QuickBookingComponent/index.vue";
|
||||
import DiscoveryCardComponent from "../../ChatModule/DiscoveryCardComponent/index.vue";
|
||||
import ActivityListComponent from "../../ChatModule/ActivityListComponent/index.vue";
|
||||
import RecommendPostsComponent from "../../ChatModule/RecommendPostsComponent/index.vue";
|
||||
import AttachListComponent from "../../ChatModule/AttachListComponent/index.vue";
|
||||
import DetailCardCompontent from "../../ChatModule/DetailCardCompontent/index.vue";
|
||||
import OpenMapComponent from "../../ChatModule/OpenMapComponent/index.vue";
|
||||
import AnswerComponent from "../../ChatModule/AnswerComponent/index.vue";
|
||||
import GeneratorPhotoComponent from "../../ChatModule/GeneratorPhotoComponent/index.vue";
|
||||
import QuickBookingComponent from "../QuickBookingComponent/index.vue";
|
||||
import DiscoveryCardComponent from "../DiscoveryCardComponent/index.vue";
|
||||
import ActivityListComponent from "../ActivityListComponent/index.vue";
|
||||
import RecommendPostsComponent from "../RecommendPostsComponent/index.vue";
|
||||
import AttachListComponent from "../AttachListComponent/index.vue";
|
||||
import DetailCardCompontent from "../DetailCardCompontent/index.vue";
|
||||
import OpenMapComponent from "../OpenMapComponent/index.vue";
|
||||
import AnswerComponent from "../AnswerComponent/index.vue";
|
||||
import GeneratorPhotoComponent from "../GeneratorPhotoComponent/index.vue";
|
||||
|
||||
import ZModuleC01 from "../../ChatModule/ZModuleC01/index.vue";
|
||||
import LongTextGuideCardPrediv from "../../ChatModule/LongTextGuideCardPrediv/index.vue";
|
||||
import LongTextGuideCardPreview from "../LongTextGuideCardPreview/index.vue";
|
||||
|
||||
import CreateServiceOrder from "@/components/CreateServiceOrder/index.vue";
|
||||
import Feedback from "@/components/Feedback/index.vue";
|
||||
import AddCarCrad from "@/components/AddCarCrad/index.vue";
|
||||
import SurveyQuestionnaire from "@/components/SurveyQuestionnaire/index.vue";
|
||||
import { mainPageData } from "@/request/api/MainPageDataApi";
|
||||
import { mainPageData } from "@/api/home";
|
||||
import {
|
||||
conversationMsgList,
|
||||
recentConversation,
|
||||
} from "@/request/api/ConversationApi";
|
||||
} from "@/api/home";
|
||||
import WebSocketManager from "@/utils/WebSocketManager";
|
||||
import { IdUtils } from "@/utils";
|
||||
import { IdUtils } from "@/utils/IdUtils";
|
||||
import {
|
||||
appendLongTextChunk,
|
||||
createLongTextData,
|
||||
} from "@/utils/longTextCard";
|
||||
} from "@/constants/longTextCard";
|
||||
import { checkToken } from "@/hooks/useGoLogin";
|
||||
import { useAppStore } from "@/store";
|
||||
import { getAccessToken } from "@/constant/token";
|
||||
import { getAccessToken } from "@/constants/token";
|
||||
|
||||
const emit = defineEmits(["showDrawer"]);
|
||||
const appStore = useAppStore();
|
||||
|
||||
Reference in New Issue
Block a user