From 93844928a8bd4b780ea17d41e9d7c30dab4e2883 Mon Sep 17 00:00:00 2001 From: codewithkamal Date: Sun, 27 Oct 2024 14:28:11 +0530 Subject: [PATCH] chore: lint fixes --- apps/dokploy/templates/templates.ts | 4 +- apps/dokploy/templates/tolgee/index.ts | 72 +++++++++++++------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index 8f8f524b..5ecdabd7 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -512,7 +512,7 @@ export const templates: TemplateData[] = [ tags: ["self-hosted", "email", "webmail"], load: () => import("./roundcube/index").then((m) => m.generate), }, - { + { id: "tolgee", name: "Tolgee", version: "v3.80.4", @@ -526,7 +526,7 @@ export const templates: TemplateData[] = [ }, tags: ["self-hosted", "i18n", "localization", "translations"], load: () => import("./tolgee/index").then((m) => m.generate), - }, + }, { id: "portainer", name: "Portainer", diff --git a/apps/dokploy/templates/tolgee/index.ts b/apps/dokploy/templates/tolgee/index.ts index a919e5a4..7fce3f55 100644 --- a/apps/dokploy/templates/tolgee/index.ts +++ b/apps/dokploy/templates/tolgee/index.ts @@ -1,41 +1,41 @@ import { - type Template, - type Schema, - type DomainSchema, - generateBase64, - generateRandomDomain, - } from "../utils"; + type DomainSchema, + type Schema, + type Template, + generateBase64, + generateRandomDomain, +} from "../utils"; - export function generate(schema: Schema): Template { - const mainDomain = generateRandomDomain(schema); - const jwtSecret = generateBase64(32); +export function generate(schema: Schema): Template { + const mainDomain = generateRandomDomain(schema); + const jwtSecret = generateBase64(32); - const domains: DomainSchema[] = [ - { - host: mainDomain, - port: 8080, - serviceName: "app", - }, - ]; + const domains: DomainSchema[] = [ + { + host: mainDomain, + port: 8080, + serviceName: "app", + }, + ]; - const envs = [ - `TOLGEE_HOST=${mainDomain}`, - "TOLGEE_AUTHENTICATION_ENABLED=true", - "TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin", - "TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin", - `TOLGEE_AUTHENTICATION_JWT_SECRET=${jwtSecret}`, - "TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key", - "TOLGEE_SMTP_AUTH=true", - "TOLGEE_SMTP_FROM=Tolgee ", - "TOLGEE_SMTPHOST=email-smtp.regional-region.amazonaws.com", - "TOLGEE_SMTP_PASSWORD=omg/my/password", - "TOLGEE_SMTP_PORT=465", - "TOLGEE_SMTP_SSL_ENABLED=true", - "TOLGEE_SMTP_USERNAME=user@company.com", - ]; + const envs = [ + `TOLGEE_HOST=${mainDomain}`, + "TOLGEE_AUTHENTICATION_ENABLED=true", + "TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin", + "TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin", + `TOLGEE_AUTHENTICATION_JWT_SECRET=${jwtSecret}`, + "TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key", + "TOLGEE_SMTP_AUTH=true", + "TOLGEE_SMTP_FROM=Tolgee ", + "TOLGEE_SMTPHOST=email-smtp.regional-region.amazonaws.com", + "TOLGEE_SMTP_PASSWORD=omg/my/password", + "TOLGEE_SMTP_PORT=465", + "TOLGEE_SMTP_SSL_ENABLED=true", + "TOLGEE_SMTP_USERNAME=user@company.com", + ]; - return { - envs, - domains, - }; - } + return { + envs, + domains, + }; +}