mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-22 15:20:07 +08:00
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.
This commit is contained in:
parent
9158ebc136
commit
e43f229e04
@ -1,5 +1,5 @@
|
|||||||
import { RequestHandler } from 'express';
|
import { RequestHandler } from 'express';
|
||||||
import { RequestUtil } from '@/napcat-common/request';
|
import { RequestUtil } from 'napcat-common/src/request';
|
||||||
import { sendError, sendSuccess } from '../utils/response';
|
import { sendError, sendSuccess } from '../utils/response';
|
||||||
|
|
||||||
export const GetProxyHandler: RequestHandler = async (req, res) => {
|
export const GetProxyHandler: RequestHandler = async (req, res) => {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { RequestHandler } from 'express';
|
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) => {
|
export const StatusRealTimeHandler: RequestHandler = async (req, res) => {
|
||||||
res.setHeader('Content-Type', 'text/event-stream');
|
res.setHeader('Content-Type', 'text/event-stream');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import type { LoginRuntimeType } from '../types/data';
|
import type { LoginRuntimeType } from '../types/data';
|
||||||
import packageJson from '../../../../package.json';
|
import packageJson from '../../../../package.json';
|
||||||
import store from '@/napcat-common/store';
|
import store from 'napcat-common/src/store';
|
||||||
|
|
||||||
const LoginRuntime: LoginRuntimeType = {
|
const LoginRuntime: LoginRuntimeType = {
|
||||||
LoginCurrentTime: Date.now(),
|
LoginCurrentTime: Date.now(),
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
import store from '@/napcat-common/store';
|
import store from 'napcat-common/src/store';
|
||||||
export class AuthHelper {
|
export class AuthHelper {
|
||||||
private static readonly secretKey = Math.random().toString(36).slice(2);
|
private static readonly secretKey = Math.random().toString(36).slice(2);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user