fix: mochaが動かないため拡張子なしに戻した

This commit is contained in:
syuilo 2021-08-19 21:55:45 +09:00
parent e9f34a0f09
commit 42cc93dd0f
657 changed files with 3085 additions and 3085 deletions

View file

@ -1,9 +1,9 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { User } from '@/models/entities/user';
import { SchemaType } from '@/misc/schema';
import { Users } from '@/models/index';
import { name, schema } from '../schemas/active-users';
type ActiveUsersLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { DriveFiles } from '@/models/index.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { DriveFiles } from '@/models/index';
import { Not, IsNull } from 'typeorm';
import { DriveFile } from '@/models/entities/drive-file.js';
import { name, schema } from '../schemas/drive.js';
import { DriveFile } from '@/models/entities/drive-file';
import { name, schema } from '../schemas/drive';
type DriveLog = SchemaType<typeof schema>;

View file

@ -1,8 +1,8 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { Instances } from '@/models/index';
import { name, schema } from '../schemas/federation';
type FederationLog = SchemaType<typeof schema>;

View file

@ -1,9 +1,9 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { User } from '@/models/entities/user';
import { SchemaType } from '@/misc/schema';
import { Users } from '@/models/index';
import { name, schema } from '../schemas/hashtag';
type HashtagLog = SchemaType<typeof schema>;

View file

@ -1,11 +1,11 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { DriveFiles, Followings, Users, Notes } from '@/models/index';
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';
type InstanceLog = SchemaType<typeof schema>;

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Chart, { DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { name, schema } from '../schemas/network.js';
import Chart, { DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { name, schema } from '../schemas/network';
type NetworkLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { Notes } from '@/models/index.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { Notes } from '@/models/index';
import { Not, IsNull } from 'typeorm';
import { Note } from '@/models/entities/note.js';
import { name, schema } from '../schemas/notes.js';
import { Note } from '@/models/entities/note';
import { name, schema } from '../schemas/notes';
type NotesLog = SchemaType<typeof schema>;

View file

@ -1,9 +1,9 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { DriveFiles } from '@/models/index';
import { DriveFile } from '@/models/entities/drive-file';
import { name, schema } from '../schemas/per-user-drive';
type PerUserDriveLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { Followings, Users } from '@/models/index.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { Followings, Users } from '@/models/index';
import { Not, IsNull } from 'typeorm';
import { User } from '@/models/entities/user.js';
import { name, schema } from '../schemas/per-user-following.js';
import { User } from '@/models/entities/user';
import { name, schema } from '../schemas/per-user-following';
type PerUserFollowingLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
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';
import Chart, { Obj, DeepPartial } from '../../core';
import { User } from '@/models/entities/user';
import { SchemaType } from '@/misc/schema';
import { Notes } from '@/models/index';
import { Note } from '@/models/entities/note';
import { name, schema } from '../schemas/per-user-notes';
type PerUserNotesLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
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';
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/index';
import { name, schema } from '../schemas/per-user-reactions';
type PerUserReactionsLog = SchemaType<typeof schema>;

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { name, schema } from '../schemas/test-grouped.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { name, schema } from '../schemas/test-grouped';
type TestGroupedLog = SchemaType<typeof schema>;

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Chart, { DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { name, schema } from '../schemas/test-unique.js';
import Chart, { DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { name, schema } from '../schemas/test-unique';
type TestUniqueLog = SchemaType<typeof schema>;

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { name, schema } from '../schemas/test.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { name, schema } from '../schemas/test';
type TestLog = SchemaType<typeof schema>;

View file

@ -1,10 +1,10 @@
import autobind from 'autobind-decorator';
import Chart, { Obj, DeepPartial } from '../../core.js';
import { SchemaType } from '@/misc/schema.js';
import { Users } from '@/models/index.js';
import Chart, { Obj, DeepPartial } from '../../core';
import { SchemaType } from '@/misc/schema';
import { Users } from '@/models/index';
import { Not, IsNull } from 'typeorm';
import { User } from '@/models/entities/user.js';
import { name, schema } from '../schemas/users.js';
import { User } from '@/models/entities/user';
import { name, schema } from '../schemas/users';
type UsersLog = SchemaType<typeof schema>;

View file

@ -6,11 +6,11 @@
import * as nestedProperty from 'nested-property';
import autobind from 'autobind-decorator';
import Logger from '../logger.js';
import { Schema } from '@/misc/schema.js';
import Logger from '../logger';
import { Schema } from '@/misc/schema';
import { EntitySchema, getRepository, Repository, LessThan, Between } from 'typeorm';
import { dateUTC, isTimeSame, isTimeBefore, subtractTime, addTime } from '../../prelude/time.js';
import { getChartInsertLock } from '@/misc/app-lock.js';
import { dateUTC, isTimeSame, isTimeBefore, subtractTime, addTime } from '../../prelude/time';
import { getChartInsertLock } from '@/misc/app-lock';
const logger = new Logger('chart', 'white', process.env.NODE_ENV !== 'test');

View file

@ -1,6 +1,6 @@
import { fileURLToPath } from 'url';
import { dirname } from 'path';
import Chart from './core.js';
import Chart from './core';
//const _filename = fileURLToPath(import.meta.url);
const _filename = __filename;

View file

@ -1,16 +1,16 @@
import FederationChart from './charts/classes/federation.js';
import NotesChart from './charts/classes/notes.js';
import UsersChart from './charts/classes/users.js';
import NetworkChart from './charts/classes/network.js';
import ActiveUsersChart from './charts/classes/active-users.js';
import InstanceChart from './charts/classes/instance.js';
import PerUserNotesChart from './charts/classes/per-user-notes.js';
import DriveChart from './charts/classes/drive.js';
import PerUserReactionsChart from './charts/classes/per-user-reactions.js';
import HashtagChart from './charts/classes/hashtag.js';
import PerUserFollowingChart from './charts/classes/per-user-following.js';
import PerUserDriveChart from './charts/classes/per-user-drive.js';
import { beforeShutdown } from '@/misc/before-shutdown.js';
import FederationChart from './charts/classes/federation';
import NotesChart from './charts/classes/notes';
import UsersChart from './charts/classes/users';
import NetworkChart from './charts/classes/network';
import ActiveUsersChart from './charts/classes/active-users';
import InstanceChart from './charts/classes/instance';
import PerUserNotesChart from './charts/classes/per-user-notes';
import DriveChart from './charts/classes/drive';
import PerUserReactionsChart from './charts/classes/per-user-reactions';
import HashtagChart from './charts/classes/hashtag';
import PerUserFollowingChart from './charts/classes/per-user-following';
import PerUserDriveChart from './charts/classes/per-user-drive';
import { beforeShutdown } from '@/misc/before-shutdown';
export const federationChart = new FederationChart();
export const notesChart = new NotesChart();