refactor(linter): format files

This commit is contained in:
Mauricio Siu
2024-09-19 22:25:25 -06:00
parent 4845c1ad5d
commit 9a828d4966
15 changed files with 128 additions and 47 deletions

View File

@@ -48,9 +48,9 @@ import { removeDeploymentsByComposeId } from "../services/deployment";
import { createDomain, findDomainsByComposeId } from "../services/domain";
import { createMount } from "../services/mount";
import { findProjectById } from "../services/project";
import { findServerById } from "../services/server";
import { addNewService, checkServiceAccess } from "../services/user";
import { createTRPCRouter, protectedProcedure } from "../trpc";
import { findServerById } from "../services/server";
export const composeRouter = createTRPCRouter({
create: protectedProcedure

View File

@@ -10,6 +10,7 @@ import {
apiRemoveDestination,
apiUpdateDestination,
} from "@/server/db/schema";
import { execAsync } from "@/server/utils/process/execAsync";
import { TRPCError } from "@trpc/server";
import { findAdmin } from "../services/admin";
import {
@@ -18,7 +19,6 @@ import {
removeDestinationById,
updateDestinationById,
} from "../services/destination";
import { execAsync } from "@/server/utils/process/execAsync";
export const destinationRouter = createTRPCRouter({
create: adminProcedure

View File

@@ -1,3 +1,4 @@
import { paths } from "@/server/constants";
import {
apiAssignDomain,
apiEnableDashboard,
@@ -53,7 +54,6 @@ import {
} from "../services/settings";
import { canAccessToTraefikFiles } from "../services/user";
import { adminProcedure, createTRPCRouter, protectedProcedure } from "../trpc";
import { paths } from "@/server/constants";
export const settingsRouter = createTRPCRouter({
reloadServer: adminProcedure.mutation(async () => {

View File

@@ -1,6 +1,6 @@
import type { CreateServiceOptions } from "dockerode";
import { generateRandomPassword } from "../auth/random-password";
import { paths, docker } from "../constants";
import { docker, paths } from "../constants";
import { pullImage } from "../utils/docker/utils";
import { execAsync } from "../utils/process/execAsync";

View File

@@ -2,9 +2,9 @@ import type { BackupSchedule } from "@/server/api/services/backup";
import type { Destination } from "@/server/api/services/destination";
import { scheduleJob, scheduledJobs } from "node-schedule";
import { runMariadbBackup } from "./mariadb";
import { runMongoBackup } from "./mongo";
import { runMySqlBackup } from "./mysql";
import { runPostgresBackup } from "./postgres";
import { runMongoBackup } from "./mongo";
export const scheduleBackup = (backup: BackupSchedule) => {
const { schedule, backupId, databaseType, postgres, mysql, mongo, mariadb } =

View File

@@ -1,3 +1,4 @@
import type { InferResultType } from "@/server/types/with";
import type { CreateServiceOptions } from "dockerode";
import {
calculateResources,
@@ -7,7 +8,6 @@ import {
prepareEnvironmentVariables,
} from "../docker/utils";
import { getRemoteDocker } from "../servers/remote-docker";
import type { InferResultType } from "@/server/types/with";
export type MariadbNested = InferResultType<"mariadb", { mounts: true }>;
export const buildMariadb = async (mariadb: MariadbNested) => {

View File

@@ -1,3 +1,4 @@
import type { InferResultType } from "@/server/types/with";
import type { CreateServiceOptions } from "dockerode";
import {
calculateResources,
@@ -7,7 +8,6 @@ import {
prepareEnvironmentVariables,
} from "../docker/utils";
import { getRemoteDocker } from "../servers/remote-docker";
import type { InferResultType } from "@/server/types/with";
export type MongoNested = InferResultType<"mongo", { mounts: true }>;

View File

@@ -1,3 +1,4 @@
import type { InferResultType } from "@/server/types/with";
import type { CreateServiceOptions } from "dockerode";
import {
calculateResources,
@@ -7,7 +8,6 @@ import {
prepareEnvironmentVariables,
} from "../docker/utils";
import { getRemoteDocker } from "../servers/remote-docker";
import type { InferResultType } from "@/server/types/with";
export type MysqlNested = InferResultType<"mysql", { mounts: true }>;

View File

@@ -1,3 +1,4 @@
import type { InferResultType } from "@/server/types/with";
import type { CreateServiceOptions } from "dockerode";
import {
calculateResources,
@@ -7,7 +8,6 @@ import {
prepareEnvironmentVariables,
} from "../docker/utils";
import { getRemoteDocker } from "../servers/remote-docker";
import type { InferResultType } from "@/server/types/with";
export type PostgresNested = InferResultType<"postgres", { mounts: true }>;
export const buildPostgres = async (postgres: PostgresNested) => {

View File

@@ -1,3 +1,4 @@
import type { InferResultType } from "@/server/types/with";
import type { CreateServiceOptions } from "dockerode";
import {
calculateResources,
@@ -7,7 +8,6 @@ import {
prepareEnvironmentVariables,
} from "../docker/utils";
import { getRemoteDocker } from "../servers/remote-docker";
import type { InferResultType } from "@/server/types/with";
export type RedisNested = InferResultType<"redis", { mounts: true }>;
export const buildRedis = async (redis: RedisNested) => {

View File

@@ -5,13 +5,13 @@ import { docker, paths } from "@/server/constants";
import type { ContainerInfo, ResourceRequirements } from "dockerode";
import { parse } from "dotenv";
import type { ApplicationNested } from "../builders";
import { execAsync, execAsyncRemote } from "../process/execAsync";
import { getRemoteDocker } from "../servers/remote-docker";
import type { MongoNested } from "../databases/mongo";
import type { MariadbNested } from "../databases/mariadb";
import type { MongoNested } from "../databases/mongo";
import type { MysqlNested } from "../databases/mysql";
import type { PostgresNested } from "../databases/postgres";
import type { RedisNested } from "../databases/redis";
import { execAsync, execAsyncRemote } from "../process/execAsync";
import { getRemoteDocker } from "../servers/remote-docker";
interface RegistryAuth {
username: string;