From 5cbdc8fad98fe8437d097475d5c987315e84eaa6 Mon Sep 17 00:00:00 2001 From: DrMxrcy Date: Tue, 19 Nov 2024 11:56:23 -0500 Subject: [PATCH] Fix: Linting issues --- apps/dokploy/templates/chatwoot/index.ts | 78 ++++++++++++------------ apps/dokploy/templates/templates.ts | 3 +- 2 files changed, 41 insertions(+), 40 deletions(-) diff --git a/apps/dokploy/templates/chatwoot/index.ts b/apps/dokploy/templates/chatwoot/index.ts index dfd751d4..d6abe6e7 100644 --- a/apps/dokploy/templates/chatwoot/index.ts +++ b/apps/dokploy/templates/chatwoot/index.ts @@ -1,46 +1,46 @@ import { - type DomainSchema, - type Schema, - type Template, - generateBase64, - generatePassword, - generateRandomDomain, + type DomainSchema, + type Schema, + type Template, + generateBase64, + generatePassword, + generateRandomDomain, } from "../utils"; export function generate(schema: Schema): Template { - const mainDomain = generateRandomDomain(schema); - const secretKeyBase = generateBase64(64); - const postgresPassword = generatePassword(); + const mainDomain = generateRandomDomain(schema); + const secretKeyBase = generateBase64(64); + const postgresPassword = generatePassword(); - const domains: DomainSchema[] = [ - { - host: mainDomain, - port: 3000, - serviceName: "chatwoot-rails", - }, - ]; + const domains: DomainSchema[] = [ + { + host: mainDomain, + port: 3000, + serviceName: "chatwoot-rails", + }, + ]; - const envs = [ - `FRONTEND_URL=http://${mainDomain}`, - `SECRET_KEY_BASE=${secretKeyBase}`, - `RAILS_ENV=production`, - `NODE_ENV=production`, - `INSTALLATION_ENV=docker`, - `RAILS_LOG_TO_STDOUT=true`, - `LOG_LEVEL=info`, - `DEFAULT_LOCALE=en`, - `POSTGRES_HOST=chatwoot-postgres`, - `POSTGRES_PORT=5432`, - `POSTGRES_DATABASE=chatwoot`, - `POSTGRES_USERNAME=postgres`, - `POSTGRES_PASSWORD=${postgresPassword}`, - `REDIS_URL=redis://chatwoot-redis:6379`, - `ENABLE_ACCOUNT_SIGNUP=false`, - `ACTIVE_STORAGE_SERVICE=local`, - ]; + const envs = [ + `FRONTEND_URL=http://${mainDomain}`, + `SECRET_KEY_BASE=${secretKeyBase}`, + "RAILS_ENV=production", + "NODE_ENV=production", + "INSTALLATION_ENV=docker", + "RAILS_LOG_TO_STDOUT=true", + "LOG_LEVEL=info", + "DEFAULT_LOCALE=en", + "POSTGRES_HOST=chatwoot-postgres", + "POSTGRES_PORT=5432", + "POSTGRES_DATABASE=chatwoot", + "POSTGRES_USERNAME=postgres", + `POSTGRES_PASSWORD=${postgresPassword}`, + "REDIS_URL=redis://chatwoot-redis:6379", + "ENABLE_ACCOUNT_SIGNUP=false", + "ACTIVE_STORAGE_SERVICE=local", + ]; - return { - domains, - envs, - }; -} \ No newline at end of file + return { + domains, + envs, + }; +} diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index bc496c27..ec3b0354 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -841,7 +841,8 @@ export const templates: TemplateData[] = [ id: "chatwoot", name: "Chatwoot", version: "v3.14.1", - description: "Open-source customer engagement platform that provides a shared inbox for teams, live chat, and omnichannel support.", + description: + "Open-source customer engagement platform that provides a shared inbox for teams, live chat, and omnichannel support.", logo: "chatwoot.svg", links: { github: "https://github.com/chatwoot/chatwoot",