[TS] Typecheck skipping
This commit is contained in:
parent
4a6f20fa7b
commit
e1fe6c2f3b
30 changed files with 30 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import fig from "figlet";
|
import fig from "figlet";
|
||||||
import http from "http";
|
import http from "http";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import {
|
import {
|
||||||
createServerFolder,
|
createServerFolder,
|
||||||
getServerItem,
|
getServerItem,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import createServerResources from "../k8s/server-create.js";
|
import createServerResources from "../k8s/server-create.js";
|
||||||
import deleteServerResources from "../k8s/server-delete.js";
|
import deleteServerResources from "../k8s/server-delete.js";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { S3, GetObjectCommand } from "@aws-sdk/client-s3";
|
import { S3, GetObjectCommand } from "@aws-sdk/client-s3";
|
||||||
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
||||||
import { basename } from "node:path";
|
import { basename } from "node:path";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { getUserDeployments } from "../k8s/k8s-server-control.js";
|
import { getUserDeployments } from "../k8s/k8s-server-control.js";
|
||||||
import { getInstances } from "../k8s/server-status.js";
|
import { getInstances } from "../k8s/server-status.js";
|
||||||
import { sendError } from "../util/ExpressClientError.js";
|
import { sendError } from "../util/ExpressClientError.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import { Rcon as RconClient } from "rcon-client";
|
import { Rcon as RconClient } from "rcon-client";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
const buildPostgresEntry = (entry) => {
|
const buildPostgresEntry = (entry) => {
|
||||||
const pgEntry = { ...entry };
|
const pgEntry = { ...entry };
|
||||||
Object.keys(pgEntry).forEach((col) => {
|
Object.keys(pgEntry).forEach((col) => {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { URL } from "node:url";
|
import { URL } from "node:url";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import pg from "../postgres.js";
|
import pg from "../postgres.js";
|
||||||
import {
|
import {
|
||||||
deleteQuery,
|
deleteQuery,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
const MCL_KUBECONFIG = process.env.MCL_KUBECONFIG;
|
const MCL_KUBECONFIG = process.env.MCL_KUBECONFIG;
|
||||||
const envConfig = MCL_KUBECONFIG ? MCL_KUBECONFIG : null;
|
const envConfig = MCL_KUBECONFIG ? MCL_KUBECONFIG : null;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import yaml from "js-yaml";
|
import yaml from "js-yaml";
|
||||||
import { VERB, ERR } from "../util/logging.js";
|
import { VERB, ERR } from "../util/logging.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import yaml from "js-yaml";
|
import yaml from "js-yaml";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import bcrypt from "bcrypt";
|
import bcrypt from "bcrypt";
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import { ERR } from "../util/logging.js";
|
import { ERR } from "../util/logging.js";
|
||||||
import { getServerAssets } from "./k8s-server-control.js";
|
import { getServerAssets } from "./k8s-server-control.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import ftp from "basic-ftp";
|
import ftp from "basic-ftp";
|
||||||
import { ERR } from "../util/logging.js";
|
import { ERR } from "../util/logging.js";
|
||||||
import { getServerAssets } from "./k8s-server-control.js";
|
import { getServerAssets } from "./k8s-server-control.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import {
|
import {
|
||||||
createExtraService,
|
createExtraService,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import { getUserDeployments } from "./k8s-server-control.js";
|
import { getUserDeployments } from "./k8s-server-control.js";
|
||||||
import { getServerEntries } from "../database/queries/server-queries.js";
|
import { getServerEntries } from "../database/queries/server-queries.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
|
import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
export function logErrors(err, req, res, next) {
|
export function logErrors(err, req, res, next) {
|
||||||
console.error(err.stack);
|
console.error(err.stack);
|
||||||
next(err);
|
next(err);
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router, json as jsonMiddleware } from "express";
|
import { Router, json as jsonMiddleware } from "express";
|
||||||
import multer from "multer";
|
import multer from "multer";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import bearerTokenMiddleware from "express-bearer-token";
|
import bearerTokenMiddleware from "express-bearer-token";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import express, { Router } from "express";
|
import express, { Router } from "express";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router, json as jsonMiddleware } from "express";
|
import { Router, json as jsonMiddleware } from "express";
|
||||||
import { getS3BackupUrl, listS3Backups } from "../controllers/s3-controller.js";
|
import { getS3BackupUrl, listS3Backups } from "../controllers/s3-controller.js";
|
||||||
import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
|
import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router, json as jsonMiddleware } from "express";
|
import { Router, json as jsonMiddleware } from "express";
|
||||||
import {
|
import {
|
||||||
createServer,
|
createServer,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import k8s from "@kubernetes/client-node";
|
import k8s from "@kubernetes/client-node";
|
||||||
import { WARN } from "../util/logging.js";
|
import { WARN } from "../util/logging.js";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
const router = Router();
|
const router = Router();
|
||||||
// Get Routes
|
// Get Routes
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import express from "express";
|
import express from "express";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { Server as Skio } from "socket.io";
|
import { Server as Skio } from "socket.io";
|
||||||
import { VERB, WARN, ERR } from "../util/logging.js";
|
import { VERB, WARN, ERR } from "../util/logging.js";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
import { VERB } from "./logging.js";
|
import { VERB } from "./logging.js";
|
||||||
|
|
||||||
export default class ExpressClientError extends Error {
|
export default class ExpressClientError extends Error {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// @ts-nocheck
|
||||||
// Imports
|
// Imports
|
||||||
import { Chalk } from "chalk";
|
import { Chalk } from "chalk";
|
||||||
const { redBright, greenBright, yellowBright, cyanBright, magentaBright } =
|
const { redBright, greenBright, yellowBright, cyanBright, magentaBright } =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue