mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
chore: optimize imports
This commit is contained in:
parent
54a7cbc3f4
commit
f1f1ac582d
@ -2,7 +2,6 @@ import {
|
|||||||
ChatType,
|
ChatType,
|
||||||
GeneralCallResult,
|
GeneralCallResult,
|
||||||
Group,
|
Group,
|
||||||
GroupInfoSource,
|
|
||||||
GroupMember,
|
GroupMember,
|
||||||
GroupMemberRole,
|
GroupMemberRole,
|
||||||
GroupRequestOperateTypes,
|
GroupRequestOperateTypes,
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
// @generated by protobuf-ts 2.9.4
|
// @generated by protobuf-ts 2.9.4
|
||||||
// @generated from protobuf file "EmojiLikeToOthers.proto" (package "SysMessage", syntax proto3)
|
// @generated from protobuf file "EmojiLikeToOthers.proto" (package "SysMessage", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
import type {
|
||||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
BinaryReadOptions,
|
||||||
import { WireType } from "@protobuf-ts/runtime";
|
BinaryWriteOptions,
|
||||||
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
IBinaryReader,
|
||||||
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
IBinaryWriter,
|
||||||
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
PartialMessage,
|
||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
} from '@protobuf-ts/runtime';
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime';
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message SysMessage.EmojiLikeToOthersWrapper1
|
* @generated from protobuf message SysMessage.EmojiLikeToOthersWrapper1
|
||||||
*/
|
*/
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
// @generated by protobuf-ts 2.9.4
|
// @generated by protobuf-ts 2.9.4
|
||||||
// @generated from protobuf file "GreyTipWrapper.proto" (package "SysMessage", syntax proto3)
|
// @generated from protobuf file "GreyTipWrapper.proto" (package "SysMessage", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
import type {
|
||||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
BinaryReadOptions,
|
||||||
import { WireType } from "@protobuf-ts/runtime";
|
BinaryWriteOptions,
|
||||||
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
IBinaryReader,
|
||||||
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
IBinaryWriter,
|
||||||
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
PartialMessage,
|
||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
} from '@protobuf-ts/runtime';
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime';
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message SysMessage.GreyTipWrapper
|
* @generated from protobuf message SysMessage.GreyTipWrapper
|
||||||
*/
|
*/
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
// @generated by protobuf-ts 2.9.4
|
// @generated by protobuf-ts 2.9.4
|
||||||
// @generated from protobuf file "SysMessage.proto" (package "SysMessage", syntax proto3)
|
// @generated from protobuf file "SysMessage.proto" (package "SysMessage", syntax proto3)
|
||||||
// tslint:disable
|
// tslint:disable
|
||||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
import type {
|
||||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
BinaryReadOptions,
|
||||||
import { WireType } from "@protobuf-ts/runtime";
|
BinaryWriteOptions,
|
||||||
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
IBinaryReader,
|
||||||
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
IBinaryWriter,
|
||||||
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
PartialMessage,
|
||||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
} from '@protobuf-ts/runtime';
|
||||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime';
|
||||||
import { MessageType } from "@protobuf-ts/runtime";
|
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message SysMessage.SysMessage
|
* @generated from protobuf message SysMessage.SysMessage
|
||||||
*/
|
*/
|
||||||
|
@ -2,8 +2,7 @@ import { NapCatPathWrapper } from '@/common/path';
|
|||||||
import { LogWrapper } from '@/common/log';
|
import { LogWrapper } from '@/common/log';
|
||||||
import { proxiedListenerOf } from '@/common/proxy-handler';
|
import { proxiedListenerOf } from '@/common/proxy-handler';
|
||||||
import { QQBasicInfoWrapper } from '@/common/qq-basic-info';
|
import { QQBasicInfoWrapper } from '@/common/qq-basic-info';
|
||||||
import { loadQQWrapper, NapCatCore, NapCatCoreWorkingEnv } from '@/core';
|
import { InstanceContext, loadQQWrapper, NapCatCore, NapCatCoreWorkingEnv } from '@/core';
|
||||||
import { InstanceContext } from '@/core';
|
|
||||||
import { SelfInfo } from '@/core/entities';
|
import { SelfInfo } from '@/core/entities';
|
||||||
import { NodeIKernelLoginListener } from '@/core/listeners';
|
import { NodeIKernelLoginListener } from '@/core/listeners';
|
||||||
import { NodeIKernelLoginService } from '@/core/services';
|
import { NodeIKernelLoginService } from '@/core/services';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { createServer } from 'node:net';
|
import { createServer } from 'node:net';
|
||||||
|
|
||||||
export class NewAdapterNetwork {
|
export class NewAdapterNetwork {
|
||||||
constructor(public host: number, public port: number) { }
|
constructor(public host: number, public port: number) { }
|
||||||
async open() {
|
async open() {
|
||||||
@ -11,7 +12,7 @@ export class NewAdapterNetwork {
|
|||||||
});
|
});
|
||||||
socket.on('connect', () => {
|
socket.on('connect', () => {
|
||||||
|
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
server.listen(this.port, this.host);
|
server.listen(this.port, this.host);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ import BaseAction from '../BaseAction';
|
|||||||
import fs from 'fs/promises';
|
import fs from 'fs/promises';
|
||||||
import { FileNapCatOneBotUUID } from '@/common/helper';
|
import { FileNapCatOneBotUUID } from '@/common/helper';
|
||||||
import { ActionName } from '../types';
|
import { ActionName } from '../types';
|
||||||
import { ChatType, Peer, RawMessage } from '@/core/entities';
|
|
||||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||||
|
|
||||||
export interface GetFilePayload {
|
export interface GetFilePayload {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||||
import BaseAction from '../BaseAction';
|
import BaseAction from '../BaseAction';
|
||||||
import { ActionName } from '../types';
|
import { ActionName } from '../types';
|
||||||
import { FileNapCatOneBotUUID } from '@/common/helper';
|
|
||||||
|
|
||||||
const SchemaData = {
|
const SchemaData = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -9,7 +9,8 @@ import {
|
|||||||
FaceType,
|
FaceType,
|
||||||
IdMusicSignPostData,
|
IdMusicSignPostData,
|
||||||
MessageElement,
|
MessageElement,
|
||||||
NapCatCore, NTGrayTipElementSubTypeV2,
|
NapCatCore,
|
||||||
|
NTGrayTipElementSubTypeV2,
|
||||||
Peer,
|
Peer,
|
||||||
RawMessage,
|
RawMessage,
|
||||||
SendMessageElement,
|
SendMessageElement,
|
||||||
|
@ -10,12 +10,12 @@ import {
|
|||||||
QuickActionGroupMessage,
|
QuickActionGroupMessage,
|
||||||
QuickActionGroupRequest,
|
QuickActionGroupRequest,
|
||||||
} from '@/onebot';
|
} from '@/onebot';
|
||||||
import { ChatType, GroupRequestOperateTypes, NapCatCore, Peer } from '@/core';
|
import { GroupRequestOperateTypes, NapCatCore, Peer } from '@/core';
|
||||||
import { OB11FriendRequestEvent } from '@/onebot/event/request/OB11FriendRequest';
|
import { OB11FriendRequestEvent } from '@/onebot/event/request/OB11FriendRequest';
|
||||||
import { OB11GroupRequestEvent } from '@/onebot/event/request/OB11GroupRequest';
|
import { OB11GroupRequestEvent } from '@/onebot/event/request/OB11GroupRequest';
|
||||||
import { ContextMode, normalize } from '@/onebot/action/msg/SendMsg';
|
import { ContextMode, createContext, normalize } from '@/onebot/action/msg/SendMsg';
|
||||||
import { isNull } from '@/common/helper';
|
import { isNull } from '@/common/helper';
|
||||||
import { createContext } from '@/onebot/action/msg/SendMsg';
|
|
||||||
export class OneBotQuickActionApi {
|
export class OneBotQuickActionApi {
|
||||||
constructor(
|
constructor(
|
||||||
public obContext: NapCatOneBot11Adapter,
|
public obContext: NapCatOneBot11Adapter,
|
||||||
|
@ -5,8 +5,8 @@ import { NodeIKernelLoginListener, NodeIKernelSessionListener } from '@/core/lis
|
|||||||
import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from '@/core/adapters';
|
import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from '@/core/adapters';
|
||||||
import { NapCatPathWrapper } from '@/common/path';
|
import { NapCatPathWrapper } from '@/common/path';
|
||||||
import {
|
import {
|
||||||
InstanceContext,
|
|
||||||
genSessionConfig,
|
genSessionConfig,
|
||||||
|
InstanceContext,
|
||||||
loadQQWrapper,
|
loadQQWrapper,
|
||||||
NapCatCore,
|
NapCatCore,
|
||||||
NapCatCoreWorkingEnv,
|
NapCatCoreWorkingEnv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user