chore(lint): apply lint

This commit is contained in:
Mauricio Siu
2024-09-21 23:49:42 -06:00
parent 0465a71d86
commit f427014f52
11 changed files with 22 additions and 22 deletions

View File

@@ -49,6 +49,7 @@ import { scheduleJob, scheduledJobs } from "node-schedule";
import { z } from "zod";
import { appRouter } from "../root";
import { findAdmin, updateAdmin } from "../services/admin";
import { findServerById, updateServerById } from "../services/server";
import {
getDokployImage,
getDokployVersion,
@@ -57,7 +58,6 @@ import {
} from "../services/settings";
import { canAccessToTraefikFiles } from "../services/user";
import { adminProcedure, createTRPCRouter, protectedProcedure } from "../trpc";
import { findServerById, updateServerById } from "../services/server";
export const settingsRouter = createTRPCRouter({
reloadServer: adminProcedure.mutation(async () => {

View File

@@ -2,8 +2,8 @@ import { readdirSync } from "node:fs";
import { join } from "node:path";
import { docker } from "@/server/constants";
import { getServiceContainer } from "@/server/utils/docker/utils";
import packageInfo from "../../../package.json";
import { execAsyncRemote } from "@/server/utils/process/execAsync";
import packageInfo from "../../../package.json";
const updateIsAvailable = async () => {
try {

View File

@@ -4,9 +4,9 @@ import type { ContainerTaskSpec, CreateServiceOptions } from "dockerode";
import { dump } from "js-yaml";
import { paths } from "../constants";
import { pullImage, pullRemoteImage } from "../utils/docker/utils";
import { getRemoteDocker } from "../utils/servers/remote-docker";
import type { FileConfig } from "../utils/traefik/file-types";
import type { MainTraefikConfig } from "../utils/traefik/types";
import { getRemoteDocker } from "../utils/servers/remote-docker";
const TRAEFIK_SSL_PORT =
Number.parseInt(process.env.TRAEFIK_SSL_PORT ?? "", 10) || 443;

View File

@@ -1,4 +1,5 @@
import { findAdmin } from "@/server/api/services/admin";
import { getAllServers } from "@/server/api/services/server";
import { scheduleJob } from "node-schedule";
import { db } from "../../db/index";
import {
@@ -10,7 +11,6 @@ import { runMariadbBackup } from "./mariadb";
import { runMongoBackup } from "./mongo";
import { runMySqlBackup } from "./mysql";
import { runPostgresBackup } from "./postgres";
import { getAllServers } from "@/server/api/services/server";
export const initCronJobs = async () => {
console.log("Setting up cron jobs....");

View File

@@ -3,9 +3,9 @@ import path from "node:path";
import type { Domain } from "@/server/api/services/domain";
import { paths } from "@/server/constants";
import { dump, load } from "js-yaml";
import { encodeBase64 } from "../docker/utils";
import { execAsyncRemote } from "../process/execAsync";
import type { FileConfig, HttpLoadBalancerService } from "./file-types";
import { encodeBase64 } from "../docker/utils";
export const createTraefikConfig = (appName: string) => {
const defaultPort = 3000;

View File

@@ -1,11 +1,11 @@
import type http from "node:http";
import { spawn } from "node-pty";
import { WebSocketServer } from "ws";
import { validateWebSocketRequest } from "../auth/auth";
import { getShell } from "./utils";
import { Client } from "ssh2";
import { readSSHKey } from "../utils/filesystem/ssh";
import { WebSocketServer } from "ws";
import { findServerById } from "../api/services/server";
import { validateWebSocketRequest } from "../auth/auth";
import { readSSHKey } from "../utils/filesystem/ssh";
import { getShell } from "./utils";
export const setupDockerContainerTerminalWebSocketServer = (
server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>,