From e43f229e049bdd046cfafdc9903972cb6d890486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 13 Nov 2025 18:56:51 +0800 Subject: [PATCH] Update import paths to use direct module references Changed import statements from alias-based paths (e.g., '@/napcat-common/store') to direct module references (e.g., 'napcat-common/src/store') in Proxy.ts, Status.ts, Data.ts, and SignToken.ts for improved compatibility and clarity. --- packages/napcat-webui-backend/src/api/Proxy.ts | 2 +- packages/napcat-webui-backend/src/api/Status.ts | 2 +- packages/napcat-webui-backend/src/helper/Data.ts | 2 +- packages/napcat-webui-backend/src/helper/SignToken.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/napcat-webui-backend/src/api/Proxy.ts b/packages/napcat-webui-backend/src/api/Proxy.ts index 0013edcf..2c9b60bf 100644 --- a/packages/napcat-webui-backend/src/api/Proxy.ts +++ b/packages/napcat-webui-backend/src/api/Proxy.ts @@ -1,5 +1,5 @@ import { RequestHandler } from 'express'; -import { RequestUtil } from '@/napcat-common/request'; +import { RequestUtil } from 'napcat-common/src/request'; import { sendError, sendSuccess } from '../utils/response'; export const GetProxyHandler: RequestHandler = async (req, res) => { diff --git a/packages/napcat-webui-backend/src/api/Status.ts b/packages/napcat-webui-backend/src/api/Status.ts index aa8af49a..f0caa50b 100644 --- a/packages/napcat-webui-backend/src/api/Status.ts +++ b/packages/napcat-webui-backend/src/api/Status.ts @@ -1,5 +1,5 @@ import { RequestHandler } from 'express'; -import { SystemStatus, statusHelperSubscription } from '@/napcat-core/helper/status'; +import { SystemStatus, statusHelperSubscription } from 'napcat-core/helper/status'; export const StatusRealTimeHandler: RequestHandler = async (req, res) => { res.setHeader('Content-Type', 'text/event-stream'); diff --git a/packages/napcat-webui-backend/src/helper/Data.ts b/packages/napcat-webui-backend/src/helper/Data.ts index f4b02212..f20da97d 100644 --- a/packages/napcat-webui-backend/src/helper/Data.ts +++ b/packages/napcat-webui-backend/src/helper/Data.ts @@ -1,6 +1,6 @@ import type { LoginRuntimeType } from '../types/data'; import packageJson from '../../../../package.json'; -import store from '@/napcat-common/store'; +import store from 'napcat-common/src/store'; const LoginRuntime: LoginRuntimeType = { LoginCurrentTime: Date.now(), diff --git a/packages/napcat-webui-backend/src/helper/SignToken.ts b/packages/napcat-webui-backend/src/helper/SignToken.ts index f717bc9a..263431b1 100644 --- a/packages/napcat-webui-backend/src/helper/SignToken.ts +++ b/packages/napcat-webui-backend/src/helper/SignToken.ts @@ -1,5 +1,5 @@ import crypto from 'crypto'; -import store from '@/napcat-common/store'; +import store from 'napcat-common/src/store'; export class AuthHelper { private static readonly secretKey = Math.random().toString(36).slice(2);