From ada2f06bae60bc527700bfb04343ba0adc8a5fa9 Mon Sep 17 00:00:00 2001 From: Zhigang Wang Date: Thu, 20 Jun 2024 20:58:03 -0700 Subject: [PATCH] fix the import path in utils --- frontend/src/plugins/router/router.js | 2 +- frontend/src/utils/backend/history.js | 2 +- frontend/src/utils/backend/lab.js | 2 +- frontend/src/utils/backend/messageHub.js | 2 +- frontend/src/utils/backend/providerHub.js | 2 +- frontend/src/utils/backend/requestHub.js | 2 +- frontend/src/utils/backend/userProfile.js | 2 +- frontend/src/utils/backend/websocket.js | 4 ++-- frontend/src/utils/backend/workspace.js | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/plugins/router/router.js b/frontend/src/plugins/router/router.js index 262c226..53f19bc 100644 --- a/frontend/src/plugins/router/router.js +++ b/frontend/src/plugins/router/router.js @@ -1,5 +1,5 @@ import { createRouter, createWebHistory } from 'vue-router' -import { store, userRoleEnum } from '@/store/index' +import { store, userRoleEnum } from '../store/index' //public import About from '@/pages/public/About.vue' diff --git a/frontend/src/utils/backend/history.js b/frontend/src/utils/backend/history.js index eb846e4..113b0e9 100644 --- a/frontend/src/utils/backend/history.js +++ b/frontend/src/utils/backend/history.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class HistoryApi { static fetchClosedWorkspackeProjects() { diff --git a/frontend/src/utils/backend/lab.js b/frontend/src/utils/backend/lab.js index c4e9393..eb493f3 100644 --- a/frontend/src/utils/backend/lab.js +++ b/frontend/src/utils/backend/lab.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class LabApi { static translate_text(input_text) { let jwt = userUtils.getJwtToken() diff --git a/frontend/src/utils/backend/messageHub.js b/frontend/src/utils/backend/messageHub.js index 1cf9701..e3bff5b 100644 --- a/frontend/src/utils/backend/messageHub.js +++ b/frontend/src/utils/backend/messageHub.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class MessageHubApi { static fetchMessageThreads() { diff --git a/frontend/src/utils/backend/providerHub.js b/frontend/src/utils/backend/providerHub.js index 2522bde..8a3683d 100644 --- a/frontend/src/utils/backend/providerHub.js +++ b/frontend/src/utils/backend/providerHub.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class ProviderHubApi { static fetchProvidersForHub() { diff --git a/frontend/src/utils/backend/requestHub.js b/frontend/src/utils/backend/requestHub.js index 1489dbd..5c9d9f7 100644 --- a/frontend/src/utils/backend/requestHub.js +++ b/frontend/src/utils/backend/requestHub.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class RequestHubApi { static fetchRequestForHub() { diff --git a/frontend/src/utils/backend/userProfile.js b/frontend/src/utils/backend/userProfile.js index f66bbc1..145ca06 100644 --- a/frontend/src/utils/backend/userProfile.js +++ b/frontend/src/utils/backend/userProfile.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class UserProfileApi { static fetchUserProfile() { diff --git a/frontend/src/utils/backend/websocket.js b/frontend/src/utils/backend/websocket.js index e5b9dd8..109ead5 100644 --- a/frontend/src/utils/backend/websocket.js +++ b/frontend/src/utils/backend/websocket.js @@ -1,9 +1,9 @@ -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class WsConnectionFactory { static CreateWebSocket(onOpen, onMessage, onError, onClose) { let jwt = userUtils.getJwtToken() - this.socket = new WebSocket(`/ws/downstream/downstream_notification?token=${jwt}`) + this.socket = new WebSocket(`/ws/downstream/online_platform_notification?token=${jwt}`) this.socket.onopen = onOpen this.socket.onmessage = onMessage this.socket.onerror = onError diff --git a/frontend/src/utils/backend/workspace.js b/frontend/src/utils/backend/workspace.js index aecfa30..7b68374 100644 --- a/frontend/src/utils/backend/workspace.js +++ b/frontend/src/utils/backend/workspace.js @@ -1,5 +1,5 @@ import { backendAxios } from './axios' -import { userUtils } from '@/store/index' +import { userUtils } from '../store/index' class WorksapceApi { static createMilestoneCheckoutSession(project_id, milestone_index) {