refactor: convert /backend to ESM
This commit is contained in:
parent
31d74c05aa
commit
5772e27cda
766 changed files with 3473 additions and 3500 deletions
|
@ -1,7 +1,7 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { Archives } from "../Archives";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { Archives } from "../Archives.js";
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
const getArchivesRepository = lazyMemoize(() => new Archives());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import { HOURS, lazyMemoize } from "../../utils";
|
||||
import { MemberCache } from "../MemberCache";
|
||||
import { HOURS, lazyMemoize } from "../../utils.js";
|
||||
import { MemberCache } from "../MemberCache.js";
|
||||
|
||||
const LOOP_INTERVAL = 6 * HOURS;
|
||||
const getMemberCacheRepository = lazyMemoize(() => new MemberCache());
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { lazyMemoize, MINUTES, SECONDS } from "../../utils";
|
||||
import { Mute } from "../entities/Mute";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents";
|
||||
import { Mutes, TIMEOUT_RENEWAL_THRESHOLD } from "../Mutes";
|
||||
import { lazyMemoize, MINUTES, SECONDS } from "../../utils.js";
|
||||
import { Mute } from "../entities/Mute.js";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents.js";
|
||||
import { Mutes, TIMEOUT_RENEWAL_THRESHOLD } from "../Mutes.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { Tempban } from "../entities/Tempban";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents";
|
||||
import { Tempbans } from "../Tempbans";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { Tempban } from "../entities/Tempban.js";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents.js";
|
||||
import { Tempbans } from "../Tempbans.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { VCAlert } from "../entities/VCAlert";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents";
|
||||
import { VCAlerts } from "../VCAlerts";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { VCAlert } from "../entities/VCAlert.js";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents.js";
|
||||
import { VCAlerts } from "../VCAlerts.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { MemberCache } from "../MemberCache";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { MemberCache } from "../MemberCache.js";
|
||||
|
||||
const LOOP_INTERVAL = 5 * MINUTES;
|
||||
const getMemberCacheRepository = lazyMemoize(() => new MemberCache());
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import { MINUTES } from "../../utils";
|
||||
import { MINUTES } from "../../utils.js";
|
||||
import {
|
||||
deleteStalePhishermanCacheEntries,
|
||||
deleteStalePhishermanKeyCacheEntries,
|
||||
reportTrackedDomainsToPhisherman,
|
||||
} from "../Phisherman";
|
||||
} from "../Phisherman.js";
|
||||
|
||||
const CACHE_CLEANUP_LOOP_INTERVAL = 15 * MINUTES;
|
||||
const REPORT_LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import { MINUTES } from "../../utils";
|
||||
import { cleanupMessages } from "../cleanup/messages";
|
||||
import { MINUTES } from "../../utils.js";
|
||||
import { cleanupMessages } from "../cleanup/messages.js";
|
||||
|
||||
const LOOP_INTERVAL = 5 * MINUTES;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { Reminder } from "../entities/Reminder";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents";
|
||||
import { Reminders } from "../Reminders";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { Reminder } from "../entities/Reminder.js";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents.js";
|
||||
import { Reminders } from "../Reminders.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// tslint:disable:no-console
|
||||
|
||||
import moment from "moment-timezone";
|
||||
import { lazyMemoize, MINUTES } from "../../utils";
|
||||
import { ScheduledPost } from "../entities/ScheduledPost";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents";
|
||||
import { ScheduledPosts } from "../ScheduledPosts";
|
||||
import { lazyMemoize, MINUTES } from "../../utils.js";
|
||||
import { ScheduledPost } from "../entities/ScheduledPost.js";
|
||||
import { emitGuildEvent, hasGuildEventListener } from "../GuildEvents.js";
|
||||
import { ScheduledPosts } from "../ScheduledPosts.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
|
||||
const LOOP_INTERVAL = 15 * MINUTES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue