From 1a7c602861237c929e739c11f6e484b42f4818e2 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 30 Jun 2024 00:28:53 +0000 Subject: [PATCH 01/24] feat: add documenso as template --- public/templates/documenso.png | Bin 0 -> 8200 bytes templates/documenso/docker-compose.yml | 53 +++++++++++++++++++++++++ templates/documenso/index.ts | 29 ++++++++++++++ templates/templates.ts | 18 ++++++++- 4 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 public/templates/documenso.png create mode 100644 templates/documenso/docker-compose.yml create mode 100644 templates/documenso/index.ts diff --git a/public/templates/documenso.png b/public/templates/documenso.png new file mode 100644 index 0000000000000000000000000000000000000000..cb4765fcf145b088ec3ad7b1ffe0e16e9db04c4a GIT binary patch literal 8200 zcmV+jAot&iP)a52tu{8^4}@eTRrh zBVOD_e;eD|`0X}6P7M1VuTS6e1tKB|b+@s{C+R&FmRP?>L}X^xBHP@?NNm!(FYIUb zh=^2nPJGd=JtaaBNyWOKmUQM$d`g5OQjN{t?#Y+@+{}>ZuZ1?H#Uff zOkl0Pk+u@wWsImbC?e1B586t0Y7L6WWQ8`y`koql)EX3#M|9*^+7cDx=@>;s{$N8} z$!tn&5E0=x%e$qm1m+R1(X+)Ot5#@xmUn85Xk1Wam28R2lE?d=k_5j+L{{U5wvtqh zc!{jeUy!xg+{VB>4!7}^<7THHPQN!c7FTZLZyZ}=g?S9O@e?AlNIz4*Wo6y$fu|)k zOMYO{5)^4tp1WqUf?6vm z(tuhEob6|1cspB9on&vvt0X9rm?fkd$uHXkL7`p})GIkf61pKi0a(n{<-JC&F7XW_ zl7>~t8Wq2V$HfMe1VvV3Lwseou3twxI_h+ZH;Bk=tO7hkMy z&%Z4^?5m6aAH5FE_QM-krh)h*^@ihKhwuO7-+eg6L%%;f@aN)43GnI4MOZ@mn$H`0 zzPJ;uS#t6_8)&noc20zc)9(+b-~WF4`uzKM$kmhp?`O&D+f!JAE6lr7aSdxoerG+$ zH{mVS;S`n(-=BW9P)kz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dZH^h@46#Eqy&`fl z&{hJQ5(6S4cXTYfOZ*#cZR{!{l@*Q)fm=yx*Tx==_ld}r2HHw+kHt$wM4qV7c9(cW zOI$=`qJg#&-^bHu)-11xxG2=!Rpz;|N3A{)3DT3ZTWp_6@9PkeDtdAxLR;E0pzf}S z%%EqUL})*AK#5O860q*)j`-Hz9xY}Tk)*6e)^mKm*keOe`ySiV_f%_7Txmm8iT3S9 u*oLPsPEqdsyTj>M+c5S0>DP0Jg!n%l&RCy~n1qS|0000 import("./calcom/index").then((m) => m.generate), }, + { + id: "documenso", + name: "Documenso", + version: "v1.5.6", + description: + "Documenso is the open source alternative to DocuSign for signing documents digitally", + + links: { + github: "https://github.com/documenso/documenso", + website: "https://documenso.com/", + docs: "https://documenso.com/docs", + }, + logo: "documenso.png", + tags: ["document-signing"], + load: () => import("./documenso/index").then((m) => m.generate), + }, ]; From 0eb7b3ecb179bbbb5ea9c87ef7d817abd7b4d4ca Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 30 Jun 2024 00:30:53 +0000 Subject: [PATCH 02/24] chore: remove obselete version --- templates/calcom/docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/calcom/docker-compose.yml b/templates/calcom/docker-compose.yml index cd77521cd..39216d70c 100644 --- a/templates/calcom/docker-compose.yml +++ b/templates/calcom/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.8' services: postgres: image: postgres:16-alpine From f37f98aadea4d8cc3e7490e0aec6c546caa72be4 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 30 Jun 2024 00:33:49 +0000 Subject: [PATCH 03/24] fix: avoid using defined secrets in calcom template --- templates/calcom/docker-compose.yml | 4 ++-- templates/calcom/index.ts | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/calcom/docker-compose.yml b/templates/calcom/docker-compose.yml index cd77521cd..73439fbef 100644 --- a/templates/calcom/docker-compose.yml +++ b/templates/calcom/docker-compose.yml @@ -17,8 +17,8 @@ services: depends_on: - postgres environment: - - NEXTAUTH_SECRET=asklmdaklsmdklasmdklasd - - CALENDSO_ENCRYPTION_KEY=asklmdaklsmdklasmdklasd + - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} + - CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} - DATABASE_URL=postgres://postgres:password@postgres:5432/db - NEXT_PUBLIC_WEBAPP_URL=http://${CALCOM_HOST} - NEXTAUTH_URL=http://${CALCOM_HOST}/api/auth diff --git a/templates/calcom/index.ts b/templates/calcom/index.ts index 344394326..5dffd20c6 100644 --- a/templates/calcom/index.ts +++ b/templates/calcom/index.ts @@ -3,16 +3,22 @@ import { generateRandomDomain, type Template, type Schema, + generateBase64, } from "../utils"; // https://cal.com/ export function generate(schema: Schema): Template { const mainServiceHash = generateHash(schema.projectName); const randomDomain = generateRandomDomain(schema); + const calcomEncryptionKey = generateBase64(32); + const nextAuthSecret = generateBase64(32); + const envs = [ `CALCOM_HOST=${randomDomain}`, "CALCOM_PORT=3000", `HASH=${mainServiceHash}`, + `NEXTAUTH_SECRET=${nextAuthSecret}`, + `CALCOM_ENCRYPTION_KEY=${calcomEncryptionKey}`, ]; return { From 1a496e35c0b5508afc0f1f00acd92f4fd122b40d Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 30 Jun 2024 00:37:10 +0000 Subject: [PATCH 04/24] fix: avoid black background on light theme --- components/dashboard/project/add-template.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dashboard/project/add-template.tsx b/components/dashboard/project/add-template.tsx index b51e8b0d7..9e0fc0857 100644 --- a/components/dashboard/project/add-template.tsx +++ b/components/dashboard/project/add-template.tsx @@ -54,7 +54,7 @@ export const AddTemplate = ({ projectId }: Props) => { -
+
Create Template From 60521c10257d391ca13c8c1bc2c05de0aa7b8cd3 Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 30 Jun 2024 00:49:19 +0000 Subject: [PATCH 05/24] chore: remove row selection count because row selection has been disabled --- components/dashboard/docker/show/show-containers.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/dashboard/docker/show/show-containers.tsx b/components/dashboard/docker/show/show-containers.tsx index e391e60a6..e8531de56 100644 --- a/components/dashboard/docker/show/show-containers.tsx +++ b/components/dashboard/docker/show/show-containers.tsx @@ -161,10 +161,6 @@ export const ShowContainers = () => {
-
- {table.getFilteredSelectedRowModel().rows.length} of{" "} - {table.getFilteredRowModel().rows.length} row(s) selected. -