fix the import path in utils

This commit is contained in:
Zhigang Wang 2024-06-20 20:58:03 -07:00
parent a21f824f7b
commit ada2f06bae
9 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import { store, userRoleEnum } from '@/store/index' import { store, userRoleEnum } from '../store/index'
//public //public
import About from '@/pages/public/About.vue' import About from '@/pages/public/About.vue'

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class HistoryApi { class HistoryApi {
static fetchClosedWorkspackeProjects() { static fetchClosedWorkspackeProjects() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class LabApi { class LabApi {
static translate_text(input_text) { static translate_text(input_text) {
let jwt = userUtils.getJwtToken() let jwt = userUtils.getJwtToken()

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class MessageHubApi { class MessageHubApi {
static fetchMessageThreads() { static fetchMessageThreads() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class ProviderHubApi { class ProviderHubApi {
static fetchProvidersForHub() { static fetchProvidersForHub() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class RequestHubApi { class RequestHubApi {
static fetchRequestForHub() { static fetchRequestForHub() {

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class UserProfileApi { class UserProfileApi {
static fetchUserProfile() { static fetchUserProfile() {

View File

@ -1,9 +1,9 @@
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class WsConnectionFactory { class WsConnectionFactory {
static CreateWebSocket(onOpen, onMessage, onError, onClose) { static CreateWebSocket(onOpen, onMessage, onError, onClose) {
let jwt = userUtils.getJwtToken() 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.onopen = onOpen
this.socket.onmessage = onMessage this.socket.onmessage = onMessage
this.socket.onerror = onError this.socket.onerror = onError

View File

@ -1,5 +1,5 @@
import { backendAxios } from './axios' import { backendAxios } from './axios'
import { userUtils } from '@/store/index' import { userUtils } from '../store/index'
class WorksapceApi { class WorksapceApi {
static createMilestoneCheckoutSession(project_id, milestone_index) { static createMilestoneCheckoutSession(project_id, milestone_index) {