mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(refactor) remove unused imports
This commit is contained in:
parent
8566abf3fa
commit
449822e2d8
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
const {Event, day, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, NepaliEvent, day, week, month, dayYear, weekStarting, EventLevel, Day} = require("../../../src/calendar/helpers");
|
const {Event, NepaliEvent, day, week, month, dayYear, EventLevel, Day} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel, weekStarting} = require("../../../src/calendar/helpers");
|
const {Event, day, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
const {Event, day, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
new Event('Abieluvõrdsuse päev (Eesti)', '_hrc', 6, day(20), EventLevel.Day, [], null, null, y => y >= 2023),
|
new Event('Abieluvõrdsuse päev (Eesti)', '_hrc', 6, day(20), EventLevel.Day, [], null, null, y => y >= 2023),
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
const {Event, day, month, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel, Day} = require("../../../src/calendar/helpers");
|
const {Event, day, month, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel, weekStarting, Day} = require("../../../src/calendar/helpers");
|
const {Event, day, month, dayYear, EventLevel, Day} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel, weekStarting} = require("../../../src/calendar/helpers");
|
const {Event, day, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
const {Event, day, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- static date ---
|
// --- static date ---
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel, Day} = require("../../../src/calendar/helpers");
|
const {Event, day, month, EventLevel} = require("../../../src/calendar/helpers");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
// --- months ---
|
// --- months ---
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
const {Event, day, week, month, dayYear, EventLevel} = require("../../../src/calendar/helpers");
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
];
|
];
|
||||||
|
@ -45,8 +45,6 @@ const allVersionsUrls = buildList(function*() {
|
|||||||
});
|
});
|
||||||
process.env.ALL_LOCALES_URLS = allVersionsUrls.join(',');
|
process.env.ALL_LOCALES_URLS = allVersionsUrls.join(',');
|
||||||
|
|
||||||
const bodyParser = require('body-parser');
|
|
||||||
|
|
||||||
const buildFlags = () => {
|
const buildFlags = () => {
|
||||||
const flags = [];
|
const flags = [];
|
||||||
for (let flag of fs.readdirSync(__dirname + '/static/flags/')) {
|
for (let flag of fs.readdirSync(__dirname + '/static/flags/')) {
|
||||||
|
@ -5,7 +5,6 @@ const fs = require('fs');
|
|||||||
const dbConnection = require('./db');
|
const dbConnection = require('./db');
|
||||||
const Suml = require('suml');
|
const Suml = require('suml');
|
||||||
const { calendar } = require('../src/calendar/calendar');
|
const { calendar } = require('../src/calendar/calendar');
|
||||||
const md5 = require('js-md5');
|
|
||||||
|
|
||||||
const loadSuml = name => new Suml().parse(fs.readFileSync(`${__dirname}/../data/${name}.suml`).toString());
|
const loadSuml = name => new Suml().parse(fs.readFileSync(`${__dirname}/../data/${name}.suml`).toString());
|
||||||
const config = loadSuml('config');
|
const config = loadSuml('config');
|
||||||
|
@ -2,7 +2,6 @@ require('../src/dotenv')();
|
|||||||
|
|
||||||
const dbConnection = require('./db');
|
const dbConnection = require('./db');
|
||||||
const mailer = require('../src/mailer');
|
const mailer = require('../src/mailer');
|
||||||
const {archiveBan} = require("./ban");
|
|
||||||
|
|
||||||
const execute = process.env.EXECUTE === '1';
|
const execute = process.env.EXECUTE === '1';
|
||||||
console.log(execute ? 'WILL EXECUTE!' : 'Dry run');
|
console.log(execute ? 'WILL EXECUTE!' : 'Dry run');
|
||||||
|
@ -9,8 +9,6 @@ import {isGranted} from "../src/helpers";
|
|||||||
import buildLocaleList from "../src/buildLocaleList";
|
import buildLocaleList from "../src/buildLocaleList";
|
||||||
import cookieSettings from "../src/cookieSettings";
|
import cookieSettings from "../src/cookieSettings";
|
||||||
import SQL from "sql-template-strings";
|
import SQL from "sql-template-strings";
|
||||||
import csurf from 'csurf'
|
|
||||||
import csrfHandleError from "@privyid/nuxt-csrf/server-middleware/handle-error";
|
|
||||||
import formatError from '../src/error';
|
import formatError from '../src/error';
|
||||||
import session from 'express-session';
|
import session from 'express-session';
|
||||||
const MemoryStore = require('memorystore')(session);
|
const MemoryStore = require('memorystore')(session);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import SQL from 'sql-template-strings';
|
import SQL from 'sql-template-strings';
|
||||||
import {createCanvas, loadImage, registerFont} from "canvas";
|
import {createCanvas, loadImage} from "canvas";
|
||||||
import { loadSuml } from '../loader';
|
import { loadSuml } from '../loader';
|
||||||
import avatar from '../avatar';
|
import avatar from '../avatar';
|
||||||
import {buildPronoun, parsePronouns} from "../../src/buildPronoun";
|
import {buildPronoun, parsePronouns} from "../../src/buildPronoun";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import {handleErrorAsync, shuffle} from "../../src/helpers";
|
import { handleErrorAsync } from "../../src/helpers";
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { caches } from "../../src/cache";
|
import { caches } from "../../src/cache";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import SQL from 'sql-template-strings';
|
|||||||
import sha1 from 'sha1';
|
import sha1 from 'sha1';
|
||||||
import {ulid} from "ulid";
|
import {ulid} from "ulid";
|
||||||
import Papa from 'papaparse';
|
import Papa from 'papaparse';
|
||||||
import {groupBy, handleErrorAsync, ImmutableArray} from "../../src/helpers";
|
import {groupBy, handleErrorAsync} from "../../src/helpers";
|
||||||
import {intersection, difference} from "../../src/sets";
|
import {intersection, difference} from "../../src/sets";
|
||||||
import {buildChart} from "../../src/stats";
|
import {buildChart} from "../../src/stats";
|
||||||
import auditLog from '../audit';
|
import auditLog from '../audit';
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
// so for some services we don't care about grant :))))
|
// so for some services we don't care about grant :))))
|
||||||
|
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import SQL from 'sql-template-strings';
|
|
||||||
import fetch from 'node-fetch';
|
import fetch from 'node-fetch';
|
||||||
import assert from 'assert';
|
import assert from 'assert';
|
||||||
import { handleErrorAsync } from "../../src/helpers";
|
import { handleErrorAsync } from "../../src/helpers";
|
||||||
|
@ -2,7 +2,6 @@ import { Router } from 'express';
|
|||||||
import SQL from 'sql-template-strings';
|
import SQL from 'sql-template-strings';
|
||||||
import {ulid} from "ulid";
|
import {ulid} from "ulid";
|
||||||
import {findAdmins, handleErrorAsync} from "../../src/helpers";
|
import {findAdmins, handleErrorAsync} from "../../src/helpers";
|
||||||
import mailer from "../../src/mailer";
|
|
||||||
import {deduplicateEmailPreset} from "./user";
|
import {deduplicateEmailPreset} from "./user";
|
||||||
import auditLog from '../audit';
|
import auditLog from '../audit';
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ import {lookupBanArchive} from '../ban';
|
|||||||
import copyAvatar from '../avatarCopy';
|
import copyAvatar from '../avatarCopy';
|
||||||
import { usernameRegex, usernameUnsafeRegex } from '../../src/username';
|
import { usernameRegex, usernameUnsafeRegex } from '../../src/username';
|
||||||
const config = loadSuml('config');
|
const config = loadSuml('config');
|
||||||
const translations = loadSuml('translations');
|
|
||||||
import auditLog from '../audit';
|
import auditLog from '../audit';
|
||||||
|
|
||||||
export const normalise = s => s.trim().toLowerCase();
|
export const normalise = s => s.trim().toLowerCase();
|
||||||
|
@ -2,7 +2,6 @@ require('../src/dotenv')();
|
|||||||
|
|
||||||
const dbConnection = require('./db');
|
const dbConnection = require('./db');
|
||||||
const {calculateStats} = require('../src/stats');
|
const {calculateStats} = require('../src/stats');
|
||||||
const fs = require('fs');
|
|
||||||
const buildLocaleList = require('../src/buildLocaleList');
|
const buildLocaleList = require('../src/buildLocaleList');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {Source, Example, NounTemplate, PronounGroup, PronounLibrary, Name, Person, NounDeclension} from './classes'
|
import { Example, NounTemplate, PronounGroup, PronounLibrary, Person, NounDeclension } from './classes'
|
||||||
import { buildDict, buildList } from './helpers';
|
import { buildDict, buildList } from './helpers';
|
||||||
import { parsePronouns } from './buildPronoun';
|
import { parsePronouns } from './buildPronoun';
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
const nodemailer = require('nodemailer');
|
const nodemailer = require('nodemailer');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const Suml = require('suml');
|
const Suml = require('suml');
|
||||||
const forbidden = require('./forbidden');
|
|
||||||
|
|
||||||
const color = '#C71585';
|
const color = '#C71585';
|
||||||
const logo = fs.readFileSync(__dirname + '/../static/logo/logo-primary.svg').toString('utf-8');
|
const logo = fs.readFileSync(__dirname + '/../static/logo/logo-primary.svg').toString('utf-8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user