refactor: refactoring imports
将来ESMに移行しやすいように Related: #7658 なんかmochaが起動しなくなってるけど理由不明 すぐ直したい
This commit is contained in:
parent
31e3aaeda0
commit
b9cb6d1c10
663 changed files with 3194 additions and 3134 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Users } from '../../../../models';
|
||||
import { name, schema } from '../schemas/active-users';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { name, schema } from '../schemas/active-users.js';
|
||||
|
||||
type ActiveUsersLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { DriveFiles } from '../../../../models';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { DriveFiles } from '@/models/index.js';
|
||||
import { Not, IsNull } from 'typeorm';
|
||||
import { DriveFile } from '../../../../models/entities/drive-file';
|
||||
import { name, schema } from '../schemas/drive';
|
||||
import { DriveFile } from '@/models/entities/drive-file.js';
|
||||
import { name, schema } from '../schemas/drive.js';
|
||||
|
||||
type DriveLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Instances } from '../../../../models';
|
||||
import { name, schema } from '../schemas/federation';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Instances } from '@/models/index.js';
|
||||
import { name, schema } from '../schemas/federation.js';
|
||||
|
||||
type FederationLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Users } from '../../../../models';
|
||||
import { name, schema } from '../schemas/hashtag';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { name, schema } from '../schemas/hashtag.js';
|
||||
|
||||
type HashtagLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { DriveFiles, Followings, Users, Notes } from '../../../../models';
|
||||
import { DriveFile } from '../../../../models/entities/drive-file';
|
||||
import { name, schema } from '../schemas/instance';
|
||||
import { Note } from '../../../../models/entities/note';
|
||||
import { toPuny } from '@/misc/convert-host';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { DriveFiles, Followings, Users, Notes } from '@/models/index.js';
|
||||
import { DriveFile } from '@/models/entities/drive-file.js';
|
||||
import { name, schema } from '../schemas/instance.js';
|
||||
import { Note } from '@/models/entities/note.js';
|
||||
import { toPuny } from '@/misc/convert-host.js';
|
||||
|
||||
type InstanceLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { name, schema } from '../schemas/network';
|
||||
import Chart, { DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { name, schema } from '../schemas/network.js';
|
||||
|
||||
type NetworkLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Notes } from '../../../../models';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Notes } from '@/models/index.js';
|
||||
import { Not, IsNull } from 'typeorm';
|
||||
import { Note } from '../../../../models/entities/note';
|
||||
import { name, schema } from '../schemas/notes';
|
||||
import { Note } from '@/models/entities/note.js';
|
||||
import { name, schema } from '../schemas/notes.js';
|
||||
|
||||
type NotesLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { DriveFiles } from '../../../../models';
|
||||
import { DriveFile } from '../../../../models/entities/drive-file';
|
||||
import { name, schema } from '../schemas/per-user-drive';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { DriveFiles } from '@/models/index.js';
|
||||
import { DriveFile } from '@/models/entities/drive-file.js';
|
||||
import { name, schema } from '../schemas/per-user-drive.js';
|
||||
|
||||
type PerUserDriveLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Followings, Users } from '../../../../models';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Followings, Users } from '@/models/index.js';
|
||||
import { Not, IsNull } from 'typeorm';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { name, schema } from '../schemas/per-user-following';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { name, schema } from '../schemas/per-user-following.js';
|
||||
|
||||
type PerUserFollowingLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Notes } from '../../../../models';
|
||||
import { Note } from '../../../../models/entities/note';
|
||||
import { name, schema } from '../schemas/per-user-notes';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Notes } from '@/models/index.js';
|
||||
import { Note } from '@/models/entities/note.js';
|
||||
import { name, schema } from '../schemas/per-user-notes.js';
|
||||
|
||||
type PerUserNotesLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { DeepPartial } from '../../core';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { Note } from '../../../../models/entities/note';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Users } from '../../../../models';
|
||||
import { name, schema } from '../schemas/per-user-reactions';
|
||||
import Chart, { DeepPartial } from '../../core.js';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { Note } from '@/models/entities/note.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { name, schema } from '../schemas/per-user-reactions.js';
|
||||
|
||||
type PerUserReactionsLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { name, schema } from '../schemas/test-grouped';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { name, schema } from '../schemas/test-grouped.js';
|
||||
|
||||
type TestGroupedLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { name, schema } from '../schemas/test-unique';
|
||||
import Chart, { DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { name, schema } from '../schemas/test-unique.js';
|
||||
|
||||
type TestUniqueLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { name, schema } from '../schemas/test';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { name, schema } from '../schemas/test.js';
|
||||
|
||||
type TestLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import autobind from 'autobind-decorator';
|
||||
import Chart, { Obj, DeepPartial } from '../../core';
|
||||
import { SchemaType } from '@/misc/schema';
|
||||
import { Users } from '../../../../models';
|
||||
import Chart, { Obj, DeepPartial } from '../../core.js';
|
||||
import { SchemaType } from '@/misc/schema.js';
|
||||
import { Users } from '@/models/index.js';
|
||||
import { Not, IsNull } from 'typeorm';
|
||||
import { User } from '../../../../models/entities/user';
|
||||
import { name, schema } from '../schemas/users';
|
||||
import { User } from '@/models/entities/user.js';
|
||||
import { name, schema } from '../schemas/users.js';
|
||||
|
||||
type UsersLog = SchemaType<typeof schema>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue