An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
remove trpc
Andras Bacsai4375a807df58
diff --git a/apps/api/db/dev.db.bak b/apps/api/db/dev.db.bakdeleted file mode 100644index 2a6385b110..0000000000Binary files a/apps/api/db/dev.db.bak and /dev/null differdiff --git a/apps/trpc-experimental/client/.eslintignore b/apps/trpc-experimental/client/.eslintignoredeleted file mode 100644index 38972655fa..0000000000--- a/apps/trpc-experimental/client/.eslintignore+++ /dev/null@@ -1,13 +0,0 @@-.DS_Store-node_modules-/build-/.svelte-kit-/package-.env-.env.*-!.env.example--# Ignore files for PNPM, NPM and YARN-pnpm-lock.yaml-package-lock.json-yarn.lockdiff --git a/apps/trpc-experimental/client/.eslintrc.cjs b/apps/trpc-experimental/client/.eslintrc.cjsdeleted file mode 100644index 3ccf435f02..0000000000--- a/apps/trpc-experimental/client/.eslintrc.cjs+++ /dev/null@@ -1,20 +0,0 @@-module.exports = {- root: true,- parser: '@typescript-eslint/parser',- extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],- plugins: ['svelte3', '@typescript-eslint'],- ignorePatterns: ['*.cjs'],- overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],- settings: {- 'svelte3/typescript': () => require('typescript')- },- parserOptions: {- sourceType: 'module',- ecmaVersion: 2020- },- env: {- browser: true,- es2017: true,- node: true- }-};diff --git a/apps/trpc-experimental/client/.gitignore b/apps/trpc-experimental/client/.gitignoredeleted file mode 100644index 6635cf5542..0000000000--- a/apps/trpc-experimental/client/.gitignore+++ /dev/null@@ -1,10 +0,0 @@-.DS_Store-node_modules-/build-/.svelte-kit-/package-.env-.env.*-!.env.example-vite.config.js.timestamp-*-vite.config.ts.timestamp-*diff --git a/apps/trpc-experimental/client/.npmrc b/apps/trpc-experimental/client/.npmrcdeleted file mode 100644index b6f27f1359..0000000000--- a/apps/trpc-experimental/client/.npmrc+++ /dev/null@@ -1 +0,0 @@-engine-strict=truediff --git a/apps/trpc-experimental/client/.prettierignore b/apps/trpc-experimental/client/.prettierignoredeleted file mode 100644index 38972655fa..0000000000--- a/apps/trpc-experimental/client/.prettierignore+++ /dev/null@@ -1,13 +0,0 @@-.DS_Store-node_modules-/build-/.svelte-kit-/package-.env-.env.*-!.env.example--# Ignore files for PNPM, NPM and YARN-pnpm-lock.yaml-package-lock.json-yarn.lockdiff --git a/apps/trpc-experimental/client/.prettierrc b/apps/trpc-experimental/client/.prettierrcdeleted file mode 100644index a77fddea90..0000000000--- a/apps/trpc-experimental/client/.prettierrc+++ /dev/null@@ -1,9 +0,0 @@-{- "useTabs": true,- "singleQuote": true,- "trailingComma": "none",- "printWidth": 100,- "plugins": ["prettier-plugin-svelte"],- "pluginSearchDirs": ["."],- "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]-}diff --git a/apps/trpc-experimental/client/README.md b/apps/trpc-experimental/client/README.mddeleted file mode 100644index d7fe004d97..0000000000--- a/apps/trpc-experimental/client/README.md+++ /dev/null@@ -1 +0,0 @@-# SvelteKit Static sitediff --git a/apps/trpc-experimental/client/package.json b/apps/trpc-experimental/client/package.jsondeleted file mode 100644index 4704b174ad..0000000000--- a/apps/trpc-experimental/client/package.json+++ /dev/null@@ -1,54 +0,0 @@-{- "name": "client",- "description": "Coolify's SvelteKit UI",- "license": "Apache-2.0",- "private": true,- "scripts": {- "dev": "vite dev",- "build": "vite build && cp -Pr build/ ../../build/public",- "preview": "vite preview",- "test": "playwright test",- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",- "lint": "prettier --plugin-search-dir . --check . && eslint .",- "format": "prettier --plugin-search-dir . --write ."- },- "devDependencies": {- "@playwright/test": "1.28.1",- "@sveltejs/adapter-static": "1.0.0-next.48",- "@sveltejs/kit": "1.0.0-next.572",- "@types/js-cookie": "3.0.2",- "@typescript-eslint/eslint-plugin": "5.44.0",- "@typescript-eslint/parser": "5.44.0",- "autoprefixer": "10.4.13",- "eslint": "8.28.0",- "eslint-config-prettier": "8.5.0",- "eslint-plugin-svelte3": "4.0.0",- "postcss": "8.4.19",- "postcss-load-config": "4.0.1",- "prettier": "2.8.0",- "prettier-plugin-svelte": "2.8.1",- "svelte": "3.53.1",- "svelte-check": "2.9.2",- "svelte-preprocess": "^4.10.7",- "tailwindcss": "3.2.4",- "tslib": "2.4.1",- "typescript": "4.9.3",- "vite": "3.2.4"- },- "type": "module",- "dependencies": {- "@trpc/client": "10.1.0",- "@trpc/server": "10.1.0",- "cuid": "2.1.8",- "daisyui": "2.41.0",- "dayjs": "1.11.6",- "flowbite-svelte": "0.28.0",- "js-cookie": "3.0.1",- "js-yaml": "4.1.0",- "p-limit": "4.0.0",- "server": "workspace:*",- "superjson": "1.11.0",- "svelte-select": "4.4.7"- }-}diff --git a/apps/trpc-experimental/client/playwright.config.ts b/apps/trpc-experimental/client/playwright.config.tsdeleted file mode 100644index 6ad3a7faa2..0000000000--- a/apps/trpc-experimental/client/playwright.config.ts+++ /dev/null@@ -1,10 +0,0 @@-import type { PlaywrightTestConfig } from '@playwright/test';--const config: PlaywrightTestConfig = {- webServer: {- command: 'npm run build && npm run preview',- port: 4173- }-};--export default config;diff --git a/apps/trpc-experimental/client/pnpm-lock.yaml b/apps/trpc-experimental/client/pnpm-lock.yamldeleted file mode 100644index f9b8429e86..0000000000--- a/apps/trpc-experimental/client/pnpm-lock.yaml+++ /dev/null@@ -1,1793 +0,0 @@-lockfileVersion: 5.4--specifiers:- '@playwright/test': 1.25.0- '@sveltejs/adapter-auto': next- '@sveltejs/kit': next- '@trpc/client': ^10.1.0- '@typescript-eslint/eslint-plugin': ^5.27.0- '@typescript-eslint/parser': ^5.27.0- eslint: ^8.16.0- eslint-config-prettier: ^8.3.0- eslint-plugin-svelte3: ^4.0.0- prettier: ^2.6.2- prettier-plugin-svelte: ^2.7.0- svelte: ^3.44.0- svelte-check: ^2.7.1- svelte-preprocess: ^4.10.6- tslib: ^2.3.1- typescript: ^4.7.4- vite: ^3.1.0--dependencies:- '@trpc/client': 10.1.0--devDependencies:- '@playwright/test': 1.25.0- '@sveltejs/adapter-auto': 1.0.0-next.89- '@sveltejs/kit': [email protected][email protected]- '@typescript-eslint/eslint-plugin': 5.44.0_fnsv2sbzcckq65bwfk7a5xwslu- '@typescript-eslint/parser': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- eslint: 8.28.0- eslint-config-prettier: [email protected]- eslint-plugin-svelte3: 4.0.0_xgu65rlhscpnxffotiaicv6m5i- prettier: 2.8.0- prettier-plugin-svelte: 2.8.1_3ndnxlh52lolrqe4kgjgbxb3xa- svelte: 3.53.1- svelte-check: [email protected]- svelte-preprocess: 4.10.7_7dvewpees4iyn2tkw2qzal77a4- tslib: 2.4.1- typescript: 4.9.3- vite: 3.2.4--packages:-- /@esbuild/android-arm/0.15.15:- resolution: {integrity: sha512-JJjZjJi2eBL01QJuWjfCdZxcIgot+VoK6Fq7eKF9w4YHm9hwl7nhBR1o2Wnt/WcANk5l9SkpvrldW1PLuXxcbw==}- engines: {node: '>=12'}- cpu: [arm]- os: [android]- requiresBuild: true- dev: true- optional: true-- /@esbuild/linux-loong64/0.15.15:- resolution: {integrity: sha512-lhz6UNPMDXUhtXSulw8XlFAtSYO26WmHQnCi2Lg2p+/TMiJKNLtZCYUxV4wG6rZMzXmr8InGpNwk+DLT2Hm0PA==}- engines: {node: '>=12'}- cpu: [loong64]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /@eslint/eslintrc/1.3.3:- resolution: {integrity: sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- ajv: 6.12.6- debug: 4.3.4- espree: 9.4.1- globals: 13.18.0- ignore: 5.2.0- import-fresh: 3.3.0- js-yaml: 4.1.0- minimatch: 3.1.2- strip-json-comments: 3.1.1- transitivePeerDependencies:- - supports-color- dev: true-- /@humanwhocodes/config-array/0.11.7:- resolution: {integrity: sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==}- engines: {node: '>=10.10.0'}- dependencies:- '@humanwhocodes/object-schema': 1.2.1- debug: 4.3.4- minimatch: 3.1.2- transitivePeerDependencies:- - supports-color- dev: true-- /@humanwhocodes/module-importer/1.0.1:- resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}- engines: {node: '>=12.22'}- dev: true-- /@humanwhocodes/object-schema/1.2.1:- resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}- dev: true-- /@jridgewell/resolve-uri/3.1.0:- resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==}- engines: {node: '>=6.0.0'}- dev: true-- /@jridgewell/sourcemap-codec/1.4.14:- resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}- dev: true-- /@jridgewell/trace-mapping/0.3.17:- resolution: {integrity: sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==}- dependencies:- '@jridgewell/resolve-uri': 3.1.0- '@jridgewell/sourcemap-codec': 1.4.14- dev: true-- /@nodelib/fs.scandir/2.1.5:- resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}- engines: {node: '>= 8'}- dependencies:- '@nodelib/fs.stat': 2.0.5- run-parallel: 1.2.0- dev: true-- /@nodelib/fs.stat/2.0.5:- resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}- engines: {node: '>= 8'}- dev: true-- /@nodelib/fs.walk/1.2.8:- resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}- engines: {node: '>= 8'}- dependencies:- '@nodelib/fs.scandir': 2.1.5- fastq: 1.13.0- dev: true-- /@playwright/test/1.25.0:- resolution: {integrity: sha512-j4EZhTTQI3dBeWblE21EV//swwmBtOpIrLdOIJIRv4uqsLdHgBg1z+JtTg+AeC5o2bAXIE26kDNW5A0TimG8Bg==}- engines: {node: '>=14'}- hasBin: true- dependencies:- '@types/node': 18.11.9- playwright-core: 1.25.0- dev: true-- /@polka/url/1.0.0-next.21:- resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}- dev: true-- /@sveltejs/adapter-auto/1.0.0-next.89:- resolution: {integrity: sha512-S+sASFX4sSZD1xEKmZ3zHxQh2DGxXBUpCGAtUakKkI2MRvFIm+zYIm+7GPekofMLd19FjdFDKkuOjBKPdmA8+w==}- dependencies:- import-meta-resolve: 2.2.0- dev: true-- /@sveltejs/kit/[email protected][email protected]:- resolution: {integrity: sha512-ldZJyd+jfQWVkOkRHq25cXMffhL5MgB1Uzhhw1ngF8ezB38P/g4T+5ohP8wuk2lxPJIjbY3S6BeXN5mod9XOhA==}- engines: {node: '>=16.14'}- hasBin: true- requiresBuild: true- peerDependencies:- svelte: ^3.44.0- vite: ^3.2.0- dependencies:- '@sveltejs/vite-plugin-svelte': [email protected][email protected]- '@types/cookie': 0.5.1- cookie: 0.5.0- devalue: 4.2.0- kleur: 4.1.5- magic-string: 0.26.7- mime: 3.0.0- sade: 1.8.1- set-cookie-parser: 2.5.1- sirv: 2.0.2- svelte: 3.53.1- tiny-glob: 0.2.9- undici: 5.12.0- vite: 3.2.4- transitivePeerDependencies:- - diff-match-patch- - supports-color- dev: true-- /@sveltejs/vite-plugin-svelte/[email protected][email protected]:- resolution: {integrity: sha512-2Uu2sDdIR+XQWF7QWOVSF2jR9EU6Ciw1yWfYnfLYj8HIgnNxkh/8g22Fw2pBUI8QNyW/KxtqJUWBI+8ypamSrQ==}- engines: {node: ^14.18.0 || >= 16}- peerDependencies:- diff-match-patch: ^1.0.5- svelte: ^3.44.0- vite: ^3.0.0- peerDependenciesMeta:- diff-match-patch:- optional: true- dependencies:- debug: 4.3.4- deepmerge: 4.2.2- kleur: 4.1.5- magic-string: 0.26.7- svelte: 3.53.1- svelte-hmr: [email protected]- vite: 3.2.4- vitefu: [email protected]- transitivePeerDependencies:- - supports-color- dev: true-- /@trpc/client/10.1.0:- resolution: {integrity: sha512-E7L9l2OTa5lIdM0NYvQLJf/GLapskfiVLv0Jv7t6GVxEOFd+O4THWsWQgJVUUAz9iq805iMNkY3uqSvf4GJaWg==}- peerDependencies:- '@trpc/server': 10.1.0- dev: false-- /@types/cookie/0.5.1:- resolution: {integrity: sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==}- dev: true-- /@types/json-schema/7.0.11:- resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}- dev: true-- /@types/node/18.11.9:- resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}- dev: true-- /@types/pug/2.0.6:- resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==}- dev: true-- /@types/sass/1.43.1:- resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==}- dependencies:- '@types/node': 18.11.9- dev: true-- /@types/semver/7.3.13:- resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==}- dev: true-- /@typescript-eslint/eslint-plugin/5.44.0_fnsv2sbzcckq65bwfk7a5xwslu:- resolution: {integrity: sha512-j5ULd7FmmekcyWeArx+i8x7sdRHzAtXTkmDPthE4amxZOWKFK7bomoJ4r7PJ8K7PoMzD16U8MmuZFAonr1ERvw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- '@typescript-eslint/parser': ^5.0.0- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/parser': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- '@typescript-eslint/scope-manager': 5.44.0- '@typescript-eslint/type-utils': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- '@typescript-eslint/utils': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- debug: 4.3.4- eslint: 8.28.0- ignore: 5.2.0- natural-compare-lite: 1.4.0- regexpp: 3.2.0- semver: 7.3.8- tsutils: [email protected]- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true-- /@typescript-eslint/parser/5.44.0_hsf322ms6xhhd4b5ne6lb74y4a:- resolution: {integrity: sha512-H7LCqbZnKqkkgQHaKLGC6KUjt3pjJDx8ETDqmwncyb6PuoigYajyAwBGz08VU/l86dZWZgI4zm5k2VaKqayYyA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/scope-manager': 5.44.0- '@typescript-eslint/types': 5.44.0- '@typescript-eslint/typescript-estree': [email protected]- debug: 4.3.4- eslint: 8.28.0- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true-- /@typescript-eslint/scope-manager/5.44.0:- resolution: {integrity: sha512-2pKml57KusI0LAhgLKae9kwWeITZ7IsZs77YxyNyIVOwQ1kToyXRaJLl+uDEXzMN5hnobKUOo2gKntK9H1YL8g==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.44.0- '@typescript-eslint/visitor-keys': 5.44.0- dev: true-- /@typescript-eslint/type-utils/5.44.0_hsf322ms6xhhd4b5ne6lb74y4a:- resolution: {integrity: sha512-A1u0Yo5wZxkXPQ7/noGkRhV4J9opcymcr31XQtOzcc5nO/IHN2E2TPMECKWYpM3e6olWEM63fq/BaL1wEYnt/w==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: '*'- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/typescript-estree': [email protected]- '@typescript-eslint/utils': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- debug: 4.3.4- eslint: 8.28.0- tsutils: [email protected]- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true-- /@typescript-eslint/types/5.44.0:- resolution: {integrity: sha512-Tp+zDnHmGk4qKR1l+Y1rBvpjpm5tGXX339eAlRBDg+kgZkz9Bw+pqi4dyseOZMsGuSH69fYfPJCBKBrbPCxYFQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-- /@typescript-eslint/typescript-estree/[email protected]:- resolution: {integrity: sha512-M6Jr+RM7M5zeRj2maSfsZK2660HKAJawv4Ud0xT+yauyvgrsHu276VtXlKDFnEmhG+nVEd0fYZNXGoAgxwDWJw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true- dependencies:- '@typescript-eslint/types': 5.44.0- '@typescript-eslint/visitor-keys': 5.44.0- debug: 4.3.4- globby: 11.1.0- is-glob: 4.0.3- semver: 7.3.8- tsutils: [email protected]- typescript: 4.9.3- transitivePeerDependencies:- - supports-color- dev: true-- /@typescript-eslint/utils/5.44.0_hsf322ms6xhhd4b5ne6lb74y4a:- resolution: {integrity: sha512-fMzA8LLQ189gaBjS0MZszw5HBdZgVwxVFShCO3QN+ws3GlPkcy9YuS3U4wkT6su0w+Byjq3mS3uamy9HE4Yfjw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- dependencies:- '@types/json-schema': 7.0.11- '@types/semver': 7.3.13- '@typescript-eslint/scope-manager': 5.44.0- '@typescript-eslint/types': 5.44.0- '@typescript-eslint/typescript-estree': [email protected]- eslint: 8.28.0- eslint-scope: 5.1.1- eslint-utils: [email protected]- semver: 7.3.8- transitivePeerDependencies:- - supports-color- - typescript- dev: true-- /@typescript-eslint/visitor-keys/5.44.0:- resolution: {integrity: sha512-a48tLG8/4m62gPFbJ27FxwCOqPKxsb8KC3HkmYoq2As/4YyjQl1jDbRr1s63+g4FS/iIehjmN3L5UjmKva1HzQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- '@typescript-eslint/types': 5.44.0- eslint-visitor-keys: 3.3.0- dev: true-- /acorn-jsx/[email protected]:- resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}- peerDependencies:- acorn: ^6.0.0 || ^7.0.0 || ^8.0.0- dependencies:- acorn: 8.8.1- dev: true-- /acorn/8.8.1:- resolution: {integrity: sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==}- engines: {node: '>=0.4.0'}- hasBin: true- dev: true-- /ajv/6.12.6:- resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}- dependencies:- fast-deep-equal: 3.1.3- fast-json-stable-stringify: 2.1.0- json-schema-traverse: 0.4.1- uri-js: 4.4.1- dev: true-- /ansi-regex/5.0.1:- resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}- engines: {node: '>=8'}- dev: true-- /ansi-styles/4.3.0:- resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}- engines: {node: '>=8'}- dependencies:- color-convert: 2.0.1- dev: true-- /anymatch/3.1.3:- resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}- engines: {node: '>= 8'}- dependencies:- normalize-path: 3.0.0- picomatch: 2.3.1- dev: true-- /argparse/2.0.1:- resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}- dev: true-- /array-union/2.1.0:- resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}- engines: {node: '>=8'}- dev: true-- /balanced-match/1.0.2:- resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}- dev: true-- /binary-extensions/2.2.0:- resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}- engines: {node: '>=8'}- dev: true-- /brace-expansion/1.1.11:- resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}- dependencies:- balanced-match: 1.0.2- concat-map: 0.0.1- dev: true-- /braces/3.0.2:- resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}- engines: {node: '>=8'}- dependencies:- fill-range: 7.0.1- dev: true-- /buffer-crc32/0.2.13:- resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}- dev: true-- /busboy/1.6.0:- resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}- engines: {node: '>=10.16.0'}- dependencies:- streamsearch: 1.1.0- dev: true-- /callsites/3.1.0:- resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}- engines: {node: '>=6'}- dev: true-- /chalk/4.1.2:- resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}- engines: {node: '>=10'}- dependencies:- ansi-styles: 4.3.0- supports-color: 7.2.0- dev: true-- /chokidar/3.5.3:- resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}- engines: {node: '>= 8.10.0'}- dependencies:- anymatch: 3.1.3- braces: 3.0.2- glob-parent: 5.1.2- is-binary-path: 2.1.0- is-glob: 4.0.3- normalize-path: 3.0.0- readdirp: 3.6.0- optionalDependencies:- fsevents: 2.3.2- dev: true-- /color-convert/2.0.1:- resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}- engines: {node: '>=7.0.0'}- dependencies:- color-name: 1.1.4- dev: true-- /color-name/1.1.4:- resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}- dev: true-- /concat-map/0.0.1:- resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}- dev: true-- /cookie/0.5.0:- resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}- engines: {node: '>= 0.6'}- dev: true-- /cross-spawn/7.0.3:- resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}- engines: {node: '>= 8'}- dependencies:- path-key: 3.1.1- shebang-command: 2.0.0- which: 2.0.2- dev: true-- /debug/4.3.4:- resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}- engines: {node: '>=6.0'}- peerDependencies:- supports-color: '*'- peerDependenciesMeta:- supports-color:- optional: true- dependencies:- ms: 2.1.2- dev: true-- /deep-is/0.1.4:- resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}- dev: true-- /deepmerge/4.2.2:- resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==}- engines: {node: '>=0.10.0'}- dev: true-- /detect-indent/6.1.0:- resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==}- engines: {node: '>=8'}- dev: true-- /devalue/4.2.0:- resolution: {integrity: sha512-mbjoAaCL2qogBKgeFxFPOXAUsZchircF+B/79LD4sHH0+NHfYm8gZpQrskKDn5gENGt35+5OI1GUF7hLVnkPDw==}- dev: true-- /dir-glob/3.0.1:- resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}- engines: {node: '>=8'}- dependencies:- path-type: 4.0.0- dev: true-- /doctrine/3.0.0:- resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}- engines: {node: '>=6.0.0'}- dependencies:- esutils: 2.0.3- dev: true-- /es6-promise/3.3.1:- resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==}- dev: true-- /esbuild-android-64/0.15.15:- resolution: {integrity: sha512-F+WjjQxO+JQOva3tJWNdVjouFMLK6R6i5gjDvgUthLYJnIZJsp1HlF523k73hELY20WPyEO8xcz7aaYBVkeg5Q==}- engines: {node: '>=12'}- cpu: [x64]- os: [android]- requiresBuild: true- dev: true- optional: true-- /esbuild-android-arm64/0.15.15:- resolution: {integrity: sha512-attlyhD6Y22jNyQ0fIIQ7mnPvDWKw7k6FKnsXlBvQE6s3z6s6cuEHcSgoirquQc7TmZgVCK5fD/2uxmRN+ZpcQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [android]- requiresBuild: true- dev: true- optional: true-- /esbuild-darwin-64/0.15.15:- resolution: {integrity: sha512-ohZtF8W1SHJ4JWldsPVdk8st0r9ExbAOSrBOh5L+Mq47i696GVwv1ab/KlmbUoikSTNoXEhDzVpxUR/WIO19FQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [darwin]- requiresBuild: true- dev: true- optional: true-- /esbuild-darwin-arm64/0.15.15:- resolution: {integrity: sha512-P8jOZ5zshCNIuGn+9KehKs/cq5uIniC+BeCykvdVhx/rBXSxmtj3CUIKZz4sDCuESMbitK54drf/2QX9QHG5Ag==}- engines: {node: '>=12'}- cpu: [arm64]- os: [darwin]- requiresBuild: true- dev: true- optional: true-- /esbuild-freebsd-64/0.15.15:- resolution: {integrity: sha512-KkTg+AmDXz1IvA9S1gt8dE24C8Thx0X5oM0KGF322DuP+P3evwTL9YyusHAWNsh4qLsR80nvBr/EIYs29VSwuA==}- engines: {node: '>=12'}- cpu: [x64]- os: [freebsd]- requiresBuild: true- dev: true- optional: true-- /esbuild-freebsd-arm64/0.15.15:- resolution: {integrity: sha512-FUcML0DRsuyqCMfAC+HoeAqvWxMeq0qXvclZZ/lt2kLU6XBnDA5uKTLUd379WYEyVD4KKFctqWd9tTuk8C/96g==}- engines: {node: '>=12'}- cpu: [arm64]- os: [freebsd]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-32/0.15.15:- resolution: {integrity: sha512-q28Qn5pZgHNqug02aTkzw5sW9OklSo96b5nm17Mq0pDXrdTBcQ+M6Q9A1B+dalFeynunwh/pvfrNucjzwDXj+Q==}- engines: {node: '>=12'}- cpu: [ia32]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-64/0.15.15:- resolution: {integrity: sha512-217KPmWMirkf8liO+fj2qrPwbIbhNTGNVtvqI1TnOWJgcMjUWvd677Gq3fTzXEjilkx2yWypVnTswM2KbXgoAg==}- engines: {node: '>=12'}- cpu: [x64]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-arm/0.15.15:- resolution: {integrity: sha512-RYVW9o2yN8yM7SB1yaWr378CwrjvGCyGybX3SdzPHpikUHkME2AP55Ma20uNwkNyY2eSYFX9D55kDrfQmQBR4w==}- engines: {node: '>=12'}- cpu: [arm]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-arm64/0.15.15:- resolution: {integrity: sha512-/ltmNFs0FivZkYsTzAsXIfLQX38lFnwJTWCJts0IbCqWZQe+jjj0vYBNbI0kmXLb3y5NljiM5USVAO1NVkdh2g==}- engines: {node: '>=12'}- cpu: [arm64]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-mips64le/0.15.15:- resolution: {integrity: sha512-PksEPb321/28GFFxtvL33yVPfnMZihxkEv5zME2zapXGp7fA1X2jYeiTUK+9tJ/EGgcNWuwvtawPxJG7Mmn86A==}- engines: {node: '>=12'}- cpu: [mips64el]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-ppc64le/0.15.15:- resolution: {integrity: sha512-ek8gJBEIhcpGI327eAZigBOHl58QqrJrYYIZBWQCnH3UnXoeWMrMZLeeZL8BI2XMBhP+sQ6ERctD5X+ajL/AIA==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-riscv64/0.15.15:- resolution: {integrity: sha512-H5ilTZb33/GnUBrZMNJtBk7/OXzDHDXjIzoLXHSutwwsLxSNaLxzAaMoDGDd/keZoS+GDBqNVxdCkpuiRW4OSw==}- engines: {node: '>=12'}- cpu: [riscv64]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-linux-s390x/0.15.15:- resolution: {integrity: sha512-jKaLUg78mua3rrtrkpv4Or2dNTJU7bgHN4bEjT4OX4GR7nLBSA9dfJezQouTxMmIW7opwEC5/iR9mpC18utnxQ==}- engines: {node: '>=12'}- cpu: [s390x]- os: [linux]- requiresBuild: true- dev: true- optional: true-- /esbuild-netbsd-64/0.15.15:- resolution: {integrity: sha512-aOvmF/UkjFuW6F36HbIlImJTTx45KUCHJndtKo+KdP8Dhq3mgLRKW9+6Ircpm8bX/RcS3zZMMmaBLkvGY06Gvw==}- engines: {node: '>=12'}- cpu: [x64]- os: [netbsd]- requiresBuild: true- dev: true- optional: true-- /esbuild-openbsd-64/0.15.15:- resolution: {integrity: sha512-HFFX+WYedx1w2yJ1VyR1Dfo8zyYGQZf1cA69bLdrHzu9svj6KH6ZLK0k3A1/LFPhcEY9idSOhsB2UyU0tHPxgQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [openbsd]- requiresBuild: true- dev: true- optional: true-- /esbuild-sunos-64/0.15.15:- resolution: {integrity: sha512-jOPBudffG4HN8yJXcK9rib/ZTFoTA5pvIKbRrt3IKAGMq1EpBi4xoVoSRrq/0d4OgZLaQbmkHp8RO9eZIn5atA==}- engines: {node: '>=12'}- cpu: [x64]- os: [sunos]- requiresBuild: true- dev: true- optional: true-- /esbuild-windows-32/0.15.15:- resolution: {integrity: sha512-MDkJ3QkjnCetKF0fKxCyYNBnOq6dmidcwstBVeMtXSgGYTy8XSwBeIE4+HuKiSsG6I/mXEb++px3IGSmTN0XiA==}- engines: {node: '>=12'}- cpu: [ia32]- os: [win32]- requiresBuild: true- dev: true- optional: true-- /esbuild-windows-64/0.15.15:- resolution: {integrity: sha512-xaAUIB2qllE888SsMU3j9nrqyLbkqqkpQyWVkfwSil6BBPgcPk3zOFitTTncEKCLTQy3XV9RuH7PDj3aJDljWA==}- engines: {node: '>=12'}- cpu: [x64]- os: [win32]- requiresBuild: true- dev: true- optional: true-- /esbuild-windows-arm64/0.15.15:- resolution: {integrity: sha512-ttuoCYCIJAFx4UUKKWYnFdrVpoXa3+3WWkXVI6s09U+YjhnyM5h96ewTq/WgQj9LFSIlABQvadHSOQyAVjW5xQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [win32]- requiresBuild: true- dev: true- optional: true-- /esbuild/0.15.15:- resolution: {integrity: sha512-TEw/lwK4Zzld9x3FedV6jy8onOUHqcEX3ADFk4k+gzPUwrxn8nWV62tH0udo8jOtjFodlEfc4ypsqX3e+WWO6w==}- engines: {node: '>=12'}- hasBin: true- requiresBuild: true- optionalDependencies:- '@esbuild/android-arm': 0.15.15- '@esbuild/linux-loong64': 0.15.15- esbuild-android-64: 0.15.15- esbuild-android-arm64: 0.15.15- esbuild-darwin-64: 0.15.15- esbuild-darwin-arm64: 0.15.15- esbuild-freebsd-64: 0.15.15- esbuild-freebsd-arm64: 0.15.15- esbuild-linux-32: 0.15.15- esbuild-linux-64: 0.15.15- esbuild-linux-arm: 0.15.15- esbuild-linux-arm64: 0.15.15- esbuild-linux-mips64le: 0.15.15- esbuild-linux-ppc64le: 0.15.15- esbuild-linux-riscv64: 0.15.15- esbuild-linux-s390x: 0.15.15- esbuild-netbsd-64: 0.15.15- esbuild-openbsd-64: 0.15.15- esbuild-sunos-64: 0.15.15- esbuild-windows-32: 0.15.15- esbuild-windows-64: 0.15.15- esbuild-windows-arm64: 0.15.15- dev: true-- /escape-string-regexp/4.0.0:- resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}- engines: {node: '>=10'}- dev: true-- /eslint-config-prettier/[email protected]:- resolution: {integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==}- hasBin: true- peerDependencies:- eslint: '>=7.0.0'- dependencies:- eslint: 8.28.0- dev: true-- /eslint-plugin-svelte3/4.0.0_xgu65rlhscpnxffotiaicv6m5i:- resolution: {integrity: sha512-OIx9lgaNzD02+MDFNLw0GEUbuovNcglg+wnd/UY0fbZmlQSz7GlQiQ1f+yX0XvC07XPcDOnFcichqI3xCwp71g==}- peerDependencies:- eslint: '>=8.0.0'- svelte: ^3.2.0- dependencies:- eslint: 8.28.0- svelte: 3.53.1- dev: true-- /eslint-scope/5.1.1:- resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}- engines: {node: '>=8.0.0'}- dependencies:- esrecurse: 4.3.0- estraverse: 4.3.0- dev: true-- /eslint-scope/7.1.1:- resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- esrecurse: 4.3.0- estraverse: 5.3.0- dev: true-- /eslint-utils/[email protected]:- resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}- engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}- peerDependencies:- eslint: '>=5'- dependencies:- eslint: 8.28.0- eslint-visitor-keys: 2.1.0- dev: true-- /eslint-visitor-keys/2.1.0:- resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==}- engines: {node: '>=10'}- dev: true-- /eslint-visitor-keys/3.3.0:- resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dev: true-- /eslint/8.28.0:- resolution: {integrity: sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- hasBin: true- dependencies:- '@eslint/eslintrc': 1.3.3- '@humanwhocodes/config-array': 0.11.7- '@humanwhocodes/module-importer': 1.0.1- '@nodelib/fs.walk': 1.2.8- ajv: 6.12.6- chalk: 4.1.2- cross-spawn: 7.0.3- debug: 4.3.4- doctrine: 3.0.0- escape-string-regexp: 4.0.0- eslint-scope: 7.1.1- eslint-utils: [email protected]- eslint-visitor-keys: 3.3.0- espree: 9.4.1- esquery: 1.4.0- esutils: 2.0.3- fast-deep-equal: 3.1.3- file-entry-cache: 6.0.1- find-up: 5.0.0- glob-parent: 6.0.2- globals: 13.18.0- grapheme-splitter: 1.0.4- ignore: 5.2.0- import-fresh: 3.3.0- imurmurhash: 0.1.4- is-glob: 4.0.3- is-path-inside: 3.0.3- js-sdsl: 4.2.0- js-yaml: 4.1.0- json-stable-stringify-without-jsonify: 1.0.1- levn: 0.4.1- lodash.merge: 4.6.2- minimatch: 3.1.2- natural-compare: 1.4.0- optionator: 0.9.1- regexpp: 3.2.0- strip-ansi: 6.0.1- strip-json-comments: 3.1.1- text-table: 0.2.0- transitivePeerDependencies:- - supports-color- dev: true-- /espree/9.4.1:- resolution: {integrity: sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- dependencies:- acorn: 8.8.1- acorn-jsx: [email protected]- eslint-visitor-keys: 3.3.0- dev: true-- /esquery/1.4.0:- resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==}- engines: {node: '>=0.10'}- dependencies:- estraverse: 5.3.0- dev: true-- /esrecurse/4.3.0:- resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}- engines: {node: '>=4.0'}- dependencies:- estraverse: 5.3.0- dev: true-- /estraverse/4.3.0:- resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==}- engines: {node: '>=4.0'}- dev: true-- /estraverse/5.3.0:- resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}- engines: {node: '>=4.0'}- dev: true-- /esutils/2.0.3:- resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}- engines: {node: '>=0.10.0'}- dev: true-- /fast-deep-equal/3.1.3:- resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}- dev: true-- /fast-glob/3.2.12:- resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==}- engines: {node: '>=8.6.0'}- dependencies:- '@nodelib/fs.stat': 2.0.5- '@nodelib/fs.walk': 1.2.8- glob-parent: 5.1.2- merge2: 1.4.1- micromatch: 4.0.5- dev: true-- /fast-json-stable-stringify/2.1.0:- resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}- dev: true-- /fast-levenshtein/2.0.6:- resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}- dev: true-- /fastq/1.13.0:- resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==}- dependencies:- reusify: 1.0.4- dev: true-- /file-entry-cache/6.0.1:- resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}- engines: {node: ^10.12.0 || >=12.0.0}- dependencies:- flat-cache: 3.0.4- dev: true-- /fill-range/7.0.1:- resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}- engines: {node: '>=8'}- dependencies:- to-regex-range: 5.0.1- dev: true-- /find-up/5.0.0:- resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}- engines: {node: '>=10'}- dependencies:- locate-path: 6.0.0- path-exists: 4.0.0- dev: true-- /flat-cache/3.0.4:- resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==}- engines: {node: ^10.12.0 || >=12.0.0}- dependencies:- flatted: 3.2.7- rimraf: 3.0.2- dev: true-- /flatted/3.2.7:- resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==}- dev: true-- /fs.realpath/1.0.0:- resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}- dev: true-- /fsevents/2.3.2:- resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}- os: [darwin]- requiresBuild: true- dev: true- optional: true-- /function-bind/1.1.1:- resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==}- dev: true-- /glob-parent/5.1.2:- resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}- engines: {node: '>= 6'}- dependencies:- is-glob: 4.0.3- dev: true-- /glob-parent/6.0.2:- resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}- engines: {node: '>=10.13.0'}- dependencies:- is-glob: 4.0.3- dev: true-- /glob/7.2.3:- resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}- dependencies:- fs.realpath: 1.0.0- inflight: 1.0.6- inherits: 2.0.4- minimatch: 3.1.2- once: 1.4.0- path-is-absolute: 1.0.1- dev: true-- /globals/13.18.0:- resolution: {integrity: sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==}- engines: {node: '>=8'}- dependencies:- type-fest: 0.20.2- dev: true-- /globalyzer/0.1.0:- resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==}- dev: true-- /globby/11.1.0:- resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}- engines: {node: '>=10'}- dependencies:- array-union: 2.1.0- dir-glob: 3.0.1- fast-glob: 3.2.12- ignore: 5.2.0- merge2: 1.4.1- slash: 3.0.0- dev: true-- /globrex/0.1.2:- resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}- dev: true-- /graceful-fs/4.2.10:- resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}- dev: true-- /grapheme-splitter/1.0.4:- resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}- dev: true-- /has-flag/4.0.0:- resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}- engines: {node: '>=8'}- dev: true-- /has/1.0.3:- resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}- engines: {node: '>= 0.4.0'}- dependencies:- function-bind: 1.1.1- dev: true-- /ignore/5.2.0:- resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==}- engines: {node: '>= 4'}- dev: true-- /import-fresh/3.3.0:- resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}- engines: {node: '>=6'}- dependencies:- parent-module: 1.0.1- resolve-from: 4.0.0- dev: true-- /import-meta-resolve/2.2.0:- resolution: {integrity: sha512-CpPOtiCHxP9HdtDM5F45tNiAe66Cqlv3f5uHoJjt+KlaLrUh9/Wz9vepADZ78SlqEo62aDWZtj9ydMGXV+CPnw==}- dev: true-- /imurmurhash/0.1.4:- resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}- engines: {node: '>=0.8.19'}- dev: true-- /inflight/1.0.6:- resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}- dependencies:- once: 1.4.0- wrappy: 1.0.2- dev: true-- /inherits/2.0.4:- resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}- dev: true-- /is-binary-path/2.1.0:- resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}- engines: {node: '>=8'}- dependencies:- binary-extensions: 2.2.0- dev: true-- /is-core-module/2.11.0:- resolution: {integrity: sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==}- dependencies:- has: 1.0.3- dev: true-- /is-extglob/2.1.1:- resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}- engines: {node: '>=0.10.0'}- dev: true-- /is-glob/4.0.3:- resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}- engines: {node: '>=0.10.0'}- dependencies:- is-extglob: 2.1.1- dev: true-- /is-number/7.0.0:- resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}- engines: {node: '>=0.12.0'}- dev: true-- /is-path-inside/3.0.3:- resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}- engines: {node: '>=8'}- dev: true-- /isexe/2.0.0:- resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}- dev: true-- /js-sdsl/4.2.0:- resolution: {integrity: sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==}- dev: true-- /js-yaml/4.1.0:- resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}- hasBin: true- dependencies:- argparse: 2.0.1- dev: true-- /json-schema-traverse/0.4.1:- resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}- dev: true-- /json-stable-stringify-without-jsonify/1.0.1:- resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}- dev: true-- /kleur/4.1.5:- resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}- engines: {node: '>=6'}- dev: true-- /levn/0.4.1:- resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}- engines: {node: '>= 0.8.0'}- dependencies:- prelude-ls: 1.2.1- type-check: 0.4.0- dev: true-- /locate-path/6.0.0:- resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}- engines: {node: '>=10'}- dependencies:- p-locate: 5.0.0- dev: true-- /lodash.merge/4.6.2:- resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}- dev: true-- /lru-cache/6.0.0:- resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}- engines: {node: '>=10'}- dependencies:- yallist: 4.0.0- dev: true-- /magic-string/0.25.9:- resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}- dependencies:- sourcemap-codec: 1.4.8- dev: true-- /magic-string/0.26.7:- resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==}- engines: {node: '>=12'}- dependencies:- sourcemap-codec: 1.4.8- dev: true-- /merge2/1.4.1:- resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}- engines: {node: '>= 8'}- dev: true-- /micromatch/4.0.5:- resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}- engines: {node: '>=8.6'}- dependencies:- braces: 3.0.2- picomatch: 2.3.1- dev: true-- /mime/3.0.0:- resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}- engines: {node: '>=10.0.0'}- hasBin: true- dev: true-- /min-indent/1.0.1:- resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}- engines: {node: '>=4'}- dev: true-- /minimatch/3.1.2:- resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}- dependencies:- brace-expansion: 1.1.11- dev: true-- /minimist/1.2.7:- resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==}- dev: true-- /mkdirp/0.5.6:- resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}- hasBin: true- dependencies:- minimist: 1.2.7- dev: true-- /mri/1.2.0:- resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}- engines: {node: '>=4'}- dev: true-- /mrmime/1.0.1:- resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==}- engines: {node: '>=10'}- dev: true-- /ms/2.1.2:- resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}- dev: true-- /nanoid/3.3.4:- resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==}- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}- hasBin: true- dev: true-- /natural-compare-lite/1.4.0:- resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}- dev: true-- /natural-compare/1.4.0:- resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}- dev: true-- /normalize-path/3.0.0:- resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}- engines: {node: '>=0.10.0'}- dev: true-- /once/1.4.0:- resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}- dependencies:- wrappy: 1.0.2- dev: true-- /optionator/0.9.1:- resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==}- engines: {node: '>= 0.8.0'}- dependencies:- deep-is: 0.1.4- fast-levenshtein: 2.0.6- levn: 0.4.1- prelude-ls: 1.2.1- type-check: 0.4.0- word-wrap: 1.2.3- dev: true-- /p-limit/3.1.0:- resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}- engines: {node: '>=10'}- dependencies:- yocto-queue: 0.1.0- dev: true-- /p-locate/5.0.0:- resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}- engines: {node: '>=10'}- dependencies:- p-limit: 3.1.0- dev: true-- /parent-module/1.0.1:- resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}- engines: {node: '>=6'}- dependencies:- callsites: 3.1.0- dev: true-- /path-exists/4.0.0:- resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}- engines: {node: '>=8'}- dev: true-- /path-is-absolute/1.0.1:- resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}- engines: {node: '>=0.10.0'}- dev: true-- /path-key/3.1.1:- resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}- engines: {node: '>=8'}- dev: true-- /path-parse/1.0.7:- resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}- dev: true-- /path-type/4.0.0:- resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}- engines: {node: '>=8'}- dev: true-- /picocolors/1.0.0:- resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}- dev: true-- /picomatch/2.3.1:- resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}- engines: {node: '>=8.6'}- dev: true-- /playwright-core/1.25.0:- resolution: {integrity: sha512-kZ3Jwaf3wlu0GgU0nB8UMQ+mXFTqBIFz9h1svTlNduNKjnbPXFxw7mJanLVjqxHJRn62uBfmgBj93YHidk2N5Q==}- engines: {node: '>=14'}- hasBin: true- dev: true-- /postcss/8.4.19:- resolution: {integrity: sha512-h+pbPsyhlYj6N2ozBmHhHrs9DzGmbaarbLvWipMRO7RLS+v4onj26MPFXA5OBYFxyqYhUJK456SwDcY9H2/zsA==}- engines: {node: ^10 || ^12 || >=14}- dependencies:- nanoid: 3.3.4- picocolors: 1.0.0- source-map-js: 1.0.2- dev: true-- /prelude-ls/1.2.1:- resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}- engines: {node: '>= 0.8.0'}- dev: true-- /prettier-plugin-svelte/2.8.1_3ndnxlh52lolrqe4kgjgbxb3xa:- resolution: {integrity: sha512-KA3K1J3/wKDnCxW7ZDRA/QL2Q67N7Xs3gOERqJ5X1qFjq1DdnN3K1R29scSKwh+kA8FF67pXbYytUpvN/i3iQw==}- peerDependencies:- prettier: ^1.16.4 || ^2.0.0- svelte: ^3.2.0- dependencies:- prettier: 2.8.0- svelte: 3.53.1- dev: true-- /prettier/2.8.0:- resolution: {integrity: sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==}- engines: {node: '>=10.13.0'}- hasBin: true- dev: true-- /punycode/2.1.1:- resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==}- engines: {node: '>=6'}- dev: true-- /queue-microtask/1.2.3:- resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}- dev: true-- /readdirp/3.6.0:- resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}- engines: {node: '>=8.10.0'}- dependencies:- picomatch: 2.3.1- dev: true-- /regexpp/3.2.0:- resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==}- engines: {node: '>=8'}- dev: true-- /resolve-from/4.0.0:- resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}- engines: {node: '>=4'}- dev: true-- /resolve/1.22.1:- resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==}- hasBin: true- dependencies:- is-core-module: 2.11.0- path-parse: 1.0.7- supports-preserve-symlinks-flag: 1.0.0- dev: true-- /reusify/1.0.4:- resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}- engines: {iojs: '>=1.0.0', node: '>=0.10.0'}- dev: true-- /rimraf/2.7.1:- resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==}- hasBin: true- dependencies:- glob: 7.2.3- dev: true-- /rimraf/3.0.2:- resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}- hasBin: true- dependencies:- glob: 7.2.3- dev: true-- /rollup/2.79.1:- resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==}- engines: {node: '>=10.0.0'}- hasBin: true- optionalDependencies:- fsevents: 2.3.2- dev: true-- /run-parallel/1.2.0:- resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}- dependencies:- queue-microtask: 1.2.3- dev: true-- /sade/1.8.1:- resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==}- engines: {node: '>=6'}- dependencies:- mri: 1.2.0- dev: true-- /sander/0.5.1:- resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==}- dependencies:- es6-promise: 3.3.1- graceful-fs: 4.2.10- mkdirp: 0.5.6- rimraf: 2.7.1- dev: true-- /semver/7.3.8:- resolution: {integrity: sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==}- engines: {node: '>=10'}- hasBin: true- dependencies:- lru-cache: 6.0.0- dev: true-- /set-cookie-parser/2.5.1:- resolution: {integrity: sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==}- dev: true-- /shebang-command/2.0.0:- resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}- engines: {node: '>=8'}- dependencies:- shebang-regex: 3.0.0- dev: true-- /shebang-regex/3.0.0:- resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}- engines: {node: '>=8'}- dev: true-- /sirv/2.0.2:- resolution: {integrity: sha512-4Qog6aE29nIjAOKe/wowFTxOdmbEZKb+3tsLljaBRzJwtqto0BChD2zzH0LhgCSXiI+V7X+Y45v14wBZQ1TK3w==}- engines: {node: '>= 10'}- dependencies:- '@polka/url': 1.0.0-next.21- mrmime: 1.0.1- totalist: 3.0.0- dev: true-- /slash/3.0.0:- resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}- engines: {node: '>=8'}- dev: true-- /sorcery/0.10.0:- resolution: {integrity: sha512-R5ocFmKZQFfSTstfOtHjJuAwbpGyf9qjQa1egyhvXSbM7emjrtLXtGdZsDJDABC85YBfVvrOiGWKSYXPKdvP1g==}- hasBin: true- dependencies:- buffer-crc32: 0.2.13- minimist: 1.2.7- sander: 0.5.1- sourcemap-codec: 1.4.8- dev: true-- /source-map-js/1.0.2:- resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}- engines: {node: '>=0.10.0'}- dev: true-- /sourcemap-codec/1.4.8:- resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}- dev: true-- /streamsearch/1.1.0:- resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}- engines: {node: '>=10.0.0'}- dev: true-- /strip-ansi/6.0.1:- resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}- engines: {node: '>=8'}- dependencies:- ansi-regex: 5.0.1- dev: true-- /strip-indent/3.0.0:- resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}- engines: {node: '>=8'}- dependencies:- min-indent: 1.0.1- dev: true-- /strip-json-comments/3.1.1:- resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}- engines: {node: '>=8'}- dev: true-- /supports-color/7.2.0:- resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}- engines: {node: '>=8'}- dependencies:- has-flag: 4.0.0- dev: true-- /supports-preserve-symlinks-flag/1.0.0:- resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}- engines: {node: '>= 0.4'}- dev: true-- /svelte-check/[email protected]:- resolution: {integrity: sha512-DRi8HhnCiqiGR2YF9ervPGvtoYrheE09cXieCTEqeTPOTJzfoa54Py8rovIBv4bH4n5HgZYIyTQ3DDLHQLl2uQ==}- hasBin: true- peerDependencies:- svelte: ^3.24.0- dependencies:- '@jridgewell/trace-mapping': 0.3.17- chokidar: 3.5.3- fast-glob: 3.2.12- import-fresh: 3.3.0- picocolors: 1.0.0- sade: 1.8.1- svelte: 3.53.1- svelte-preprocess: 4.10.7_7dvewpees4iyn2tkw2qzal77a4- typescript: 4.9.3- transitivePeerDependencies:- - '@babel/core'- - coffeescript- - less- - node-sass- - postcss- - postcss-load-config- - pug- - sass- - stylus- - sugarss- dev: true-- /svelte-hmr/[email protected]:- resolution: {integrity: sha512-BiKB4RZ8YSwRKCNVdNxK/GfY+r4Kjgp9jCLEy0DuqAKfmQtpL38cQK3afdpjw4sqSs4PLi3jIPJIFp259NkZtA==}- engines: {node: ^12.20 || ^14.13.1 || >= 16}- peerDependencies:- svelte: '>=3.19.0'- dependencies:- svelte: 3.53.1- dev: true-- /svelte-preprocess/4.10.7_7dvewpees4iyn2tkw2qzal77a4:- resolution: {integrity: sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==}- engines: {node: '>= 9.11.2'}- requiresBuild: true- peerDependencies:- '@babel/core': ^7.10.2- coffeescript: ^2.5.1- less: ^3.11.3 || ^4.0.0- node-sass: '*'- postcss: ^7 || ^8- postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0- pug: ^3.0.0- sass: ^1.26.8- stylus: ^0.55.0- sugarss: ^2.0.0- svelte: ^3.23.0- typescript: ^3.9.5 || ^4.0.0- peerDependenciesMeta:- '@babel/core':- optional: true- coffeescript:- optional: true- less:- optional: true- node-sass:- optional: true- postcss:- optional: true- postcss-load-config:- optional: true- pug:- optional: true- sass:- optional: true- stylus:- optional: true- sugarss:- optional: true- typescript:- optional: true- dependencies:- '@types/pug': 2.0.6- '@types/sass': 1.43.1- detect-indent: 6.1.0- magic-string: 0.25.9- sorcery: 0.10.0- strip-indent: 3.0.0- svelte: 3.53.1- typescript: 4.9.3- dev: true-- /svelte/3.53.1:- resolution: {integrity: sha512-Q4/hHkktZogGhN5iqxqSi9sjEVoe/NbIxX4hXEHoasTxj+TxEQVAq66LnDMdAZxjmsodkoI5F3slqsS68U7FNw==}- engines: {node: '>= 8'}- dev: true-- /text-table/0.2.0:- resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}- dev: true-- /tiny-glob/0.2.9:- resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==}- dependencies:- globalyzer: 0.1.0- globrex: 0.1.2- dev: true-- /to-regex-range/5.0.1:- resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}- engines: {node: '>=8.0'}- dependencies:- is-number: 7.0.0- dev: true-- /totalist/3.0.0:- resolution: {integrity: sha512-eM+pCBxXO/njtF7vdFsHuqb+ElbxqtI4r5EAvk6grfAFyJ6IvWlSkfZ5T9ozC6xWw3Fj1fGoSmrl0gUs46JVIw==}- engines: {node: '>=6'}- dev: true-- /tslib/1.14.1:- resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}- dev: true-- /tslib/2.4.1:- resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==}- dev: true-- /tsutils/[email protected]:- resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}- engines: {node: '>= 6'}- peerDependencies:- typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'- dependencies:- tslib: 1.14.1- typescript: 4.9.3- dev: true-- /type-check/0.4.0:- resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}- engines: {node: '>= 0.8.0'}- dependencies:- prelude-ls: 1.2.1- dev: true-- /type-fest/0.20.2:- resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}- engines: {node: '>=10'}- dev: true-- /typescript/4.9.3:- resolution: {integrity: sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==}- engines: {node: '>=4.2.0'}- hasBin: true- dev: true-- /undici/5.12.0:- resolution: {integrity: sha512-zMLamCG62PGjd9HHMpo05bSLvvwWOZgGeiWlN/vlqu3+lRo3elxktVGEyLMX+IO7c2eflLjcW74AlkhEZm15mg==}- engines: {node: '>=12.18'}- dependencies:- busboy: 1.6.0- dev: true-- /uri-js/4.4.1:- resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}- dependencies:- punycode: 2.1.1- dev: true-- /vite/3.2.4:- resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==}- engines: {node: ^14.18.0 || >=16.0.0}- hasBin: true- peerDependencies:- '@types/node': '>= 14'- less: '*'- sass: '*'- stylus: '*'- sugarss: '*'- terser: ^5.4.0- peerDependenciesMeta:- '@types/node':- optional: true- less:- optional: true- sass:- optional: true- stylus:- optional: true- sugarss:- optional: true- terser:- optional: true- dependencies:- esbuild: 0.15.15- postcss: 8.4.19- resolve: 1.22.1- rollup: 2.79.1- optionalDependencies:- fsevents: 2.3.2- dev: true-- /vitefu/[email protected]:- resolution: {integrity: sha512-8CKEIWPm4B4DUDN+h+hVJa9pyNi7rzc5MYmbxhs1wcMakueGFNWB5/DL30USm9qU3xUPnL4/rrLEAwwFiD1tag==}- peerDependencies:- vite: ^3.0.0- peerDependenciesMeta:- vite:- optional: true- dependencies:- vite: 3.2.4- dev: true-- /which/2.0.2:- resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}- engines: {node: '>= 8'}- hasBin: true- dependencies:- isexe: 2.0.0- dev: true-- /word-wrap/1.2.3:- resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==}- engines: {node: '>=0.10.0'}- dev: true-- /wrappy/1.0.2:- resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}- dev: true-- /yallist/4.0.0:- resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}- dev: true-- /yocto-queue/0.1.0:- resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}- engines: {node: '>=10'}- dev: truediff --git a/apps/trpc-experimental/client/postcss.config.cjs b/apps/trpc-experimental/client/postcss.config.cjsdeleted file mode 100644index fe10e55a83..0000000000--- a/apps/trpc-experimental/client/postcss.config.cjs+++ /dev/null@@ -1,13 +0,0 @@-const tailwindcss = require('tailwindcss');-const autoprefixer = require('autoprefixer');--const config = {- plugins: [- //Some plugins, like tailwindcss/nesting, need to run before Tailwind,- tailwindcss(),- //But others, like autoprefixer, need to run after,- autoprefixer- ]-};--module.exports = config;diff --git a/apps/trpc-experimental/client/src/app.d.ts b/apps/trpc-experimental/client/src/app.d.tsdeleted file mode 100644index b527fe7bd8..0000000000--- a/apps/trpc-experimental/client/src/app.d.ts+++ /dev/null@@ -1,12 +0,0 @@-// See https://kit.svelte.dev/docs/types#app-// for information about these interfaces-// and what to do when importing types-declare namespace App {- // interface Locals {}- // interface PageData {}- // interface Error {}- // interface Platform {}-}--declare const GITPOD_WORKSPACE_URL: string;-declare const CODESANDBOX_HOST: string;diff --git a/apps/trpc-experimental/client/src/app.html b/apps/trpc-experimental/client/src/app.htmldeleted file mode 100644index 0061883f21..0000000000--- a/apps/trpc-experimental/client/src/app.html+++ /dev/null@@ -1,12 +0,0 @@-<!DOCTYPE html>-<html lang="en">- <head>- <meta charset="utf-8" />- <link rel="icon" href="%sveltekit.assets%/favicon.png" />- <meta name="viewport" content="width=device-width" />- %sveltekit.head%- </head>- <body>- <div class="h-screen">%sveltekit.body%</div>- </body>-</html>diff --git a/apps/trpc-experimental/client/src/app.postcss b/apps/trpc-experimental/client/src/app.postcssdeleted file mode 100644index 67ad7e2d90..0000000000--- a/apps/trpc-experimental/client/src/app.postcss+++ /dev/null@@ -1,284 +0,0 @@-/* Write your global styles here, in PostCSS syntax */-@tailwind base;-@tailwind components;-@tailwind utilities;--@font-face {- font-family: 'Poppins';- font-style: normal;- font-weight: 400;- src: local(''), url('/poppins-v19-latin-ext_latin_devanagari-regular.woff2') format('woff2'),- url('/poppins-v19-latin-ext_latin_devanagari-regular.woff') format('woff');-}-@font-face {- font-family: 'Poppins';- font-style: normal;- font-weight: 500;- src: local(''), url('/poppins-v19-latin-ext_latin_devanagari-500.woff2') format('woff2'),- url('/poppins-v19-latin-ext_latin_devanagari-500.woff') format('woff');-}--button {- @apply text-sm !important;-}-html {- @apply h-full min-h-full overflow-y-scroll;-}-body {- @apply min-h-screen overflow-x-hidden bg-coolblack text-sm text-white scrollbar-w-1 scrollbar-thumb-coollabs scrollbar-track-coolgray-200;-}--input,-.input {- @apply h-12 w-96 rounded border border-transparent bg-coolgray-200 p-2 text-xs tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:border disabled:border-dashed disabled:border-coolgray-200 disabled:bg-transparent disabled:bg-coolblack md:text-sm;-}-textarea {- @apply min-w-[14rem] rounded border border-transparent bg-coolgray-200 p-2 text-xs tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:border disabled:border-dashed disabled:border-coolgray-200 disabled:bg-transparent md:text-sm;-}--#svelte .custom-select-wrapper .selectContainer.disabled input {- @apply placeholder:text-stone-600;-}--#svelte .custom-select-wrapper .selectContainer input {- @apply text-white;-}--#svelte .custom-select-wrapper .selectContainer {- @apply h-12 rounded bg-coolgray-200 p-2 px-0 text-xs tracking-tight outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 md:text-sm;-}--#svelte .listContainer {- @apply bg-coolgray-400 text-white scrollbar-w-2 scrollbar-thumb-green-500 scrollbar-track-coolgray-200;-}-#svelte .selectedItem {- @apply pl-2;-}--#svelte .item.hover {- @apply bg-coollabs text-white !important;-}-#svelte .item.active {- @apply bg-coolgray-100 text-white;-}--select {- @apply h-12 w-96 rounded bg-coolgray-200 p-2 text-xs font-bold tracking-tight text-white placeholder-stone-600 outline-none transition duration-150 hover:bg-coolgray-500 focus:bg-coolgray-500 disabled:text-stone-600 md:text-sm;-}-.custom-select-wrapper {- --background: rgb(32 32 32);- --inputColor: white;- --multiItemPadding: 0;- --multiSelectPadding: 0 0.5rem 0 0.5rem;- --border: none;- --placeholderColor: rgb(87 83 78);- --listBackground: rgb(32 32 32);- --itemColor: white;- --itemHoverBG: rgb(107 22 237);- --multiItemBG: rgb(32 32 32);- --multiClearHoverBG: transparent;- --multiClearHoverFill: rgb(239 68 68);- --multiItemActiveBG: transparent;- --multiClearBG: transparent;- --clearSelectFocusColor: white;- --clearSelectHoverColor: rgb(239 68 68);- --multiItemBorderRadius: 0.25rem;- --listShadow: none;-}--label {- @apply inline-block;-}-.btn {- @apply text-white text-base min-w-fit no-animation;-}--a {- @apply underline hover:text-white;-}--.content {- @apply p-2 px-4;-}--.title {- @apply text-lg lg:text-2xl font-bold;-}-.subtitle {- @apply text-lg lg:text-xl font-bold text-indigo-300;-}-.label {- @apply text-sm leading-6 font-semibold text-sky-500 dark:text-sky-400;-}-.card {- @apply border bg-coolgray-100 border-coolgray-200 rounded p-2 space-y-2 sticky top-4 mb-2 items-center;-}-.icon-holder {- overflow: hidden;- height: 30px;- border-radius: 5px;- margin-right: 8px;- background: linear-gradient(0deg, #999, #ddd);-}-.instance-status-running {- box-shadow: 1px 4px 5px #3df721;-}-.instance-status-stopped {- box-shadow: 1px 4px 5px rgb(110, 191, 225);-}-.instance-status-error {- box-shadow: 1px 4px 5px #fb00ff;-}-.instance-status-degraded {- box-shadow: 1px 4px 5px #f7b121;-}-.badge-status-healthy,-.badge-status-running {- @apply text-green-500;-}-.badge-status-degraded {- @apply text-green-500;-}-.badge-status-stopped {- @apply text-sky-500;-}-.delete-button {- @apply bg-red-600;-}-.delete-button:hover {- @apply bg-red-500;-}-/* Interchange menu position */-.menu-left {- display: flex;- flex-direction: row;-}-.menu-left .menu-bar {- display: flex;- flex-direction: column;-}-.menu-left .menu-bar > * {- display: flex;- flex-direction: column;-}-.menu-top {- display: flex;- flex-direction: column;-}-.menu-top .menu-bar {- display: flex;- flex-direction: row;-}-.menu-top .menu-bar > * {- display: flex;- flex-direction: row;-}--.nav-main {- @apply fixed top-0 left-0 min-h-screen w-16 min-w-[4rem] overflow-hidden border-r border-stone-800 bg-coolgray-200 scrollbar-w-1 scrollbar-thumb-coollabs scrollbar-track-coolgray-200 xl:overflow-visible;-}--.nav-side {- @apply absolute right-0 top-0 z-50 m-5 flex flex-wrap items-center justify-end space-x-2 bg-coolblack/40 text-white;-}--.add-icon {- @apply rounded p-1 transition duration-200;-}--.icons {- @apply rounded p-2 transition duration-200 hover:bg-coolgray-500 disabled:bg-coolblack disabled:text-coolgray-500 !important;-}--.arrow-right-applications {- @apply -ml-6 px-2 font-bold text-green-500;-}--.border-gradient {- border-bottom: 2px solid transparent;- -o-border-image: linear-gradient(- 0.25turn,- rgba(255, 249, 34),- rgba(255, 0, 128),- rgba(56, 2, 155, 0)- );- border-image: linear-gradient(- 0.25turn,- rgba(255, 249, 34),- rgba(255, 0, 128),- rgba(56, 2, 155, 0)- );- border-image-slice: 1;-}-.border-gradient-full {- border: 4px solid transparent;- -o-border-image: linear-gradient(- 0.25turn,- rgba(255, 249, 34),- rgba(255, 0, 128),- rgba(56, 2, 155, 0)- );- border-image: linear-gradient(- 0.25turn,- rgba(255, 249, 34),- rgba(255, 0, 128),- rgba(56, 2, 155, 0)- );- border-image-slice: 1;-}--.box-selection {- @apply min-w-[16rem] justify-center rounded border-transparent bg-coolgray-200 p-6 hover:border-transparent hover:bg-coolgray-400;-}--.lds-heart {- animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);-}-@keyframes lds-heart {- 0% {- transform: scale(1);- }- 5% {- transform: scale(1.2);- }- 39% {- transform: scale(0.85);- }- 45% {- transform: scale(1);- }- 60% {- transform: scale(0.95);- }- 100% {- transform: scale(0.9);- }-}--.sub-menu {- @apply w-48 text-base font-bold hover:bg-coolgray-500 rounded p-2 hover:text-white text-stone-200 cursor-pointer;-}--.sub-menu-active {- @apply bg-coolgray-500 text-white;-}--.table tbody td,-.table tbody th,-.table thead th {- background-color: transparent;-}-.table * {- border: none;-}--.header {- @apply flex flex-row z-10 w-full py-5 px-5;-}-.burger {- @apply block m-[2px] h-[3px] w-5 rounded;-}--.bg-coollabs-gradient {- @apply bg-gradient-to-r from-purple-500 via-pink-500 to-red-500;-}diff --git a/apps/trpc-experimental/client/src/lib/common.ts b/apps/trpc-experimental/client/src/lib/common.tsdeleted file mode 100644index 6fa60b03bf..0000000000--- a/apps/trpc-experimental/client/src/lib/common.ts+++ /dev/null@@ -1,210 +0,0 @@-import { dev } from '$app/environment';-import { addToast } from './store';-import Cookies from 'js-cookie';-export const asyncSleep = (delay: number) => new Promise((resolve) => setTimeout(resolve, delay));--export function dashify(str: string, options?: any): string {- if (typeof str !== 'string') return str;- return str- .trim()- .replace(/\W/g, (m) => (/[À-ž]/.test(m) ? m : '-'))- .replace(/^-+|-+$/g, '')- .replace(/-{2,}/g, (m) => (options && options.condense ? '-' : m))- .toLowerCase();-}-export function errorNotification(error: any | { message: string }): void {- if (error instanceof Error) {- console.error(error.message)- addToast({- message: error.message,- type: 'error'- });- } else {- console.error(error)- addToast({- message: error,- type: 'error'- });- }-}-export function getRndInteger(min: number, max: number) {- return Math.floor(Math.random() * (max - min + 1)) + min;-}--export function getDomain(domain: string) {- return domain?.replace('https://', '').replace('http://', '');-}--export const notNodeDeployments = ['php', 'docker', 'rust', 'python', 'deno', 'laravel', 'heroku'];-export const staticDeployments = [- 'react',- 'vuejs',- 'static',- 'svelte',- 'gatsby',- 'php',- 'astro',- 'eleventy'-];--export function getAPIUrl() {- if (GITPOD_WORKSPACE_URL) {- const { href } = new URL(GITPOD_WORKSPACE_URL);- const newURL = href.replace('https://', 'https://3001-').replace(/\/$/, '');- return newURL;- }- if (CODESANDBOX_HOST) {- return `https://${CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`;- }- return dev ? `http://${window.location.hostname}:3001` : 'http://localhost:3000';-}-export function getWebhookUrl(type: string) {- if (GITPOD_WORKSPACE_URL) {- const { href } = new URL(GITPOD_WORKSPACE_URL);- const newURL = href.replace('https://', 'https://3001-').replace(/\/$/, '');- if (type === 'github') {- return `${newURL}/webhooks/github/events`;- }- if (type === 'gitlab') {- return `${newURL}/webhooks/gitlab/events`;- }- }- if (CODESANDBOX_HOST) {- const newURL = `https://${CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`;- if (type === 'github') {- return `${newURL}/webhooks/github/events`;- }- if (type === 'gitlab') {- return `${newURL}/webhooks/gitlab/events`;- }- }- return `https://webhook.site/0e5beb2c-4e9b-40e2-a89e-32295e570c21/events`;-}--async function send({- method,- path,- data = null,- headers,- timeout = 120000-}: {- method: string;- path: string;- data?: any;- headers?: any;- timeout?: number;-}): Promise<Record<string, unknown>> {- const token = Cookies.get('token');- const controller = new AbortController();- const id = setTimeout(() => controller.abort(), timeout);- const opts: any = { method, headers: {}, body: null, signal: controller.signal };- if (data && Object.keys(data).length > 0) {- const parsedData = data;- for (const [key, value] of Object.entries(data)) {- if (value === '') {- parsedData[key] = null;- }- }- if (parsedData) {- opts.headers['Content-Type'] = 'application/json';- opts.body = JSON.stringify(parsedData);- }- }-- if (headers) {- opts.headers = {- ...opts.headers,- ...headers- };- }- if (token && !path.startsWith('https://')) {- opts.headers = {- ...opts.headers,- Authorization: `Bearer ${token}`- };- }- if (!path.startsWith('https://')) {- path = `/api/v1${path}`;- }-- if (dev && !path.startsWith('https://')) {- path = `${getAPIUrl()}${path}`;- }- if (method === 'POST' && data && !opts.body) {- opts.body = data;- }- const response = await fetch(`${path}`, opts);-- clearTimeout(id);-- const contentType = response.headers.get('content-type');-- let responseData = {};- if (contentType) {- if (contentType?.indexOf('application/json') !== -1) {- responseData = await response.json();- } else if (contentType?.indexOf('text/plain') !== -1) {- responseData = await response.text();- } else {- return {};- }- } else {- return {};- }- if (!response.ok) {- if (- response.status === 401 &&- !path.startsWith('https://api.github') &&- !path.includes('/v4/')- ) {- Cookies.remove('token');- }-- throw responseData;- }- return responseData;-}--export function get(path: string, headers?: Record<string, unknown>): Promise<Record<string, any>> {- return send({ method: 'GET', path, headers });-}--export function del(- path: string,- data: Record<string, unknown>,- headers?: Record<string, unknown>-): Promise<Record<string, any>> {- return send({ method: 'DELETE', path, data, headers });-}--export function post(- path: string,- data: Record<string, unknown> | FormData,- headers?: Record<string, unknown>-): Promise<Record<string, any>> {- return send({ method: 'POST', path, data, headers });-}--export function put(- path: string,- data: Record<string, unknown>,- headers?: Record<string, unknown>-): Promise<Record<string, any>> {- return send({ method: 'PUT', path, data, headers });-}-export function changeQueryParams(buildId: string) {- const queryParams = new URLSearchParams(window.location.search);- queryParams.set('buildId', buildId);- // @ts-ignore- return history.pushState(null, null, '?' + queryParams.toString());-}--export const dateOptions: any = {- year: 'numeric',- month: 'short',- day: '2-digit',- hour: 'numeric',- minute: 'numeric',- second: 'numeric',- hour12: false-};\ No newline at end of filediff --git a/apps/trpc-experimental/client/src/lib/components/Beta.svelte b/apps/trpc-experimental/client/src/lib/components/Beta.sveltedeleted file mode 100644index 279401fcf4..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Beta.svelte+++ /dev/null@@ -1 +0,0 @@-<span class="badge bg-coollabs-gradient rounded text-white font-normal"> BETA </span>\ No newline at end of filediff --git a/apps/trpc-experimental/client/src/lib/components/CopyPasswordField.svelte b/apps/trpc-experimental/client/src/lib/components/CopyPasswordField.sveltedeleted file mode 100644index a0a4747506..0000000000--- a/apps/trpc-experimental/client/src/lib/components/CopyPasswordField.svelte+++ /dev/null@@ -1,156 +0,0 @@-<script lang="ts">- import { browser } from '$app/environment';- import { addToast } from '$lib/store';- let showPassword = false;-- export let value: string;- export let disabled = false;- export let isPasswordField = false;- export let readonly = false;- export let textarea = false;- export let required = false;- export let pattern: string | null | undefined = null;- export let id: string;- export let name: string;- export let placeholder = '';- export let inputStyle = '';-- let disabledClass = 'input input-primary bg-coolback disabled:bg-coolblack w-full';- let isHttps = browser && window.location.protocol === 'https:';-- function copyToClipboard() {- if (isHttps && navigator.clipboard) {- navigator.clipboard.writeText(value);- addToast({- message: 'Copied to clipboard.',- type: 'success'- });- }- }-</script>--<div class="relative">- {#if !isPasswordField || showPassword}- {#if textarea}- <textarea- style={inputStyle}- rows="5"- class={disabledClass}- class:pr-10={true}- class:pr-20={value && isHttps}- class:border={required && !value}- class:border-red-500={required && !value}- {placeholder}- type="text"- {id}- {pattern}- {required}- {readonly}- {disabled}- {name}>{value}</textarea- >- {:else}- <input- style={inputStyle}- class={disabledClass}- type="text"- class:pr-10={true}- class:pr-20={value && isHttps}- class:border={required && !value}- class:border-red-500={required && !value}- {id}- {name}- {required}- {pattern}- {readonly}- bind:value- {disabled}- {placeholder}- />- {/if}- {:else}- <input- style={inputStyle}- class={disabledClass}- class:pr-10={true}- class:pr-20={value && isHttps}- class:border={required && !value}- class:border-red-500={required && !value}- type="password"- {id}- {name}- {readonly}- {pattern}- {required}- bind:value- {disabled}- {placeholder}- />- {/if}-- <div class="absolute top-0 right-0 flex justify-center items-center h-full cursor-pointer text-stone-600 hover:text-white mr-3">- <div class="flex space-x-2">- {#if isPasswordField}- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div on:click={() => (showPassword = !showPassword)}>- {#if showPassword}- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"- />- </svg>- {:else}- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"- />- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"- />- </svg>- {/if}- </div>- {/if}- {#if value && isHttps}- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div on:click={copyToClipboard}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="8" y="8" width="12" height="12" rx="2" />- <path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />- </svg>- </div>- {/if}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/lib/components/DocLink.svelte b/apps/trpc-experimental/client/src/lib/components/DocLink.sveltedeleted file mode 100644index 803b485838..0000000000--- a/apps/trpc-experimental/client/src/lib/components/DocLink.svelte+++ /dev/null@@ -1,44 +0,0 @@-<script lang="ts">- import ExternalLink from './ExternalLink.svelte';- import Tooltip from './Tooltip.svelte';- export let url = 'https://docs.coollabs.io';- export let text: any = '';- export let isExternal = false;- let id =- 'cool-' +- url- .split('')- .map((c) => c.charCodeAt(0).toString(16).padStart(2, '0'))- .join('')- .slice(-16);-</script>--<a- {id}- href={url}- target="_blank noreferrer"- class="flex no-underline inline-block cursor-pointer"- class:icons={!text}->- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- class="w-6 h-6"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"- />- </svg>- {text}- {#if isExternal}- <ExternalLink />- {/if}-</a>-{#if !text}- <Tooltip triggeredBy={`#${id}`}>See details in the documentation</Tooltip>-{/if}diff --git a/apps/trpc-experimental/client/src/lib/components/Explainer.svelte b/apps/trpc-experimental/client/src/lib/components/Explainer.sveltedeleted file mode 100644index 924ce70d60..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Explainer.svelte+++ /dev/null@@ -1,38 +0,0 @@-<script lang="ts">- // import { onMount } from 'svelte';-- // import Tooltip from './Tooltip.svelte';- export let explanation = '';- export let position = 'dropdown-right';- // let id: any;- // let self: any;- // onMount(() => {- // id = `info-${self.offsetLeft}-${self.offsetTop}`;- // });-</script>--<div class={`dropdown dropdown-end ${position}`}>- <!-- svelte-ignore a11y-label-has-associated-control -->- <!-- svelte-ignore a11y-no-noninteractive-tabindex -->- <label tabindex="0" class="btn btn-circle btn-ghost btn-xs text-sky-500">- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- class="w-4 h-4 stroke-current"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"- /></svg- >- </label>- <!-- svelte-ignore a11y-no-noninteractive-tabindex -->- <div tabindex="0" class="card compact dropdown-content shadow bg-coolgray-400 rounded w-64">- <div class="card-body">- <!-- <h2 class="card-title">You needed more info?</h2> -->- <p class="text-xs font-normal">{@html explanation}</p>- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/lib/components/ExternalLink.svelte b/apps/trpc-experimental/client/src/lib/components/ExternalLink.sveltedeleted file mode 100644index 62f2e312a0..0000000000--- a/apps/trpc-experimental/client/src/lib/components/ExternalLink.svelte+++ /dev/null@@ -1,10 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- class="w-3 h-3 text-white"->- <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25" />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/Setting.svelte b/apps/trpc-experimental/client/src/lib/components/Setting.sveltedeleted file mode 100644index 555323b378..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Setting.svelte+++ /dev/null@@ -1,87 +0,0 @@-<script lang="ts">- import Beta from './Beta.svelte';- import Explaner from './Explainer.svelte';- import Tooltip from './Tooltip.svelte';-- export let id: any;- export let customClass: any = null;- export let setting: any;- export let title: any;- export let isBeta: any = false;- export let description: any = null;- export let isCenter = true;- export let disabled = false;- export let dataTooltip: any = null;- export let loading = false;- let triggeredBy = `#${id}`;-</script>--<div class="flex items-center py-4 pr-8">- <div class="flex w-96 flex-col">- <!-- svelte-ignore a11y-label-has-associated-control -->- <label>- {title}- {#if isBeta}- <Beta />- {/if}- {#if description && description !== ''}- <Explaner explanation={description} />- {/if}- </label>- </div>-</div>-<div class:text-center={isCenter} class={`flex justify-center ${customClass}`}>- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div- on:click- aria-pressed="false"- class="relative mx-20 inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out"- class:opacity-50={disabled || loading}- class:bg-green-600={!loading && setting}- class:bg-stone-700={!loading && !setting}- class:bg-yellow-500={loading}- {id}- >- <span class="sr-only">Use setting</span>- <span- class="pointer-events-none relative inline-block h-5 w-5 transform rounded-full bg-white shadow transition duration-200 ease-in-out"- class:translate-x-5={setting}- class:translate-x-0={!setting}- >- <span- class=" absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-200 ease-in"- class:opacity-0={setting}- class:opacity-100={!setting}- class:animate-spin={loading}- aria-hidden="true"- >- <svg class="h-3 w-3 bg-white text-red-600" fill="none" viewBox="0 0 12 12">- <path- d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- />- </svg>- </span>- <span- class="absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-100 ease-out"- aria-hidden="true"- class:opacity-100={setting}- class:opacity-0={!setting}- class:animate-spin={loading}- >- <svg class="h-3 w-3 bg-white text-green-600" fill="currentColor" viewBox="0 0 12 12">- <path- d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"- />- </svg>- </span>- </span>- </div>-</div>--{#if dataTooltip}- <Tooltip {triggeredBy} placement="top">{dataTooltip}</Tooltip>-{/if}diff --git a/apps/trpc-experimental/client/src/lib/components/SimpleExplainer.svelte b/apps/trpc-experimental/client/src/lib/components/SimpleExplainer.sveltedeleted file mode 100644index 6a3198c278..0000000000--- a/apps/trpc-experimental/client/src/lib/components/SimpleExplainer.svelte+++ /dev/null@@ -1,6 +0,0 @@-<script lang="ts">- export let text: string;- export let customClass = 'max-w-[24rem]';-</script>--<div class="p-2 text-xs text-stone-400 {customClass}">{@html text}</div>\ No newline at end of filediff --git a/apps/trpc-experimental/client/src/lib/components/Toast.svelte b/apps/trpc-experimental/client/src/lib/components/Toast.sveltedeleted file mode 100644index bb34929cdf..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Toast.svelte+++ /dev/null@@ -1,64 +0,0 @@-<script>- import { createEventDispatcher } from 'svelte';- const dispatch = createEventDispatcher();- export let type = 'info';- function success() {- if (type === 'success') {- return 'bg-dark lg:bg-primary';- }- }-</script>--<!-- svelte-ignore a11y-click-events-have-key-events -->-<div- on:click={() => dispatch('click')}- on:mouseover={() => dispatch('pause')}- on:focus={() => dispatch('pause')}- on:mouseout={() => dispatch('resume')}- on:blur={() => dispatch('resume')}- class={` flex flex-row justify-center alert shadow-lg text-white hover:scale-105 transition-all duration-100 cursor-pointer rounded ${success()}`}- class:alert-error={type === 'error'}- class:alert-info={type === 'info'}->- {#if type === 'success'}- <svg- xmlns="http://www.w3.org/2000/svg"- class="stroke-current flex-shrink-0 h-6 w-6"- fill="none"- viewBox="0 0 24 24"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"- /></svg- >- {:else if type === 'error'}- <svg- xmlns="http://www.w3.org/2000/svg"- class="stroke-current flex-shrink-0 h-6 w-6"- fill="none"- viewBox="0 0 24 24"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"- /></svg- >- {:else if type === 'info'}- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- class="stroke-current flex-shrink-0 w-6 h-6"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"- /></svg- >- {/if}- <slot />-</div>diff --git a/apps/trpc-experimental/client/src/lib/components/Toasts.svelte b/apps/trpc-experimental/client/src/lib/components/Toasts.sveltedeleted file mode 100644index 929189bcb4..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Toasts.svelte+++ /dev/null@@ -1,25 +0,0 @@-<script lang="ts">- import Toast from './Toast.svelte';- import { dismissToast, pauseToast, resumeToast, toasts } from '$lib/store';-</script>--{#if $toasts.length > 0}- <section>- <article class="toast toast-top toast-center rounded-none w-2/3 lg:w-[20rem]" role="alert">- {#each $toasts as toast (toast.id)}- <Toast- type={toast.type}- on:resume={() => resumeToast(toast.id)}- on:pause={() => pauseToast(toast.id)}- on:click={() => dismissToast(toast.id)}>{@html toast.message}</Toast- >- {/each}- </article>- </section>-{/if}--<style lang="postcss">- section {- @apply fixed top-0 left-0 right-0 w-full flex flex-col mt-4 justify-center z-[1000];- }-</style>diff --git a/apps/trpc-experimental/client/src/lib/components/Tooltip.svelte b/apps/trpc-experimental/client/src/lib/components/Tooltip.sveltedeleted file mode 100644index e0591a9d4c..0000000000--- a/apps/trpc-experimental/client/src/lib/components/Tooltip.svelte+++ /dev/null@@ -1,10 +0,0 @@-<script lang="ts">- import { Tooltip } from 'flowbite-svelte';- export let placement = 'bottom';- export let color = 'bg-coollabs';- export let triggeredBy = '#tooltip-default';-</script>--<Tooltip {triggeredBy} {placement} arrow={false} defaultClass={color + ' font-thin text-xs text-left border-none p-2'} style="custom"- ><slot /></Tooltip->diff --git a/apps/trpc-experimental/client/src/lib/components/UpdateAvailable.svelte b/apps/trpc-experimental/client/src/lib/components/UpdateAvailable.sveltedeleted file mode 100644index bda1f02cc0..0000000000--- a/apps/trpc-experimental/client/src/lib/components/UpdateAvailable.svelte+++ /dev/null@@ -1,206 +0,0 @@-<script lang="ts">- import { dev } from '$app/environment';- import {- addToast,- appSession,- features,- updateLoading,- isUpdateAvailable,- latestVersion- } from '$lib/store';- import { asyncSleep, errorNotification } from '$lib/common';- import { onMount } from 'svelte';- import Tooltip from './Tooltip.svelte';-- let updateStatus: any = {- found: false,- loading: false,- success: null- };- async function update() {- updateStatus.loading = true;- try {- if (dev) {- localStorage.setItem('lastVersion', $appSession.version);- await asyncSleep(1000);- updateStatus.loading = false;- return window.location.reload();- } else {- localStorage.setItem('lastVersion', $appSession.version);- // await post(`/update`, { type: 'update', latestVersion: $latestVersion });- addToast({- message: 'Update completed.<br><br>Waiting for the new version to start...',- type: 'success'- });-- let reachable = false;- let tries = 0;- do {- await asyncSleep(4000);- try {- // await get(`/undead`);- reachable = true;- } catch (error) {- reachable = false;- }- if (reachable) break;- tries++;- } while (!reachable || tries < 120);- addToast({- message: 'New version reachable. Reloading...',- type: 'success'- });- updateStatus.loading = false;- updateStatus.success = true;- await asyncSleep(3000);- return window.location.reload();- }- } catch (error) {- updateStatus.success = false;- updateStatus.loading = false;- return errorNotification(error);- }- }- onMount(async () => {- if ($appSession.userId) {- const overrideVersion = $features.latestVersion;- if ($appSession.teamId === '0') {- if ($updateLoading === true) return;- try {- $updateLoading = true;- // const data = await get(`/update`);- if (overrideVersion || data?.isUpdateAvailable) {- $latestVersion = overrideVersion || data.latestVersion;- if (overrideVersion) {- $isUpdateAvailable = true;- } else {- $isUpdateAvailable = data.isUpdateAvailable;- }- }- } catch (error) {- return errorNotification(error);- } finally {- $updateLoading = false;- }- }- }- });-</script>--<div class="py-0 lg:py-2">- {#if $appSession.teamId === '0'}- {#if $isUpdateAvailable}- <button- id="update"- disabled={updateStatus.success === false}- on:click={update}- class="icons bg-coollabs-gradient text-white duration-75 hover:scale-105 w-full"- >- {#if updateStatus.loading}- <svg- xmlns="http://www.w3.org/2000/svg"- class="lds-heart h-8 w-8 mx-auto"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"- />- </svg>- {:else if updateStatus.success === null}- <div class="flex items-center justify-center space-x-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-8 w-8"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="12" y1="8" x2="8" y2="12" />- <line x1="12" y1="8" x2="12" y2="16" />- <line x1="16" y1="12" x2="12" y2="8" />- </svg>- <span class="flex lg:hidden">Update available</span>- </div>- {:else if updateStatus.success}- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" class="h-8 w-8"- ><path- fill="#DD2E44"- d="M11.626 7.488c-.112.112-.197.247-.268.395l-.008-.008L.134 33.141l.011.011c-.208.403.14 1.223.853 1.937.713.713 1.533 1.061 1.936.853l.01.01L28.21 24.735l-.008-.009c.147-.07.282-.155.395-.269 1.562-1.562-.971-6.627-5.656-11.313-4.687-4.686-9.752-7.218-11.315-5.656z"- /><path- fill="#EA596E"- d="M13 12L.416 32.506l-.282.635.011.011c-.208.403.14 1.223.853 1.937.232.232.473.408.709.557L17 17l-4-5z"- /><path- fill="#A0041E"- d="M23.012 13.066c4.67 4.672 7.263 9.652 5.789 11.124-1.473 1.474-6.453-1.118-11.126-5.788-4.671-4.672-7.263-9.654-5.79-11.127 1.474-1.473 6.454 1.119 11.127 5.791z"- /><path- fill="#AA8DD8"- d="M18.59 13.609c-.199.161-.459.245-.734.215-.868-.094-1.598-.396-2.109-.873-.541-.505-.808-1.183-.735-1.862.128-1.192 1.324-2.286 3.363-2.066.793.085 1.147-.17 1.159-.292.014-.121-.277-.446-1.07-.532-.868-.094-1.598-.396-2.11-.873-.541-.505-.809-1.183-.735-1.862.13-1.192 1.325-2.286 3.362-2.065.578.062.883-.057 1.012-.134.103-.063.144-.123.148-.158.012-.121-.275-.446-1.07-.532-.549-.06-.947-.552-.886-1.102.059-.549.55-.946 1.101-.886 2.037.219 2.973 1.542 2.844 2.735-.13 1.194-1.325 2.286-3.364 2.067-.578-.063-.88.057-1.01.134-.103.062-.145.123-.149.157-.013.122.276.446 1.071.532 2.037.22 2.973 1.542 2.844 2.735-.129 1.192-1.324 2.286-3.362 2.065-.578-.062-.882.058-1.012.134-.104.064-.144.124-.148.158-.013.121.276.446 1.07.532.548.06.947.553.886 1.102-.028.274-.167.511-.366.671z"- /><path- fill="#77B255"- d="M30.661 22.857c1.973-.557 3.334.323 3.658 1.478.324 1.154-.378 2.615-2.35 3.17-.77.216-1.001.584-.97.701.034.118.425.312 1.193.095 1.972-.555 3.333.325 3.657 1.479.326 1.155-.378 2.614-2.351 3.17-.769.216-1.001.585-.967.702.033.117.423.311 1.192.095.53-.149 1.084.16 1.233.691.148.532-.161 1.084-.693 1.234-1.971.555-3.333-.323-3.659-1.479-.324-1.154.379-2.613 2.353-3.169.77-.217 1.001-.584.967-.702-.032-.117-.422-.312-1.19-.096-1.974.556-3.334-.322-3.659-1.479-.325-1.154.378-2.613 2.351-3.17.768-.215.999-.585.967-.701-.034-.118-.423-.312-1.192-.096-.532.15-1.083-.16-1.233-.691-.149-.53.161-1.082.693-1.232z"- /><path- fill="#AA8DD8"- d="M23.001 20.16c-.294 0-.584-.129-.782-.375-.345-.432-.274-1.061.156-1.406.218-.175 5.418-4.259 12.767-3.208.547.078.927.584.849 1.131-.078.546-.58.93-1.132.848-6.493-.922-11.187 2.754-11.233 2.791-.186.148-.406.219-.625.219z"- /><path- fill="#77B255"- d="M5.754 16c-.095 0-.192-.014-.288-.042-.529-.159-.829-.716-.67-1.245 1.133-3.773 2.16-9.794.898-11.364-.141-.178-.354-.353-.842-.316-.938.072-.849 2.051-.848 2.071.042.551-.372 1.031-.922 1.072-.559.034-1.031-.372-1.072-.923-.103-1.379.326-4.035 2.692-4.214 1.056-.08 1.933.287 2.552 1.057 2.371 2.951-.036 11.506-.542 13.192-.13.433-.528.712-.958.712z"- /><circle fill="#5C913B" cx="25.5" cy="9.5" r="1.5" /><circle- fill="#9266CC"- cx="2"- cy="18"- r="2"- /><circle fill="#5C913B" cx="32.5" cy="19.5" r="1.5" /><circle- fill="#5C913B"- cx="23.5"- cy="31.5"- r="1.5"- /><circle fill="#FFCC4D" cx="28" cy="4" r="2" /><circle- fill="#FFCC4D"- cx="32.5"- cy="8.5"- r="1.5"- /><circle fill="#FFCC4D" cx="29.5" cy="12.5" r="1.5" /><circle- fill="#FFCC4D"- cx="7.5"- cy="23.5"- r="1.5"- /></svg- >- {:else}- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" class="h-9 w-8"- ><path- fill="#FFCC4D"- d="M36 18c0 9.941-8.059 18-18 18S0 27.941 0 18 8.059 0 18 0s18 8.059 18 18"- /><path- fill="#664500"- d="M22 27c0 2.763-1.791 3-4 3-2.21 0-4-.237-4-3 0-2.761 1.79-6 4-6 2.209 0 4 3.239 4 6zm8-12c-.124 0-.25-.023-.371-.072-5.229-2.091-7.372-5.241-7.461-5.374-.307-.46-.183-1.081.277-1.387.459-.306 1.077-.184 1.385.274.019.027 1.93 2.785 6.541 4.629.513.206.763.787.558 1.3-.157.392-.533.63-.929.63zM6 15c-.397 0-.772-.238-.929-.629-.205-.513.044-1.095.557-1.3 4.612-1.844 6.523-4.602 6.542-4.629.308-.456.929-.577 1.387-.27.457.308.581.925.275 1.383-.089.133-2.232 3.283-7.46 5.374C6.25 14.977 6.124 15 6 15z"- /><path fill="#5DADEC" d="M24 16h4v19l-4-.046V16zM8 35l4-.046V16H8v19z" /><path- fill="#664500"- d="M14.999 18c-.15 0-.303-.034-.446-.105-3.512-1.756-7.07-.018-7.105 0-.495.249-1.095.046-1.342-.447-.247-.494-.047-1.095.447-1.342.182-.09 4.498-2.197 8.895 0 .494.247.694.848.447 1.342-.176.35-.529.552-.896.552zm14 0c-.15 0-.303-.034-.446-.105-3.513-1.756-7.07-.018-7.105 0-.494.248-1.094.047-1.342-.447-.247-.494-.047-1.095.447-1.342.182-.09 4.501-2.196 8.895 0 .494.247.694.848.447 1.342-.176.35-.529.552-.896.552z"- /><ellipse fill="#5DADEC" cx="18" cy="34" rx="18" ry="2" /><ellipse- fill="#E75A70"- cx="18"- cy="27"- rx="3"- ry="2"- /></svg- >- {/if}- </button>- <Tooltip triggeredBy="#update" placement="right" color="bg-coolgray-200 text-white"- >New Version Available!</Tooltip- >- {/if}- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/Delete.svelte b/apps/trpc-experimental/client/src/lib/components/icons/Delete.sveltedeleted file mode 100644index f04b3952ce..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/Delete.svelte+++ /dev/null@@ -1,17 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"->- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="4" y1="7" x2="20" y2="7" />- <line x1="10" y1="11" x2="10" y2="17" />- <line x1="14" y1="11" x2="14" y2="17" />- <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" />- <path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/RemoteLink.svelte b/apps/trpc-experimental/client/src/lib/components/icons/RemoteLink.sveltedeleted file mode 100644index 7622822a2b..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/RemoteLink.svelte+++ /dev/null@@ -1,10 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- class="w-3 h-3 text-white"->- <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25" />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/ApplicationIcons.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/ApplicationIcons.sveltedeleted file mode 100644index 5e4f83e94d..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/ApplicationIcons.svelte+++ /dev/null@@ -1,47 +0,0 @@-<script lang="ts">- import * as Icons from '$lib/components/icons/applications';- export let application: any;- export let isAbsolute = true;-</script>--{#if application.buildPack?.toLowerCase() === 'rust'}- <Icons.Rust {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'node'}- <Icons.Nodejs {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'react'}- <Icons.React {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'svelte'}- <Icons.Svelte {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'vuejs'}- <Icons.Vuejs {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'php'}- <Icons.Php {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'python'}- <Icons.Python {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'static'}- <Icons.Static {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'nestjs'}- <Icons.Nestjs {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'nuxtjs'}- <Icons.Nuxtjs {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'nextjs'}- <Icons.Nextjs {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'gatsby'}- <Icons.Gatsby {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'docker'}- <Icons.Docker {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'astro'}- <Icons.Astro {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'eleventy'}- <Icons.Eleventy {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'deno'}- <Icons.Deno {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'laravel'}- <Icons.Laravel {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'heroku'}- <Icons.Heroku {isAbsolute} />-{:else if application.buildPack?.toLowerCase() === 'compose'}- <Icons.Compose {isAbsolute} />-{:else if application.simpleDockerfile}- <Icons.Docker {isAbsolute} />-{/if}diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Astro.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Astro.sveltedeleted file mode 100644index 2344372ab6..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Astro.svelte+++ /dev/null@@ -1,25 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}- viewBox="0 0 256 256"- fill="none"- xmlns="http://www.w3.org/2000/svg"->- <path- id="a"- fill="#302649"- fill-rule="evenodd"- clip-rule="evenodd"- d="M163.008 18.929c1.944 2.413 2.935 5.67 4.917 12.181l43.309 142.27a180.277 180.277 0 00-51.778-17.53l-28.198-95.29a3.67 3.67 0 00-7.042.01l-27.857 95.232a180.225 180.225 0 00-52.01 17.557l43.52-142.281c1.99-6.502 2.983-9.752 4.927-12.16a15.999 15.999 0 016.484-4.798c2.872-1.154 6.271-1.154 13.07-1.154h31.085c6.807 0 10.211 0 13.086 1.157a16.004 16.004 0 016.487 4.806z"- />- <path- id="flame"- fill="#EF661E"- fill-rule="evenodd"- clip-rule="evenodd"- d="M168.19 180.151c-7.139 6.105-21.39 10.268-37.804 10.268-20.147 0-37.033-6.272-41.513-14.707-1.602 4.835-1.961 10.367-1.961 13.902 0 0-1.056 17.355 11.015 29.426 0-6.268 5.081-11.349 11.349-11.349 10.743 0 10.731 9.373 10.721 16.977v.679c0 11.542 7.054 21.436 17.086 25.606a23.27 23.27 0 01-2.339-10.2c0-11.008 6.463-15.107 13.974-19.87 5.976-3.79 12.616-8.001 17.192-16.449a31.024 31.024 0 003.743-14.82c0-3.299-.513-6.479-1.463-9.463z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Compose.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Compose.sveltedeleted file mode 100644index f0482e7760..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Compose.svelte+++ /dev/null@@ -1,9 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<img- alt="docker compose logo"- class={isAbsolute ? 'w-16 h-16 absolute top-0 left-0 -m-8' : 'w-8 h-8 mx-auto'}- src="/icons/compose.png"-/>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Deno.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Deno.sveltedeleted file mode 100644index 25eee8132d..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Deno.svelte+++ /dev/null@@ -1,30 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white-500'- : 'mx-auto w-8 h-8 text-white-500'}- xmlns="http://www.w3.org/2000/svg"- aria-hidden="true"- focusable="false"- data-prefix="fab"- data-icon="deno"- role="img"- width="256.000000pt"- height="256.000000pt"- viewBox="0 0 1024.000000 1024.000000"- preserveAspectRatio="xMidYMid meet"->- <metadata> Created by potrace 1.15, written by Peter Selinger 2001-2017 </metadata>- <g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)" fill="#ffffff">- <path- d="M4720 9174 c-19 -2 -80 -9 -135 -14 -782 -82 -1552 -413 -2180 -939 -116 -96 -380 -360 -476 -476 -520 -621 -824 -1318 -936 -2143 -25 -183 -25 -801 0 -984 112 -825 416 -1522 936 -2143 96 -116 360 -380 476 -476 621 -520 1318 -824 2143 -936 183 -25 801 -25 984 0 825 112 1522 416 2143 936 116 96 380 360 476 476 520 621 824 1318 936 2143 25 183 25 801 0 984 -112 825 -416 1522 -936 2143 -96 116 -360 380 -476 476 -619 518 -1323 826 -2137 935 -88 12 -216 17 -453 19 -181 2 -346 1 -365 -1z m50 -432 c0 -117 8 -371 19 -612 6 -118 13 -287 16 -375 11 -312 44 -1131 49 -1204 l5 -73 -45 5 c-25 2 -48 8 -52 11 -3 4 -10 73 -14 154 -18 356 -77 1737 -83 1939 l-6 222 28 4 c15 2 40 5 56 6 l27 1 0 -78z m957 24 c1 -1 4 -303 7 -671 4 -369 9 -700 12 -736 3 -37 2 -69 -3 -71 -4 -3 -29 -3 -54 0 l-46 4 -7 291 c-4 161 -9 339 -11 397 -8 177 -15 778 -9 793 4 11 15 12 57 5 29 -6 53 -11 54 -12z m-2313 -335 c6 -9 53 -560 111 -1281 19 -245 38 -469 41 -497 5 -51 4 -53 -28 -73 -18 -11 -36 -20 -40 -20 -3 0 -9 26 -12 58 -14 130 -68 758 -106 1212 -22 267 -42 506 -45 532 -5 44 -4 48 22 62 32 17 50 20 57 7z m2753 -201 c28 -10 31 -15 37 -72 10 -100 7 -578 -4 -578 -29 0 -89 34 -94 53 -3 12 -6 154 -6 315 0 325 -4 306 67 282z m-1847 -47 c0 -27 7 -176 15 -333 8 -157 17 -356 21 -442 7 -174 9 -168 -58 -172 -33 -1 -33 -1 -35 49 -2 28 -7 115 -13 195 -5 80 -17 253 -25 385 -8 132 -18 263 -21 291 -6 50 -5 52 22 62 16 6 44 11 62 11 32 1 32 1 32 -46z m2774 -137 l34 -14 7 -134 c3 -73 5 -231 3 -350 l-3 -218 -42 21 -42 20 -3 332 c-2 183 -1 338 1 345 4 15 4 15 45 -2z m-1826 -131 c6 -6 20 -491 21 -737 l1 -148 -47 7 c-27 3 -49 6 -50 7 -3 2 -33 743 -33 815 l0 74 51 -6 c29 -4 54 -9 57 -12z m2303 -71 c12 -14 14 -233 17 -1441 3 -1387 3 -1423 -15 -1423 -11 0 -26 6 -35 13 -15 11 -17 132 -22 1317 -4 718 -9 1370 -12 1449 l-6 144 29 -21 c17 -12 36 -29 44 -38z m-897 -205 c5 -4 10 -61 11 -126 5 -221 6 -1576 1 -1580 -2 -2 -20 3 -40 11 l-36 15 0 851 0 850 28 -6 c15 -4 31 -10 36 -15z m-2760 -56 c3 -27 8 -88 11 -138 3 -49 10 -161 16 -248 12 -176 10 -187 -47 -187 -30 0 -34 3 -38 33 -10 59 -45 551 -40 559 5 7 57 25 81 27 6 1 14 -20 17 -46z m-1654 -255 c11 -106 33 -328 49 -493 17 -165 31 -305 31 -311 0 -12 -77 -50 -85 -42 -5 5 -105 890 -105 930 0 24 77 125 87 114 3 -2 13 -91 23 -198z m3921 -105 l29 -17 1 -216 c1 -118 3 -250 3 -293 2 -90 -9 -105 -63 -86 l-31 11 0 86 c0 48 -3 187 -7 310 l-6 222 23 0 c12 0 35 -8 51 -17z m-3482 -388 c18 -192 47 -516 66 -720 l34 -370 -39 -39 -38 -39 -7 79 c-4 44 -24 248 -45 454 -21 206 -51 505 -66 664 l-28 288 39 36 c35 33 39 34 46 16 4 -10 21 -176 38 -369z m-749 -121 c22 -197 80 -721 130 -1164 50 -443 97 -870 106 -950 8 -80 22 -201 30 -270 14 -117 14 -125 -2 -137 -24 -18 -34 -16 -34 5 0 9 -9 85 -20 167 -18 137 -48 369 -115 890 -14 105 -41 314 -60 465 -20 151 -49 376 -65 500 -16 124 -43 336 -60 473 -18 136 -29 257 -26 270 7 27 66 121 72 115 2 -3 22 -166 44 -364z m-306 -431 c15 -120 43 -339 62 -488 19 -148 43 -333 54 -410 l19 -140 -21 -18 c-12 -10 -24 -14 -28 -10 -4 4 -12 44 -18 88 -6 44 -43 301 -83 570 l-71 490 23 68 c12 37 25 67 28 67 4 0 19 -98 35 -217z m5490 131 c14 -14 16 -76 16 -535 l0 -519 -28 0 c-61 0 -60 -15 -64 553 l-3 517 32 0 c17 0 39 -7 47 -16z m-2189 -179 c226 -34 423 -97 618 -197 126 -65 186 -110 326 -244 208 -199 336 -373 456 -619 175 -358 243 -675 329 -1525 39 -381 90 -1072 101 -1355 3 -82 10 -217 16 -300 11 -176 24 -152 -131 -227 -215 -104 -422 -176 -695 -243 -334 -82 -550 -108 -880 -109 l-240 -1 2 115 c0 63 6 210 12 325 30 557 24 1260 -15 1650 -22 224 -65 496 -89 556 -5 13 18 24 117 58 181 63 338 142 362 181 43 74 -34 180 -132 180 -17 0 -68 -18 -115 -39 -224 -103 -673 -224 -932 -251 -179 -19 -457 -8 -650 27 -105 19 -293 90 -450 171 -181 94 -292 219 -325 367 -18 80 -13 240 10 330 25 99 95 243 159 327 285 375 873 700 1476 814 192 36 464 40 670 9z m3085 -31 c36 -15 40 -19 40 -53 2 -273 -4 -897 -9 -923 -1 -9 -53 -10 -75 -2 -14 5 -16 59 -16 500 0 316 4 494 10 494 5 0 28 -7 50 -16z m437 -549 l36 -15 -7 -828 c-8 -1055 -9 -1086 -47 -1177 -62 -149 -59 -179 -53 475 2 327 7 658 9 735 2 77 4 294 5 483 0 228 3 342 10 342 6 0 27 -7 47 -15z m-6014 -249 c6 -81 4 -89 -25 -153 l-32 -68 -12 100 c-19 160 -19 167 19 191 17 12 35 20 38 18 3 -2 9 -42 12 -88z m-618 -603 c9 -82 79 -626 115 -893 54 -413 58 -472 34 -447 -3 3 -26 142 -50 309 -156 1078 -155 1071 -142 1079 27 18 36 8 43 -48z m720 -458 c6 -25 35 -296 35 -329 0 -28 -36 -54 -52 -38 -5 5 -18 90 -28 188 -11 99 -22 202 -25 229 l-6 50 35 -40 c20 -22 38 -49 41 -60z m807 -377 c11 -10 18 -50 27 -158 15 -195 17 -180 -24 -180 -42 0 -41 -3 -55 173 -14 179 -14 177 13 177 13 0 30 -6 39 -12z m792 -15 c2 -10 7 -70 11 -133 3 -63 12 -205 20 -315 28 -404 29 -455 12 -455 -19 0 -21 15 -43 300 -8 118 -23 304 -33 413 -9 109 -15 200 -12 202 11 12 40 3 45 -12z m-1880 -192 c6 -9 44 -329 91 -766 14 -132 28 -259 31 -283 l5 -43 -25 16 c-19 13 -26 26 -26 49 0 63 -43 478 -76 732 -19 144 -34 271 -34 283 0 21 24 29 34 12z m5771 -418 l-7 -418 -25 -37 c-57 -84 -54 -100 -51 368 l2 429 37 38 c20 20 40 37 44 37 3 0 3 -188 0 -417z m-925 -663 c5 -581 4 -626 -12 -644 -10 -11 -19 -18 -22 -15 -7 8 -17 1275 -9 1282 4 4 14 6 23 5 13 -3 16 -74 20 -628z m-3266 398 c7 -62 32 -359 42 -499 6 -94 6 -97 -16 -104 -12 -4 -26 -3 -30 2 -7 7 -29 229 -56 571 l-7 82 31 0 c29 0 31 -2 36 -52z m-786 -350 c7 -7 12 -32 12 -57 0 -26 12 -161 25 -301 38 -383 41 -435 24 -425 -26 15 -49 38 -44 44 2 4 -2 54 -10 111 -7 58 -16 152 -20 210 -4 58 -13 164 -21 235 -19 175 -18 195 4 195 10 0 23 -5 30 -12z m473 -673 c3 -22 9 -104 13 -182 7 -150 4 -161 -37 -130 -12 9 -20 47 -32 161 -21 206 -22 198 17 194 29 -3 33 -7 39 -43z"- />- <path- d="M3184 5756 c-104 -45 -112 -186 -14 -236 71 -36 143 -19 180 43 70 114 -44 246 -166 193z"- />- <path d="M3862 5660 c-96 -59 -96 -201 0 -260 95 -57 218 18 218 132 0 110 -126 184 -218 128z" />- </g>-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Docker.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Docker.sveltedeleted file mode 100644index 74ba0ebf04..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Docker.svelte+++ /dev/null@@ -1,9 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>---<svg viewBox="0 0 128 128" class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12' : 'mx-auto w-10 h-10'}>- <path d="M124.8 52.1c-4.3-2.5-10-2.8-14.8-1.4-.6-5.2-4-9.7-8-12.9l-1.6-1.3-1.4 1.6c-2.7 3.1-3.5 8.3-3.1 12.3.3 2.9 1.2 5.9 3 8.3-1.4.8-2.9 1.9-4.3 2.4-2.8 1-5.9 2-8.9 2H79V49H66V24H51v12H26v13H13v14H1.8l-.2 1.5c-.5 6.4.3 12.6 3 18.5l1.1 2.2.1.2c7.9 13.4 21.7 19 36.8 19 29.2 0 53.3-13.1 64.3-40.6 7.4.4 15-1.8 18.6-8.9l.9-1.8-1.6-1zM28 39h10v11H28V39zm13.1 44.2c0 1.7-1.4 3.1-3.1 3.1-1.7 0-3.1-1.4-3.1-3.1 0-1.7 1.4-3.1 3.1-3.1 1.7.1 3.1 1.4 3.1 3.1zM28 52h10v11H28V52zm-13 0h11v11H15V52zm27.7 50.2c-15.8-.1-24.3-5.4-31.3-12.4 2.1.1 4.1.2 5.9.2 1.6 0 3.2 0 4.7-.1 3.9-.2 7.3-.7 10.1-1.5 2.3 5.3 6.5 10.2 14 13.8h-3.4zM51 63H40V52h11v11zm0-13H40V39h11v11zm13 13H53V52h11v11zm0-13H53V39h11v11zm0-13H53V26h11v11zm13 26H66V52h11v11zM38.8 81.2c-.2-.1-.5-.2-.8-.2-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2s2.2-1 2.2-2.2c0-.3-.1-.6-.2-.8-.2.3-.4.5-.8.5-.5 0-.9-.4-.9-.9.1-.4.3-.7.5-.8z" fill="#019BC6"></path>- </svg>-diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Eleventy.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Eleventy.sveltedeleted file mode 100644index b2d8d61226..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Eleventy.svelte+++ /dev/null@@ -1,13 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- viewBox="0 0 128 128"- class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-8 h-8'}->- <path fill="transparent" d="M18 0h92v128H18z" /><path- d="M55.3 36.3h.4c1.1 0 1.5.9 1.5 2.3v41.8c0 1.8-.4 3-1.6 3l-4.8-.1c-1.2 0-1.6-1-1.6-3V45.5l-2.1.5c-1 0-1.5-.8-1.5-2.2v-3c0-1.2.4-2 1.4-2.2l8.3-2.2zm16 36.1l.1 3 .6 1.3.6.6.8.1h2.2c1 0 1.7.8 1.7 2v1.9c0 1.2-.6 2-1.8 2h-3.2l-2.3-.1c-.7-.2-1.4-.5-2.2-1a5.7 5.7 0 01-2-1.9c-.4-.8-.8-1.9-1-3.2-.4-1.4-.5-3-.5-4.8v-16h-1.5c-1.1 0-1.6-1-1.6-2.4v-1.7c0-1.4.5-2.3 1.6-2.3h1.5v-.1l.6-12.3c0-1.5.5-2.5 1.6-2.5h3.1c1.2 0 1.6 1 1.6 2.5v12.3h3.6c1.1 0 1.6 1 1.6 2.4V54c0 1.4-.5 2.3-1.6 2.3h-3.6v16.2zm9.4 15.7c0-2 .3-3.2 1.5-3.2.2 0 .4 0 1.4.4l1.1.3.2-.1.4-.7c.3-.6.4-1.6.4-3l-.6-3.3L79 52.7v-.9c0-1.2.3-2 1.2-2H84c.5 0 1 .3 1.3.6.3.4.5.9.6 1.6l3.4 18 2.6-17.8c.1-.8.3-1.3.6-1.7.3-.4.8-.6 1.3-.6h2.6c1 0 1.4.8 1.4 2l-.1.8L92 82.2c-.5 2.5-1 4.4-1.5 5.7a6.6 6.6 0 01-2 3c-.9.6-1.9.9-3.1.9h-.3c-2 0-3.3-.6-4.1-1.7-.3-.4-.4-1-.4-2zM31.3 38.8l8.2-2.1h.5c1 0 1.4.8 1.4 2.2v41.9c0 1.8-.4 2.9-1.6 2.9h-4.7c-1.2 0-1.6-1.1-1.6-3v-35l-2 .6c-1.2 0-1.6-.9-1.6-2.2v-3c0-1.2.4-2 1.4-2.3z"- fill="#FFF"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Gatsby.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Gatsby.sveltedeleted file mode 100644index d67a63417d..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Gatsby.svelte+++ /dev/null@@ -1,13 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}- viewBox="0 0 128 128"->- <path- fill="#64328B"- d="M64,0C28.7,0,0,28.7,0,64v0c0,35.3,28.7,64,64,64s64-28.7,64-64v0C128,28.7,99.3,0,64,0z M13.2,64L64,114.8 C35.9,114.8,13.2,92.1,13.2,64z M75.4,113.5l-60.9-61C19.7,30,39.9,13.2,64,13.2c16.6,0,31.3,7.9,40.5,20.2l-7.5,7.2 C89.7,30.2,77.7,23.5,64,23.5c-17.6,0-32.5,11.2-38.1,26.8C33.1,57,75.4,98.8,78.1,102c12.7-4.7,22.3-15.5,25.4-28.9H81.9v-9.4 l33,0.2C114.8,88.2,98,108.4,75.4,113.5z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Heroku.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Heroku.sveltedeleted file mode 100644index dff845bc2a..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Heroku.svelte+++ /dev/null@@ -1,15 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- xmlns="http://www.w3.org/2000/svg"- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8 '}- viewBox="0 0 72 80"->- <path- xmlns="http://www.w3.org/2000/svg"- fill="#430098"- d="M64.8,0 L7.2,0 C3.224,0 0,3.224 0,7.2 L0,72.8 C0,76.776 3.224,80 7.2,80 L64.8,80 C68.776,80 72,76.776 72,72.8 L72,7.2 C72,3.224 68.776,0 64.8,0 Z M18,68 L18,52 L27,60 L18,68 Z M46,68 L46,44.11 C45.961,42.243 45.062,40 41,40 C32.866,40 23.742,44.091 23.651,44.132 L18,46.692 L18,12 L26,12 L26,34.711 C29.994,33.411 35.577,32 41,32 C45.945,32 48.905,33.944 50.517,35.575 C53.958,39.055 54.005,43.488 54.0002258,44 L54.0002258,68 L46,68 Z M48,25 L40,25 C43.144,20.875 45.118,16.534 46,12 L54,12 C53.46,16.544 51.618,20.9 48,25 Z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Laravel.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Laravel.sveltedeleted file mode 100644index d13694a8c3..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Laravel.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}- viewBox="0 0 50 52"- xmlns="http://www.w3.org/2000/svg"- ><title>Logomark</title><path- d="M49.626 11.564a.809.809 0 0 1 .028.209v10.972a.8.8 0 0 1-.402.694l-9.209 5.302V39.25c0 .286-.152.55-.4.694L20.42 51.01c-.044.025-.092.041-.14.058-.018.006-.035.017-.054.022a.805.805 0 0 1-.41 0c-.022-.006-.042-.018-.063-.026-.044-.016-.09-.03-.132-.054L.402 39.944A.801.801 0 0 1 0 39.25V6.334c0-.072.01-.142.028-.21.006-.023.02-.044.028-.067.015-.042.029-.085.051-.124.015-.026.037-.047.055-.071.023-.032.044-.065.071-.093.023-.023.053-.04.079-.06.029-.024.055-.05.088-.069h.001l9.61-5.533a.802.802 0 0 1 .8 0l9.61 5.533h.002c.032.02.059.045.088.068.026.02.055.038.078.06.028.029.048.062.072.094.017.024.04.045.054.071.023.04.036.082.052.124.008.023.022.044.028.068a.809.809 0 0 1 .028.209v20.559l8.008-4.611v-10.51c0-.07.01-.141.028-.208.007-.024.02-.045.028-.068.016-.042.03-.085.052-.124.015-.026.037-.047.054-.071.024-.032.044-.065.072-.093.023-.023.052-.04.078-.06.03-.024.056-.05.088-.069h.001l9.611-5.533a.801.801 0 0 1 .8 0l9.61 5.533c.034.02.06.045.09.068.025.02.054.038.077.06.028.029.048.062.072.094.018.024.04.045.054.071.023.039.036.082.052.124.009.023.022.044.028.068zm-1.574 10.718v-9.124l-3.363 1.936-4.646 2.675v9.124l8.01-4.611zm-9.61 16.505v-9.13l-4.57 2.61-13.05 7.448v9.216l17.62-10.144zM1.602 7.719v31.068L19.22 48.93v-9.214l-9.204-5.209-.003-.002-.004-.002c-.031-.018-.057-.044-.086-.066-.025-.02-.054-.036-.076-.058l-.002-.003c-.026-.025-.044-.056-.066-.084-.02-.027-.044-.05-.06-.078l-.001-.003c-.018-.03-.029-.066-.042-.1-.013-.03-.03-.058-.038-.09v-.001c-.01-.038-.012-.078-.016-.117-.004-.03-.012-.06-.012-.09v-.002-21.481L4.965 9.654 1.602 7.72zm8.81-5.994L2.405 6.334l8.005 4.609 8.006-4.61-8.006-4.608zm4.164 28.764l4.645-2.674V7.719l-3.363 1.936-4.646 2.675v20.096l3.364-1.937zM39.243 7.164l-8.006 4.609 8.006 4.609 8.005-4.61-8.005-4.608zm-.801 10.605l-4.646-2.675-3.363-1.936v9.124l4.645 2.674 3.364 1.937v-9.124zM20.02 38.33l11.743-6.704 5.87-3.35-8-4.606-9.211 5.303-8.395 4.833 7.993 4.524z"- fill="#FF2D20"- fill-rule="evenodd"- /></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nestjs.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Nestjs.sveltedeleted file mode 100644index ac0f8af3f7..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nestjs.svelte+++ /dev/null@@ -1,13 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}- viewBox="0 0 128 128"->- <path- fill="#DF234F"- d="M75.4,0.3c-0.9,0-1.8,0.2-2.6,0.5c1.7,1.1,2.6,2.6,3.1,4.3c0,0.2,0.1,0.4,0.1,0.6c0,0.2,0.1,0.4,0.1,0.6 c0.1,2.9-0.8,3.3-1.4,5c-1,2.2-0.7,4.6,0.5,6.5c0.1,0.2,0.2,0.5,0.4,0.7c-1.3-8.4,5.7-9.6,7-12.2c0.1-2.3-1.8-3.8-3.3-4.9 C77.8,0.5,76.6,0.3,75.4,0.3L75.4,0.3z M85.9,2.1c-0.1,0.8,0,0.6-0.1,1c0,0.3,0,0.6-0.1,0.9c-0.1,0.3-0.1,0.5-0.2,0.8 c-0.1,0.3-0.2,0.5-0.3,0.8C85.1,5.8,85,6,84.9,6.3c-0.1,0.1-0.2,0.3-0.3,0.4c-0.1,0.1-0.1,0.2-0.2,0.3c-0.2,0.2-0.3,0.5-0.5,0.7 c-0.2,0.2-0.4,0.4-0.6,0.6v0c-0.2,0.2-0.4,0.4-0.6,0.5c-0.7,0.5-1.5,0.9-2.2,1.4c-0.2,0.2-0.5,0.3-0.7,0.5 c-0.2,0.2-0.4,0.3-0.6,0.5c-0.2,0.2-0.4,0.4-0.6,0.6c-0.2,0.2-0.4,0.4-0.5,0.7c-0.2,0.2-0.3,0.5-0.5,0.7c-0.1,0.3-0.2,0.5-0.4,0.8 c-0.1,0.3-0.2,0.5-0.3,0.8c-0.1,0.3-0.2,0.6-0.2,0.8c0,0.1,0,0.3-0.1,0.4c0,0.1,0,0.3-0.1,0.4c0,0.3,0,0.6,0,0.8c0,0.2,0,0.4,0,0.6 c0,0.3,0,0.5,0.1,0.8c0,0.3,0.1,0.5,0.2,0.8c0.1,0.3,0.2,0.5,0.3,0.8c0.1,0.2,0.2,0.3,0.2,0.5l-7.6-2.9c-1.3-0.4-2.5-0.7-3.8-1 c-0.7-0.2-1.4-0.3-2.1-0.5c-2-0.4-4-0.7-6-0.9c-0.1,0-0.1,0-0.2,0c-2-0.2-3.9-0.3-5.9-0.3c-1.5,0-2.9,0.1-4.3,0.2 c-2,0.1-4,0.4-6,0.7c-0.5,0.1-1,0.2-1.5,0.3c-1,0.2-2,0.4-3,0.7c-0.5,0.1-1,0.3-1.5,0.4c-0.5,0.2-1,0.4-1.4,0.6 c-0.4,0.2-0.7,0.3-1.1,0.5c-0.1,0-0.1,0-0.2,0.1c-0.3,0.2-0.6,0.3-0.9,0.5c-0.1,0-0.2,0.1-0.2,0.1c-0.4,0.2-0.7,0.4-1,0.5 c-0.2,0.1-0.5,0.2-0.7,0.3c-0.1,0.1-0.2,0.1-0.3,0.2c-0.3,0.2-0.6,0.3-0.9,0.5c-0.3,0.2-0.6,0.3-0.8,0.5c-0.2,0.2-0.5,0.3-0.7,0.5 c0,0-0.1,0-0.1,0.1c-0.2,0.1-0.4,0.3-0.6,0.5c0,0,0,0-0.1,0.1c-0.2,0.1-0.3,0.3-0.5,0.4c-0.1,0-0.1,0.1-0.2,0.1 c-0.2,0.1-0.3,0.3-0.5,0.4c0,0.1-0.1,0.1-0.1,0.1c-0.2,0.2-0.4,0.4-0.6,0.6c0,0,0,0-0.1,0.1c-0.2,0.2-0.4,0.4-0.6,0.6 c0,0,0,0.1-0.1,0.1c-0.2,0.2-0.3,0.3-0.5,0.5c-0.1,0.1-0.2,0.1-0.2,0.2c-0.2,0.2-0.4,0.4-0.6,0.6c0,0.1-0.1,0.1-0.1,0.2 c-0.3,0.3-0.5,0.5-0.8,0.8c0,0-0.1,0.1-0.1,0.1c-0.5,0.6-1.1,1.1-1.7,1.6c-0.6,0.5-1.2,1-1.9,1.5c-0.7,0.5-1.3,0.9-2,1.3 c-0.7,0.4-1.4,0.7-2.1,1c-0.7,0.3-1.4,0.6-2.1,0.8c-1.4,0.3-2.8,0.9-4,1C7.6,33.9,7.3,34,7,34c-0.3,0.1-0.6,0.1-0.8,0.2 c-0.3,0.1-0.5,0.2-0.8,0.3c-0.3,0.1-0.5,0.2-0.8,0.4c-0.2,0.2-0.5,0.3-0.7,0.5c-0.2,0.2-0.5,0.4-0.7,0.6c-0.2,0.2-0.5,0.4-0.7,0.6 c-0.2,0.2-0.4,0.4-0.6,0.7c-0.2,0.3-0.4,0.5-0.5,0.8c-0.2,0.2-0.3,0.5-0.5,0.8c-0.1,0.3-0.3,0.6-0.4,0.9c-0.1,0.3-0.2,0.6-0.3,0.9 c-0.1,0.3-0.1,0.5-0.2,0.8c0,0,0,0.1,0,0.1c-0.1,0.3-0.1,0.7-0.1,0.9C0,42.4,0,42.6,0,42.8c0,0.1,0,0.3,0,0.4 c0,0.2,0.1,0.4,0.1,0.6c0.1,0.2,0.1,0.4,0.2,0.6v0c0.1,0.2,0.2,0.4,0.4,0.6c0.1,0.2,0.3,0.4,0.4,0.6c0.2,0.2,0.4,0.4,0.6,0.5 c0.2,0.2,0.4,0.4,0.6,0.5c0.8,0.7,1,0.9,2,1.5c0.2,0.1,0.3,0.2,0.5,0.3c0,0,0.1,0,0.1,0c0,0.1,0,0.1,0,0.2c0,0.3,0.1,0.5,0.2,0.8 c0.1,0.3,0.2,0.6,0.3,0.8c0.1,0.2,0.2,0.4,0.3,0.6c0,0.1,0.1,0.1,0.1,0.2c0.1,0.3,0.3,0.5,0.4,0.7c0.2,0.2,0.3,0.5,0.5,0.7 c0.2,0.2,0.4,0.4,0.6,0.6c0.2,0.2,0.4,0.4,0.6,0.6c0,0,0,0,0.1,0c0.2,0.2,0.4,0.3,0.6,0.5c0.2,0.2,0.5,0.3,0.7,0.4 c0.2,0.1,0.5,0.3,0.8,0.4c0.2,0.1,0.4,0.2,0.7,0.2c0,0,0.1,0,0.1,0.1c0.1,0,0.3,0.1,0.4,0.1c-0.1,1.8-0.1,3.5,0.1,4.1 c0.3,0.7,1.8-1.4,3.2-3.7c-0.2,2.3-0.3,5,0,5.8c0.4,0.8,2.3-1.8,4.1-4.6c23.4-5.4,44.8,10.8,47.1,33.7C65.4,87,61,85,58.9,85.5 c-1,2.4-2.7,5.6-5.4,7.5c0.2-2.2,0.1-4.4-0.3-6.6c-0.7,3-2.1,5.9-4.1,8.3c-3.1,0.2-6.3-1.3-7.9-3.6c-0.1-0.1-0.2-0.3-0.3-0.4 c-0.1-0.2-0.2-0.5-0.3-0.7c-0.1-0.2-0.2-0.5-0.2-0.7c0-0.2,0-0.5,0-0.7c0-0.2,0-0.3,0-0.5c0-0.2,0.1-0.5,0.2-0.7 c0.1-0.2,0.1-0.5,0.2-0.7c0.1-0.2,0.2-0.5,0.4-0.7c0.6-1.6,0.6-2.9-0.5-3.6c-0.2-0.1-0.4-0.2-0.6-0.3c-0.1,0-0.3-0.1-0.4-0.1 c-0.1,0-0.2-0.1-0.3-0.1c-0.2-0.1-0.5-0.1-0.7-0.2c-0.2-0.1-0.5-0.1-0.7-0.1c-0.2,0-0.5-0.1-0.7-0.1c-0.2,0-0.3,0-0.5,0 c-0.3,0-0.5,0-0.7,0.1c-0.2,0-0.5,0.1-0.7,0.1c-0.2,0.1-0.5,0.1-0.7,0.2c-0.2,0.1-0.4,0.2-0.7,0.3c-0.2,0.1-0.4,0.2-0.6,0.3 c-7.7,5-3.1,16.8,2.1,20.2c-2,0.4-4,0.8-4.6,1.2c0,0-0.1,0.1-0.1,0.1c1.4,0.9,2.9,1.6,4.5,2.2c2.1,0.7,4.4,1.3,5.4,1.6v0 c2.7,0.6,5.5,0.8,8.3,0.6c14.6-1,26.6-12.2,28.8-26.8c0.1,0.3,0.1,0.6,0.2,0.9c0.1,0.6,0.2,1.2,0.3,1.9v0c0.1,0.3,0.1,0.6,0.1,0.9 v0.1c0,0.3,0.1,0.6,0.1,0.9c0,0.4,0.1,0.7,0.1,1.1v0.5c0,0.2,0,0.4,0,0.5c0,0.2,0,0.4,0,0.6v0.5c0,0.2,0,0.4,0,0.7 c0,0.1,0,0.3,0,0.4c0,0.2,0,0.5,0,0.7c0,0.1,0,0.2,0,0.3c0,0.3-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.3-0.1,0.6-0.1,1v0v0 c-0.1,0.3-0.1,0.6-0.2,0.9v0.1c-0.1,0.3-0.1,0.6-0.2,0.9c0,0,0,0.1,0,0.1c-0.1,0.3-0.1,0.6-0.2,0.9v0.1c-0.1,0.3-0.2,0.6-0.3,0.9 c0,0,0,0.1,0,0.1c-0.1,0.3-0.2,0.7-0.3,1c-0.1,0.3-0.2,0.6-0.4,1c-0.1,0.3-0.2,0.7-0.4,1c-0.1,0.3-0.3,0.6-0.4,1h0 c-0.1,0.3-0.3,0.6-0.4,0.9c0,0.1-0.1,0.2-0.1,0.2c0,0,0,0.1-0.1,0.1c-2.1,4.3-5.3,8.1-9.3,11.1c-0.3,0.2-0.5,0.4-0.8,0.6 c-0.1,0.1-0.2,0.1-0.2,0.2c-0.2,0.2-0.5,0.3-0.7,0.5l0.1,0.2h0c0.5-0.1,0.9-0.1,1.4-0.2h0c0.9-0.1,1.7-0.3,2.6-0.5 c0.2,0,0.5-0.1,0.7-0.2c0.2,0,0.3-0.1,0.5-0.1c0.2,0,0.5-0.1,0.7-0.1c0.2-0.1,0.4-0.1,0.6-0.2c3.3-0.8,6.5-1.9,9.6-3.2 c-5.3,7.2-12.3,13-20.5,16.8c3.8-0.3,7.6-0.9,11.3-2c13.3-3.9,24.5-12.9,31.2-25c-1.4,7.6-4.4,14.9-8.9,21.3 c3.2-2.1,6.1-4.6,8.8-7.3c7.4-7.7,12.3-17.6,13.9-28.1c1.1,5.2,1.5,10.6,1,15.9c23.9-33.3,2-67.8-7.2-76.9c0-0.1-0.1-0.1-0.1-0.2 c0,0,0,0,0,0.1c0,0,0,0,0-0.1c0,0.4,0,0.8-0.1,1.2c-0.1,0.8-0.2,1.5-0.3,2.2c-0.2,0.7-0.4,1.5-0.6,2.2c-0.2,0.7-0.5,1.4-0.8,2.1 c-0.3,0.7-0.6,1.4-1,2c-0.4,0.6-0.8,1.3-1.2,1.9c-0.4,0.6-0.9,1.2-1.4,1.8c-0.5,0.6-1,1.1-1.6,1.7c-0.3,0.3-0.6,0.6-1,0.8 c-0.3,0.2-0.5,0.4-0.8,0.7c-0.6,0.5-1.2,0.9-1.9,1.3c-0.6,0.4-1.3,0.8-2,1.1c-0.7,0.3-1.4,0.6-2.1,0.9c-0.7,0.3-1.4,0.5-2.1,0.7 c-0.7,0.2-1.5,0.4-2.2,0.5c-0.8,0.1-1.5,0.2-2.2,0.3c-0.5,0-1.1,0.1-1.6,0.1c-0.8,0-1.5-0.1-2.2-0.1c-0.8-0.1-1.5-0.2-2.2-0.3 c-0.8-0.1-1.5-0.3-2.2-0.6h0c0.7-0.1,1.5-0.1,2.2-0.3c0.8-0.1,1.5-0.3,2.2-0.5c0.7-0.2,1.5-0.4,2.1-0.7c0.7-0.3,1.4-0.6,2.1-0.9 c0.7-0.3,1.3-0.7,2-1.1c0.6-0.4,1.3-0.9,1.9-1.3c0.6-0.5,1.2-1,1.7-1.5c0.6-0.5,1.1-1.1,1.6-1.6c0.5-0.6,1-1.2,1.4-1.8 c0.1-0.1,0.1-0.2,0.2-0.3c0.3-0.5,0.7-1.1,1-1.6c0.4-0.7,0.7-1.3,1-2c0.3-0.7,0.6-1.4,0.8-2.1c0.2-0.7,0.4-1.4,0.6-2.1 c0.1-0.8,0.3-1.5,0.3-2.2c0.1-0.8,0.1-1.5,0.1-2.2c0-0.5,0-1.1-0.1-1.6c-0.1-0.8-0.2-1.5-0.3-2.2c-0.1-0.8-0.3-1.5-0.5-2.2 c-0.2-0.7-0.5-1.4-0.7-2.1c-0.3-0.7-0.6-1.4-0.9-2c-0.4-0.7-0.7-1.3-1.1-2c-0.4-0.6-0.9-1.2-1.3-1.8c-0.5-0.6-1-1.1-1.5-1.7 c-0.3-0.3-0.6-0.6-0.9-0.8c-1.5-1.2-3-2.2-4.6-3.2c-0.2-0.1-0.4-0.2-0.7-0.3C87.9,2.8,86.9,2.5,85.9,2.1L85.9,2.1z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nextjs.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Nextjs.sveltedeleted file mode 100644index 9ed0227d13..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nextjs.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-4 h-10 w-10 fill-current text-blue-500'- : 'mx-auto w-8 h-8 fill-current text-blue-500'}- viewBox="0 0 128 128"->- <path- d="M64 0C28.7 0 0 28.7 0 64s28.7 64 64 64c11.2 0 21.7-2.9 30.8-7.9L48.4 55.3v36.6h-6.8V41.8h6.8l50.5 75.8C116.4 106.2 128 86.5 128 64c0-35.3-28.7-64-64-64zm22.1 84.6l-7.5-11.3V41.8h7.5v42.8z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nodejs.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Nodejs.sveltedeleted file mode 100644index 93140f08ff..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nodejs.svelte+++ /dev/null@@ -1,18 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500' : 'mx-auto w-8 h-8 text-green-500'}- xmlns="http://www.w3.org/2000/svg"- aria-hidden="true"- focusable="false"- data-prefix="fab"- data-icon="node-js"- role="img"- viewBox="0 0 448 512"- ><path- fill="currentColor"- d="M224 508c-6.7 0-13.5-1.8-19.4-5.2l-61.7-36.5c-9.2-5.2-4.7-7-1.7-8 12.3-4.3 14.8-5.2 27.9-12.7 1.4-.8 3.2-.5 4.6.4l47.4 28.1c1.7 1 4.1 1 5.7 0l184.7-106.6c1.7-1 2.8-3 2.8-5V149.3c0-2.1-1.1-4-2.9-5.1L226.8 37.7c-1.7-1-4-1-5.7 0L36.6 144.3c-1.8 1-2.9 3-2.9 5.1v213.1c0 2 1.1 4 2.9 4.9l50.6 29.2c27.5 13.7 44.3-2.4 44.3-18.7V167.5c0-3 2.4-5.3 5.4-5.3h23.4c2.9 0 5.4 2.3 5.4 5.3V378c0 36.6-20 57.6-54.7 57.6-10.7 0-19.1 0-42.5-11.6l-48.4-27.9C8.1 389.2.7 376.3.7 362.4V149.3c0-13.8 7.4-26.8 19.4-33.7L204.6 9c11.7-6.6 27.2-6.6 38.8 0l184.7 106.7c12 6.9 19.4 19.8 19.4 33.7v213.1c0 13.8-7.4 26.7-19.4 33.7L243.4 502.8c-5.9 3.4-12.6 5.2-19.4 5.2zm149.1-210.1c0-39.9-27-50.5-83.7-58-57.4-7.6-63.2-11.5-63.2-24.9 0-11.1 4.9-25.9 47.4-25.9 37.9 0 51.9 8.2 57.7 33.8.5 2.4 2.7 4.2 5.2 4.2h24c1.5 0 2.9-.6 3.9-1.7s1.5-2.6 1.4-4.1c-3.7-44.1-33-64.6-92.2-64.6-52.7 0-84.1 22.2-84.1 59.5 0 40.4 31.3 51.6 81.8 56.6 60.5 5.9 65.2 14.8 65.2 26.7 0 20.6-16.6 29.4-55.5 29.4-48.9 0-59.6-12.3-63.2-36.6-.4-2.6-2.6-4.5-5.3-4.5h-23.9c-3 0-5.3 2.4-5.3 5.3 0 31.1 16.9 68.2 97.8 68.2 58.4-.1 92-23.2 92-63.4z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nuxtjs.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Nuxtjs.sveltedeleted file mode 100644index cb2a66ff4e..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Nuxtjs.svelte+++ /dev/null@@ -1,24 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 400 400"->- <g fill-rule="nonzero" transform="translate(0 50)" fill="none">- <path- d="M227.92099 83.45116l-13.6889 24.10141-46.8148-82.44693L23.7037 278.17052h97.3037c0 13.31084 10.61252 24.10142 23.70371 24.10142H23.70371c-8.46771 0-16.29145-4.59601-20.5246-12.05272-4.23315-7.4567-4.23272-16.64312.00114-24.0994L146.89383 13.05492c4.23415-7.45738 12.0596-12.05138 20.5284-12.05138 8.46878 0 16.29423 4.594 20.52839 12.05138l39.97037 70.39623z"- fill="#00C58E"- />- <path- d="M331.6642 266.11981l-90.05432-158.56724-13.6889-24.10141-13.68888 24.10141-90.04445 158.56724c-4.23385 7.45629-4.23428 16.64271-.00113 24.09941 4.23314 7.4567 12.05689 12.05272 20.5246 12.05272h166.4c8.46946 0 16.29644-4.591 20.532-12.04837 4.23555-7.45736 4.23606-16.64592.00132-24.10376h.01976zM144.7111 278.17052L227.921 131.65399l83.19012 146.51653h-166.4z"- fill="#FFF"- />- <path- d="M396.04938 290.22123c-4.23344 7.45557-12.05656 12.0507-20.52345 12.0507H311.1111c13.0912 0 23.7037-10.79057 23.7037-24.10141h40.66173L260.09877 74.98553l-18.4889 32.56704L227.921 83.45116l11.65432-20.51634c4.23416-7.45738 12.0596-12.05138 20.5284-12.05138 8.46879 0 16.29423 4.594 20.52839 12.05138l115.41728 203.185c4.23426 7.457 4.23426 16.6444 0 24.1014z"- fill="#108775"- />- </g>-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/PHP.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/PHP.sveltedeleted file mode 100644index d52ab0dd5e..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/PHP.svelte+++ /dev/null@@ -1,15 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- viewBox="0 0 128 128"- class={isAbsolute- ? 'absolute top-0 left-0 -m-6 h-14 w-14 text-white'- : 'mx-auto w-8 h-8 text-white'}->- <path- fill="#6181B6"- d="M64 33.039c-33.74 0-61.094 13.862-61.094 30.961s27.354 30.961 61.094 30.961 61.094-13.862 61.094-30.961-27.354-30.961-61.094-30.961zm-15.897 36.993c-1.458 1.364-3.077 1.927-4.86 2.507-1.783.581-4.052.461-6.811.461h-6.253l-1.733 10h-7.301l6.515-34h14.04c4.224 0 7.305 1.215 9.242 3.432 1.937 2.217 2.519 5.364 1.747 9.337-.319 1.637-.856 3.159-1.614 4.515-.759 1.357-1.75 2.624-2.972 3.748zm21.311 2.968l2.881-14.42c.328-1.688.208-2.942-.361-3.555-.57-.614-1.782-1.025-3.635-1.025h-5.79l-3.731 19h-7.244l6.515-33h7.244l-1.732 9h6.453c4.061 0 6.861.815 8.402 2.231s2.003 3.356 1.387 6.528l-3.031 15.241h-7.358zm40.259-11.178c-.318 1.637-.856 3.133-1.613 4.488-.758 1.357-1.748 2.598-2.971 3.722-1.458 1.364-3.078 1.927-4.86 2.507-1.782.581-4.053.461-6.812.461h-6.253l-1.732 10h-7.301l6.514-34h14.041c4.224 0 7.305 1.215 9.241 3.432 1.935 2.217 2.518 5.418 1.746 9.39zM95.919 54h-5.001l-2.727 14h4.442c2.942 0 5.136-.29 6.576-1.4 1.442-1.108 2.413-2.828 2.918-5.421.484-2.491.264-4.434-.66-5.458-.925-1.024-2.774-1.721-5.548-1.721zM38.934 54h-5.002l-2.727 14h4.441c2.943 0 5.136-.29 6.577-1.4 1.441-1.108 2.413-2.828 2.917-5.421.484-2.491.264-4.434-.66-5.458s-2.772-1.721-5.546-1.721z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Python.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Python.sveltedeleted file mode 100644index 17abb0f6d4..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Python.svelte+++ /dev/null@@ -1,57 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-6 h-14 w-14' : 'mx-auto w-8 h-8'}- viewBox="0 0 128 128"->- <linearGradient- id="a"- gradientUnits="userSpaceOnUse"- x1="70.252"- y1="1237.476"- x2="170.659"- y2="1151.089"- gradientTransform="matrix(.563 0 0 -.568 -29.215 707.817)"- ><stop offset="0" stop-color="#5A9FD4" /><stop- offset="1"- stop-color="#306998"- /></linearGradient- ><path- fill="url(#a)"- d="M63.391 1.988c-4.222.02-8.252.379-11.8 1.007-10.45 1.846-12.346 5.71-12.346 12.837v9.411h24.693v3.137h-33.961c-7.176 0-13.46 4.313-15.426 12.521-2.268 9.405-2.368 15.275 0 25.096 1.755 7.311 5.947 12.519 13.124 12.519h8.491v-11.282c0-8.151 7.051-15.34 15.426-15.34h24.665c6.866 0 12.346-5.654 12.346-12.548v-23.513c0-6.693-5.646-11.72-12.346-12.837-4.244-.706-8.645-1.027-12.866-1.008zm-13.354 7.569c2.55 0 4.634 2.117 4.634 4.721 0 2.593-2.083 4.69-4.634 4.69-2.56 0-4.633-2.097-4.633-4.69-.001-2.604 2.073-4.721 4.633-4.721z"- /><linearGradient- id="b"- gradientUnits="userSpaceOnUse"- x1="209.474"- y1="1098.811"- x2="173.62"- y2="1149.537"- gradientTransform="matrix(.563 0 0 -.568 -29.215 707.817)"- ><stop offset="0" stop-color="#FFD43B" /><stop- offset="1"- stop-color="#FFE873"- /></linearGradient- ><path- fill="url(#b)"- d="M91.682 28.38v10.966c0 8.5-7.208 15.655-15.426 15.655h-24.665c-6.756 0-12.346 5.783-12.346 12.549v23.515c0 6.691 5.818 10.628 12.346 12.547 7.816 2.297 15.312 2.713 24.665 0 6.216-1.801 12.346-5.423 12.346-12.547v-9.412h-24.664v-3.138h37.012c7.176 0 9.852-5.005 12.348-12.519 2.578-7.735 2.467-15.174 0-25.096-1.774-7.145-5.161-12.521-12.348-12.521h-9.268zm-13.873 59.547c2.561 0 4.634 2.097 4.634 4.692 0 2.602-2.074 4.719-4.634 4.719-2.55 0-4.633-2.117-4.633-4.719 0-2.595 2.083-4.692 4.633-4.692z"- /><radialGradient- id="c"- cx="1825.678"- cy="444.45"- r="26.743"- gradientTransform="matrix(0 -.24 -1.055 0 532.979 557.576)"- gradientUnits="userSpaceOnUse"- ><stop offset="0" stop-color="#B8B8B8" stop-opacity=".498" /><stop- offset="1"- stop-color="#7F7F7F"- stop-opacity="0"- /></radialGradient- ><path- opacity=".444"- fill="url(#c)"- enable-background="new"- d="M97.309 119.597c0 3.543-14.816 6.416-33.091 6.416-18.276 0-33.092-2.873-33.092-6.416 0-3.544 14.815-6.417 33.092-6.417 18.275 0 33.091 2.872 33.091 6.417z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/React.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/React.sveltedeleted file mode 100644index c0867ffc8a..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/React.svelte+++ /dev/null@@ -1,16 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-blue-500'- : 'mx-auto w-8 h-8 text-blue-500'}- viewBox="0 0 128 128"->- <g fill="#61DAFB"- ><circle cx="64" cy="64" r="11.4" /><path- d="M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3-12.5 4.8-19.3 11.4-19.3 18.8s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8zm-14.8-30.5c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9zm-11.2 59.3c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4-2.2-3.2-4.2-6.4-6-9.6-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4 2.2 3.2 4.2 6.4 6 9.6 1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10zm8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2zm-25.6 27.1c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2 2.3 0 4.6-.1 6.9-.2-2.2 2.9-4.5 5.7-6.9 8.3zm-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zm25.6-27.1c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zm-54.5-16.2c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zm-24.7 29c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5-13.8-4-22.1-10-22.1-15.6zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zm60.8-20.3c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z"- /></g- >-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Rust.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Rust.sveltedeleted file mode 100644index 97bcee9036..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Rust.svelte+++ /dev/null@@ -1,15 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12' : 'mx-auto w-8 h-8'}- viewBox="0 0 128 128"->- <path- d="M62.271 10.880 C 62.082 10.990,61.289 12.128,60.508 13.409 C 58.548 16.626,58.526 16.628,55.893 13.857 C 54.180 12.055,53.766 11.725,53.214 11.729 C 52.855 11.731,52.402 11.853,52.206 12.000 C 52.011 12.147,51.458 13.317,50.978 14.600 C 49.879 17.539,49.826 17.634,49.217 17.751 C 48.842 17.822,48.120 17.420,46.389 16.177 C 45.111 15.258,43.857 14.507,43.603 14.507 C 42.549 14.507,42.252 15.083,41.750 18.100 C 41.112 21.936,41.134 21.923,37.676 20.352 C 36.280 19.719,34.956 19.200,34.733 19.200 C 34.510 19.200,34.087 19.440,33.794 19.733 C 33.262 20.266,33.261 20.268,33.406 23.201 L 33.552 26.137 32.997 26.434 C 32.505 26.697,32.166 26.665,29.988 26.150 C 27.145 25.479,26.545 25.497,25.969 26.272 L 25.548 26.838 26.113 29.259 C 26.423 30.590,26.722 31.872,26.778 32.107 C 26.833 32.341,26.738 32.716,26.566 32.939 C 26.282 33.306,25.980 33.339,23.349 33.299 C 18.896 33.229,18.643 33.611,20.483 37.627 C 21.068 38.902,21.547 40.060,21.547 40.199 C 21.547 40.933,20.962 41.200,18.449 41.610 C 17.043 41.839,15.821 42.027,15.733 42.027 C 15.645 42.027,15.381 42.219,15.147 42.453 C 14.382 43.218,14.599 43.936,16.334 46.385 C 18.495 49.435,18.491 49.446,14.921 50.812 C 10.861 52.365,10.779 52.748,13.870 55.680 C 16.749 58.410,16.752 58.370,13.493 60.419 C 11.024 61.970,10.986 62.007,10.923 62.848 C 10.847 63.871,10.865 63.889,13.813 65.690 C 16.728 67.470,16.728 67.524,13.867 70.231 C 10.790 73.141,10.885 73.566,14.948 75.099 C 18.498 76.438,18.503 76.454,16.338 79.504 C 15.111 81.233,14.720 81.953,14.720 82.487 C 14.720 83.486,15.240 83.741,18.347 84.263 C 20.964 84.704,21.547 84.963,21.547 85.685 C 21.547 85.833,21.067 87.001,20.480 88.279 C 18.654 92.256,18.862 92.587,23.184 92.587 C 27.209 92.587,27.102 92.464,26.235 96.094 C 25.581 98.830,25.571 99.354,26.163 99.945 C 26.616 100.399,27.470 100.348,30.141 99.709 C 32.181 99.222,32.539 99.188,33.012 99.441 L 33.552 99.730 33.406 102.665 C 33.261 105.599,33.262 105.601,33.794 106.134 C 34.087 106.427,34.516 106.667,34.746 106.667 C 34.976 106.667,36.300 106.151,37.689 105.520 C 41.136 103.955,41.114 103.942,41.750 107.766 C 42.254 110.797,42.548 111.360,43.624 111.360 C 43.891 111.360,45.118 110.640,46.352 109.760 C 48.519 108.214,49.081 107.972,49.658 108.339 C 49.807 108.433,50.385 109.703,50.942 111.161 C 51.761 113.305,52.061 113.863,52.517 114.081 C 53.385 114.497,53.922 114.163,55.962 111.941 C 58.425 109.258,58.526 109.271,60.537 112.530 C 62.758 116.128,63.333 116.120,65.610 112.457 C 67.572 109.301,67.549 109.303,70.201 112.073 C 71.962 113.911,72.337 114.204,72.931 114.204 C 73.310 114.204,73.763 114.062,73.936 113.888 C 74.110 113.714,74.686 112.429,75.216 111.033 C 75.746 109.636,76.295 108.420,76.437 108.330 C 76.998 107.973,77.579 108.224,79.743 109.760 C 81.017 110.665,82.216 111.360,82.501 111.360 C 83.559 111.360,83.941 110.609,84.381 107.657 C 84.757 105.140,84.833 104.899,85.328 104.648 C 85.815 104.401,86.107 104.484,88.391 105.521 C 89.780 106.151,91.104 106.667,91.334 106.667 C 91.564 106.667,92.000 106.420,92.301 106.118 L 92.850 105.570 92.699 102.755 C 92.555 100.067,92.568 99.923,92.997 99.535 C 93.438 99.136,93.483 99.138,95.949 99.701 C 98.935 100.383,99.492 100.401,100.053 99.840 C 100.601 99.292,100.595 99.172,99.845 96.009 C 99.004 92.461,98.891 92.587,102.933 92.587 C 105.688 92.587,105.995 92.548,106.346 92.161 C 106.932 91.513,106.793 90.771,105.614 88.258 C 105.019 86.992,104.536 85.840,104.540 85.698 C 104.560 84.951,105.147 84.696,107.860 84.255 C 109.520 83.986,110.762 83.674,110.987 83.471 C 111.741 82.790,111.464 81.904,109.743 79.491 C 107.586 76.467,107.595 76.438,111.049 75.165 C 115.185 73.641,115.303 73.133,112.208 70.192 C 109.341 67.468,109.340 67.483,112.480 65.555 C 116.276 63.225,116.282 62.700,112.547 60.382 C 109.335 58.389,109.337 58.417,112.216 55.683 C 115.304 52.749,115.220 52.365,111.159 50.812 C 107.575 49.441,107.564 49.407,109.742 46.418 C 111.039 44.638,111.360 44.047,111.360 43.437 C 111.360 42.371,110.882 42.132,107.738 41.624 C 105.111 41.200,104.533 40.942,104.533 40.195 C 104.533 40.053,105.013 38.910,105.600 37.653 C 106.749 35.192,106.910 34.207,106.260 33.618 C 105.911 33.302,105.443 33.257,102.939 33.298 C 100.319 33.342,99.984 33.305,99.621 32.940 C 99.224 32.541,99.228 32.485,99.848 29.898 C 100.608 26.728,100.611 26.651,99.986 26.064 C 99.352 25.468,98.956 25.478,96.045 26.163 C 93.924 26.663,93.573 26.696,93.091 26.438 L 92.544 26.145 92.695 23.219 L 92.847 20.294 92.300 19.747 C 91.999 19.446,91.572 19.200,91.350 19.200 C 91.129 19.200,89.812 19.723,88.424 20.361 C 86.106 21.428,85.857 21.499,85.356 21.237 C 84.856 20.975,84.773 20.717,84.346 18.110 C 83.853 15.094,83.548 14.507,82.477 14.507 C 82.223 14.507,80.964 15.262,79.679 16.185 C 77.569 17.701,77.286 17.844,76.760 17.661 C 76.325 17.509,76.072 17.178,75.763 16.355 C 75.534 15.749,75.096 14.581,74.788 13.760 C 74.166 12.104,73.819 11.733,72.887 11.733 C 72.367 11.733,71.896 12.107,70.208 13.860 C 67.555 16.616,67.545 16.615,65.594 13.415 C 64.814 12.136,63.999 10.994,63.782 10.878 C 63.294 10.616,62.720 10.617,62.271 10.880 M64.689 20.515 C 67.000 22.160,65.771 26.027,62.937 26.027 C 60.187 26.027,58.802 22.714,60.766 20.833 C 61.874 19.771,63.463 19.642,64.689 20.515 M61.783 30.729 C 63.298 31.305,63.920 30.959,67.379 27.625 L 69.978 25.119 71.078 25.265 C 74.528 25.723,81.390 28.737,85.333 31.526 C 88.956 34.090,93.771 39.312,95.823 42.903 L 96.262 43.672 94.318 48.052 C 93.248 50.461,92.373 52.685,92.373 52.996 C 92.373 53.713,92.843 54.847,93.296 55.222 C 93.487 55.381,95.302 56.255,97.329 57.164 L 101.013 58.818 101.158 59.755 C 101.345 60.976,101.370 63.975,101.200 64.827 L 101.067 65.493 98.964 65.493 C 96.525 65.493,96.713 65.275,96.581 68.267 C 96.485 70.436,95.961 71.635,94.769 72.411 C 92.827 73.678,89.620 73.448,88.260 71.945 C 88.051 71.714,87.645 70.553,87.357 69.364 C 86.516 65.891,85.386 63.941,83.116 62.044 C 82.399 61.445,81.813 60.886,81.813 60.801 C 81.813 60.717,82.601 60.053,83.565 59.328 C 87.075 56.682,89.093 53.602,89.315 50.551 C 89.738 44.732,85.102 39.308,78.206 37.550 C 76.571 37.133,75.873 37.120,55.646 37.120 C 44.166 37.120,34.773 37.045,34.773 36.954 C 34.773 36.739,37.324 34.263,38.827 33.021 C 42.954 29.609,48.315 26.924,53.867 25.490 L 55.787 24.993 58.515 27.759 C 60.016 29.280,61.487 30.616,61.783 30.729 M27.432 48.526 C 28.689 49.349,29.204 51.417,28.462 52.660 C 27.314 54.584,24.406 54.665,23.257 52.805 C 21.586 50.103,24.804 46.804,27.432 48.526 M101.482 48.631 C 104.770 50.636,102.222 55.568,98.702 54.011 C 96.352 52.971,96.277 49.759,98.575 48.587 C 99.534 48.098,100.636 48.115,101.482 48.631 M37.120 60.907 L 37.120 73.173 31.698 73.173 L 26.276 73.173 25.846 71.307 C 25.000 67.632,24.644 63.830,24.857 60.716 L 25.006 58.528 28.734 56.856 C 31.073 55.808,32.577 55.009,32.771 54.712 C 33.619 53.419,33.538 52.495,32.348 49.867 L 31.792 48.640 34.456 48.640 L 37.120 48.640 37.120 60.907 M68.340 49.174 C 70.662 49.778,71.889 51.007,71.892 52.730 C 71.894 53.995,71.267 54.789,69.712 55.491 C 68.611 55.989,68.436 56.001,61.493 56.069 L 54.400 56.137 54.400 52.495 L 54.400 48.853 60.755 48.853 C 65.719 48.853,67.380 48.923,68.340 49.174 M65.944 66.776 C 67.095 67.096,68.456 68.096,69.154 69.135 C 69.887 70.227,70.316 71.647,71.332 76.351 C 72.190 80.327,72.742 81.627,74.288 83.319 C 76.203 85.414,75.759 85.333,85.325 85.333 C 89.906 85.333,93.653 85.406,93.653 85.496 C 93.653 85.657,90.498 89.387,90.362 89.387 C 90.323 89.387,88.675 89.042,86.700 88.620 C 81.123 87.429,80.922 87.569,79.642 93.546 L 78.819 97.386 78.076 97.752 C 76.836 98.364,72.806 99.624,70.717 100.054 C 67.265 100.764,63.508 101.004,60.206 100.725 C 54.577 100.248,47.123 98.064,46.832 96.805 C 46.770 96.538,46.395 94.810,46.000 92.964 C 45.604 91.118,45.123 89.367,44.931 89.073 C 44.008 87.665,43.037 87.578,38.767 88.523 C 37.150 88.881,35.739 89.173,35.631 89.173 C 35.428 89.173,32.427 85.703,32.427 85.469 C 32.427 85.396,39.555 85.311,48.267 85.281 L 64.107 85.227 64.164 79.600 C 64.204 75.627,64.149 73.886,63.977 73.680 C 63.785 73.448,62.763 73.387,59.067 73.387 L 54.400 73.387 54.400 69.973 L 54.400 66.560 59.787 66.561 C 62.749 66.562,65.520 66.659,65.944 66.776 M41.536 92.365 C 44.055 93.900,42.847 97.922,39.868 97.919 C 36.813 97.917,35.681 93.932,38.284 92.344 C 39.145 91.819,40.658 91.829,41.536 92.365 M87.662 92.533 C 88.897 93.438,89.308 95.321,88.543 96.575 C 86.534 99.870,81.510 97.251,83.188 93.784 C 84.013 92.081,86.206 91.467,87.662 92.533 "- stroke="none"- fill="rgb(239, 68, 68)"- fill-rule="evenodd"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Static.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Static.sveltedeleted file mode 100644index 14cbb0ce83..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Static.svelte+++ /dev/null@@ -1,34 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-white'- : 'mx-auto w-8 h-8 text-white'}- viewBox="0 0 32 32"- fill="none"- xmlns="http://www.w3.org/2000/svg"- ><g clip-path="url(#HTML5_Clip0_4)"- ><path- d="M30.216 0L27.6454 28.7967L16.0907 32L4.56783 28.8012L2 0H30.216Z"- fill="#E44D26"- /><path- d="M16.108 29.5515L25.4447 26.963L27.6415 2.35497H16.108V29.5515Z"- fill="#F16529"- /><path- d="M11.1109 9.4197H16.108V5.88731H7.25053L7.33509 6.83499L8.20327 16.5692H16.108V13.0369H11.4338L11.1109 9.4197Z"- fill="#EBEBEB"- /><path- d="M11.907 18.3354H8.36111L8.856 23.8818L16.0917 25.8904L16.108 25.8859V22.2108L16.0925 22.2149L12.1585 21.1527L11.907 18.3354Z"- fill="#EBEBEB"- /><path- d="M16.0958 16.5692H20.4455L20.0354 21.1504L16.0958 22.2138V25.8887L23.3373 23.8817L23.3904 23.285L24.2205 13.9855L24.3067 13.0369H16.0958V16.5692Z"- fill="white"- /><path- d="M16.0958 9.41105V9.41969H24.6281L24.6989 8.62572L24.8599 6.83499L24.9444 5.88731H16.0958V9.41105Z"- fill="white"- /></g- ><defs><clipPath id="HTML5_Clip0_4"><rect width="32" height="32" fill="white" /></clipPath></defs- ></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Svelte.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Svelte.sveltedeleted file mode 100644index cfa96c59d4..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Svelte.svelte+++ /dev/null@@ -1,25 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}- version="1.1"- id="Layer_1"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- x="0px"- y="0px"- viewBox="0 0 98.1 118"- style="enable-background:new 0 0 98.1 118;"- xml:space="preserve"->- <path- fill="#FF3E00"- d="M91.8,15.6C80.9-0.1,59.2-4.7,43.6,5.2L16.1,22.8C8.6,27.5,3.4,35.2,1.9,43.9c-1.3,7.3-0.2,14.8,3.3,21.3 c-2.4,3.6-4,7.6-4.7,11.8c-1.6,8.9,0.5,18.1,5.7,25.4c11,15.7,32.6,20.3,48.2,10.4l27.5-17.5c7.5-4.7,12.7-12.4,14.2-21.1 c1.3-7.3,0.2-14.8-3.3-21.3c2.4-3.6,4-7.6,4.7-11.8C99.2,32.1,97.1,22.9,91.8,15.6"- />- <path- fill="#FFFFFF"- d="M40.9,103.9c-8.9,2.3-18.2-1.2-23.4-8.7c-3.2-4.4-4.4-9.9-3.5-15.3c0.2-0.9,0.4-1.7,0.6-2.6l0.5-1.6l1.4,1 c3.3,2.4,6.9,4.2,10.8,5.4l1,0.3l-0.1,1c-0.1,1.4,0.3,2.9,1.1,4.1c1.6,2.3,4.4,3.4,7.1,2.7c0.6-0.2,1.2-0.4,1.7-0.7L65.5,72 c1.4-0.9,2.3-2.2,2.6-3.8c0.3-1.6-0.1-3.3-1-4.6c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7l-10.5,6.7 c-1.7,1.1-3.6,1.9-5.6,2.4c-8.9,2.3-18.2-1.2-23.4-8.7c-3.1-4.4-4.4-9.9-3.4-15.3c0.9-5.2,4.1-9.9,8.6-12.7l27.5-17.5 c1.7-1.1,3.6-1.9,5.6-2.5c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.2,0.9-0.4,1.7-0.7,2.6l-0.5,1.6l-1.4-1 c-3.3-2.4-6.9-4.2-10.8-5.4l-1-0.3l0.1-1c0.1-1.4-0.3-2.9-1.1-4.1c-1.6-2.3-4.4-3.3-7.1-2.6c-0.6,0.2-1.2,0.4-1.7,0.7L32.4,46.1 c-1.4,0.9-2.3,2.2-2.6,3.8s0.1,3.3,1,4.6c1.6,2.3,4.4,3.3,7.1,2.6c0.6-0.2,1.2-0.4,1.7-0.7l10.5-6.7c1.7-1.1,3.6-1.9,5.6-2.5 c8.9-2.3,18.2,1.2,23.4,8.7c3.2,4.4,4.4,9.9,3.5,15.3c-0.9,5.2-4.1,9.9-8.6,12.7l-27.5,17.5C44.8,102.5,42.9,103.3,40.9,103.9"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/Vuejs.svelte b/apps/trpc-experimental/client/src/lib/components/icons/applications/Vuejs.sveltedeleted file mode 100644index 5ead6229d4..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/Vuejs.svelte+++ /dev/null@@ -1,21 +0,0 @@-<script lang="ts">- export let isAbsolute = true;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-4 h-10 w-10 text-green-500'- : 'mx-auto w-8 h-8 text-green-500'}- viewBox="0 0 128 128"->- <path- d="m-2.3125e-8 8.9337 49.854 0.1586 14.167 24.47 14.432-24.47 49.547-0.1577-63.834 110.14zm126.98 0.6374-24.36 0.0207-38.476 66.052-38.453-66.052-24.749-0.0194 63.211 107.89zm-25.149-0.008-22.745 0.16758l-15.053 24.647-14.817-24.647-22.794-0.1679 37.731 64.476zM25.997 9.3929l23.002 0.0087M25.997 9.3929l23.002 0.0087"- fill="none"- /><path- d="m25.997 9.3929 23.002 0.0087l15.036 24.958 14.983-24.956 22.982-0.0057-37.85 65.655z"- fill="#35495e"- /><path- d="m0.91068 9.5686 25.066-0.1711 38.151 65.658 37.852-65.654 25.11 0.0263-62.966 108.06z"- fill="#41b883"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/applications/index.ts b/apps/trpc-experimental/client/src/lib/components/icons/applications/index.tsdeleted file mode 100644index 7bbe7b55bb..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/applications/index.ts+++ /dev/null@@ -1,20 +0,0 @@-//@ts-nocheck-export { default as Rust } from './Rust.svelte';-export { default as Nodejs } from './Nodejs.svelte';-export { default as React } from './React.svelte';-export { default as Svelte } from './Svelte.svelte';-export { default as Vuejs } from './Vuejs.svelte';-export { default as Php } from './PHP.svelte';-export { default as Python } from './Python.svelte';-export { default as Static } from './Static.svelte';-export { default as Nestjs } from './Nestjs.svelte';-export { default as Nuxtjs } from './Nuxtjs.svelte';-export { default as Nextjs } from './Nextjs.svelte';-export { default as Gatsby } from './Gatsby.svelte';-export { default as Docker } from './Docker.svelte';-export { default as Astro } from './Astro.svelte';-export { default as Eleventy } from './Eleventy.svelte';-export { default as Deno } from './Deno.svelte';-export { default as Laravel } from './Laravel.svelte';-export { default as Heroku } from './Heroku.svelte';-export { default as Compose } from './Compose.svelte';diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/Clickhouse.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/Clickhouse.sveltedeleted file mode 100644index dd237a48cf..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/Clickhouse.svelte+++ /dev/null@@ -1,13 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}- viewBox="0 0 9 8"- xmlns="http://www.w3.org/2000/svg"- ><path d="m0 7h1v1h-1z" fill="#f00" /><path- d="m0 0h1v7h-1zm2 0h1v8h-1zm2 0h1v8h-1zm2 0h1v8h-1zm2 3.25h1v1.5h-1z"- fill="#fc0"- /></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/CouchDB.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/CouchDB.sveltedeleted file mode 100644index 411c4928d1..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/CouchDB.svelte+++ /dev/null@@ -1,18 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute- ? 'absolute top-0 left-0 -m-5 h-10 w-10 fill-current text-red-500'- : 'mx-auto w-8 h-8 text-red-500'}- id="CouchDB"- fill="currentColor"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 128 128"- ><g id="original"- ><path- d="M101.4,77.2c0,5-2.7,7.5-7.6,7.7H33.9c-4.9,0-7.6-2.5-7.6-7.7,0-5,2.7-7.5,7.6-7.7H94.1C99,69.7,101.4,72.2,101.4,77.2ZM94.1,88.7H33.9c-4.9,0-7.6,2.4-7.6,7.7,0,5,2.7,7.4,7.6,7.7H94.1c4.9,0,7.6-2.5,7.6-7.7C101.4,91.1,99,88.7,94.1,88.7Zm18.6-42.1h0c-4.9,0-7.6,2.5-7.6,7.4V96.1c0,5,2.7,7.5,7.6,7.7h0c7.4-.2,11.3-7.7,11.3-22.9V62C124,51.8,120.1,46.8,112.7,46.6Zm-97.4,0h0C7.9,46.8,4,51.8,4,62V80.9c0,15.2,3.9,22.7,11.3,22.9h0c4.9,0,7.6-2.4,7.6-7.7V54.3C22.7,49.3,20.2,46.8,15.3,46.6Zm97.4-3.8c0-12.7-6.6-18.7-18.6-18.9H33.9c-12.2.2-18.6,6.5-18.6,18.9h0c7.4,0,11.3,4,11.3,11.5s3.9,11.4,11.3,11.4H90.4c7.3,0,11.3-3.9,11.3-11.4-.3-7.7,3.9-11.2,11-11.5Z"- /></g- ></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/DatabaseIcons.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/DatabaseIcons.sveltedeleted file mode 100644index a9ebf475b0..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/DatabaseIcons.svelte+++ /dev/null@@ -1,21 +0,0 @@-<script lang="ts">- import * as Icons from '$lib/components/icons/databases';- export let type: any;- export let isAbsolute = false;-</script>--{#if type === 'mysql'}- <Icons.MySQL {isAbsolute} />-{:else if type === 'postgresql'}- <Icons.PostgreSQL {isAbsolute} />-{:else if type === 'mongodb'}- <Icons.MongoDB {isAbsolute} />-{:else if type === 'mariadb'}- <Icons.MariaDB {isAbsolute} />-{:else if type === 'redis'}- <Icons.Redis {isAbsolute} />-{:else if type === 'couchdb'}- <Icons.CouchDB {isAbsolute} />-{:else if type === 'edgedb'}- <Icons.EdgeDB {isAbsolute} />-{/if}diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/EdgeDB.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/EdgeDB.sveltedeleted file mode 100644index 57fdebed5d..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/EdgeDB.svelte+++ /dev/null@@ -1,22 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-8 h-16 w-16' : 'mx-auto w-12 h-12'}- width="88"- fill="#1F8AED"- height="101"- viewBox="0 -15 88 101"- ><path- class="pageNav_logoBar__2v4ah"- style="transform-origin:center 35.5px"- fill-rule="evenodd"- clip-rule="evenodd"- d="M55.1436 71H58.1436V0H55.1436V71Z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- d="M74.5362 35.3047C74.5362 41.3776 72.1013 42.4662 69.3799 42.4662H63.5935V28.1432H69.3799C72.1013 28.1432 74.5362 29.2318 74.5362 35.3047V35.3047ZM71.5862 35.3047C71.5862 31.0651 70.2971 30.8646 68.4352 30.8646H66.6305V39.7448H68.4352C70.2971 39.7448 71.5862 39.5443 71.5862 35.3047V35.3047ZM40.9348 42.4662V28.1432H50.0442V30.8646H43.9713V33.7865H48.5546V36.4792H43.9713V39.7448H50.0442V42.4662H40.9348ZM80.6092 36.1068V39.7448H83.13C84.7055 39.7448 85.1066 38.7135 85.1066 37.9401C85.1066 37.3385 84.8201 36.1068 82.6717 36.1068H80.6092ZM80.6092 30.8646V33.5859H82.6717C83.8462 33.5859 84.5337 33.0703 84.5337 32.2109C84.5337 31.3516 83.8462 30.8646 82.6717 30.8646H80.6092ZM77.5732 28.1432H83.4169C86.482 28.1432 87.3987 30.2917 87.3987 31.8385C87.3987 33.2708 86.482 34.3021 85.8518 34.5885C87.6851 35.4766 88.0002 37.2813 88.0002 38.1979C88.0002 39.401 87.3987 42.4662 83.4169 42.4662H77.5732V28.1432ZM23.4899 35.3047C23.4899 41.3776 21.055 42.4662 18.3337 42.4662H12.5472V28.1432H18.3337C21.055 28.1432 23.4899 29.2318 23.4899 35.3047V35.3047ZM32.4272 39.8594C33.974 39.8594 34.7761 39.3438 35.0626 39V37.4245H32.599V34.9609H37.4975V40.6615C37.0678 41.3203 34.7188 42.6094 32.5704 42.6094C29.047 42.6094 26.0678 41.2344 26.0678 35.1615C26.0678 29.0885 29.0756 28 31.797 28C36.0652 28 37.1251 30.2344 37.4688 32.2109L34.948 32.7839C34.8048 31.8672 34.0027 30.7214 32.1694 30.7214C30.3074 30.7214 29.0183 30.9219 29.0183 35.1615C29.0183 39.401 30.3647 39.8594 32.4272 39.8594V39.8594ZM20.539 35.3047C20.539 31.0651 19.2499 30.8646 17.3879 30.8646H15.5833V39.7448H17.3879C19.2499 39.7448 20.539 39.5443 20.539 35.3047V35.3047ZM0 42.4662V28.1432H9.10938V30.8646H3.03646V33.7865H7.61979V36.4792H3.03646V39.7448H9.10938V42.4662H0Z"- /></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/MariaDB.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/MariaDB.sveltedeleted file mode 100644index 5bf504bccf..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/MariaDB.svelte+++ /dev/null@@ -1,17 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- xmlns="http://www.w3.org/2000/svg"- id="Layer_1"- data-name="Layer 1"- viewBox="0 0 309.88 252.72"- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-12 w-12 ' : 'mx-auto w-8 h-8'}->- <path- fill="#fff"- d="M316,10.05a4.2,4.2,0,0,0-2.84-1c-2.84,0-6.5,1.92-8.46,3l-.79.4a26.81,26.81,0,0,1-10.57,2.66c-3.76.12-7,.34-11.22.77-25,2.58-36.15,21.74-46.89,40.27-5.84,10.08-11.88,20.5-20.16,28.57a55.71,55.71,0,0,1-5.46,4.63c-8.57,6.39-19.33,10.9-27.74,14.12-8.07,3.08-16.86,5.85-25.37,8.53-7.78,2.45-15.14,4.76-21.9,7.28-3.05,1.13-5.64,2-7.93,2.76-6.15,2-10.6,3.53-17.08,8-2.53,1.73-5.07,3.6-6.8,5a71.26,71.26,0,0,0-13.54,14.27A84.81,84.81,0,0,1,77.88,163c-1.36,1.34-3.8,2-7.43,2-4.27,0-9.43-.88-14.91-1.81s-11.46-2-16.46-2c-4.07,0-7.17.66-9.5,2,0,0-3.9,2.28-5.56,5.23l1.62.73a33.56,33.56,0,0,1,6.93,5,33.68,33.68,0,0,0,7.19,5.12A6.37,6.37,0,0,1,42,180.72c-.69,1-1.69,2.29-2.74,3.67-5.77,7.55-9.13,12.32-7.2,14.92a6,6,0,0,0,3,.68c12.59,0,19.34-3.27,27.9-7.41,2.47-1.2,5-2.44,8-3.7,5-2.17,10.38-5.63,16.08-9.29,7.55-4.85,15.36-9.87,22.92-12.3a62.3,62.3,0,0,1,19.23-2.7c8,0,16.42,1.07,24.54,2.11,6.06.78,12.32,1.58,18.47,2,2.39.14,4.6.21,6.76.21a78.48,78.48,0,0,0,8.61-.45l.68-.24c4.32-2.65,6.34-8.34,8.29-13.84,1.26-3.54,2.32-6.72,4-8.74a2.06,2.06,0,0,1,.33-.27.4.4,0,0,1,.49.08.25.25,0,0,1,0,.16c-1,21.51-9.67,35.16-18.42,47.3L177,199.14s8.18,0,12.84-1.8c17-5.08,29.84-16.28,39.18-34.14a144.39,144.39,0,0,0,6.16-14.09c.16-.4,1.64-1.14,1.49.93,0,.61-.08,1.29-.13,2h0c0,.42-.06.85-.08,1.28-.25,3-1,9.34-1,9.34l5.25-2.81c12.66-8,22.42-24.14,29.82-49.25,3.09-10.46,5.34-20.85,7.33-30,2.38-11,4.43-20.43,6.78-24.09,3.69-5.74,9.32-9.62,14.77-13.39.75-.51,1.49-1,2.22-1.54,6.86-4.81,13.67-10.36,15.16-20.71l0-.23C317.93,12.92,317,11,316,10.05Z"- transform="translate(-7.45 -9.1)"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/MongoDB.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/MongoDB.sveltedeleted file mode 100644index fbb261aa2c..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/MongoDB.svelte+++ /dev/null@@ -1,90 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- viewBox="0 0 128 128"- class={isAbsolute ? 'absolute top-0 left-0 -m-4 h-10 w-10' : 'mx-auto w-8 h-8'}->- <path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#439934"- d="M88.038 42.812c1.605 4.643 2.761 9.383 3.141 14.296.472 6.095.256 12.147-1.029 18.142-.035.165-.109.32-.164.48-.403.001-.814-.049-1.208.012-3.329.523-6.655 1.065-9.981 1.604-3.438.557-6.881 1.092-10.313 1.687-1.216.21-2.721-.041-3.212 1.641-.014.046-.154.054-.235.08l.166-10.051-.169-24.252 1.602-.275c2.62-.429 5.24-.864 7.862-1.281 3.129-.497 6.261-.98 9.392-1.465 1.381-.215 2.764-.412 4.148-.618z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#45A538"- d="M61.729 110.054c-1.69-1.453-3.439-2.842-5.059-4.37-8.717-8.222-15.093-17.899-18.233-29.566-.865-3.211-1.442-6.474-1.627-9.792-.13-2.322-.318-4.665-.154-6.975.437-6.144 1.325-12.229 3.127-18.147l.099-.138c.175.233.427.439.516.702 1.759 5.18 3.505 10.364 5.242 15.551 5.458 16.3 10.909 32.604 16.376 48.9.107.318.384.579.583.866l-.87 2.969z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#46A037"- d="M88.038 42.812c-1.384.206-2.768.403-4.149.616-3.131.485-6.263.968-9.392 1.465-2.622.417-5.242.852-7.862 1.281l-1.602.275-.012-1.045c-.053-.859-.144-1.717-.154-2.576-.069-5.478-.112-10.956-.18-16.434-.042-3.429-.105-6.857-.175-10.285-.043-2.13-.089-4.261-.185-6.388-.052-1.143-.236-2.28-.311-3.423-.042-.657.016-1.319.029-1.979.817 1.583 1.616 3.178 2.456 4.749 1.327 2.484 3.441 4.314 5.344 6.311 7.523 7.892 12.864 17.068 16.193 27.433z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#409433"- d="M65.036 80.753c.081-.026.222-.034.235-.08.491-1.682 1.996-1.431 3.212-1.641 3.432-.594 6.875-1.13 10.313-1.687 3.326-.539 6.652-1.081 9.981-1.604.394-.062.805-.011 1.208-.012-.622 2.22-1.112 4.488-1.901 6.647-.896 2.449-1.98 4.839-3.131 7.182a49.142 49.142 0 01-6.353 9.763c-1.919 2.308-4.058 4.441-6.202 6.548-1.185 1.165-2.582 2.114-3.882 3.161l-.337-.23-1.214-1.038-1.256-2.753a41.402 41.402 0 01-1.394-9.838l.023-.561.171-2.426c.057-.828.133-1.655.168-2.485.129-2.982.241-5.964.359-8.946z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#4FAA41"- d="M65.036 80.753c-.118 2.982-.23 5.964-.357 8.947-.035.83-.111 1.657-.168 2.485l-.765.289c-1.699-5.002-3.399-9.951-5.062-14.913-2.75-8.209-5.467-16.431-8.213-24.642a4498.887 4498.887 0 00-6.7-19.867c-.105-.31-.407-.552-.617-.826l4.896-9.002c.168.292.39.565.496.879a6167.476 6167.476 0 016.768 20.118c2.916 8.73 5.814 17.467 8.728 26.198.116.349.308.671.491 1.062l.67-.78-.167 10.052z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#4AA73C"- d="M43.155 32.227c.21.274.511.516.617.826a4498.887 4498.887 0 016.7 19.867c2.746 8.211 5.463 16.433 8.213 24.642 1.662 4.961 3.362 9.911 5.062 14.913l.765-.289-.171 2.426-.155.559c-.266 2.656-.49 5.318-.814 7.968-.163 1.328-.509 2.632-.772 3.947-.198-.287-.476-.548-.583-.866-5.467-16.297-10.918-32.6-16.376-48.9a3888.972 3888.972 0 00-5.242-15.551c-.089-.263-.34-.469-.516-.702l3.272-8.84z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#57AE47"- d="M65.202 70.702l-.67.78c-.183-.391-.375-.714-.491-1.062-2.913-8.731-5.812-17.468-8.728-26.198a6167.476 6167.476 0 00-6.768-20.118c-.105-.314-.327-.588-.496-.879l6.055-7.965c.191.255.463.482.562.769 1.681 4.921 3.347 9.848 5.003 14.778 1.547 4.604 3.071 9.215 4.636 13.813.105.308.47.526.714.786l.012 1.045c.058 8.082.115 16.167.171 24.251z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#60B24F"- d="M65.021 45.404c-.244-.26-.609-.478-.714-.786-1.565-4.598-3.089-9.209-4.636-13.813-1.656-4.93-3.322-9.856-5.003-14.778-.099-.287-.371-.514-.562-.769 1.969-1.928 3.877-3.925 5.925-5.764 1.821-1.634 3.285-3.386 3.352-5.968.003-.107.059-.214.145-.514l.519 1.306c-.013.661-.072 1.322-.029 1.979.075 1.143.259 2.28.311 3.423.096 2.127.142 4.258.185 6.388.069 3.428.132 6.856.175 10.285.067 5.478.111 10.956.18 16.434.008.861.098 1.718.152 2.577z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#A9AA88"- d="M62.598 107.085c.263-1.315.609-2.62.772-3.947.325-2.649.548-5.312.814-7.968l.066-.01.066.011a41.402 41.402 0 001.394 9.838c-.176.232-.425.439-.518.701-.727 2.05-1.412 4.116-2.143 6.166-.1.28-.378.498-.574.744l-.747-2.566.87-2.969z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#B6B598"- d="M62.476 112.621c.196-.246.475-.464.574-.744.731-2.05 1.417-4.115 2.143-6.166.093-.262.341-.469.518-.701l1.255 2.754c-.248.352-.59.669-.728 1.061l-2.404 7.059c-.099.283-.437.483-.663.722l-.695-3.985z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#C2C1A7"- d="M63.171 116.605c.227-.238.564-.439.663-.722l2.404-7.059c.137-.391.48-.709.728-1.061l1.215 1.037c-.587.58-.913 1.25-.717 2.097l-.369 1.208c-.168.207-.411.387-.494.624-.839 2.403-1.64 4.819-2.485 7.222-.107.305-.404.544-.614.812-.109-1.387-.22-2.771-.331-4.158z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#CECDB7"- d="M63.503 120.763c.209-.269.506-.508.614-.812.845-2.402 1.646-4.818 2.485-7.222.083-.236.325-.417.494-.624l-.509 5.545c-.136.157-.333.294-.398.477-.575 1.614-1.117 3.24-1.694 4.854-.119.333-.347.627-.525.938-.158-.207-.441-.407-.454-.623-.051-.841-.016-1.688-.013-2.533z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#DBDAC7"- d="M63.969 123.919c.178-.312.406-.606.525-.938.578-1.613 1.119-3.239 1.694-4.854.065-.183.263-.319.398-.477l.012 3.64-1.218 3.124-1.411-.495z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#EBE9DC"- d="M65.38 124.415l1.218-3.124.251 3.696-1.469-.572z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#CECDB7"- d="M67.464 110.898c-.196-.847.129-1.518.717-2.097l.337.23-1.054 1.867z"- /><path- fill-rule="evenodd"- clip-rule="evenodd"- fill="#4FAA41"- d="M64.316 95.172l-.066-.011-.066.01.155-.559-.023.56z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/MySQL.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/MySQL.sveltedeleted file mode 100644index 0950932144..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/MySQL.svelte+++ /dev/null@@ -1,17 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}- xmlns="http://www.w3.org/2000/svg"- width="64"- height="64"- viewBox="0 0 25.6 25.6"- ><path- d="M179.076 94.886c-3.568-.1-6.336.268-8.656 1.25-.668.27-1.74.27-1.828 1.116.357.355.4.936.713 1.428.535.893 1.473 2.096 2.32 2.72l2.855 2.053c1.74 1.07 3.703 1.695 5.398 2.766.982.625 1.963 1.428 2.945 2.098.5.357.803.938 1.428 1.16v-.135c-.312-.4-.402-.98-.713-1.428l-1.34-1.293c-1.293-1.74-2.9-3.258-4.64-4.506-1.428-.982-4.55-2.32-5.13-3.97l-.088-.1c.98-.1 2.14-.447 3.078-.715 1.518-.4 2.9-.312 4.46-.713l2.143-.625v-.4c-.803-.803-1.383-1.874-2.23-2.632-2.275-1.963-4.775-3.882-7.363-5.488-1.383-.892-3.168-1.473-4.64-2.23-.537-.268-1.428-.402-1.74-.848-.805-.98-1.25-2.275-1.83-3.436l-3.658-7.763c-.803-1.74-1.295-3.48-2.275-5.086-4.596-7.585-9.594-12.18-17.268-16.687-1.65-.937-3.613-1.34-5.7-1.83l-3.346-.18c-.715-.312-1.428-1.16-2.053-1.562-2.543-1.606-9.102-5.086-10.977-.5-1.205 2.9 1.785 5.755 2.8 7.228.76 1.026 1.74 2.186 2.277 3.346.3.758.4 1.562.713 2.365.713 1.963 1.383 4.15 2.32 5.98.5.937 1.025 1.92 1.65 2.767.357.5.982.714 1.115 1.517-.625.893-.668 2.23-1.025 3.347-1.607 5.042-.982 11.288 1.293 15 .715 1.115 2.4 3.57 4.686 2.632 2.008-.803 1.56-3.346 2.14-5.577.135-.535.045-.892.312-1.25v.1l1.83 3.703c1.383 2.186 3.793 4.462 5.8 5.98 1.07.803 1.918 2.187 3.256 2.677v-.135h-.088c-.268-.4-.67-.58-1.027-.892-.803-.803-1.695-1.785-2.32-2.677-1.873-2.498-3.523-5.265-4.996-8.12-.715-1.383-1.34-2.9-1.918-4.283-.27-.536-.27-1.34-.715-1.606-.67.98-1.65 1.83-2.143 3.034-.848 1.918-.936 4.283-1.248 6.737-.18.045-.1 0-.18.1-1.426-.356-1.918-1.83-2.453-3.078-1.338-3.168-1.562-8.254-.402-11.913.312-.937 1.652-3.882 1.117-4.774-.27-.848-1.16-1.338-1.652-2.008-.58-.848-1.203-1.918-1.605-2.855-1.07-2.5-1.605-5.265-2.766-7.764-.537-1.16-1.473-2.365-2.232-3.435-.848-1.205-1.783-2.053-2.453-3.48-.223-.5-.535-1.294-.178-1.83.088-.357.268-.5.623-.58.58-.5 2.232.134 2.812.4 1.65.67 3.033 1.294 4.416 2.23.625.446 1.295 1.294 2.098 1.518h.938c1.428.312 3.033.1 4.37.5 2.365.76 4.506 1.874 6.426 3.08 5.844 3.703 10.664 8.968 13.92 15.26.535 1.026.758 1.963 1.25 3.034.938 2.187 2.098 4.417 3.033 6.56.938 2.097 1.83 4.24 3.168 5.98.67.937 3.346 1.427 4.55 1.918.893.4 2.275.76 3.08 1.25 1.516.937 3.033 2.008 4.46 3.034.713.534 2.945 1.65 3.078 2.54zm-45.5-38.772a7.09 7.09 0 0 0-1.828.223v.1h.088c.357.714.982 1.205 1.428 1.83l1.027 2.142.088-.1c.625-.446.938-1.16.938-2.23-.268-.312-.312-.625-.535-.937-.268-.446-.848-.67-1.206-1.026z"- transform="matrix(.390229 0 0 .38781 -46.300037 -16.856717)"- fill-rule="evenodd"- fill="#00678c"- /></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/PostgreSQL.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/PostgreSQL.sveltedeleted file mode 100644index 3021508a6e..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/PostgreSQL.svelte+++ /dev/null@@ -1,56 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 432.071 445.383"- xml:space="preserve"->- <g id="orginal" style="fill-rule:nonzero;clip-rule:nonzero;stroke:#000000;stroke-miterlimit:4;" />- <g- id="Layer_x0020_3"- style="fill-rule:nonzero;clip-rule:nonzero;fill:none;stroke:#FFFFFF;stroke-width:12.4651;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;"- >- <path- style="fill:#000000;stroke:#000000;stroke-width:37.3953;stroke-linecap:butt;stroke-linejoin:miter;"- d="M323.205,324.227c2.833-23.601,1.984-27.062,19.563-23.239l4.463,0.392c13.517,0.615,31.199-2.174,41.587-7c22.362-10.376,35.622-27.7,13.572-23.148c-50.297,10.376-53.755-6.655-53.755-6.655c53.111-78.803,75.313-178.836,56.149-203.322 C352.514-5.534,262.036,26.049,260.522,26.869l-0.482,0.089c-9.938-2.062-21.06-3.294-33.554-3.496c-22.761-0.374-40.032,5.967-53.133,15.904c0,0-161.408-66.498-153.899,83.628c1.597,31.936,45.777,241.655,98.47,178.31 c19.259-23.163,37.871-42.748,37.871-42.748c9.242,6.14,20.307,9.272,31.912,8.147l0.897-0.765c-0.281,2.876-0.157,5.689,0.359,9.019c-13.572,15.167-9.584,17.83-36.723,23.416c-27.457,5.659-11.326,15.734-0.797,18.367c12.768,3.193,42.305,7.716,62.268-20.224 l-0.795,3.188c5.325,4.26,4.965,30.619,5.72,49.452c0.756,18.834,2.017,36.409,5.856,46.771c3.839,10.36,8.369,37.05,44.036,29.406c29.809-6.388,52.6-15.582,54.677-101.107"- />- <path- style="fill:#336791;stroke:none;"- d="M402.395,271.23c-50.302,10.376-53.76-6.655-53.76-6.655c53.111-78.808,75.313-178.843,56.153-203.326c-52.27-66.785-142.752-35.2-144.262-34.38l-0.486,0.087c-9.938-2.063-21.06-3.292-33.56-3.496c-22.761-0.373-40.026,5.967-53.127,15.902 c0,0-161.411-66.495-153.904,83.63c1.597,31.938,45.776,241.657,98.471,178.312c19.26-23.163,37.869-42.748,37.869-42.748c9.243,6.14,20.308,9.272,31.908,8.147l0.901-0.765c-0.28,2.876-0.152,5.689,0.361,9.019c-13.575,15.167-9.586,17.83-36.723,23.416 c-27.459,5.659-11.328,15.734-0.796,18.367c12.768,3.193,42.307,7.716,62.266-20.224l-0.796,3.188c5.319,4.26,9.054,27.711,8.428,48.969c-0.626,21.259-1.044,35.854,3.147,47.254c4.191,11.4,8.368,37.05,44.042,29.406c29.809-6.388,45.256-22.942,47.405-50.555 c1.525-19.631,4.976-16.729,5.194-34.28l2.768-8.309c3.192-26.611,0.507-35.196,18.872-31.203l4.463,0.392c13.517,0.615,31.208-2.174,41.591-7c22.358-10.376,35.618-27.7,13.573-23.148z"- />- <path- d="M215.866,286.484c-1.385,49.516,0.348,99.377,5.193,111.495c4.848,12.118,15.223,35.688,50.9,28.045c29.806-6.39,40.651-18.756,45.357-46.051c3.466-20.082,10.148-75.854,11.005-87.281"- />- <path- d="M173.104,38.256c0,0-161.521-66.016-154.012,84.109c1.597,31.938,45.779,241.664,98.473,178.316c19.256-23.166,36.671-41.335,36.671-41.335"- />- <path- d="M260.349,26.207c-5.591,1.753,89.848-34.889,144.087,34.417c19.159,24.484-3.043,124.519-56.153,203.329"- />- <path- style="stroke-linejoin:bevel;"- d="M348.282,263.953c0,0,3.461,17.036,53.764,6.653c22.04-4.552,8.776,12.774-13.577,23.155c-18.345,8.514-59.474,10.696-60.146-1.069c-1.729-30.355,21.647-21.133,19.96-28.739c-1.525-6.85-11.979-13.573-18.894-30.338 c-6.037-14.633-82.796-126.849,21.287-110.183c3.813-0.789-27.146-99.002-124.553-100.599c-97.385-1.597-94.19,119.762-94.19,119.762"- />- <path- d="M188.604,274.334c-13.577,15.166-9.584,17.829-36.723,23.417c-27.459,5.66-11.326,15.733-0.797,18.365c12.768,3.195,42.307,7.718,62.266-20.229c6.078-8.509-0.036-22.086-8.385-25.547c-4.034-1.671-9.428-3.765-16.361,3.994z"- />- <path- d="M187.715,274.069c-1.368-8.917,2.93-19.528,7.536-31.942c6.922-18.626,22.893-37.255,10.117-96.339c-9.523-44.029-73.396-9.163-73.436-3.193c-0.039,5.968,2.889,30.26-1.067,58.548c-5.162,36.913,23.488,68.132,56.479,64.938"- />- <path- style="fill:#FFFFFF;stroke-width:4.155;stroke-linecap:butt;stroke-linejoin:miter;"- d="M172.517,141.7c-0.288,2.039,3.733,7.48,8.976,8.207c5.234,0.73,9.714-3.522,9.998-5.559c0.284-2.039-3.732-4.285-8.977-5.015c-5.237-0.731-9.719,0.333-9.996,2.367z"- />- <path- style="fill:#FFFFFF;stroke-width:2.0775;stroke-linecap:butt;stroke-linejoin:miter;"- d="M331.941,137.543c0.284,2.039-3.732,7.48-8.976,8.207c-5.238,0.73-9.718-3.522-10.005-5.559c-0.277-2.039,3.74-4.285,8.979-5.015c5.239-0.73,9.718,0.333,10.002,2.368z"- />- <path- d="M350.676,123.432c0.863,15.994-3.445,26.888-3.988,43.914c-0.804,24.748,11.799,53.074-7.191,81.435"- />- <path style="stroke-width:3;" d="M0,60.232" />- </g>-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/Redis.svelte b/apps/trpc-experimental/client/src/lib/components/icons/databases/Redis.sveltedeleted file mode 100644index 24a7dc7973..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/Redis.svelte+++ /dev/null@@ -1,34 +0,0 @@-<script lang="ts">- export let isAbsolute = false;-</script>--<svg- class={isAbsolute ? 'absolute top-0 left-0 -m-5 h-10 w-10' : 'mx-auto w-8 h-8'}- viewBox="0 0 32 32"- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- ><defs- ><path- id="a"- d="m45.536 38.764c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276c-1-.478-1.524-.88-1.524-1.26v-3.813s14.447-3.145 16.78-3.982 3.14-.867 5.126-.14 13.853 2.868 15.814 3.587v3.76c0 .377-.452.8-1.477 1.324z"- /><path- id="b"- d="m45.536 28.733c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276-2.04-1.613-.077-2.382l15.332-5.935c2.332-.837 3.14-.867 5.126-.14s12.35 4.853 14.312 5.57 2.037 1.31.024 2.36z"- /></defs- ><g transform="matrix(.848327 0 0 .848327 -7.883573 -9.449691)"- ><use fill="#a41e11" xlink:href="#a" /><path- d="m45.536 34.95c-2.013 1.05-12.44 5.337-14.66 6.494s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276-2.04-1.613-.077-2.382l15.332-5.936c2.332-.836 3.14-.867 5.126-.14s12.35 4.852 14.31 5.582 2.037 1.31.024 2.36z"- fill="#d82c20"- /><use fill="#a41e11" xlink:href="#a" y="-6.218" /><use fill="#d82c20" xlink:href="#b" /><path- d="m45.536 26.098c-2.013 1.05-12.44 5.337-14.66 6.495s-3.453 1.146-5.207.308-12.85-5.32-14.85-6.276c-1-.478-1.524-.88-1.524-1.26v-3.815s14.447-3.145 16.78-3.982 3.14-.867 5.126-.14 13.853 2.868 15.814 3.587v3.76c0 .377-.452.8-1.477 1.324z"- fill="#a41e11"- /><use fill="#d82c20" xlink:href="#b" y="-6.449" /><g fill="#fff"- ><path- d="m29.096 20.712-1.182-1.965-3.774-.34 2.816-1.016-.845-1.56 2.636 1.03 2.486-.814-.672 1.612 2.534.95-3.268.34zm-6.296 3.912 8.74-1.342-2.64 3.872z"- /><ellipse cx="20.444" cy="21.402" rx="4.672" ry="1.811" /></g- ><path d="m42.132 21.138-5.17 2.042-.004-4.087z" fill="#7a0c00" /><path- d="m36.963 23.18-.56.22-5.166-2.042 5.723-2.264z"- fill="#ad2115"- /></g- ></svg->diff --git a/apps/trpc-experimental/client/src/lib/components/icons/databases/index.ts b/apps/trpc-experimental/client/src/lib/components/icons/databases/index.tsdeleted file mode 100644index e200b53111..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/databases/index.ts+++ /dev/null@@ -1,11 +0,0 @@-//@ts-nocheck-export { default as Clickhouse } from './Clickhouse.svelte';-export { default as CouchDB } from './CouchDB.svelte';-export { default as MariaDB } from './MariaDB.svelte';-export { default as MongoDB } from './MongoDB.svelte';-export { default as MySQL } from './MySQL.svelte';-export { default as PostgreSQL } from './PostgreSQL.svelte';-export { default as Redis } from './Redis.svelte';-export { default as EdgeDB } from './EdgeDB.svelte';--diff --git a/apps/trpc-experimental/client/src/lib/components/icons/destinations/LocalDocker.svelte b/apps/trpc-experimental/client/src/lib/components/icons/destinations/LocalDocker.sveltedeleted file mode 100644index f3ab3be560..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/destinations/LocalDocker.svelte+++ /dev/null@@ -1,26 +0,0 @@-<script>- export let isAbsolute=false;-</script>-<svg- xmlns="http://www.w3.org/2000/svg"- class={isAbsolute ? 'absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500' : 'mx-auto w-8 h-8 text-sky-500'}- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"->- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"- />- <path d="M5 10h3v3h-3z" />- <path d="M8 10h3v3h-3z" />- <path d="M11 10h3v3h-3z" />- <path d="M8 7h3v3h-3z" />- <path d="M11 7h3v3h-3z" />- <path d="M11 4h3v3h-3z" />- <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />- <line x1="10" y1="16" x2="10" y2="16.01" />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/destinations/RemoteDocker.svelte b/apps/trpc-experimental/client/src/lib/components/icons/destinations/RemoteDocker.sveltedeleted file mode 100644index 1d00a69004..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/destinations/RemoteDocker.svelte+++ /dev/null@@ -1,16 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"->- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="12" y1="18" x2="12.01" y2="18" />- <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />- <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />- <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/destinations/index.ts b/apps/trpc-experimental/client/src/lib/components/icons/destinations/index.tsdeleted file mode 100644index f392553252..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/destinations/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export { default as LocalDocker } from './LocalDocker.svelte';-export { default as RemoteDocker } from './RemoteDocker.svelte';diff --git a/apps/trpc-experimental/client/src/lib/components/icons/index.ts b/apps/trpc-experimental/client/src/lib/components/icons/index.tsdeleted file mode 100644index 7ccdd45c45..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/index.ts+++ /dev/null@@ -1,6 +0,0 @@-export { default as RemoteLink } from './RemoteLink.svelte';-export { default as Delete } from './Delete.svelte';-export * as Applications from './applications';-export * as Sources from './sources';-export * as Destinations from './destinations';-export * as Databases from './databases';diff --git a/apps/trpc-experimental/client/src/lib/components/icons/services/ServiceIcons.svelte b/apps/trpc-experimental/client/src/lib/components/icons/services/ServiceIcons.sveltedeleted file mode 100644index 3f832a3f5d..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/services/ServiceIcons.svelte+++ /dev/null@@ -1,62 +0,0 @@-<script lang="ts">- export let type: string;- export let isAbsolute = false;- let fallback = '/icons/default.png';- const handleError = (ev: { target: { src: string } }) => (ev.target.src = fallback);- let extension = 'png';- let svgs = [- 'mattermost',- 'repman',- 'directus',- 'pocketbase',- 'gitea',- 'languagetool',- 'meilisearch',- 'n8n',- 'glitchtip',- 'searxng',- 'umami',- 'uptimekuma',- 'vaultwarden',- 'weblate',- 'wordpress'- ];-- const name: any =- type &&- (type[0].toUpperCase() + type.substring(1).toLowerCase())- .replaceAll('.', '')- .replaceAll(' ', '')- .split('-')[0]- .toLowerCase();-- if (svgs.includes(name)) {- extension = 'svg';- }-- function generateClass() {- switch (name) {- case 'n8n':- if (isAbsolute) {- return 'w-12 h-12 absolute -m-9 -mt-12';- }- return 'w-12 h-12 -mt-3';- case 'weblate':- if (isAbsolute) {- return 'w-12 h-12 absolute -m-9 -mt-12';- }- return 'w-12 h-12 -mt-3';- default:- return isAbsolute ? 'w-10 h-10 absolute -m-4 -mt-9 left-0' : 'w-10 h-10';- }- }-</script>--{#if name}- <img- class={generateClass()}- src={`/icons/${name}.${extension}`}- on:error={handleError}- alt={`Icon of ${name}`}- />-{/if}diff --git a/apps/trpc-experimental/client/src/lib/components/icons/sources/Github.svelte b/apps/trpc-experimental/client/src/lib/components/icons/sources/Github.sveltedeleted file mode 100644index 38ef508291..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/sources/Github.svelte+++ /dev/null@@ -1,15 +0,0 @@-<script>- export let small = false;-</script>--<svg viewBox="0 0 128 128" class={small ? 'h-6 w-6' : 'h-10 w-10'}>- <g fill="#ffffff"- ><path- fill-rule="evenodd"- clip-rule="evenodd"- d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"- /><path- d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"- /></g- >-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/sources/Gitlab.svelte b/apps/trpc-experimental/client/src/lib/components/icons/sources/Gitlab.sveltedeleted file mode 100644index 7ddfa21c1e..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/sources/Gitlab.svelte+++ /dev/null@@ -1,25 +0,0 @@-<script>- export let small = false;-</script>--<svg viewBox="0 0 128 128" class={small ? 'h-6 w-6' : 'h-10 w-10'}>- <path- fill="#FC6D26"- d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"- /><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path- fill="#FC6D26"- d="M64 121.894l-23.144-71.23H8.42L64 121.893z"- /><path- fill="#FCA326"- d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"- /><path- fill="#E24329"- d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"- /><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path- fill="#FCA326"- d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"- /><path- fill="#E24329"- d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"- />-</svg>diff --git a/apps/trpc-experimental/client/src/lib/components/icons/sources/index.ts b/apps/trpc-experimental/client/src/lib/components/icons/sources/index.tsdeleted file mode 100644index 3a0d7cee35..0000000000--- a/apps/trpc-experimental/client/src/lib/components/icons/sources/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export { default as GitHub } from './Github.svelte';-export { default as GitLab } from './Gitlab.svelte';diff --git a/apps/trpc-experimental/client/src/lib/dayjs.ts b/apps/trpc-experimental/client/src/lib/dayjs.tsdeleted file mode 100644index 9ff5b0a1a0..0000000000--- a/apps/trpc-experimental/client/src/lib/dayjs.ts+++ /dev/null@@ -1,7 +0,0 @@-import dayjs from 'dayjs';-import utc from 'dayjs/plugin/utc.js';-import relativeTime from 'dayjs/plugin/relativeTime.js';-dayjs.extend(utc);-dayjs.extend(relativeTime);--export { dayjs as day };diff --git a/apps/trpc-experimental/client/src/lib/store.ts b/apps/trpc-experimental/client/src/lib/store.tsdeleted file mode 100644index f25055de27..0000000000--- a/apps/trpc-experimental/client/src/lib/store.ts+++ /dev/null@@ -1,183 +0,0 @@-import { writable, readable, type Writable } from 'svelte/store';-import superjson from 'superjson';-import type { AppRouter } from 'server/src/trpc';-import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';-import { browser, dev } from '$app/environment';-import Cookies from 'js-cookie';-import cuid from 'cuid';--export const serverBaseUrl = dev ? `http://${browser && window.location.hostname}:2022` : '';-export let token: string = Cookies.get('token') || '';-export const trpc = createTRPCProxyClient<AppRouter>({- transformer: superjson,- links: [- httpBatchLink({- url: `${serverBaseUrl}/trpc`,- headers() {- return {- Authorization: token- };- }- })- ]-});-export const disabledButton: Writable<boolean> = writable(false);-export const location: Writable<null | string> = writable(null)-interface AppSession {- isRegistrationEnabled: boolean;- token?: string;- ipv4: string | null;- ipv6: string | null;- version: string | null;- userId: string | null;- teamId: string | null;- permission: string;- isAdmin: boolean;- whiteLabeled: boolean;- whiteLabeledDetails: {- icon: string | null;- };- tokens: {- github: string | null;- gitlab: string | null;- };- pendingInvitations: Array<any>;- isARM: boolean-}--export const appSession: Writable<AppSession> = writable({- isRegistrationEnabled: false,- ipv4: null,- ipv6: null,- version: null,- userId: null,- teamId: null,- permission: 'read',- isAdmin: false,- whiteLabeled: false,- whiteLabeledDetails: {- icon: null- },- tokens: {- github: null,- gitlab: null- },- pendingInvitations: [],- isARM: false-});--interface AddToast {- type?: 'info' | 'success' | 'error';- message: string;- timeout?: number | undefined;-}-export const toasts: any = writable([]);--export const dismissToast = (id: string) => {- toasts.update((all: any) => all.filter((t: any) => t.id !== id));-};-export const pauseToast = (id: string) => {- toasts.update((all: any) => {- const index = all.findIndex((t: any) => t.id === id);- if (index > -1) clearTimeout(all[index].timeoutInterval);- return all;- });-};-export const resumeToast = (id: string) => {- toasts.update((all: any) => {- const index = all.findIndex((t: any) => t.id === id);- if (index > -1) {- all[index].timeoutInterval = setTimeout(() => {- dismissToast(id);- }, all[index].timeout);- }- return all;- });-};--export const addToast = (toast: AddToast) => {- const id = cuid();- const defaults = {- id,- type: 'info',- timeout: 2000- };- let t: any = { ...defaults, ...toast };- if (t.timeout) t.timeoutInterval = setTimeout(() => dismissToast(id), t.timeout);- toasts.update((all: any) => [t, ...all]);-};--export const features = readable({- beta: browser && window.localStorage.getItem('beta') === 'true',- latestVersion: browser && window.localStorage.getItem('latestVersion')-});--export const updateLoading: Writable<boolean> = writable(false);-export const isUpdateAvailable: Writable<boolean> = writable(false);-export const latestVersion: Writable<string> = writable('latest');-export const loginEmail: Writable<string | undefined> = writable();-export const search: any = writable('');--export const isDeploymentEnabled: Writable<boolean> = writable(false);-export const status: Writable<any> = writable({- application: {- statuses: [],- overallStatus: 'stopped',- loading: false,- restarting: false,- initialLoading: true- },- service: {- statuses: [],- overallStatus: 'stopped',- loading: false,- startup: {},- initialLoading: true- },- database: {- isRunning: false,- isExited: false,- loading: false,- initialLoading: true,- isPublic: false- }-});--export function checkIfDeploymentEnabledApplications(isAdmin: boolean, application: any) {- return !!(- (isAdmin && application.buildPack === 'compose') ||- ((application.fqdn || application.settings.isBot) &&- ((application.gitSource && application.repository && application.buildPack) ||- application.simpleDockerfile) &&- application.destinationDocker)- );-}-export const setLocation = (resource: any, settings?: any) => {- if (resource.settings.isBot && resource.exposePort) {- disabledButton.set(false);- return location.set(`http://${dev ? 'localhost' : settings.ipv4}:${resource.exposePort}`);- }- if (GITPOD_WORKSPACE_URL && resource.exposePort) {- const { href } = new URL(GITPOD_WORKSPACE_URL);- const newURL = href.replace('https://', `https://${resource.exposePort}-`).replace(/\/$/, '');- return location.set(newURL);- } else if (CODESANDBOX_HOST) {- const newURL = `https://${CODESANDBOX_HOST.replace(/\$PORT/, resource.exposePort)}`;- return location.set(newURL);- }- if (resource.fqdn) {- return location.set(resource.fqdn);- } else {- location.set(null);- disabledButton.set(false);- }-};-export const selectedBuildId: any = writable(null)-export function checkIfDeploymentEnabledServices( service: any) {- return (- service.fqdn &&- service.destinationDocker &&- service.version &&- service.type- );-}\ No newline at end of filediff --git a/apps/trpc-experimental/client/src/routes/+error.svelte b/apps/trpc-experimental/client/src/routes/+error.sveltedeleted file mode 100644index eef31e9068..0000000000--- a/apps/trpc-experimental/client/src/routes/+error.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script>- import { page } from '$app/stores';-</script>--<div class="mx-auto flex h-screen flex-col items-center justify-center px-4">- <div class="text-3xl font-bold pb-4">Ooops, are you lost?</div>- <a href="/" class="btn btn-sm bg-coollabs">Go back</a>- {#if $page.error.message !== 'Not Found'}- <div class="py-10 text-xs font-bold">- <pre class="w-full whitespace-pre-wrap break-words text-left text-xs tracking-tighter">{$page- .error.message}</pre>- </div>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/+layout.svelte b/apps/trpc-experimental/client/src/routes/+layout.sveltedeleted file mode 100644index cd5ab4cd1d..0000000000--- a/apps/trpc-experimental/client/src/routes/+layout.svelte+++ /dev/null@@ -1,417 +0,0 @@-<script lang="ts">- export let data: LayoutData;- import type { LayoutData } from './$types';- export const ssr = false;- import '../app.postcss';- import { appSession } from '$lib/store';- import Tooltip from '$lib/components/Tooltip.svelte';- import { page } from '$app/stores';- // import UpdateAvailable from '$lib/components/UpdateAvailable.svelte';- import Cookies from 'js-cookie';- import { errorNotification } from '$lib/common';- import Toasts from '$lib/components/Toasts.svelte';-- let sidedrawerToggler: HTMLInputElement;- if (data.settings.success) {- $appSession = {- ...$appSession,- ...data.settings.data- };- }-- const closeDrawer = () => (sidedrawerToggler.checked = false);- async function logout() {- try {- Cookies.remove('token');- return window.location.replace('/login');- } catch (error) {- return errorNotification(error);- }- }-</script>--<svelte:head>- {#if !$appSession.whiteLabeled}- <title>Coolify</title>- <link rel="icon" href="/favicon.png" />- {:else if $appSession.whiteLabeledDetails.icon}- <title>Coolify</title>- <link rel="icon" href={$appSession.whiteLabeledDetails.icon} />- {/if}-</svelte:head>-<Toasts />-<div class="drawer">- <input id="main-drawer" type="checkbox" class="drawer-toggle" bind:this={sidedrawerToggler} />- <div class="drawer-content">- {#if $appSession.userId}- <Tooltip triggeredBy="#iam" placement="right" color="bg-iam">IAM</Tooltip>- <Tooltip triggeredBy="#settings" placement="right" color="bg-settings text-black"- >Settings</Tooltip- >- <Tooltip triggeredBy="#documentation" placement="right" color="bg-info">Documentation</Tooltip- >- <Tooltip triggeredBy="#logout" placement="right" color="bg-red-600">Logout</Tooltip>- <nav class="nav-main hidden lg:block z-20">- <div class="flex h-screen w-full flex-col items-center transition-all duration-100">- {#if !$appSession.whiteLabeled}- <div class="mb-2 mt-4 h-10 w-10">- <img src="/favicon.png" alt="coolLabs logo" />- </div>- {:else if $appSession.whiteLabeledDetails.icon}- <div class="mb-2 mt-4 h-10 w-10">- <img src={$appSession.whiteLabeledDetails.icon} alt="White labeled logo" />- </div>- {/if}- <div class="flex flex-col space-y-2 py-2" class:mt-2={$appSession.whiteLabeled}>- <a- id="dashboard"- href="/"- class="icons hover:text-pink-500"- class:text-pink-500={$page.url.pathname === '/'}- class:bg-coolgray-500={$page.url.pathname === '/'}- class:bg-coolgray-200={!($page.url.pathname === '/')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-9 w-9"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"- />- <path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />- </svg>- </a>- {#if $appSession.teamId === '0'}- <a- id="servers"- href="/servers"- class="icons hover:text-sky-500"- class:text-sky-500={$page.url.pathname === '/servers'}- class:bg-coolgray-500={$page.url.pathname === '/servers'}- class:bg-coolgray-200={!($page.url.pathname === '/servers')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-8 h-8 mx-auto"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="3" y="4" width="18" height="8" rx="3" />- <rect x="3" y="12" width="18" height="8" rx="3" />- <line x1="7" y1="8" x2="7" y2="8.01" />- <line x1="7" y1="16" x2="7" y2="16.01" />- </svg>- </a>- {/if}- </div>- <Tooltip triggeredBy="#dashboard" placement="right">Dashboard</Tooltip>- <Tooltip triggeredBy="#servers" placement="right">Servers</Tooltip>- <div class="flex-1" />- <div class="lg:block hidden">- <!-- <UpdateAvailable /> -->- </div>- <div class="flex flex-col space-y-2 py-2">- <a- id="iam"- href={$appSession.pendingInvitations.length > 0 ? '/iam/pending' : '/iam'}- class="icons hover:text-iam indicator"- class:text-iam={$page.url.pathname.startsWith('/iam')}- class:bg-coolgray-500={$page.url.pathname.startsWith('/iam')}- >- {#if $appSession.pendingInvitations.length > 0}- <span class="indicator-item rounded-full badge badge-primary mr-2"- >{$appSession.pendingInvitations.length}</span- >- {/if}<svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- class="h-9 w-9"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="9" cy="7" r="4" />- <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />- <path d="M16 3.13a4 4 0 0 1 0 7.75" />- <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />- </svg>- </a>- <a- id="settings"- href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/docker'}- class="icons hover:text-settings"- class:text-settings={$page.url.pathname.startsWith('/settings')}- class:bg-coolgray-500={$page.url.pathname.startsWith('/settings')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- class="h-9 w-9"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"- />- <circle cx="12" cy="12" r="3" />- </svg>- </a>- <a- id="documentation"- href="https://docs.coollabs.io/coolify/"- target="_blank"- rel="noopener noreferrer"- class="icons hover:text-info"- >- <svg- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- class="w-9 h-9"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"- />- </svg>- </a>-- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div- id="logout"- class="icons bg-coolgray-200 hover:text-error cursor-pointer"- on:click={logout}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="ml-1 h-8 w-8"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"- />- <path d="M7 12h14l-3 -3m0 6l3 -3" />- </svg>- </div>- <!-- <div class="lg:block">- <LocalePicker/>- </div> -->- <div- class="w-full text-center font-bold text-stone-400 hover:bg-coolgray-200 hover:text-white"- >- <a- class="text-[10px] no-underline"- href={`https://github.com/coollabsio/coolify/releases/tag/v${$appSession.version}`}- target="_blank noreferrer">v{$appSession.version}</a- >- </div>- </div>- </div>- </nav>- {#if $appSession.whiteLabeled}- <span class="fixed bottom-0 left-[50px] z-50 m-2 px-4 text-xs text-stone-700"- >Powered by <a href="https://coolify.io" target="_blank noreferrer">Coolify</a></span- >- {/if}- {/if}- <div- class="navbar lg:hidden space-x-2 flex flex-row justify-between bg-coollabs"- class:hidden={!$appSession.userId}- >- <div>- <label for="main-drawer" class="drawer-button btn btn-square btn-ghost flex-col">- <span class="burger bg-white" />- <span class="burger bg-white" />- <span class="burger bg-white" />- </label>- <div class="prose flex flex-row justify-between space-x-1 w-full items-center pr-3">- {#if !$appSession.whiteLabeled}- <h3 class="mb-0 text-white">Coolify</h3>- {/if}- </div>- </div>- <!-- <LocalePicker /> -->- </div>- <main>- <div class={$appSession.userId ? 'lg:pl-16' : null}>- <slot />- </div>- </main>- </div>- <div class="drawer-side">- <label for="main-drawer" class="drawer-overlay w-full" />- <ul class="menu bg-coolgray-200 w-60 p-2 space-y-3 pt-4 ">- <li>- <a- class="no-underline icons hover:text-white hover:bg-pink-500"- href="/"- class:bg-pink-500={$page.url.pathname === '/'}- on:click={closeDrawer}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-8 w-8"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M19 8.71l-5.333 -4.148a2.666 2.666 0 0 0 -3.274 0l-5.334 4.148a2.665 2.665 0 0 0 -1.029 2.105v7.2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-7.2c0 -.823 -.38 -1.6 -1.03 -2.105"- />- <path d="M16 15c-2.21 1.333 -5.792 1.333 -8 0" />- </svg>- Dashboard- </a>- </li>-- <li>- <a- id="servers"- class="no-underline icons hover:text-white hover:bg-sky-500"- href="/servers"- class:bg-sky-500={$page.url.pathname.startsWith('/servers')}- on:click={closeDrawer}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-8 h-8"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="3" y="4" width="18" height="8" rx="3" />- <rect x="3" y="12" width="18" height="8" rx="3" />- <line x1="7" y1="8" x2="7" y2="8.01" />- <line x1="7" y1="16" x2="7" y2="16.01" />- </svg>- Servers- </a>- </li>- <li>- <a- class="no-underline icons hover:text-white hover:bg-iam"- href="/iam"- class:bg-iam={$page.url.pathname.startsWith('/iam')}- on:click={closeDrawer}- ><svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- class="h-8 w-8"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="9" cy="7" r="4" />- <path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />- <path d="M16 3.13a4 4 0 0 1 0 7.75" />- <path d="M21 21v-2a4 4 0 0 0 -3 -3.85" />- </svg>- IAM {#if $appSession.pendingInvitations.length > 0}- <span class="indicator-item rounded-full badge badge-primary"- >{$appSession.pendingInvitations.length}</span- >- {/if}- </a>- </li>- <li>- <a- class="no-underline icons hover:text-black hover:bg-settings"- href={$appSession.teamId === '0' ? '/settings/coolify' : '/settings/ssh'}- class:bg-settings={$page.url.pathname.startsWith('/settings')}- class:text-black={$page.url.pathname.startsWith('/settings')}- on:click={closeDrawer}- >- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- class="h-8 w-8"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"- />- <circle cx="12" cy="12" r="3" />- </svg>- Settings- </a>- </li>- <li class="flex-1 bg-transparent" />- <div class="block lg:hidden">- <!-- <UpdateAvailable /> -->- </div>- <li>- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div class="no-underline icons hover:bg-error" on:click={logout}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="ml-1 h-8 w-8"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2"- />- <path d="M7 12h14l-3 -3m0 6l3 -3" />- </svg>- <div class="-ml-1">Logout</div>- </div>- </li>- <li class="w-full">- <a- class="text-xs hover:bg-coolgray-200 no-underline hover:text-white text-right"- href={`https://github.com/coollabsio/coolify/releases/tag/v${$appSession.version}`}- target="_blank noreferrer">v{$appSession.version}</a- >- </li>- </ul>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/+layout.ts b/apps/trpc-experimental/client/src/routes/+layout.tsdeleted file mode 100644index 6a2608cac2..0000000000--- a/apps/trpc-experimental/client/src/routes/+layout.ts+++ /dev/null@@ -1,43 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';-import Cookies from 'js-cookie';-export const ssr = false;--export const load: LayoutLoad = async ({ url }) => {- const { pathname } = new URL(url);-- try {- if (pathname === '/login' || pathname === '/register') {- const baseSettings = await trpc.settings.getBaseSettings.query();- return {- settings: {- ...baseSettings- }- };- }- const settings = await trpc.settings.getInstanceSettings.query();- if (settings.data.token) {- Cookies.set('token', settings.data.token);- }- return {- settings: {- ...settings- }- };- } catch (err) {- if (err?.data?.httpStatus == 401) {- throw redirect(307, '/login');- }- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/+page.svelte b/apps/trpc-experimental/client/src/routes/+page.sveltedeleted file mode 100644index bee821f5b6..0000000000--- a/apps/trpc-experimental/client/src/routes/+page.svelte+++ /dev/null@@ -1,1652 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- import { dev } from '$app/environment';- import { onMount } from 'svelte';-- import { asyncSleep, errorNotification, getRndInteger } from '$lib/common';- import { appSession, search, trpc } from '$lib/store';- import ApplicationsIcons from '$lib/components/icons/applications/ApplicationIcons.svelte';- import DatabaseIcons from '$lib/components/icons/databases/DatabaseIcons.svelte';- import ServiceIcons from '$lib/components/icons/services/ServiceIcons.svelte';- import * as Icons from '$lib/components/icons';- import NewResource from './components/NewResource.svelte';-- const {- applications,- foundUnconfiguredApplication,- foundUnconfiguredService,- foundUnconfiguredDatabase,- databases,- services,- gitSources,- destinations,- settings- } = data;- let filtered: any = setInitials();- let numberOfGetStatus = 0;- let status: any = {};- let noInitialStatus: any = {- applications: false,- services: false,- databases: false- };- let loading = {- applications: false,- services: false,- databases: false- };- let searchInput: HTMLInputElement;- doSearch();- onMount(() => {- setTimeout(() => {- searchInput.focus();- }, 100);- });- async function refreshStatusApplications() {- noInitialStatus.applications = false;- numberOfGetStatus = 0;- for (const application of applications) {- status[application.id] = 'loading';- getStatus(application, true);- }- }- async function refreshStatusServices() {- noInitialStatus.services = false;- numberOfGetStatus = 0;- for (const service of services) {- status[service.id] = 'loading';- getStatus(service, true);- }- }- async function refreshStatusDatabases() {- noInitialStatus.databases = false;- numberOfGetStatus = 0;- for (const database of databases) {- status[database.id] = 'loading';- getStatus(database, true);- }- }- function setInitials(onlyOthers: boolean = false) {- return {- applications:- !onlyOthers &&- applications.filter(- (application: any) =>- application?.teams.length > 0 && application.teams[0].id === $appSession.teamId- ),- otherApplications: applications.filter(- (application: any) =>- application?.teams.length > 0 && application.teams[0].id !== $appSession.teamId- ),- databases:- !onlyOthers &&- databases.filter(- (database: any) =>- database?.teams.length > 0 && database.teams[0].id === $appSession.teamId- ),- otherDatabases: databases.filter(- (database: any) => database?.teams.length > 0 && database.teams[0].id !== $appSession.teamId- ),- services:- !onlyOthers &&- services.filter(- (service: any) => service?.teams.length > 0 && service.teams[0].id === $appSession.teamId- ),- otherServices: services.filter(- (service: any) => service?.teams.length > 0 && service.teams[0].id !== $appSession.teamId- ),- gitSources:- !onlyOthers &&- gitSources.filter(- (gitSource: any) =>- gitSource?.teams.length > 0 && gitSource.teams[0].id === $appSession.teamId- ),- otherGitSources: gitSources.filter(- (gitSource: any) =>- gitSource?.teams.length > 0 && gitSource.teams[0].id !== $appSession.teamId- ),- destinations:- !onlyOthers &&- destinations.filter(- (destination: any) =>- destination?.teams.length > 0 && destination.teams[0].id === $appSession.teamId- ),- otherDestinations: destinations.filter(- (destination: any) =>- destination?.teams.length > 0 && destination.teams[0].id !== $appSession.teamId- )- };- }- function clearFiltered() {- filtered.applications = [];- filtered.otherApplications = [];- filtered.databases = [];- filtered.otherDatabases = [];- filtered.services = [];- filtered.otherServices = [];- filtered.gitSources = [];- filtered.otherGitSources = [];- filtered.destinations = [];- filtered.otherDestinations = [];- }-- async function getStatus(resources: any, force: boolean = false) {- const { id, buildPack, dualCerts, type, simpleDockerfile } = resources;- if (buildPack && applications.length + filtered.otherApplications.length > 10 && !force) {- noInitialStatus.applications = true;- return;- }- if (type && services.length + filtered.otherServices.length > 10 && !force) {- noInitialStatus.services = true;- return;- }- if (databases.length + filtered.otherDatabases.length > 10 && !force) {- noInitialStatus.databases = true;- return;- }- if (status[id] && !force) return status[id];- while (numberOfGetStatus > 1) {- await asyncSleep(getRndInteger(100, 500));- }- try {- numberOfGetStatus++;- let isRunning = false;- let isDegraded = false;- if (buildPack || simpleDockerfile) {- const response = await trpc.applications.status.query({ id });- if (response.length === 0) {- isRunning = false;- } else if (response.length === 1) {- isRunning = response[0].status.isRunning;- } else {- let overallStatus = false;- for (const oneStatus of response) {- if (oneStatus.status.isRunning) {- overallStatus = true;- } else {- isDegraded = true;- break;- }- }- if (overallStatus) {- isRunning = true;- } else {- isRunning = false;- }- }- } else if (typeof dualCerts !== 'undefined') {- const response = await trpc.services.status.query({ id });- if (Object.keys(response).length === 0) {- isRunning = false;- } else {- let overallStatus = false;- for (const oneStatus of Object.keys(response)) {- if (response[oneStatus].status.isRunning) {- overallStatus = true;- } else {- isDegraded = true;- break;- }- }- if (overallStatus) {- isRunning = true;- } else {- isRunning = false;- }- }- } else {- const response = await trpc.databases.status.query({ id });- isRunning = response.isRunning;- }-- if (isRunning) {- status[id] = 'running';- return 'running';- } else if (isDegraded) {- status[id] = 'degraded';- return 'degraded';- } else {- status[id] = 'stopped';- return 'stopped';- }- } catch (error) {- status[id] = 'error';- return 'error';- } finally {- status = { ...status };- numberOfGetStatus--;- }- }- function filterState(state: string) {- clearFiltered();- filtered.applications = applications.filter((application: any) => {- if (status[application.id] === state && application.teams[0].id === $appSession.teamId)- return application;- });- filtered.otherApplications = applications.filter((application: any) => {- if (status[application.id] === state && application.teams[0].id !== $appSession.teamId)- return application;- });- filtered.databases = databases.filter((database: any) => {- if (status[database.id] === state && database.teams[0].id === $appSession.teamId)- return database;- });- filtered.otherDatabases = databases.filter((database: any) => {- if (status[database.id] === state && database.teams[0].id !== $appSession.teamId)- return database;- });- filtered.services = services.filter((service: any) => {- if (status[service.id] === state && service.teams[0].id === $appSession.teamId)- return service;- });- filtered.otherServices = services.filter((service: any) => {- if (status[service.id] === state && service.teams[0].id !== $appSession.teamId)- return service;- });- }- function filterSpecific(type: any) {- clearFiltered();- const otherType = 'other' + type[0].toUpperCase() + type.substring(1);- filtered[type] = eval(type).filter(- (resource: any) => resource.teams[0].id === $appSession.teamId- );- filtered[otherType] = eval(type).filter(- (resource: any) => resource.teams[0].id !== $appSession.teamId- );- }- function applicationFilters(application: any) {- return (- (application.id && application.id.toLowerCase().includes($search.toLowerCase())) ||- (application.name && application.name.toLowerCase().includes($search.toLowerCase())) ||- (application.fqdn && application.fqdn.toLowerCase().includes($search.toLowerCase())) ||- (application.dockerComposeConfiguration &&- application.dockerComposeConfiguration.toLowerCase().includes($search.toLowerCase())) ||- (application.repository &&- application.repository.toLowerCase().includes($search.toLowerCase())) ||- (application.buildpack &&- application.buildpack.toLowerCase().includes($search.toLowerCase())) ||- (application.branch && application.branch.toLowerCase().includes($search.toLowerCase())) ||- (application.destinationDockerId &&- application.destinationDocker.name.toLowerCase().includes($search.toLowerCase())) ||- ('bot'.includes($search) && application.settings.isBot)- );- }- function databaseFilters(database: any) {- return (- (database.id && database.id.toLowerCase().includes($search.toLowerCase())) ||- (database.name && database.name.toLowerCase().includes($search.toLowerCase())) ||- (database.type && database.type.toLowerCase().includes($search.toLowerCase())) ||- (database.version && database.version.toLowerCase().includes($search.toLowerCase())) ||- (database.destinationDockerId &&- database.destinationDocker.name.toLowerCase().includes($search.toLowerCase()))- );- }- function serviceFilters(service: any) {- return (- (service.id && service.id.toLowerCase().includes($search.toLowerCase())) ||- (service.name && service.name.toLowerCase().includes($search.toLowerCase())) ||- (service.type && service.type.toLowerCase().includes($search.toLowerCase())) ||- (service.fqdn && service.fqdn.toLowerCase().includes($search.toLowerCase())) ||- (service.version && service.version.toLowerCase().includes($search.toLowerCase())) ||- (service.destinationDockerId &&- service.destinationDocker.name.toLowerCase().includes($search.toLowerCase()))- );- }- function gitSourceFilters(source: any) {- return (- (source.id && source.id.toLowerCase().includes($search.toLowerCase())) ||- (source.name && source.name.toLowerCase().includes($search.toLowerCase())) ||- (source.type && source.type.toLowerCase().includes($search.toLowerCase())) ||- (source.htmlUrl && source.htmlUrl.toLowerCase().includes($search.toLowerCase())) ||- (source.apiUrl && source.apiUrl.toLowerCase().includes($search.toLowerCase()))- );- }- function destinationFilters(destination: any) {- return (- (destination.id && destination.id.toLowerCase().includes($search.toLowerCase())) ||- (destination.name && destination.name.toLowerCase().includes($search.toLowerCase())) ||- (destination.type && destination.type.toLowerCase().includes($search.toLowerCase()))- );- }- function doSearch(bang?: string) {- if (bang || bang === '') $search = bang;- if ($search) {- filtered = setInitials();- if ($search.startsWith('!')) {- if ($search === '!running') {- filterState('running');- } else if ($search === '!stopped') {- filterState('stopped');- } else if ($search === '!error') {- filterState('error');- } else if ($search === '!app') {- filterSpecific('applications');- } else if ($search === '!db') {- filterSpecific('databases');- } else if ($search === '!service') {- filterSpecific('services');- } else if ($search === '!git') {- filterSpecific('gitSources');- } else if ($search === '!destination') {- filterSpecific('destinations');- } else if ($search === '!bot') {- clearFiltered();- filtered.applications = applications.filter((application: any) => {- return application.settings.isBot;- });- filtered.otherApplications = applications.filter((application: any) => {- return application.settings.isBot && application.teams[0].id !== $appSession.teamId;- });- } else if ($search === '!notmine') {- clearFiltered();- filtered = setInitials(true);- }- } else {- filtered.applications = filtered.applications.filter((application: any) =>- applicationFilters(application)- );- filtered.otherApplications = filtered.otherApplications.filter((application: any) =>- applicationFilters(application)- );- filtered.databases = filtered.databases.filter((database: any) =>- databaseFilters(database)- );- filtered.otherDatabases = filtered.otherDatabases.filter((database: any) =>- databaseFilters(database)- );- filtered.services = filtered.services.filter((service: any) => serviceFilters(service));- filtered.otherServices = filtered.otherServices.filter((service: any) =>- serviceFilters(service)- );- filtered.gitSources = filtered.gitSources.filter((source: any) => gitSourceFilters(source));- filtered.otherGitSources = filtered.otherGitSources.filter((source: any) =>- gitSourceFilters(source)- );- filtered.destinations = filtered.destinations.filter((destination: any) =>- destinationFilters(destination)- );- filtered.otherDestinations = filtered.otherDestinations.filter((destination: any) =>- destinationFilters(destination)- );- }- } else {- filtered = setInitials();- }- }- async function cleanupApplications() {- try {- const sure = confirm(- 'Are you sure? This will delete all UNCONFIGURED applications and their data.'- );- if (sure) {- await trpc.applications.cleanup.query();- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }- async function cleanupServices() {- try {- const sure = confirm(- 'Are you sure? This will delete all UNCONFIGURED services and their data.'- );- if (sure) {- await trpc.services.cleanup.query();- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }- async function cleanupDatabases() {- try {- const sure = confirm(- 'Are you sure? This will delete all UNCONFIGURED databases and their data.'- );- if (sure) {- await trpc.databases.cleanup.query();- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }- async function deleteApplication(id: string) {- try {- const sure = confirm('Are you sure? This will delete this application!');- if (sure) {- await trpc.applications.delete.mutate({ id, force: true });- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }- async function deleteService(id: string) {- try {- const sure = confirm('Are you sure? This will delete this service!');- if (sure) {- await trpc.services.delete.mutate({ id });- // await del(`/services/${id}`, {});- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }- async function deleteDatabase(id: string) {- try {- const sure = confirm('Are you sure? This will delete this database!');- if (sure) {- await trpc.databases.delete.mutate({ id, force: true });- return window.location.reload();- }- } catch (error) {- return errorNotification(error);- }- }-</script>--<nav class="header">- <h1 class="mr-4 text-2xl font-bold">Dashboard</h1>- {#if $appSession.isAdmin && (applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0)}- <NewResource />- {/if}-</nav>-<div class="container lg:mx-auto lg:p-0 px-8 pt-5">- {#if applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0}- <div class="space-x-2 lg:flex lg:justify-center text-center mb-4 ">- <button- class="btn btn-sm btn-ghost"- class:bg-applications={$search === '!app'}- class:hover:bg-coollabs={$search !== '!app'}- on:click={() => doSearch('!app')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 mr-2 hidden lg:block "- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentcolor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="4" y="4" width="6" height="6" rx="1" />- <rect x="4" y="14" width="6" height="6" rx="1" />- <rect x="14" y="14" width="6" height="6" rx="1" />- <line x1="14" y1="7" x2="20" y2="7" />- <line x1="17" y1="4" x2="17" y2="10" />- </svg> Applications</button- >- <button- class="btn btn-sm btn-ghost"- class:bg-services={$search === '!service'}- class:hover:bg-coollabs={$search !== '!service'}- on:click={() => doSearch('!service')}- ><svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 mr-2 hidden lg:block"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12" />- </svg> Services</button- >- <button- class="btn btn-sm btn-ghost "- class:bg-databases={$search === '!db'}- class:hover:bg-coollabs={$search !== '!db'}- on:click={() => doSearch('!db')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 mr-2 hidden lg:block"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <ellipse cx="12" cy="6" rx="8" ry="3" />- <path d="M4 6v6a8 3 0 0 0 16 0v-6" />- <path d="M4 12v6a8 3 0 0 0 16 0v-6" />- </svg> Databases</button- >- <button- class="btn btn-sm btn-ghost"- class:bg-sources={$search === '!git'}- class:hover:bg-coollabs={$search !== '!git'}- on:click={() => doSearch('!git')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 mr-2 hidden lg:block"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="6" cy="6" r="2" />- <circle cx="18" cy="18" r="2" />- <path d="M11 6h5a2 2 0 0 1 2 2v8" />- <polyline points="14 9 11 6 14 3" />- <path d="M13 18h-5a2 2 0 0 1 -2 -2v-8" />- <polyline points="10 15 13 18 10 21" />- </svg> Git Sources</button- >- <button- class="btn btn-sm btn-ghost"- class:bg-destinations={$search === '!destination'}- class:hover:bg-coollabs={$search !== '!destination'}- on:click={() => doSearch('!destination')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 mr-2 hidden lg:block"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"- />- <path d="M5 10h3v3h-3z" />- <path d="M8 10h3v3h-3z" />- <path d="M11 10h3v3h-3z" />- <path d="M8 7h3v3h-3z" />- <path d="M11 7h3v3h-3z" />- <path d="M11 4h3v3h-3z" />- <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />- <line x1="10" y1="16" x2="10" y2="16.01" />- </svg>Destinations</button- >- </div>- <div class="form-control">- <div class="input-group flex w-full">- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div- class="btn btn-square cursor-default no-animation hover:bg-error"- on:click={() => doSearch('')}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentcolor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="18" y1="6" x2="6" y2="18" />- <line x1="6" y1="6" x2="18" y2="18" />- </svg>- </div>-- <input- bind:this={searchInput}- id="search"- type="text"- placeholder="Search: You can search for names, domains, types, database types, version, servers etc..."- class="w-full input input-bordered input-primary"- bind:value={$search}- on:input={() => doSearch()}- />- </div>- <label for="search" class="label w-full mt-3">- <span class="label-text text-xs flex flex-wrap gap-2 items-center">- <button- class:bg-coollabs={$search === '!bot'}- class="badge badge-lg text-white text-xs rounded"- on:click={() => doSearch('!bot')}>Bots</button- >-- <button- class:bg-coollabs={$search === '!notmine'}- class="badge badge-lg text-white text-xs rounded"- on:click={() => doSearch('!notmine')}>Other Teams</button- >- <button- class:bg-coollabs={$search === '!running'}- class="badge badge-lg text-white text-xs rounded"- on:click={() => doSearch('!running')}>Running</button- >- <button- class:bg-coollabs={$search === '!stopped'}- class="badge badge-lg text-white text-xs rounded"- on:click={() => doSearch('!stopped')}>Stopped</button- >- <button- class:bg-coollabs={$search === '!error'}- class="badge badge-lg text-white text-xs rounded"- on:click={() => doSearch('!error')}>Error</button- >- </span>- </label>- </div>- {/if}- {#if (filtered.applications.length > 0 && applications.length > 0) || filtered.otherApplications.length > 0}- <div class="flex items-center mt-10 space-x-2">- <h1 class="title lg:text-3xl">Applications</h1>- <button class="btn btn-sm btn-primary" on:click={refreshStatusApplications}- >{noInitialStatus.applications ? 'Load Status' : 'Refresh Status'}</button- >- {#if foundUnconfiguredApplication}- <button- class="btn btn-sm"- class:loading={loading.applications}- disabled={loading.applications}- on:click={cleanupApplications}>Cleanup Unconfigured Resources</button- >- {/if}- </div>- {/if}- {#if filtered.applications.length > 0 && applications.length > 0}- <div class="divider" />- <div- class="grid grid-col gap-2 lg:gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 p-4"- >- {#if filtered.applications.length > 0}- {#each filtered.applications as application}- <a class="no-underline mb-5" href={`/applications/${application.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-green-600 indicator duration-150"- >- {#await getStatus(application)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.applications}- {#if status[application.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[application.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else if status[application.id] === 'degraded'}- <span- class="indicator-item indicator-middle indicator-center badge bg-warning text-black font-bold badge-xl"- >Degraded</span- >- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <ApplicationsIcons {application} isAbsolute={true} />- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">- {application.name}- {#if application.settings?.isBot}- <span class="text-xs badge bg-coolblack border-none text-applications"- >BOT</span- >- {/if}- </h1>- <div class="h-10 text-xs">- {#if application?.fqdn}- <h2>{application?.fqdn.replace('https://', '').replace('http://', '')}</h2>- {:else if !application.settings?.isBot && !application?.fqdn && application.buildPack !== 'compose'}- <h2 class="text-red-500">Not configured</h2>- {/if}- {#if application.destinationDocker?.name}- <div class="truncate">{application.destinationDocker?.name}</div>- {/if}- {#if application.teams.length > 0 && application.teams[0]?.name}- <div class="truncate">{application.teams[0]?.name}</div>- {/if}- </div>-- <div class="flex justify-end items-end space-x-2 h-10">- {#if application?.fqdn}- <a- href={application?.fqdn}- target="_blank noreferrer"- class="icons hover:bg-green-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}-- {#if application.settings?.isBot && application.exposePort}- <a- href={`http://${dev ? 'localhost' : settings.ipv4}:${- application.exposePort- }`}- target="_blank noreferrer"- class="icons hover:bg-green-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}- <button- class="icons hover:bg-green-500"- on:click|stopPropagation|preventDefault={() =>- deleteApplication(application.id)}><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/each}- {:else}- <h1 class="">Nothing here.</h1>- {/if}- </div>- {/if}- {#if filtered.otherApplications.length > 0}- {#if filtered.applications.length > 0}- <div class="divider w-32 mx-auto" />- {/if}- {/if}- {#if filtered.otherApplications.length > 0}- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 p-4"- >- {#each filtered.otherApplications as application}- <a class="no-underline mb-5" href={`/applications/${application.id}`}>- <div class="w-full rounded p-5 bg-coolgray-200 hover:bg-green-600 indicator duration-150">- {#await getStatus(application)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.applications}- {#if status[application.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[application.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <ApplicationsIcons {application} isAbsolute={true} />- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">- {application.name}- {#if application.settings?.isBot}- <span class="text-xs badge bg-coolblack border-none text-applications">BOT</span- >- {/if}- </h1>- <div class="h-10 text-xs">- {#if application?.fqdn}- <h2>{application?.fqdn.replace('https://', '').replace('http://', '')}</h2>- {:else if !application.settings?.isBot && !application?.fqdn}- <h2 class="text-red-500">Not configured</h2>- {/if}- {#if application.destinationDocker?.name}- <div class="truncate">{application.destinationDocker?.name}</div>- {/if}- {#if application.teams.length > 0 && application.teams[0]?.name}- <div class="truncate">{application.teams[0]?.name}</div>- {/if}- </div>-- <div class="flex justify-end items-end space-x-2 h-10">- {#if application?.fqdn}- <a- href={application?.fqdn}- target="_blank noreferrer"- class="icons hover:bg-green-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}-- {#if application.settings?.isBot && application.exposePort}- <a- href={`http://${dev ? 'localhost' : settings.ipv4}:${application.exposePort}`}- target="_blank noreferrer"- class="icons hover:bg-green-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}- <button- class="icons hover:bg-green-500"- on:click|stopPropagation|preventDefault={() =>- deleteApplication(application.id)}><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/each}- </div>- {/if}- {#if (filtered.services.length > 0 && services.length > 0) || filtered.otherServices.length > 0}- <div class="flex items-center mt-10 space-x-2">- <h1 class="title lg:text-3xl">Services</h1>- <button class="btn btn-sm btn-primary" on:click={refreshStatusServices}- >{noInitialStatus.services ? 'Load Status' : 'Refresh Status'}</button- >- {#if foundUnconfiguredService}- <button- class="btn btn-sm"- class:loading={loading.services}- disabled={loading.services}- on:click={cleanupServices}>Cleanup Unconfigured Resources</button- >- {/if}- </div>- {/if}- {#if filtered.services.length > 0 && services.length > 0}- <div class="divider" />- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#if filtered.services.length > 0}- {#each filtered.services as service}- {#key service.id}- <a class="no-underline mb-5" href={`/services/${service.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150"- >- {#await getStatus(service)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.services}- {#if status[service.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[service.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <ServiceIcons type={service.type} isAbsolute={true} />- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">{service.name}</h1>- <div class="h-10 text-xs">- {#if service?.fqdn}- <h2>{service?.fqdn.replace('https://', '').replace('http://', '')}</h2>- {:else}- <h2 class="text-red-500">URL not configured</h2>- {/if}- {#if service.destinationDocker?.name}- <div class="truncate">{service.destinationDocker?.name}</div>- {/if}- {#if service.teams.length > 0 && service.teams[0]?.name}- <div class="truncate">{service.teams[0]?.name}</div>- {/if}- </div>- <div class="flex justify-end items-end space-x-2 h-10">- {#if service?.fqdn}- <a- href={service?.fqdn}- target="_blank noreferrer"- class="icons hover:bg-pink-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}- <button- class="icons hover:bg-pink-500"- on:click|stopPropagation|preventDefault={() => deleteService(service.id)}- ><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- {:else}- <h1 class="">Nothing here.</h1>- {/if}- </div>- {/if}- {#if filtered.otherServices.length > 0}- {#if filtered.services.length > 0}- <div class="divider w-32 mx-auto" />- {/if}- {/if}- {#if filtered.otherServices.length > 0}- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#each filtered.otherServices as service}- {#key service.id}- <a class="no-underline mb-5" href={`/services/${service.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-pink-600 indicator duration-150"- >- {#await getStatus(service)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.services}- {#if status[service.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[service.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <ServiceIcons type={service.type} isAbsolute={true} />- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">{service.name}</h1>- <div class="h-10 text-xs">- {#if service?.fqdn}- <h2>{service?.fqdn.replace('https://', '').replace('http://', '')}</h2>- {:else}- <h2 class="text-red-500">URL not configured</h2>- {/if}- {#if service.destinationDocker?.name}- <div class="truncate">{service.destinationDocker?.name}</div>- {/if}- {#if service.teams.length > 0 && service.teams[0]?.name}- <div class="truncate">{service.teams[0]?.name}</div>- {/if}- </div>- <div class="flex justify-end items-end space-x-2 h-10">- {#if service?.fqdn}- <a- href={service?.fqdn}- target="_blank noreferrer"- class="icons hover:bg-pink-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}- <button- class="icons hover:bg-pink-500"- on:click|stopPropagation|preventDefault={() => deleteService(service.id)}- ><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- </div>- {/if}- {#if (filtered.databases.length > 0 && databases.length > 0) || filtered.otherDatabases.length > 0}- <div class="flex items-center mt-10 space-x-2">- <h1 class="title lg:text-3xl">Databases</h1>- <button class="btn btn-sm btn-primary" on:click={refreshStatusDatabases}- >{noInitialStatus.databases ? 'Load Status' : 'Refresh Status'}</button- >- {#if foundUnconfiguredDatabase}- <button- class="btn btn-sm"- class:loading={loading.databases}- disabled={loading.databases}- on:click={cleanupDatabases}>Cleanup Unconfigured Resources</button- >- {/if}- </div>- {/if}- {#if filtered.databases.length > 0 && databases.length > 0}- <div class="divider" />- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#if filtered.databases.length > 0}- {#each filtered.databases as database}- {#key database.id}- <a class="no-underline mb-5" href={`/databases/${database.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150"- >- {#await getStatus(database)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.databases}- {#if status[database.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[database.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <DatabaseIcons type={database.type} isAbsolute={true} />- <div class="w-full flex flex-col">- <div class="h-10">- <h1 class="font-bold text-base truncate">{database.name}</h1>- <div class="h-10 text-xs">- {#if database?.version}- <h2 class="">{database?.version}</h2>- {:else}- <h2 class="text-red-500">Not version not configured</h2>- {/if}- {#if database.destinationDocker?.name}- <div class="truncate">{database.destinationDocker?.name}</div>- {/if}- {#if database.teams.length > 0 && database.teams[0]?.name}- <div class="truncate">{database.teams[0]?.name}</div>- {/if}- </div>- </div>- <div class="flex justify-end items-center space-x-2 h-10">- {#if database.settings?.isPublic}- <div title="Public" class="icons hover:bg-transparent">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 "- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="3.6" y1="9" x2="20.4" y2="9" />- <line x1="3.6" y1="15" x2="20.4" y2="15" />- <path d="M11.5 3a17 17 0 0 0 0 18" />- <path d="M12.5 3a17 17 0 0 1 0 18" />- </svg>- </div>- {/if}- <button- class="icons hover:bg-databases-100"- on:click|stopPropagation|preventDefault={() => deleteDatabase(database.id)}- ><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- {:else}- <h1 class="">Nothing here.</h1>- {/if}- </div>- {/if}- {#if filtered.otherDatabases.length > 0}- {#if filtered.databases.length > 0}- <div class="divider w-32 mx-auto" />- {/if}- {/if}- {#if filtered.otherDatabases.length > 0}- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#each filtered.otherDatabases as database}- {#key database.id}- <a class="no-underline mb-5" href={`/databases/${database.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-databases indicator duration-150"- >- {#await getStatus(database)}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:then}- {#if !noInitialStatus.databases}- {#if status[database.id] === 'loading'}- <span class="indicator-item badge bg-yellow-300 badge-sm" />- {:else if status[database.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/if}- {/await}- <div class="w-full flex flex-row">- <DatabaseIcons type={database.type} isAbsolute={true} />- <div class="w-full flex flex-col">- <div class="h-10">- <h1 class="font-bold text-base truncate">{database.name}</h1>- <div class="h-10 text-xs">- {#if database?.version}- <h2 class="">{database?.version}</h2>- {:else}- <h2 class="text-red-500">Not version not configured</h2>- {/if}- {#if database.destinationDocker?.name}- <div class="truncate">{database.destinationDocker?.name}</div>- {/if}- {#if database.teams.length > 0 && database.teams[0]?.name}- <div class="truncate">{database.teams[0]?.name}</div>- {/if}- </div>- </div>- <div class="flex justify-end items-end space-x-2 h-10">- {#if database.settings?.isPublic}- <div title="Public">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 "- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="3.6" y1="9" x2="20.4" y2="9" />- <line x1="3.6" y1="15" x2="20.4" y2="15" />- <path d="M11.5 3a17 17 0 0 0 0 18" />- <path d="M12.5 3a17 17 0 0 1 0 18" />- </svg>- </div>- {/if}- <button- class="icons hover:bg-databases"- on:click|stopPropagation|preventDefault={() => deleteDatabase(database.id)}- ><Icons.Delete /></button- >- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- </div>- {/if}- {#if (filtered.gitSources.length > 0 && gitSources.length > 0) || filtered.otherGitSources.length > 0}- <div class="flex items-center mt-10">- <h1 class="title lg:text-3xl">Git Sources</h1>- </div>- {/if}- {#if filtered.gitSources.length > 0 && gitSources.length > 0}- <div class="divider" />- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#if filtered.gitSources.length > 0}- {#each filtered.gitSources as source}- {#key source.id}- <a class="no-underline mb-5" href={`/sources/${source.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150"- >- <div class="w-full flex flex-row">- <div class="absolute top-0 left-0 -m-5 flex">- {#if source?.type === 'gitlab'}- <svg viewBox="0 0 128 128" class="h-10 w-10">- <path- fill="#FC6D26"- d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"- /><path- fill="#E24329"- d="M64 121.894l23.144-71.23H40.856L64 121.893z"- /><path- fill="#FC6D26"- d="M64 121.894l-23.144-71.23H8.42L64 121.893z"- /><path- fill="#FCA326"- d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"- /><path- fill="#E24329"- d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"- /><path- fill="#FC6D26"- d="M64 121.894l23.144-71.23h32.437L64 121.893z"- /><path- fill="#FCA326"- d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"- /><path- fill="#E24329"- d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"- />- </svg>- {:else if source?.type === 'github'}- <svg viewBox="0 0 128 128" class="h-10 w-10">- <g fill="#ffffff"- ><path- fill-rule="evenodd"- clip-rule="evenodd"- d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"- /><path- d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"- /></g- >- </svg>- {/if}-- {#if source.isSystemWide}- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-10 w-10"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="3.6" y1="9" x2="20.4" y2="9" />- <line x1="3.6" y1="15" x2="20.4" y2="15" />- <path d="M11.5 3a17 17 0 0 0 0 18" />- <path d="M12.5 3a17 17 0 0 1 0 18" />- </svg>- {/if}- </div>- <div class="w-full flex flex-col">- <div class="h-10">- <h1 class="font-bold text-base truncate">{source.name}</h1>- {#if source.teams.length > 0 && source.teams[0]?.name}- <div class="truncate text-xs">{source.teams[0]?.name}</div>- {/if}- </div>-- <div class="flex justify-end items-end space-x-2 h-10" />- </div>- </div>- </div>- </a>- {/key}- {/each}- {:else}- <h1 class="">Nothing here.</h1>- {/if}- </div>- {/if}- {#if filtered.otherGitSources.length > 0}- {#if filtered.gitSources.length > 0}- <div class="divider w-32 mx-auto" />- {/if}- {/if}- {#if filtered.otherGitSources.length > 0}- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#each filtered.otherGitSources as source}- {#key source.id}- <a class="no-underline mb-5" href={`/sources/${source.id}`}>- <div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150">- <div class="w-full flex flex-row">- <div class="absolute top-0 left-0 -m-5 flex">- {#if source?.type === 'gitlab'}- <svg viewBox="0 0 128 128" class="h-10 w-10">- <path- fill="#FC6D26"- d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"- /><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path- fill="#FC6D26"- d="M64 121.894l-23.144-71.23H8.42L64 121.893z"- /><path- fill="#FCA326"- d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"- /><path- fill="#E24329"- d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"- /><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path- fill="#FCA326"- d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"- /><path- fill="#E24329"- d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"- />- </svg>- {:else if source?.type === 'github'}- <svg viewBox="0 0 128 128" class="h-10 w-10">- <g fill="#ffffff"- ><path- fill-rule="evenodd"- clip-rule="evenodd"- d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"- /><path- d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"- /></g- >- </svg>- {/if}-- {#if source.isSystemWide}- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-10 w-10"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="3.6" y1="9" x2="20.4" y2="9" />- <line x1="3.6" y1="15" x2="20.4" y2="15" />- <path d="M11.5 3a17 17 0 0 0 0 18" />- <path d="M12.5 3a17 17 0 0 1 0 18" />- </svg>- {/if}- </div>- <div class="w-full flex flex-col">- <div class="h-10">- <h1 class="font-bold text-base truncate">{source.name}</h1>- {#if source.teams.length > 0 && source.teams[0]?.name}- <div class="truncate text-xs">{source.teams[0]?.name}</div>- {/if}- </div>- <div class="flex justify-end items-end space-x-2 h-10" />- </div>- </div>- </div>- </a>- {/key}- {/each}- </div>- {/if}- {#if (filtered.destinations.length > 0 && destinations.length > 0) || filtered.otherDestinations.length > 0}- <div class="flex items-center mt-10">- <h1 class="title lg:text-3xl">Destinations</h1>- </div>- {/if}- {#if filtered.destinations.length > 0 && destinations.length > 0}- <div class="divider" />- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4 "- >- {#if filtered.destinations.length > 0}- {#each filtered.destinations as destination}- {#key destination.id}- <a class="no-underline mb-5" href={`/destinations/${destination.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150"- >- <div class="w-full flex flex-row">- <div class="absolute top-0 left-0 -m-5 h-10 w-10">- <svg- xmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"- />- <path d="M5 10h3v3h-3z" />- <path d="M8 10h3v3h-3z" />- <path d="M11 10h3v3h-3z" />- <path d="M8 7h3v3h-3z" />- <path d="M11 7h3v3h-3z" />- <path d="M11 4h3v3h-3z" />- <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />- <line x1="10" y1="16" x2="10" y2="16.01" />- </svg>- {#if destination.remoteEngine}- <svg- xmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="12" y1="18" x2="12.01" y2="18" />- <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />- <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />- <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />- </svg>- {/if}- </div>- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">{destination.name}</h1>- <div class="h-10 text-xs">- {#if $appSession.teamId === '0' && destination.remoteVerified === false && destination.remoteEngine}- <h2 class="text-red-500">Not verified yet</h2>- {/if}- {#if destination.remoteEngine && !destination.sshKeyId}- <h2 class="text-red-500">SSH key missing</h2>- {/if}- {#if destination.teams.length > 0 && destination.teams[0]?.name}- <div class="truncate">{destination.teams[0]?.name}</div>- {/if}- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- {:else}- <h1 class="">Nothing here.</h1>- {/if}- </div>- {/if}- {#if filtered.otherDestinations.length > 0}- {#if filtered.destinations.length > 0}- <div class="divider w-32 mx-auto" />- {/if}- {/if}- {#if filtered.otherDestinations.length > 0}- <div- class="grid grid-col gap-8 auto-cols-max grid-cols-1 md:grid-cols-2 lg:md:grid-cols-3 xl:grid-cols-4 p-4"- >- {#each filtered.otherDestinations as destination}- {#key destination.id}- <a class="no-underline mb-5" href={`/destinations/${destination.id}`}>- <div- class="w-full rounded p-5 bg-coolgray-200 hover:bg-destinations indicator duration-150"- >- <div class="w-full flex flex-row">- <div class="absolute top-0 left-0 -m-5 h-10 w-10">- <svg- xmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-0 -m-2 h-12 w-12 text-sky-500"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"- />- <path d="M5 10h3v3h-3z" />- <path d="M8 10h3v3h-3z" />- <path d="M11 10h3v3h-3z" />- <path d="M8 7h3v3h-3z" />- <path d="M11 7h3v3h-3z" />- <path d="M11 4h3v3h-3z" />- <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />- <line x1="10" y1="16" x2="10" y2="16.01" />- </svg>- {#if destination.remoteEngine}- <svg- xmlns="http://www.w3.org/2000/svg"- class="absolute top-0 left-9 -m-2 h-6 w-6 text-sky-500 rotate-45"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="12" y1="18" x2="12.01" y2="18" />- <path d="M9.172 15.172a4 4 0 0 1 5.656 0" />- <path d="M6.343 12.343a8 8 0 0 1 11.314 0" />- <path d="M3.515 9.515c4.686 -4.687 12.284 -4.687 17 0" />- </svg>- {/if}- </div>- <div class="w-full flex flex-col">- <h1 class="font-bold text-base truncate">{destination.name}</h1>- <div class="h-10 text-xs">- {#if $appSession.teamId === '0' && destination.remoteVerified === false && destination.remoteEngine}- <h2 class="text-red-500">Not verified yet</h2>- {/if}- {#if destination.remoteEngine && !destination.sshKeyId}- <h2 class="text-red-500">SSH key missing</h2>- {/if}- {#if destination.teams.length > 0 && destination.teams[0]?.name}- <div class="truncate">{destination.teams[0]?.name}</div>- {/if}- </div>- </div>- </div>- </div>- </a>- {/key}- {/each}- </div>- {/if}-- {#if filtered.applications.length === 0 && filtered.destinations.length === 0 && filtered.databases.length === 0 && filtered.services.length === 0 && filtered.gitSources.length === 0 && filtered.destinations.length === 0 && $search}- <div class="flex flex-col items-center justify-center h-full pt-20">- <h1 class="text-2xl font-bold pb-4">- Nothing found with <span class="text-error font-bold">{$search}</span>.- </h1>- </div>- {/if}- {#if applications.length === 0 && destinations.length === 0 && databases.length === 0 && services.length === 0 && gitSources.length === 0 && destinations.length === 0}- <div class="hero">- <div class="hero-content text-center">- <div class="">- <h1 class="text-5xl font-bold">- Hey <svg- xmlns="http://www.w3.org/2000/svg"- class="w-20 h-20 inline-flex"- viewBox="0 0 36 36"- ><path- fill="#EF9645"- d="M4.861 9.147c.94-.657 2.357-.531 3.201.166l-.968-1.407c-.779-1.111-.5-2.313.612-3.093 1.112-.777 4.263 1.312 4.263 1.312-.786-1.122-.639-2.544.483-3.331 1.122-.784 2.67-.513 3.456.611l10.42 14.72L25 31l-11.083-4.042L4.25 12.625c-.793-1.129-.519-2.686.611-3.478z"- /><path- fill="#FFDC5D"- d="M2.695 17.336s-1.132-1.65.519-2.781c1.649-1.131 2.78.518 2.78.518l5.251 7.658c.181-.302.379-.6.6-.894L4.557 11.21s-1.131-1.649.519-2.78c1.649-1.131 2.78.518 2.78.518l6.855 9.997c.255-.208.516-.417.785-.622L7.549 6.732s-1.131-1.649.519-2.78c1.649-1.131 2.78.518 2.78.518l7.947 11.589c.292-.179.581-.334.871-.498L12.238 4.729s-1.131-1.649.518-2.78c1.649-1.131 2.78.518 2.78.518l7.854 11.454 1.194 1.742c-4.948 3.394-5.419 9.779-2.592 13.902.565.825 1.39.26 1.39.26-3.393-4.949-2.357-10.51 2.592-13.903L24.515 8.62s-.545-1.924 1.378-2.47c1.924-.545 2.47 1.379 2.47 1.379l1.685 5.004c.668 1.984 1.379 3.961 2.32 5.831 2.657 5.28 1.07 11.842-3.94 15.279-5.465 3.747-12.936 2.354-16.684-3.11L2.695 17.336z"- /><g fill="#5DADEC"- ><path- d="M12 32.042C8 32.042 3.958 28 3.958 24c0-.553-.405-1-.958-1s-1.042.447-1.042 1C1.958 30 6 34.042 12 34.042c.553 0 1-.489 1-1.042s-.447-.958-1-.958z"- /><path- d="M7 34c-3 0-5-2-5-5 0-.553-.447-1-1-1s-1 .447-1 1c0 4 3 7 7 7 .553 0 1-.447 1-1s-.447-1-1-1zM24 2c-.552 0-1 .448-1 1s.448 1 1 1c4 0 8 3.589 8 8 0 .552.448 1 1 1s1-.448 1-1c0-5.514-4-10-10-10z"- /><path- d="M29 .042c-.552 0-1 .406-1 .958s.448 1.042 1 1.042c3 0 4.958 2.225 4.958 4.958 0 .552.489 1 1.042 1s.958-.448.958-1C35.958 3.163 33 .042 29 .042z"- /></g- ></svg- >- </h1>- <p class="py-6 text-xl">It looks like you did not configure anything yet.</p>- <NewResource><button class="btn btn-primary">Let's Get Started</button></NewResource>- </div>- </div>- </div>- {/if}-</div>-<div class="mb-20" />diff --git a/apps/trpc-experimental/client/src/routes/+page.ts b/apps/trpc-experimental/client/src/routes/+page.tsdeleted file mode 100644index 3465b727ee..0000000000--- a/apps/trpc-experimental/client/src/routes/+page.ts+++ /dev/null@@ -1,13 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-export const ssr = false;--export const load = async () => {- try {- return await trpc.dashboard.resources.query();- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.sveltedeleted file mode 100644index 8edaae1b80..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.svelte+++ /dev/null@@ -1,114 +0,0 @@-<script lang="ts">- import { page } from '$app/stores';- import { status, trpc } from '$lib/store';- import { onDestroy, onMount } from 'svelte';- import type { LayoutData } from './$types';- import * as Buttons from './components/Buttons';- import * as States from './components/States';-- import Menu from './components/Menu.svelte';-- export let data: LayoutData;- const id = $page.params.id;- const application = data.application.data;-- $: isConfigurationView = $page.url.pathname.startsWith(`/applications/${id}/configuration/`);-- let stopping = false;- let statusInterval: NodeJS.Timeout;-- onMount(async () => {- await getStatus();- statusInterval = setInterval(async () => {- await getStatus();- }, 2000);- });- onDestroy(() => {- $status.application.initialLoading = true;- $status.application.loading = false;- $status.application.statuses = [];- $status.application.overallStatus = 'stopped';- clearInterval(statusInterval);- });- async function getStatus() {- if (($status.application.loading && stopping) || $status.application.restarting === true)- return;- $status.application.loading = true;- $status.application.statuses = await trpc.applications.status.query({ id });- let numberOfApplications = 0;- if (application.dockerComposeConfiguration) {- numberOfApplications =- application.buildPack === 'compose'- ? Object.entries(JSON.parse(application.dockerComposeConfiguration)).length- : 1;- } else {- numberOfApplications = 1;- }-- if ($status.application.statuses.length === 0) {- $status.application.overallStatus = 'stopped';- } else {- for (const oneStatus of $status.application.statuses) {- if (oneStatus.status.isExited || oneStatus.status.isRestarting) {- $status.application.overallStatus = 'degraded';- break;- }- if (oneStatus.status.isRunning) {- $status.application.overallStatus = 'healthy';- }- if (- !oneStatus.status.isExited &&- !oneStatus.status.isRestarting &&- !oneStatus.status.isRunning- ) {- $status.application.overallStatus = 'stopped';- }- }- }- $status.application.loading = false;- $status.application.initialLoading = false;- }-</script>--<div class="mx-auto max-w-screen-2xl px-6 grid grid-cols-1 lg:grid-cols-2">- <nav class="header flex flex-row order-2 lg:order-1 px-0 lg:px-4 items-start">- <div class="title lg:pb-10">- <div class="flex justify-center items-center space-x-2">- <div>Configurations</div>- </div>- </div>- {#if isConfigurationView}- <Buttons.Delete {id} name={application.name} />- {/if}- </nav>- <div- class="pt-4 flex flex-row items-start justify-center lg:justify-end space-x-2 order-1 lg:order-2"- >- {#if $status.application.initialLoading}- <States.Loading />- {:else if $status.application.overallStatus === 'degraded'}- <States.Degraded- {id}- on:stopping={() => (stopping = true)}- on:stopped={() => (stopping = false)}- />- {:else if $status.application.overallStatus === 'healthy'}- <States.Healthy {id} isComposeBuildPack={application.buildPack === 'compose'} />- {:else if $status.application.overallStatus === 'stopped'}- <States.Stopped {id} />- {/if}- </div>-</div>-<div- class="mx-auto max-w-screen-2xl px-0 lg:px-10 grid grid-cols-1"- class:lg:grid-cols-4={!isConfigurationView}->- {#if !isConfigurationView}- <nav class="header flex flex-col lg:pt-0 ">- <Menu {application} />- </nav>- {/if}- <div class="pt-0 col-span-0 lg:col-span-3 pb-24">- <slot />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.tsdeleted file mode 100644index 3bbc66f629..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/+layout.ts+++ /dev/null@@ -1,56 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';--function checkConfiguration(application: any): string | null {- let configurationPhase = null;- if (!application.gitSourceId && !application.simpleDockerfile) {- return (configurationPhase = 'source');- }- if (application.simpleDockerfile) {- if (!application.destinationDockerId) {- configurationPhase = 'destination';- }- return configurationPhase;- } else if (!application.repository && !application.branch) {- configurationPhase = 'repository';- } else if (!application.destinationDockerId) {- configurationPhase = 'destination';- } else if (!application.buildPack) {- configurationPhase = 'buildpack';- }- return configurationPhase;-}--export const load: LayoutLoad = async ({ params, url }) => {- const { pathname } = new URL(url);- const { id } = params;- try {- const application = await trpc.applications.getApplicationById.query({ id });- if (!application) {- throw redirect(307, '/applications');- }- const configurationPhase = checkConfiguration(application);- console.log({ configurationPhase });- // if (- // configurationPhase &&- // pathname !== `/applications/${params.id}/configuration/${configurationPhase}`- // ) {- // throw redirect(302, `/applications/${params.id}/configuration/${configurationPhase}`);- // }- return {- application- };- } catch (err) {- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/+page.sveltedeleted file mode 100644index 7f3326de73..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/+page.svelte+++ /dev/null@@ -1,1257 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- const application = data.application.data;- const settings = data.settings.data;-- import yaml from 'js-yaml';- import { page } from '$app/stores';- import { onMount } from 'svelte';- import Select from 'svelte-select';- import cuid from 'cuid';- import {- addToast,- appSession,- checkIfDeploymentEnabledApplications,- setLocation,- status,- isDeploymentEnabled,- features,- trpc- } from '$lib/store';- import {- errorNotification,- get,- getAPIUrl,- getDomain,- notNodeDeployments,- staticDeployments- } from '$lib/common';- import Setting from '$lib/components/Setting.svelte';- import Explainer from '$lib/components/Explainer.svelte';- import { goto } from '$app/navigation';- import Beta from '$lib/components/Beta.svelte';- import { saveForm } from './utils';-- const { id } = $page.params;- $: isDisabled =- !$appSession.isAdmin ||- $status.application.overallStatus === 'degraded' ||- $status.application.overallStatus === 'healthy' ||- $status.application.initialLoading;- $isDeploymentEnabled = checkIfDeploymentEnabledApplications($appSession.isAdmin, application);- let statues: any = {};- let loading = {- save: false,- reloadCompose: false- };- let isSimpleDockerfile = !!application.simpleDockerfile;- let fqdnEl: any = null;- let forceSave = false;- let isPublicRepository = application.settings?.isPublicRepository;- let apiUrl = application.gitSource?.apiUrl;- let branch = application.branch;- let repository = application.repository;- let debug = application.settings?.debug;- let previews = application.settings?.previews;- let dualCerts = application.settings?.dualCerts;- let isCustomSSL = application.settings?.isCustomSSL;- let autodeploy = application.settings?.autodeploy;- let isBot = application.settings?.isBot;- let isDBBranching = application.settings?.isDBBranching;- let htmlUrl = application.gitSource?.htmlUrl;- let isHttp2 = application.settings?.isHttp2;-- let dockerComposeFile = JSON.parse(application.dockerComposeFile) || null;- let dockerComposeServices: any[] = [];- let dockerComposeConfiguration = JSON.parse(application.dockerComposeConfiguration) || {};- let originalDockerComposeFileLocation = application.dockerComposeFileLocation;-- let baseDatabaseBranch: any = application?.connectedDatabase?.hostedDatabaseDBName || null;- let nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');- let isHttps = application.fqdn && application.fqdn.startsWith('https://');- let isNonWWWDomainOK = false;- let isWWWDomainOK = false;-- let wsgis = [- {- value: 'None',- label: 'None'- },- {- value: 'Gunicorn',- label: 'Gunicorn'- },- {- value: 'Uvicorn',- label: 'Uvicorn'- }- ];- function normalizeDockerServices(services: any[]) {- const tempdockerComposeServices = [];- for (const [name, data] of Object.entries(services)) {- tempdockerComposeServices.push({- name,- data- });- }- for (const service of tempdockerComposeServices) {- if (!dockerComposeConfiguration[service.name]) {- dockerComposeConfiguration[service.name] = {};- }- }- return tempdockerComposeServices;- }- if (dockerComposeFile?.services) {- dockerComposeServices = normalizeDockerServices(dockerComposeFile.services);- }-- function containerClass() {- return 'text-white bg-transparent font-thin px-0 w-full border border-dashed border-coolgray-200';- }-- onMount(async () => {- if (window.location.hostname === 'demo.coolify.io' && !application.fqdn) {- application.fqdn = `http://${cuid()}.demo.coolify.io`;- await handleSubmit();- }- await getBaseBuildImages();- if (!application.fqdn && fqdnEl) fqdnEl.focus();- });- async function getBaseBuildImages() {- const { data } = await trpc.applications.getImages.query({- buildPack: application.buildPack,- deploymentType: application.deploymentType- });- const baseImageCorrect = data.baseImages.filter(- (image: any) => image.value === application.baseImage- );- if (baseImageCorrect.length === 0) {- application.baseImage = data.baseImage;- }- application.baseImages = data.baseImages;-- const baseBuildImageCorrect = data.baseBuildImages.filter(- (image: any) => image.value === application.baseBuildImage- );- if (baseBuildImageCorrect.length === 0) {- application.baseBuildImage = data.baseBuildImage;- }- application.baseBuildImages = data.baseBuildImages;- if (application.deploymentType === 'static' && application.port !== 80) {- application.port = data.port;- }- if (application.deploymentType === 'node' && application.port === 80) {- application.port = data.port;- }- if (application.deploymentType === 'static' && !application.publishDirectory) {- application.publishDirectory = data.publishDirectory;- }- if (application.deploymentType === 'node' && application.publishDirectory === 'out') {- application.publishDirectory = data.publishDirectory;- }- }- async function changeSettings(name: any) {- if (name === 'debug') {- debug = !debug;- }- if (name === 'previews') {- previews = !previews;- }- if (name === 'dualCerts') {- dualCerts = !dualCerts;- }- if (name === 'autodeploy') {- autodeploy = !autodeploy;- }- if (name === 'isCustomSSL') {- isCustomSSL = !isCustomSSL;- }- if (name === 'isBot') {- if ($status.application.overallStatus !== 'stopped') return;- isBot = !isBot;- application.settings.isBot = isBot;- application.fqdn = null;- setLocation(application, settings);- }- if (name === 'isDBBranching') {- isDBBranching = !isDBBranching;- }- if (name === 'isHttp2') {- isHttp2 = !isHttp2;- }- try {- await trpc.applications.saveSettings.mutate({- id: application.id,- previews,- debug,- dualCerts,- isBot,- autodeploy,- isDBBranching,- isCustomSSL- });- return addToast({- message: 'Settings updated',- type: 'success'- });- } catch (error) {- if (name === 'debug') {- debug = !debug;- }- if (name === 'previews') {- previews = !previews;- }- if (name === 'dualCerts') {- dualCerts = !dualCerts;- }- if (name === 'autodeploy') {- autodeploy = !autodeploy;- }- if (name === 'isBot') {- isBot = !isBot;- }- if (name === 'isDBBranching') {- isDBBranching = !isDBBranching;- }- if (name === 'isCustomSSL') {- isCustomSSL = !isCustomSSL;- }- return errorNotification(error);- } finally {- $isDeploymentEnabled = checkIfDeploymentEnabledApplications($appSession.isAdmin, application);- }- }- async function handleSubmit(toast: boolean = true) {- if (loading.save) return;- if (toast) loading.save = true;- try {- nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');- if (application.deploymentType) {- application.deploymentType = application.deploymentType.toLowerCase();- }- if (originalDockerComposeFileLocation !== application.dockerComposeFileLocation) {- await reloadCompose();- }- if (!isBot) {- await trpc.applications.checkDNS.mutate({- id,- fqdn: application.fqdn,- forceSave,- dualCerts,- exposePort: application.exposePort- });- for (const service of dockerComposeServices) {- if (dockerComposeConfiguration[service.name].fqdn) {- await trpc.applications.checkDNS.mutate({- id,- fqdn: dockerComposeConfiguration[service.name].fqdn,- forceSave,- dualCerts,- exposePort: application.exposePort- });- }- }- }- await saveForm(id, application, baseDatabaseBranch, dockerComposeConfiguration);- setLocation(application, settings);- $isDeploymentEnabled = checkIfDeploymentEnabledApplications($appSession.isAdmin, application);-- forceSave = false;- if (toast) {- addToast({- message: 'Configuration saved.',- type: 'success'- });- }-- if (application.fqdn && application.fqdn.startsWith('https')) {- isHttps = true;- } else {- isHttps = false;- }- } catch (error) {- //@ts-ignore- if (error?.message.startsWith('DNS not set')) {- forceSave = true;- if (dualCerts) {- isNonWWWDomainOK = await isDNSValid(getDomain(nonWWWDomain), false);- isWWWDomainOK = await isDNSValid(getDomain(`www.${nonWWWDomain}`), true);- } else {- const isWWW = getDomain(application.fqdn).includes('www.');- if (isWWW) {- isWWWDomainOK = await isDNSValid(getDomain(`www.${nonWWWDomain}`), true);- } else {- isNonWWWDomainOK = await isDNSValid(getDomain(nonWWWDomain), false);- }- }- }- return errorNotification(error);- } finally {- loading.save = false;- }- }- async function selectWSGI(event: any) {- application.pythonWSGI = event.detail.value;- }- async function selectBaseImage(event: any) {- application.baseImage = event.detail.value;- await handleSubmit();- }- async function selectBaseBuildImage(event: any) {- application.baseBuildImage = event.detail.value;- await handleSubmit();- }- async function selectDeploymentType(event: any) {- application.deploymentType = event.detail.value;- await getBaseBuildImages();- await handleSubmit();- }- async function isDNSValid(domain: any, isWWW: any) {- try {- await trpc.applications.checkDomain.query({- id,- domain- });- addToast({- message: 'DNS configuration is valid.',- type: 'success'- });- isWWW ? (isWWWDomainOK = true) : (isNonWWWDomainOK = true);- return true;- } catch (error) {- errorNotification(error);- isWWW ? (isWWWDomainOK = false) : (isNonWWWDomainOK = false);- return false;- }- }- async function getGitlabToken() {- return await new Promise<void>((resolve, reject) => {- const left = screen.width / 2 - 1020 / 2;- const top = screen.height / 2 - 618 / 2;- const newWindow = open(- `${htmlUrl}/oauth/authorize?client_id=${- application.gitSource.gitlabApp.appId- }&redirect_uri=${getAPIUrl()}/webhooks/gitlab&response_type=code&scope=api+email+read_repository&state=${- $page.params.id- }`,- 'GitLab',- 'resizable=1, scrollbars=1, fullscreen=0, height=618, width=1020,top=' +- top +- ', left=' +- left +- ', toolbar=0, menubar=0, status=0'- );- const timer = setInterval(() => {- if (newWindow?.closed) {- clearInterval(timer);- $appSession.tokens.gitlab = localStorage.getItem('gitLabToken');- localStorage.removeItem('gitLabToken');- resolve();- }- }, 100);- });- }- async function reloadCompose() {- if (loading.reloadCompose) return;- if (!$appSession.tokens.github && !isPublicRepository) {- const { token } = await get(`/applications/${id}/configuration/githubToken`);- $appSession.tokens.github = token;- }- loading.reloadCompose = true;- try {- if (application.gitSource.type === 'github') {- const composeLocation = application.dockerComposeFileLocation.startsWith('/')- ? application.dockerComposeFileLocation- : `/${application.dockerComposeFileLocation}`;-- const headers = isPublicRepository- ? {}- : {- Authorization: `token ${$appSession.tokens.github}`- };- const data = await get(- `${apiUrl}/repos/${repository}/contents/${composeLocation}?ref=${branch}`,- {- ...headers,- 'If-None-Match': '',- Accept: 'application/vnd.github.v2.json'- }- );- if (data?.content) {- const content = atob(data.content);- let dockerComposeFileContent = JSON.stringify(yaml.load(content) || null);- let dockerComposeFileContentJSON = JSON.parse(dockerComposeFileContent);- dockerComposeServices = normalizeDockerServices(dockerComposeFileContentJSON?.services);- application.dockerComposeFile = dockerComposeFileContent;- await handleSubmit(false);- }- }- if (application.gitSource.type === 'gitlab') {- if (!$appSession.tokens.gitlab && !isPublicRepository) {- await getGitlabToken();- }-- const composeLocation = application.dockerComposeFileLocation.startsWith('/')- ? application.dockerComposeFileLocation.substring(1) // Remove the '/' from the start- : application.dockerComposeFileLocation;-- // If the file is in a subdirectory, lastIndex will be > 0- // Otherwise it will be -1 and path will be an empty string- const lastIndex = composeLocation.lastIndexOf('/') + 1;- const path = composeLocation.substring(0, lastIndex);- const fileName = composeLocation.substring(lastIndex);-- const headers = isPublicRepository- ? {}- : {- Authorization: `Bearer ${$appSession.tokens.gitlab}`- };- const url = isPublicRepository- ? ``- : `/v4/projects/${application.projectId}/repository/tree?path=${path}`; // Use path param to find file in a subdirectory- const files = await get(`${apiUrl}${url}`, {- ...headers- });- const dockerComposeFileYml = files.find(- (file: { name: string; type: string }) => file.name === fileName && file.type === 'blob'- );- const id = dockerComposeFileYml.id;-- const data = await get(- `${apiUrl}/v4/projects/${application.projectId}/repository/blobs/${id}`,- {- ...headers- }- );- if (data?.content) {- const content = atob(data.content);- let dockerComposeFileContent = JSON.stringify(yaml.load(content) || null);- let dockerComposeFileContentJSON = JSON.parse(dockerComposeFileContent);- dockerComposeServices = normalizeDockerServices(dockerComposeFileContentJSON?.services);- application.dockerComposeFile = dockerComposeFileContent;- await handleSubmit(false);- }- }- originalDockerComposeFileLocation = application.dockerComposeFileLocation;- addToast({- message: 'Compose file reloaded.',- type: 'success'- });- } catch (error: any) {- if (error.message === 'Not Found') {- error.message = `Can't find ${application.dockerComposeFileLocation} file.`;- errorNotification(error);- throw error;- }- errorNotification(error);- } finally {- loading.reloadCompose = false;- }- }- $: if ($status.application.statuses) {- for (const service of dockerComposeServices) {- getStatus(service);- }- }- function getStatus(service: any) {- let foundStatus = null;- const foundService = $status.application.statuses.find(- (s: any) => s.name === `${application.id}-${service.name}`- );- if (foundService) {- const statusText = foundService?.status;- if (statusText?.isRunning) {- foundStatus = 'Running';- }- if (statusText?.isExited) {- foundStatus = 'Exited';- }- if (statusText?.isRestarting) {- foundStatus = 'Restarting';- }- }- statues[service.name] = foundStatus || 'Stopped';- }-</script>--<div class="w-full">- <form id="saveForm" on:submit|preventDefault={() => handleSubmit()}>- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">General</div>- {#if $appSession.isAdmin}- <button- class="btn btn-sm btn-primary"- type="submit"- class:loading={loading.save}- class:bg-orange-600={forceSave}- class:hover:bg-orange-400={forceSave}- disabled={loading.save}>Save</button- >- {/if}- </div>- <div class="grid grid-flow-row gap-2 px-4">- <div class="mt-2 grid grid-cols-2 items-center">- <label for="name">Name</label>- <input name="name" id="name" class="w-full" bind:value={application.name} required />- </div>- {#if !isSimpleDockerfile}- <div class="grid grid-cols-2 items-center">- <label for="gitSource">Git Source</label>- {#if isDisabled || application.settings?.isPublicRepository}- <input- disabled={isDisabled || application.settings?.isPublicRepository}- class="w-full"- value={application.gitSource?.name}- />- {:else}- <a- href={`/applications/${id}/configuration/source?from=/applications/${id}`}- class="no-underline"- ><input- value={application.gitSource?.name}- id="gitSource"- class="cursor-pointer hover:bg-coolgray-500 w-full"- /></a- >- {/if}- </div>- <div class="grid grid-cols-2 items-center">- <label for="repository">Git commit</label>- <div class="flex gap-2">- <input- id="commit"- name="commit"- class="w-full"- disabled={isDisabled}- placeholder="default: latest commit"- bind:value={application.gitCommitHash}- />- <a- href="{application.gitSource- ?.htmlUrl}/{application.repository}/commits/{application.branch}"- target="_blank noreferrer"- class="btn btn-primary text-xs"- >Commits<svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- class="w-3 h-3 text-white ml-2"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"- />- </svg></a- >- </div>- </div>- <div class="grid grid-cols-2 items-center">- <label for="repository">Repository</label>- {#if isDisabled || application.settings?.isPublicRepository}- <input- class="w-full"- disabled={isDisabled || application.settings?.isPublicRepository}- value="{application.repository}/{application.branch}"- />- {:else}- <a- href={`/applications/${id}/configuration/repository?from=/applications/${id}&to=/applications/${id}/configuration/buildpack`}- class="no-underline"- ><input- value="{application.repository}/{application.branch}"- id="repository"- class="cursor-pointer hover:bg-coolgray-500 w-full"- /></a- >- {/if}- </div>- {/if}- <div class="grid grid-cols-2 items-center">- <label for="registry">Docker Registry</label>- {#if isDisabled}- <input- class="capitalize w-full"- disabled={isDisabled}- value={application.dockerRegistry?.name || 'DockerHub (unauthenticated)'}- />- {:else}- <a- href={`/applications/${id}/configuration/registry?from=/applications/${id}`}- class="no-underline"- >- <input- value={application.dockerRegistry?.name || 'DockerHub (unauthenticated)'}- id="registry"- class="cursor-pointer hover:bg-coolgray-500 capitalize w-full"- /></a- >- {/if}- </div>- {#if application.dockerRegistry?.id && application.gitSourceId}- <div class="grid grid-cols-2 items-center">- <label for="registry"- >Push Image to Registry <Explainer- explanation="Push the build image to the specific Docker Registry.<br><br>This is useful if you want to use the image in other places. If you don't fill this the image will be only available on the server.<br><br>Tag is optional. If you don't fill it, the tag will be the same as the git commit hash."- /></label- >- <input- name="dockerRegistryImageName"- id="dockerRegistryImageName"- readonly={isDisabled}- disabled={isDisabled}- class="w-full"- placeholder="e.g. coollabsio/myimage (tag will be commit sha) or coollabsio/myimage:tag"- bind:value={application.dockerRegistryImageName}- />- </div>- {/if}- {#if !isSimpleDockerfile}- <div class="grid grid-cols-2 items-center">- <label for="buildPack">BuildPack</label>- {#if isDisabled}- <input- class="capitalize w-full"- disabled={isDisabled}- value={application.buildPack}- />- {:else}- <a- href={`/applications/${id}/configuration/buildpack?from=/applications/${id}`}- class="no-underline"- >- <input- value={application.buildPack}- id="buildPack"- class="cursor-pointer hover:bg-coolgray-500 capitalize w-full"- /></a- >- {/if}- </div>- {/if}- <div class="grid grid-cols-2 items-center">- <label for="destination">Destination</label>- <div class="no-underline">- <input- value={application.destinationDocker?.name}- id="destination"- disabled- class="bg-transparent w-full"- />- </div>- </div>- {#if application.buildPack !== 'compose'}- <div class="grid grid-cols-2 items-center">- <Setting- id="isBot"- isCenter={false}- bind:setting={isBot}- on:click={() => changeSettings('isBot')}- title="Is your application a bot?"- description="You can deploy applications without domains or make them to listen on the <span class='text-settings font-bold'>Exposed Port</span>.<br></Setting><br>Useful to host <span class='text-settings font-bold'>Twitch bots, regular jobs, or anything that does not require an incoming HTTP connection.</span>"- disabled={isDisabled}- />- </div>- {/if}- {#if !isBot && application.buildPack !== 'compose'}- <div class="grid grid-cols-2 items-center">- <label for="fqdn"- >URL (fqdn)- <Explainer- explanation={"If you specify <span class='text-settings font-bold'>https</span>, the application will be accessible only over https.<br>SSL certificate will be generated automatically.<br><br>If you specify <span class='text-settings font-bold'>www</span>, the application will be redirected (302) from non-www and vice versa.<br><br>To modify the domain, you must first stop the application.<br><br><span class='text-settings font-bold'>You must set your DNS to point to the server IP in advance.</span>"}- />- </label>- <div>- <input- bind:this={fqdnEl}- class="w-full"- required={!application.settings?.isBot}- readonly={isDisabled}- disabled={isDisabled}- name="fqdn"- id="fqdn"- class:border={!application.settings?.isBot && !application.fqdn}- class:border-red-500={!application.settings?.isBot && !application.fqdn}- bind:value={application.fqdn}- pattern="^https?://([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{'{'}2,{'}'}$"- placeholder="eg: https://coollabs.io"- />- {#if forceSave}- <div class="flex-col space-y-2 pt-4 text-center">- {#if isNonWWWDomainOK}- <button- class="btn btn-sm bg-green-600 hover:bg-green-500"- on:click|preventDefault={() => isDNSValid(getDomain(nonWWWDomain), false)}- >DNS settings for {nonWWWDomain} is OK, click to recheck.</button- >- {:else}- <button- class="btn btn-sm bg-red-600 hover:bg-red-500"- on:click|preventDefault={() => isDNSValid(getDomain(nonWWWDomain), false)}- >DNS settings for {nonWWWDomain} is invalid, click to recheck.</button- >- {/if}- {#if dualCerts}- {#if isWWWDomainOK}- <button- class="btn btn-sm bg-green-600 hover:bg-green-500"- on:click|preventDefault={() =>- isDNSValid(getDomain(`www.${nonWWWDomain}`), true)}- >DNS settings for www.{nonWWWDomain} is OK, click to recheck.</button- >- {:else}- <button- class="btn btn-sm bg-red-600 hover:bg-red-500"- on:click|preventDefault={() =>- isDNSValid(getDomain(`www.${nonWWWDomain}`), true)}- >DNS settings for www.{nonWWWDomain} is invalid, click to recheck.</button- >- {/if}- {/if}- </div>- {/if}- </div>- </div>- <div class="grid grid-cols-2 items-center">- <Setting- id="dualCerts"- dataTooltip="Must be stopped to modify."- disabled={isDisabled}- isCenter={false}- bind:setting={dualCerts}- title="Generate Dual Certificates"- description="Generate certificates for both www and non-www. <br>You need to have <span class='font-bold text-settings'>both DNS entries</span> set in advance.<br><br>Useful if you expect to have visitors on both."- on:click={() => !isDisabled && changeSettings('dualCerts')}- />- </div>- {#if isHttps && application.buildPack !== 'compose'}- <div class="grid grid-cols-2 items-center pb-4">- <Setting- id="isCustomSSL"- isCenter={false}- bind:setting={isCustomSSL}- title="Use Custom SSL Certificate"- description="Use Custom SSL Certificated added in the Settings/SSL Certificates section. <br><br>By default, the SSL certificate is generated automatically through Let's Encrypt"- on:click={() => changeSettings('isCustomSSL')}- />- </div>- {/if}- <div class="grid grid-cols-2 items-center pb-4">- <Setting- id="isHttp2"- isCenter={false}- bind:setting={isHttp2}- title="Enable HTTP/2 protocol?"- description="Enable HTTP/2 protocol. <br><br>HTTP/2 is a major revision of the HTTP network protocol used by the World Wide Web that allows faster web page loading by reducing the number of requests needed to load a web page.<br><br>Useful for gRPC and other HTTP/2 based services."- on:click={() => changeSettings('isHttp2')}- />- </div>- {/if}- </div>- {#if isSimpleDockerfile}- <div class="title font-bold pb-3 pt-10 border-b border-coolgray-500 mb-6">- Configuration- </div>-- <div class="grid grid-flow-row gap-2 px-4 pr-5">- <div class="grid grid-cols-2 items-center pt-4">- <label for="simpleDockerfile">Dockerfile</label>- <div class="flex gap-2">- <textarea- rows="10"- id="simpleDockerfile"- name="simpleDockerfile"- class="w-full"- disabled={isDisabled}- bind:value={application.simpleDockerfile}- />- </div>- </div>- <div class="grid grid-cols-2 items-center">- <label for="port"- >Port- <Explainer- explanation={'The port your application listens inside the docker container.'}- /></label- >- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="port"- id="port"- bind:value={application.port}- placeholder="Default: 3000"- />- </div>- </div>- {:else if application.buildPack !== 'compose'}- <div class="title font-bold pb-3 pt-10 border-b border-coolgray-500 mb-6">- Configuration- </div>- <div class="grid grid-flow-row gap-2 px-4 pr-5">- {#if application.buildCommand || application.buildPack === 'rust' || application.buildPack === 'laravel'}- <div class="grid grid-cols-2 items-center">- <label for="baseBuildImage">- Base Build Image- <Explainer- explanation={application.buildPack === 'laravel'- ? 'For building frontend assets with webpack.'- : 'Image that will be used during the build process.'}- />- </label>- <div class="custom-select-wrapper">- <Select- {isDisabled}- containerClasses={isDisabled && containerClass()}- id="baseBuildImages"- showIndicator={!isDisabled}- items={application.baseBuildImages}- on:select={selectBaseBuildImage}- value={application.baseBuildImage}- isClearable={false}- />- </div>- </div>- {/if}- {#if application.buildPack !== 'docker'}- <div class="grid grid-cols-2 items-center">- <label for="baseImage">- Base Image- <Explainer explanation={'Image that will be used for the deployment.'} /></label- >- <div class="custom-select-wrapper">- <Select- {isDisabled}- containerClasses={isDisabled && containerClass()}- id="baseImages"- showIndicator={!isDisabled}- items={application.baseImages}- on:select={selectBaseImage}- value={application.baseImage}- isClearable={false}- />- </div>- </div>- {/if}- {#if application.buildPack !== 'docker' && (application.buildPack === 'nextjs' || application.buildPack === 'nuxtjs')}- <div class="grid grid-cols-2 items-center pb-8">- <label for="deploymentType"- >Deployment Type- <Explainer- explanation={"Defines how to deploy your application. <br><br><span class='text-green-500 font-bold'>Static</span> is for static websites, <span class='text-green-500 font-bold'>node</span> is for server-side applications."}- /></label- >- <div class="custom-select-wrapper">- <Select- {isDisabled}- containerClasses={isDisabled && containerClass()}- id="deploymentTypes"- showIndicator={!isDisabled}- items={['static', 'node']}- on:select={selectDeploymentType}- value={application.deploymentType}- isClearable={false}- />- </div>- </div>- {/if}- {#if $features.beta}- {#if !application.settings?.isBot && !application.settings?.isPublicRepository}- <div class="grid grid-cols-2 items-center">- <Setting- id="isDBBranching"- isCenter={false}- bind:setting={isDBBranching}- on:click={() => changeSettings('isDBBranching')}- title="Enable DB Branching"- description="Enable DB Branching"- />- </div>- {#if isDBBranching}- <button- on:click|stopPropagation|preventDefault={() =>- goto(`/applications/${id}/configuration/database`)}- class="btn btn-sm">Configure Connected Database</button- >- {#if application.connectedDatabase}- <div class="grid grid-cols-2 items-center">- <label for="baseImage"- >Base Database- <Explainer- explanation={'The name of the database that will be used as base when branching.'}- /></label- >- <input- name="baseDatabaseBranch"- required- id="baseDatabaseBranch"- bind:value={baseDatabaseBranch}- />- </div>- <div class="text-center bg-green-600 rounded">- Connected to {application.connectedDatabase?.databaseId}- </div>- {/if}- {/if}- {/if}- {/if}-- {#if application.buildPack === 'python'}- <div class="grid grid-cols-2 items-center">- <label for="pythonModule">WSGI / ASGI</label>- <div class="custom-select-wrapper">- <Select- id="wsgi"- items={wsgis}- on:select={selectWSGI}- value={application.pythonWSGI}- />- </div>- </div>-- <div class="grid grid-cols-2 items-center">- <label for="pythonModule">Module</label>- <input- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="pythonModule"- id="pythonModule"- required- class="w-full"- bind:value={application.pythonModule}- placeholder={application.pythonWSGI?.toLowerCase() !== 'none' ? 'main' : 'main.py'}- />- </div>- {#if application.pythonWSGI?.toLowerCase() === 'gunicorn'}- <div class="grid grid-cols-2 items-center">- <label for="pythonVariable">Variable</label>- <input- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="pythonVariable"- id="pythonVariable"- required- class="w-full"- bind:value={application.pythonVariable}- placeholder="default: app"- />- </div>- {/if}- {#if application.pythonWSGI?.toLowerCase() === 'uvicorn'}- <div class="grid grid-cols-2 items-center">- <label for="pythonVariable">Variable</label>- <input- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="pythonVariable"- id="pythonVariable"- required- class="w-full"- bind:value={application.pythonVariable}- placeholder="default: app"- />- </div>- {/if}- {/if}- {#if !staticDeployments.includes(application.buildPack)}- <div class="grid grid-cols-2 items-center pt-4">- <label for="port">- Port- <Explainer- explanation={'The port your application listens inside the docker container.'}- /></label- >- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="port"- id="port"- bind:value={application.port}- placeholder="Default: 'python' ? '8000' : '3000'"- />- </div>- {/if}- <div class="grid grid-cols-2 items-center pb-4">- <label for="exposePort"- >Exposed Port <Explainer- explanation={'You can expose your application to a port on the host system.<br><br>Useful if you would like to use your own reverse proxy or tunnel and also in development mode. Otherwise leave empty.'}- /></label- >- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="exposePort"- id="exposePort"- bind:value={application.exposePort}- placeholder="12345"- />- </div>- {#if !notNodeDeployments.includes(application.buildPack)}- <div class="grid grid-cols-2 items-center">- <label for="installCommand">Install Command</label>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="installCommand"- id="installCommand"- bind:value={application.installCommand}- placeholder="Default yarn install"- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="buildCommand">Build Command</label>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="buildCommand"- id="buildCommand"- bind:value={application.buildCommand}- placeholder="Default yarn build"- />- </div>- <div class="grid grid-cols-2 items-center pb-8">- <label for="startCommand">Start Command</label>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="startCommand"- id="startCommand"- bind:value={application.startCommand}- placeholder="Default yarn start"- />- </div>- {/if}- {#if application.buildPack === 'deno'}- <div class="grid grid-cols-2 items-center">- <label for="denoMainFile">Main File</label>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="denoMainFile"- id="denoMainFile"- bind:value={application.denoMainFile}- placeholder="default: main.ts"- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="denoOptions"- >Arguments <Explainer- explanation={"List of arguments to pass to <span class='text-settings font-bold'>deno run</span> command. Could include permissions, configurations files, etc."}- /></label- >- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="denoOptions"- id="denoOptions"- bind:value={application.denoOptions}- placeholder="eg: --allow-net --allow-hrtime --config path/to/file.json"- />- </div>- {/if}- {#if application.buildPack !== 'laravel'}- <div class="grid grid-cols-2 items-center">- <div class="flex-col">- <label for="baseDirectory"- >Base Directory- <Explainer- explanation={"Directory to use as the base for all commands.<br>Could be useful with <span class='text-settings font-bold'>monorepos</span>."}- /></label- >- </div>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="baseDirectory"- id="baseDirectory"- bind:value={application.baseDirectory}- placeholder="Default /"- />- </div>- {/if}- {#if application.buildPack === 'docker'}- <div class="grid grid-cols-2 items-center pb-4">- <label for="dockerFileLocation" class=""- >Dockerfile Location <Explainer- explanation={"Should be absolute path, like <span class='text-settings font-bold'>/data/Dockerfile</span> or <span class='text-settings font-bold'>/Dockerfile.</span>"}- /></label- >- <div class="form-control w-full">- <input- class="w-full input"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="dockerFileLocation"- id="dockerFileLocation"- bind:value={application.dockerFileLocation}- placeholder="default: /Dockerfile"- />- {#if application.baseDirectory}- <!-- svelte-ignore a11y-label-has-associated-control -->- <label class="label">- <span class="label-text-alt text-xs"- >Path: {application.baseDirectory.replace(- /^\/$/,- ''- )}{application.dockerFileLocation}</span- >- </label>- {/if}- </div>- </div>- {/if}- {#if !notNodeDeployments.includes(application.buildPack)}- <div class="grid grid-cols-2 items-center">- <div class="flex-col">- <label for="publishDirectory"- >Publish Directory- <Explainer- explanation={"Directory containing all the assets for deployment. <br> For example: <span class='text-settings font-bold'>dist</span>,<span class='text-settings font-bold'>_site</span> or <span class='text-settings font-bold'>public</span>."}- /></label- >- </div>-- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="publishDirectory"- id="publishDirectory"- required={application.deploymentType === 'static'}- bind:value={application.publishDirectory}- placeholder=" Default /"- />- </div>- {/if}- </div>- {:else}- <div class="title font-bold pb-3 pt-10 border-b border-coolgray-500 mb-6">- Stack <Beta />- {#if $appSession.isAdmin}- <button- class="btn btn-sm btn-primary"- class:loading={loading.reloadCompose}- disabled={loading.reloadCompose}- on:click|preventDefault={reloadCompose}>Reload Docker Compose File</button- >- {/if}- </div>- <div class="grid grid-flow-row gap-2">- <div class="grid grid-cols-2 items-center px-8 pb-4">- <label for="dockerComposeFileLocation"- >Docker Compose File Location- <Explainer- explanation="You can specify a custom docker compose file location. <br> Should be absolute path, like <span class='text-settings font-bold'>/data/docker-compose.yml</span> or <span class='text-settings font-bold'>/docker-compose.yml.</span>"- />- </label>- <div>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="dockerComposeFileLocation"- id="dockerComposeFileLocation"- bind:value={application.dockerComposeFileLocation}- placeholder="eg: /docker-compose.yml"- />- </div>- </div>- {#each dockerComposeServices as service}- <div- class="grid items-center bg-coolgray-100 rounded border border-coolgray-300 p-2 px-4"- >- <div class="text-xl font-bold uppercase">- {service.name}- <span- class="badge rounded text-white"- class:text-red-500={statues[service.name] === 'Exited' ||- statues[service.name] === 'Stopped'}- class:text-yellow-400={statues[service.name] === 'Restarting'}- class:text-green-500={statues[service.name] === 'Running'}- >{statues[service.name] || 'Loading...'}</span- >- </div>- <div class="text-xs">{application.id}-{service.name}</div>- </div>-- <div class="grid grid-cols-2 items-center px-8">- <label for="fqdn"- >URL(fqdn)- <Explainer- explanation={"If you specify <span class='text-settings font-bold'>https</span>, the application will be accessible only over https.<br>SSL certificate will be generated automatically.<br><br>If you specify <span class='text-settings font-bold'>www</span>, the application will be redirected (302) from non-www and vice versa.<br><br>To modify the domain, you must first stop the application.<br><br><span class='text-settings font-bold'>You must set your DNS to point to the server IP in advance.</span>"}- />- </label>- <div>- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="fqdn"- id="fqdn"- bind:value={dockerComposeConfiguration[service.name].fqdn}- pattern="^https?://([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{'{'}2,{'}'}$"- placeholder="eg: https://coollabs.io"- />- </div>- </div>- <div class="grid grid-cols-2 items-center px-8">- <label for="destinationdns"- >Internal DNS on the deployed Destination- <Explainer- explanation={'You can use these DNS names to access the application from other resources in your Destination.'}- />- </label>- <input- for="destinationdns"- class="w-full"- disabled- readonly- value={`${application.id}-${service.name}`}- />- </div>- <div class="grid grid-cols-2 items-center px-8">- <label for="stackdns"- >Internal DNS in the current stack- <Explainer- explanation={'You can use these DNS names to access the application from this stack.'}- />- </label>- <input for="stackdns" class="w-full" disabled readonly value={service.name} />- </div>- <div class="grid grid-cols-2 items-center px-8 pb-4">- <label for="port"- >Port- <Explainer- explanation={'The port your application listens inside the docker container.'}- /></label- >- <input- class="w-full"- disabled={isDisabled}- readonly={!$appSession.isAdmin}- name="port"- id="port"- required={!!dockerComposeConfiguration[service.name]?.fqdn}- bind:value={dockerComposeConfiguration[service.name].port}- />- </div>- {/each}- </div>- {/if}- </div>- </form>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.sveltedeleted file mode 100644index 8df74e4ac6..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.svelte+++ /dev/null@@ -1,204 +0,0 @@-<script lang="ts">- import type { PageData } from '../build/$types';-- export let data: PageData;- console.log(data);- let builds = data.builds;- const application = data.application.data;- const buildCount = data.buildCount;-- import { page } from '$app/stores';- import { addToast, selectedBuildId, trpc } from '$lib/store';- import BuildLog from './BuildLog.svelte';- import { changeQueryParams, dateOptions, errorNotification, asyncSleep } from '$lib/common';- import Tooltip from '$lib/components/Tooltip.svelte';- import { day } from '$lib/dayjs';- import { onDestroy, onMount } from 'svelte';- const { id } = $page.params;- let debug = application.settings.debug;- let loadBuildLogsInterval: any = null;-- let skip = 0;- let noMoreBuilds = buildCount < 5 || buildCount <= skip;- let preselectedBuildId = $page.url.searchParams.get('buildId');- if (preselectedBuildId) $selectedBuildId = preselectedBuildId;-- onMount(async () => {- getBuildLogs();- loadBuildLogsInterval = setInterval(() => {- getBuildLogs();- }, 2000);- });- onDestroy(() => {- clearInterval(loadBuildLogsInterval);- });- async function getBuildLogs() {- const response = await trpc.applications.getBuilds.query({ id, skip });- builds = response.builds;- }-- async function loadMoreBuilds() {- if (buildCount >= skip) {- skip = skip + 5;- noMoreBuilds = buildCount <= skip;- try {- const data = await trpc.applications.getBuilds.query({ id, skip });- builds = data.builds;- return;- } catch (error) {- return errorNotification(error);- }- } else {- noMoreBuilds = true;- }- }- function loadBuild(build: any) {- $selectedBuildId = build;- return changeQueryParams($selectedBuildId);- }- async function resetQueue() {- const sure = confirm(- 'It will reset all build queues for all applications. If something is queued, it will be canceled automatically. Are you sure? '- );- if (sure) {- try {- await trpc.applications.resetQueue.mutate();- addToast({- message: 'Queue reset done.',- type: 'success'- });- await asyncSleep(500);- return window.location.reload();- } catch (error) {- return errorNotification(error);- }- }- }- function generateBadgeColors(status: string) {- if (status === 'failed') {- return 'text-red-500';- } else if (status === 'running') {- return 'text-yellow-300';- } else if (status === 'success') {- return 'text-green-500';- } else if (status === 'canceled') {- return 'text-orange-500';- } else {- return 'text-white';- }- }- async function changeSettings(name: any) {- if (name === 'debug') {- debug = !debug;- }- try {- trpc.applications.saveSettings.mutate({- id,- debug- });- return addToast({- message: 'Settings saved.',- type: 'success'- });- } catch (error) {- if (name === 'debug') {- debug = !debug;- }-- return errorNotification(error);- }- }-</script>--<div class="mx-auto w-full lg:px-0 px-1">- <div class="flex lg:flex-row flex-col border-b border-coolgray-500 mb-6 space-x-2">- <div class="flex flex-row">- <div class="title font-bold pb-3 pr-3">Build Logs</div>- <button class="btn btn-sm bg-error" on:click={resetQueue}>Reset Build Queue</button>- </div>- <div class=" flex-1" />- <div class="form-control">- <label class="label cursor-pointer">- <span class="label-text text-white pr-4 font-bold">Enable Debug Logs</span>- <input- type="checkbox"- checked={debug}- class="checkbox checkbox-success"- on:click={() => changeSettings('debug')}- />- </label>- </div>- </div>-</div>-<div class="justify-start space-x-5 flex flex-col-reverse lg:flex-row">- <div class="flex-1 md:w-96">- {#if $selectedBuildId}- {#key $selectedBuildId}- <svelte:component this={BuildLog} />- {/key}- {:else if buildCount === 0}- Not build logs found.- {:else}- Select a build to see the logs.- {/if}- </div>- <div class="mb-4 min-w-[16rem] space-y-2 md:mb-0 ">- <div class="top-4 md:sticky">- <div class="flex space-x-2 pb-2">- <button- disabled={noMoreBuilds}- class:btn-primary={!noMoreBuilds}- class=" btn btn-sm w-full"- on:click={loadMoreBuilds}>Load more</button- >- </div>- {#each builds as build, index (build.id)}- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div- id={`building-${build.id}`}- on:click={() => loadBuild(build.id)}- class:rounded-tr={index === 0}- class:rounded-br={index === builds.length - 1}- class="flex cursor-pointer items-center justify-center py-4 no-underline transition-all duration-150 hover:bg-coolgray-300 hover:shadow-xl"- class:bg-coolgray-200={$selectedBuildId === build.id}- >- <div class="flex-col px-2 text-center">- <div class="text-sm font-bold truncate">- {build.branch || application.branch}- </div>- <div class="text-xs">- {build.type}- </div>- <div- class={`badge badge-sm text-xs uppercase rounded bg-coolgray-300 border-none font-bold ${generateBadgeColors(- build.status- )}`}- >- {build.status}- </div>- </div>-- <div class="w-32 text-center text-xs">- {#if build.status === 'running'}- <div>- <span class="font-bold text-xl">{build.elapsed}s</span>- </div>- {:else if build.status !== 'queued'}- <div>{day(build.updatedAt).utc().fromNow()}</div>- <div>- Finished in- <span class="font-bold"- >{day(build.updatedAt).utc().diff(day(build.createdAt)) / 1000}s</span- >- </div>- {/if}- </div>- </div>- <Tooltip triggeredBy={`#building-${build.id}`}- >{new Intl.DateTimeFormat('default', dateOptions).format(new Date(build.createdAt)) +- `\n`}</Tooltip- >- {/each}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.tsdeleted file mode 100644index f6d6570b82..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const data = await trpc.applications.getBuilds.query({ id, skip: 0 });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/BuildLog.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/builds/BuildLog.sveltedeleted file mode 100644index 81e515e25f..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/builds/BuildLog.svelte+++ /dev/null@@ -1,215 +0,0 @@-<script lang="ts">- import { onDestroy, onMount } from 'svelte';- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import Tooltip from '$lib/components/Tooltip.svelte';- import { day } from '$lib/dayjs';- import { selectedBuildId, trpc } from '$lib/store';- import { dev } from '$app/environment';-- let logs: any = [];- let currentStatus: any;- let streamInterval: any;- let followingLogs: any;- let followingInterval: any;- let logsEl: any;- let fromDb = false;- let cancelInprogress = false;- let position = 0;- let loading = true;- const { id } = $page.params;-- const cleanAnsiCodes = (str: string) => str.replace(/\x1B\[(\d+)m/g, '');-- function detect() {- if (position < logsEl.scrollTop) {- position = logsEl.scrollTop;- } else {- if (followingLogs) {- clearInterval(followingInterval);- followingLogs = false;- }- position = logsEl.scrollTop;- }- }- function followBuild() {- followingLogs = !followingLogs;- if (followingLogs) {- followingInterval = setInterval(() => {- logsEl.scrollTop = logsEl.scrollHeight;- window.scrollTo(0, document.body.scrollHeight);- }, 100);- } else {- window.clearInterval(followingInterval);- }- }- async function streamLogs(sequence = 0) {- try {- loading = true;- let {- logs: responseLogs,- status,- fromDb: from- } = await trpc.applications.getBuildLogs.query({ id, buildId: $selectedBuildId, sequence });-- currentStatus = status;- logs = logs.concat(- responseLogs.map((log: any) => ({ ...log, line: cleanAnsiCodes(log.line) }))- );- fromDb = from;-- streamInterval = setInterval(async () => {- const nextSequence = logs[logs.length - 1]?.time || 0;- if (status !== 'running' && status !== 'queued') {- loading = false;- try {- const data = await trpc.applications.getBuildLogs.query({- id,- buildId: $selectedBuildId,- sequence: nextSequence- });- status = data.status;- currentStatus = status;- fromDb = data.fromDb;-- logs = logs.concat(- data.logs.map((log: any) => ({ ...log, line: cleanAnsiCodes(log.line) }))- );- loading = false;- } catch (error) {- return errorNotification(error);- }- clearInterval(streamInterval);- return;- }- try {- const data = await trpc.applications.getBuildLogs.query({- id,- buildId: $selectedBuildId,- sequence: nextSequence- });- status = data.status;- currentStatus = status;- fromDb = data.fromDb;-- logs = logs.concat(- data.logs.map((log: any) => ({ ...log, line: cleanAnsiCodes(log.line) }))- );- loading = false;- } catch (error) {- return errorNotification(error);- }- }, 1000);- } catch (error) {- return errorNotification(error);- }- }- async function cancelBuild() {- if (cancelInprogress) return;- try {- cancelInprogress = true;- await trpc.applications.cancelBuild.mutate({- buildId: $selectedBuildId,- applicationId: id- });- } catch (error) {- return errorNotification(error);- }- }- onDestroy(() => {- clearInterval(streamInterval);- clearInterval(followingInterval);- });- onMount(async () => {- window.scrollTo(0, 0);- await streamLogs();- });-</script>--<div class="flex justify-start top-0 pb-2 space-x-2">- <button- on:click={followBuild}- class="btn btn-sm bg-coollabs"- disabled={currentStatus !== 'running'}- class:bg-coolgray-300={followingLogs || currentStatus !== 'running'}- class:text-applications={followingLogs}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 mr-2"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="8" y1="12" x2="12" y2="16" />- <line x1="12" y1="8" x2="12" y2="16" />- <line x1="16" y1="12" x2="12" y2="16" />- </svg>-- {followingLogs ? 'Following Logs...' : 'Follow Logs'}- </button>-- <button- on:click={cancelBuild}- class:animation-spin={cancelInprogress}- class="btn btn-sm"- disabled={currentStatus !== 'running'}- class:bg-coolgray-300={cancelInprogress || currentStatus !== 'running'}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 mr-2"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <path d="M10 10l4 4m0 -4l-4 4" />- </svg>- {cancelInprogress ? 'Cancelling...' : 'Cancel Build'}- </button>- {#if currentStatus === 'running'}- <button id="streaming" class="btn btn-sm bg-transparent border-none loading" />- <Tooltip triggeredBy="#streaming">Streaming logs</Tooltip>- {/if}-</div>-{#if currentStatus === 'queued'}- <div- class="font-mono w-full bg-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col whitespace-nowrap scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"- >- Queued and waiting for execution.- </div>-{:else if logs.length > 0}- <div- bind:this={logsEl}- on:scroll={detect}- class="font-mono w-full bg-coolgray-100 border border-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1 whitespace-pre"- >- {#each logs as log}- {#if fromDb}- {log.line + '\n'}- {:else}- [{day.unix(log.time).format('HH:mm:ss.SSS')}] {log.line + '\n'}- {/if}- {/each}- </div>-{:else}- <div- class="font-mono w-full bg-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col whitespace-nowrap scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"- >- {loading- ? 'Loading logs...'- : dev- ? 'In development, logs are shown in the console.'- : 'No logs found yet.'}- </div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Delete.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Delete.sveltedeleted file mode 100644index 182419e033..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Delete.svelte+++ /dev/null@@ -1,29 +0,0 @@-<script lang="ts">- import { goto } from '$app/navigation';- import { errorNotification } from '$lib/common';- import { appSession, trpc } from '$lib/store';-- export let id: string;- export let name: string;- export let force: boolean = false;-- async function handleSubmit() {- const sure = confirm(`Are you sure you want to delete ${name}?`);- if (sure) {- try {- await trpc.applications.delete.mutate({ id, force });- return await goto('/');- } catch (error) {- return errorNotification(error);- }- }- }-</script>--<button- on:click={handleSubmit}- disabled={!$appSession.isAdmin}- class="btn btn-sm btn-error hover:bg-red-700 text-sm w-64"->- {force ? 'Force' : ''} Delete Application-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Deploy.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Deploy.sveltedeleted file mode 100644index 0a934440f0..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Deploy.svelte+++ /dev/null@@ -1,31 +0,0 @@-<script lang="ts">- import { errorNotification } from '$lib/common';- export let id: string;- import { trpc } from '$lib/store';- async function handleSubmit() {- try {- await trpc.applications.deploy.mutate({- id- });- } catch (error) {- return errorNotification(error);- }- }-</script>--<button class="btn btn-sm gap-2" on:click={handleSubmit}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-pink-500"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M7 4v16l13 -8z" />- </svg>- Deploy-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/ForceDeploy.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/ForceDeploy.sveltedeleted file mode 100644index 53a08a0e8e..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/ForceDeploy.svelte+++ /dev/null@@ -1,34 +0,0 @@-<script lang="ts">- import { errorNotification } from '$lib/common';- export let id: string;- import { trpc } from '$lib/store';- async function handleSubmit() {- try {- await trpc.applications.forceRedeploy.mutate({- id- });- } catch (error) {- return errorNotification(error);- }- }-</script>--<button class="btn btn-sm gap-2" on:click={handleSubmit}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M16.3 5h.7a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h5l-2.82 -2.82m0 5.64l2.82 -2.82"- transform="rotate(-45 12 12)"- />- </svg>- Force re-Deploy-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Loading.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Loading.sveltedeleted file mode 100644index 30336d8434..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Loading.svelte+++ /dev/null@@ -1,21 +0,0 @@-<button class="btn btn-ghost btn-sm gap-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 animate-spin duration-500 ease-in-out"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5" />- <line x1="5.63" y1="7.16" x2="5.63" y2="7.17" />- <line x1="4.06" y1="11" x2="4.06" y2="11.01" />- <line x1="4.63" y1="15.1" x2="4.63" y2="15.11" />- <line x1="7.16" y1="18.37" x2="7.16" y2="18.38" />- <line x1="11" y1="19.94" x2="11" y2="19.95" />- </svg>- Loading...-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Restart.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Restart.sveltedeleted file mode 100644index d9f4167459..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Restart.svelte+++ /dev/null@@ -1,30 +0,0 @@-<script lang="ts">- import { errorNotification } from '$lib/common';- export let id: string;- import { trpc } from '$lib/store';-- async function handleSubmit() {- try {- return await trpc.applications.restart.mutate({ id });- } catch (error) {- return errorNotification(error);- }- }-</script>--<button on:click={handleSubmit} class="btn btn-sm gap-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" />- <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" />- </svg> Restart-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Stop.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Stop.sveltedeleted file mode 100644index e9925d08e7..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/Stop.svelte+++ /dev/null@@ -1,37 +0,0 @@-<script lang="ts">- import { createEventDispatcher } from 'svelte';-- import { errorNotification } from '$lib/common';- import { trpc } from '$lib/store';-- export let id: string;-- const dispatch = createEventDispatcher();-- async function handleSubmit() {- try {- dispatch('stopping');- await trpc.applications.stop.mutate({ id });- dispatch('stopped');- } catch (error) {- return errorNotification(error);- }- }-</script>--<button on:click={handleSubmit} class="btn btn-sm gap-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-error"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="6" y="5" width="4" height="14" rx="1" />- <rect x="14" y="5" width="4" height="14" rx="1" />- </svg> Stop-</button>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/index.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/index.tsdeleted file mode 100644index 8e6e8a7f0c..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Buttons/index.ts+++ /dev/null@@ -1,6 +0,0 @@-export { default as Delete } from './Delete.svelte';-export { default as Stop } from './Stop.svelte';-export { default as Restart } from './Restart.svelte';-export { default as Deploy } from './Deploy.svelte';-export { default as ForceDeploy } from './ForceDeploy.svelte';-export { default as Loading } from './Loading.svelte';diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Menu.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/Menu.sveltedeleted file mode 100644index c8e9c9cf4f..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/Menu.svelte+++ /dev/null@@ -1,278 +0,0 @@-<script lang="ts">- export let application: any;- import { status } from '$lib/store';- import { page } from '$app/stores';- import * as Icons from '$lib/components/icons';-</script>--<ul class="menu border bg-coolgray-100 border-coolgray-200 rounded p-2 space-y-2 sticky top-4">- <li class="menu-title">- <span>General</span>- </li>- {#if application.gitSource?.htmlUrl && application.repository && application.branch}- <li>- <a- id="git"- href="{application.gitSource.htmlUrl}/{application.repository}/tree/{application.branch}"- target="_blank noreferrer"- class="no-underline"- >- {#if application.gitSource?.type === 'gitlab'}- <Icons.Sources.GitHub small={true} />- {:else if application.gitSource?.type === 'github'}- <Icons.Sources.GitLab small={true} />- {/if}- Open on Git <Icons.RemoteLink />- </a>- </li>- {/if}-- <li class="rounded" class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}`}>- <a href={`/applications/${$page.params.id}`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"- />- </svg>Configuration</a- >- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/secrets`}- >- <a href={`/applications/${$page.params.id}/secrets`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3"- />- <circle cx="12" cy="11" r="1" />- <line x1="12" y1="12" x2="12" y2="14.5" />- </svg>Secrets</a- >- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/storages`}- >- <a href={`/applications/${$page.params.id}/storages`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <ellipse cx="12" cy="6" rx="8" ry="3" />- <path d="M4 6v6a8 3 0 0 0 16 0v-6" />- <path d="M4 12v6a8 3 0 0 0 16 0v-6" />- </svg>Persistent Volumes</a- >- </li>- {#if !application.simpleDockerfile}- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`}- >- <a href={`/applications/${$page.params.id}/features`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3" />- </svg>Features</a- >- </li>- {/if}-- <li class="menu-title">- <span>Logs</span>- </li>- <li- class:text-stone-600={$status.application.overallStatus === 'stopped'}- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/logs`}- >- <a- href={$status.application.overallStatus !== 'stopped'- ? `/applications/${$page.params.id}/logs`- : ''}- class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <line x1="3" y1="6" x2="3" y2="19" />- <line x1="12" y1="6" x2="12" y2="19" />- <line x1="21" y1="6" x2="21" y2="19" />- </svg>Application</a- >- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/builds`}- >- <a href={`/applications/${$page.params.id}/builds`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="19" cy="13" r="2" />- <circle cx="4" cy="17" r="2" />- <circle cx="13" cy="17" r="2" />- <line x1="13" y1="19" x2="4" y2="19" />- <line x1="4" y1="15" x2="13" y2="15" />- <path d="M8 12v-5h2a3 3 0 0 1 3 3v5" />- <path d="M5 15v-2a1 1 0 0 1 1 -1h7" />- <path d="M19 11v-7l-6 7" />- </svg>Build</a- >- </li>- <li class="menu-title">- <span>Advanced</span>- </li>- {#if application.gitSourceId}- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/revert`}- >- <a href={`/applications/${$page.params.id}/revert`} class="no-underline w-full">- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M20 5v14l-12 -7z" />- <line x1="4" y1="5" x2="4" y2="19" />- </svg>- Revert</a- >- </li>- {/if}- <li- class="rounded"- class:text-stone-600={$status.application.overallStatus !== 'healthy'}- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/usage`}- >- <a- href={$status.application.overallStatus === 'healthy'- ? `/applications/${$page.params.id}/usage`- : ''}- class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M3 12h4l3 8l4 -16l3 8h4" />- </svg>Monitoring</a- >- </li>- {#if !application.settings.isBot && application.gitSourceId}- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/previews`}- >- <a href={`/applications/${$page.params.id}/previews`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="7" cy="18" r="2" />- <circle cx="7" cy="6" r="2" />- <circle cx="17" cy="12" r="2" />- <line x1="7" y1="8" x2="7" y2="16" />- <path d="M7 8a4 4 0 0 0 4 4h4" />- </svg>Preview Deployments</a- >- </li>- {/if}- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/danger`}- >- <a href={`/applications/${$page.params.id}/danger`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M12 9v2m0 4v.01" />- <path- d="M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"- />- </svg>Danger Zone</a- >- </li>-</ul>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Degraded.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Degraded.sveltedeleted file mode 100644index 6f0a1ff06c..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Degraded.svelte+++ /dev/null@@ -1,26 +0,0 @@-<script lang="ts">- export let id: string;- import * as Buttons from '../Buttons';-</script>--<a href={`/applications/${id}/logs`} class="btn btn-sm text-sm gap-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-red-500"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentcolor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M8.7 3h6.6c.3 0 .5 .1 .7 .3l4.7 4.7c.2 .2 .3 .4 .3 .7v6.6c0 .3 -.1 .5 -.3 .7l-4.7 4.7c-.2 .2 -.4 .3 -.7 .3h-6.6c-.3 0 -.5 -.1 -.7 -.3l-4.7 -4.7c-.2 -.2 -.3 -.4 -.3 -.7v-6.6c0 -.3 .1 -.5 .3 -.7l4.7 -4.7c.2 -.2 .4 -.3 .7 -.3z"- />- <line x1="12" y1="8" x2="12" y2="12" />- <line x1="12" y1="16" x2="12.01" y2="16" />- </svg>- Application Error (check logs)-</a>-<Buttons.Stop {id} />diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Healthy.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Healthy.sveltedeleted file mode 100644index 3b1cf1cf11..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Healthy.svelte+++ /dev/null@@ -1,11 +0,0 @@-<script lang="ts">- export let id: string;- export let isComposeBuildPack: boolean = false;- import * as Buttons from '../Buttons';-</script>--{#if !isComposeBuildPack}- <Buttons.Restart {id} />-{/if}-<Buttons.ForceDeploy {id} />-<Buttons.Stop {id} />diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Loading.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Loading.sveltedeleted file mode 100644index bc77579c54..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Loading.svelte+++ /dev/null@@ -1,5 +0,0 @@-<script lang="ts">- import * as Buttons from '../Buttons';-</script>--<Buttons.Loading />diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Stopped.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Stopped.sveltedeleted file mode 100644index e5817b4909..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/Stopped.svelte+++ /dev/null@@ -1,6 +0,0 @@-<script lang="ts">- export let id: string;- import * as Buttons from '../Buttons';-</script>--<Buttons.Deploy {id} />diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/index.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/index.tsdeleted file mode 100644index a374936d00..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/components/States/index.ts+++ /dev/null@@ -1,4 +0,0 @@-export { default as Loading } from './Loading.svelte';-export { default as Degraded } from './Degraded.svelte';-export { default as Healthy } from './Healthy.svelte';-export { default as Stopped } from './Stopped.svelte';diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/danger/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/danger/+page.sveltedeleted file mode 100644index 4fede01951..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/danger/+page.svelte+++ /dev/null@@ -1,60 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let application: any = data.application.data;- import { page } from '$app/stores';- import { appSession, status, trpc } from '$lib/store';- import { errorNotification } from '$lib/common';- import { goto } from '$app/navigation';- const { id } = $page.params;-- let forceDelete = false;- async function deleteApplication(name: string, force: boolean) {- const sure = confirm('Are you sure you want to delete this application?');- if (sure) {- $status.application.initialLoading = true;- try {- await trpc.applications.deleteApplication.mutate({ id, force });- return await goto('/');- } catch (error) {- if (error.message.startsWith(`Command failed: SSH_AUTH_SOCK=/tmp/coolify-ssh-agent.pid`)) {- forceDelete = true;- }- return errorNotification(error);- } finally {- $status.application.initialLoading = false;- }- }- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Danger Zone</div>- </div>-- {#if forceDelete}- <button- id="forcedelete"- on:click={() => deleteApplication(application.name, true)}- type="submit"- disabled={!$appSession.isAdmin}- class:bg-red-600={$appSession.isAdmin}- class:hover:bg-red-500={$appSession.isAdmin}- class="btn btn-lg btn-error hover:bg-red-700 text-sm w-64"- >- Force Delete Application- </button>- {:else}- <button- id="delete"- on:click={() => deleteApplication(application.name, false)}- type="submit"- disabled={!$appSession.isAdmin}- class="btn btn-lg btn-error hover:bg-red-700 text-sm w-64"- >- Delete Application- </button>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/features/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/features/+page.sveltedeleted file mode 100644index 3017e12c8e..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/features/+page.svelte+++ /dev/null@@ -1,118 +0,0 @@-<script lang="ts">- import type { PageParentData } from './$types';-- export let data: PageParentData;- const application = data.application.data;- const settings = data.settings.data;- import { page } from '$app/stores';- const { id } = $page.params;- import {- addToast,- appSession,- checkIfDeploymentEnabledApplications,- setLocation,- status,- isDeploymentEnabled,- trpc- } from '$lib/store';- import { errorNotification } from '$lib/common';- import Setting from '$lib/components/Setting.svelte';-- let previews = application.settings.previews;- let dualCerts = application.settings.dualCerts;- let autodeploy = application.settings.autodeploy;- let isBot = application.settings.isBot;- let isDBBranching = application.settings.isDBBranching;-- async function changeSettings(name: any) {- if (name === 'previews') {- previews = !previews;- }- if (name === 'dualCerts') {- dualCerts = !dualCerts;- }- if (name === 'autodeploy') {- autodeploy = !autodeploy;- }- if (name === 'isBot') {- if ($status.application.isRunning) return;- isBot = !isBot;- application.settings.isBot = isBot;- application.fqdn = null;- setLocation(application, settings);- }- if (name === 'isDBBranching') {- isDBBranching = !isDBBranching;- }- try {- await trpc.applications.saveSettings.mutate({- id,- previews,- dualCerts,- isBot,- autodeploy,- isDBBranching- });-- return addToast({- message: 'Settings saved',- type: 'success'- });- } catch (error) {- if (name === 'previews') {- previews = !previews;- }- if (name === 'dualCerts') {- dualCerts = !dualCerts;- }- if (name === 'autodeploy') {- autodeploy = !autodeploy;- }- if (name === 'isBot') {- isBot = !isBot;- }- if (name === 'isDBBranching') {- isDBBranching = !isDBBranching;- }- return errorNotification(error);- } finally {- $isDeploymentEnabled = checkIfDeploymentEnabledApplications($appSession.isAdmin, application);- }- }-</script>--<div class="w-full">- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Features</div>- </div>- <div class="px-4 lg:pb-10 pb-6">- {#if !application.settings.isPublicRepository}- <div class="grid grid-cols-2 items-center">- <Setting- id="autodeploy"- isCenter={false}- bind:setting={autodeploy}- on:click={() => changeSettings('autodeploy')}- title="Enable Automatic Deployment"- description="Enable automatic deployment through webhooks."- />- </div>- {#if !application.settings.isBot && !application.simpleDockerfile}- <div class="grid grid-cols-2 items-center">- <Setting- id="previews"- isCenter={false}- bind:setting={previews}- on:click={() => changeSettings('previews')}- title="Enable MR/PR Previews"- description="Enable preview deployments from pull or merge requests."- />- </div>- {/if}- {:else}- No features available for this application- {/if}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/logs/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/logs/+page.sveltedeleted file mode 100644index 2448ab2965..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/logs/+page.svelte+++ /dev/null@@ -1,176 +0,0 @@-<script lang="ts">- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import { trpc } from '$lib/store';- import { onMount, onDestroy } from 'svelte';-- let application: any = {};- let logsLoading = false;- let loadLogsInterval: any = null;- let logs: any = [];- let lastLog: any = null;- let followingInterval: any;- let followingLogs: any;- let logsEl: any;- let position = 0;- let services: any = [];- let selectedService: any = null;- let noContainer = false;-- const { id } = $page.params;- onMount(async () => {- const { data } = await trpc.applications.getApplicationById.query({ id });- application = data;- if (application.dockerComposeFile && application.buildPack === 'compose') {- services = normalizeDockerServices(JSON.parse(data.dockerComposeFile).services);- } else {- services = [- {- name: ''- }- ];- await selectService('');- }- });- onDestroy(() => {- clearInterval(loadLogsInterval);- clearInterval(followingInterval);- });- function normalizeDockerServices(services: any[]) {- const tempdockerComposeServices = [];- for (const [name, data] of Object.entries(services)) {- tempdockerComposeServices.push({- name,- data- });- }- return tempdockerComposeServices;- }- async function loadLogs() {- if (logsLoading) return;- try {- const newLogs = await trpc.applications.loadLogs.query({- id,- containerId: selectedService,- since: Number(lastLog?.split(' ')[0]) || 0- });-- if (newLogs.noContainer) {- noContainer = true;- } else {- noContainer = false;- }- if (newLogs?.logs && newLogs.logs[newLogs.logs.length - 1] !== logs[logs.length - 1]) {- logs = logs.concat(newLogs.logs);- lastLog = newLogs.logs[newLogs.logs.length - 1];- }- } catch (error) {- return errorNotification(error);- }- }- function detect() {- if (position < logsEl.scrollTop) {- position = logsEl.scrollTop;- } else {- if (followingLogs) {- clearInterval(followingInterval);- followingLogs = false;- }- position = logsEl.scrollTop;- }- }-- function followBuild() {- followingLogs = !followingLogs;- if (followingLogs) {- followingInterval = setInterval(() => {- logsEl.scrollTop = logsEl.scrollHeight;- window.scrollTo(0, document.body.scrollHeight);- }, 1000);- } else {- clearInterval(followingInterval);- }- }- async function selectService(service: any, init: boolean = false) {- if (loadLogsInterval) clearInterval(loadLogsInterval);- if (followingInterval) clearInterval(followingInterval);-- logs = [];- lastLog = null;- followingLogs = false;-- selectedService = `${application.id}${service.name ? `-${service.name}` : ''}`;- loadLogs();- loadLogsInterval = setInterval(() => {- loadLogs();- }, 1000);- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Application Logs</div>- </div>-</div>-<div class="flex gap-2 lg:gap-8 pb-4">- {#each services as service}- <button- on:click={() => selectService(service, true)}- class:bg-primary={selectedService ===- `${application.id}${service.name ? `-${service.name}` : ''}`}- class:bg-coolgray-200={selectedService !==- `${application.id}${service.name ? `-${service.name}` : ''}`}- class="w-full rounded p-5 hover:bg-primary font-bold"- >- {application.id}{service.name ? `-${service.name}` : ''}</button- >- {/each}-</div>--{#if selectedService}- <div class="flex flex-row justify-center space-x-2">- {#if logs.length === 0}- {#if noContainer}- <div class="text-xl font-bold tracking-tighter">Container not found / exited.</div>- {/if}- {:else}- <div class="relative w-full">- <div class="flex justify-start sticky space-x-2 pb-2">- <button on:click={followBuild} class="btn btn-sm " class:bg-coollabs={followingLogs}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 mr-2"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="8" y1="12" x2="12" y2="16" />- <line x1="12" y1="8" x2="12" y2="16" />- <line x1="16" y1="12" x2="12" y2="16" />- </svg>- {followingLogs ? 'Following Logs...' : 'Follow Logs'}- </button>- {#if loadLogsInterval}- <button id="streaming" class="btn btn-sm bg-transparent border-none loading"- >Streaming logs</button- >- {/if}- </div>- <div- bind:this={logsEl}- on:scroll={detect}- class="font-mono w-full bg-coolgray-100 border border-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"- >- {#each logs as log}- <p>{log + '\n'}</p>- {/each}- </div>- </div>- {/if}- </div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/previews/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/previews/+page.sveltedeleted file mode 100644index a4095f8b18..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/previews/+page.svelte+++ /dev/null@@ -1,323 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let application: any = data.application.data;- import { page } from '$app/stores';- import { goto } from '$app/navigation';- import { asyncSleep, errorNotification, getRndInteger } from '$lib/common';- import { onDestroy, onMount } from 'svelte';- import { addToast, appSession, trpc } from '$lib/store';- import Tooltip from '$lib/components/Tooltip.svelte';- import * as Icons from '$lib/components/icons';-- const { id } = $page.params;- let loadBuildingStatusInterval: any = null;- let loading = {- init: true,- restart: false,- removing: false- };- let numberOfGetStatus = 0;- let status: any = {};-- async function removeApplication(preview: any) {- try {- loading.removing = true;- await trpc.applications.stopPreview.mutate({- id,- pullmergeRequestId: preview.pullmergeRequestId- });- return window.location.reload();- } catch (error) {- return errorNotification(error);- }- }- async function redeploy(preview: any) {- try {- const { buildId } = await trpc.applications.deploy.mutate({- id,- pullmergeRequestId: preview.pullmergeRequestId,- branch: preview.sourceBranch- });-- addToast({- message: 'Deployment queued.',- type: 'success'- });- if ($page.url.pathname.startsWith(`/applications/${id}/logs/build`)) {- return window.location.assign(`/applications/${id}/logs/build?buildId=${buildId}`);- } else {- return await goto(`/applications/${id}/logs/build?buildId=${buildId}`, {- replaceState: true- });- }- } catch (error) {- return errorNotification(error);- }- }- async function loadPreviewsFromDocker() {- try {- const { data } = await trpc.applications.loadPreviews.mutate({ id });- application.previewApplication = data.previews;- addToast({- message: 'Previews loaded.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function getStatus(resources: any) {- const { applicationId, pullmergeRequestId, id } = resources;- if (status[id]) return status[id];- while (numberOfGetStatus > 1) {- await asyncSleep(getRndInteger(100, 200));- }- try {- numberOfGetStatus++;- let isRunning = false;- let isBuilding = false;- const { data } = await trpc.applications.getPreviewStatus.query({- id: applicationId,- pullmergeRequestId- });-- isRunning = data.isRunning;- isBuilding = data.isBuilding;- if (isBuilding) {- status[id] = 'building';- return 'building';- } else if (isRunning) {- status[id] = 'running';- return 'running';- } else {- status[id] = 'stopped';- return 'stopped';- }- } catch (error) {- status[id] = 'error';- return 'error';- } finally {- numberOfGetStatus--;- status = status;- }- }- async function restartPreview(preview: any) {- try {- loading.restart = true;- const { pullmergeRequestId } = preview;- await trpc.applications.restartPreview.mutate({ id, pullmergeRequestId });- addToast({- type: 'success',- message: 'Restart successful.'- });- } catch (error) {- return errorNotification(error);- } finally {- await getStatus(preview);- loading.restart = false;- }- }- onDestroy(() => {- clearInterval(loadBuildingStatusInterval);- });- onMount(async () => {- loadBuildingStatusInterval = setInterval(() => {- application.previewApplication.forEach(async (preview: any) => {- const { applicationId, pullmergeRequestId } = preview;- if (status[preview.id] === 'building') {- const { data } = await trpc.applications.getPreviewStatus.query({- id: applicationId,- pullmergeRequestId- });- if (data.isBuilding) {- status[preview.id] = 'building';- } else if (data.isRunning) {- status[preview.id] = 'running';- return 'running';- } else {- status[preview.id] = 'stopped';- return 'stopped';- }- }- });- }, 2000);- try {- loading.init = true;- loading.restart = true;- } catch (error) {- return errorNotification(error);- } finally {- loading.init = false;- loading.restart = false;- }- });-</script>--<div class="w-full">- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Preview Deployments</div>- <div class="text-center">- <button class="btn btn-sm bg-coollabs" on:click={loadPreviewsFromDocker}- >Load Previews</button- >- </div>- </div>- </div>-</div>--{#if loading.init}- <div class="px-6 pt-4">- <div class="flex justify-center py-4 text-center text-xl font-bold">Loading...</div>- </div>-{:else if application.previewApplication.length > 0}- <div class="grid grid-col gap-4 auto-cols-max grid-cols-1 md:grid-cols-2 lg:grid-cols-2 px-6">- {#each application.previewApplication as preview}- <div class="no-underline mb-5 w-full">- <div class="w-full rounded p-5 bg-coolgray-200 indicator">- {#await getStatus(preview)}- <span class="indicator-item badge bg-yellow-500 badge-sm" />- {:then}- {#if status[preview.id] === 'running'}- <span class="indicator-item badge bg-success badge-sm" />- {:else}- <span class="indicator-item badge bg-error badge-sm" />- {/if}- {/await}- <div class="w-full flex flex-row">- <div class="w-full flex flex-col">- <h1 class="font-bold text-lg lg:text-xl truncate">- PR #{preview.pullmergeRequestId}- {#if status[preview.id] === 'building'}- <span- class="badge badge-sm text-xs uppercase rounded bg-coolgray-300 text-green-500 border-none font-bold"- >- BUILDING- </span>- {/if}- </h1>- <div class="h-10 text-xs">- <h2>{preview.customDomain.replace('https://', '').replace('http://', '')}</h2>- </div>-- <div class="flex justify-end items-end space-x-2 h-10">- {#if preview.customDomain}- <a- id="openpreview"- href={preview.customDomain}- target="_blank noreferrer"- class="icons"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" />- <line x1="10" y1="14" x2="20" y2="4" />- <polyline points="15 4 20 4 20 9" />- </svg>- </a>- {/if}- <Tooltip triggeredBy="#openpreview">Open Preview</Tooltip>- {#if loading.restart}- <button- class="icons flex animate-spin items-center space-x-2 bg-transparent text-sm duration-500 ease-in-out hover:bg-transparent"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5" />- <line x1="5.63" y1="7.16" x2="5.63" y2="7.17" />- <line x1="4.06" y1="11" x2="4.06" y2="11.01" />- <line x1="4.63" y1="15.1" x2="4.63" y2="15.11" />- <line x1="7.16" y1="18.37" x2="7.16" y2="18.38" />- <line x1="11" y1="19.94" x2="11" y2="19.95" />- </svg>- </button>- {:else}- <button- id="restart"- disabled={!$appSession.isAdmin}- on:click={() => restartPreview(preview)}- type="submit"- class="icons bg-transparent text-sm flex items-center space-x-2"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" />- <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" />- </svg>- </button>- {/if}-- <Tooltip triggeredBy="#restart">Restart (useful to change secrets)</Tooltip>- <button- id="forceredeploypreview"- class="icons"- disabled={!$appSession.isAdmin}- on:click={() => redeploy(preview)}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M16.3 5h.7a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h5l-2.82 -2.82m0 5.64l2.82 -2.82"- transform="rotate(-45 12 12)"- />- </svg></button- >- <Tooltip triggeredBy="#forceredeploypreview">Force redeploy (without cache)</Tooltip- >- <button- id="deletepreview"- class="icons"- class:hover:text-error={!loading.removing}- disabled={loading.removing || !$appSession.isAdmin}- on:click={() => removeApplication(preview)}- ><Icons.Delete />- </button>- <Tooltip triggeredBy="#deletepreview">Delete Preview</Tooltip>- </div>- </div>- </div>- </div>- </div>- {/each}- </div>-{:else}- No previews found.-{/if}diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.sveltedeleted file mode 100644index 80013e0f0d..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.svelte+++ /dev/null@@ -1,151 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let application: any = data.application.data;- let imagesAvailables: any = data.imagesAvailables;- let runningImage: any = data.runningImage;-- import { page } from '$app/stores';- import { status, addToast, trpc } from '$lib/store';- import { errorNotification } from '$lib/common';- import Explainer from '$lib/components/Explainer.svelte';-- const { id } = $page.params;- let remoteImage: any = null;-- async function revertToLocal(image: any) {- const sure = confirm(`Are you sure you want to revert to ${image.tag} ?`);- if (sure) {- try {- $status.application.initialLoading = true;- $status.application.loading = true;- const imageId = `${image.repository}:${image.tag}`;- await trpc.applications.restart.mutate({ id, imageId });- // await post(`/applications/${id}/restart`, { imageId });- addToast({- type: 'success',- message: 'Revert successful.'- });- } catch (error) {- return errorNotification(error);- } finally {- $status.application.initialLoading = false;- $status.application.loading = false;- }- }- }- async function revertToRemote() {- const sure = confirm(`Are you sure you want to revert to ${remoteImage} ?`);- if (sure) {- try {- $status.application.initialLoading = true;- $status.application.loading = true;- $status.application.restarting = true;- await trpc.applications.restart.mutate({ id, imageId: remoteImage });- addToast({- type: 'success',- message: 'Revert successful.'- });- } catch (error) {- return errorNotification(error);- } finally {- $status.application.initialLoading = false;- $status.application.loading = false;- $status.application.restarting = false;- }- }- }-</script>--<div class="w-full">- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">- Revert <Explainer- position="dropdown-bottom"- explanation="You can revert application to a previously built image. Currently only locally stored images- supported."- />- </div>- </div>- <div class="pb-4 text-xs">- If you do not want the next commit to overwrite the reverted application, temporary disable <span- class="text-yellow-400 font-bold">Automatic Deployment</span- >- feature <a href={`/applications/${id}/features`}>here</a>.- </div>- {#if imagesAvailables.length > 0}- <div class="text-xl font-bold pb-3">Local Images</div>- <div- class="px-4 lg:pb-10 pb-6 flex flex-wrap items-center justify-center lg:justify-start gap-8"- >- {#each imagesAvailables as image}- <div class="gap-2 py-4 m-2">- <div class="flex flex-col justify-center items-center">- <div class="text-xl font-bold">- {image.tag}- </div>- <div>- <a- class="flex no-underline text-xs my-4"- href="{application.gitSource.htmlUrl}/{application.repository}/commit/{image.tag}"- target="_blank noreferrer"- >- <button class="btn btn-sm">- Check Commit- <svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- viewBox="0 0 24 24"- stroke-width="3"- stroke="currentColor"- class="w-3 h-3 text-white ml-2"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"- />- </svg>- </button></a- >- {#if image.repository + ':' + image.tag !== runningImage}- <button- class="btn btn-sm btn-primary w-full"- on:click={() => revertToLocal(image)}>Revert Now</button- >- {:else}- <button- class="btn btn-sm btn-primary w-full btn-disabled bg-transparent underline"- >Currently Used</button- >- {/if}- </div>- </div>- </div>- {/each}- </div>- {:else}- <div class="flex flex-col pb-10">- <div class="text-xl font-bold">No Local images available</div>- </div>- {/if}- <div class="text-xl font-bold pb-3">- Remote Images (Docker Registry) <Explainer- position="dropdown-bottom"- explanation="If the image is not available or you are unauthorized to access it, you will not be able to revert to it."- />- </div>- <form on:submit|preventDefault={revertToRemote}>- <input- id="dockerImage"- name="dockerImage"- required- placeholder="coollabsio/coolify:0.0.1"- bind:value={remoteImage}- />- <button class="btn btn-sm btn-primary" type="submit">Revert Now</button>- </form>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.tsdeleted file mode 100644index 2fc882718d..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/revert/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const { data } = await trpc.applications.getLocalImages.query({ id });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.sveltedeleted file mode 100644index e0a4544a9a..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.svelte+++ /dev/null@@ -1,138 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let secrets = data.secrets;- let previewSecrets = data.previewSecrets;- const application = data.application.data;-- import pLimit from 'p-limit';- import { page } from '$app/stores';- import { addToast, trpc } from '$lib/store';- import Secret from './components/Secret.svelte';- import PreviewSecret from './components/PreviewSecret.svelte';- import { errorNotification } from '$lib/common';- import Explainer from '$lib/components/Explainer.svelte';-- const limit = pLimit(1);- const { id } = $page.params;-- let batchSecrets = '';- async function refreshSecrets() {- const { data } = await trpc.applications.getSecrets.query({ id });- previewSecrets = [...data.previewSecrets];- secrets = [...data.secrets];- }- async function getValues() {- if (!batchSecrets) return;- const eachValuePair = batchSecrets.split('\n');- const batchSecretsPairs = eachValuePair- .filter((secret) => !secret.startsWith('#') && secret)- .map((secret) => {- const [name, ...rest] = secret.split('=');- const value = rest.join('=');- return {- name: name.trim(),- value: value.trim(),- createSecret: !secrets.find((secret: any) => name === secret.name)- };- });-- await Promise.all(- batchSecretsPairs.map(({ name, value, createSecret }) =>- limit(async () => {- try {- if (!name || !value) return;- if (createSecret) {- await trpc.applications.newSecret.mutate({- id,- name,- value- });-- addToast({- message: 'Secret created.',- type: 'success'- });- } else {- await trpc.applications.updateSecret.mutate({- id,- name,- value- });-- addToast({- message: 'Secret updated.',- type: 'success'- });- }- } catch (error) {- return errorNotification(error);- }- })- )- );- batchSecrets = '';- await refreshSecrets();- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Secrets</div>- </div>- {#each secrets as secret, index}- {#key secret.id}- <Secret- {index}- length={secrets.length}- name={secret.name}- value={secret.value}- isBuildSecret={secret.isBuildSecret}- on:refresh={refreshSecrets}- />- {/key}- {/each}- <div class="lg:pt-0 pt-10">- <Secret on:refresh={refreshSecrets} length={secrets.length} isNewSecret />- </div>- {#if !application.settings.isBot && !application.simpleDockerfile}- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3 pt-8">- Preview Secrets <Explainer- explanation="These values overwrite application secrets in PR/MR deployments. <br>Useful for creating <span class='text-green-500 font-bold'>staging</span> environments."- />- </div>- </div>- {#if previewSecrets.length !== 0}- {#each previewSecrets as secret, index}- {#key index}- <PreviewSecret- {index}- length={secrets.length}- name={secret.name}- value={secret.value}- isBuildSecret={secret.isBuildSecret}- on:refresh={refreshSecrets}- />- {/key}- {/each}- {:else}- Add secrets first to see Preview Secrets.- {/if}- {/if}-</div>-<form on:submit|preventDefault={getValues} class="mb-12 w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2 pt-10">- <div class="flex flex-row space-x-2">- <div class="title font-bold pb-3 ">Paste <code>.env</code> file</div>- <button type="submit" class="btn btn-sm bg-primary">Add Secrets in Batch</button>- </div>- </div>-- <textarea- placeholder={`PORT=1337\nPASSWORD=supersecret`}- bind:value={batchSecrets}- class="mb-2 min-h-[200px] w-full"- />-</form>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.tsdeleted file mode 100644index 8e36aea0bb..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const { data } = await trpc.applications.getSecrets.query({ id });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/PreviewSecret.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/PreviewSecret.sveltedeleted file mode 100644index df2589feb4..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/PreviewSecret.svelte+++ /dev/null@@ -1,131 +0,0 @@-<script lang="ts">- export let length = 0;- export let index: number = 0;- export let name = '';- export let value = '';- export let isBuildSecret = false;-- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import { addToast, trpc } from '$lib/store';- import { createEventDispatcher } from 'svelte';-- const dispatch = createEventDispatcher();- const { id } = $page.params;-- async function updatePreviewSecret() {- try {- await trpc.applications.updateSecret.mutate({- id,- name: name.trim(),- value: value.trim(),- isPreview: true- });- addToast({- message: 'Secret updated.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }-</script>--<div class="w-full grid grid-cols-1 lg:grid-cols-4 gap-2 pb-2">- <div class="flex flex-col">- {#if index === 0 || length === 0}- <label for="name" class="pb-2 uppercase font-bold">name</label>- {/if}-- <input- id="secretName"- readonly- disabled- value={name}- required- placeholder="EXAMPLE_VARIABLE"- class=" w-full"- />- </div>- <div class="flex flex-col">- {#if index === 0 || length === 0}- <label for="value" class="pb-2 uppercase font-bold">value</label>- {/if}-- <CopyPasswordField- id="secretValue"- name="secretValue"- isPasswordField={true}- bind:value- placeholder="J$#@UIO%HO#$U%H"- />- </div>- <div class="flex lg:flex-col flex-row justify-start items-center pt-3 lg:pt-0">- {#if index === 0 || length === 0}- <label for="name" class="pb-2 uppercase lg:block hidden font-bold"- >Need during buildtime?</label- >- {/if}- <label for="name" class="pb-2 uppercase lg:hidden block font-bold">Need during buildtime?</label- >-- <div class="flex justify-center h-full items-center pt-0 lg:pt-0 pl-4 lg:pl-0">- <button- aria-pressed="false"- class="opacity-50 cursor-pointer cursor-not-allowedrelative inline-flex h-6 w-11 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out "- class:bg-green-600={isBuildSecret}- class:bg-stone-700={!isBuildSecret}- >- <span class="sr-only">Is build secret?</span>- <span- class="pointer-events-none relative inline-block h-5 w-5 transform rounded-full bg-white shadow transition duration-200 ease-in-out"- class:translate-x-5={isBuildSecret}- class:translate-x-0={!isBuildSecret}- >- <span- class="absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-200 ease-in"- class:opacity-0={isBuildSecret}- class:opacity-100={!isBuildSecret}- aria-hidden="true"- >- <svg class="h-3 w-3 bg-white text-red-600" fill="none" viewBox="0 0 12 12">- <path- d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- />- </svg>- </span>- <span- class="absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-100 ease-out"- aria-hidden="true"- class:opacity-100={isBuildSecret}- class:opacity-0={!isBuildSecret}- >- <svg class="h-3 w-3 bg-white text-green-600" fill="currentColor" viewBox="0 0 12 12">- <path- d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"- />- </svg>- </span>- </span>- </button>- </div>- </div>- <div class="flex flex-row lg:flex-col lg:items-center items-start">- {#if index === 0 || length === 0}- <label for="name" class="pb-5 uppercase lg:block hidden font-bold" />- {/if}-- <div class="flex justify-center h-full items-center pt-3">- <div class="flex flex-row justify-center space-x-2">- <div class="flex items-center justify-center">- <button class="btn btn-sm btn-primary" on:click={updatePreviewSecret}>Update</button>- </div>- </div>- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/Secret.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/Secret.sveltedeleted file mode 100644index de3f97bbfc..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/secrets/components/Secret.svelte+++ /dev/null@@ -1,193 +0,0 @@-<script lang="ts">- export let length = 0;- export let index: number = 0;- export let name = '';- export let value = '';- export let isBuildSecret = false;- export let isNewSecret = false;-- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import { addToast, trpc } from '$lib/store';- import { createEventDispatcher } from 'svelte';-- const dispatch = createEventDispatcher();- const { id } = $page.params;- function cleanupState() {- if (isNewSecret) {- name = '';- value = '';- isBuildSecret = false;- }- }- async function removeSecret() {- try {- await trpc.applications.deleteSecret.mutate({ id, name });- cleanupState();- addToast({- message: 'Secret removed.',- type: 'success'- });- dispatch('refresh');- } catch (error) {- return errorNotification(error);- }- }-- async function addNewSecret() {- try {- if (!name.trim()) return errorNotification({ message: 'Name is required.' });- if (!value.trim()) return errorNotification({ message: 'Value is required.' });- await trpc.applications.newSecret.mutate({- id,- name: name.trim(),- value: value.trim(),- isBuildSecret- });- cleanupState();- addToast({- message: 'Secret added.',- type: 'success'- });- dispatch('refresh');- } catch (error) {- return errorNotification(error);- }- }-- async function updateSecret({- changeIsBuildSecret = false- }: { changeIsBuildSecret?: boolean } = {}) {- if (changeIsBuildSecret) isBuildSecret = !isBuildSecret;- if (isNewSecret) return;- try {- await trpc.applications.updateSecret.mutate({- id,- name: name.trim(),- value: value.trim(),- isBuildSecret,- isPreview: false- });- addToast({- message: 'Secret updated.',- type: 'success'- });- dispatch('refresh');- } catch (error) {- return errorNotification(error);- }- }-</script>--<div class="w-full grid grid-cols-1 lg:grid-cols-4 gap-2 pb-2">- <div class="flex flex-col">- {#if (index === 0 && !isNewSecret) || length === 0}- <label for="name" class="pb-2 uppercase font-bold">name</label>- {/if}-- <input- id={isNewSecret ? 'secretName' : 'secretNameNew'}- bind:value={name}- required- placeholder="EXAMPLE_VARIABLE"- readonly={!isNewSecret}- class="w-full"- class:bg-coolblack={!isNewSecret}- class:border={!isNewSecret}- class:border-dashed={!isNewSecret}- class:border-coolgray-300={!isNewSecret}- class:cursor-not-allowed={!isNewSecret}- />- </div>- <div class="flex flex-col">- {#if (index === 0 && !isNewSecret) || length === 0}- <label for="value" class="pb-2 uppercase font-bold">value</label>- {/if}-- <CopyPasswordField- id={isNewSecret ? 'secretValue' : 'secretValueNew'}- name={isNewSecret ? 'secretValue' : 'secretValueNew'}- isPasswordField={true}- bind:value- placeholder="J$#@UIO%HO#$U%H"- />- </div>- <div class="flex lg:flex-col flex-row justify-start items-center pt-3 lg:pt-0">- {#if (index === 0 && !isNewSecret) || length === 0}- <label for="name" class="pb-2 uppercase lg:block hidden font-bold"- >Need during buildtime?</label- >- {/if}- <label for="name" class="pb-2 uppercase lg:hidden block font-bold">Need during buildtime?</label- >-- <div class="flex justify-center h-full items-center pt-0 lg:pt-0 pl-4 lg:pl-0">- <button- on:click={() => updateSecret({ changeIsBuildSecret: true })}- aria-pressed="false"- class="relative inline-flex h-6 w-11 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out "- class:bg-green-600={isBuildSecret}- class:bg-stone-700={!isBuildSecret}- >- <span class="sr-only">Is build secret?</span>- <span- class="pointer-events-none relative inline-block h-5 w-5 transform rounded-full bg-white shadow transition duration-200 ease-in-out"- class:translate-x-5={isBuildSecret}- class:translate-x-0={!isBuildSecret}- >- <span- class="absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-200 ease-in"- class:opacity-0={isBuildSecret}- class:opacity-100={!isBuildSecret}- aria-hidden="true"- >- <svg class="h-3 w-3 bg-white text-red-600" fill="none" viewBox="0 0 12 12">- <path- d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- />- </svg>- </span>- <span- class="absolute inset-0 flex h-full w-full items-center justify-center transition-opacity duration-100 ease-out"- aria-hidden="true"- class:opacity-100={isBuildSecret}- class:opacity-0={!isBuildSecret}- >- <svg class="h-3 w-3 bg-white text-green-600" fill="currentColor" viewBox="0 0 12 12">- <path- d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"- />- </svg>- </span>- </span>- </button>- </div>- </div>- <div class="flex flex-row lg:flex-col lg:items-center items-start">- {#if (index === 0 && !isNewSecret) || length === 0}- <label for="name" class="pb-5 uppercase lg:block hidden font-bold" />- {/if}-- <div class="flex justify-center h-full items-center pt-3">- {#if isNewSecret}- <div class="flex items-center justify-center">- <button class="btn btn-sm btn-primary" on:click={addNewSecret}>Add</button>- </div>- {:else}- <div class="flex flex-row justify-center space-x-2">- <div class="flex items-center justify-center">- <button class="btn btn-sm btn-primary" on:click={() => updateSecret()}>Set</button>- </div>- <div class="flex justify-center items-end">- <button class="btn btn-sm btn-error" on:click={removeSecret}>Remove</button>- </div>- </div>- {/if}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.sveltedeleted file mode 100644index c117b69527..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.svelte+++ /dev/null@@ -1,78 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- const application = data.application.data;- let persistentStorages = data.persistentStorages;- import { page } from '$app/stores';- import Storage from './components/Storage.svelte';- import Explainer from '$lib/components/Explainer.svelte';- import { trpc } from '$lib/store';-- let composeJson: any = JSON.parse(application?.dockerComposeFile || '{}');- let predefinedVolumes: any[] = [];- if (composeJson?.services) {- for (const [_, service] of Object.entries(composeJson.services)) {- if (service?.volumes) {- for (const [_, volumeName] of Object.entries(service.volumes)) {- let [volume, target] = volumeName.split(':');- if (volume === '.') {- volume = target;- }- if (!target) {- target = volume;- volume = `${application.id}${volume.replace(/\//gi, '-').replace(/\./gi, '')}`;- } else {- volume = `${application.id}${volume.replace(/\//gi, '-').replace(/\./gi, '')}`;- }- predefinedVolumes.push({ id: volume, path: target, predefined: true });- }- }- }- }- const { id } = $page.params;- async function refreshStorage() {- const { data } = await trpc.applications.getStorages.query({ id });- persistentStorages = [...data.persistentStorages];- }-</script>--<div class="w-full">- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Persistent Volumes</div>- </div>- {#if predefinedVolumes.length > 0}- <div class="title">Predefined Volumes</div>- <div class="w-full lg:px-0 px-4">- <div class="grid grid-col-1 lg:grid-cols-2 py-2 gap-2">- <div class="font-bold uppercase">Volume Id</div>- <div class="font-bold uppercase">Mount Dir</div>- </div>- </div>-- <div class="gap-4">- {#each predefinedVolumes as storage}- {#key storage.id}- <Storage on:refresh={refreshStorage} {storage} />- {/key}- {/each}- </div>- {/if}- {#if persistentStorages.length > 0}- <div class="title" class:pt-10={predefinedVolumes.length > 0}>Custom Volumes</div>- {/if}- {#each persistentStorages as storage}- {#key storage.id}- <Storage on:refresh={refreshStorage} {storage} />- {/key}- {/each}- <div class="Preview Secrets" class:pt-10={predefinedVolumes.length > 0}>- Add New Volume <Explainer- position="dropdown-bottom"- explanation="You can specify any folder that you want to be persistent across deployments.<br><br><span class='text-settings '>/example</span> means it will preserve <span class='text-settings '>/example</span> between deployments.<br><br>Your application's data is copied to <span class='text-settings '>/app</span> inside the container, you can preserve data under it as well, like <span class='text-settings '>/app/db</span>.<br><br>This is useful for storing data such as a <span class='text-settings '>database (SQLite)</span> or a <span class='text-settings '>cache</span>."- />- </div>- <Storage on:refresh={refreshStorage} isNew />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.tsdeleted file mode 100644index 7c5f226ffc..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const { data } = await trpc.applications.getStorages.query({ id });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/components/Storage.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/storages/components/Storage.sveltedeleted file mode 100644index 9189927845..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/storages/components/Storage.svelte+++ /dev/null@@ -1,114 +0,0 @@-<script lang="ts">- export let isNew = false;- export let storage: any = {- id: null,- path: null- };- import { page } from '$app/stores';- import { createEventDispatcher } from 'svelte';-- import { errorNotification } from '$lib/common';- import { addToast, trpc } from '$lib/store';- const { id } = $page.params;-- const dispatch = createEventDispatcher();- async function saveStorage(newStorage = false) {- try {- if (!storage.path) return errorNotification('Path is required');- storage.path = storage.path.startsWith('/') ? storage.path : `/${storage.path}`;- storage.path = storage.path.endsWith('/') ? storage.path.slice(0, -1) : storage.path;- storage.path.replace(/\/\//g, '/');- await trpc.applications.updateStorage.mutate({- id,- path: storage.path,- storageId: storage.id,- newStorage- });-- dispatch('refresh');- if (isNew) {- storage.path = null;- storage.id = null;- }- if (newStorage) {- addToast({- message: 'Storage created',- type: 'success'- });- } else {- addToast({- message: 'Storage updated',- type: 'success'- });- }- } catch (error) {- return errorNotification(error);- }- }- async function removeStorage() {- try {- await trpc.applications.deleteStorage.mutate({- id,- path: storage.path- });- dispatch('refresh');- addToast({- message: 'Storage removed',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }-</script>--<div class="w-full lg:px-0 px-4">- {#if storage.predefined}- <div class="flex flex-col lg:flex-row gap-4 pb-2">- <input disabled readonly class="w-full" value={storage.id} />- <input disabled readonly class="w-full" bind:value={storage.path} />- </div>- {:else}- <div class="flex gap-4 pb-2" class:pt-8={isNew}>- {#if storage.applicationId}- {#if storage.oldPath}- <input- disabled- readonly- class="w-full"- value="{storage.applicationId}{storage.path.replace(/\//gi, '-').replace('-app', '')}"- />- {:else}- <input- disabled- readonly- class="w-full"- value="{storage.applicationId}{storage.path.replace(/\//gi, '-')}"- />- {/if}- {/if}- <input- disabled={!isNew}- readonly={!isNew}- class="w-full"- bind:value={storage.path}- required- placeholder="eg: /data"- />-- <div class="flex items-center justify-center">- {#if isNew}- <div class="w-full lg:w-64">- <button class="btn btn-sm btn-primary w-full" on:click={() => saveStorage(true)}- >Add</button- >- </div>- {:else}- <div class="flex justify-center">- <button class="btn btn-sm btn-error" on:click={removeStorage}>Remove</button>- </div>- {/if}- </div>- </div>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/usage/+page.svelte b/apps/trpc-experimental/client/src/routes/applications/[id]/usage/+page.sveltedeleted file mode 100644index 446f5abf51..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/usage/+page.svelte+++ /dev/null@@ -1,116 +0,0 @@-<script lang="ts">- import type { PageParentData } from './$types';-- export let data: PageParentData;- let application: any = data.application.data;- import { page } from '$app/stores';- import { onDestroy, onMount } from 'svelte';- import Tooltip from '$lib/components/Tooltip.svelte';- import { trpc } from '$lib/store';-- const { id } = $page.params;- let services: any = [];- let selectedService: any = null;- let usageLoading = false;- let usage = {- MemUsage: 0,- CPUPerc: 0,- NetIO: 0- };- let usageInterval: any;-- async function getUsage() {- if (usageLoading) return;- usageLoading = true;- const { data } = await trpc.applications.getUsage.query({ id, containerId: selectedService });- usage = data.usage;- usageLoading = false;- }- function normalizeDockerServices(services: any[]) {- const tempdockerComposeServices = [];- for (const [name, data] of Object.entries(services)) {- tempdockerComposeServices.push({- name,- data- });- }- return tempdockerComposeServices;- }- async function selectService(service: any, init: boolean = false) {- if (usageInterval) clearInterval(usageInterval);- usageLoading = false;- usage = {- MemUsage: 0,- CPUPerc: 0,- NetIO: 0- };- selectedService = `${application.id}${service.name ? `-${service.name}` : ''}`;-- await getUsage();- usageInterval = setInterval(async () => {- await getUsage();- }, 1000);- }- onDestroy(() => {- clearInterval(usageInterval);- });- onMount(async () => {- if (application.dockerComposeFile && application.buildPack === 'compose') {- services = normalizeDockerServices(JSON.parse(application.dockerComposeFile).services);- } else {- services = [- {- name: ''- }- ];- await selectService('');- }- });-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Monitoring</div>- </div>-</div>-<div class="flex gap-2 lg:gap-8 pb-4">- {#each services as service}- <button- on:click={() => selectService(service, true)}- class:bg-primary={selectedService ===- `${application.id}${service.name ? `-${service.name}` : ''}`}- class:bg-coolgray-200={selectedService !==- `${application.id}${service.name ? `-${service.name}` : ''}`}- class="w-full rounded p-5 hover:bg-primary font-bold"- >- {application.id}{service.name ? `-${service.name}` : ''}</button- >- {/each}-</div>-{#if selectedService}- <div class="mx-auto max-w-4xl px-6 py-4 bg-coolgray-100 border border-coolgray-200 relative">- {#if usageLoading}- <button- id="streaming"- class="btn btn-sm bg-transparent border-none loading absolute top-0 left-0 text-xs"- />- <Tooltip triggeredBy="#streaming">Streaming logs</Tooltip>- {/if}- <div class="text-center">- <div class="stat w-64">- <div class="stat-title">Used Memory / Memory Limit</div>- <div class="stat-value text-xl">{usage?.MemUsage}</div>- </div>-- <div class="stat w-64">- <div class="stat-title">Used CPU</div>- <div class="stat-value text-xl">{usage?.CPUPerc}</div>- </div>-- <div class="stat w-64">- <div class="stat-title">Network IO</div>- <div class="stat-value text-xl">{usage?.NetIO}</div>- </div>- </div>- </div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/applications/[id]/utils.ts b/apps/trpc-experimental/client/src/routes/applications/[id]/utils.tsdeleted file mode 100644index 42c6889d8f..0000000000--- a/apps/trpc-experimental/client/src/routes/applications/[id]/utils.ts+++ /dev/null@@ -1,61 +0,0 @@-import { goto } from '$app/navigation';-import { errorNotification } from '$lib/common';-import { trpc } from '$lib/store';--export async function saveForm(id, application, baseDatabaseBranch, dockerComposeConfiguration) {- let {- name,- buildPack,- fqdn,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- denoMainFile,- denoOptions,- gitCommitHash,- baseImage,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeFileLocation,- simpleDockerfile,- dockerRegistryImageName- } = application;- return await trpc.applications.save.mutate({- id,- name,- buildPack,- fqdn,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- denoMainFile,- denoOptions,- gitCommitHash,- baseImage,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeFileLocation,- simpleDockerfile,- dockerRegistryImageName,- baseDatabaseBranch,- dockerComposeConfiguration: JSON.stringify(dockerComposeConfiguration)- });-}diff --git a/apps/trpc-experimental/client/src/routes/components/NewResource.svelte b/apps/trpc-experimental/client/src/routes/components/NewResource.sveltedeleted file mode 100644index b540f3d124..0000000000--- a/apps/trpc-experimental/client/src/routes/components/NewResource.svelte+++ /dev/null@@ -1,155 +0,0 @@-<script lang="ts">- import { goto } from '$app/navigation';-- async function newApplication() {- // const { id } = await post('/applications/new', {});- return await goto(`/applications/${id}`, { replaceState: true });- }- async function newService() {- // const { id } = await post('/services/new', {});- return await goto(`/services/${id}`, { replaceState: true });- }- async function newDatabase() {- // const { id } = await post('/databases/new', {});- return await goto(`/databases/${id}`, { replaceState: true });- }-</script>--<!-- svelte-ignore a11y-no-noninteractive-tabindex -->-<div class="dropdown dropdown-bottom">- <slot>- <label for="new" tabindex="0" class="btn btn-sm text-sm bg-coollabs hover:bg-coollabs-100 w-64">- <svg- class="h-6 w-6"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- ><path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M12 6v6m0 0v6m0-6h6m-6 0H6"- /></svg- > Create New Resource- </label>- </slot>-- <ul id="new" tabindex="0" class="dropdown-content menu p-2 shadow bg-coolgray-300 rounded w-64">- <li>- <button- on:click={newApplication}- class="no-underline hover:bg-applications tracking-wide font-bold"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentcolor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="4" y="4" width="6" height="6" rx="1" />- <rect x="4" y="14" width="6" height="6" rx="1" />- <rect x="14" y="14" width="6" height="6" rx="1" />- <line x1="14" y1="7" x2="20" y2="7" />- <line x1="17" y1="4" x2="17" y2="10" />- </svg>Application</button- >- </li>- <li>- <button on:click={newService} class="no-underline hover:bg-services tracking-wide font-bold">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-12" />- </svg>Service</button- >- </li>- <li>- <button- on:click={newDatabase}- class="no-underline hover:bg-databases tracking-wide font-bold"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <ellipse cx="12" cy="6" rx="8" ry="3" />- <path d="M4 6v6a8 3 0 0 0 16 0v-6" />- <path d="M4 12v6a8 3 0 0 0 16 0v-6" />- </svg>Database</button- >- </li>- <li>- <a href="/sources/new" class="no-underline hover:bg-sources tracking-wide font-bold">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="6" cy="6" r="2" />- <circle cx="18" cy="18" r="2" />- <path d="M11 6h5a2 2 0 0 1 2 2v8" />- <polyline points="14 9 11 6 14 3" />- <path d="M13 18h-5a2 2 0 0 1 -2 -2v-8" />- <polyline points="10 15 13 18 10 21" />- </svg>Git Source</a- >- </li>- <li>- <a- href="/destinations/new"- class="no-underline hover:bg-destinations tracking-wide font-bold"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M22 12.54c-1.804 -.345 -2.701 -1.08 -3.523 -2.94c-.487 .696 -1.102 1.568 -.92 2.4c.028 .238 -.32 1.002 -.557 1h-14c0 5.208 3.164 7 6.196 7c4.124 .022 7.828 -1.376 9.854 -5c1.146 -.101 2.296 -1.505 2.95 -2.46z"- />- <path d="M5 10h3v3h-3z" />- <path d="M8 10h3v3h-3z" />- <path d="M11 10h3v3h-3z" />- <path d="M8 7h3v3h-3z" />- <path d="M11 7h3v3h-3z" />- <path d="M11 4h3v3h-3z" />- <path d="M4.571 18c1.5 0 2.047 -.074 2.958 -.78" />- <line x1="10" y1="16" x2="10" y2="16.01" />- </svg>Destination</a- >- </li>- </ul>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.sveltedeleted file mode 100644index 6663170922..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.svelte+++ /dev/null@@ -1,305 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';- export let data: LayoutData;- let database = data.database.data.database;-- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import { appSession, status, isDeploymentEnabled, trpc } from '$lib/store';- import * as Icons from '$lib/components/icons';- import { onDestroy, onMount } from 'svelte';- import Tooltip from '$lib/components/Tooltip.svelte';- import DatabaseLinks from './components/DatabaseLinks.svelte';- const { id } = $page.params;-- $status.database.isPublic = database.settings.isPublic || false;- let statusInterval: any = false;- let forceDelete = false;-- $isDeploymentEnabled = !$appSession.isAdmin;-- async function deleteDatabase(force: boolean) {- const sure = confirm(`Are you sure you would like to delete '${database.name}'?`);- if (sure) {- $status.database.initialLoading = true;- try {- await trpc.databases.delete.mutate({ id, force });- return await window.location.assign('/');- } catch (error) {- return errorNotification(error);- } finally {- $status.database.initialLoading = false;- }- }- }- async function stopDatabase() {- const sure = confirm(- "Are you sure you want to stop this database? You won't be able to access it until you start it again."- );- if (sure) {- $status.database.initialLoading = true;- $status.database.loading = true;- try {- await trpc.databases.stop.mutate({ id });- $status.database.isPublic = false;- } catch (error) {- return errorNotification(error);- } finally {- $status.database.initialLoading = false;- $status.database.loading = false;- await getStatus();- }- }- }- async function startDatabase() {- $status.database.initialLoading = true;- $status.database.loading = true;- try {- await trpc.databases.start.mutate({ id });- } catch (error) {- return errorNotification(error);- } finally {- $status.database.initialLoading = false;- $status.database.loading = false;- await getStatus();- }- }- async function getStatus() {- if ($status.database.loading) return;- $status.database.loading = true;- const { data } = await trpc.databases.status.query({ id });- $status.database.isRunning = data.isRunning;- $status.database.initialLoading = false;- $status.database.loading = false;- }- onDestroy(() => {- $status.database.initialLoading = true;- $status.database.isRunning = false;- $status.database.isExited = false;- $status.database.loading = false;- clearInterval(statusInterval);- });- onMount(async () => {- $status.database.isRunning = false;- $status.database.loading = false;- if (- database.type &&- database.destinationDockerId &&- database.version &&- database.defaultDatabase- ) {- await getStatus();- statusInterval = setInterval(async () => {- await getStatus();- }, 2000);- } else {- $status.database.initialLoading = false;- }- });-</script>--{#if id !== 'new'}- <nav class="header lg:flex-row flex-col-reverse">- <div class="flex flex-row space-x-2 font-bold pt-10 lg:pt-0">- <div class="flex flex-col items-center justify-center">- <div class="title">- {#if $page.url.pathname === `/databases/${id}`}- Configurations- {:else if $page.url.pathname === `/databases/${id}/logs`}- Database Logs- {:else if $page.url.pathname === `/databases/${id}/configuration/type`}- Select a Database Type- {:else if $page.url.pathname === `/databases/${id}/configuration/version`}- Select a Database Version- {:else if $page.url.pathname === `/databases/${id}/configuration/destination`}- Select a Destination- {/if}- </div>- </div>- <DatabaseLinks {database} />- </div>- <div class="lg:block hidden flex-1" />- <div class="flex flex-row flex-wrap space-x-3 justify-center lg:justify-start lg:py-0">- {#if database.type && database.destinationDockerId && database.version}- {#if $status.database.isExited}- <a- id="exited"- href={!$status.database.isRunning ? `/databases/${id}/logs` : null}- class="icons bg-transparent text-red-500 tooltip-error"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentcolor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M8.7 3h6.6c.3 0 .5 .1 .7 .3l4.7 4.7c.2 .2 .3 .4 .3 .7v6.6c0 .3 -.1 .5 -.3 .7l-4.7 4.7c-.2 .2 -.4 .3 -.7 .3h-6.6c-.3 0 -.5 -.1 -.7 -.3l-4.7 -4.7c-.2 -.2 -.3 -.4 -.3 -.7v-6.6c0 -.3 .1 -.5 .3 -.7l4.7 -4.7c.2 -.2 .4 -.3 .7 -.3z"- />- <line x1="12" y1="8" x2="12" y2="12" />- <line x1="12" y1="16" x2="12.01" y2="16" />- </svg>- </a>- <Tooltip triggeredBy="#exited">{'Service exited with an error!'}</Tooltip>- {/if}- {#if $status.database.initialLoading}- <button class="icons flex animate-spin duration-500 ease-in-out">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5" />- <line x1="5.63" y1="7.16" x2="5.63" y2="7.17" />- <line x1="4.06" y1="11" x2="4.06" y2="11.01" />- <line x1="4.63" y1="15.1" x2="4.63" y2="15.11" />- <line x1="7.16" y1="18.37" x2="7.16" y2="18.38" />- <line x1="11" y1="19.94" x2="11" y2="19.95" />- </svg>- </button>- {:else if $status.database.isRunning}- <button- id="stop"- on:click={stopDatabase}- type="submit"- disabled={!$appSession.isAdmin}- class="icons bg-transparent text-red-500"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="6" y="5" width="4" height="14" rx="1" />- <rect x="14" y="5" width="4" height="14" rx="1" />- </svg>- </button>- <Tooltip triggeredBy="#stop">{'Stop'}</Tooltip>- {:else}- <button- id="start"- on:click={startDatabase}- type="submit"- disabled={!$appSession.isAdmin}- class="icons bg-transparent text-sm flex items-center space-x-2 text-green-500"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M7 4v16l13 -8z" />- </svg>- </button>- <Tooltip triggeredBy="#start">{'Start'}</Tooltip>- {/if}- {/if}- <div class="border border-stone-700 h-8" />- <a- id="configuration"- href="/databases/{id}"- class="hover:text-yellow-500 rounded"- class:text-yellow-500={$page.url.pathname === `/databases/${id}`}- class:bg-coolgray-500={$page.url.pathname === `/databases/${id}`}- >- <button class="icons bg-transparent m text-sm disabled:text-red-500">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="4" y="8" width="4" height="4" />- <line x1="6" y1="4" x2="6" y2="8" />- <line x1="6" y1="12" x2="6" y2="20" />- <rect x="10" y="14" width="4" height="4" />- <line x1="12" y1="4" x2="12" y2="14" />- <line x1="12" y1="18" x2="12" y2="20" />- <rect x="16" y="5" width="4" height="4" />- <line x1="18" y1="4" x2="18" y2="5" />- <line x1="18" y1="9" x2="18" y2="20" />- </svg></button- ></a- >- <Tooltip triggeredBy="#configuration">{'Configuration'}</Tooltip>- <div class="border border-stone-700 h-8" />- <a- id="databaselogs"- href={$status.database.isRunning ? `/databases/${id}/logs` : null}- class="hover:text-pink-500 rounded"- class:text-pink-500={$page.url.pathname === `/databases/${id}/logs`}- class:bg-coolgray-500={$page.url.pathname === `/databases/${id}/logs`}- >- <button disabled={!$status.database.isRunning} class="icons bg-transparent text-sm">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <line x1="3" y1="6" x2="3" y2="19" />- <line x1="12" y1="6" x2="12" y2="19" />- <line x1="21" y1="6" x2="21" y2="19" />- </svg></button- ></a- >- <Tooltip triggeredBy="#databaselogs">{'Logs'}</Tooltip>- {#if forceDelete}- <button- on:click={() => deleteDatabase(true)}- type="submit"- disabled={!$appSession.isAdmin}- class:hover:text-red-500={$appSession.isAdmin}- class="icons bg-transparent text-sm"- >- Force Delete</button- >{:else}- <button- id="delete"- on:click={() => deleteDatabase(false)}- type="submit"- disabled={!$appSession.isAdmin}- class:hover:text-red-500={$appSession.isAdmin}- class="icons bg-transparent text-sm"><Icons.Delete /></button- >- {/if}-- <Tooltip triggeredBy="#delete" placement="left">Delete</Tooltip>- </div>- </nav>-{/if}-<slot />diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.ts b/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.tsdeleted file mode 100644index 5dff433c0c..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/+layout.ts+++ /dev/null@@ -1,48 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';--function checkConfiguration(database: any): string | null {- let configurationPhase = null;- if (!database.type) {- configurationPhase = 'type';- } else if (!database.version) {- configurationPhase = 'version';- } else if (!database.destinationDockerId) {- configurationPhase = 'destination';- }- return configurationPhase;-}--export const load: LayoutLoad = async ({ params, url }) => {- const { pathname } = new URL(url);- const { id } = params;- try {- const database = await trpc.databases.getDatabaseById.query({ id });- if (!database) {- throw redirect(307, '/databases');- }- const configurationPhase = checkConfiguration(database);- console.log({ configurationPhase });- // if (- // configurationPhase &&- // pathname !== `/applications/${params.id}/configuration/${configurationPhase}`- // ) {- // throw redirect(302, `/applications/${params.id}/configuration/${configurationPhase}`);- // }- return {- database- };- } catch (err) {- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/+page.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/+page.sveltedeleted file mode 100644index 1a8e76a217..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/+page.svelte+++ /dev/null@@ -1,62 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';-- export let data: LayoutData;- let database = data.database.data.database;- let privatePort = data.database.data.privatePort;-- import { page } from '$app/stores';- import { onDestroy, onMount } from 'svelte';- import Databases from './components/Databases/Databases.svelte';- import { status, trpc } from '$lib/store';-- const { id } = $page.params;- let loading = {- usage: false- };- let usage = {- MemUsage: 0,- CPUPerc: 0,- NetIO: 0- };- let usageInterval: any;-- async function getUsage() {- if (loading.usage) return;- if (!$status.database.isRunning) return;- loading.usage = true;- const { data } = await trpc.databases.usage.query({ id });- usage = data.usage;- loading.usage = false;- }-- onDestroy(() => {- clearInterval(usageInterval);- });- onMount(async () => {- await getUsage();- usageInterval = setInterval(async () => {- await getUsage();- }, 1500);- });-</script>--<div class="mx-auto max-w-6xl p-5">- <div class="text-center">- <div class="stat w-64">- <div class="stat-title">Used Memory / Memory Limit</div>- <div class="stat-value text-xl">{usage?.MemUsage}</div>- </div>-- <div class="stat w-64">- <div class="stat-title">Used CPU</div>- <div class="stat-value text-xl">{usage?.CPUPerc}</div>- </div>-- <div class="stat w-64">- <div class="stat-title">Network IO</div>- <div class="stat-value text-xl">{usage?.NetIO}</div>- </div>- </div>-</div>-<Databases bind:database {privatePort} />diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/DatabaseLinks.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/DatabaseLinks.sveltedeleted file mode 100644index a3053a174e..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/DatabaseLinks.svelte+++ /dev/null@@ -1,32 +0,0 @@-<script lang="ts">- export let database: any;-- import Clickhouse from '$lib/components/icons/databases/Clickhouse.svelte';- import CouchDb from '$lib/components/icons/databases/CouchDB.svelte';- import EdgeDb from '$lib/components/icons/databases/EdgeDB.svelte';- import MariaDb from '$lib/components/icons/databases/MariaDB.svelte';- import MongoDb from '$lib/components/icons/databases/MongoDB.svelte';- import MySql from '$lib/components/icons/databases/MySQL.svelte';- import PostgreSql from '$lib/components/icons/databases/PostgreSQL.svelte';- import Redis from '$lib/components/icons/databases/Redis.svelte';-</script>--<span class="relative">- {#if database.type === 'clickhouse'}- <Clickhouse />- {:else if database.type === 'couchdb'}- <CouchDb />- {:else if database.type === 'mongodb'}- <MongoDb />- {:else if database.type === 'mysql'}- <MySql />- {:else if database.type === 'mariadb'}- <MariaDb />- {:else if database.type === 'postgresql'}- <PostgreSql />- {:else if database.type === 'redis'}- <Redis />- {:else if database.type === 'edgedb'}- <EdgeDb />- {/if}-</span>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/CouchDb.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/CouchDb.sveltedeleted file mode 100644index e6f9acb28e..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/CouchDb.svelte+++ /dev/null@@ -1,68 +0,0 @@-<script lang="ts">- export let database: any;- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">CouchDB</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="defaultDatabase">Default Database</label>- <CopyPasswordField- required- readonly={database.defaultDatabase}- disabled={database.defaultDatabase}- placeholder="Example: mydb"- id="defaultDatabase"- name="defaultDatabase"- bind:value={database.defaultDatabase}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUser">User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="dbUser"- name="dbUser"- value={database.dbUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUserPassword">Password</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- isPasswordField- id="dbUserPassword"- name="dbUserPassword"- value={database.dbUserPassword}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUser">Root User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="rootUser"- name="rootUser"- value={database.rootUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUserPassword">Root Password</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- isPasswordField- id="rootUserPassword"- name="rootUserPassword"- value={database.rootUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Databases.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Databases.sveltedeleted file mode 100644index 25ccd352b6..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Databases.svelte+++ /dev/null@@ -1,281 +0,0 @@-<script lang="ts">- export let database: any;- export let privatePort: any;-- import { page } from '$app/stores';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Setting from '$lib/components/Setting.svelte';-- import MySql from './MySQL.svelte';- import MongoDb from './MongoDB.svelte';- import MariaDb from './MariaDB.svelte';- import PostgreSql from './PostgreSQL.svelte';- import Redis from './Redis.svelte';- import CouchDb from './CouchDb.svelte';- import EdgeDB from './EdgeDB.svelte';- import { errorNotification } from '$lib/common';- import { addToast, appSession, status, trpc } from '$lib/store';- import Explainer from '$lib/components/Explainer.svelte';-- const { id } = $page.params;-- let loading = {- main: false,- public: false- };- let publicUrl = '';- let appendOnly = database.settings.appendOnly;-- let databaseDefault: any;- let databaseDbUser: any;- let databaseDbUserPassword: any;-- generateDbDetails();-- function generateDbDetails() {- databaseDefault = database.defaultDatabase;- databaseDbUser = database.dbUser;- databaseDbUserPassword = database.dbUserPassword;- if (database.type === 'mongodb' || database.type === 'edgedb') {- if (database.type === 'mongodb') {- databaseDefault = '?readPreference=primary&ssl=false';- }- databaseDbUser = database.rootUser;- databaseDbUserPassword = database.rootUserPassword;- } else if (database.type === 'redis') {- databaseDefault = '';- databaseDbUser = '';- }- }- function generateUrl() {- const ipAddress = () => {- if ($status.database.isPublic) {- if (database.destinationDocker.remoteEngine) {- return database.destinationDocker.remoteIpAddress;- }- if ($appSession.ipv6) {- return $appSession.ipv6;- }- if ($appSession.ipv4) {- return $appSession.ipv4;- }- return '<Cannot determine public IP address>';- } else {- return database.id;- }- };- const user = () => {- if (databaseDbUser) {- return databaseDbUser + ':';- }- return '';- };- const port = () => {- if ($status.database.isPublic) {- return database.publicPort;- } else {- return privatePort;- }- };- publicUrl = `${- database.type- }://${user()}${databaseDbUserPassword}@${ipAddress()}:${port()}/${databaseDefault}`;- }-- async function changeSettings(name: any) {- if (name !== 'appendOnly') {- if (loading.public || !$status.database.isRunning) return;- }- loading.public = true;- let data = {- isPublic: $status.database.isPublic,- appendOnly- };- if (name === 'isPublic') {- data.isPublic = !$status.database.isPublic;- }- if (name === 'appendOnly') {- data.appendOnly = !appendOnly;- }- try {- const { publicPort } = await trpc.databases.saveSettings.mutate({- id,- isPublic: data.isPublic,- appendOnly: data.appendOnly- });-- $status.database.isPublic = data.isPublic;- appendOnly = data.appendOnly;- if ($status.database.isPublic) {- database.publicPort = publicPort;- }- } catch (error) {- return errorNotification(error);- } finally {- loading.public = false;- }- }- async function handleSubmit() {- try {- loading.main = true;- await trpc.databases.save.mutate({- id,- ...database,- isRunning: $status.database.isRunning- });- generateDbDetails();- addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.main = false;- }- }-</script>--<div class="mx-auto max-w-6xl p-4">- <form on:submit|preventDefault={handleSubmit} class="py-4">- <div class="flex space-x-1 pb-5 items-center">- <h1 class="title">General</h1>- {#if $appSession.isAdmin}- <button- type="submit"- class="btn btn-sm"- class:loading={loading.main}- class:bg-databases={!loading.main}- disabled={loading.main}>Save</button- >- {/if}- </div>- <div class="grid gap-2 grid-cols-2 auto-rows-max lg:px-10 px-2">- <label for="name">Name</label>- <input- class="w-full"- readonly={!$appSession.isAdmin}- name="name"- id="name"- bind:value={database.name}- required- />- <label for="destination">Destination</label>- {#if database.destinationDockerId}- <div class="no-underline">- <input- value={database.destinationDocker.name}- id="destination"- disabled- readonly- class="bg-transparent w-full"- />- </div>- {/if}- <label for="version">Version / Tag</label>- <a- href={$appSession.isAdmin && !$status.database.isRunning- ? `/databases/${id}/configuration/version?from=/databases/${id}`- : ''}- class="no-underline"- >- <input- class="w-full"- value={database.version}- readonly- disabled={$status.database.isRunning || $status.database.initialLoading}- class:cursor-pointer={!$status.database.isRunning}- /></a- >- <label for="host">Host</label>- <CopyPasswordField- placeholder="Generated automatically after start"- isPasswordField={false}- readonly- disabled- id="host"- name="host"- value={database.id}- />- <label for="publicPort">Port</label>- <CopyPasswordField- placeholder="Generated automatically after set to public"- id="publicPort"- readonly- disabled- name="publicPort"- value={loading.public- ? 'Loading...'- : $status.database.isPublic- ? database.publicPort- : privatePort}- />- </div>- {#if database.type === 'mysql'}- <MySql bind:database />- {:else if database.type === 'postgresql'}- <PostgreSql bind:database />- {:else if database.type === 'mongodb'}- <MongoDb bind:database />- {:else if database.type === 'mariadb'}- <MariaDb bind:database />- {:else if database.type === 'redis'}- <Redis bind:database />- {:else if database.type === 'couchdb'}- <CouchDb {database} />- {:else if database.type === 'edgedb'}- <EdgeDB {database} />- {/if}- <div class="flex flex-col space-y-2 mt-5">- <div class="grid gap-2 grid-cols-2 auto-rows-max lg:px-10 px-2">- <label for="url"- >Connection String- {#if !$status.database.isPublic && database.destinationDocker.remoteEngine}- <Explainer- explanation="You can only access the database with this URL if your application is deployed to the same Destination."- />- {/if}</label- >- <button class="btn btn-sm" on:click|preventDefault={generateUrl}- >Show Connection String</button- >- </div>- <div class="lg:px-10 px-2">- {#if publicUrl}- <CopyPasswordField- placeholder="Click on the button to generate URL"- id="url"- name="url"- readonly- disabled- value={loading.public ? 'Loading...' : publicUrl}- />- {/if}- </div>- </div>- </form>- <div class="flex space-x-1 pb-5 font-bold">- <h1 class="title">Features</h1>- </div>- <div class="grid gap-2 grid-cols-2 auto-rows-max lg:px-10 px-2">- <Setting- id="isPublic"- loading={loading.public}- bind:setting={$status.database.isPublic}- on:click={() => changeSettings('isPublic')}- title="Set it Public"- description="Your database will be reachable over the internet. <br>Take security seriously in this case!"- disabled={!$status.database.isRunning}- />- {#if database.type === 'redis'}- <Setting- id="appendOnly"- loading={loading.public}- bind:setting={appendOnly}- on:click={() => changeSettings('appendOnly')}- title="Change append only mode"- description="Useful if you would like to restore redis data from a backup.<br><span class=' text-white'>Database restart is required.</span>"- />- {/if}- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/EdgeDB.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/EdgeDB.sveltedeleted file mode 100644index ec04aa03d8..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/EdgeDB.svelte+++ /dev/null@@ -1,50 +0,0 @@-<script lang="ts">- export let database: any;- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <div class="title">EdgeDB</div>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="defaultDatabase">Default Database</label>- <CopyPasswordField- required- readonly={database.defaultDatabase}- disabled={database.defaultDatabase}- placeholder="Example: edgedb"- id="defaultDatabase"- name="defaultDatabase"- bind:value={database.defaultDatabase}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUser">Root User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="rootUser"- name="rootUser"- value={database.rootUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUser"- >Root Password <Explainer- explanation="Could be changed while the database is running."- /></label- >- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- isPasswordField- id="rootUserPassword"- name="rootUserPassword"- value={database.rootUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MariaDB.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MariaDB.sveltedeleted file mode 100644index 1831a6401c..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MariaDB.svelte+++ /dev/null@@ -1,78 +0,0 @@-<script lang="ts">- export let database: any;- import { status } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">MariaDB</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="defaultDatabase"- >Default Database</label- >- <CopyPasswordField- required- readonly={database.defaultDatabase}- disabled={database.defaultDatabase}- placeholder="Example: mydb"- id="defaultDatabase"- name="defaultDatabase"- bind:value={database.defaultDatabase}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUser" >User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="dbUser"- name="dbUser"- value={database.dbUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUserPassword"- >Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="dbUserPassword"- name="dbUserPassword"- bind:value={database.dbUserPassword}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUser" >Root User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="rootUser"- name="rootUser"- value={database.rootUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUserPassword"- >Root Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="rootUserPassword"- name="rootUserPassword"- bind:value={database.rootUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MongoDB.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MongoDB.sveltedeleted file mode 100644index 7f110703e7..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MongoDB.svelte+++ /dev/null@@ -1,38 +0,0 @@-<script lang="ts">- export let database: any;- import { status } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">MongoDB</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="rootUser">Root User</label>- <CopyPasswordField- placeholder="Generated automatically after start"- id="rootUser"- readonly- disabled- name="rootUser"- value={database.rootUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUserPassword"- >Root Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField={true}- id="rootUserPassword"- name="rootUserPassword"- bind:value={database.rootUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MySQL.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MySQL.sveltedeleted file mode 100644index db8df91cd5..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/MySQL.svelte+++ /dev/null@@ -1,76 +0,0 @@-<script lang="ts">- export let database: any;- import { status, appSession } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">MySQL</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="defaultDatabase">Default Database</label>- <CopyPasswordField- required- readonly={database.defaultDatabase}- disabled={database.defaultDatabase}- placeholder="Example: mydb"- id="defaultDatabase"- name="defaultDatabase"- bind:value={database.defaultDatabase}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUser">User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="dbUser"- name="dbUser"- value={database.dbUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUserPassword"- >Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="dbUserPassword"- name="dbUserPassword"- bind:value={database.dbUserPassword}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUser">Root User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="rootUser"- name="rootUser"- value={$appSession.isARM ? 'root' : database.rootUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="rootUserPassword"- >Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="rootUserPassword"- name="rootUserPassword"- bind:value={database.rootUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/PostgreSQL.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/PostgreSQL.sveltedeleted file mode 100644index 8b4589e0d5..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/PostgreSQL.svelte+++ /dev/null@@ -1,68 +0,0 @@-<script lang="ts">- export let database: any;- import { status, appSession } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">PostgreSQL</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="defaultDatabase">Default Database</label>- <CopyPasswordField- required- readonly={database.defaultDatabase}- disabled={database.defaultDatabase}- placeholder="Example: mydb"- id="defaultDatabase"- name="defaultDatabase"- bind:value={database.defaultDatabase}- />- </div>- {#if !$appSession.isARM}- <div class="grid grid-cols-2 items-center">- <label for="rootUser"- >Postgres User Password <Explainer- explanation="Could be changed while the database is running."- /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="rootUserPassword"- name="rootUserPassword"- bind:value={database.rootUserPassword}- />- </div>- {/if}- <div class="grid grid-cols-2 items-center">- <label for="dbUser">User</label>- <CopyPasswordField- readonly- disabled- placeholder="Generated automatically after start"- id="dbUser"- name="dbUser"- value={database.dbUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="dbUserPassword"- >Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="dbUserPassword"- name="dbUserPassword"- bind:value={database.dbUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Redis.svelte b/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Redis.sveltedeleted file mode 100644index 50049d52c0..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/components/Databases/Redis.svelte+++ /dev/null@@ -1,27 +0,0 @@-<script lang="ts">- export let database: any;- import { status } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Explainer from '$lib/components/Explainer.svelte';-</script>--<div class="flex space-x-1 py-5 font-bold">- <h1 class="title">Redis</h1>-</div>-<div class="space-y-2 lg:px-10 px-2">- <div class="grid grid-cols-2 items-center">- <label for="dbUserPassword"- >Password- <Explainer explanation="Could be changed while the database is running." /></label- >- <CopyPasswordField- disabled={!$status.database.isRunning}- readonly={!$status.database.isRunning}- placeholder="Generated automatically after start"- isPasswordField- id="dbUserPassword"- name="dbUserPassword"- bind:value={database.dbUserPassword}- />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/databases/[id]/utils.ts b/apps/trpc-experimental/client/src/routes/databases/[id]/utils.tsdeleted file mode 100644index 2ed88f33da..0000000000--- a/apps/trpc-experimental/client/src/routes/databases/[id]/utils.ts+++ /dev/null@@ -1,37 +0,0 @@-import { errorNotification } from '$lib/common';-import { trpc } from '$lib/store';--type Props = {- isNew: boolean;- name: string;- value: string;- isBuildSecret?: boolean;- isPRMRSecret?: boolean;- isNewSecret?: boolean;- databaseId: string;-};--export async function saveSecret({- isNew,- name,- value,- isNewSecret,- databaseId-}: Props): Promise<void> {- if (!name) return errorNotification('Name is required');- if (!value) return errorNotification('Value is required');- try {- await trpc.databases.saveSecret.mutate({- name,- value,- isNew: isNew || false- });-- if (isNewSecret) {- name = '';- value = '';- }- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.sveltedeleted file mode 100644index 3f6cfa737c..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.svelte+++ /dev/null@@ -1,69 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';- export let data: LayoutData;- let destination = data.destination.destination;-- import { goto } from '$app/navigation';- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import { appSession, trpc } from '$lib/store';- import * as Icons from '$lib/components/icons';- import Tooltip from '$lib/components/Tooltip.svelte';-- const isDestinationDeletable =- (destination?.application.length === 0 &&- destination?.database.length === 0 &&- destination?.service.length === 0) ||- true;-- async function deleteDestination(destination: any) {- if (!isDestinationDeletable) return;- const sure = confirm("Are you sure you want to delete this destination? This can't be undone.");- if (sure) {- try {- await trpc.destinations.delete.mutate({ id: destination.id });- return await goto('/', { replaceState: true });- } catch (error) {- return errorNotification(error);- }- }- }- function deletable() {- if (!isDestinationDeletable) {- return 'Please delete all resources before deleting this.';- }- if ($appSession.isAdmin) {- return "Delete this destination. This can't be undone.";- } else {- return "You don't have permission to delete this destination.";- }- }-</script>--{#if $page.params.id !== 'new'}- <nav class="header lg:flex-row flex-col-reverse">- <div class="flex flex-row space-x-2 font-bold pt-10 lg:pt-0">- <div class="flex flex-col items-center justify-center title">- {#if $page.url.pathname === `/destinations/${$page.params.id}`}- Configurations- {:else if $page.url.pathname.startsWith(`/destinations/${$page.params.id}/configuration/sshkey`)}- Select a SSH Key- {/if}- </div>- </div>- <div class="lg:block hidden flex-1" />- <div class="flex flex-row flex-wrap space-x-3 justify-center lg:justify-start lg:py-0">- <button- id="delete"- on:click={() => deleteDestination(destination)}- type="submit"- disabled={!$appSession.isAdmin && isDestinationDeletable}- class:hover:text-red-500={$appSession.isAdmin && isDestinationDeletable}- class="icons bg-transparent text-sm"- class:text-stone-600={!isDestinationDeletable}><Icons.Delete /></button- >- <Tooltip triggeredBy="#delete">{deletable()}</Tooltip>- </div>- </nav>-{/if}-<slot />diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.ts b/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.tsdeleted file mode 100644index e9cc53efec..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/+layout.ts+++ /dev/null@@ -1,45 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';--function checkConfiguration(destination: any): string | null {- let configurationPhase = null;- if (!destination?.remoteEngine) return configurationPhase;- if (!destination?.sshKey) {- configurationPhase = 'sshkey';- }- return configurationPhase;-}--export const load: LayoutLoad = async ({ params, url }) => {- const { pathname } = new URL(url);- const { id } = params;- try {- const destination = await trpc.destinations.getDestinationById.query({ id });- if (!destination) {- throw redirect(307, '/destinations');- }- const configurationPhase = checkConfiguration(destination);- console.log({ configurationPhase });- // if (- // configurationPhase &&- // pathname !== `/applications/${params.id}/configuration/${configurationPhase}`- // ) {- // throw redirect(302, `/applications/${params.id}/configuration/${configurationPhase}`);- // }- return {- destination- };- } catch (err) {- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/+page.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/+page.sveltedeleted file mode 100644index 6b6716f525..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/+page.svelte+++ /dev/null@@ -1,18 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';-- export let data: LayoutData;- let destination = data.destination.destination;- let settings = data.destination.settings;-- import { page } from '$app/stores';- import New from './components/New.svelte';- import Destination from './components/Destination.svelte';- const { id } = $page.params;-</script>--{#if id === 'new'}- <New />-{:else}- <Destination bind:destination bind:settings />-{/if}diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/Destination.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/Destination.sveltedeleted file mode 100644index 11135717d4..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/Destination.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script lang="ts">- export let destination: any;- export let settings: any;- import LocalDocker from './LocalDocker.svelte';- import RemoteDocker from './RemoteDocker.svelte';-</script>--<div class="mx-auto max-w-6xl px-6">- {#if destination.remoteEngine}- <RemoteDocker bind:destination {settings} />- {:else}- <LocalDocker bind:destination {settings} />- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/LocalDocker.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/LocalDocker.sveltedeleted file mode 100644index 2376885779..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/LocalDocker.svelte+++ /dev/null@@ -1,212 +0,0 @@-<script lang="ts">- export let destination: any;- export let settings: any;-- import { page } from '$app/stores';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import { onMount } from 'svelte';- import { errorNotification } from '$lib/common';- import { addToast, appSession, trpc } from '$lib/store';- import Setting from '$lib/components/Setting.svelte';-- const { id } = $page.params;- let cannotDisable = settings.fqdn && destination.engine === '/var/run/docker.sock';- let loading = {- restart: false,- proxy: false,- save: false- };-- async function handleSubmit() {- loading.save = true;- try {- await trpc.destinations.save.mutate({ ...destination });- addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.save = false;- }- }- onMount(async () => {- loading.proxy = true;- const { isRunning } = await trpc.destinations.status.query({ id });- let proxyUsed = !destination.isCoolifyProxyUsed;- if (isRunning === false && destination.isCoolifyProxyUsed === true) {- try {- await trpc.destinations.saveSettings.mutate({- id,- isCoolifyProxyUsed: proxyUsed,- engine: destination.engine- });-- await stopProxy();- } catch (error) {- return errorNotification(error);- }- } else if (isRunning === true && destination.isCoolifyProxyUsed === false) {- try {- await trpc.destinations.saveSettings.mutate({- id,- isCoolifyProxyUsed: proxyUsed,- engine: destination.engine- });- await startProxy();- destination.isCoolifyProxyUsed = proxyUsed;- } catch (error) {- return errorNotification(error);- } finally {- loading.proxy = false;- }- }- loading.proxy = false;- });- async function changeProxySetting() {- if (!cannotDisable) {- const isProxyActivated = destination.isCoolifyProxyUsed;- if (isProxyActivated) {- const sure = confirm(- `Are you sure you want to ${- destination.isCoolifyProxyUsed ? 'disable' : 'enable'- } Coolify proxy? It will remove the proxy for all configured networks and all deployments on '${- destination.engine- }'! Nothing will be reachable if you do it!`- );- if (!sure) return;- }- destination.isCoolifyProxyUsed = !destination.isCoolifyProxyUsed;- try {- loading.proxy = true;- await trpc.destinations.saveSettings.mutate({- id,- isCoolifyProxyUsed: destination.isCoolifyProxyUsed,- engine: destination.engine- });-- if (isProxyActivated) {- await stopProxy();- } else {- await startProxy();- }- } catch (error) {- return errorNotification(error);- } finally {- loading.proxy = false;- }- }- }- async function stopProxy() {- try {- await trpc.destinations.stopProxy.mutate({ id });- return addToast({- message: 'Coolify proxy stopped.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function startProxy() {- try {- await trpc.destinations.startProxy.mutate({ id });- return addToast({- message: ' Coolify proxy started.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function forceRestartProxy() {- const sure = confirm(- "Are you sure you want to restart the proxy? It will remove the proxy for all configured networks and all deployments on '" +- destination.engine +- "'! Nothing will be reachable if you do it!"- );- if (sure) {- try {- loading.restart = true;- addToast({- message: 'Restarting proxy...',- type: 'success'- });- await trpc.destinations.restartProxy.mutate({- id- });- } catch (error) {- setTimeout(() => {- window.location.reload();- }, 5000);- } finally {- loading.restart = false;- }- }- }-</script>--<form on:submit|preventDefault={handleSubmit} class="py-4">- <div class="flex space-x-2">- <button- type="submit"- class="btn btn-sm"- class:bg-destinations={!loading.save}- class:loading={loading.save}- disabled={loading.save}- >Save- </button>- <button- class="btn btn-sm"- class:loading={loading.restart}- class:bg-error={!loading.restart}- disabled={loading.restart}- on:click|preventDefault={forceRestartProxy}>Force restart proxy</button- >- </div>- <div class="grid gap-2 grid-cols-2 auto-rows-max mt-10 items-center">- <label for="name">Name</label>- <input- class="w-full"- name="name"- placeholder="Name"- disabled={!$appSession.isAdmin}- readonly={!$appSession.isAdmin}- bind:value={destination.name}- />- <label for="engine">Engine</label>- <CopyPasswordField- id="engine"- readonly- disabled- name="engine"- placeholder="Example: /var/run/docker.sock"- value={destination.engine}- />- <label for="network">Netwokr</label>- <CopyPasswordField- id="network"- readonly- disabled- name="network"- placeholder="Default: coolify"- value={destination.network}- />- {#if $appSession.teamId === '0'}- <Setting- id="changeProxySetting"- loading={loading.proxy}- disabled={cannotDisable}- bind:setting={destination.isCoolifyProxyUsed}- on:click={changeProxySetting}- title="Use Coolify Proxy?"- description={`This will install a proxy on the destination to allow you to access your applications and services without any manual configuration.${- cannotDisable- ? '<span class="font-bold text-white">You cannot disable this proxy as FQDN is configured for Coolify.</span>'- : ''- }`}- />- {/if}- </div>-</form>diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/New.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/New.sveltedeleted file mode 100644index 321ee7c707..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/New.svelte+++ /dev/null@@ -1,53 +0,0 @@-<script lang="ts">- import cuid from 'cuid';- import NewLocalDocker from './NewLocalDocker.svelte';- import NewRemoteDocker from './NewRemoteDocker.svelte';- let payload = {};- let selected = 'localDocker';- function setPredefined(type: any) {- selected = type;- switch (type) {- case 'localDocker':- payload = {- name: 'Local Docker',- engine: '/var/run/docker.sock',- remoteEngine: false,- network: cuid(),- isCoolifyProxyUsed: true- };- break;- case 'remoteDocker':- payload = {- name: 'Remote Docker',- remoteEngine: true,- remoteIpAddress: null,- remoteUser: 'root',- remotePort: 22,- network: cuid(),- isCoolifyProxyUsed: true- };- break;- default:- break;- }- }-</script>--<div class="flex space-x-1 p-6 font-bold">- <div class="mr-4 text-2xl tracking-tight">Add New Destination</div>-</div>-<div class="flex-col space-y-2 pb-10 text-center">- <div class="text-xl font-bold text-white">Predefined destinations</div>- <div class="flex justify-center space-x-2">- <button class="btn btn-sm" on:click={() => setPredefined('localDocker')}>Local Docker</button>- <button class="btn btn-sm" on:click={() => setPredefined('remoteDocker')}>Remote Docker</button>- <!-- <button class="w-32" on:click={() => setPredefined('kubernetes')}>Kubernetes</button> -->- </div>-</div>-{#if selected === 'localDocker'}- <NewLocalDocker {payload} />-{:else if selected === 'remoteDocker'}- <NewRemoteDocker {payload} />-{:else}- <div class="text-center font-bold text-4xl py-10">Not implemented yet</div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewLocalDocker.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewLocalDocker.sveltedeleted file mode 100644index 81eb9c0f88..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewLocalDocker.svelte+++ /dev/null@@ -1,72 +0,0 @@-<script lang="ts">- export let payload: any;-- import { goto } from '$app/navigation';- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import Setting from '$lib/components/Setting.svelte';- import { appSession, trpc } from '$lib/store';-- const from = $page.url.searchParams.get('from');- let loading = false;-- async function handleSubmit() {- if (loading) return;- try {- loading = true;- await trpc.destinations.check.query({ network: payload.network });- const { id } = await trpc.destinations.save.mutate({ id: 'new', ...payload });- return await goto(from || `/destinations/${id}`);- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }-</script>--<div class="flex justify-center px-6 pb-8">- <form on:submit|preventDefault={handleSubmit} class="grid grid-flow-row gap-2 py-4">- <div- class="flex items-start lg:items-center space-x-0 lg:space-x-4 pb-5 flex-col lg:flex-row space-y-4 lg:space-y-0"- >- <div class="title font-bold">Configuration</div>- <button- type="submit"- class="btn btn-sm bg-destinations w-full lg:w-fit"- class:loading- disabled={loading}- >{loading ? (payload.isCoolifyProxyUsed ? 'Saving...' : 'Saving...') : 'Save'}</button- >- </div>- <div class="mt-2 grid grid-cols-2 items-center lg:pl-10">- <label for="name" class="text-base font-bold text-stone-100">Name</label>- <input required name="name" placeholder="Name" bind:value={payload.name} />- </div>-- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="engine" class="text-base font-bold text-stone-100">Engine</label>- <input- required- name="engine"- placeholder="Example: /var/run/docker.sock"- bind:value={payload.engine}- />- </div>- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="network" class="text-base font-bold text-stone-100">Network</label>- <input required name="network" placeholder="Default: coolify" bind:value={payload.network} />- </div>- {#if $appSession.teamId === '0'}- <div class="grid grid-cols-2 items-center lg:pl-10">- <Setting- id="changeProxySetting"- bind:setting={payload.isCoolifyProxyUsed}- on:click={() => (payload.isCoolifyProxyUsed = !payload.isCoolifyProxyUsed)}- title="Use Coolify Proxy?"- description={'This will install a proxy on the destination to allow you to access your applications and services without any manual configuration.'}- />- </div>- {/if}- </form>-</div>diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewRemoteDocker.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewRemoteDocker.sveltedeleted file mode 100644index 5fed699d5b..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/NewRemoteDocker.svelte+++ /dev/null@@ -1,104 +0,0 @@-<script lang="ts">- export let payload: any;-- import { goto } from '$app/navigation';- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import SimpleExplainer from '$lib/components/SimpleExplainer.svelte';- import Setting from '$lib/components/Setting.svelte';- import { trpc } from '$lib/store';-- const from = $page.url.searchParams.get('from');- let loading = false;-- async function handleSubmit() {- if (loading) return;- try {- loading = true;- await trpc.destinations.check.query({ network: payload.network });- const { id } = await trpc.destinations.save.mutate({ id: 'new', ...payload });- return await goto(from || `/destinations/${id}`);- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }-</script>--<div class="text-center flex justify-center">- <SimpleExplainer- customClass="max-w-[32rem]"- text="Remote Docker Engines are using <span class='text-white font-bold'>SSH</span> to communicate with the remote docker engine.- You need to setup an <span class='text-white font-bold'>SSH key</span> in advance on the server and install Docker.- <br>See <a class='text-white' href='https://docs.coollabs.io/coolify/destinations#remote-docker-engine' target='blank'>docs</a> for more details."- />-</div>-<div class="flex justify-center px-6 pb-8">- <form on:submit|preventDefault={handleSubmit} class="grid grid-flow-row gap-2 py-4">- <div class="flex items-start lg:items-center space-x-0 lg:space-x-4 pb-5 flex-col lg:flex-row space-y-4 lg:space-y-0">- <div class="title font-bold">Configuration</div>- <button type="submit" class="btn btn-sm bg-destinations w-full lg:w-fit" class:loading disabled={loading}- >{loading- ? payload.isCoolifyProxyUsed- ? 'Saving...'- : 'Saving...'- : "Save"}</button- >- </div>- <div class="mt-2 grid grid-cols-2 items-center lg:pl-10">- <label for="name" class="text-base font-bold text-stone-100">Name</label>- <input required name="name" placeholder="Name" bind:value={payload.name} />- </div>-- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="remoteIpAddress" class="text-base font-bold text-stone-100"- >IP Address</label- >- <input- required- name="remoteIpAddress"- placeholder="Example: 192.168..."- bind:value={payload.remoteIpAddress}- />- </div>-- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="remoteUser" class="text-base font-bold text-stone-100">User</label>- <input- required- name="remoteUser"- placeholder="Example: root"- bind:value={payload.remoteUser}- />- </div>-- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="remotePort" class="text-base font-bold text-stone-100">Port</label>- <input- required- name="remotePort"- placeholder="Example: 22"- bind:value={payload.remotePort}- />- </div>- <div class="grid grid-cols-2 items-center lg:pl-10">- <label for="network" class="text-base font-bold text-stone-100">Network</label>- <input- required- name="network"- placeholder="Default: coolify"- bind:value={payload.network}- />- </div>- <div class="grid grid-cols-2 items-center lg:pl-10">- <Setting- id="isCoolifyProxyUsed"- bind:setting={payload.isCoolifyProxyUsed}- on:click={() => (payload.isCoolifyProxyUsed = !payload.isCoolifyProxyUsed)}- title="Use Coolify Proxy?"- description={'This will install a proxy on the destination to allow you to access your applications and services without any manual configuration.'}- />- </div>- </form>-</div>diff --git a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/RemoteDocker.svelte b/apps/trpc-experimental/client/src/routes/destinations/[id]/components/RemoteDocker.sveltedeleted file mode 100644index f67fab14e7..0000000000--- a/apps/trpc-experimental/client/src/routes/destinations/[id]/components/RemoteDocker.svelte+++ /dev/null@@ -1,279 +0,0 @@-<script lang="ts">- export let destination: any;- export let settings: any;-- import { page } from '$app/stores';- import Setting from '$lib/components/Setting.svelte';- import { get, post } from '$lib/api';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import { onMount } from 'svelte';- import { t } from '$lib/translations';- import { errorNotification } from '$lib/common';- import { addToast, appSession } from '$lib/store';-- const { id } = $page.params;-- let cannotDisable = settings.fqdn && destination.engine === '/var/run/docker.sock';- let loading = {- restart: false,- proxy: true,- save: false,- verify: false- };-- $: isDisabled = !$appSession.isAdmin;-- async function handleSubmit() {- loading.save = true;- try {- await post(`/destinations/${id}`, { ...destination });- addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.save = false;- }- }- onMount(async () => {- if (destination.remoteEngine && destination.remoteVerified) {- loading.proxy = true;- const { isRunning } = await get(`/destinations/${id}/status`);- if (isRunning === false && destination.isCoolifyProxyUsed === true) {- destination.isCoolifyProxyUsed = !destination.isCoolifyProxyUsed;- try {- await post(`/destinations/${id}/settings`, {- isCoolifyProxyUsed: destination.isCoolifyProxyUsed,- engine: destination.engine- });- await stopProxy();- } catch (error) {- return errorNotification(error);- }- } else if (isRunning === true && destination.isCoolifyProxyUsed === false) {- destination.isCoolifyProxyUsed = !destination.isCoolifyProxyUsed;- try {- await post(`/destinations/${id}/settings`, {- isCoolifyProxyUsed: destination.isCoolifyProxyUsed,- engine: destination.engine- });- await startProxy();- } catch (error) {- return errorNotification(error);- }- }- }-- loading.proxy = false;- });- async function changeProxySetting() {- if (!destination.remoteVerified) return;- loading.proxy = true;- if (!cannotDisable) {- const isProxyActivated = destination.isCoolifyProxyUsed;- if (isProxyActivated) {- const sure = confirm(- `Are you sure you want to ${- destination.isCoolifyProxyUsed ? 'disable' : 'enable'- } Coolify proxy? It will remove the proxy for all configured networks and all deployments! Nothing will be reachable if you do it!`- );- if (!sure) {- loading.proxy = false;- return;- }- }- let proxyUsed = !destination.isCoolifyProxyUsed;- try {- await post(`/destinations/${id}/settings`, {- isCoolifyProxyUsed: proxyUsed,- engine: destination.engine- });- if (isProxyActivated) {- await stopProxy();- } else {- await startProxy();- }- destination.isCoolifyProxyUsed = proxyUsed;- } catch (error) {- return errorNotification(error);- } finally {- loading.proxy = false;- }- }- }- async function stopProxy() {- try {- await post(`/destinations/${id}/stop`, { engine: destination.engine });- return addToast({- message: $t('destination.coolify_proxy_stopped'),- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function startProxy() {- try {- await post(`/destinations/${id}/start`, { engine: destination.engine });- return addToast({- message: $t('destination.coolify_proxy_started'),- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function forceRestartProxy() {- const sure = confirm($t('destination.confirm_restart_proxy'));- if (sure) {- try {- loading.restart = true;- addToast({- message: $t('destination.coolify_proxy_restarting'),- type: 'success'- });- await post(`/destinations/${id}/restart`, {- engine: destination.engine,- fqdn: settings.fqdn- });- } catch (error) {- setTimeout(() => {- window.location.reload();- }, 5000);- } finally {- loading.restart = false;- }- }- }- async function verifyRemoteDocker() {- try {- loading.verify = true;- await post(`/destinations/${id}/verify`, {});- destination.remoteVerified = true;- return addToast({- message: 'Remote Docker Engine verified!',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.verify = false;- }- }-</script>--<form on:submit|preventDefault={handleSubmit} class="grid grid-flow-row gap-2 py-4">- <div class="flex space-x-1 pb-5">- {#if $appSession.isAdmin}- <button- type="submit"- class="btn btn-sm"- class:loading={loading.save}- class:bg-destinations={!loading.save}- disabled={loading.save}- >{$t('forms.save')}- </button>- <button- disabled={loading.verify}- class="btn btn-sm"- class:loading={loading.verify}- on:click|preventDefault|stopPropagation={verifyRemoteDocker}- >{!destination.remoteVerified- ? 'Verify Remote Docker Engine'- : 'Check Remote Docker Engine'}</button- >- {#if destination.remoteVerified}- <button- class="btn btn-sm"- class:loading={loading.restart}- class:bg-error={!loading.restart}- disabled={loading.restart}- on:click|preventDefault={forceRestartProxy}- >{$t('destination.force_restart_proxy')}</button- >- {/if}- {/if}- </div>- <div class="grid grid-cols-2 items-center px-10 ">- <label for="name">{$t('forms.name')}</label>- <input- name="name"- class="w-full"- placeholder={$t('forms.name')}- disabled={!$appSession.isAdmin}- readonly={!$appSession.isAdmin}- bind:value={destination.name}- />- </div>- <div class="grid grid-cols-2 items-center px-10">- <label for="network">{$t('forms.network')}</label>- <CopyPasswordField- id="network"- readonly- disabled- name="network"- placeholder="{$t('forms.default')}: coolify"- value={destination.network}- />- </div>- <div class="grid grid-cols-2 items-center px-10">- <label for="remoteIpAddress">IP Address</label>- <CopyPasswordField- id="remoteIpAddress"- readonly- disabled- name="remoteIpAddress"- value={destination.remoteIpAddress}- />- </div>- <div class="grid grid-cols-2 items-center px-10">- <label for="remoteUser">User</label>- <CopyPasswordField- id="remoteUser"- readonly- disabled- name="remoteUser"- value={destination.remoteUser}- />- </div>- <div class="grid grid-cols-2 items-center px-10">- <label for="remotePort">Port</label>- <CopyPasswordField- id="remotePort"- readonly- disabled- name="remotePort"- value={destination.remotePort}- />- </div>- <div class="grid grid-cols-2 items-center px-10">- <label for="sshKey">SSH Key</label>- <a- href={!isDisabled ? `/destinations/${id}/configuration/sshkey?from=/destinations/${id}` : ''}- class="no-underline"- ><input- value={destination.sshKey.name}- readonly- id="sshKey"- class="cursor-pointer w-full"- /></a- >- </div>- <div class="grid grid-cols-2 items-center px-10">- <Setting- id="changeProxySetting"- disabled={cannotDisable || !destination.remoteVerified}- loading={loading.proxy}- bind:setting={destination.isCoolifyProxyUsed}- on:click={changeProxySetting}- title={$t('destination.use_coolify_proxy')}- description={`Install & configure a proxy (based on Traefik) on the destination to allow you to access your applications and services without any manual configuration.${- cannotDisable- ? '<span class="font-bold text-white">You cannot disable this proxy as FQDN is configured for Coolify.</span>'- : ''- }`}- />- </div>-</form>diff --git a/apps/trpc-experimental/client/src/routes/login/+page.svelte b/apps/trpc-experimental/client/src/routes/login/+page.sveltedeleted file mode 100644index 07cbd17d6e..0000000000--- a/apps/trpc-experimental/client/src/routes/login/+page.svelte+++ /dev/null@@ -1,123 +0,0 @@-<script lang="ts">- import { browser } from '$app/environment';- import Cookies from 'js-cookie';- import { goto } from '$app/navigation';- import { errorNotification } from '$lib/common';- import { appSession, loginEmail, trpc } from '$lib/store';- import { onMount } from 'svelte';- let loading = false;- let emailEl: HTMLInputElement;- let email: string, password: string;-- onMount(async () => {- if ($appSession.userId) {- return await goto('/');- }- emailEl.focus();- });- async function handleSubmit() {- loading = true;- try {- const { token } = await trpc.auth.login.mutate({ email, password });- Cookies.set('token', token, {- path: '/'- });- return window.location.assign('/');- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }- async function gotoRegister() {- $loginEmail = email?.toLowerCase();- return await goto('/register');- }-</script>--<svelt:head>- <title>Login</title>-</svelt:head>--<div class="flex lg:flex-row flex-col h-screen">- <div class="bg-neutral-focus h-screen lg:flex hidden flex-col justify-end p-20 flex-1">- <h1 class="title lg:text-6xl mb-5 border-gradient">Coolify</h1>- <h3 class="title">Made self-hosting simple.</h3>- </div>- <div class="flex flex-1 flex-col lg:max-w-2xl">- <div class="flex flex-row p-8 items-center space-x-3">- {#if $appSession.whiteLabeledDetails.icon}- <div class="avatar" style="width: 40px; height: 40px">- <img- src={$appSession.whiteLabeledDetails.icon}- alt="Icon for white labeled version of Coolify"- />- </div>- {:else}- <div>- <div class="avatar" style="width: 40px; height: 40px">- <img src="favicon.png" alt="Coolify icon" />- </div>- </div>- <div class="prose">- <h4>Coolify</h4>- </div>- {/if}- </div>- <div- class="w-full md:px-20 lg:px-10 xl:px-20 p-6 flex flex-col h-full justify-center items-center"- >- <div class="mb-5 w-full prose prose-neutral">- <h1 class="m-0 white">Welcome back</h1>- <h5>Please login to continue.</h5>- </div>- <form on:submit|preventDefault={handleSubmit} class="flex flex-col py-4 space-y-3 w-full">- <input- type="email"- name="email"- placeholder="Email"- autocomplete="off"- required- bind:this={emailEl}- bind:value={email}- class="w-full"- />- <input- type="password"- name="password"- placeholder="Password"- bind:value={password}- required- class="w-full"- />-- <div class="flex space-y-3 flex-col pt-3">- <button- type="submit"- disabled={loading}- class="btn"- class:loading- class:bg-coollabs={!loading}>{loading ? 'Authenticating' : 'Login'}</button- >- {#if $appSession.isRegistrationEnabled}- <button on:click|preventDefault={gotoRegister} class="btn btn-ghost">Register</button>- {:else}- <div class="text-stone-600 text-xs">- Registration is disabled. Please ask an admin to activate it.- </div>- {/if}- </div>- </form>- {#if browser && window.location.host === 'demo.coolify.io'}- <div class="pt-5 font-bold">- Registration is <span class="text-pink-500">open</span>, just fill in an email (does not- need to be live email address for the demo instance) and a password.- </div>- <div class="pt-5 font-bold">- All users gets an <span class="text-pink-500">own namespace</span>, so you won't be able- to access other users data.- </div>- {/if}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/register/+page.svelte b/apps/trpc-experimental/client/src/routes/register/+page.sveltedeleted file mode 100644index 37603dc1d9..0000000000--- a/apps/trpc-experimental/client/src/routes/register/+page.svelte+++ /dev/null@@ -1,146 +0,0 @@-<script lang="ts">- export let userCount: number;- import { goto } from '$app/navigation';- import { errorNotification } from '$lib/common';- import { appSession, loginEmail, trpc } from '$lib/store';- import { onMount } from 'svelte';- import Cookies from 'js-cookie';- if (!$appSession.isRegistrationEnabled) {- window.location.assign('/');- }- let loading = false;- let emailEl: HTMLInputElement;- let passwordEl: HTMLInputElement;- let email: string | undefined, password: string, passwordCheck: string;-- onMount(() => {- email = $loginEmail;- if (email) {- passwordEl.focus();- } else {- emailEl.focus();- }- });- async function handleSubmit() {- if (loading) return;-- if (password !== passwordCheck) {- return errorNotification("Passwords don't match");- }- loading = true;- try {- const payload = await trpc.auth.register.mutate({ email, password });- Cookies.set('token', payload.token, {- path: '/'- });- $appSession.teamId = payload.teamId;- $appSession.userId = payload.userId;- $appSession.permission = payload.permission;- $appSession.isAdmin = payload.isAdmin;- return await goto('/');- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }-</script>--<div class="flex lg:flex-row flex-col h-screen">- <div class="bg-neutral-focus h-screen lg:flex hidden flex-col justify-end p-20 flex-1">- <h1 class="title lg:text-6xl mb-5 border-gradient">Coolify</h1>- <h3 class="title">Made self-hosting simple.</h3>- </div>- <div class="flex flex-1 flex-col lg:max-w-2xl">- <div class="flex flex-row p-8 items-center space-x-3 justify-between">- <!-- svelte-ignore a11y-click-events-have-key-events -->- <div class="icons cursor-pointer" on:click={() => goto('/')}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <line x1="5" y1="12" x2="19" y2="12" />- <line x1="5" y1="12" x2="11" y2="18" />- <line x1="5" y1="12" x2="11" y2="6" />- </svg>- </div>- <div class="flex flex-row items-center space-x-3">- {#if $appSession.whiteLabeledDetails.icon}- <div class="avatar" style="width: 40px; height: 40px">- <img- src={$appSession.whiteLabeledDetails.icon}- alt="Icon for white labeled version of Coolify"- />- </div>- {:else}- <div>- <div class="avatar" style="width: 40px; height: 40px">- <img src="favicon.png" alt="Coolify icon" />- </div>- </div>- <div class="prose">- <h4>Coolify</h4>- </div>- {/if}- </div>- </div>- <div- class="w-full md:px-20 lg:px-10 xl:px-20 p-6 flex flex-col h-full justify-center items-center"- >- <div class="mb-5 w-full prose prose-neutral">- <h1 class="m-0 white">Get started</h1>- <h5>Enter the required fields to complete the registration.</h5>- </div>- <form on:submit|preventDefault={handleSubmit} class="flex flex-col py-4 space-y-3 w-full">- <input- type="email"- name="email"- placeholder="Email"- autocomplete="off"- required- bind:this={emailEl}- bind:value={email}- class="w-full"- />- <input- type="password"- name="password"- placeholder="Password"- bind:this={passwordEl}- bind:value={password}- required- class="w-full"- />- <input- type="password"- name="passwordCheck"- placeholder="Confirm password"- bind:value={passwordCheck}- required- class="w-full"- />-- <div class="flex space-y-3 flex-col pt-3">- <button- type="submit"- class="btn"- disabled={loading}- class:bg-transparent={loading}- class:bg-coollabs={!loading}- class:loading>{loading ? 'Registering' : 'Register'}</button- >- </div>- </form>- {#if userCount === 0}- <div class="pt-5">"First user will be admin."</div>- {/if}- </div>- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/+layout.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/+layout.sveltedeleted file mode 100644index f218a664cf..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/+layout.svelte+++ /dev/null@@ -1,366 +0,0 @@-<script lang="ts">- import { page } from '$app/stores';- import { status, trpc } from '$lib/store';- import { onDestroy, onMount } from 'svelte';- import type { LayoutData } from './$types';-- export let data: LayoutData;- const id = $page.params.id;- let service = data.service;- let template = data.template;- import { errorNotification } from '$lib/common';- import {- appSession,- isDeploymentEnabled,- location,- setLocation,- checkIfDeploymentEnabledServices,- addToast- } from '$lib/store';- import { goto } from '$app/navigation';- import { saveForm } from './utils';- import Menu from './components/Menu.svelte';-- $isDeploymentEnabled = checkIfDeploymentEnabledServices(service);-- let statusInterval: any;-- async function deleteService() {- const sure = confirm('Are you sure you want to delete this service?');- if (sure) {- $status.service.initialLoading = true;- try {- if (service.type && $status.service.isRunning) await trpc.services.stop.mutate({ id });- await trpc.services.delete.mutate({ id });- return await goto('/');- } catch (error) {- return errorNotification(error);- } finally {- $status.service.initialLoading = false;- }- }- }- async function restartService() {- const sure = confirm('Are you sure you want to restart this service?');- if (sure) {- await stopService(true);- await startService();- }- }- async function stopService(skip = false) {- if (skip) {- $status.service.initialLoading = true;- $status.service.loading = true;- try {- await trpc.services.stop.mutate({ id });- if (service.type.startsWith('wordpress')) {- await trpc.services.wordpress.mutate({ id, ftpEnabled: false });- service.wordpress?.ftpEnabled && window.location.reload();- }- } catch (error) {- return errorNotification(error);- } finally {- $status.service.initialLoading = false;- $status.service.loading = false;- await getStatus();- }- return;- }- const sure = confirm(- "Are you sure you want to stop this service? You won't be able to access it anymore."- );- if (sure) {- $status.service.initialLoading = true;- $status.service.loading = true;- try {- await trpc.services.stop.mutate({ id });- if (service.type.startsWith('wordpress')) {- await trpc.services.wordpress.mutate({ id, ftpEnabled: false });-- service.wordpress?.ftpEnabled && window.location.reload();- }- } catch (error) {- return errorNotification(error);- } finally {- $status.service.initialLoading = false;- $status.service.loading = false;- await getStatus();- }- }- }- async function startService() {- $status.service.initialLoading = true;- $status.service.loading = true;- try {- const form: any = document.getElementById('saveForm');- if (form) {- const formData = new FormData(form);- service = await saveForm(formData, service);- }- await trpc.services.start.mutate({ id });- } catch (error) {- return errorNotification(error);- } finally {- $status.service.initialLoading = false;- $status.service.loading = false;- await getStatus();- }- }- async function getStatus() {- if ($status.service.loading) return;- $status.service.loading = true;- const data = await trpc.services.status.query({ id });-- $status.service.statuses = data;- let numberOfServices = Object.keys(data).length;-- if (Object.keys($status.service.statuses).length === 0) {- $status.service.overallStatus = 'stopped';- } else {- if (Object.keys($status.service.statuses).length !== numberOfServices) {- $status.service.overallStatus = 'degraded';- } else {- for (const oneService in $status.service.statuses) {- const { isExited, isRestarting, isRunning } = $status.service.statuses[oneService].status;- if (isExited || isRestarting) {- $status.service.overallStatus = 'degraded';- break;- }- if (isRunning) {- $status.service.overallStatus = 'healthy';- }- if (!isExited && !isRestarting && !isRunning) {- $status.service.overallStatus = 'stopped';- }- }- }- }- $status.service.loading = false;- $status.service.initialLoading = false;- }- onDestroy(() => {- $status.service.initialLoading = true;- $status.service.loading = false;- $status.service.statuses = [];- $status.service.overallStatus = 'stopped';- $location = null;- $isDeploymentEnabled = false;- clearInterval(statusInterval);- });- onMount(async () => {- setLocation(service);- $status.service.loading = false;- if ($isDeploymentEnabled) {- await getStatus();- statusInterval = setInterval(async () => {- await getStatus();- }, 2000);- } else {- $status.service.initialLoading = false;- }- });-</script>--<div class="mx-auto max-w-screen-2xl px-6 grid grid-cols-1 lg:grid-cols-2">- <nav class="header flex flex-col lg:flex-row order-2 lg:order-1 px-0 lg:px-4 items-start">- <div class="title lg:pb-10">- <div class="flex justify-center items-center space-x-2">- <div>- {#if $page.url.pathname === `/services/${id}/configuration/type`}- Select a Service Type- {:else if $page.url.pathname === `/services/${id}/configuration/version`}- Select a Service Version- {:else if $page.url.pathname === `/services/${id}/configuration/destination`}- Select a Destination- {:else}- <div class="flex justify-center items-center space-x-2">- <div>Configurations</div>- <div- class="badge badge-lg rounded uppercase"- class:text-green-500={$status.service.overallStatus === 'healthy'}- class:text-yellow-400={$status.service.overallStatus === 'degraded'}- class:text-red-500={$status.service.overallStatus === 'stopped'}- >- {$status.service.overallStatus === 'healthy'- ? 'Healthy'- : $status.service.overallStatus === 'degraded'- ? 'Degraded'- : 'Stopped'}- </div>- </div>- {/if}- </div>- </div>- </div>- <div class="flex flex-row space-x-2 lg:px-2">- {#if $page.url.pathname.startsWith(`/services/${id}/configuration/`)}- <button- on:click={() => deleteService()}- disabled={!$appSession.isAdmin}- class:bg-red-600={$appSession.isAdmin}- class:hover:bg-red-500={$appSession.isAdmin}- class="btn btn-sm btn-error text-sm"- >- Delete Service- </button>- {/if}- </div>- </nav>- <div- class="pt-4 flex flex-row items-start justify-center lg:justify-end space-x-2 order-1 lg:order-2"- >- {#if $status.service.initialLoading}- <button class="btn btn-ghost btn-sm gap-2">- <svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6 animate-spin duration-500 ease-in-out"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M9 4.55a8 8 0 0 1 6 14.9m0 -4.45v5h5" />- <line x1="5.63" y1="7.16" x2="5.63" y2="7.17" />- <line x1="4.06" y1="11" x2="4.06" y2="11.01" />- <line x1="4.63" y1="15.1" x2="4.63" y2="15.11" />- <line x1="7.16" y1="18.37" x2="7.16" y2="18.38" />- <line x1="11" y1="19.94" x2="11" y2="19.95" />- </svg>- {$status.service.startup[id] || 'Loading...'}- </button>- {:else if $status.service.overallStatus === 'healthy'}- <button- disabled={!$isDeploymentEnabled || !$appSession.isAdmin}- class="btn btn-sm gap-2"- on:click={() => restartService()}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M16.3 5h.7a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h5l-2.82 -2.82m0 5.64l2.82 -2.82"- transform="rotate(-45 12 12)"- />- </svg>-- Force Redeploy- </button>- <button- on:click={() => stopService(false)}- type="submit"- disabled={!$isDeploymentEnabled || !$appSession.isAdmin}- class="btn btn-sm gap-2"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-error "- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="6" y="5" width="4" height="14" rx="1" />- <rect x="14" y="5" width="4" height="14" rx="1" />- </svg>- Stop- </button>- {:else if $status.service.overallStatus === 'degraded'}- <button- on:click={() => stopService()}- type="submit"- disabled={!$isDeploymentEnabled || !$appSession.isAdmin}- class="btn btn-sm gap-2"- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-error"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <rect x="6" y="5" width="4" height="14" rx="1" />- <rect x="14" y="5" width="4" height="14" rx="1" />- </svg> Stop- </button>- {:else if $status.service.overallStatus === 'stopped'}- {#if $status.service.overallStatus === 'degraded'}- <button- class="btn btn-sm gap-2"- disabled={!$isDeploymentEnabled || !$appSession.isAdmin}- on:click={() => restartService()}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M16.3 5h.7a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h5l-2.82 -2.82m0 5.64l2.82 -2.82"- transform="rotate(-45 12 12)"- />- </svg>- {$status.application.statuses.length === 1 ? 'Force Redeploy' : 'Redeploy Stack'}- </button>- {:else if $status.service.overallStatus === 'stopped'}- <button- class="btn btn-sm gap-2"- disabled={!$isDeploymentEnabled || !$appSession.isAdmin}- on:click={() => startService()}- >- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 text-pink-500"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M7 4v16l13 -8z" />- </svg>- Deploy- </button>- {/if}- {/if}- </div>-</div>--<div- class="mx-auto max-w-screen-2xl px-0 lg:px-10 grid grid-cols-1"- class:lg:grid-cols-4={!$page.url.pathname.startsWith(`/services/${id}/configuration/`)}->- {#if !$page.url.pathname.startsWith(`/services/${id}/configuration/`)}- <nav class="header flex flex-col lg:pt-0 ">- <Menu {service} {template} />- </nav>- {/if}- <div class="pt-0 col-span-0 lg:col-span-3 pb-24 px-4 lg:px-0">- <slot />- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/+layout.ts b/apps/trpc-experimental/client/src/routes/services/[id]/+layout.tsdeleted file mode 100644index 9027326c5f..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/+layout.ts+++ /dev/null@@ -1,46 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';--function checkConfiguration(service: any): string | null {- let configurationPhase = null;- if (!service.type) {- configurationPhase = 'type';- } else if (!service.destinationDockerId) {- configurationPhase = 'destination';- }- return configurationPhase;-}--export const load: LayoutLoad = async ({ params, url }) => {- const { pathname } = new URL(url);- const { id } = params;- try {- const service = await trpc.services.getServices.query({ id });- if (!service) {- throw redirect(307, '/services');- }- const configurationPhase = checkConfiguration(service);- console.log({ configurationPhase });- // if (- // configurationPhase &&- // pathname !== `/applications/${params.id}/configuration/${configurationPhase}`- // ) {- // throw redirect(302, `/applications/${params.id}/configuration/${configurationPhase}`);- // }- return {- ...service.data- };- } catch (err) {- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/+page.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/+page.sveltedeleted file mode 100644index 2dd38eadb9..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/+page.svelte+++ /dev/null@@ -1,562 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let service = data.service;- let template = data.template;- let tags = data.tags;- import cuid from 'cuid';- import { onMount } from 'svelte';- import { page } from '$app/stores';-- import { errorNotification, getDomain } from '$lib/common';- import {- appSession,- status,- setLocation,- addToast,- checkIfDeploymentEnabledServices,- isDeploymentEnabled- } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Setting from '$lib/components/Setting.svelte';-- import DocLink from '$lib/components/DocLink.svelte';- import Explainer from '$lib/components/Explainer.svelte';- import ServiceStatus from './components/ServiceStatus.svelte';- import { saveForm } from './utils';- import Select from 'svelte-select';- import Wordpress from './components/Wordpress.svelte';- import { browser } from '$app/environment';-- const { id } = $page.params;- let hostPorts = Object.keys(template).filter((key) => {- if (template[key]?.hostPorts?.length > 0) {- return true;- }- });- $: isDisabled =- !$appSession.isAdmin ||- $status.service.overallStatus === 'degraded' ||- $status.service.overallStatus === 'healthy' ||- $status.service.initialLoading;-- let forceSave = false;- let loading = {- save: false,- verification: false,- cleanup: false- };- let dualCerts = service.dualCerts;-- let nonWWWDomain = service.fqdn && getDomain(service.fqdn).replace(/^www\./, '');- let isNonWWWDomainOK = false;- let isWWWDomainOK = false;-- function containerClass() {- return 'text-white bg-transparent font-thin px-0 w-full border border-dashed border-coolgray-200';- }- async function isDNSValid(domain: any, isWWW: any) {- try {- // await get(`/services/${id}/check?domain=${domain}`);- addToast({- message: 'DNS configuration is valid.',- type: 'success'- });- isWWW ? (isWWWDomainOK = true) : (isNonWWWDomainOK = true);- return true;- } catch (error) {- errorNotification(error);- isWWW ? (isWWWDomainOK = false) : (isNonWWWDomainOK = false);- return false;- }- }-- async function handleSubmit(e: any) {- if (loading.save) return;- loading.save = true;- try {- const formData = new FormData(e.target);- // await post(`/services/${id}/check`, {- // fqdn: service.fqdn,- // forceSave,- // dualCerts,- // exposePort: service.exposePort- // });- for (const setting of service.serviceSetting) {- if (setting.variableName?.startsWith('$$config_coolify_fqdn') && setting.value) {- for (let field of formData) {- const [key, value] = field;- if (setting.name === key) {- if (setting.value !== value) {- // await post(`/services/${id}/check`, {- // fqdn: value,- // otherFqdn: true- // });- }- }- }- }- }-- if (formData) service = await saveForm(formData, service);- setLocation(service);- forceSave = false;- $isDeploymentEnabled = checkIfDeploymentEnabledServices(service);- return addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- //@ts-ignore- if (error?.message.startsWith('DNS not set')) {- forceSave = true;- if (dualCerts) {- isNonWWWDomainOK = await isDNSValid(getDomain(nonWWWDomain), false);- isWWWDomainOK = await isDNSValid(getDomain(`www.${nonWWWDomain}`), true);- } else {- const isWWW = getDomain(service.fqdn).includes('www.');- if (isWWW) {- isWWWDomainOK = await isDNSValid(getDomain(`www.${nonWWWDomain}`), true);- } else {- isNonWWWDomainOK = await isDNSValid(getDomain(nonWWWDomain), false);- }- }- }- return errorNotification(error);- } finally {- loading.save = false;- }- }- async function setEmailsToVerified() {- loading.verification = true;- try {- // await post(`/services/${id}/${service.type}/activate`, { id: service.id });- return addToast({- message: 'Emails have been verified.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.verification = false;- }- }- async function migrateAppwriteDB() {- loading.verification = true;- try {- // await post(`/services/${id}/${service.type}/migrate`, { id: service.id });- return addToast({- message: "Appwrite's database has been migrated.",- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.verification = false;- }- }- async function changeSettings(name: any) {- if (!$appSession.isAdmin) return;- try {- if (name === 'dualCerts') {- dualCerts = !dualCerts;- }- // await post(`/services/${id}/settings`, { dualCerts });- return addToast({- message: 'Settings updated.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }- async function cleanupLogs() {- loading.cleanup = true;- try {- // await post(`/services/${id}/${service.type}/cleanup`, { id: service.id });- return addToast({- message: 'Cleared unnecessary database logs.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading.cleanup = false;- }- }- async function selectTag(event: any) {- service.version = event.detail.value;- }- onMount(async () => {- if (browser && window.location.hostname === 'demo.coolify.io' && !service.fqdn) {- service.fqdn = `http://${cuid()}.demo.coolify.io`;- // if (service.type === 'wordpress') {- // service.wordpress.mysqlDatabase = 'db';- // }- // if (service.type === 'plausibleanalytics') {- // service.plausibleAnalytics.email = '[email protected]';- // service.plausibleAnalytics.username = 'admin';- // }- // if (service.type === 'minio') {- // service.minio.apiFqdn = `http://${cuid()}.demo.coolify.io`;- // }- // if (service.type === 'ghost') {- // service.ghost.mariadbDatabase = 'db';- // }- // if (service.type === 'fider') {- // service.fider.emailNoreply = '[email protected]';- // }- // await handleSubmit();- }- });-</script>--<div class="w-full">- <form id="saveForm" on:submit|preventDefault={handleSubmit}>- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3 ">General</div>- {#if $appSession.isAdmin}- <button- type="submit"- class="btn btn-sm"- class:bg-orange-600={forceSave}- class:hover:bg-orange-400={forceSave}- class:loading={loading.save}- class:btn-primary={!loading.save}- disabled={loading.save}- >{loading.save ? 'Saving...' : forceSave ? 'Continue' : 'Force Save'}</button- >- {/if}- {#if service.type === 'plausibleanalytics' && $status.service.overallStatus === 'healthy'}- <button- class="btn btn-sm"- on:click|preventDefault={setEmailsToVerified}- disabled={loading.verification}- class:loading={loading.verification}- >{loading.verification ? 'Verifying...' : 'Verify without SMTP'}</button- >- <button- class="btn btn-sm"- on:click|preventDefault={cleanupLogs}- disabled={loading.cleanup}- class:loading={loading.cleanup}>Cleanup Unnecessary Database Logs</button- >- {/if}- {#if service.type === 'appwrite' && $status.service.overallStatus === 'healthy'}- <button- class="btn btn-sm"- on:click|preventDefault={migrateAppwriteDB}- disabled={loading.verification}- class:loading={loading.verification}- >{loading.verification- ? 'Migrating... it may take a while...'- : "Migrate Appwrite's Database"}</button- >- <div>- <DocLink url="https://appwrite.io/docs/upgrade#run-the-migration" />- </div>- {/if}- </div>- </div>-- <div class="grid grid-flow-row gap-2 px-4">- <div class="mt-2 grid grid-cols-2 items-center">- <label for="name">Name</label>- <input- name="name"- id="name"- class="w-full"- disabled={!$appSession.isAdmin}- bind:value={service.name}- required- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="version">Version / Tag</label>- {#if tags.tags?.length > 0}- <div class="custom-select-wrapper w-full">- <Select- form="saveForm"- containerClasses={isDisabled && containerClass()}- {isDisabled}- id="version"- showIndicator={!isDisabled}- items={[...tags.tags]}- on:select={selectTag}- value={service.version}- isClearable={false}- />- </div>- {:else}- <input class="w-full border-red-500" disabled placeholder="Error getting tags..." />- {/if}- </div>-- <div class="grid grid-cols-2 items-center">- <label for="destination">Destination</label>- <div>- {#if service.destinationDockerId}- <div class="no-underline">- <input- value={service.destinationDocker.name}- id="destination"- disabled- class="bg-transparent w-full"- />- </div>- {/if}- </div>- </div>-- <div class="grid grid-cols-2 items-center">- <label for="fqdn"- >FQDN- <Explainer- explanation={"If you specify <span class='text-settings '>https</span>, the application will be accessible only over https. SSL certificate will be generated for you.<br>If you specify <span class='text-settings '>www</span>, the application will be redirected (302) from non-www and vice versa.<br><br>To modify the domain, you must first stop the application.<br><br><span class='text-white '>You must set your DNS to point to the server IP in advance.</span>"}- />- </label>- <CopyPasswordField- placeholder="eg: https://coollabs.io"- readonly={isDisabled}- disabled={isDisabled}- name="fqdn"- id="fqdn"- pattern="^https?://([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{'{'}2,{'}'}$"- bind:value={service.fqdn}- required- />- </div>- {#each Object.keys(template) as oneService}- {#each template[oneService].fqdns as fqdn}- <div class="grid grid-cols-2 items-center py-1">- <label for={fqdn.name}>{fqdn.label || fqdn.name}</label>- <CopyPasswordField- placeholder="eg: https://coolify.io"- readonly={isDisabled}- disabled={isDisabled}- required={fqdn.required}- name={fqdn.name}- id={fqdn.name}- bind:value={fqdn.value}- />- </div>- {/each}- {/each}- </div>- {#if forceSave}- <div class="flex-col space-y-2 pt-4 text-center">- {#if isNonWWWDomainOK}- <button- class="btn btn-sm bg-green-600 hover:bg-green-500"- on:click|preventDefault={() => isDNSValid(getDomain(nonWWWDomain), false)}- >DNS settings for {nonWWWDomain} is OK, click to recheck.</button- >- {:else}- <button- class="btn btn-sm bg-red-600 hover:bg-red-500"- on:click|preventDefault={() => isDNSValid(getDomain(nonWWWDomain), false)}- >DNS settings for {nonWWWDomain} is invalid, click to recheck.</button- >- {/if}- {#if dualCerts}- {#if isWWWDomainOK}- <button- class="btn btn-sm bg-green-600 hover:bg-green-500"- on:click|preventDefault={() => isDNSValid(getDomain(`www.${nonWWWDomain}`), true)}- >DNS settings for www.{nonWWWDomain} is OK, click to recheck.</button- >- {:else}- <button- class="btn btn-sm bg-red-600 hover:bg-red-500"- on:click|preventDefault={() => isDNSValid(getDomain(`www.${nonWWWDomain}`), true)}- >DNS settings for www.{nonWWWDomain} is invalid, click to recheck.</button- >- {/if}- {/if}- </div>- {/if}-- <div class="grid grid-flow-row gap-2 px-4">- <div class="grid grid-cols-2 items-center">- <Setting- id="dualCerts"- disabled={$status.service.isRunning || !$appSession.isAdmin}- dataTooltip="You must stop the application to change this setting."- bind:setting={dualCerts}- title="Generate SSL for www and non-www?"- description={"It will generate certificates for both www and non-www. <br>You need to have <span class='text-settings'>both DNS entries</span> set in advance.<br><br>Service needs to be restarted."}- on:click={() => !$status.service.isRunning && changeSettings('dualCerts')}- />- </div>- {#if hostPorts.length === 0}- <div class="grid grid-cols-2 items-center">- <label for="exposePort"- >Exposed Port <Explainer- explanation={'You can expose your application to a port on the host system.<br><br>Useful if you would like to use your own reverse proxy or tunnel and also in development mode. Otherwise leave empty.'}- /></label- >- <input- class="w-full"- readonly={isDisabled}- disabled={isDisabled}- name="exposePort"- id="exposePort"- bind:value={service.exposePort}- placeholder="12345"- />- </div>- {/if}- </div>- <div class="pt-6">- {#each Object.keys(template) as oneService}- <div- class="flex flex-row my-2 space-x-2 mb-6"- class:my-6={template[oneService].environment.length > 0 &&- template[oneService].environment.find((env) => env.main === oneService)}- class:border-b={template[oneService].environment.length > 0 &&- template[oneService].environment.find((env) => env.main === oneService)}- class:border-coolgray-500={template[oneService].environment.length > 0 &&- template[oneService].environment.find((env) => env.main === oneService)}- >- <div class="title font-bold pb-3 capitalize">- {template[oneService].name ||- oneService.replace(`${id}-`, '').replace(id, service.type)}- </div>- <ServiceStatus id={oneService} />- </div>- <div class="grid grid-flow-row gap-2 px-4">- {#if template[oneService].environment.length > 0}- {#each template[oneService].environment as variable}- {#if variable.main === oneService}- <div class="grid grid-cols-2 items-center gap-2">- <label class="h-10" for={variable.name}- >{variable.label || variable.name}- {#if variable.description}- <Explainer explanation={variable.description} />- {/if}</label- >- {#if variable.defaultValue === '$$generate_fqdn'}- <CopyPasswordField- disabled- readonly- name={variable.name}- id={variable.name}- value={service.fqdn}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else if variable.defaultValue === '$$generate_fqdn_slash'}- <CopyPasswordField- disabled- readonly- name={variable.name}- id={variable.name}- value={service.fqdn + '/' || ''}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else if variable.defaultValue === '$$generate_domain'}- <CopyPasswordField- disabled- readonly- name={variable.name}- id={variable.name}- value={getDomain(service.fqdn) || ''}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else if variable.defaultValue === '$$generate_network'}- <CopyPasswordField- disabled- readonly- name={variable.name}- id={variable.name}- value={service.destinationDocker.network}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else if variable.defaultValue === 'true' || variable.defaultValue === 'false'}- {#if variable.value === 'true' || variable.value === 'false' || variable.value === 'invite_only'}- <select- class="w-full font-normal"- readonly={isDisabled}- disabled={isDisabled}- id={variable.name}- name={variable.name}- bind:value={variable.value}- form="saveForm"- placeholder={variable.placeholder}- required={variable?.required}- >- <option value="true">enabled</option>- <option value="false">disabled</option>- {#if service.type.startsWith('plausibleanalytics') && variable.id == 'config_disable_registration'}- <option value="invite_only">invite_only</option>- {/if}- </select>- {:else}- <select- class="w-full font-normal"- readonly={isDisabled}- disabled={isDisabled}- id={variable.name}- name={variable.name}- bind:value={variable.defaultValue}- form="saveForm"- placeholder={variable.placeholder}- required={variable?.required}- >- <option value="true">true</option>- <option value="false">false</option>- </select>- {/if}- {:else if variable.defaultValue === '$$generate_password'}- <CopyPasswordField- isPasswordField- readonly- disabled- name={variable.name}- id={variable.name}- value={variable.value}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else if variable.type === 'textarea'}- <textarea- class="w-full"- value={variable.value}- readonly={isDisabled}- disabled={isDisabled}- class:resize-none={$status.service.overallStatus === 'healthy'}- rows="5"- name={variable.name}- id={variable.name}- placeholder={variable.placeholder}- required={variable?.required}- />- {:else}- <CopyPasswordField- isPasswordField={variable.id.startsWith('secret')}- required={variable?.required}- readonly={variable.readOnly || isDisabled}- disabled={variable.readOnly || isDisabled}- name={variable.name}- id={variable.name}- value={variable.value}- placeholder={variable.placeholder}- />- {/if}- </div>- {/if}- {/each}- {#if template[oneService].name.toLowerCase() === 'wordpress' && service.type.startsWith('wordpress')}- <Wordpress {service} />- {/if}- {/if}- </div>- {/each}- </div>- </form>-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/components/Menu.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/components/Menu.sveltedeleted file mode 100644index bfc3a577a5..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/components/Menu.svelte+++ /dev/null@@ -1,138 +0,0 @@-<script lang="ts">- export let service: any;- export let template: any;- import { page } from '$app/stores';- import { appSession } from '$lib/store';- import ServiceLinks from './ServiceLinks.svelte';-</script>--<ul class="menu border bg-coolgray-100 border-coolgray-200 rounded p-2 space-y-2 sticky top-4">- <li class="menu-title">- <span>General</span>- </li>- <li class="rounded">- <ServiceLinks {template} {service} linkToDocs={true} />- </li>- <li class="rounded" class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}`}>- <a href={`/services/${$page.params.id}`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"- />- </svg>Configurations</a- >- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}/secrets`}- >- <a href={`/services/${$page.params.id}/secrets`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path- d="M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3"- />- <circle cx="12" cy="11" r="1" />- <line x1="12" y1="12" x2="12" y2="14.5" />- </svg>Secrets</a- >- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}/storages`}- >- <a href={`/services/${$page.params.id}/storages`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <ellipse cx="12" cy="6" rx="8" ry="3" />- <path d="M4 6v6a8 3 0 0 0 16 0v-6" />- <path d="M4 12v6a8 3 0 0 0 16 0v-6" />- </svg>Persistent Volumes</a- >- </li>- <li class="menu-title">- <span>Logs</span>- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}/logs`}- >- <a- href={`/services/${$page.params.id}/logs`}- class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="h-6 w-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <path d="M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0" />- <line x1="3" y1="6" x2="3" y2="19" />- <line x1="12" y1="6" x2="12" y2="19" />- <line x1="21" y1="6" x2="21" y2="19" />- </svg>Service</a- >- </li>- {#if $appSession.isAdmin}- <li class="menu-title">- <span>Advanced</span>- </li>- <li- class="rounded"- class:bg-coollabs={$page.url.pathname === `/services/${$page.params.id}/danger`}- >- <a href={`/services/${$page.params.id}/danger`} class="no-underline w-full"- ><svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <path d="M12 9v2m0 4v.01" />- <path- d="M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"- />- </svg>Danger Zone</a- >- </li>- {/if}-</ul>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceLinks.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceLinks.sveltedeleted file mode 100644index c4a23e5b71..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceLinks.svelte+++ /dev/null@@ -1,14 +0,0 @@-<script lang="ts">- import DocLink from '$lib/components/DocLink.svelte';- import ServiceIcons from '$lib/components/icons/services/ServiceIcons.svelte';- export let service: any;- export let template: any;- export let linkToDocs: boolean = false;- const name: any = service.type && service.type[0].toUpperCase() + service.type.substring(1);-</script>--{#if linkToDocs}- <DocLink url={template[service?.id]?.documentation || 'https://docs.coollabs.io'} text={`Documentation`} isExternal={true} />-{:else}- <ServiceIcons type={service.type} />-{/if}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceStatus.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceStatus.sveltedeleted file mode 100644index f6cb092f55..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/components/ServiceStatus.svelte+++ /dev/null@@ -1,37 +0,0 @@-<script lang="ts">- export let id: any;- import { status } from '$lib/store';- let serviceStatus = {- isExcluded: false,- isExited: false,- isRunning: false,- isRestarting: false,- isStopped: false- };-- $: if (Object.keys($status.service.statuses).length > 0 && $status.service.statuses[id]?.status) {- let { isExited, isRunning, isRestarting, isExcluded } = $status.service.statuses[id].status;-- serviceStatus.isExited = isExited;- serviceStatus.isRunning = isRunning;- serviceStatus.isExcluded = isExcluded;- serviceStatus.isRestarting = isRestarting;- serviceStatus.isStopped = !isExited && !isRunning && !isRestarting;- } else {- serviceStatus.isExited = false;- serviceStatus.isRunning = false;- serviceStatus.isExcluded = false;- serviceStatus.isRestarting = false;- serviceStatus.isStopped = true;- }-</script>--{#if serviceStatus.isExcluded}- <span class="badge font-bold uppercase rounded text-orange-500 mt-2">Excluded</span>-{:else if serviceStatus.isRunning}- <span class="badge font-bold uppercase rounded text-green-500 mt-2">Running</span>-{:else if serviceStatus.isStopped || serviceStatus.isExited}- <span class="badge font-bold uppercase rounded text-red-500 mt-2">Stopped</span>-{:else if serviceStatus.isRestarting}- <span class="badge font-bold uppercase rounded text-yellow-500 mt-2">Restarting</span>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/components/Wordpress.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/components/Wordpress.sveltedeleted file mode 100644index 7d5c2234a2..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/components/Wordpress.svelte+++ /dev/null@@ -1,85 +0,0 @@-<script lang="ts">- import { page } from '$app/stores';- import { status } from '$lib/store';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import Setting from '$lib/components/Setting.svelte';- import { errorNotification, getDomain } from '$lib/common';- import { browser } from '$app/environment';-- export let service: any;- const { id } = $page.params;- const settings = service.settings;- const { ipv4, ipv6 } = settings;-- let ftpUrl = generateUrl(service.wordpress?.ftpPublicPort) || '';- let ftpUser = service.wordpress?.ftpUser;- let ftpPassword = service.wordpress?.ftpPassword;- let ftpLoading = false;- let ftpEnabled = service.wordpress?.ftpEnabled || false;-- function generateUrl(publicPort: any) {- return browser- ? `sftp://${settings?.fqdn ? getDomain(settings.fqdn) : ipv4 || ipv6}:${publicPort}`- : 'Loading...';- }- async function changeSettings(name: any) {- if (ftpLoading) return;- if ($status.service.overallStatus === 'healthy') {- ftpLoading = true;- if (name === 'ftpEnabled') {- ftpEnabled = !ftpEnabled;- }-- try {- // const {- // publicPort,- // ftpUser: user,- // ftpPassword: password- // } = await post(`/services/${id}/wordpress/ftp`, {- // ftpEnabled- // });- // ftpUrl = generateUrl(publicPort);- // ftpUser = user;- // ftpPassword = password;- // service.wordpress.ftpEnabled = ftpEnabled;- } catch (error) {- return errorNotification(error);- } finally {- ftpLoading = false;- }- }- }-</script>--<div class="grid grid-cols-2 items-center">- <Setting- id="ftpEnabled"- bind:setting={ftpEnabled}- loading={ftpLoading}- disabled={$status.service.overallStatus !== 'healthy'}- on:click={() => changeSettings('ftpEnabled')}- title="Enable sFTP connection to WordPress data"- description="Enables an on-demand sFTP connection to the WordPress data directory. This is useful if you want to use sFTP to upload files."- />-</div>-{#if service.wordpress?.ftpEnabled}- <div class="grid grid-cols-2 items-center">- <label for="ftpUrl">sFTP Connection URI</label>- <CopyPasswordField id="ftpUrl" readonly disabled name="ftpUrl" value={ftpUrl} />- </div>- <div class="grid grid-cols-2 items-center">- <label for="ftpUser">User</label>- <CopyPasswordField id="ftpUser" readonly disabled name="ftpUser" value={ftpUser} />- </div>- <div class="grid grid-cols-2 items-center">- <label for="ftpPassword">Password</label>- <CopyPasswordField- id="ftpPassword"- isPasswordField- readonly- disabled- name="ftpPassword"- value={ftpPassword}- />- </div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/danger/+page.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/danger/+page.sveltedeleted file mode 100644index dc064d1290..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/danger/+page.svelte+++ /dev/null@@ -1,46 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let service: any = data.service.data;- import { page } from '$app/stores';- import { appSession, status, trpc } from '$lib/store';- import { errorNotification } from '$lib/common';- import { goto } from '$app/navigation';- const { id } = $page.params;-- async function deleteService() {- const sure = confirm('Are you sure you want to delete this service?');- if (sure) {- $status.service.initialLoading = true;- try {- if (service.type && $status.service.overallStatus !== 'stopped') {- await trpc.services.stop.mutate({ id });- }- await trpc.services.delete.mutate({ id });- return await goto('/');- } catch (error) {- return errorNotification(error);- } finally {- $status.service.initialLoading = false;- }- }- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Danger Zone</div>- </div>- <button- id="forcedelete"- on:click={() => deleteService()}- type="submit"- disabled={!$appSession.isAdmin}- class:bg-red-600={$appSession.isAdmin}- class:hover:bg-red-500={$appSession.isAdmin}- class="btn btn-lg btn-error text-sm"- >- Delete Service- </button>-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/logs/+page.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/logs/+page.sveltedeleted file mode 100644index 87bc770103..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/logs/+page.svelte+++ /dev/null@@ -1,173 +0,0 @@-<script lang="ts">- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import { trpc } from '$lib/store';- import { onDestroy, onMount } from 'svelte';-- let service: any = {};- let template: any = null;- let logsLoading = false;- let loadLogsInterval: any = null;- let logs: any = [];- let lastLog: any = null;- let followingInterval: any;- let followingLogs: any;- let logsEl: any;- let position = 0;- let selectedService: any = null;- let noContainer = false;-- const { id } = $page.params;-- onMount(async () => {- const { data } = await trpc.services.getServices.query({ id });- template = data.template;- service = data.service;- });-- onDestroy(() => {- clearInterval(loadLogsInterval);- clearInterval(followingInterval);- });-- async function loadLogs() {- if (logsLoading) return;- try {- const { data } = await trpc.services.getLogs.query({- id,- containerId: selectedService,- since: Number(lastLog?.split(' ')[0]) || 0- });-- if (data.noContainer) {- noContainer = true;- logs = [];- if (logs.length > 0) {- clearInterval(loadLogsInterval);- selectedService = null;- }- return;- } else {- noContainer = false;- }- if (data?.logs && data.logs[data.logs.length - 1] !== logs[logs.length - 1]) {- logs = logs.concat(data.logs);- lastLog = data.logs[data.logs.length - 1];- }- } catch (error) {- return errorNotification(error);- }- }- function detect() {- if (position < logsEl.scrollTop) {- position = logsEl.scrollTop;- } else {- if (followingLogs) {- clearInterval(followingInterval);- followingLogs = false;- }- position = logsEl.scrollTop;- }- }-- function followBuild() {- followingLogs = !followingLogs;- if (followingLogs) {- followingInterval = setInterval(() => {- logsEl.scrollTop = logsEl.scrollHeight;- window.scrollTo(0, document.body.scrollHeight);- }, 1000);- } else {- clearInterval(followingInterval);- }- }- async function selectService(service: any, init: boolean = false) {- if (loadLogsInterval) clearInterval(loadLogsInterval);- if (followingInterval) clearInterval(followingInterval);-- logs = [];- lastLog = null;- followingLogs = false;-- selectedService = service;- loadLogs();- loadLogsInterval = setInterval(() => {- loadLogs();- }, 1000);- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Service Logs</div>- </div>-</div>--{#if template}- <div class="grid grid-cols-3 gap-2 lg:gap-8 pb-4">- {#each Object.keys(template) as service}- <button- on:click={() => selectService(service, true)}- class:bg-primary={selectedService === service}- class:bg-coolgray-200={selectedService !== service}- class="w-full rounded p-5 hover:bg-primary font-bold"- >- {#if template[service].name}- {template[service].name || ''} <br /><span class="text-xs">({service})</span>- {:else}- <span>{service}</span>- {/if}- </button>- {/each}- </div>-{:else}- <div class="w-full flex justify-center font-bold text-xl">Loading components...</div>-{/if}--{#if selectedService}- <div class="flex flex-row justify-center space-x-2">- {#if logs.length === 0}- {#if noContainer}- <div class="text-xl font-bold tracking-tighter">Container not found / exited.</div>- {/if}- {:else}- <div class="relative w-full">- <div class="flex justify-start sticky space-x-2 pb-2">- <button on:click={followBuild} class="btn btn-sm " class:bg-coollabs={followingLogs}>- <svg- xmlns="http://www.w3.org/2000/svg"- class="w-6 h-6 mr-2"- viewBox="0 0 24 24"- stroke-width="1.5"- stroke="currentColor"- fill="none"- stroke-linecap="round"- stroke-linejoin="round"- >- <path stroke="none" d="M0 0h24v24H0z" fill="none" />- <circle cx="12" cy="12" r="9" />- <line x1="8" y1="12" x2="12" y2="16" />- <line x1="12" y1="8" x2="12" y2="16" />- <line x1="16" y1="12" x2="12" y2="16" />- </svg>- {followingLogs ? 'Following Logs...' : 'Follow Logs'}- </button>- {#if loadLogsInterval}- <button id="streaming" class="btn btn-sm bg-transparent border-none loading"- >Streaming logs</button- >- {/if}- </div>- <div- bind:this={logsEl}- on:scroll={detect}- class="font-mono w-full bg-coolgray-100 border border-coolgray-200 p-5 overflow-x-auto overflox-y-auto max-h-[80vh] rounded mb-20 flex flex-col scrollbar-thumb-coollabs scrollbar-track-coolgray-200 scrollbar-w-1"- >- {#each logs as log}- <p>{log + '\n'}</p>- {/each}- </div>- </div>- {/if}- </div>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.sveltedeleted file mode 100644index 2005404f75..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.svelte+++ /dev/null@@ -1,98 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let secrets = data.secrets;- import Secret from './components/Secret.svelte';- import { page } from '$app/stores';- import pLimit from 'p-limit';- import { addToast, appSession, trpc } from '$lib/store';- import { saveSecret } from './utils';- const limit = pLimit(1);-- const { id } = $page.params;- let batchSecrets = '';-- async function refreshSecrets() {- const { data } = await trpc.services.getSecrets.query({ id });- secrets = [...data.secrets];- }- async function getValues() {- if (!batchSecrets) return;- const eachValuePair = batchSecrets.split('\n');- const batchSecretsPairs = eachValuePair- .filter((secret) => !secret.startsWith('#') && secret)- .map((secret) => {- const [name, ...rest] = secret.split('=');- const value = rest.join('=');- const cleanValue = value?.replaceAll('"', '') || '';- return {- name: name.trim(),- value: cleanValue.trim(),- isNew: !secrets.find((secret: any) => name === secret.name)- };- });-- await Promise.all(- batchSecretsPairs.map(({ name, value, isNew }) =>- limit(() => saveSecret({ name, value, serviceId: id, isNew }))- )- );- batchSecrets = '';- await refreshSecrets();- addToast({- message: 'Secrets saved.',- type: 'success'- });- }-</script>--<div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">Secrets</div>- </div>- <div class="overflow-x-auto">- <table class="w-full border-separate text-left">- <thead>- <tr class="uppercase">- <th scope="col">Name</th>- <th scope="col uppercase">Value</th>- <th scope="col uppercase" class="w-96 text-center">Action</th>- </tr>- </thead>- <tbody class="space-y-2">- {#each secrets as secret}- {#key secret.id}- <tr>- <Secret- name={secret.name}- value={secret.value}- readonly={secret.readOnly}- on:refresh={refreshSecrets}- />- </tr>- {/key}- {/each}- <tr>- <Secret isNewSecret on:refresh={refreshSecrets} />- </tr>- </tbody>- </table>- </div>- {#if $appSession.isAdmin}- <form on:submit|preventDefault={getValues} class="mb-12 w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2 pt-10">- <div class="flex flex-row space-x-2">- <div class="title font-bold pb-3 ">Paste <code>.env</code> file</div>- <button type="submit" class="btn btn-sm bg-primary">Add Secrets in Batch</button>- </div>- </div>-- <textarea- placeholder={`PORT=1337\nPASSWORD=supersecret`}- bind:value={batchSecrets}- class="mb-2 min-h-[200px] w-full"- />- </form>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.ts b/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.tsdeleted file mode 100644index ee881f4e7c..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const { data } = await trpc.services.getSecrets.query({ id });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/components/Secret.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/secrets/components/Secret.sveltedeleted file mode 100644index 1ad6780052..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/components/Secret.svelte+++ /dev/null@@ -1,101 +0,0 @@-<script lang="ts">- export let name = '';- export let value = '';- export let readonly = false;- export let isNewSecret = false;-- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';- import { addToast, appSession, trpc } from '$lib/store';- import { createEventDispatcher } from 'svelte';-- const dispatch = createEventDispatcher();- const { id } = $page.params;- async function removeSecret() {- try {- await trpc.services.deleteSecret.mutate({- name,- id- });- dispatch('refresh');- if (isNewSecret) {- name = '';- value = '';- }- } catch (error) {- return errorNotification(error);- }- }- async function saveSecret(isNew = false) {- if (!name) return errorNotification({ message: 'Name is required.' });- if (!value) return errorNotification({ message: 'Value is required.' });- try {- await trpc.services.createSecret.mutate({- name,- value,- id,- isNew- });-- dispatch('refresh');- if (isNewSecret) {- name = '';- value = '';- }- addToast({- message: 'Secret saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- }- }-</script>--<td>- <input- style="min-width: 350px !important;"- id={isNewSecret ? 'secretName' : 'secretNameNew'}- bind:value={name}- required- placeholder="EXAMPLE_VARIABLE"- readonly={!isNewSecret || readonly}- class="w-full"- class:bg-coolblack={!isNewSecret}- class:border={!isNewSecret}- class:border-dashed={!isNewSecret}- class:border-coolgray-300={!isNewSecret}- />-</td>-<td>- <CopyPasswordField- id={isNewSecret ? 'secretValue' : 'secretValueNew'}- name={isNewSecret ? 'secretValue' : 'secretValueNew'}- disabled={readonly}- {readonly}- isPasswordField={true}- bind:value- placeholder="J$#@UIO%HO#$U%H"- inputStyle="min-width: 350px; !important"- />-</td>--{#if $appSession.isAdmin}-<td>- {#if isNewSecret}- <div class="flex items-center justify-center">- <button class="btn btn-sm btn-primary" on:click={() => saveSecret(true)}>Add</button>- </div>- {:else if !readonly}- <div class="flex flex-row justify-center space-x-2">- <div class="flex items-center justify-center">- <button class="btn btn-sm btn-primary" on:click={() => saveSecret(false)}>Set</button>- </div>- <div class="flex justify-center items-end">- <button class="btn btn-sm bg-error" on:click={removeSecret}>Remove</button>- </div>- </div>- {/if}-</td>-{/if}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/utils.ts b/apps/trpc-experimental/client/src/routes/services/[id]/secrets/utils.tsdeleted file mode 100644index d2cabd386c..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/secrets/utils.ts+++ /dev/null@@ -1,78 +0,0 @@-import { errorNotification } from '$lib/common';-import { trpc } from '$lib/store';--type Props = {- isNew: boolean;- name: string;- value: string;- isBuildSecret?: boolean;- isPRMRSecret?: boolean;- isNewSecret?: boolean;- serviceId: string;-};--export async function saveSecret({- isNew,- name,- value,- isBuildSecret,- isNewSecret-}: Props): Promise<void> {- if (!name) return errorNotification('Name is required');- if (!value) return errorNotification('Value is required');- try {- await trpc.services.createSecret.mutate({- name,- value,- isBuildSecret,- isNew: isNew || false- });-- if (isNewSecret) {- name = '';- value = '';- isBuildSecret = false;- }- } catch (error) {- throw error;- }-}--export async function saveForm(formData: any, service: any) {- const settings = service.serviceSetting.map((setting: { name: string }) => setting.name);- const secrets = service.serviceSecret.map((secret: { name: string }) => secret.name);- const baseCoolifySetting = ['name', 'fqdn', 'exposePort', 'version'];- for (let field of formData) {- const [key, value] = field;- if (secrets.includes(key) && value) {- await trpc.services.createSecret.mutate({- name: key,- value- });- } else {- service.serviceSetting = service.serviceSetting.map((setting: any) => {- if (setting.name === key) {- setting.changed = true;- setting.value = value;- }- return setting;- });- if (!settings.includes(key) && !baseCoolifySetting.includes(key)) {- service.serviceSetting.push({- id: service.id,- name: key,- value: value,- isNew: true- });- }- if (baseCoolifySetting.includes(key)) {- service[key] = value;- }- }- }- await trpc.services.saveService.mutate(service);- const {- data: { service: reloadedService }- } = await trpc.services.getServices.query({ id: service.id });- return reloadedService;-}diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.sveltedeleted file mode 100644index 7b0fa33df4..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.svelte+++ /dev/null@@ -1,73 +0,0 @@-<script lang="ts">- import type { PageData } from './$types';-- export let data: PageData;- let persistentStorages = data.persistentStorages;- let template = data.template;- import { page } from '$app/stores';- import Storage from './components/Storage.svelte';- import Explainer from '$lib/components/Explainer.svelte';- import { appSession, trpc } from '$lib/store';-- const { id } = $page.params;- async function refreshStorage() {- const { data } = await trpc.services.getStorages.query({ id });- persistentStorages = [...data.persistentStorages];- }- let services = Object.keys(template).map((service) => {- if (template[service]?.name) {- return {- name: template[service].name,- id: service- };- } else {- return service;- }- });-</script>--<div class="w-full">- <div class="mx-auto w-full">- <div class="flex flex-row border-b border-coolgray-500 mb-6 space-x-2">- <div class="title font-bold pb-3">- Persistent Volumes <Explainer- position="dropdown-bottom"- explanation="You can specify any folder that you want to be persistent across deployments.<br><br><span class='text-settings '>/example</span> means it will preserve <span class='text-settings '>/example</span> between deployments.<br><br>Your application's data is copied to <span class='text-settings '>/app</span> inside the container, you can preserve data under it as well, like <span class='text-settings '>/app/db</span>.<br><br>This is useful for storing data such as a <span class='text-settings '>database (SQLite)</span> or a <span class='text-settings '>cache</span>."- />- </div>- </div>- {#if persistentStorages.filter((s) => s.predefined).length > 0}- <div class="title">Predefined Volumes</div>- <div class="w-full lg:px-0 px-4">- <div class="grid grid-col-1 lg:grid-cols-2 pt-2 gap-2">- <div class="font-bold uppercase">Container</div>- <div class="font-bold uppercase">Volume ID : Mount Dir</div>- </div>- </div>-- {#each persistentStorages.filter((s) => s.predefined) as storage}- {#key storage.id}- <Storage on:refresh={refreshStorage} {storage} {services} />- {/key}- {/each}- {/if}-- {#if persistentStorages.filter((s) => !s.predefined).length > 0}- <div class="title" class:pt-10={persistentStorages.filter((s) => s.predefined).length > 0}>- Custom Volumes- </div>-- {#each persistentStorages.filter((s) => !s.predefined) as storage}- {#key storage.id}- <Storage on:refresh={refreshStorage} {storage} {services} />- {/key}- {/each}- {/if}- {#if $appSession.isAdmin}- <div class="title" class:pt-10={persistentStorages.filter((s) => s.predefined).length > 0}>- Add New Volume- </div>- <Storage on:refresh={refreshStorage} isNew {services} />- {/if}- </div>-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.ts b/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.tsdeleted file mode 100644index 5c21ebee92..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/storages/+page.ts+++ /dev/null@@ -1,16 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { PageLoad } from './$types';-export const ssr = false;--export const load: PageLoad = async ({ params }) => {- try {- const { id } = params;- const { data } = await trpc.services.getStorages.query({ id });- return data;- } catch (err) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/storages/components/Storage.svelte b/apps/trpc-experimental/client/src/routes/services/[id]/storages/components/Storage.sveltedeleted file mode 100644index cb4f0fafd0..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/storages/components/Storage.svelte+++ /dev/null@@ -1,167 +0,0 @@-<script lang="ts">- export let isNew = false;- export let storage: any = {};- export let services: any = [];- import { page } from '$app/stores';- import { createEventDispatcher } from 'svelte';-- import { errorNotification } from '$lib/common';- import { addToast, trpc } from '$lib/store';- const { id } = $page.params;-- const dispatch = createEventDispatcher();- async function saveStorage(e: any) {- try {- const formData = new FormData(e.target);- let isNewStorage = true;- let newStorage: any = {- id: null,- containerId: null,- path: null- };- for (let field of formData) {- const [key, value] = field;- newStorage[key] = value;- }- newStorage.path = newStorage.path.startsWith('/') ? newStorage.path : `/${newStorage.path}`;- newStorage.path = newStorage.path.endsWith('/')- ? newStorage.path.slice(0, -1)- : newStorage.path;- newStorage.path.replace(/\/\//g, '/');- await trpc.services.saveStorage.mutate({- id,- path: newStorage.path,- storageId: newStorage.id,- containerId: newStorage.containerId,- isNewStorage- });-- dispatch('refresh');- if (isNew) {- storage.path = null;- storage.id = null;- }- if (isNewStorage) {- addToast({- message: 'Storage added',- type: 'success'- });- } else {- addToast({- message: 'Storage updated',- type: 'success'- });- }- } catch (error) {- return errorNotification(error);- }- }- async function removeStorage(removableStorage: any) {- try {- const { id: storageId, volumeName, path } = removableStorage;- const sure = confirm(- `Are you sure you want to delete this storage ${volumeName + ':' + path}?`- );- if (sure) {- await trpc.services.deleteStorage.mutate({ storageId });- dispatch('refresh');- addToast({- message: 'Storage deleted',- type: 'success'- });- }- } catch (error) {- return errorNotification(error);- }- }-</script>--<div class="w-full lg:px-0 px-4">- {#if storage.predefined}- <div class="grid grid-col-1 lg:grid-cols-2 pt-2 gap-2">- <div>- <input- id={storage.containerId}- disabled- readonly- class="w-full"- value={`${- services.find((s) => s.id === storage.containerId).name || storage.containerId- }`}- />- </div>- <div>- <input- id={storage.volumeName}- disabled- readonly- class="w-full"- value={`${storage.volumeName}:${storage.path}`}- />- </div>- </div>- {:else if isNew}- <form id="saveVolumesForm" on:submit|preventDefault={saveStorage}>- <div class="grid grid-col-1 lg:grid-cols-2 lg:space-x-4 pt-8">- <div class="flex flex-row">- <div class="flex flex-col w-full">- <label for="name" class="pb-2 uppercase font-bold">Container</label>- <select- form="saveVolumesForm"- name="containerId"- class="w-full lg:w-64"- disabled={storage.predefined}- readonly={storage.predefined}- bind:value={storage.containerId}- >- {#if services.length === 1}- {#if services[0].name}- <option selected value={services[0].id}>{services[0].name}</option>- {:else}- <option selected value={services[0]}>{services[0]}</option>- {/if}- {:else}- {#each services as service}- {#if service.name}- <option value={service.id}>{service.name}</option>- {:else}- <option value={service}>{service}</option>- {/if}- {/each}- {/if}- </select>- </div>- <div class="flex flex-col w-full">- <label for="name" class="pb-2 uppercase font-bold">Path</label>- <input- name="path"- disabled={storage.predefined}- readonly={storage.predefined}- class="w-full lg:w-64"- bind:value={storage.path}- required- placeholder="eg: /sqlite.db"- />- </div>- </div>- <div class="pt-8">- <button type="submit" class="btn btn-sm btn-primary w-full lg:w-64">Add</button>- </div>- </div>- </form>- {:else}- <div class="flex lg:flex-row flex-col items-center gap-2 py-1">- <input- disabled- readonly- class="w-full"- value={`${services.find((s) => s.id === storage.containerId).name || storage.containerId}`}- />- <input disabled readonly class="w-full" value={`${storage.volumeName}:${storage.path}`} />- <button- class="btn btn-sm btn-error"- on:click|stopPropagation|preventDefault={() => removeStorage(storage)}>Remove</button- >- </div>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/services/[id]/utils.ts b/apps/trpc-experimental/client/src/routes/services/[id]/utils.tsdeleted file mode 100644index e2aeac4b2e..0000000000--- a/apps/trpc-experimental/client/src/routes/services/[id]/utils.ts+++ /dev/null@@ -1,79 +0,0 @@-import { errorNotification } from '$lib/common';--type Props = {- isNew: boolean;- name: string;- value: string;- isBuildSecret?: boolean;- isPRMRSecret?: boolean;- isNewSecret?: boolean;- serviceId: string;-};--export async function saveSecret({- isNew,- name,- value,- isBuildSecret,- isPRMRSecret,- isNewSecret,- serviceId-}: Props): Promise<void> {- if (!name) return errorNotification('Name is required');- if (!value) return errorNotification('Value is required');- try {- // await post(`/services/${serviceId}/secrets`, {- // name,- // value,- // isBuildSecret,- // isPRMRSecret,- // isNew: isNew || false- // });- if (isNewSecret) {- name = '';- value = '';- isBuildSecret = false;- }- } catch (error) {- throw error- }-}--export async function saveForm(formData: any, service: any) {- const settings = service.serviceSetting.map((setting: { name: string }) => setting.name);- const secrets = service.serviceSecret.map((secret: { name: string }) => secret.name);- const baseCoolifySetting = ['name', 'fqdn', 'exposePort', 'version'];- for (let field of formData) {- const [key, value] = field;- if (secrets.includes(key) && value) {- // await post(`/services/${service.id}/secrets`, {- // name: key,- // value,- // });- } else {- service.serviceSetting = service.serviceSetting.map((setting: any) => {- if (setting.name === key) {- setting.changed = true;- setting.value = value;- }- return setting;- });- if (!settings.includes(key) && !baseCoolifySetting.includes(key)) {- service.serviceSetting.push({- id: service.id,- name: key,- value: value,- isNew: true- });- }- if (baseCoolifySetting.includes(key)) {- service[key] = value;- }- }-- }- // await post(`/services/${service.id}`, { ...service });- // const { service: reloadedService } = await get(`/services/${service.id}`);- // return reloadedService;--}diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.sveltedeleted file mode 100644index 4b83d0ab45..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.svelte+++ /dev/null@@ -1,40 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';-- export let data: LayoutData;- let source = data.source.data.source;- import { page } from '$app/stores';- import { errorNotification } from '$lib/common';- import { appSession, trpc } from '$lib/store';- import * as Icons from '$lib/components/icons';- import { goto } from '$app/navigation';- import Tooltip from '$lib/components/Tooltip.svelte';- const { id } = $page.params;-- async function deleteSource(name: string) {- const sure = confirm('Are you sure you want to delete ' + name + '?');- if (sure) {- try {- await trpc.sources.delete.mutate({ id });- await goto('/', { replaceState: true });- } catch (error) {- errorNotification(error);- }- }- }-</script>--{#if id !== 'new' && $appSession.teamId === '0'}- <nav class="nav-side">- <button- id="delete"- on:click={() => deleteSource(source.name)}- type="submit"- disabled={!$appSession.isAdmin}- class:hover:text-red-500={$appSession.isAdmin}- class="icons bg-transparent text-sm"><Icons.Delete /></button- >- </nav>- <Tooltip triggeredBy="#delete">Delete</Tooltip>-{/if}-<slot />diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.ts b/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.tsdeleted file mode 100644index 34c9d07e9e..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/+layout.ts+++ /dev/null@@ -1,35 +0,0 @@-import { error } from '@sveltejs/kit';-import { trpc } from '$lib/store';-import type { LayoutLoad } from './$types';-import { redirect } from '@sveltejs/kit';--export const load: LayoutLoad = async ({ params, url }) => {- const { pathname } = new URL(url);- const { id } = params;- try {- const source = await trpc.sources.getSourceById.query({ id });- if (!source) {- throw redirect(307, '/sources');- }-- // if (- // configurationPhase &&- // pathname !== `/applications/${params.id}/configuration/${configurationPhase}`- // ) {- // throw redirect(302, `/applications/${params.id}/configuration/${configurationPhase}`);- // }- return {- source- };- } catch (err) {- if (err instanceof Error) {- throw error(500, {- message: 'An unexpected error occurred, please try again later.' + '<br><br>' + err.message- });- }-- throw error(500, {- message: 'An unexpected error occurred, please try again later.'- });- }-};diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/+page.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/+page.sveltedeleted file mode 100644index 1f86f37e7a..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/+page.svelte+++ /dev/null@@ -1,17 +0,0 @@-<script lang="ts">- import type { LayoutData } from './$types';-- export let data: LayoutData;- let source = data.source.data.source;- let settings = data.source.data.settings;- import { page } from '$app/stores';- import Source from './components/Source.svelte';- import New from './components/New.svelte';- const { id } = $page.params;-</script>--{#if id === 'new'}- <New bind:source bind:settings />-{:else}- <Source bind:source bind:settings />-{/if}diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Github.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/components/Github.sveltedeleted file mode 100644index 4fa2253e35..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Github.svelte+++ /dev/null@@ -1,264 +0,0 @@-<script lang="ts">- export let source: any;- export let settings: any;- import { page } from '$app/stores';- import { dashify, errorNotification, getAPIUrl, getDomain, getWebhookUrl } from '$lib/common';- import { addToast, appSession, trpc } from '$lib/store';- import Explainer from '$lib/components/Explainer.svelte';- import Setting from '$lib/components/Setting.svelte';- import { dev } from '$app/environment';-- const { id } = $page.params;-- $: selfHosted = source.htmlUrl !== 'https://github.com';-- let loading = false;-- async function handleSubmit() {- loading = true;- try {- await trpc.sources.save.mutate({- id: source.id,- name: source.name,- htmlUrl: source.htmlUrl.replace(/\/$/, ''),- apiUrl: source.apiUrl.replace(/\/$/, ''),- isSystemWide: source.isSystemWide- });-- return addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }-- async function newGithubApp() {- loading = true;- try {- const { id } = await trpc.sources.newGitHubApp.mutate({- id: source.id,- name: source.name,- htmlUrl: source.htmlUrl.replace(/\/$/, ''),- apiUrl: source.apiUrl.replace(/\/$/, ''),- organization: source.organization,- customPort: source.customPort,- isSystemWide: source.isSystemWide- });-- const { organization, htmlUrl } = source;- const { fqdn, ipv4, ipv6 } = settings;- const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${ipv4 || ipv6}` || '';- const domain = getDomain(fqdn);-- let url = 'settings/apps/new';- if (organization) url = `organizations/${organization}/settings/apps/new`;- const name = dashify(domain) || 'app';- const data = JSON.stringify({- name: `coolify-${name}`,- url: host,- hook_attributes: {- url: dev ? getWebhookUrl('github') : `${host}/webhooks/github/events`- },- redirect_url: `${host}/webhooks/github`,- callback_urls: [`${host}/login/github/app`],- public: false,- request_oauth_on_install: false,- setup_url: `${host}/webhooks/github/install?gitSourceId=${id}`,- setup_on_update: true,- default_permissions: {- contents: 'read',- metadata: 'read',- pull_requests: 'read',- emails: 'read'- },- default_events: ['pull_request', 'push']- });- const form = document.createElement('form');- form.setAttribute('method', 'post');- form.setAttribute('action', `${htmlUrl}/${url}?state=${id}`);- const input = document.createElement('input');- input.setAttribute('id', 'manifest');- input.setAttribute('name', 'manifest');- input.setAttribute('type', 'hidden');- input.setAttribute('value', data);- form.appendChild(input);- document.getElementsByTagName('body')[0].appendChild(form);- form.submit();- } catch (error) {- return errorNotification(error);- }- }- async function changeSettings(name: any, save: boolean) {- if ($appSession.teamId === '0') {- if (name === 'isSystemWide') {- source.isSystemWide = !source.isSystemWide;- }- if (save) {- await handleSubmit();- }- }- }-</script>--<div class="mx-auto max-w-6xl lg:px-6 px-3">- {#if !source.githubAppId}- <form on:submit|preventDefault={newGithubApp} class="py-4">- <div class="grid gap-1 lg:grid-flow-col pb-7">- <h1 class="title">General</h1>- {#if !source.githubAppId}- <div class="w-full flex flex-rpw justify-end">- <button class="btn btn-sm bg-sources mt-5 w-full lg:w-fit" type="submit"- >Save & Redirect to GitHub</button- >- </div>- {/if}- </div>- <div class="grid gap-2 grid-cols-2 auto-rows-max">- <label for="name">Name</label>- <input class="w-full" name="name" id="name" required bind:value={source.name} />- <label for="htmlUrl">HTML URL</label>- <input class="w-full" name="htmlUrl" id="htmlUrl" required bind:value={source.htmlUrl} />- <label for="apiUrl">API URL</label>- <input class="w-full" name="apiUrl" id="apiUrl" required bind:value={source.apiUrl} />- <label for="customPort"- >Custom SSH Port <Explainer- explanation={'If you use a self-hosted version of Git, you can provide custom port for all the Git related actions.'}- /></label- >- <input- class="w-full"- name="customPort"- id="customPort"- disabled={!selfHosted || source.githubAppId}- readonly={!selfHosted || source.githubAppId}- required- value={source.customPort}- />- <label for="organization" class="pt-2"- >Organization- <Explainer- explanation={"Fill it if you would like to use an organization's as your Git Source. Otherwise your user will be used."}- /></label- >- <input- class="w-full"- name="organization"- id="organization"- placeholder="eg: coollabsio"- bind:value={source.organization}- />- <Setting- customClass="pt-4"- id="autodeploy"- isCenter={false}- bind:setting={source.isSystemWide}- on:click={() => changeSettings('isSystemWide', false)}- title="System Wide Git"- description="System Wide Git are available to all the users in your Coolify instance. <br><br> <span class='font-bold text-warning'>Use with caution, as it can be a security risk.</span>"- />- </div>- </form>- {:else if source.githubApp?.installationId}- <form on:submit|preventDefault={handleSubmit} class="py-4">- <div class="flex lg:flex-row lg:justify-between flex-col space-y-3 w-full lg:items-center">- <h1 class="title">General</h1>- {#if $appSession.isAdmin && $appSession.teamId === '0'}- <div- class="flex flex-col lg:flex-row lg:space-x-4 lg:w-fit space-y-2 lg:space-y-0 w-full"- >- <button class="btn btn-sm bg-sources" type="submit" disabled={loading}- >{loading ? 'Saving...' : 'Save'}</button- >- <a- class="btn btn-sm"- href={`${source.htmlUrl}/${- source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'- }/${source.githubApp.name}/installations/new`}>Change GitHub App Settings</a- >- </div>- {/if}- </div>- <div class="grid gap-2 grid-cols-2 auto-rows-max mt-4">- <label for="name">Name</label>- <input- class="w-full"- name="name"- id="name"- required- bind:value={source.name}- disabled={!$appSession.isAdmin}- />- <label for="htmlUrl">HTML URL</label>- <input- class="w-full"- name="htmlUrl"- id="htmlUrl"- disabled={source.githubAppId}- readonly={source.githubAppId}- required- bind:value={source.htmlUrl}- />- <label for="apiUrl">API URL</label>- <input- class="w-full"- name="apiUrl"- id="apiUrl"- required- disabled={source.githubAppId}- readonly={source.githubAppId}- bind:value={source.apiUrl}- />- <label for="customPort"- >Custom SSH Port <Explainer- explanation="If you use a self-hosted version of Git, you can provide custom port for all the Git related actions."- /></label- >- <input- class="w-full"- name="customPort"- id="customPort"- disabled={!selfHosted}- readonly={!selfHosted}- required- value={source.customPort}- />- <label for="organization" class="pt-2">Organization</label>- <input- class="w-full"- readonly- disabled- name="organization"- id="organization"- placeholder="eg: coollabsio"- bind:value={source.organization}- />- {#if $appSession.isAdmin}- <Setting- customClass="pt-4"- id="autodeploy"- isCenter={false}- disabled={$appSession.teamId !== '0'}- bind:setting={source.isSystemWide}- on:click={() => changeSettings('isSystemWide', true)}- title="System Wide Git Source"- description="System Wide Git Sources are available to all the users in your Coolify instance. <br><br> <span class='font-bold text-warning'>Use with caution, as it can be a security risk.</span>"- />- {/if}- </div>- </form>- {:else}- <div class="text-center">- <a- href={`${source.htmlUrl}/${- source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'- }/${source.githubApp.name}/installations/new`}- >- <button class="box-selection bg-sources text-xl font-bold">Install Repositories</button></a- >- </div>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Gitlab.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/components/Gitlab.sveltedeleted file mode 100644index 1c6ced26ae..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Gitlab.svelte+++ /dev/null@@ -1,333 +0,0 @@-<script lang="ts">- export let source: any;- export let settings: any;- import { page } from '$app/stores';- import { onMount } from 'svelte';- import CopyPasswordField from '$lib/components/CopyPasswordField.svelte';-- import { errorNotification, getAPIUrl } from '$lib/common';- import { addToast, appSession, trpc } from '$lib/store';- import Explainer from '$lib/components/Explainer.svelte';- import { dev } from '$app/environment';- const { id } = $page.params;-- let url = settings.fqdn ? settings.fqdn : window.location.origin;-- if (dev) {- url = getAPIUrl();- }- let loading = false;-- let oauthIdEl: HTMLInputElement;- let applicationType: string;- if (!source.gitlabAppId) {- source.gitlabApp = {- oauthId: null,- groupName: null,- appId: null,- appSecret: null- };- }- $: selfHosted = source.htmlUrl !== 'https://gitlab.com';-- onMount(() => {- oauthIdEl && oauthIdEl.focus();- });-- async function handleSubmit() {- if (loading) return;- loading = true;- if (!source.gitlabAppId) {- // New GitLab App- try {- const { id } = await trpc.sources.newGitLabApp.mutate({- id: source.id,- type: 'gitlab',- name: source.name,- htmlUrl: source.htmlUrl.replace(/\/$/, ''),- apiUrl: source.apiUrl.replace(/\/$/, ''),- oauthId: source.gitlabApp.oauthId,- appId: source.gitlabApp.appId,- appSecret: source.gitlabApp.appSecret,- groupName: source.gitlabApp.groupName,- customPort: source.customPort,- customUser: source.customUser- });-- const from = $page.url.searchParams.get('from');- if (from) {- return window.location.assign(from);- }- return window.location.assign(`/sources/${id}`);- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- } else {- // Update GitLab App- try {- await trpc.sources.save.mutate({- id,- name: source.name,- htmlUrl: source.htmlUrl.replace(/\/$/, ''),- apiUrl: source.apiUrl.replace(/\/$/, ''),- customPort: source.customPort,- customUser: source.customUser- });-- return addToast({- message: 'Configuration saved.',- type: 'success'- });- } catch (error) {- return errorNotification(error);- } finally {- loading = false;- }- }- }-- async function changeSettings() {- const {- htmlUrl,- gitlabApp: { oauthId }- } = source;- const left = screen.width / 2 - 1020 / 2;- const top = screen.height / 2 - 1000 / 2;- const newWindow = open(- `${htmlUrl}/oauth/applications/${oauthId}`,- 'GitLab',- 'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' +- top +- ', left=' +- left +- ', toolbar=0, menubar=0, status=0'- );- const timer = setInterval(() => {- if (newWindow?.closed) {- clearInterval(timer);- }- }, 100);- }- async function checkOauthId() {- if (source.gitlabApp?.oauthId) {- try {- // await post(`/sources/${id}/check`, {- // oauthId: source.gitlabApp?.oauthId- // });- } catch (error) {- source.gitlabApp.oauthId = null;- oauthIdEl.focus();- return errorNotification(error);- }- }- }- function newApp() {- switch (applicationType) {- case 'user':- window.open(`${source.htmlUrl}/-/profile/applications`);- break;- case 'group':- if (!source.gitlabApp.groupName) {- return addToast({- message: 'Please enter a group name first.',- type: 'error'- });- }- window.open(- `${source.htmlUrl}/groups/${source.gitlabApp.groupName}/-/settings/applications`- );- break;- case 'instance':- break;- default:- break;- }- }-</script>--<div class="mx-auto max-w-6xl px-6">- <form on:submit|preventDefault={handleSubmit} class="py-4">- <div class="flex lg:flex-row lg:justify-between flex-col space-y-3 w-full lg:items-center">- <h1 class="title">General</h1>- <div class="flex flex-col lg:flex-row lg:space-x-4 lg:w-fit space-y-2 lg:space-y-0 w-full">- {#if $appSession.isAdmin}- <button type="submit" class="btn btn-sm bg-sources" disabled={loading}- >{loading ? 'Saving...' : 'Save'}</button- >- {#if source.gitlabAppId}- <button class="btn btn-sm" on:click|preventDefault={changeSettings}- >Change GitLab App Settings</button- >- {:else}- <button class="btn btn-sm" on:click|preventDefault|stopPropagation={newApp}- >Create new GitLab App manually</button- >- {/if}- {/if}- </div>- </div>- <div class="grid grid-flow-row gap-2 lg:px-10">- {#if !source.gitlabAppId}- <a- href="https://docs.coollabs.io/coolify/sources#how-to-integrate-with-gitlab"- class="font-bold "- target="_blank noreferrer"- rel="noopener noreferrer">Documentation and detailed instructions.</a- >- <div class="grid grid-cols-2 items-center">- <label for="type" class="text-base font-bold text-stone-100">Application Type</label>- <select name="type" id="type" class="lg:w-96 w-full" bind:value={applicationType}>- <option value="user">User owned application</option>- <option value="group">Group owned application</option>- {#if source.htmlUrl !== 'https://gitlab.com'}- <option value="instance">Instance-wide application (self-hosted)</option>- {/if}- </select>- </div>-- {#if applicationType === 'group'}- <div class="grid grid-cols-2 items-center">- <label for="groupName" class="text-base font-bold text-stone-100">Group Name</label>- <input- class="w-full"- name="groupName"- id="groupName"- required- bind:value={source.gitlabApp.groupName}- />- </div>- {/if}- {/if}-- <div class="grid grid-flow-row gap-2">- <div class="mt-2 grid grid-cols-2 items-center">- <label for="name" class="text-base font-bold text-stone-100">Name</label>- <input class="w-full" name="name" id="name" required bind:value={source.name} />- </div>- </div>- {#if source.gitlabApp.groupName}- <div class="grid grid-cols-2 items-center">- <label for="groupName" class="text-base font-bold text-stone-100">Group Name</label>- <input- class="w-full"- name="groupName"- id="groupName"- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- required- bind:value={source.gitlabApp.groupName}- />- </div>- {/if}- <div class="grid grid-cols-2 items-center">- <label for="htmlUrl" class="text-base font-bold text-stone-100">HTML URL</label>- <input- class="w-full"- name="htmlUrl"- id="htmlUrl"- required- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- bind:value={source.htmlUrl}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="apiUrl" class="text-base font-bold text-stone-100">API URL</label>- <input- class="w-full"- name="apiUrl"- id="apiUrl"- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- required- bind:value={source.apiUrl}- />- </div>- {#if selfHosted}- <div class="grid grid-cols-2 items-center">- <label for="customPort" class="text-base font-bold text-stone-100"- >Custom SSH User <Explainer- explanation={'If you use a self-hosted version of Git, you can provide a custom SSH user for all the Git related actions.'}- /></label- >- <input- class="w-full"- name="customUser"- id="customUser"- disabled={!selfHosted}- readonly={!selfHosted}- required- bind:value={source.customUser}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="customPort" class="text-base font-bold text-stone-100"- >Custom SSH Port <Explainer- explanation={'If you use a self-hosted version of Git, you can provide custom port for all the Git related actions.'}- /></label- >- <input- class="w-full"- name="customPort"- id="customPort"- disabled={!selfHosted}- readonly={!selfHosted}- required- bind:value={source.customPort}- />- </div>- {/if}- <div class="grid grid-cols-2 items-start">- <div class="flex-col">- <label for="oauthId" class="pt-2 text-base font-bold text-stone-100"- >OAuth ID- {#if !source.gitlabAppId}- <Explainer- explanation="The OAuth ID is the unique identifier of the GitLab application. <br>You can find it <span class=' text-settings' >in the URL</span> of your GitLab OAuth Application."- />- {/if}</label- >- </div>- <input- class="w-full"- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- on:change={checkOauthId}- bind:this={oauthIdEl}- name="oauthId"- id="oauthId"- type="number"- required- bind:value={source.gitlabApp.oauthId}- />- </div>-- <div class="grid grid-cols-2 items-center">- <label for="appId" class="text-base font-bold text-stone-100">Application ID</label>- <input- class="w-full"- name="appId"- id="appId"- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- required- bind:value={source.gitlabApp.appId}- />- </div>- <div class="grid grid-cols-2 items-center">- <label for="appSecret" class="text-base font-bold text-stone-100">Secret</label>- <CopyPasswordField- disabled={source.gitlabAppId}- readonly={source.gitlabAppId}- isPasswordField={true}- name="appSecret"- id="appSecret"- required- bind:value={source.gitlabApp.appSecret}- />- </div>- </div>- </form>-</div>diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/components/New.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/components/New.sveltedeleted file mode 100644index 113f6d0e36..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/components/New.svelte+++ /dev/null@@ -1,62 +0,0 @@-<script lang="ts">- export let source: any;- export let settings: any;- import Github from './Github.svelte';- import Gitlab from './Gitlab.svelte';- function setPredefined(type: string) {- switch (type) {- case 'github':- source.name = 'Github.com';- source.type = 'github';- source.htmlUrl = 'https://github.com';- source.apiUrl = 'https://api.github.com';- source.organization = undefined;-- break;- case 'gitlab':- source.name = 'Gitlab.com';- source.type = 'gitlab';- source.htmlUrl = 'https://gitlab.com';- source.apiUrl = 'https://gitlab.com/api';- source.organization = undefined;-- break;- case 'bitbucket':- source.name = 'Bitbucket.com';- source.type = 'bitbucket';- source.htmlUrl = 'https://bitbucket.com';- source.apiUrl = 'https://api.bitbucket.org';- source.organization = undefined;-- break;- default:- break;- }- }-</script>--<div class="flex h-20 items-center space-x-2 p-5 px-6 font-bold">- <div class="-mb-1 flex-col">- <div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">- New Git Source- </div>- </div>-</div>-<div class="flex flex-col justify-center">- <div class="flex-col space-y-2 pb-10 text-center">- <div class="text-xl font-bold text-white">Select a git type</div>- <div class="flex justify-center space-x-2">- <button class="btn btn-sm" on:click={() => setPredefined('github')}>GitHub</button>- <button class="btn btn-sm" on:click={() => setPredefined('gitlab')}>GitLab</button>- </div>- </div>- {#if source?.type}- <div>- {#if source.type === 'github'}- <Github bind:source {settings} />- {:else if source.type === 'gitlab'}- <Gitlab bind:source {settings} />- {/if}- </div>- {/if}-</div>diff --git a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Source.svelte b/apps/trpc-experimental/client/src/routes/sources/[id]/components/Source.sveltedeleted file mode 100644index 4097720c58..0000000000--- a/apps/trpc-experimental/client/src/routes/sources/[id]/components/Source.svelte+++ /dev/null@@ -1,58 +0,0 @@-<script lang="ts">- import Github from './Github.svelte';- import Gitlab from './Gitlab.svelte';-- export let source: any;- export let settings: any;-</script>--<div class="flex h-20 items-center space-x-2 p-5 px-6 font-bold">- <div class="-mb-5 flex-col">- <div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">- Configuration- </div>- <span class="text-xs">{source.name}</span>- </div>- {#if source?.type === 'gitlab'}- <svg viewBox="0 0 128 128" class="w-8">- <path- fill="#FC6D26"- d="M126.615 72.31l-7.034-21.647L105.64 7.76c-.716-2.206-3.84-2.206-4.556 0l-13.94 42.903H40.856L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664 1.385 72.31a4.792 4.792 0 001.74 5.358L64 121.894l60.874-44.227a4.793 4.793 0 001.74-5.357"- /><path fill="#E24329" d="M64 121.894l23.144-71.23H40.856L64 121.893z" /><path- fill="#FC6D26"- d="M64 121.894l-23.144-71.23H8.42L64 121.893z"- /><path- fill="#FCA326"- d="M8.42 50.663L1.384 72.31a4.79 4.79 0 001.74 5.357L64 121.894 8.42 50.664z"- /><path- fill="#E24329"- d="M8.42 50.663h32.436L26.916 7.76c-.717-2.206-3.84-2.206-4.557 0L8.42 50.664z"- /><path fill="#FC6D26" d="M64 121.894l23.144-71.23h32.437L64 121.893z" /><path- fill="#FCA326"- d="M119.58 50.663l7.035 21.647a4.79 4.79 0 01-1.74 5.357L64 121.894l55.58-71.23z"- /><path- fill="#E24329"- d="M119.58 50.663H87.145l13.94-42.902c.717-2.206 3.84-2.206 4.557 0l13.94 42.903z"- />- </svg>- {:else if source?.type === 'github'}- <svg viewBox="0 0 128 128" class="w-8">- <g fill="#ffffff"- ><path- fill-rule="evenodd"- clip-rule="evenodd"- d="M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z"- /><path- d="M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zM31.312 98.012c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237zm4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"- /></g- >- </svg>- {/if}-</div>-<div>- {#if source.type === 'github'}- <Github bind:source {settings} />- {:else if source.type === 'gitlab'}- <Gitlab bind:source {settings} />- {/if}-</div>diff --git a/apps/trpc-experimental/client/static/favicon.png b/apps/trpc-experimental/client/static/favicon.pngdeleted file mode 100644index 2c4482801f..0000000000Binary files a/apps/trpc-experimental/client/static/favicon.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/appsmith.png b/apps/trpc-experimental/client/static/icons/appsmith.pngdeleted file mode 100644index 314ad9053c..0000000000Binary files a/apps/trpc-experimental/client/static/icons/appsmith.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/appwrite.png b/apps/trpc-experimental/client/static/icons/appwrite.pngdeleted file mode 100644index 2aaa3e1abe..0000000000Binary files a/apps/trpc-experimental/client/static/icons/appwrite.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/compose.png b/apps/trpc-experimental/client/static/icons/compose.pngdeleted file mode 100644index b9cfb40e1f..0000000000Binary files a/apps/trpc-experimental/client/static/icons/compose.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/default.png b/apps/trpc-experimental/client/static/icons/default.pngdeleted file mode 100644index 2c4482801f..0000000000Binary files a/apps/trpc-experimental/client/static/icons/default.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/directus.svg b/apps/trpc-experimental/client/static/icons/directus.svgdeleted file mode 100644index e530a836b1..0000000000--- a/apps/trpc-experimental/client/static/icons/directus.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none">- <rect width="200" height="200" rx="30" fill="#4422dd" />- <path fill-rule="evenodd" clip-rule="evenodd" d="M148.883 112.106C148.124 111.916 147.491 111.726 146.921 111.473C146.5 111.286 146.148 111.064 145.839 110.807C145.635 110.637 145.547 110.369 145.572 110.104C145.877 106.923 145.541 104.118 145.845 100.964C147.111 88.1771 155.15 92.2285 162.367 90.1395C166.511 88.9722 170.655 86.6747 172.169 82.1555C172.417 81.4157 172.199 80.6114 171.684 80.0255C166.956 74.6505 161.723 69.9012 156.037 65.831C136.973 52.2582 112.197 46.6221 89.4444 49.9189C88.5825 50.0438 88.1307 50.9987 88.6016 51.7314C91.4833 56.2156 95.2849 59.8853 99.6447 62.5864C100.437 63.0773 100.119 64.1376 99.2092 63.9337C97.0711 63.4543 94.3238 62.5194 91.7401 60.6961C91.4911 60.5204 91.1704 60.4762 90.8873 60.5891C89.7323 61.0497 88.0643 61.7139 86.6859 62.3089C85.8925 62.6514 85.731 63.6747 86.3841 64.2407C97.8122 74.1467 114.437 75.6526 127.455 67.7254C128.248 67.2425 129.518 68.2348 129.262 69.1275C128.853 70.5574 128.375 72.523 127.867 75.1999C124.638 91.5322 115.332 90.2661 103.811 86.1514C80.7898 77.8076 67.7294 84.9328 56.1177 70.8281C55.3109 69.8481 53.8925 69.5083 52.9328 70.3392C50.5358 72.4145 49.1172 75.4437 49.1172 78.6816C49.1172 82.5166 51.0968 85.8018 54.0311 87.7682C54.3981 88.0142 54.8858 87.9102 55.1598 87.5636C55.8748 86.6586 56.4597 86.0587 57.1881 85.6794C57.9852 85.2641 58.374 86.4045 57.701 87.0003C55.2349 89.1839 54.527 91.7851 52.9154 96.913C50.3832 104.952 51.4594 113.182 39.6217 115.334C33.3546 115.651 33.4812 119.892 31.2023 126.222C28.5575 133.863 25.0942 137.247 18.6844 143.924C17.8078 144.837 17.7326 146.297 18.696 147.118C21.2564 149.301 23.8969 149.421 26.5812 148.315C33.228 145.53 38.3556 136.921 43.1666 131.35C48.5474 125.146 61.4613 127.805 71.21 121.728C76.4677 118.504 79.6266 114.386 78.6164 108.217C78.4537 107.224 79.5906 106.626 80.0029 107.545C80.7856 109.289 81.2988 111.149 81.5121 113.071C81.5681 113.575 82.0184 113.947 82.5245 113.919C93.0718 113.326 106.711 124.959 119.458 128.107C120.233 128.299 120.784 127.403 120.346 126.736C119.539 125.507 118.854 124.233 118.308 122.931C117.744 121.578 117.317 120.265 117.015 118.998C116.778 118.007 118.226 117.741 118.721 118.632C121.99 124.524 128.523 130.057 137.615 130.717C140.717 130.97 144.136 130.59 147.681 129.514C151.922 128.248 155.847 126.602 160.531 127.488C164.013 128.122 167.241 129.894 169.267 132.869C172.11 137.015 178.11 138.113 181.308 133.781C181.743 133.191 181.78 132.403 181.492 131.729C174.45 115.223 156.569 114.089 148.883 112.106Z" fill="white" />-</svg>diff --git a/apps/trpc-experimental/client/static/icons/fider.png b/apps/trpc-experimental/client/static/icons/fider.pngdeleted file mode 100644index 6e34acafe6..0000000000Binary files a/apps/trpc-experimental/client/static/icons/fider.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/ghost.png b/apps/trpc-experimental/client/static/icons/ghost.pngdeleted file mode 100644index f4e3006547..0000000000Binary files a/apps/trpc-experimental/client/static/icons/ghost.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/gitea.svg b/apps/trpc-experimental/client/static/icons/gitea.svgdeleted file mode 100644index 87c7c82db4..0000000000--- a/apps/trpc-experimental/client/static/icons/gitea.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" style="enable-background:new 0 0 640 640" xml:space="preserve" width="32" height="32"><path style="fill:#fff" d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12z"/><path style="fill:#609926" d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9 0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6zM125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1zm300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1z"/><path style="fill:#609926" d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8-1.9 8 2 16.3 9.1 20 7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3 7.8 4 17.4 1.7 22.5-5.3 5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8l-24.6 50.4z"/></svg>diff --git a/apps/trpc-experimental/client/static/icons/glitchtip.svg b/apps/trpc-experimental/client/static/icons/glitchtip.svgdeleted file mode 100644index 2ae389aaef..0000000000--- a/apps/trpc-experimental/client/static/icons/glitchtip.svg+++ /dev/null@@ -1,46 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- style="isolation:isolate"- viewBox="0 0 400 400"->- <defs>- <clipPath id="_clipPath_5kOQy2sGcuF9aeG3NHWmCAGgMEPQrnNW">- <rect width="400" height="400" />- </clipPath>- </defs>- <g clip-path="url(#_clipPath_5kOQy2sGcuF9aeG3NHWmCAGgMEPQrnNW)">- <g>- <g>- <path- d=" M 276.155 367.684 L 337.655 367.684 L 337.655 180.781 L 205.525 180.781 L 205.525 241.801 L 267.987 241.801 L 267.987 258.617 C 267.987 291.29 238.678 308.586 202.162 308.586 C 156.998 308.586 127.689 282.641 127.689 226.906 L 127.689 173.094 C 127.689 117.359 156.998 91.414 202.162 91.414 C 241.08 91.414 261.74 112.554 271.83 138.5 L 331.409 104.386 C 306.424 52.976 261.74 26.55 202.162 26.55 C 111.353 26.55 50.333 88.531 50.333 201.441 C 50.333 313.872 110.873 373.45 187.748 373.45 C 238.197 373.45 268.947 347.985 273.752 314.352 L 276.155 314.352 L 276.155 367.684 Z "- fill="rgb(132,24,128)"- />- </g>- <g opacity="0.5">- <path- d=" M 139.701 175.78 L 139.701 173.094 C 139.701 117.359 169.01 91.414 214.174 91.414 C 253.092 91.414 273.752 112.554 283.842 138.5 L 343.421 104.386 C 318.436 52.976 273.752 26.55 214.174 26.55 C 128.962 26.55 69.981 81.125 63.033 181.145 L 139.701 175.78 Z "- fill-rule="evenodd"- fill="rgb(233,64,86)"- />- </g>- <g opacity="0.5">- <path- d=" M 349.667 305.194 L 349.667 247.137 L 279.998 252.019 L 279.998 258.617 C 279.998 291.29 250.69 308.586 214.174 308.586 C 179.697 308.586 154.459 293.467 144.446 261.518 L 70.341 266.711 C 76.285 288.796 85.348 307.563 96.86 322.909 L 349.667 305.194 Z "- fill-rule="evenodd"- fill="rgb(233,64,86)"- />- </g>- <path- d=" M 337.655 247.03 L 337.655 180.781 L 205.525 180.781 L 205.525 241.801 L 267.987 241.801 L 267.987 251.912 L 337.655 247.03 Z M 132.401 261.413 C 129.319 251.534 127.689 240.048 127.689 226.906 L 127.689 175.099 L 51.069 180.468 C 50.581 187.25 50.333 194.242 50.333 201.441 C 50.333 225.632 53.136 247.376 58.301 266.606 L 132.401 261.413 Z "- fill-rule="evenodd"- fill="rgb(233,64,86)"- />- <path- d=" M 337.655 305.862 L 337.655 367.684 L 276.155 367.684 L 276.155 314.352 L 273.752 314.352 C 268.947 347.985 238.197 373.45 187.748 373.45 C 146.712 373.45 110.33 356.473 85.327 323.543 L 337.655 305.862 Z "- fill-rule="evenodd"- fill="rgb(255,63,42)"- />- </g>- </g>-</svg>\ No newline at end of filediff --git a/apps/trpc-experimental/client/static/icons/grafana.png b/apps/trpc-experimental/client/static/icons/grafana.pngdeleted file mode 100644index c8659494f8..0000000000Binary files a/apps/trpc-experimental/client/static/icons/grafana.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/hasura.png b/apps/trpc-experimental/client/static/icons/hasura.pngdeleted file mode 100644index 30490401ea..0000000000Binary files a/apps/trpc-experimental/client/static/icons/hasura.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/keycloak.png b/apps/trpc-experimental/client/static/icons/keycloak.pngdeleted file mode 100644index 8f29f7af7a..0000000000Binary files a/apps/trpc-experimental/client/static/icons/keycloak.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/languagetool.svg b/apps/trpc-experimental/client/static/icons/languagetool.svgdeleted file mode 100644index fc8cab02fa..0000000000--- a/apps/trpc-experimental/client/static/icons/languagetool.svg+++ /dev/null@@ -1,2 +0,0 @@--<svg xmlns="http://www.w3.org/2000/svg" width="367" height="277" fill="none" viewBox="0 0 367 277"><path fill="#fff" fill-rule="evenodd" d="M52.114 0H87.64c14.753 0 26.712 11.96 26.712 26.712v103.641h69.45v37.396h-80.135c-14.752 0-26.711-11.959-26.711-26.711V37.396H52.114V0ZM323.77 26.712v27.78h-37.396V37.396h-29.383V167.75h-37.396V37.396h-29.383v17.096h-37.396v-27.78C152.817 11.959 164.776 0 179.528 0H297.06c14.752 0 26.711 11.96 26.711 26.712Z" clip-rule="evenodd"/><path fill="#5EB5FF" d="M34.778 268.051 0 243.21c10.217-14.304 20.757-25.37 31.846-33.133 12.326-8.628 25.423-13.212 38.966-13.212 12.576 0 23.468 3.05 33.199 8.888 3.926 2.356 7.532 5.073 11.178 8.29 2.514 2.218 4.31 3.959 8.13 7.779 5.791 5.791 8.197 7.914 11.076 9.641 3.124 1.875 6.423 2.798 11.21 2.798 4.792 0 8.104-.926 11.245-2.807 2.893-1.732 5.319-3.868 11.108-9.646l.053-.053c3.802-3.795 5.615-5.549 8.13-7.763 3.641-3.206 7.241-5.915 11.158-8.263 9.711-5.821 20.572-8.864 33.099-8.864 12.527 0 23.387 3.043 33.098 8.864 3.917 2.348 7.517 5.057 11.159 8.263 2.514 2.214 4.328 3.968 8.129 7.763l.053.053c5.789 5.778 8.215 7.914 11.109 9.646 3.14 1.881 6.452 2.807 11.244 2.807 4.265 0 8.975-1.648 14.457-5.486 6.719-4.703 13.987-12.334 21.578-22.961l34.778 24.841c-10.217 14.304-20.757 25.37-31.847 33.133C321.831 272.416 308.733 277 295.19 277c-12.57 0-23.465-3.047-33.203-8.879-3.929-2.354-7.541-5.069-11.192-8.283-2.522-2.22-4.34-3.978-8.15-7.781l-.053-.053c-5.775-5.764-8.193-7.893-11.07-9.618-3.112-1.865-6.385-2.782-11.124-2.782-4.74 0-8.013.917-11.125 2.782-2.877 1.725-5.295 3.854-11.07 9.618l-.053.053c-3.809 3.803-5.628 5.561-8.15 7.781-3.651 3.214-7.262 5.929-11.192 8.283-9.738 5.832-20.632 8.879-33.203 8.879-12.575 0-23.467-3.05-33.199-8.888-3.926-2.356-7.532-5.073-11.178-8.29-2.514-2.218-4.31-3.959-8.13-7.779-5.79-5.791-8.196-7.914-11.076-9.641-3.124-1.875-6.422-2.798-11.21-2.798-4.264 0-8.974 1.648-14.457 5.486-6.718 4.703-13.986 12.334-21.577 22.961Z"/></svg>\ No newline at end of filediff --git a/apps/trpc-experimental/client/static/icons/lavalink.png b/apps/trpc-experimental/client/static/icons/lavalink.pngdeleted file mode 100644index 114458bf28..0000000000Binary files a/apps/trpc-experimental/client/static/icons/lavalink.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/libretranslate.png b/apps/trpc-experimental/client/static/icons/libretranslate.pngdeleted file mode 100644index b22316b685..0000000000Binary files a/apps/trpc-experimental/client/static/icons/libretranslate.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/meilisearch.svg b/apps/trpc-experimental/client/static/icons/meilisearch.svgdeleted file mode 100644index 72a8f30e11..0000000000--- a/apps/trpc-experimental/client/static/icons/meilisearch.svg+++ /dev/null@@ -1,40 +0,0 @@-<svg- viewBox="0 0 127 74"- xmlns="http://www.w3.org/2000/svg"- ><path- d="M.825 73.993l23.244-59.47A21.85 21.85 0 0144.42.625h14.014L35.19 60.096a21.85 21.85 0 01-20.352 13.897H.825z"- fill="url(#meilisearch_logo_svg__paint0_linear_0_6)"- /><path- d="M34.925 73.993l23.243-59.47A21.85 21.85 0 0178.52.626h14.013L69.29 60.096a21.85 21.85 0 01-20.351 13.897H34.925z"- fill="url(#meilisearch_logo_svg__paint1_linear_0_6)"- /><path- d="M69.026 73.993l23.244-59.47A21.85 21.85 0 01112.621.626h14.014l-23.244 59.47a21.851 21.851 0 01-20.352 13.897H69.026z"- fill="url(#meilisearch_logo_svg__paint2_linear_0_6)"- /><defs- ><linearGradient- id="meilisearch_logo_svg__paint0_linear_0_6"- x1="126.635"- y1="-4.978"- x2="0.825"- y2="66.098"- gradientUnits="userSpaceOnUse"- ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient- ><linearGradient- id="meilisearch_logo_svg__paint1_linear_0_6"- x1="126.635"- y1="-4.978"- x2="0.825"- y2="66.098"- gradientUnits="userSpaceOnUse"- ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient- ><linearGradient- id="meilisearch_logo_svg__paint2_linear_0_6"- x1="126.635"- y1="-4.978"- x2="0.825"- y2="66.098"- gradientUnits="userSpaceOnUse"- ><stop stop-color="#FF5CAA" /><stop offset="1" stop-color="#FF4E62" /></linearGradient- ></defs- ></svg->diff --git a/apps/trpc-experimental/client/static/icons/minio.png b/apps/trpc-experimental/client/static/icons/minio.pngdeleted file mode 100644index d1b32be9ed..0000000000Binary files a/apps/trpc-experimental/client/static/icons/minio.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/moodle.png b/apps/trpc-experimental/client/static/icons/moodle.pngdeleted file mode 100644index a5cec5be7c..0000000000Binary files a/apps/trpc-experimental/client/static/icons/moodle.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/n8n.svg b/apps/trpc-experimental/client/static/icons/n8n.svgdeleted file mode 100644index 262a6e7a6d..0000000000--- a/apps/trpc-experimental/client/static/icons/n8n.svg+++ /dev/null@@ -1 +0,0 @@-<svg width="163" height="60" viewBox="0 0 80 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3baeee6e="" class=""><path fill-rule="evenodd" clip-rule="evenodd" d="M78.9736 8C78.9736 12.4183 75.3919 16 70.9736 16C67.246 16 64.1138 13.4505 63.2257 10H52.0564C50.101 10 48.4323 11.4137 48.1108 13.3424L47.782 15.3152C47.4698 17.1883 46.5223 18.8185 45.1824 20C46.5223 21.1815 47.4698 22.8117 47.782 24.6848L48.1108 26.6576C48.4323 28.5863 50.101 30 52.0564 30H55.2257C56.1138 26.5495 59.246 24 62.9736 24C67.3919 24 70.9736 27.5817 70.9736 32C70.9736 36.4183 67.3919 40 62.9736 40C59.246 40 56.1138 37.4505 55.2257 34H52.0564C48.1457 34 44.8082 31.1727 44.1653 27.3152L43.8364 25.3424C43.515 23.4137 41.8462 22 39.8909 22H36.628C35.6294 25.2801 32.5802 27.6667 28.9736 27.6667C25.367 27.6667 22.3179 25.2801 21.3193 22H16.628C15.6294 25.2801 12.5802 27.6667 8.97363 27.6667C4.55536 27.6667 0.973633 24.0849 0.973633 19.6667C0.973633 15.2484 4.55536 11.6667 8.97363 11.6667C12.8204 11.6667 16.033 14.3817 16.7998 18H21.1475C21.9143 14.3817 25.1269 11.6667 28.9736 11.6667C32.8204 11.6667 36.033 14.3817 36.7998 18H39.8909C41.8462 18 43.515 16.5863 43.8364 14.6576L44.1653 12.6848C44.8082 8.8273 48.1457 6 52.0564 6L63.2257 6C64.1138 2.54955 67.246 0 70.9736 0C75.3919 0 78.9736 3.58172 78.9736 8ZM74.9736 8C74.9736 10.2091 73.1828 12 70.9736 12C68.7645 12 66.9736 10.2091 66.9736 8C66.9736 5.79086 68.7645 4 70.9736 4C73.1828 4 74.9736 5.79086 74.9736 8ZM8.97363 23.6667C11.1828 23.6667 12.9736 21.8758 12.9736 19.6667C12.9736 17.4575 11.1828 15.6667 8.97363 15.6667C6.76449 15.6667 4.97363 17.4575 4.97363 19.6667C4.97363 21.8758 6.76449 23.6667 8.97363 23.6667ZM28.9736 23.6667C31.1828 23.6667 32.9736 21.8758 32.9736 19.6667C32.9736 17.4575 31.1828 15.6667 28.9736 15.6667C26.7645 15.6667 24.9736 17.4575 24.9736 19.6667C24.9736 21.8758 26.7645 23.6667 28.9736 23.6667ZM62.9736 36C65.1828 36 66.9736 34.2091 66.9736 32C66.9736 29.7909 65.1828 28 62.9736 28C60.7645 28 58.9736 29.7909 58.9736 32C58.9736 34.2091 60.7645 36 62.9736 36Z" fill="#EA4B71" data-v-3baeee6e="" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#a21335;"></path></svg>\ No newline at end of filediff --git a/apps/trpc-experimental/client/static/icons/nocodb.png b/apps/trpc-experimental/client/static/icons/nocodb.pngdeleted file mode 100644index dec31a6dd8..0000000000Binary files a/apps/trpc-experimental/client/static/icons/nocodb.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/openblocks.png b/apps/trpc-experimental/client/static/icons/openblocks.pngdeleted file mode 100644index b64d1bab30..0000000000Binary files a/apps/trpc-experimental/client/static/icons/openblocks.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/plausibleanalytics.png b/apps/trpc-experimental/client/static/icons/plausibleanalytics.pngdeleted file mode 100644index c02e68d636..0000000000Binary files a/apps/trpc-experimental/client/static/icons/plausibleanalytics.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/pocketbase.svg b/apps/trpc-experimental/client/static/icons/pocketbase.svgdeleted file mode 100644index 5b5de956be..0000000000--- a/apps/trpc-experimental/client/static/icons/pocketbase.svg+++ /dev/null@@ -1,9 +0,0 @@-<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">-<rect x="25.536" y="13.4861" width="1.71467" height="16.7338" transform="rotate(45.9772 25.536 13.4861)" fill="white"/>-<path d="M26 14H36.8C37.4628 14 38 14.5373 38 15.2V36.8C38 37.4628 37.4628 38 36.8 38H15.2C14.5373 38 14 37.4628 14 36.8V26" fill="white"/>-<path d="M26 14H36.8C37.4628 14 38 14.5373 38 15.2V36.8C38 37.4628 37.4628 38 36.8 38H15.2C14.5373 38 14 37.4628 14 36.8V26" stroke="#16161a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M26 14V3.2C26 2.53726 25.4628 2 24.8 2H3.2C2.53726 2 2 2.53726 2 3.2V24.8C2 25.4628 2.53726 26 3.2 26H14" fill="white"/>-<path d="M26 14V3.2C26 2.53726 25.4628 2 24.8 2H3.2C2.53726 2 2 2.53726 2 3.2V24.8C2 25.4628 2.53726 26 3.2 26H14" stroke="#16161a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M10 20C9.44772 20 9 19.5523 9 19V8C9 7.44772 9.44772 7 10 7H13.7531C14.4801 7 15.1591 7.07311 15.7901 7.21932C16.4348 7.35225 16.9904 7.58487 17.4568 7.91718C17.9369 8.2362 18.3141 8.6682 18.5885 9.21319C18.8628 9.74489 19 10.4029 19 11.1871C19 11.9448 18.856 12.6028 18.5679 13.161C18.2936 13.7193 17.9163 14.1779 17.4362 14.5368C16.9561 14.8957 16.4005 15.1616 15.7695 15.3344C15.1385 15.5072 14.4664 15.5936 13.7531 15.5936H13.0247C12.4724 15.5936 12.0247 16.0413 12.0247 16.5936V19C12.0247 19.5523 11.577 20 11.0247 20H10ZM12.0247 12.2607C12.0247 12.813 12.4724 13.2607 13.0247 13.2607H13.5679C15.214 13.2607 16.037 12.5695 16.037 11.1871C16.037 10.5092 15.8244 10.0307 15.3992 9.75153C14.9877 9.47239 14.3772 9.33282 13.5679 9.33282H13.0247C12.4724 9.33282 12.0247 9.78054 12.0247 10.3328V12.2607Z" fill="#16161a"/>-<path d="M22 33C21.4477 33 21 32.5523 21 32V21C21 20.4477 21.4477 20 22 20H25.4877C26.1844 20 26.8265 20.0532 27.4139 20.1595C28.015 20.2526 28.5342 20.4254 28.9713 20.6779C29.4085 20.9305 29.75 21.2628 29.9959 21.6748C30.2555 22.0869 30.3852 22.6053 30.3852 23.2301C30.3852 23.5225 30.3374 23.8149 30.2418 24.1074C30.1598 24.3998 30.0232 24.6723 29.832 24.9248C29.6407 25.1774 29.4016 25.4034 29.1148 25.6028C28.837 25.7958 28.5081 25.939 28.1279 26.0323C28.1058 26.0378 28.0902 26.0575 28.0902 26.0802V26.0802C28.0902 26.1039 28.1073 26.1242 28.1306 26.1286C29.0669 26.3034 29.7774 26.6332 30.2623 27.1181C30.7541 27.6099 31 28.2945 31 29.1718C31 29.8364 30.8702 30.408 30.6107 30.8865C30.3511 31.365 29.9891 31.7638 29.5246 32.0828C29.0601 32.3885 28.5137 32.6212 27.8852 32.7807C27.2705 32.9269 26.6011 33 25.8771 33H22ZM24.0123 24.2239C24.0123 24.7762 24.46 25.2239 25.0123 25.2239H25.3443C26.082 25.2239 26.6148 25.0844 26.9426 24.8052C27.2705 24.5261 27.4344 24.1339 27.4344 23.6288C27.4344 23.1503 27.2637 22.8113 26.9221 22.612C26.5943 22.3993 26.0751 22.2929 25.3648 22.2929H25.0123C24.46 22.2929 24.0123 22.7407 24.0123 23.2929V24.2239ZM24.0123 29.7071C24.0123 30.2593 24.46 30.7071 25.0123 30.7071H25.6311C27.2432 30.7071 28.0492 30.1222 28.0492 28.9525C28.0492 28.3809 27.8511 27.9688 27.4549 27.7163C27.0724 27.4637 26.4645 27.3374 25.6311 27.3374H25.0123C24.46 27.3374 24.0123 27.7851 24.0123 28.3374V29.7071Z" fill="#16161a"/>-</svg>diff --git a/apps/trpc-experimental/client/static/icons/searxng.svg b/apps/trpc-experimental/client/static/icons/searxng.svgdeleted file mode 100644index c0dd11b438..0000000000--- a/apps/trpc-experimental/client/static/icons/searxng.svg+++ /dev/null@@ -1,56 +0,0 @@--<svg- xmlns:dc="http://purl.org/dc/elements/1.1/"- xmlns:cc="http://creativecommons.org/ns#"- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"- xmlns:svg="http://www.w3.org/2000/svg"- xmlns="http://www.w3.org/2000/svg"- id="svg8"- version="1.1"- viewBox="0 0 92 92"- height="92mm"- width="92mm">- <defs- id="defs2" />- <metadata- id="metadata5">- <rdf:RDF>- <cc:Work- rdf:about="">- <dc:format>image/svg+xml</dc:format>- <dc:type- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />- <dc:title></dc:title>- </cc:Work>- </rdf:RDF>- </metadata>- <g- transform="translate(-40.921303,-17.416526)"- id="layer1">- <circle- r="0"- style="fill:none;stroke:#000000;stroke-width:12;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"- cy="92"- cx="75"- id="path3713" />- <circle- r="30"- cy="53.902557"- cx="75.921303"- id="path834"- style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />- <path- d="m 67.514849,37.91524 a 18,18 0 0 1 21.051475,3.312407 18,18 0 0 1 3.137312,21.078282"- id="path852"- style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />- <rect- transform="rotate(-46.234709)"- ry="1.8669105e-13"- y="122.08995"- x="3.7063529"- height="39.963303"- width="18.846331"- id="rect912"- style="opacity:1;fill:#3050ff;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />- </g>-</svg>diff --git a/apps/trpc-experimental/client/static/icons/trilium.png b/apps/trpc-experimental/client/static/icons/trilium.pngdeleted file mode 100644index 249aceef34..0000000000Binary files a/apps/trpc-experimental/client/static/icons/trilium.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/umami.svg b/apps/trpc-experimental/client/static/icons/umami.svgdeleted file mode 100644index b9d1abca3f..0000000000--- a/apps/trpc-experimental/client/static/icons/umami.svg+++ /dev/null@@ -1,78 +0,0 @@-<svg- version="1.0"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 856.000000 856.000000"- preserveAspectRatio="xMidYMid meet"->- <metadata> Created by potrace 1.11, written by Peter Selinger 2001-2013 </metadata>- <g- transform="translate(0.000000,856.000000) scale(0.100000,-0.100000)"- fill="#fff"- stroke="none"- >- <path- d="M4027 8163 c-2 -2 -28 -5 -58 -7 -50 -4 -94 -9 -179 -22 -19 -2 -48--6 -65 -9 -47 -6 -236 -44 -280 -55 -22 -6 -49 -12 -60 -15 -34 -6 -58 -13--130 -36 -38 -13 -72 -23 -75 -24 -29 -6 -194 -66 -264 -96 -49 -22 -95 -39--102 -39 -7 0 -19 -7 -28 -15 -8 -9 -18 -15 -21 -14 -7 1 -197 -92 -205 -101--3 -3 -21 -13 -40 -24 -79 -42 -123 -69 -226 -137 -94 -62 -246 -173 -280--204 -6 -5 -29 -25 -52 -43 -136 -111 -329 -305 -457 -462 -21 -25 -41 -47--44 -50 -4 -3 -22 -26 -39 -52 -18 -25 -38 -52 -45 -60 -34 -35 -207 -308--259 -408 -13 -25 -25 -47 -28 -50 -11 -11 -121 -250 -159 -346 -42 -105 -114--321 -126 -374 l-7 -30 -263 0 c-245 0 -268 -2 -321 -21 -94 -35 -171 -122--191 -216 -9 -39 -8 -852 0 -938 9 -87 16 -150 23 -195 3 -19 6 -48 8 -65 3--29 14 -97 22 -140 3 -11 7 -36 10 -55 3 -19 9 -51 14 -70 5 -19 11 -46 14--60 29 -138 104 -401 145 -505 5 -11 23 -58 42 -105 18 -47 42 -105 52 -130-11 -25 21 -49 22 -55 3 -10 109 -224 164 -330 18 -33 50 -89 71 -124 22 -34-40 -64 40 -66 0 -8 104 -161 114 -167 6 -4 7 -8 3 -8 -4 0 4 -12 18 -27 14--15 25 -32 25 -36 0 -5 6 -14 13 -21 6 -7 21 -25 32 -41 11 -15 34 -44 50 -64-17 -21 41 -52 55 -70 13 -18 33 -43 45 -56 11 -13 42 -49 70 -81 100 -118 359--369 483 -469 34 -27 62 -53 62 -57 0 -5 6 -8 13 -8 7 0 19 -9 27 -20 8 -11-19 -20 26 -20 6 0 19 -9 29 -20 10 -11 22 -20 27 -20 5 0 23 -13 41 -30 18--16 37 -30 44 -30 6 0 13 -4 15 -8 3 -8 186 -132 194 -132 2 0 27 -15 56 -34-132 -83 377 -207 558 -280 36 -15 74 -31 85 -36 62 -26 220 -81 320 -109 79--23 191 -53 214 -57 14 -3 28 -7 31 -9 4 -2 20 -7 36 -9 16 -3 40 -8 54 -11-14 -3 36 -8 50 -11 14 -2 36 -7 50 -10 13 -3 40 -8 60 -10 19 -2 46 -7 60 -10-54 -10 171 -25 320 -40 90 -9 613 -12 636 -4 11 5 28 4 37 -1 9 -6 17 -6 17--1 0 4 10 8 23 9 29 0 154 12 192 18 17 3 46 7 65 9 70 10 131 20 183 32 16 3-38 7 50 9 45 7 165 36 252 60 50 14 100 28 112 30 12 3 34 10 48 15 14 5 25 7-25 4 0 -4 6 -2 13 3 6 6 30 16 52 22 22 7 47 15 55 18 8 4 17 7 20 7 10 2 179-68 240 94 96 40 342 159 395 191 17 10 53 30 80 46 28 15 81 47 118 71 37 24-72 44 76 44 5 0 11 3 13 8 2 4 30 25 63 47 33 22 62 42 65 45 3 3 50 38 105-79 55 40 105 79 110 85 6 6 24 22 40 34 85 65 465 430 465 447 0 3 8 13 18 23-9 10 35 40 57 66 22 27 47 56 55 65 8 9 42 52 74 96 32 44 71 96 85 115 140-183 358 576 461 830 12 30 28 69 36 85 24 56 123 355 117 355 -3 0 -1 6 5 13-6 6 14 30 18 52 10 48 9 46 17 65 5 13 37 155 52 230 9 42 35 195 40 231 34-235 40 357 40 804 l0 420 -24 44 c-46 87 -143 157 -231 166 -19 2 -144 4 -276-4 l-242 1 -36 118 c-21 64 -46 139 -56 166 -11 27 -20 52 -20 57 0 5 -11 33--25 63 -14 30 -25 58 -25 61 0 18 -152 329 -162 333 -5 2 -8 10 -8 18 0 8 -4-14 -10 14 -5 0 -9 3 -8 8 3 9 -40 82 -128 217 -63 97 -98 145 -187 259 -133-171 -380 420 -559 564 -71 56 -132 102 -138 102 -5 0 -10 3 -10 8 0 4 -25 23--55 42 -30 19 -55 38 -55 43 0 4 -6 7 -13 7 -7 0 -22 8 -33 18 -11 9 -37 26--59 37 -21 11 -44 25 -50 30 -41 37 -413 220 -540 266 -27 9 -61 22 -75 27--14 5 -28 10 -32 11 -4 1 -28 10 -53 21 -25 11 -46 19 -48 18 -2 -1 -109 29--137 40 -13 4 -32 9 -65 16 -5 1 -16 5 -22 9 -7 5 -13 6 -13 3 0 -2 -15 0 -32-5 -18 5 -44 11 -58 14 -14 3 -36 7 -50 10 -14 3 -50 9 -80 15 -30 6 -64 12--75 14 -11 2 -45 6 -75 10 -30 4 -71 9 -90 12 -19 3 -53 6 -75 7 -22 1 -44 5--50 8 -11 7 -542 9 -548 2z m57 -404 c7 10 436 8 511 -3 22 -3 60 -8 85 -11-25 -2 56 -6 70 -9 14 -2 43 -7 65 -10 38 -5 58 -9 115 -21 14 -3 34 -7 45 -9-11 -2 58 -14 105 -26 47 -12 92 -23 100 -25 35 -7 279 -94 308 -109 17 -9 34--16 37 -16 3 1 20 -6 38 -14 17 -8 68 -31 112 -51 44 -20 82 -35 84 -35 2 1 7--3 10 -8 3 -5 43 -28 88 -51 45 -23 87 -48 93 -56 7 -8 17 -15 22 -15 12 0-192 -121 196 -132 2 -4 8 -8 13 -8 10 0 119 -86 220 -172 102 -87 256 -244-349 -357 25 -30 53 -63 63 -73 9 -10 17 -22 17 -28 0 -5 3 -10 8 -10 4 0 25--27 46 -60 22 -33 43 -60 48 -60 4 0 8 -5 8 -11 0 -6 11 -25 25 -43 14 -18 25--38 25 -44 0 -7 4 -12 8 -12 5 0 16 -15 25 -32 9 -18 30 -55 47 -83 46 -77-161 -305 154 -305 -4 0 -2 -6 4 -12 6 -7 23 -47 40 -88 16 -41 33 -84 37 -95-5 -11 9 -22 10 -25 0 -3 11 -36 24 -73 13 -38 21 -70 19 -73 -3 -2 -1386 -3--3075 -2 l-3071 3 38 110 c47 137 117 301 182 425 62 118 167 295 191 320 9-11 17 22 17 25 0 7 39 63 58 83 6 7 26 35 44 60 18 26 37 52 43 57 6 6 34 37-61 70 48 59 271 286 329 335 17 14 53 43 80 65 28 22 52 42 55 45 3 3 21 17-40 30 19 14 40 28 45 32 40 32 105 78 109 78 3 0 28 16 55 35 26 19 53 35 58-35 5 0 18 8 29 18 17 15 53 35 216 119 118 60 412 176 422 166 3 -4 6 -2 6 4-0 6 12 13 28 16 15 3 52 12 82 21 30 9 63 19 73 21 10 2 27 7 37 10 10 3 29 8-42 10 13 3 48 10 78 16 30 7 61 12 68 12 6 0 12 4 12 9 0 5 5 6 10 3 6 -4 34--2 63 4 51 11 71 13 197 26 36 4 67 9 69 11 2 2 10 -1 17 -7 8 -6 14 -7 18 0z"- />- </g>-</svg>diff --git a/apps/trpc-experimental/client/static/icons/uptimekuma.svg b/apps/trpc-experimental/client/static/icons/uptimekuma.svgdeleted file mode 100644index e67bc836a1..0000000000--- a/apps/trpc-experimental/client/static/icons/uptimekuma.svg+++ /dev/null@@ -1,154 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- version="1.1"- preserveAspectRatio="xMidYMid meet"- viewBox="0 0 640 640"- width="640"- height="640"- ><defs- ><path- d="M407.55 916.24C471.25 916.24 522.89 967.88 522.89 1031.57C522.89 1113.88 522.89 1245.44 522.89 1327.74C522.89 1391.44 471.25 1443.08 407.55 1443.08C325.25 1443.08 193.68 1443.08 111.38 1443.08C47.69 1443.08 -3.95 1391.44 -3.95 1327.74C-3.95 1245.44 -3.95 1113.88 -3.95 1031.57C-3.95 967.88 47.69 916.24 111.38 916.24C193.68 916.24 325.25 916.24 407.55 916.24Z"- id="a1LdTs1gvU"- /><linearGradient- id="gradientcoH7TNh19"- gradientUnits="userSpaceOnUse"- x1="256.07"- y1="1132.14"- x2="609.11"- y2="1480.42"- ><stop style="stop-color: #c2efd2;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #8ff0e5;stop-opacity: 1"- offset="100%"- /></linearGradient- ><path- d="M-467.41 394.63C-467.41 554.76 -597.42 684.76 -757.55 684.76C-917.68 684.76 -1047.69 554.76 -1047.69 394.63C-1047.69 234.5 -917.68 104.49 -757.55 104.49C-597.42 104.49 -467.41 234.5 -467.41 394.63Z"- id="a1uaEBd4xM"- /><path- d="M-96.99 -586.14C-57.24 -619.85 -5.79 -604.75 19.26 -580.46C31.43 -568.66 56.57 -546.36 40.97 -491.67C32.76 -462.87 10.41 -436.4 -26.05 -412.27C-15.07 -377.85 -5.6 -344.76 2.36 -313C14.29 -265.36 13.55 -189.67 -26.05 -155.4C-67.27 -119.73 -166.91 -104.09 -234.24 -103.09C-301.57 -102.1 -406.19 -113.09 -461.6 -155.4C-517.01 -197.7 -512.24 -257.07 -498.04 -313C-488.58 -350.28 -476.43 -383.38 -461.6 -412.27C-505.54 -441.3 -530.54 -467.76 -536.6 -491.67C-545.68 -527.54 -530.93 -565.61 -501.12 -586.14C-471.31 -606.67 -435.18 -606.9 -400.45 -586.14C-377.3 -572.3 -354.79 -542.13 -332.92 -495.62C-287.85 -505.25 -254.96 -509.57 -234.24 -508.6C-214.74 -507.68 -186.57 -503.36 -149.72 -495.62C-135.81 -537.95 -118.23 -568.12 -96.99 -586.14Z"- id="f8p7QlEjN3"- /><linearGradient- id="gradienta4Tg99ZOOp"- gradientUnits="userSpaceOnUse"- x1="-440.25"- y1="-388.59"- x2="-100.49"- y2="-147.33"- ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #7ae6a1;stop-opacity: 1"- offset="100%"- /></linearGradient- ><path- d="M-86.03 -10.69C-61.35 -10.69 -41.34 9.32 -41.34 34.01C-41.34 119.07 -41.34 329.58 -41.34 414.65C-41.34 439.33 -61.35 459.34 -86.03 459.34C-136.01 459.34 -241.25 459.34 -291.23 459.34C-315.92 459.34 -335.93 439.33 -335.93 414.65C-335.93 329.58 -335.93 119.07 -335.93 34.01C-335.93 9.32 -315.92 -10.69 -291.23 -10.69C-241.25 -10.69 -136.01 -10.69 -86.03 -10.69Z"- id="d32ZZRxd1S"- /><linearGradient- id="gradientb1JxIe4xUm"- gradientUnits="userSpaceOnUse"- x1="-791.65"- y1="-33.27"- x2="892.1"- y2="418.94"- ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #5ae98f;stop-opacity: 1"- offset="100%"- /></linearGradient- ><path- d="M-257.95 458.12C-247.92 449.62 -234.93 453.43 -228.61 459.56C-225.54 462.54 -219.19 468.17 -223.13 481.97C-225.2 489.24 -230.84 495.92 -240.05 502.01C-237.27 510.7 -234.88 519.06 -232.88 527.07C-229.86 539.1 -230.05 558.21 -240.05 566.86C-250.45 575.86 -275.6 579.81 -292.6 580.06C-309.6 580.31 -336.01 577.54 -349.99 566.86C-363.98 556.18 -362.77 541.19 -359.19 527.07C-356.8 517.66 -353.73 509.31 -349.99 502.01C-361.08 494.69 -367.39 488.01 -368.92 481.97C-371.22 472.92 -367.49 463.31 -359.97 458.12C-352.44 452.94 -343.32 452.88 -334.56 458.12C-328.71 461.62 -323.03 469.23 -317.51 480.97C-306.13 478.54 -297.83 477.45 -292.6 477.7C-287.68 477.93 -280.56 479.02 -271.26 480.97C-267.75 470.29 -263.32 462.67 -257.95 458.12Z"- id="b19LRRbPrG"- /><path- d="M490.4 235.64C544.09 358.38 544.09 435.34 490.4 466.5C409.85 513.24 199.96 527.49 139.54 455.64C99.26 407.74 99.26 334.4 139.54 235.64C180.5 168.18 238.71 134.45 314.17 134.45C389.64 134.45 448.38 168.18 490.4 235.64Z"- id="bN5StdyPU"- /><linearGradient- id="gradientb1HT15TsY0"- gradientUnits="userSpaceOnUse"- x1="259.78"- y1="261.15"- x2="463.85"- y2="456.49"- ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #86e6a9;stop-opacity: 1"- offset="100%"- /></linearGradient- ><path- d="M393.81 -775.89C428.26 -748.09 439.99 -725.54 429 -708.22C412.51 -682.24 353.16 -646.07 324.5 -657.93C305.39 -665.83 294.22 -687.32 290.97 -722.41C292.69 -748.43 304.61 -767.19 326.73 -778.69C348.85 -790.19 371.21 -789.26 393.81 -775.89Z"- id="arh6miPP2"- /><linearGradient- id="gradientc2g6rBSAiq"- gradientUnits="userSpaceOnUse"- x1="330.1"- y1="-733.26"- x2="419.69"- y2="-707.1"- ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #86e6a9;stop-opacity: 1"- offset="100%"- /></linearGradient- ><path- d="M675.36 -369.24C669.97 -325.31 657.02 -303.43 636.51 -303.61C605.74 -303.87 543.67 -335.15 538.59 -365.74C535.2 -386.14 547.54 -406.99 575.61 -428.29C598.61 -440.58 620.83 -440.37 642.29 -427.67C663.74 -414.97 674.77 -395.49 675.36 -369.24Z"- id="a2VENFzCvL"- /><linearGradient- id="gradientc18GuJy4sZ"- gradientUnits="userSpaceOnUse"- x1="605.5"- y1="-400.8"- x2="630.64"- y2="-310.92"- ><stop style="stop-color: #5cdd8b;stop-opacity: 1" offset="0%" /><stop- style="stop-color: #86e6a9;stop-opacity: 1"- offset="100%"- /></linearGradient- ></defs- ><g- ><g- ><g><use xlink:href="#a1LdTs1gvU" opacity="1" fill="url(#gradientcoH7TNh19)" /></g><g- ><use xlink:href="#a1uaEBd4xM" opacity="1" fill="#ebf0ed" fill-opacity="1" /></g- ><g- ><use xlink:href="#f8p7QlEjN3" opacity="1" fill="url(#gradienta4Tg99ZOOp)" /><g- ><use- xlink:href="#f8p7QlEjN3"- opacity="1"- fill-opacity="0"- stroke="#ffffff"- stroke-width="98"- stroke-opacity="0.57"- /></g- ></g- ><g- ><use xlink:href="#d32ZZRxd1S" opacity="1" fill="url(#gradientb1JxIe4xUm)" /><g- ><use- xlink:href="#d32ZZRxd1S"- opacity="1"- fill-opacity="0"- stroke="#f2f2f2"- stroke-width="60"- stroke-opacity="0.51"- /></g- ></g- ><g- ><use xlink:href="#b19LRRbPrG" opacity="1" fill="#d8ad9a" fill-opacity="1" /><g- ><use- xlink:href="#b19LRRbPrG"- opacity="1"- fill-opacity="0"- stroke="#ffffff"- stroke-width="17"- stroke-opacity="1"- /></g- ></g- ><g- ><use xlink:href="#bN5StdyPU" opacity="1" fill="url(#gradientb1HT15TsY0)" /><g- ><use- xlink:href="#bN5StdyPU"- opacity="1"- fill-opacity="0"- stroke="#f2f2f2"- stroke-width="200"- stroke-opacity="0.51"- /></g- ></g- ><g><use xlink:href="#arh6miPP2" opacity="1" fill="url(#gradientc2g6rBSAiq)" /></g><g- ><use xlink:href="#a2VENFzCvL" opacity="1" fill="url(#gradientc18GuJy4sZ)" /></g- ></g- ></g- ></svg->diff --git a/apps/trpc-experimental/client/static/icons/vaultwarden.svg b/apps/trpc-experimental/client/static/icons/vaultwarden.svgdeleted file mode 100644index 15433d8ed8..0000000000--- a/apps/trpc-experimental/client/static/icons/vaultwarden.svg+++ /dev/null@@ -1,30 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- xmlns:xlink="http://www.w3.org/1999/xlink"- version="1.1"- id="Icon"- x="0px"- y="0px"- viewBox="0 0 1024 1024"- style="enable-background:new 0 0 1024 1024;"- xml:space="preserve"->- <style type="text/css">- .st0 {- fill: #175ddc;- }- .st1 {- fill: #ffffff;- }- </style>- <path- id="Background"- class="st0"- d="M1024,864c0,88.4-71.6,160-160,160H160C71.6,1024,0,952.4,0,864V160C0,71.6,71.6,0,160,0h704 c88.4,0,160,71.6,160,160V864z"- />- <path- id="Identity"- class="st1"- d="M829.8,128.6c-6.5-6.5-14.2-9.7-23-9.7H217.2c-8.9,0-16.5,3.2-23,9.7c-6.5,6.5-9.7,14.2-9.7,23 v393.1c0,29.3,5.7,58.4,17.1,87.3c11.4,28.8,25.6,54.4,42.5,76.8c16.9,22.3,37,44.1,60.4,65.3c23.4,21.2,45,38.7,64.7,52.7 c19.8,14,40.4,27.2,61.9,39.7c21.5,12.5,36.8,20.9,45.8,25.3c9,4.4,16.3,7.9,21.7,10.2c4.1,2,8.5,3.1,13.3,3.1c4.8,0,9.2-1,13.3-3.1 c5.5-2.4,12.7-5.8,21.8-10.2c9-4.4,24.3-12.9,45.8-25.3c21.5-12.5,42.1-25.7,61.9-39.7c19.8-14,41.4-31.6,64.8-52.7 c23.4-21.2,43.5-42.9,60.4-65.3c16.9-22.4,31-47.9,42.5-76.8c11.4-28.8,17.1-57.9,17.1-87.3V151.7 C839.6,142.8,836.3,135.1,829.8,128.6z M753.8,548.4c0,142.3-241.8,264.9-241.8,264.9V203.1h241.8 C753.8,203.1,753.8,406.1,753.8,548.4z"- />-</svg>diff --git a/apps/trpc-experimental/client/static/icons/vscodeserver.png b/apps/trpc-experimental/client/static/icons/vscodeserver.pngdeleted file mode 100644index 37a084767a..0000000000Binary files a/apps/trpc-experimental/client/static/icons/vscodeserver.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/weblate.svg b/apps/trpc-experimental/client/static/icons/weblate.svgdeleted file mode 100644index 99c6ac483f..0000000000--- a/apps/trpc-experimental/client/static/icons/weblate.svg+++ /dev/null@@ -1,56 +0,0 @@-<svg- xmlns="http://www.w3.org/2000/svg"- version="1.1"- viewBox="0 0 250 250"- ><linearGradient- id="a"- x1=".3965"- x2="98.808"- y1="55.253"- y2="55.253"- gradientTransform="scale(.98308 1.0172)"- gradientUnits="userSpaceOnUse"- ><stop stop-color="#00d2e6" offset="0" /><stop- stop-color="#2eccaa"- offset="1"- /></linearGradient- ><linearGradient- id="b"- x1="49.017"- x2="99.793"- y1="137.89"- y2="113.96"- gradientTransform="scale(1.1631 .8598)"- gradientUnits="userSpaceOnUse"- ><stop stop-opacity="0" offset="0" /><stop offset=".51413" /><stop- stop-opacity="0"- offset="1"- /></linearGradient- ><linearGradient- id="c"- x1="201.82"- x2="103.58"- y1="57.649"- y2="57.649"- gradientTransform="scale(.98308 1.0172)"- gradientUnits="userSpaceOnUse"- ><stop stop-color="#1fa385" offset="0" /><stop- stop-color="#2eccaa"- offset="1"- /></linearGradient- ><g transform="translate(50,76)" fill-rule="evenodd"- ><path- d="m127.25 111.61c-2.8884-0.0145-5.7666-0.6024-8.4797-1.7847-6.1117-2.6626-11.493-7.6912-15.872-14.495 1.2486-2.2193 2.3738-4.5173 3.3784-6.8535 4.4051-10.243 6.5-21.46 6.6607-32.593-0.0233-0.22082-0.0416-0.44244-0.0552-0.66483l-0.0121-0.57132c-0.01-4.3654-0.67459-8.7898-2.1767-12.909-1.7304-4.7458-4.4887-9.4955-8.865-11.348-0.79519-0.33595-1.6316-0.47701-2.4642-0.45737-5.5049-10.289-5.6799-20.149 0-29.537 0.10115 0 0.20619 3.9293e-4 0.30734 0.001179 6.7012 0.07387 13.34 2.1418 19.021 5.7536 15.469 9.835 23.182 29.001 23.352 47.818 2e-3 0.22083-3.9e-4 0.44126-7e-3 0.66169h0.0868c-0.0226 19.887-4.8049 40.054-14.875 56.979zm-34.3 31.216c-14.448 5.9425-31.228 5.6236-45.549-1.025-16.476-7.6476-29.065-22.512-36.818-39.479-13.262-29.022-13.566-63.715-0.98815-93.182 9.4458 3.7788 17.845-2.2397 17.845-2.2397s-0.01945 9.2605 8.9478 13.905c-9.2007 21.556-8.979 47.167 0.2412 68.173 4.4389 10.107 11.22 19.519 20.619 24.842 3.3547 1.8996 7.041 3.126 10.833 3.5862 0.01404 0.0219 0.02808 0.0439 0.04214 0.0658 6.6965 10.449 15.132 19.157 24.828 25.354z"- fill="url(#a)"- fill-rule="nonzero"- /><path- d="m127.24 111.61c-2.8869-0.0151-5.7636-0.60296-8.4755-1.7846-6.1127-2.663-11.495-7.6928-15.874-14.498 1.2494-2.2205 2.3754-4.5198 3.3806-6.8572 1.3282-3.0884 2.4463-6.2648 3.3644-9.501 2.128-7.4978 30.382 2.0181 26.072 14.371-2.2239 6.373-5.0394 12.509-8.4675 18.27zm-34.302 31.212c-14.446 5.9396-31.224 5.6198-45.543-1.0278-16.476-7.6476 0.44739-33.303 9.8465-27.981 3.3533 1.8988 7.0378 3.125 10.828 3.5856 0.01567 0.0245 0.03135 0.049 0.04704 0.0735 6.695 10.447 15.128 19.153 24.821 25.349z"- fill="url(#b)"- opacity=".3"- /><path- d="m56.762 54.628c-0.0066-0.22043-0.0093-0.44086-7e-3 -0.66169 0.17001-18.817 7.8827-37.983 23.352-47.818 5.6811-3.6118 12.32-5.6798 19.021-5.7536 0.10115-7.8585e-4 0.20619-0.001179 0.30734-0.001179v29.537c-0.83254-0.01965-1.669 0.12141-2.4642 0.45737-4.3763 1.8523-7.1345 6.602-8.865 11.348-1.5021 4.1191-2.1669 8.5434-2.1767 12.909l-0.01206 0.57132c-0.01362 0.2224-0.0319 0.44401-0.05524 0.66483 0.16067 11.134 2.2556 22.35 6.6607 32.593 4.9334 11.472 12.775 22.025 23.847 26.849 8.3526 3.6397 17.612 2.7811 25.182-1.5057 9.3991-5.3226 16.18-14.734 20.619-24.842 9.2202-21.006 9.4419-46.617 0.24121-68.173 8.9673-4.6444 8.9478-13.905 8.9478-13.905s8.3993 6.0185 17.845 2.2397c12.578 29.466 12.274 64.16-0.98815 93.182-7.7535 16.967-20.343 31.831-36.818 39.479-14.667 6.809-31.913 6.9792-46.591 0.58389-13.19-5.7489-23.918-16.106-31.637-28.15-11.179-17.443-16.472-38.678-16.496-59.604z"- fill="url(#c)"- fill-rule="nonzero"- /></g- ></svg->diff --git a/apps/trpc-experimental/client/static/icons/whoogle.png b/apps/trpc-experimental/client/static/icons/whoogle.pngdeleted file mode 100644index 5908757485..0000000000Binary files a/apps/trpc-experimental/client/static/icons/whoogle.png and /dev/null differdiff --git a/apps/trpc-experimental/client/static/icons/wordpress.svg b/apps/trpc-experimental/client/static/icons/wordpress.svgdeleted file mode 100644index 31149e2baa..0000000000--- a/apps/trpc-experimental/client/static/icons/wordpress.svg+++ /dev/null@@ -1,4 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" role="img" width="28" height="28" viewBox="0 0 28 28">- <path fill="#fff" d="M13.6052 0.923525C16.1432 0.923525 18.6137 1.67953 20.7062 3.09703C22.7447 4.47403 24.3512 6.41803 25.3097 8.68603C26.9837 12.6415 26.5382 17.164 24.1352 20.7145C22.7582 22.753 20.8142 24.3595 18.5462 25.318C14.5907 26.992 10.0682 26.5465 6.51772 24.1435C4.47922 22.7665 2.87272 20.8225 1.91422 18.5545C0.240225 14.599 0.685725 10.0765 3.08872 6.52603C4.46572 4.48753 6.40973 2.88103 8.67772 1.92253C10.2302 1.26103 11.9177 0.923525 13.6052 0.923525ZM13.6052 0.113525C6.15322 0.113525 0.105225 6.16153 0.105225 13.6135C0.105225 21.0655 6.15322 27.1135 13.6052 27.1135C21.0572 27.1135 27.1052 21.0655 27.1052 13.6135C27.1052 6.16153 21.0572 0.113525 13.6052 0.113525Z" data-darkreader-inline-fill="" style="--darkreader-inline-fill:currentColor;"></path>- <path fill="#fff" d="M2.36011 13.6133C2.36011 17.9198 4.81711 21.8618 8.70511 23.7383L3.33211 9.03684C2.68411 10.4813 2.36011 12.0338 2.36011 13.6133ZM21.2061 13.0463C21.2061 11.6558 20.7066 10.6973 20.2746 9.94134C19.8426 9.18534 19.1676 8.22684 19.1676 7.30884C19.1676 6.39084 19.9506 5.31084 21.0576 5.31084H21.2061C16.6296 1.11234 9.51511 1.42284 5.31661 6.01284C4.91161 6.45834 4.53361 6.93084 4.20961 7.43034H4.93861C6.11311 7.43034 7.93561 7.28184 7.93561 7.28184C8.54311 7.24134 8.61061 8.13234 8.00311 8.21334C8.00311 8.21334 7.39561 8.28084 6.72061 8.32134L10.8111 20.5118L13.2681 13.1273L11.5131 8.32134C10.9056 8.28084 10.3386 8.21334 10.3386 8.21334C9.73111 8.17284 9.79861 7.25484 10.4061 7.28184C10.4061 7.28184 12.2691 7.43034 13.3626 7.43034C14.4561 7.43034 16.3596 7.28184 16.3596 7.28184C16.9671 7.24134 17.0346 8.13234 16.4271 8.21334C16.4271 8.21334 15.8196 8.28084 15.1446 8.32134L19.2081 20.4173L20.3691 16.7453C20.8821 15.1388 21.1926 14.0048 21.1926 13.0328L21.2061 13.0463ZM13.7946 14.5853L10.4196 24.3998C12.6876 25.0613 15.1041 25.0073 17.3316 24.2243L17.2506 24.0758L13.7946 14.5853ZM23.4741 8.21334C23.5281 8.59134 23.5551 8.98284 23.5551 9.37434C23.5551 10.5218 23.3391 11.8043 22.7046 13.3973L19.2621 23.3333C24.5271 20.2688 26.4036 13.5593 23.4741 8.21334Z" data-darkreader-inline-fill="" style="--darkreader-inline-fill:currentColor;"></path>-</svg>\ No newline at end of filediff --git a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff b/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woffdeleted file mode 100644index d5e713b461..0000000000Binary files a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff and /dev/null differdiff --git a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2 b/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2deleted file mode 100644index 6e1053fbc7..0000000000Binary files a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-500.woff2 and /dev/null differdiff --git a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff b/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woffdeleted file mode 100644index ccce523feb..0000000000Binary files a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff and /dev/null differdiff --git a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2 b/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2deleted file mode 100644index 7457692a28..0000000000Binary files a/apps/trpc-experimental/client/static/poppins-v19-latin-ext_latin_devanagari-regular.woff2 and /dev/null differdiff --git a/apps/trpc-experimental/client/svelte.config.js b/apps/trpc-experimental/client/svelte.config.jsdeleted file mode 100644index b7195b4695..0000000000--- a/apps/trpc-experimental/client/svelte.config.js+++ /dev/null@@ -1,21 +0,0 @@-import adapter from '@sveltejs/adapter-static';-import preprocess from 'svelte-preprocess';--/** @type {import('@sveltejs/kit').Config} */-const config = {- preprocess: [- preprocess({- postcss: true- })- ],- kit: {- adapter: adapter({- pages: 'build',- assets: 'build',- fallback: 'index.html',- precompress: true- })- }-};--export default config;diff --git a/apps/trpc-experimental/client/tailwind.config.cjs b/apps/trpc-experimental/client/tailwind.config.cjsdeleted file mode 100644index cab4ddbb7f..0000000000--- a/apps/trpc-experimental/client/tailwind.config.cjs+++ /dev/null@@ -1,76 +0,0 @@-const defaultTheme = require('tailwindcss/defaultTheme');--module.exports = {- content: [- './**/*.html',- './src/**/*.{js,jsx,ts,tsx,svelte}',- './node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}'- ],- important: true,- daisyui: {- themes: [- {- coollabs: {- 'base-100': '#323232',- 'base-200': '#242424',- 'base-300': '#181818',- primary: '#6B16ED',- 'primary-content': '#fff',- secondary: '#343232',- accent: '#343232',- neutral: '#272626',- info: '#0284c7',- success: '#16A34A',- warning: '#FFFF00',- error: '#DC2626',- '--rounded-btn': '0.3rem',- '--btn-text-case': 'normal'- }- }- ]- },- theme: {- extend: {- keyframes: {- wiggle: {- '0%, 100%': { transform: 'rotate(-3deg)' },- '50%': { transform: 'rotate(3deg)' }- }- },- animation: {- wiggle: 'wiggle 0.5s ease-in-out infinite'- },- fontFamily: {- sans: ['Poppins', ...defaultTheme.fontFamily.sans]- },- colors: {- applications: '#16A34A',- databases: '#9333EA',- 'databases-100': '#9b46ea',- destinations: '#0284C7',- sources: '#EA580C',- services: '#DB2777',- settings: '#FEE440',- iam: '#C026D3',- coollabs: '#6B16ED',- 'coollabs-100': '#7317FF',- coolblack: '#141414',- 'coolgray-100': '#181818',- 'coolgray-200': '#202020',- 'coolgray-300': '#242424',- 'coolgray-400': '#282828',- 'coolgray-500': '#323232'- }- }- },- variants: {- scrollbar: ['dark'],- extend: {}- },- darkMode: 'class',- plugins: [- require('tailwindcss-scrollbar'),- require('daisyui'),- require('@tailwindcss/typography')- ]-};diff --git a/apps/trpc-experimental/client/tests/test.ts b/apps/trpc-experimental/client/tests/test.tsdeleted file mode 100644index 4e579377ee..0000000000--- a/apps/trpc-experimental/client/tests/test.ts+++ /dev/null@@ -1,6 +0,0 @@-import { expect, test } from '@playwright/test';--test('index page has expected h1', async ({ page }) => {- await page.goto('/');- expect(await page.textContent('h1')).toBe('Welcome to SvelteKit');-});diff --git a/apps/trpc-experimental/client/tsconfig.json b/apps/trpc-experimental/client/tsconfig.jsondeleted file mode 100644index dc270e7f07..0000000000--- a/apps/trpc-experimental/client/tsconfig.json+++ /dev/null@@ -1,18 +0,0 @@-{- "extends": "./.svelte-kit/tsconfig.json",- "exclude": ["node_modules/*", ".svelte-kit/*", "public/*"],- "compilerOptions": {- "allowJs": true,- "checkJs": true,- "esModuleInterop": true,- "forceConsistentCasingInFileNames": true,- "resolveJsonModule": true,- "skipLibCheck": true,- "sourceMap": true,- "strict": false,- "paths": {- "$lib": ["src/lib"],- "$lib/*": ["src/lib/*"]- }- }-}diff --git a/apps/trpc-experimental/client/vite.config.ts b/apps/trpc-experimental/client/vite.config.tsdeleted file mode 100644index 8eed3af0d9..0000000000--- a/apps/trpc-experimental/client/vite.config.ts+++ /dev/null@@ -1,15 +0,0 @@-import { sveltekit } from '@sveltejs/kit/vite';-import type { UserConfig } from 'vite';--const config: UserConfig = {- server: {- host: '0.0.0.0'- },- plugins: [sveltekit()],- define: {- GITPOD_WORKSPACE_URL: JSON.stringify(process.env.GITPOD_WORKSPACE_URL),- CODESANDBOX_HOST: JSON.stringify(process.env.CODESANDBOX_HOST)- }-};--export default config;diff --git a/apps/trpc-experimental/server/.env-template b/apps/trpc-experimental/server/.env-templatedeleted file mode 100644index d038e068ce..0000000000--- a/apps/trpc-experimental/server/.env-template+++ /dev/null@@ -1,4 +0,0 @@-NODE_ENV="development"--COOLIFY_DATABASE_URL="file:../db/dev.db"-COOLIFY_SECRET_KEY="32-character-long-secret-key"\ No newline at end of filediff --git a/apps/trpc-experimental/server/.prettierrc b/apps/trpc-experimental/server/.prettierrcdeleted file mode 100644index a77fddea90..0000000000--- a/apps/trpc-experimental/server/.prettierrc+++ /dev/null@@ -1,9 +0,0 @@-{- "useTabs": true,- "singleQuote": true,- "trailingComma": "none",- "printWidth": 100,- "plugins": ["prettier-plugin-svelte"],- "pluginSearchDirs": ["."],- "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]-}diff --git a/apps/trpc-experimental/server/build/api/index.js b/apps/trpc-experimental/server/build/api/index.jsdeleted file mode 100644index 2a6289ae91..0000000000--- a/apps/trpc-experimental/server/build/api/index.js+++ /dev/null@@ -1,31 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var api_exports = {};-__export(api_exports, {- default: () => api_default-});-module.exports = __toCommonJS(api_exports);-const root = async (fastify) => {- fastify.get("/", async function(_request, _reply) {- return { status: "ok" };- });-};-var api_default = root;-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/config.js b/apps/trpc-experimental/server/build/config.jsdeleted file mode 100644index 9186a9097f..0000000000--- a/apps/trpc-experimental/server/build/config.js+++ /dev/null@@ -1,32 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var config_exports = {};-__export(config_exports, {- serverConfig: () => serverConfig-});-module.exports = __toCommonJS(config_exports);-const serverConfig = {- dev: false,- port: 2022,- prefix: "/trpc"-};-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- serverConfig-});diff --git a/apps/trpc-experimental/server/build/env.js b/apps/trpc-experimental/server/build/env.jsdeleted file mode 100644index 4555595256..0000000000--- a/apps/trpc-experimental/server/build/env.js+++ /dev/null@@ -1,18 +0,0 @@-"use strict";-const dotenv = require("dotenv");-dotenv.config();-const { z } = require("zod");-const envSchema = z.object({- CODESANDBOX_HOST: z.string().optional(),- NODE_ENV: z.enum(["development", "test", "production"]),- COOLIFY_DATABASE_URL: z.string(),- COOLIFY_SECRET_KEY: z.string().length(32),- COOLIFY_WHITE_LABELED: z.string().optional(),- COOLIFY_WHITE_LABELED_ICON: z.string().optional()-});-const env = envSchema.safeParse(process.env);-if (!env.success) {- console.error("\u274C Invalid environment variables:", JSON.stringify(env.error.format(), null, 4));- process.exit(1);-}-module.exports.env = env.data;diff --git a/apps/trpc-experimental/server/build/index.js b/apps/trpc-experimental/server/build/index.jsdeleted file mode 100644index 5d36a4041f..0000000000--- a/apps/trpc-experimental/server/build/index.js+++ /dev/null@@ -1,5 +0,0 @@-"use strict";-var import_config = require("./config");-var import_server = require("./server");-const server = (0, import_server.createServer)(import_config.serverConfig);-server.start();diff --git a/apps/trpc-experimental/server/build/jobs/applicationBuildQueue.js b/apps/trpc-experimental/server/build/jobs/applicationBuildQueue.jsdeleted file mode 100644index 0c00297a6d..0000000000--- a/apps/trpc-experimental/server/build/jobs/applicationBuildQueue.js+++ /dev/null@@ -1,813 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var import_node_worker_threads = require("node:worker_threads");-var import_crypto = __toESM(require("crypto"));-var import_promises = __toESM(require("fs/promises"));-var import_js_yaml = __toESM(require("js-yaml"));-var import_common = require("../lib/buildPacks/common");-var import_common2 = require("../lib/common");-var importers = __toESM(require("../lib/importers"));-var buildpacks = __toESM(require("../lib/buildPacks"));-var import_prisma = require("../prisma");-var import_executeCommand = require("../lib/executeCommand");-var import_docker = require("../lib/docker");-(async () => {- if (import_node_worker_threads.parentPort) {- import_node_worker_threads.parentPort.on("message", async (message) => {- if (message === "error")- throw new Error("oops");- if (message === "cancel") {- import_node_worker_threads.parentPort.postMessage("cancelled");- await import_prisma.prisma.$disconnect();- process.exit(0);- }- });- const pThrottle = await import("p-throttle");- const throttle = pThrottle.default({- limit: 1,- interval: 2e3- });- const th = throttle(async () => {- try {- const queuedBuilds = await import_prisma.prisma.build.findMany({- where: { status: { in: ["queued", "running"] } },- orderBy: { createdAt: "asc" }- });- const { concurrentBuilds } = await import_prisma.prisma.setting.findFirst({});- if (queuedBuilds.length > 0) {- import_node_worker_threads.parentPort.postMessage({ deploying: true });- const concurrency = concurrentBuilds;- const pAll = await import("p-all");- const actions = [];- for (const queueBuild of queuedBuilds) {- actions.push(async () => {- let application = await import_prisma.prisma.application.findUnique({- where: { id: queueBuild.applicationId },- include: {- dockerRegistry: true,- destinationDocker: true,- gitSource: { include: { githubApp: true, gitlabApp: true } },- persistentStorage: true,- secrets: true,- settings: true,- teams: true- }- });- let {- id: buildId,- type,- gitSourceId,- sourceBranch = null,- pullmergeRequestId = null,- previewApplicationId = null,- forceRebuild,- sourceRepository = null- } = queueBuild;- application = (0, import_common2.decryptApplication)(application);- if (!gitSourceId && application.simpleDockerfile) {- const {- id: applicationId2,- destinationDocker: destinationDocker2,- destinationDockerId: destinationDockerId2,- secrets: secrets2,- port: port2,- persistentStorage: persistentStorage2,- exposePort: exposePort2,- simpleDockerfile,- dockerRegistry: dockerRegistry2- } = application;- const { workdir: workdir2 } = await (0, import_common2.createDirectories)({ repository: applicationId2, buildId });- try {- if (queueBuild.status === "running") {- await (0, import_common.saveBuildLog)({- line: "Building halted, restarting...",- buildId,- applicationId: application.id- });- }- const volumes = persistentStorage2?.map((storage) => {- if (storage.oldPath) {- return `${applicationId2}${storage.path.replace(/\//gi, "-").replace("-app", "")}:${storage.path}`;- }- return `${applicationId2}${storage.path.replace(/\//gi, "-")}:${storage.path}`;- }) || [];- if (destinationDockerId2) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: { status: "running" }- });- try {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId2,- command: `docker ps -a --filter 'label=com.docker.compose.service=${applicationId2}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId2,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId2,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- }- let envs = [];- if (secrets2.length > 0) {- envs = [- ...envs,- ...(0, import_common2.generateSecrets)(secrets2, pullmergeRequestId, false, port2)- ];- }- await import_promises.default.writeFile(`${workdir2}/Dockerfile`, simpleDockerfile);- if (dockerRegistry2) {- const { url, username, password } = dockerRegistry2;- await (0, import_common.saveDockerRegistryCredentials)({ url, username, password, workdir: workdir2 });- }- const labels = (0, import_common.makeLabelForSimpleDockerfile)({- applicationId: applicationId2,- type,- port: exposePort2 ? `${exposePort2}:${port2}` : port2- });- try {- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(":")[0]}`]: {- name: volume.split(":")[0]- }- };- });- const composeFile = {- version: "3.8",- services: {- [applicationId2]: {- build: {- context: workdir2- },- image: `${applicationId2}:${buildId}`,- container_name: applicationId2,- volumes,- labels,- environment: envs,- depends_on: [],- expose: [port2],- ...exposePort2 ? { ports: [`${exposePort2}:${port2}`] } : {},- ...(0, import_docker.defaultComposeConfiguration)(destinationDocker2.network)- }- },- networks: {- [destinationDocker2.network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await import_promises.default.writeFile(`${workdir2}/docker-compose.yml`, import_js_yaml.default.dump(composeFile));- await (0, import_executeCommand.executeCommand)({- debug: true,- dockerId: destinationDocker2.id,- command: `docker compose --project-directory ${workdir2} up -d`- });- await (0, import_common.saveBuildLog)({ line: "Deployed \u{1F389}", buildId, applicationId: applicationId2 });- } catch (error) {- await (0, import_common.saveBuildLog)({ line: error, buildId, applicationId: applicationId2 });- const foundBuild = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: {- status: "failed"- }- });- }- throw new Error(error);- }- }- } catch (error) {- const foundBuild = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: {- status: "failed"- }- });- }- if (error !== 1) {- await (0, import_common.saveBuildLog)({ line: error, buildId, applicationId: application.id });- }- if (error instanceof Error) {- await (0, import_common.saveBuildLog)({- line: error.message,- buildId,- applicationId: application.id- });- }- await import_promises.default.rm(workdir2, { recursive: true, force: true });- return;- }- try {- if (application.dockerRegistryImageName) {- const customTag2 = application.dockerRegistryImageName.split(":")[1] || buildId;- const imageName2 = application.dockerRegistryImageName.split(":")[0];- await (0, import_common.saveBuildLog)({- line: `Pushing ${imageName2}:${customTag2} to Docker Registry... It could take a while...`,- buildId,- applicationId: application.id- });- await (0, import_common2.pushToRegistry)(application, workdir2, buildId, imageName2, customTag2);- await (0, import_common.saveBuildLog)({ line: "Success", buildId, applicationId: application.id });- }- } catch (error) {- if (error.stdout) {- await (0, import_common.saveBuildLog)({ line: error.stdout, buildId, applicationId: applicationId2 });- }- if (error.stderr) {- await (0, import_common.saveBuildLog)({ line: error.stderr, buildId, applicationId: applicationId2 });- }- } finally {- await import_promises.default.rm(workdir2, { recursive: true, force: true });- await import_prisma.prisma.build.update({- where: { id: buildId },- data: { status: "success" }- });- }- return;- }- const originalApplicationId = application.id;- const {- id: applicationId,- name,- destinationDocker,- destinationDockerId,- gitSource,- configHash,- fqdn,- projectId,- secrets,- phpModules,- settings,- persistentStorage,- pythonWSGI,- pythonModule,- pythonVariable,- denoOptions,- exposePort,- baseImage,- baseBuildImage,- deploymentType,- gitCommitHash,- dockerRegistry- } = application;- let {- branch,- repository,- buildPack,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- dockerFileLocation,- dockerComposeFileLocation,- dockerComposeConfiguration,- denoMainFile- } = application;- let imageId = applicationId;- let domain = (0, import_common2.getDomain)(fqdn);- let location = null;- let tag = null;- let customTag = null;- let imageName = null;- let imageFoundLocally = false;- let imageFoundRemotely = false;- if (pullmergeRequestId) {- const previewApplications = await import_prisma.prisma.previewApplication.findMany({- where: { applicationId: originalApplicationId, pullmergeRequestId }- });- if (previewApplications.length > 0) {- previewApplicationId = previewApplications[0].id;- }- branch = sourceBranch;- domain = `${pullmergeRequestId}.${domain}`;- imageId = `${applicationId}-${pullmergeRequestId}`;- repository = sourceRepository || repository;- }- const { workdir, repodir } = await (0, import_common2.createDirectories)({ repository, buildId });- try {- if (queueBuild.status === "running") {- await (0, import_common.saveBuildLog)({- line: "Building halted, restarting...",- buildId,- applicationId: application.id- });- }- const currentHash = import_crypto.default.createHash("sha256").update(- JSON.stringify({- pythonWSGI,- pythonModule,- pythonVariable,- deploymentType,- denoOptions,- baseImage,- baseBuildImage,- buildPack,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- secrets,- branch,- repository,- fqdn- })- ).digest("hex");- const { debug } = settings;- if (!debug) {- await (0, import_common.saveBuildLog)({- line: `Debug logging is disabled. Enable it above if necessary!`,- buildId,- applicationId- });- }- const volumes = persistentStorage?.map((storage) => {- if (storage.oldPath) {- return `${applicationId}${storage.path.replace(/\//gi, "-").replace("-app", "")}:${storage.path}`;- }- return `${applicationId}${storage.path.replace(/\//gi, "-")}:${storage.path}`;- }) || [];- try {- dockerComposeConfiguration = JSON.parse(dockerComposeConfiguration);- } catch (error) {- }- let deployNeeded = true;- let destinationType;- if (destinationDockerId) {- destinationType = "docker";- }- if (destinationType === "docker") {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: { status: "running" }- });- const configuration = await (0, import_common.setDefaultConfiguration)(application);- buildPack = configuration.buildPack;- port = configuration.port;- installCommand = configuration.installCommand;- startCommand = configuration.startCommand;- buildCommand = configuration.buildCommand;- publishDirectory = configuration.publishDirectory;- baseDirectory = configuration.baseDirectory || "";- dockerFileLocation = configuration.dockerFileLocation;- dockerComposeFileLocation = configuration.dockerComposeFileLocation;- denoMainFile = configuration.denoMainFile;- const commit = await importers[gitSource.type]({- applicationId,- debug,- workdir,- repodir,- githubAppId: gitSource.githubApp?.id,- gitlabAppId: gitSource.gitlabApp?.id,- customPort: gitSource.customPort,- gitCommitHash,- configuration,- repository,- branch,- buildId,- apiUrl: gitSource.apiUrl,- htmlUrl: gitSource.htmlUrl,- projectId,- deployKeyId: gitSource.gitlabApp?.deployKeyId || null,- privateSshKey: (0, import_common2.decrypt)(gitSource.gitlabApp?.privateSshKey) || null,- forPublic: gitSource.forPublic- });- if (!commit) {- throw new Error("No commit found?");- }- tag = commit.slice(0, 7);- if (pullmergeRequestId) {- tag = `${commit.slice(0, 7)}-${pullmergeRequestId}`;- }- if (application.dockerRegistryImageName) {- imageName = application.dockerRegistryImageName.split(":")[0];- customTag = application.dockerRegistryImageName.split(":")[1] || tag;- } else {- customTag = tag;- imageName = applicationId;- }- if (pullmergeRequestId) {- customTag = `${customTag}-${pullmergeRequestId}`;- }- try {- await import_prisma.prisma.build.update({ where: { id: buildId }, data: { commit } });- } catch (err) {- }- if (!pullmergeRequestId) {- if (configHash !== currentHash) {- deployNeeded = true;- if (configHash) {- await (0, import_common.saveBuildLog)({- line: "Configuration changed",- buildId,- applicationId- });- }- } else {- deployNeeded = false;- }- } else {- deployNeeded = true;- }- try {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker image inspect ${applicationId}:${tag}`- });- imageFoundLocally = true;- } catch (error) {- }- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await (0, import_common.saveDockerRegistryCredentials)({- url,- username,- password,- workdir- });- }- try {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker ${location ? `--config ${location}` : ""} pull ${imageName}:${customTag}`- });- imageFoundRemotely = true;- } catch (error) {- }- let imageFound = `${applicationId}:${tag}`;- if (imageFoundRemotely) {- imageFound = `${imageName}:${customTag}`;- }- await (0, import_common.copyBaseConfigurationFiles)(- buildPack,- workdir,- buildId,- applicationId,- baseImage- );- const labels = (0, import_common.makeLabelForStandaloneApplication)({- applicationId,- fqdn,- name,- type,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- port: exposePort ? `${exposePort}:${port}` : port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory- });- if (forceRebuild)- deployNeeded = true;- if (!imageFoundLocally && !imageFoundRemotely || deployNeeded) {- if (buildPack === "static") {- await buildpacks.staticApp({- dockerId: destinationDocker.id,- network: destinationDocker.network,- buildId,- applicationId,- domain,- name,- type,- volumes,- labels,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- publishDirectory,- debug,- commit,- tag,- workdir,- port: exposePort ? `${exposePort}:${port}` : port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- phpModules,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- dockerComposeConfiguration,- dockerComposeFileLocation,- denoMainFile,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- forceRebuild- });- } else if (buildpacks[buildPack])- await buildpacks[buildPack]({- dockerId: destinationDocker.id,- network: destinationDocker.network,- buildId,- applicationId,- domain,- name,- type,- volumes,- labels,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- publishDirectory,- debug,- commit,- tag,- workdir,- port: exposePort ? `${exposePort}:${port}` : port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- phpModules,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- dockerComposeConfiguration,- dockerComposeFileLocation,- denoMainFile,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- forceRebuild- });- else {- await (0, import_common.saveBuildLog)({- line: `Build pack ${buildPack} not found`,- buildId,- applicationId- });- throw new Error(`Build pack ${buildPack} not found.`);- }- } else {- if (imageFoundRemotely || deployNeeded) {- await (0, import_common.saveBuildLog)({- line: `Container image ${imageFound} found in Docker Registry - reuising it`,- buildId,- applicationId- });- } else {- if (imageFoundLocally || deployNeeded) {- await (0, import_common.saveBuildLog)({- line: `Container image ${imageFound} found locally - reuising it`,- buildId,- applicationId- });- }- }- }- if (buildPack === "compose") {- try {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=coolify.applicationId=${applicationId}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- }- try {- await (0, import_executeCommand.executeCommand)({- debug,- buildId,- applicationId,- dockerId: destinationDocker.id,- command: `docker compose --project-directory ${workdir} up -d`- });- await (0, import_common.saveBuildLog)({ line: "Deployed \u{1F389}", buildId, applicationId });- await import_prisma.prisma.build.update({- where: { id: buildId },- data: { status: "success" }- });- await import_prisma.prisma.application.update({- where: { id: applicationId },- data: { configHash: currentHash }- });- } catch (error) {- await (0, import_common.saveBuildLog)({ line: error, buildId, applicationId });- const foundBuild = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: {- status: "failed"- }- });- }- throw new Error(error);- }- } else {- try {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.service=${pullmergeRequestId ? imageId : applicationId}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- }- let envs = [];- if (secrets.length > 0) {- envs = [- ...envs,- ...(0, import_common2.generateSecrets)(secrets, pullmergeRequestId, false, port)- ];- }- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- await (0, import_common.saveDockerRegistryCredentials)({ url, username, password, workdir });- }- try {- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(":")[0]}`]: {- name: volume.split(":")[0]- }- };- });- const composeFile = {- version: "3.8",- services: {- [imageId]: {- image: imageFound,- container_name: imageId,- volumes,- environment: envs,- labels,- depends_on: [],- expose: [port],- ...exposePort ? { ports: [`${exposePort}:${port}`] } : {},- ...(0, import_docker.defaultComposeConfiguration)(destinationDocker.network)- }- },- networks: {- [destinationDocker.network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await import_promises.default.writeFile(`${workdir}/docker-compose.yml`, import_js_yaml.default.dump(composeFile));- await (0, import_executeCommand.executeCommand)({- debug,- dockerId: destinationDocker.id,- command: `docker compose --project-directory ${workdir} up -d`- });- await (0, import_common.saveBuildLog)({ line: "Deployed \u{1F389}", buildId, applicationId });- } catch (error) {- await (0, import_common.saveBuildLog)({ line: error, buildId, applicationId });- const foundBuild = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: {- status: "failed"- }- });- }- throw new Error(error);- }- if (!pullmergeRequestId)- await import_prisma.prisma.application.update({- where: { id: applicationId },- data: { configHash: currentHash }- });- }- }- } catch (error) {- const foundBuild = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await import_prisma.prisma.build.update({- where: { id: buildId },- data: {- status: "failed"- }- });- }- if (error !== 1) {- await (0, import_common.saveBuildLog)({ line: error, buildId, applicationId: application.id });- }- if (error instanceof Error) {- await (0, import_common.saveBuildLog)({- line: error.message,- buildId,- applicationId: application.id- });- }- await import_promises.default.rm(workdir, { recursive: true, force: true });- return;- }- try {- if (application.dockerRegistryImageName && (!imageFoundRemotely || forceRebuild)) {- await (0, import_common.saveBuildLog)({- line: `Pushing ${imageName}:${customTag} to Docker Registry... It could take a while...`,- buildId,- applicationId: application.id- });- await (0, import_common2.pushToRegistry)(application, workdir, tag, imageName, customTag);- await (0, import_common.saveBuildLog)({ line: "Success", buildId, applicationId: application.id });- }- } catch (error) {- if (error.stdout) {- await (0, import_common.saveBuildLog)({ line: error.stdout, buildId, applicationId });- }- if (error.stderr) {- await (0, import_common.saveBuildLog)({ line: error.stderr, buildId, applicationId });- }- } finally {- await import_promises.default.rm(workdir, { recursive: true, force: true });- await import_prisma.prisma.build.update({ where: { id: buildId }, data: { status: "success" } });- }- });- }- await pAll.default(actions, { concurrency });- }- } catch (error) {- console.log(error);- }- });- while (true) {- await th();- }- } else {- console.log("hello");- process.exit(0);- }-})();diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/common.js b/apps/trpc-experimental/server/build/lib/buildPacks/common.jsdeleted file mode 100644index 063f4920fd..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/common.js+++ /dev/null@@ -1,842 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var common_exports = {};-__export(common_exports, {- buildCacheImageForLaravel: () => buildCacheImageForLaravel,- buildCacheImageWithCargo: () => buildCacheImageWithCargo,- buildCacheImageWithNode: () => buildCacheImageWithNode,- buildImage: () => buildImage,- checkPnpm: () => checkPnpm,- copyBaseConfigurationFiles: () => copyBaseConfigurationFiles,- makeLabelForSimpleDockerfile: () => makeLabelForSimpleDockerfile,- makeLabelForStandaloneApplication: () => makeLabelForStandaloneApplication,- saveBuildLog: () => saveBuildLog,- saveDockerRegistryCredentials: () => saveDockerRegistryCredentials,- scanningTemplates: () => scanningTemplates,- setDefaultBaseImage: () => setDefaultBaseImage,- setDefaultConfiguration: () => setDefaultConfiguration-});-module.exports = __toCommonJS(common_exports);-var import_common = require("../common");-var import_fs = require("fs");-var import_dayjs = require("../dayjs");-var import_prisma = require("../../prisma");-var import_executeCommand = require("../executeCommand");-const staticApps = ["static", "react", "vuejs", "svelte", "gatsby", "astro", "eleventy"];-const nodeBased = [- "react",- "preact",- "vuejs",- "svelte",- "gatsby",- "astro",- "eleventy",- "node",- "nestjs",- "nuxtjs",- "nextjs"-];-function setDefaultBaseImage(buildPack, deploymentType = null) {- const nodeVersions = [- {- value: "node:lts",- label: "node:lts"- },- {- value: "node:18",- label: "node:18"- },- {- value: "node:17",- label: "node:17"- },- {- value: "node:16",- label: "node:16"- },- {- value: "node:14",- label: "node:14"- },- {- value: "node:12",- label: "node:12"- }- ];- const staticVersions = [- {- value: "webdevops/nginx:alpine",- label: "webdevops/nginx:alpine"- },- {- value: "webdevops/apache:alpine",- label: "webdevops/apache:alpine"- },- {- value: "nginx:alpine",- label: "nginx:alpine"- },- {- value: "httpd:alpine",- label: "httpd:alpine (Apache)"- }- ];- const rustVersions = [- {- value: "rust:latest",- label: "rust:latest"- },- {- value: "rust:1.60",- label: "rust:1.60"- },- {- value: "rust:1.60-buster",- label: "rust:1.60-buster"- },- {- value: "rust:1.60-bullseye",- label: "rust:1.60-bullseye"- },- {- value: "rust:1.60-slim-buster",- label: "rust:1.60-slim-buster"- },- {- value: "rust:1.60-slim-bullseye",- label: "rust:1.60-slim-bullseye"- },- {- value: "rust:1.60-alpine3.14",- label: "rust:1.60-alpine3.14"- },- {- value: "rust:1.60-alpine3.15",- label: "rust:1.60-alpine3.15"- }- ];- const phpVersions = [- {- value: "webdevops/php-apache:8.2",- label: "webdevops/php-apache:8.2"- },- {- value: "webdevops/php-nginx:8.2",- label: "webdevops/php-nginx:8.2"- },- {- value: "webdevops/php-apache:8.1",- label: "webdevops/php-apache:8.1"- },- {- value: "webdevops/php-nginx:8.1",- label: "webdevops/php-nginx:8.1"- },- {- value: "webdevops/php-apache:8.0",- label: "webdevops/php-apache:8.0"- },- {- value: "webdevops/php-nginx:8.0",- label: "webdevops/php-nginx:8.0"- },- {- value: "webdevops/php-apache:7.4",- label: "webdevops/php-apache:7.4"- },- {- value: "webdevops/php-nginx:7.4",- label: "webdevops/php-nginx:7.4"- },- {- value: "webdevops/php-apache:7.3",- label: "webdevops/php-apache:7.3"- },- {- value: "webdevops/php-nginx:7.3",- label: "webdevops/php-nginx:7.3"- },- {- value: "webdevops/php-apache:7.2",- label: "webdevops/php-apache:7.2"- },- {- value: "webdevops/php-nginx:7.2",- label: "webdevops/php-nginx:7.2"- },- {- value: "webdevops/php-apache:7.1",- label: "webdevops/php-apache:7.1"- },- {- value: "webdevops/php-nginx:7.1",- label: "webdevops/php-nginx:7.1"- },- {- value: "webdevops/php-apache:7.0",- label: "webdevops/php-apache:7.0"- },- {- value: "webdevops/php-nginx:7.0",- label: "webdevops/php-nginx:7.0"- },- {- value: "webdevops/php-apache:5.6",- label: "webdevops/php-apache:5.6"- },- {- value: "webdevops/php-nginx:5.6",- label: "webdevops/php-nginx:5.6"- },- {- value: "webdevops/php-apache:8.2-alpine",- label: "webdevops/php-apache:8.2-alpine"- },- {- value: "webdevops/php-nginx:8.2-alpine",- label: "webdevops/php-nginx:8.2-alpine"- },- {- value: "webdevops/php-apache:8.1-alpine",- label: "webdevops/php-apache:8.1-alpine"- },- {- value: "webdevops/php-nginx:8.1-alpine",- label: "webdevops/php-nginx:8.1-alpine"- },- {- value: "webdevops/php-apache:8.0-alpine",- label: "webdevops/php-apache:8.0-alpine"- },- {- value: "webdevops/php-nginx:8.0-alpine",- label: "webdevops/php-nginx:8.0-alpine"- },- {- value: "webdevops/php-apache:7.4-alpine",- label: "webdevops/php-apache:7.4-alpine"- },- {- value: "webdevops/php-nginx:7.4-alpine",- label: "webdevops/php-nginx:7.4-alpine"- },- {- value: "webdevops/php-apache:7.3-alpine",- label: "webdevops/php-apache:7.3-alpine"- },- {- value: "webdevops/php-nginx:7.3-alpine",- label: "webdevops/php-nginx:7.3-alpine"- },- {- value: "webdevops/php-apache:7.2-alpine",- label: "webdevops/php-apache:7.2-alpine"- },- {- value: "webdevops/php-nginx:7.2-alpine",- label: "webdevops/php-nginx:7.2-alpine"- },- {- value: "webdevops/php-apache:7.1-alpine",- label: "webdevops/php-apache:7.1-alpine"- },- {- value: "php:8.1-fpm",- label: "php:8.1-fpm"- },- {- value: "php:8.0-fpm",- label: "php:8.0-fpm"- },- {- value: "php:8.1-fpm-alpine",- label: "php:8.1-fpm-alpine"- },- {- value: "php:8.0-fpm-alpine",- label: "php:8.0-fpm-alpine"- }- ];- const pythonVersions = [- {- value: "python:3.10-alpine",- label: "python:3.10-alpine"- },- {- value: "python:3.10-buster",- label: "python:3.10-buster"- },- {- value: "python:3.10-bullseye",- label: "python:3.10-bullseye"- },- {- value: "python:3.10-slim-bullseye",- label: "python:3.10-slim-bullseye"- },- {- value: "python:3.9-alpine",- label: "python:3.9-alpine"- },- {- value: "python:3.9-buster",- label: "python:3.9-buster"- },- {- value: "python:3.9-bullseye",- label: "python:3.9-bullseye"- },- {- value: "python:3.9-slim-bullseye",- label: "python:3.9-slim-bullseye"- },- {- value: "python:3.8-alpine",- label: "python:3.8-alpine"- },- {- value: "python:3.8-buster",- label: "python:3.8-buster"- },- {- value: "python:3.8-bullseye",- label: "python:3.8-bullseye"- },- {- value: "python:3.8-slim-bullseye",- label: "python:3.8-slim-bullseye"- },- {- value: "python:3.7-alpine",- label: "python:3.7-alpine"- },- {- value: "python:3.7-buster",- label: "python:3.7-buster"- },- {- value: "python:3.7-bullseye",- label: "python:3.7-bullseye"- },- {- value: "python:3.7-slim-bullseye",- label: "python:3.7-slim-bullseye"- }- ];- const herokuVersions = [- {- value: "heroku/builder:22",- label: "heroku/builder:22"- },- {- value: "heroku/buildpacks:20",- label: "heroku/buildpacks:20"- },- {- value: "heroku/builder-classic:22",- label: "heroku/builder-classic:22"- }- ];- let payload = {- baseImage: null,- baseBuildImage: null,- baseImages: [],- baseBuildImages: []- };- if (nodeBased.includes(buildPack)) {- if (deploymentType === "static") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "nginx:alpine" : "webdevops/nginx:alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? staticVersions.filter((version2) => !version2.value.includes("webdevops")) : staticVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- } else {- payload.baseImage = "node:lts";- payload.baseImages = nodeVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- }- }- if (staticApps.includes(buildPack)) {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "nginx:alpine" : "webdevops/nginx:alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? staticVersions.filter((version2) => !version2.value.includes("webdevops")) : staticVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- }- if (buildPack === "python") {- payload.baseImage = "python:3.10-alpine";- payload.baseImages = pythonVersions;- }- if (buildPack === "rust") {- payload.baseImage = "rust:latest";- payload.baseBuildImage = "rust:latest";- payload.baseImages = rustVersions;- payload.baseBuildImages = rustVersions;- }- if (buildPack === "deno") {- payload.baseImage = "denoland/deno:latest";- }- if (buildPack === "php") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "php:8.1-fpm-alpine" : "webdevops/php-apache:8.2-alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? phpVersions.filter((version2) => !version2.value.includes("webdevops")) : phpVersions;- }- if (buildPack === "laravel") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "php:8.1-fpm-alpine" : "webdevops/php-apache:8.2-alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? phpVersions.filter((version2) => !version2.value.includes("webdevops")) : phpVersions;- payload.baseBuildImage = "node:18";- payload.baseBuildImages = nodeVersions;- }- if (buildPack === "heroku") {- payload.baseImage = "heroku/buildpacks:20";- payload.baseImages = herokuVersions;- }- return payload;-}-const setDefaultConfiguration = async (data) => {- let {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- } = data;- const template = scanningTemplates[buildPack];- if (!port) {- port = template?.port || 3e3;- if (buildPack === "static")- port = 80;- else if (buildPack === "node")- port = 3e3;- else if (buildPack === "php")- port = 80;- else if (buildPack === "python")- port = 8e3;- }- if (!installCommand && buildPack !== "static" && buildPack !== "laravel")- installCommand = template?.installCommand || "yarn install";- if (!startCommand && buildPack !== "static" && buildPack !== "laravel")- startCommand = template?.startCommand || "yarn start";- if (!buildCommand && buildPack !== "static" && buildPack !== "laravel")- buildCommand = template?.buildCommand || null;- if (!publishDirectory)- publishDirectory = template?.publishDirectory || null;- if (baseDirectory) {- if (!baseDirectory.startsWith("/"))- baseDirectory = `/${baseDirectory}`;- if (baseDirectory.endsWith("/") && baseDirectory !== "/")- baseDirectory = baseDirectory.slice(0, -1);- }- if (dockerFileLocation) {- if (!dockerFileLocation.startsWith("/"))- dockerFileLocation = `/${dockerFileLocation}`;- if (dockerFileLocation.endsWith("/"))- dockerFileLocation = dockerFileLocation.slice(0, -1);- } else {- dockerFileLocation = "/Dockerfile";- }- if (dockerComposeFileLocation) {- if (!dockerComposeFileLocation.startsWith("/"))- dockerComposeFileLocation = `/${dockerComposeFileLocation}`;- if (dockerComposeFileLocation.endsWith("/"))- dockerComposeFileLocation = dockerComposeFileLocation.slice(0, -1);- } else {- dockerComposeFileLocation = "/Dockerfile";- }- if (!denoMainFile) {- denoMainFile = "main.ts";- }- return {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- };-};-const scanningTemplates = {- "@sveltejs/kit": {- buildPack: "nodejs"- },- astro: {- buildPack: "astro"- },- "@11ty/eleventy": {- buildPack: "eleventy"- },- svelte: {- buildPack: "svelte"- },- "@nestjs/core": {- buildPack: "nestjs"- },- next: {- buildPack: "nextjs"- },- nuxt: {- buildPack: "nuxtjs"- },- "react-scripts": {- buildPack: "react"- },- "parcel-bundler": {- buildPack: "static"- },- "@vue/cli-service": {- buildPack: "vuejs"- },- vuejs: {- buildPack: "vuejs"- },- gatsby: {- buildPack: "gatsby"- },- "preact-cli": {- buildPack: "react"- }-};-const saveBuildLog = async ({- line,- buildId,- applicationId-}) => {- if (buildId === "undefined" || buildId === "null" || !buildId)- return;- if (applicationId === "undefined" || applicationId === "null" || !applicationId)- return;- const { default: got } = await import("got");- if (typeof line === "object" && line) {- if (line.shortMessage) {- line = line.shortMessage + "\n" + line.stderr;- } else {- line = JSON.stringify(line);- }- }- if (line && typeof line === "string" && line.includes("ghs_")) {- const regex = /ghs_.*@/g;- line = line.replace(regex, "<SENSITIVE_DATA_DELETED>@");- }- const addTimestamp = `[${(0, import_common.generateTimestamp)()}] ${line}`;- const fluentBitUrl = import_common.isDev ? process.env.COOLIFY_CONTAINER_DEV === "true" ? "http://coolify-fluentbit:24224" : "http://localhost:24224" : "http://coolify-fluentbit:24224";- if (import_common.isDev && !process.env.COOLIFY_CONTAINER_DEV) {- console.debug(`[${applicationId}] ${addTimestamp}`);- }- try {- return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {- json: {- line: (0, import_common.encrypt)(line)- }- });- } catch (error) {- return await import_prisma.prisma.buildLog.create({- data: {- line: addTimestamp,- buildId,- time: Number((0, import_dayjs.day)().valueOf()),- applicationId- }- });- }-};-async function copyBaseConfigurationFiles(buildPack, workdir, buildId, applicationId, baseImage) {- try {- if (buildPack === "php") {- await import_fs.promises.writeFile(`${workdir}/entrypoint.sh`, `chown -R 1000 /app`);- await saveBuildLog({- line: "Copied default configuration file for PHP.",- buildId,- applicationId- });- } else if (baseImage?.includes("nginx")) {- await import_fs.promises.writeFile(- `${workdir}/nginx.conf`,- `user nginx;- worker_processes auto;-- error_log /docker.stdout;- pid /run/nginx.pid;-- events {- worker_connections 1024;- }-- http {- log_format main '$remote_addr - $remote_user [$time_local] "$request" '- '$status $body_bytes_sent "$http_referer" '- '"$http_user_agent" "$http_x_forwarded_for"';-- access_log /docker.stdout main;-- sendfile on;- tcp_nopush on;- tcp_nodelay on;- keepalive_timeout 65;- types_hash_max_size 2048;-- include /etc/nginx/mime.types;- default_type application/octet-stream;-- server {- listen 80;- server_name localhost;-- location / {- root /app;- index index.html;- try_files $uri $uri/index.html $uri/ /index.html =404;- }-- error_page 404 /50x.html;-- # redirect server error pages to the static page /50x.html- #- error_page 500 502 503 504 /50x.html;- location = /50x.html {- root /app;- }-- }-- }- `- );- }- } catch (error) {- throw new Error(error);- }-}-function checkPnpm(installCommand = null, buildCommand = null, startCommand = null) {- return installCommand?.includes("pnpm") || buildCommand?.includes("pnpm") || startCommand?.includes("pnpm");-}-async function saveDockerRegistryCredentials({ url, username, password, workdir }) {- if (!username || !password) {- return null;- }- let decryptedPassword = (0, import_common.decrypt)(password);- const location = `${workdir}/.docker`;- try {- await import_fs.promises.mkdir(`${workdir}/.docker`);- } catch (error) {- }- const payload = JSON.stringify({- auths: {- [url]: {- auth: Buffer.from(`${username}:${decryptedPassword}`).toString("base64")- }- }- });- await import_fs.promises.writeFile(`${location}/config.json`, payload);- return location;-}-async function buildImage({- applicationId,- tag,- workdir,- buildId,- dockerId,- isCache = false,- debug = false,- dockerFileLocation = "/Dockerfile",- commit,- forceRebuild = false-}) {- if (isCache) {- await saveBuildLog({ line: `Building cache image...`, buildId, applicationId });- } else {- await saveBuildLog({ line: `Building production image...`, buildId, applicationId });- }- const dockerFile = isCache ? `${dockerFileLocation}-cache` : `${dockerFileLocation}`;- const cache = `${applicationId}:${tag}${isCache ? "-cache" : ""}`;- let location = null;- const { dockerRegistry } = await import_prisma.prisma.application.findUnique({- where: { id: applicationId },- select: { dockerRegistry: true }- });- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await saveDockerRegistryCredentials({ url, username, password, workdir });- }- await (0, import_executeCommand.executeCommand)({- stream: true,- debug,- buildId,- applicationId,- dockerId,- command: `docker ${location ? `--config ${location}` : ""} build ${forceRebuild ? "--no-cache" : ""} --progress plain -f ${workdir}/${dockerFile} -t ${cache} --build-arg SOURCE_COMMIT=${commit} ${workdir}`- });- const { status } = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (status === "canceled") {- throw new Error("Canceled.");- }-}-function makeLabelForSimpleDockerfile({ applicationId, port, type }) {- return [- "coolify.managed=true",- `coolify.version=${import_common.version}`,- `coolify.applicationId=${applicationId}`,- `coolify.type=standalone-application`- ];-}-function makeLabelForStandaloneApplication({- applicationId,- fqdn,- name,- type,- pullmergeRequestId = null,- buildPack,- repository,- branch,- projectId,- port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory-}) {- if (pullmergeRequestId) {- const protocol = fqdn.startsWith("https://") ? "https" : "http";- const domain = (0, import_common.getDomain)(fqdn);- fqdn = `${protocol}://${pullmergeRequestId}.${domain}`;- }- return [- "coolify.managed=true",- `coolify.version=${import_common.version}`,- `coolify.applicationId=${applicationId}`,- `coolify.type=standalone-application`,- `coolify.name=${name}`,- `coolify.configuration=${(0, import_common.base64Encode)(- JSON.stringify({- applicationId,- fqdn,- name,- type,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory- })- )}`- ];-}-async function buildCacheImageWithNode(data, imageForBuild) {- const {- workdir,- buildId,- baseDirectory,- installCommand,- buildCommand,- secrets,- pullmergeRequestId- } = data;- const isPnpm = checkPnpm(installCommand, buildCommand);- const Dockerfile = [];- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push("RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7");- }- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- if (installCommand) {- Dockerfile.push(`RUN ${installCommand}`);- }- Dockerfile.push(`RUN ${buildCommand}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join("\n"));- await buildImage({ ...data, isCache: true });-}-async function buildCacheImageForLaravel(data, imageForBuild) {- const { workdir, buildId, secrets, pullmergeRequestId } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push(`COPY *.json *.mix.js /app/`);- Dockerfile.push(`COPY resources /app/resources`);- Dockerfile.push(`RUN yarn install && yarn production`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join("\n"));- await buildImage({ ...data, isCache: true });-}-async function buildCacheImageWithCargo(data, imageForBuild) {- const { applicationId, workdir, buildId } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${imageForBuild} as planner-${applicationId}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push("RUN cargo install cargo-chef");- Dockerfile.push("COPY . .");- Dockerfile.push("RUN cargo chef prepare --recipe-path recipe.json");- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push("RUN cargo install cargo-chef");- Dockerfile.push(`COPY --from=planner-${applicationId} /app/recipe.json recipe.json`);- Dockerfile.push("RUN cargo chef cook --release --recipe-path recipe.json");- await import_fs.promises.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join("\n"));- await buildImage({ ...data, isCache: true });-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- buildCacheImageForLaravel,- buildCacheImageWithCargo,- buildCacheImageWithNode,- buildImage,- checkPnpm,- copyBaseConfigurationFiles,- makeLabelForSimpleDockerfile,- makeLabelForStandaloneApplication,- saveBuildLog,- saveDockerRegistryCredentials,- scanningTemplates,- setDefaultBaseImage,- setDefaultConfiguration-});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/compose.js b/apps/trpc-experimental/server/build/lib/buildPacks/compose.jsdeleted file mode 100644index 073711e919..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/compose.js+++ /dev/null@@ -1,137 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var compose_exports = {};-__export(compose_exports, {- default: () => compose_default-});-module.exports = __toCommonJS(compose_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-var import_js_yaml = __toESM(require("js-yaml"));-var import_docker = require("../docker");-var import_executeCommand = require("../executeCommand");-async function compose_default(data) {- let {- applicationId,- debug,- buildId,- dockerId,- network,- volumes,- labels,- workdir,- baseDirectory,- secrets,- pullmergeRequestId,- dockerComposeConfiguration,- dockerComposeFileLocation- } = data;- const fileYaml = `${workdir}${baseDirectory}${dockerComposeFileLocation}`;- const dockerComposeRaw = await import_fs.promises.readFile(fileYaml, "utf8");- const dockerComposeYaml = import_js_yaml.default.load(dockerComposeRaw);- if (!dockerComposeYaml.services) {- throw "No Services found in docker-compose file.";- }- let envs = [];- if (secrets.length > 0) {- envs = [...envs, ...(0, import_common.generateSecrets)(secrets, pullmergeRequestId, false, null)];- }- const composeVolumes = [];- if (volumes.length > 0) {- for (const volume of volumes) {- let [v, path] = volume.split(":");- composeVolumes[v] = {- name: v- };- }- }- let networks = {};- for (let [key, value] of Object.entries(dockerComposeYaml.services)) {- value["container_name"] = `${applicationId}-${key}`;- let environment = typeof value["environment"] === "undefined" ? [] : value["environment"];- value["environment"] = [...environment, ...envs];- value["labels"] = labels;- if (value["volumes"]?.length > 0) {- value["volumes"] = value["volumes"].map((volume) => {- let [v, path, permission] = volume.split(":");- if (!path) {- path = v;- v = `${applicationId}${v.replace(/\//gi, "-").replace(/\./gi, "")}`;- } else {- v = `${applicationId}${v.replace(/\//gi, "-").replace(/\./gi, "")}`;- }- composeVolumes[v] = {- name: v- };- return `${v}:${path}${permission ? ":" + permission : ""}`;- });- }- if (volumes.length > 0) {- for (const volume of volumes) {- value["volumes"].push(volume);- }- }- if (dockerComposeConfiguration[key].port) {- value["expose"] = [dockerComposeConfiguration[key].port];- }- if (value["networks"]?.length > 0) {- value["networks"].forEach((network2) => {- networks[network2] = {- name: network2- };- });- }- value["networks"] = [...value["networks"] || "", network];- dockerComposeYaml.services[key] = {- ...dockerComposeYaml.services[key],- restart: (0, import_docker.defaultComposeConfiguration)(network).restart,- deploy: (0, import_docker.defaultComposeConfiguration)(network).deploy- };- }- if (Object.keys(composeVolumes).length > 0) {- dockerComposeYaml["volumes"] = { ...composeVolumes };- }- dockerComposeYaml["networks"] = Object.assign({ ...networks }, { [network]: { external: true } });- await import_fs.promises.writeFile(fileYaml, import_js_yaml.default.dump(dockerComposeYaml));- await (0, import_executeCommand.executeCommand)({- debug,- buildId,- applicationId,- dockerId,- command: `docker compose --project-directory ${workdir} pull`- });- await (0, import_common2.saveBuildLog)({ line: "Pulling images from Compose file...", buildId, applicationId });- await (0, import_executeCommand.executeCommand)({- debug,- buildId,- applicationId,- dockerId,- command: `docker compose --project-directory ${workdir} build --progress plain`- });- await (0, import_common2.saveBuildLog)({ line: "Building images from Compose file...", buildId, applicationId });-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/deno.js b/apps/trpc-experimental/server/build/lib/buildPacks/deno.jsdeleted file mode 100644index 2c03960c74..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/deno.js+++ /dev/null@@ -1,74 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var deno_exports = {};-__export(deno_exports, {- default: () => deno_default-});-module.exports = __toCommonJS(deno_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- workdir,- port,- baseDirectory,- secrets,- pullmergeRequestId,- denoMainFile,- denoOptions,- buildId- } = data;- const Dockerfile = [];- let depsFound = false;- try {- await import_fs.promises.readFile(`${workdir}${baseDirectory || ""}/deps.ts`);- depsFound = true;- } catch (error) {- }- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (depsFound) {- Dockerfile.push(`COPY .${baseDirectory || ""}/deps.ts /app`);- Dockerfile.push(`RUN deno cache deps.ts`);- }- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- Dockerfile.push(`RUN deno cache ${denoMainFile}`);- Dockerfile.push(`ENV NO_COLOR true`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD deno run ${denoOptions || ""} ${denoMainFile}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function deno_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/docker.js b/apps/trpc-experimental/server/build/lib/buildPacks/docker.jsdeleted file mode 100644index 02cde82c20..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/docker.js+++ /dev/null@@ -1,51 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var docker_exports = {};-__export(docker_exports, {- default: () => docker_default-});-module.exports = __toCommonJS(docker_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-async function docker_default(data) {- let { workdir, buildId, baseDirectory, secrets, pullmergeRequestId, dockerFileLocation } = data;- const file = `${workdir}${baseDirectory}${dockerFileLocation}`;- data.workdir = `${workdir}${baseDirectory}`;- const DockerfileRaw = await import_fs.promises.readFile(`${file}`, "utf8");- const Dockerfile = DockerfileRaw.toString().trim().split("\n");- Dockerfile.forEach((line, index) => {- if (line.startsWith("FROM")) {- Dockerfile.splice(index + 1, 0, `LABEL coolify.buildId=${buildId}`);- }- });- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.forEach((line, index) => {- if (line.startsWith("FROM")) {- Dockerfile.splice(index + 1, 0, env);- }- });- });- }- await import_fs.promises.writeFile(`${data.workdir}${dockerFileLocation}`, Dockerfile.join("\n"));- await (0, import_common2.buildImage)(data);-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/gatsby.js b/apps/trpc-experimental/server/build/lib/buildPacks/gatsby.jsdeleted file mode 100644index b71e587ab7..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/gatsby.js+++ /dev/null@@ -1,50 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var gatsby_exports = {};-__export(gatsby_exports, {- default: () => gatsby_default-});-module.exports = __toCommonJS(gatsby_exports);-var import_fs = require("fs");-var import_common = require("./common");-const createDockerfile = async (data, imageforBuild) => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${imageforBuild}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function gatsby_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await (0, import_common.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/heroku.js b/apps/trpc-experimental/server/build/lib/buildPacks/heroku.jsdeleted file mode 100644index 6b5627a51b..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/heroku.js+++ /dev/null@@ -1,41 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var heroku_exports = {};-__export(heroku_exports, {- default: () => heroku_default-});-module.exports = __toCommonJS(heroku_exports);-var import_executeCommand = require("../executeCommand");-var import_common = require("./common");-async function heroku_default(data) {- const { buildId, applicationId, tag, dockerId, debug, workdir, baseDirectory, baseImage } = data;- try {- await (0, import_common.saveBuildLog)({ line: `Building production image...`, buildId, applicationId });- await (0, import_executeCommand.executeCommand)({- buildId,- debug,- dockerId,- command: `pack build -p ${workdir}${baseDirectory} ${applicationId}:${tag} --builder ${baseImage}`- });- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/index.js b/apps/trpc-experimental/server/build/lib/buildPacks/index.jsdeleted file mode 100644index 5f45901107..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/index.js+++ /dev/null@@ -1,88 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var buildPacks_exports = {};-__export(buildPacks_exports, {- astro: () => import_static2.default,- compose: () => import_compose.default,- deno: () => import_deno.default,- docker: () => import_docker.default,- eleventy: () => import_static3.default,- gatsby: () => import_gatsby.default,- heroku: () => import_heroku.default,- laravel: () => import_laravel.default,- nestjs: () => import_nestjs.default,- nextjs: () => import_nextjs.default,- node: () => import_node.default,- nuxtjs: () => import_nuxtjs.default,- php: () => import_php.default,- python: () => import_python.default,- react: () => import_react.default,- rust: () => import_rust.default,- staticApp: () => import_static.default,- svelte: () => import_svelte.default,- vuejs: () => import_vuejs.default-});-module.exports = __toCommonJS(buildPacks_exports);-var import_node = __toESM(require("./node"));-var import_static = __toESM(require("./static"));-var import_docker = __toESM(require("./docker"));-var import_gatsby = __toESM(require("./gatsby"));-var import_svelte = __toESM(require("./svelte"));-var import_react = __toESM(require("./react"));-var import_nestjs = __toESM(require("./nestjs"));-var import_nextjs = __toESM(require("./nextjs"));-var import_nuxtjs = __toESM(require("./nuxtjs"));-var import_vuejs = __toESM(require("./vuejs"));-var import_php = __toESM(require("./php"));-var import_rust = __toESM(require("./rust"));-var import_static2 = __toESM(require("./static"));-var import_static3 = __toESM(require("./static"));-var import_python = __toESM(require("./python"));-var import_deno = __toESM(require("./deno"));-var import_laravel = __toESM(require("./laravel"));-var import_heroku = __toESM(require("./heroku"));-var import_compose = __toESM(require("./compose"));-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- astro,- compose,- deno,- docker,- eleventy,- gatsby,- heroku,- laravel,- nestjs,- nextjs,- node,- nuxtjs,- php,- python,- react,- rust,- staticApp,- svelte,- vuejs-});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/laravel.js b/apps/trpc-experimental/server/build/lib/buildPacks/laravel.jsdeleted file mode 100644index 6bd5237a18..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/laravel.js+++ /dev/null@@ -1,68 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var laravel_exports = {};-__export(laravel_exports, {- default: () => laravel_default-});-module.exports = __toCommonJS(laravel_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const { workdir, applicationId, tag, buildId, port, secrets, pullmergeRequestId } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`ENV WEB_DOCUMENT_ROOT /app/public`);- Dockerfile.push(`COPY --chown=application:application composer.* ./`);- Dockerfile.push(`COPY --chown=application:application database/ database/`);- Dockerfile.push(- `RUN composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --prefer-dist`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/public/js/ /app/public/js/`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/public/css/ /app/public/css/`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/mix-manifest.json /app/public/mix-manifest.json`- );- Dockerfile.push(`COPY --chown=application:application . ./`);- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function laravel_default(data) {- const { baseImage, baseBuildImage } = data;- try {- await (0, import_common2.buildCacheImageForLaravel)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/nestjs.js b/apps/trpc-experimental/server/build/lib/buildPacks/nestjs.jsdeleted file mode 100644index 945a0f960a..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/nestjs.js+++ /dev/null@@ -1,52 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var nestjs_exports = {};-__export(nestjs_exports, {- default: () => nestjs_default-});-module.exports = __toCommonJS(nestjs_exports);-var import_fs = require("fs");-var import_common = require("./common");-const createDockerfile = async (data, image) => {- const { buildId, applicationId, tag, port, startCommand, workdir, baseDirectory } = data;- const Dockerfile = [];- const isPnpm = startCommand.includes("pnpm");- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (isPnpm) {- Dockerfile.push("RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7");- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${baseDirectory || ""} ./`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function nestjs_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await (0, import_common.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/nextjs.js b/apps/trpc-experimental/server/build/lib/buildPacks/nextjs.jsdeleted file mode 100644index 57a9aced1a..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/nextjs.js+++ /dev/null@@ -1,89 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var nextjs_exports = {};-__export(nextjs_exports, {- default: () => nextjs_default-});-module.exports = __toCommonJS(nextjs_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- applicationId,- buildId,- tag,- workdir,- publishDirectory,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- deploymentType,- baseImage- } = data;- const Dockerfile = [];- const isPnpm = (0, import_common2.checkPnpm)(installCommand, buildCommand, startCommand);- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push("RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7");- }- if (deploymentType === "node") {- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- Dockerfile.push(`RUN ${installCommand}`);- Dockerfile.push(`RUN ${buildCommand}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- } else if (deploymentType === "static") {- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- Dockerfile.push(`EXPOSE 80`);- }- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function nextjs_default(data) {- try {- const { baseImage, baseBuildImage, deploymentType, buildCommand } = data;- if (deploymentType === "node") {- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } else if (deploymentType === "static") {- if (buildCommand)- await (0, import_common2.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- }- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/node.js b/apps/trpc-experimental/server/build/lib/buildPacks/node.jsdeleted file mode 100644index e1d246e22b..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/node.js+++ /dev/null@@ -1,71 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var node_exports = {};-__export(node_exports, {- default: () => node_default-});-module.exports = __toCommonJS(node_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- workdir,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- buildId- } = data;- const Dockerfile = [];- const isPnpm = (0, import_common2.checkPnpm)(installCommand, buildCommand, startCommand);- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push("RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7");- }- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- Dockerfile.push(`RUN ${installCommand}`);- if (buildCommand) {- Dockerfile.push(`RUN ${buildCommand}`);- }- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function node_default(data) {- try {- const { baseImage } = data;- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/nuxtjs.js b/apps/trpc-experimental/server/build/lib/buildPacks/nuxtjs.jsdeleted file mode 100644index edc953bf28..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/nuxtjs.js+++ /dev/null@@ -1,89 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var nuxtjs_exports = {};-__export(nuxtjs_exports, {- default: () => nuxtjs_default-});-module.exports = __toCommonJS(nuxtjs_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- applicationId,- buildId,- tag,- workdir,- publishDirectory,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- deploymentType,- baseImage- } = data;- const Dockerfile = [];- const isPnpm = (0, import_common2.checkPnpm)(installCommand, buildCommand, startCommand);- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push("RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7");- }- if (deploymentType === "node") {- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- Dockerfile.push(`RUN ${installCommand}`);- Dockerfile.push(`RUN ${buildCommand}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- } else if (deploymentType === "static") {- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- Dockerfile.push(`EXPOSE 80`);- }- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function nuxtjs_default(data) {- try {- const { baseImage, baseBuildImage, deploymentType, buildCommand } = data;- if (deploymentType === "node") {- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } else if (deploymentType === "static") {- if (buildCommand)- await (0, import_common2.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- }- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/php.js b/apps/trpc-experimental/server/build/lib/buildPacks/php.jsdeleted file mode 100644index e68b46cd07..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/php.js+++ /dev/null@@ -1,71 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var php_exports = {};-__export(php_exports, {- default: () => php_default-});-module.exports = __toCommonJS(php_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image, htaccessFound) => {- const { workdir, baseDirectory, buildId, port, secrets, pullmergeRequestId } = data;- const Dockerfile = [];- let composerFound = false;- try {- await import_fs.promises.readFile(`${workdir}${baseDirectory || ""}/composer.json`);- composerFound = true;- } catch (error) {- }- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`COPY .${baseDirectory || ""} /app`);- if (htaccessFound) {- Dockerfile.push(`COPY .${baseDirectory || ""}/.htaccess ./`);- }- if (composerFound) {- Dockerfile.push(`RUN composer install`);- }- Dockerfile.push(`COPY /entrypoint.sh /opt/docker/provision/entrypoint.d/30-entrypoint.sh`);- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function php_default(data) {- const { workdir, baseDirectory, baseImage } = data;- try {- let htaccessFound = false;- try {- await import_fs.promises.readFile(`${workdir}${baseDirectory || ""}/.htaccess`);- htaccessFound = true;- } catch (e) {- }- await createDockerfile(data, baseImage, htaccessFound);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/python.js b/apps/trpc-experimental/server/build/lib/buildPacks/python.jsdeleted file mode 100644index 9221d5d666..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/python.js+++ /dev/null@@ -1,86 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var python_exports = {};-__export(python_exports, {- default: () => python_default-});-module.exports = __toCommonJS(python_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- workdir,- port,- baseDirectory,- secrets,- pullmergeRequestId,- pythonWSGI,- pythonModule,- pythonVariable,- buildId- } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (pythonWSGI?.toLowerCase() === "gunicorn") {- Dockerfile.push(`RUN pip install gunicorn`);- } else if (pythonWSGI?.toLowerCase() === "uvicorn") {- Dockerfile.push(`RUN pip install uvicorn`);- } else if (pythonWSGI?.toLowerCase() === "uwsgi") {- Dockerfile.push(`RUN apk add --no-cache uwsgi-python3`);- }- try {- await import_fs.promises.stat(`${workdir}${baseDirectory || ""}/requirements.txt`);- Dockerfile.push(`COPY .${baseDirectory || ""}/requirements.txt ./`);- Dockerfile.push(`RUN pip install --no-cache-dir -r .${baseDirectory || ""}/requirements.txt`);- } catch (e) {- }- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- Dockerfile.push(`EXPOSE ${port}`);- if (pythonWSGI?.toLowerCase() === "gunicorn") {- Dockerfile.push(`CMD gunicorn -w=4 -b=0.0.0.0:8000 ${pythonModule}:${pythonVariable}`);- } else if (pythonWSGI?.toLowerCase() === "uvicorn") {- Dockerfile.push(`CMD uvicorn ${pythonModule}:${pythonVariable} --port ${port} --host 0.0.0.0`);- } else if (pythonWSGI?.toLowerCase() === "uwsgi") {- Dockerfile.push(- `CMD uwsgi --master -p 4 --http-socket 0.0.0.0:8000 --uid uwsgi --plugins python3 --protocol uwsgi --wsgi ${pythonModule}:${pythonVariable}`- );- } else {- Dockerfile.push(`CMD python ${pythonModule}`);- }- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function python_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/react.js b/apps/trpc-experimental/server/build/lib/buildPacks/react.jsdeleted file mode 100644index dc97fc657f..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/react.js+++ /dev/null@@ -1,50 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var react_exports = {};-__export(react_exports, {- default: () => react_default-});-module.exports = __toCommonJS(react_exports);-var import_fs = require("fs");-var import_common = require("./common");-const createDockerfile = async (data, image) => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function react_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await (0, import_common.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/rust.js b/apps/trpc-experimental/server/build/lib/buildPacks/rust.jsdeleted file mode 100644index 5fbb0af0d7..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/rust.js+++ /dev/null@@ -1,69 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var rust_exports = {};-__export(rust_exports, {- default: () => rust_default-});-module.exports = __toCommonJS(rust_exports);-var import_fs = require("fs");-var import_toml = __toESM(require("@iarna/toml"));-var import_common = require("./common");-var import_executeCommand = require("../executeCommand");-const createDockerfile = async (data, image, name) => {- const { workdir, port, applicationId, tag, buildId } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/target target`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /usr/local/cargo /usr/local/cargo`);- Dockerfile.push(`COPY . .`);- Dockerfile.push(`RUN cargo build --release --bin ${name}`);- Dockerfile.push("FROM debian:buster-slim");- Dockerfile.push("WORKDIR /app");- Dockerfile.push(- `RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libcurl4 ca-certificates && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*`- );- Dockerfile.push(`RUN update-ca-certificates`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/target/release/${name} ${name}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ["/app/${name}"]`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function rust_default(data) {- try {- const { workdir, baseImage, baseBuildImage } = data;- const { stdout: cargoToml } = await (0, import_executeCommand.executeCommand)({ command: `cat ${workdir}/Cargo.toml` });- const parsedToml = import_toml.default.parse(cargoToml);- const name = parsedToml.package.name;- await (0, import_common.buildCacheImageWithCargo)(data, baseBuildImage);- await createDockerfile(data, baseImage, name);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/static.js b/apps/trpc-experimental/server/build/lib/buildPacks/static.jsdeleted file mode 100644index 38e193cef6..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/static.js+++ /dev/null@@ -1,77 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var static_exports = {};-__export(static_exports, {- default: () => static_default-});-module.exports = __toCommonJS(static_exports);-var import_fs = require("fs");-var import_common = require("../common");-var import_common2 = require("./common");-const createDockerfile = async (data, image) => {- const {- applicationId,- tag,- workdir,- buildCommand,- baseDirectory,- publishDirectory,- secrets,- pullmergeRequestId,- baseImage,- buildId,- port- } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- if (baseImage?.includes("httpd")) {- Dockerfile.push("WORKDIR /usr/local/apache2/htdocs/");- } else {- Dockerfile.push("WORKDIR /app");- }- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- (0, import_common.generateSecrets)(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (buildCommand) {- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- } else {- Dockerfile.push(`COPY .${baseDirectory || ""} ./`);- }- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function static_default(data) {- try {- const { baseImage, baseBuildImage } = data;- if (data.buildCommand)- await (0, import_common2.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common2.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/svelte.js b/apps/trpc-experimental/server/build/lib/buildPacks/svelte.jsdeleted file mode 100644index e1af2492b6..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/svelte.js+++ /dev/null@@ -1,50 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var svelte_exports = {};-__export(svelte_exports, {- default: () => svelte_default-});-module.exports = __toCommonJS(svelte_exports);-var import_fs = require("fs");-var import_common = require("./common");-const createDockerfile = async (data, image) => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function svelte_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await (0, import_common.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/buildPacks/vuejs.js b/apps/trpc-experimental/server/build/lib/buildPacks/vuejs.jsdeleted file mode 100644index bc787e6441..0000000000--- a/apps/trpc-experimental/server/build/lib/buildPacks/vuejs.js+++ /dev/null@@ -1,50 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var vuejs_exports = {};-__export(vuejs_exports, {- default: () => vuejs_default-});-module.exports = __toCommonJS(vuejs_exports);-var import_fs = require("fs");-var import_common = require("./common");-const createDockerfile = async (data, image) => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push("WORKDIR /app");- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes("nginx")) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await import_fs.promises.writeFile(`${workdir}/Dockerfile`, Dockerfile.join("\n"));-};-async function vuejs_default(data) {- try {- const { baseImage, baseBuildImage } = data;- await (0, import_common.buildCacheImageWithNode)(data, baseBuildImage);- await createDockerfile(data, baseImage);- await (0, import_common.buildImage)(data);- } catch (error) {- throw error;- }-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/common.js b/apps/trpc-experimental/server/build/lib/common.jsdeleted file mode 100644index a501790b79..0000000000--- a/apps/trpc-experimental/server/build/lib/common.js+++ /dev/null@@ -1,952 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var common_exports = {};-__export(common_exports, {- asyncSleep: () => asyncSleep,- base64Decode: () => base64Decode,- base64Encode: () => base64Encode,- checkDomainsIsValidInDNS: () => checkDomainsIsValidInDNS,- checkExposedPort: () => checkExposedPort,- cleanupDB: () => cleanupDB,- comparePassword: () => comparePassword,- configureNetworkTraefikProxy: () => configureNetworkTraefikProxy,- createDirectories: () => createDirectories,- decrypt: () => decrypt,- decryptApplication: () => decryptApplication,- defaultTraefikImage: () => defaultTraefikImage,- encrypt: () => encrypt,- fixType: () => fixType,- generateRangeArray: () => generateRangeArray,- generateSecrets: () => generateSecrets,- generateTimestamp: () => generateTimestamp,- getAPIUrl: () => getAPIUrl,- getContainerUsage: () => getContainerUsage,- getCurrentUser: () => getCurrentUser,- getDomain: () => getDomain,- getFreeExposedPort: () => getFreeExposedPort,- getTags: () => getTags,- getTeamInvitation: () => getTeamInvitation,- getTemplates: () => getTemplates,- getUIUrl: () => getUIUrl,- hashPassword: () => hashPassword,- isARM: () => isARM,- isDev: () => isDev,- isDomainConfigured: () => isDomainConfigured,- listSettings: () => listSettings,- makeLabelForServices: () => makeLabelForServices,- pushToRegistry: () => pushToRegistry,- removeService: () => removeService,- saveDockerRegistryCredentials: () => saveDockerRegistryCredentials,- scanningTemplates: () => scanningTemplates,- sentryDSN: () => sentryDSN,- setDefaultConfiguration: () => setDefaultConfiguration,- startTraefikProxy: () => startTraefikProxy,- startTraefikTCPProxy: () => startTraefikTCPProxy,- stopTraefikProxy: () => stopTraefikProxy,- uniqueName: () => uniqueName,- version: () => version-});-module.exports = __toCommonJS(common_exports);-var import_prisma = require("../prisma");-var import_bcryptjs = __toESM(require("bcryptjs"));-var import_crypto = __toESM(require("crypto"));-var import_dns = require("dns");-var import_promises = __toESM(require("fs/promises"));-var import_unique_names_generator = require("unique-names-generator");-var import_env = require("../env");-var import_dayjs = require("./dayjs");-var import_executeCommand = require("./executeCommand");-var import_logging = require("./logging");-var import_docker = require("./docker");-var import_js_yaml = __toESM(require("js-yaml"));-const customConfig = {- dictionaries: [import_unique_names_generator.adjectives, import_unique_names_generator.colors, import_unique_names_generator.animals],- style: "capital",- separator: " ",- length: 3-};-const algorithm = "aes-256-ctr";-const isDev = import_env.env.NODE_ENV === "development";-const version = "3.13.0";-const sentryDSN = "https://[email protected]/4504236622217216";-const defaultTraefikImage = `traefik:v2.8`;-function getAPIUrl() {- if (process.env.GITPOD_WORKSPACE_URL) {- const { href } = new URL(process.env.GITPOD_WORKSPACE_URL);- const newURL = href.replace("https://", "https://3001-").replace(/\/$/, "");- return newURL;- }- if (process.env.CODESANDBOX_HOST) {- return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, "3001")}`;- }- return isDev ? "http://host.docker.internal:3001" : "http://localhost:3000";-}-function getUIUrl() {- if (process.env.GITPOD_WORKSPACE_URL) {- const { href } = new URL(process.env.GITPOD_WORKSPACE_URL);- const newURL = href.replace("https://", "https://3000-").replace(/\/$/, "");- return newURL;- }- if (process.env.CODESANDBOX_HOST) {- return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, "3000")}`;- }- return "http://localhost:3000";-}-const mainTraefikEndpoint = isDev ? `${getAPIUrl()}/webhooks/traefik/main.json` : "http://coolify:3000/webhooks/traefik/main.json";-const otherTraefikEndpoint = isDev ? `${getAPIUrl()}/webhooks/traefik/other.json` : "http://coolify:3000/webhooks/traefik/other.json";-async function listSettings() {- return await import_prisma.prisma.setting.findUnique({ where: { id: "0" } });-}-async function getCurrentUser(userId) {- return await import_prisma.prisma.user.findUnique({- where: { id: userId },- include: { teams: true, permission: true }- });-}-async function getTeamInvitation(userId) {- return await import_prisma.prisma.teamInvitation.findMany({ where: { uid: userId } });-}-async function hashPassword(password) {- const saltRounds = 15;- return import_bcryptjs.default.hash(password, saltRounds);-}-async function comparePassword(password, hashedPassword) {- return import_bcryptjs.default.compare(password, hashedPassword);-}-const uniqueName = () => (0, import_unique_names_generator.uniqueNamesGenerator)(customConfig);-const decrypt = (hashString) => {- if (hashString) {- try {- const hash = JSON.parse(hashString);- const decipher = import_crypto.default.createDecipheriv(- algorithm,- import_env.env.COOLIFY_SECRET_KEY,- Buffer.from(hash.iv, "hex")- );- const decrpyted = Buffer.concat([- decipher.update(Buffer.from(hash.content, "hex")),- decipher.final()- ]);- return decrpyted.toString();- } catch (error) {- if (error instanceof Error) {- console.log({ decryptionError: error.message });- }- return hashString;- }- }- return false;-};-function generateRangeArray(start, end) {- return Array.from({ length: end - start }, (_v, k) => k + start);-}-function generateTimestamp() {- return `${(0, import_dayjs.day)().format("HH:mm:ss.SSS")}`;-}-const encrypt = (text) => {- if (text) {- const iv = import_crypto.default.randomBytes(16);- const cipher = import_crypto.default.createCipheriv(algorithm, import_env.env.COOLIFY_SECRET_KEY, iv);- const encrypted = Buffer.concat([cipher.update(text.trim()), cipher.final()]);- return JSON.stringify({- iv: iv.toString("hex"),- content: encrypted.toString("hex")- });- }- return false;-};-async function getTemplates() {- const templatePath = isDev ? "./templates.json" : "/app/templates.json";- const open = await import_promises.default.open(templatePath, "r");- try {- let data = await open.readFile({ encoding: "utf-8" });- let jsonData = JSON.parse(data);- if (isARM(process.arch)) {- jsonData = jsonData.filter((d) => d.arch !== "amd64");- }- return jsonData;- } catch (error) {- return [];- } finally {- await open?.close();- }-}-function isARM(arch) {- if (arch === "arm" || arch === "arm64" || arch === "aarch" || arch === "aarch64") {- return true;- }- return false;-}-async function removeService({ id }) {- await import_prisma.prisma.serviceSecret.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.serviceSetting.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.servicePersistentStorage.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.meiliSearch.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.fider.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.ghost.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.umami.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.hasura.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.plausibleAnalytics.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.minio.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.vscodeserver.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.wordpress.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.glitchTip.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.moodle.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.appwrite.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.searxng.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.weblate.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.taiga.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.service.delete({ where: { id } });-}-const createDirectories = async ({- repository,- buildId-}) => {- if (repository)- repository = repository.replaceAll(" ", "");- const repodir = `/tmp/build-sources/${repository}/`;- const workdir = `/tmp/build-sources/${repository}/${buildId}`;- let workdirFound = false;- try {- workdirFound = !!await import_promises.default.stat(workdir);- } catch (error) {- }- if (workdirFound) {- await (0, import_executeCommand.executeCommand)({ command: `rm -fr ${workdir}` });- }- await (0, import_executeCommand.executeCommand)({ command: `mkdir -p ${workdir}` });- return {- workdir,- repodir- };-};-async function saveDockerRegistryCredentials({ url, username, password, workdir }) {- if (!username || !password) {- return null;- }- let decryptedPassword = decrypt(password);- const location = `${workdir}/.docker`;- try {- await import_promises.default.mkdir(`${workdir}/.docker`);- } catch (error) {- console.log(error);- }- const payload = JSON.stringify({- auths: {- [url]: {- auth: Buffer.from(`${username}:${decryptedPassword}`).toString("base64")- }- }- });- await import_promises.default.writeFile(`${location}/config.json`, payload);- return location;-}-function getDomain(domain) {- if (domain) {- return domain?.replace("https://", "").replace("http://", "");- } else {- return "";- }-}-async function isDomainConfigured({- id,- fqdn,- checkOwn = false,- remoteIpAddress = void 0-}) {- const domain = getDomain(fqdn);- const nakedDomain = domain.replace("www.", "");- const foundApp = await import_prisma.prisma.application.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } },- { dockerComposeConfiguration: { contains: `//${nakedDomain}` } },- { dockerComposeConfiguration: { contains: `//www.${nakedDomain}` } }- ],- id: { not: id },- destinationDocker: {- remoteIpAddress- }- },- select: { fqdn: true }- });- const foundService = await import_prisma.prisma.service.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } }- ],- id: { not: checkOwn ? void 0 : id },- destinationDocker: {- remoteIpAddress- }- },- select: { fqdn: true }- });- const coolifyFqdn = await import_prisma.prisma.setting.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } }- ],- id: { not: id }- },- select: { fqdn: true }- });- return !!(foundApp || foundService || coolifyFqdn);-}-async function checkExposedPort({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress-}) {- if (exposePort < 1024 || exposePort > 65535) {- throw { status: 500, message: `Exposed Port needs to be between 1024 and 65535.` };- }- if (configuredPort) {- if (configuredPort !== exposePort) {- const availablePort = await getFreeExposedPort(- id,- exposePort,- engine,- remoteEngine,- remoteIpAddress- );- if (availablePort.toString() !== exposePort.toString()) {- throw { status: 500, message: `Port ${exposePort} is already in use.` };- }- }- } else {- const availablePort = await getFreeExposedPort(- id,- exposePort,- engine,- remoteEngine,- remoteIpAddress- );- if (availablePort.toString() !== exposePort.toString()) {- throw { status: 500, message: `Port ${exposePort} is already in use.` };- }- }-}-async function getFreeExposedPort(id, exposePort, engine, remoteEngine, remoteIpAddress) {- const { default: checkPort } = await import("is-port-reachable");- if (remoteEngine) {- const applicationUsed = await (await import_prisma.prisma.application.findMany({- where: {- exposePort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { exposePort: true }- })).map((a) => a.exposePort);- const serviceUsed = await (await import_prisma.prisma.service.findMany({- where: {- exposePort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { exposePort: true }- })).map((a) => a.exposePort);- const usedPorts = [...applicationUsed, ...serviceUsed];- if (usedPorts.includes(exposePort)) {- return false;- }- const found = await checkPort(exposePort, { host: remoteIpAddress });- if (!found) {- return exposePort;- }- return false;- } else {- const applicationUsed = await (await import_prisma.prisma.application.findMany({- where: { exposePort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { exposePort: true }- })).map((a) => a.exposePort);- const serviceUsed = await (await import_prisma.prisma.service.findMany({- where: { exposePort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { exposePort: true }- })).map((a) => a.exposePort);- const usedPorts = [...applicationUsed, ...serviceUsed];- if (usedPorts.includes(exposePort)) {- return false;- }- const found = await checkPort(exposePort, { host: "localhost" });- if (!found) {- return exposePort;- }- return false;- }-}-async function checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts }) {- const { isIP } = await import("is-ip");- const domain = getDomain(fqdn);- const domainDualCert = domain.includes("www.") ? domain.replace("www.", "") : `www.${domain}`;- const { DNSServers } = await listSettings();- if (DNSServers) {- import_dns.promises.setServers([...DNSServers.split(",")]);- }- let resolves = [];- try {- if (isIP(hostname)) {- resolves = [hostname];- } else {- resolves = await import_dns.promises.resolve4(hostname);- }- } catch (error) {- throw { status: 500, message: `Could not determine IP address for ${hostname}.` };- }- if (dualCerts) {- try {- const ipDomain = await import_dns.promises.resolve4(domain);- const ipDomainDualCert = await import_dns.promises.resolve4(domainDualCert);- let ipDomainFound = false;- let ipDomainDualCertFound = false;- for (const ip of ipDomain) {- if (resolves.includes(ip)) {- ipDomainFound = true;- }- }- for (const ip of ipDomainDualCert) {- if (resolves.includes(ip)) {- ipDomainDualCertFound = true;- }- }- if (ipDomainFound && ipDomainDualCertFound)- return { status: 200 };- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- } catch (error) {- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- }- } else {- try {- const ipDomain = await import_dns.promises.resolve4(domain);- let ipDomainFound = false;- for (const ip of ipDomain) {- if (resolves.includes(ip)) {- ipDomainFound = true;- }- }- if (ipDomainFound)- return { status: 200 };- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- } catch (error) {- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- }- }-}-const setDefaultConfiguration = async (data) => {- let {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- } = data;- const template = scanningTemplates[buildPack];- if (!port) {- port = template?.port || 3e3;- if (buildPack === "static")- port = 80;- else if (buildPack === "node")- port = 3e3;- else if (buildPack === "php")- port = 80;- else if (buildPack === "python")- port = 8e3;- }- if (!installCommand && buildPack !== "static" && buildPack !== "laravel")- installCommand = template?.installCommand || "yarn install";- if (!startCommand && buildPack !== "static" && buildPack !== "laravel")- startCommand = template?.startCommand || "yarn start";- if (!buildCommand && buildPack !== "static" && buildPack !== "laravel")- buildCommand = template?.buildCommand || null;- if (!publishDirectory)- publishDirectory = template?.publishDirectory || null;- if (baseDirectory) {- if (!baseDirectory.startsWith("/"))- baseDirectory = `/${baseDirectory}`;- if (baseDirectory.endsWith("/") && baseDirectory !== "/")- baseDirectory = baseDirectory.slice(0, -1);- }- if (dockerFileLocation) {- if (!dockerFileLocation.startsWith("/"))- dockerFileLocation = `/${dockerFileLocation}`;- if (dockerFileLocation.endsWith("/"))- dockerFileLocation = dockerFileLocation.slice(0, -1);- } else {- dockerFileLocation = "/Dockerfile";- }- if (dockerComposeFileLocation) {- if (!dockerComposeFileLocation.startsWith("/"))- dockerComposeFileLocation = `/${dockerComposeFileLocation}`;- if (dockerComposeFileLocation.endsWith("/"))- dockerComposeFileLocation = dockerComposeFileLocation.slice(0, -1);- } else {- dockerComposeFileLocation = "/Dockerfile";- }- if (!denoMainFile) {- denoMainFile = "main.ts";- }- return {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- };-};-const scanningTemplates = {- "@sveltejs/kit": {- buildPack: "nodejs"- },- astro: {- buildPack: "astro"- },- "@11ty/eleventy": {- buildPack: "eleventy"- },- svelte: {- buildPack: "svelte"- },- "@nestjs/core": {- buildPack: "nestjs"- },- next: {- buildPack: "nextjs"- },- nuxt: {- buildPack: "nuxtjs"- },- "react-scripts": {- buildPack: "react"- },- "parcel-bundler": {- buildPack: "static"- },- "@vue/cli-service": {- buildPack: "vuejs"- },- vuejs: {- buildPack: "vuejs"- },- gatsby: {- buildPack: "gatsby"- },- "preact-cli": {- buildPack: "react"- }-};-async function cleanupDB(buildId, applicationId) {- const data = await import_prisma.prisma.build.findUnique({ where: { id: buildId } });- if (data?.status === "queued" || data?.status === "running") {- await import_prisma.prisma.build.update({ where: { id: buildId }, data: { status: "canceled" } });- }- await (0, import_logging.saveBuildLog)({ line: "Canceled.", buildId, applicationId });-}-const base64Encode = (text) => {- return Buffer.from(text).toString("base64");-};-const base64Decode = (text) => {- return Buffer.from(text, "base64").toString("ascii");-};-function parseSecret(secret, isBuild) {- if (secret.value.includes("$")) {- secret.value = secret.value.replaceAll("$", "$$$$");- }- if (secret.value.includes("\\n")) {- if (isBuild) {- return `ARG ${secret.name}=${secret.value}`;- } else {- return `${secret.name}=${secret.value}`;- }- } else if (secret.value.includes(" ")) {- if (isBuild) {- return `ARG ${secret.name}='${secret.value}'`;- } else {- return `${secret.name}='${secret.value}'`;- }- } else {- if (isBuild) {- return `ARG ${secret.name}=${secret.value}`;- } else {- return `${secret.name}=${secret.value}`;- }- }-}-function generateSecrets(secrets, pullmergeRequestId, isBuild = false, port = null) {- const envs = [];- const isPRMRSecret = secrets.filter((s) => s.isPRMRSecret);- const normalSecrets = secrets.filter((s) => !s.isPRMRSecret);- if (pullmergeRequestId && isPRMRSecret.length > 0) {- isPRMRSecret.forEach((secret) => {- if (isBuild && !secret.isBuildSecret) {- return;- }- const build = isBuild && secret.isBuildSecret;- envs.push(parseSecret(secret, build));- });- }- if (!pullmergeRequestId && normalSecrets.length > 0) {- normalSecrets.forEach((secret) => {- if (isBuild && !secret.isBuildSecret) {- return;- }- const build = isBuild && secret.isBuildSecret;- envs.push(parseSecret(secret, build));- });- }- const portFound = envs.filter((env2) => env2.startsWith("PORT"));- if (portFound.length === 0 && port && !isBuild) {- envs.push(`PORT=${port}`);- }- const nodeEnv = envs.filter((env2) => env2.startsWith("NODE_ENV"));- if (nodeEnv.length === 0 && !isBuild) {- envs.push(`NODE_ENV=production`);- }- return envs;-}-function decryptApplication(application) {- if (application) {- if (application?.gitSource?.githubApp?.clientSecret) {- application.gitSource.githubApp.clientSecret = decrypt(application.gitSource.githubApp.clientSecret) || null;- }- if (application?.gitSource?.githubApp?.webhookSecret) {- application.gitSource.githubApp.webhookSecret = decrypt(application.gitSource.githubApp.webhookSecret) || null;- }- if (application?.gitSource?.githubApp?.privateKey) {- application.gitSource.githubApp.privateKey = decrypt(application.gitSource.githubApp.privateKey) || null;- }- if (application?.gitSource?.gitlabApp?.appSecret) {- application.gitSource.gitlabApp.appSecret = decrypt(application.gitSource.gitlabApp.appSecret) || null;- }- if (application?.secrets.length > 0) {- application.secrets = application.secrets.map((s) => {- s.value = decrypt(s.value) || null;- return s;- });- }- return application;- }-}-async function pushToRegistry(application, workdir, tag, imageName, customTag) {- const location = `${workdir}/.docker`;- const tagCommand = `docker tag ${application.id}:${tag} ${imageName}:${customTag}`;- const pushCommand = `docker --config ${location} push ${imageName}:${customTag}`;- await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDockerId,- command: tagCommand- });- await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDockerId,- command: pushCommand- });-}-async function getContainerUsage(dockerId, container) {- try {- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker container stats ${container} --no-stream --no-trunc --format "{{json .}}"`- });- return JSON.parse(stdout);- } catch (err) {- return {- MemUsage: 0,- CPUPerc: 0,- NetIO: 0- };- }-}-function fixType(type) {- return type?.replaceAll(" ", "").toLowerCase() || null;-}-const compareSemanticVersions = (a, b) => {- const a1 = a.split(".");- const b1 = b.split(".");- const len = Math.min(a1.length, b1.length);- for (let i = 0; i < len; i++) {- const a2 = +a1[i] || 0;- const b2 = +b1[i] || 0;- if (a2 !== b2) {- return a2 > b2 ? 1 : -1;- }- }- return b1.length - a1.length;-};-async function getTags(type) {- try {- if (type) {- const tagsPath = isDev ? "./tags.json" : "/app/tags.json";- const data = await import_promises.default.readFile(tagsPath, "utf8");- let tags = JSON.parse(data);- if (tags) {- tags = tags.find((tag) => tag.name.includes(type));- tags.tags = tags.tags.sort(compareSemanticVersions).reverse();- return tags;- }- }- } catch (error) {- return [];- }-}-function makeLabelForServices(type) {- return [- "coolify.managed=true",- `coolify.version=${version}`,- `coolify.type=service`,- `coolify.service.type=${type}`- ];-}-const asyncSleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay));-async function startTraefikTCPProxy(destinationDocker, id, publicPort, privatePort, type) {- const { network, id: dockerId, remoteEngine } = destinationDocker;- const container = `${id}-${publicPort}`;- const { found } = await (0, import_docker.checkContainer)({ dockerId, container, remove: true });- const { ipv4, ipv6 } = await listSettings();- let dependentId = id;- if (type === "wordpressftp")- dependentId = `${id}-ftp`;- const { found: foundDependentContainer } = await (0, import_docker.checkContainer)({- dockerId,- container: dependentId,- remove: true- });- if (foundDependentContainer && !found) {- const { stdout: Config } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker network inspect ${network} --format '{{json .IPAM.Config }}'`- });- const ip = JSON.parse(Config)[0].Gateway;- let traefikUrl = otherTraefikEndpoint;- if (remoteEngine) {- let ip2 = null;- if (isDev) {- ip2 = getAPIUrl();- } else {- ip2 = `http://${ipv4 || ipv6}:3000`;- }- traefikUrl = `${ip2}/webhooks/traefik/other.json`;- }- const tcpProxy = {- version: "3.8",- services: {- [`${id}-${publicPort}`]: {- container_name: container,- image: defaultTraefikImage,- command: [- `--entrypoints.tcp.address=:${publicPort}`,- `--entryPoints.tcp.forwardedHeaders.insecure=true`,- `--providers.http.endpoint=${traefikUrl}?id=${id}&privatePort=${privatePort}&publicPort=${publicPort}&type=tcp&address=${dependentId}`,- "--providers.http.pollTimeout=10s",- "--log.level=error"- ],- ports: [`${publicPort}:${publicPort}`],- extra_hosts: ["host.docker.internal:host-gateway", `host.docker.internal: ${ip}`],- volumes: ["/var/run/docker.sock:/var/run/docker.sock"],- networks: ["coolify-infra", network]- }- },- networks: {- [network]: {- external: false,- name: network- },- "coolify-infra": {- external: false,- name: "coolify-infra"- }- }- };- await import_promises.default.writeFile(`/tmp/docker-compose-${id}.yaml`, import_js_yaml.default.dump(tcpProxy));- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker compose -f /tmp/docker-compose-${id}.yaml up -d`- });- await import_promises.default.rm(`/tmp/docker-compose-${id}.yaml`);- }- if (!foundDependentContainer && found) {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker stop -t 0 ${container} && docker rm ${container}`,- shell: true- });- }-}-async function startTraefikProxy(id) {- const { engine, network, remoteEngine, remoteIpAddress } = await import_prisma.prisma.destinationDocker.findUnique({ where: { id } });- const { found } = await (0, import_docker.checkContainer)({- dockerId: id,- container: "coolify-proxy",- remove: true- });- const { id: settingsId, ipv4, ipv6 } = await listSettings();- if (!found) {- const { stdout: coolifyNetwork } = await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker network ls --filter 'name=coolify-infra' --no-trunc --format "{{json .}}"`- });- if (!coolifyNetwork) {- await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker network create --attachable coolify-infra`- });- }- const { stdout: Config } = await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker network inspect ${network} --format '{{json .IPAM.Config }}'`- });- const ip = JSON.parse(Config)[0].Gateway;- let traefikUrl = mainTraefikEndpoint;- if (remoteEngine) {- let ip2 = null;- if (isDev) {- ip2 = getAPIUrl();- } else {- ip2 = `http://${ipv4 || ipv6}:3000`;- }- traefikUrl = `${ip2}/webhooks/traefik/remote/${id}`;- }- await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker run --restart always --add-host 'host.docker.internal:host-gateway' ${ip ? `--add-host 'host.docker.internal:${ip}'` : ""} -v coolify-traefik-letsencrypt:/etc/traefik/acme -v /var/run/docker.sock:/var/run/docker.sock --network coolify-infra -p "80:80" -p "443:443" --name coolify-proxy -d ${defaultTraefikImage} --entrypoints.web.address=:80 --entrypoints.web.forwardedHeaders.insecure=true --entrypoints.websecure.address=:443 --entrypoints.websecure.forwardedHeaders.insecure=true --providers.docker=true --providers.docker.exposedbydefault=false --providers.http.endpoint=${traefikUrl} --providers.http.pollTimeout=5s --certificatesresolvers.letsencrypt.acme.httpchallenge=true --certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web --log.level=error`- });- await import_prisma.prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: true }- });- }- if (engine) {- const destinations = await import_prisma.prisma.destinationDocker.findMany({ where: { engine } });- for (const destination of destinations) {- await configureNetworkTraefikProxy(destination);- }- }- if (remoteEngine) {- const destinations = await import_prisma.prisma.destinationDocker.findMany({ where: { remoteIpAddress } });- for (const destination of destinations) {- await configureNetworkTraefikProxy(destination);- }- }-}-async function configureNetworkTraefikProxy(destination) {- const { id } = destination;- const { stdout: networks } = await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker ps -a --filter name=coolify-proxy --format '{{json .Networks}}'`- });- const configuredNetworks = networks.replace(/"/g, "").replace("\n", "").split(",");- if (!configuredNetworks.includes(destination.network)) {- await (0, import_executeCommand.executeCommand)({- dockerId: destination.id,- command: `docker network connect ${destination.network} coolify-proxy`- });- }-}-async function stopTraefikProxy(id) {- const { found } = await (0, import_docker.checkContainer)({ dockerId: id, container: "coolify-proxy" });- await import_prisma.prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: false }- });- if (found) {- return await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker stop -t 0 coolify-proxy && docker rm coolify-proxy`,- shell: true- });- }- return { stdout: "", stderr: "" };-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- asyncSleep,- base64Decode,- base64Encode,- checkDomainsIsValidInDNS,- checkExposedPort,- cleanupDB,- comparePassword,- configureNetworkTraefikProxy,- createDirectories,- decrypt,- decryptApplication,- defaultTraefikImage,- encrypt,- fixType,- generateRangeArray,- generateSecrets,- generateTimestamp,- getAPIUrl,- getContainerUsage,- getCurrentUser,- getDomain,- getFreeExposedPort,- getTags,- getTeamInvitation,- getTemplates,- getUIUrl,- hashPassword,- isARM,- isDev,- isDomainConfigured,- listSettings,- makeLabelForServices,- pushToRegistry,- removeService,- saveDockerRegistryCredentials,- scanningTemplates,- sentryDSN,- setDefaultConfiguration,- startTraefikProxy,- startTraefikTCPProxy,- stopTraefikProxy,- uniqueName,- version-});diff --git a/apps/trpc-experimental/server/build/lib/dayjs.js b/apps/trpc-experimental/server/build/lib/dayjs.jsdeleted file mode 100644index bc709ce177..0000000000--- a/apps/trpc-experimental/server/build/lib/dayjs.js+++ /dev/null@@ -1,38 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var dayjs_exports = {};-__export(dayjs_exports, {- day: () => import_dayjs.default-});-module.exports = __toCommonJS(dayjs_exports);-var import_dayjs = __toESM(require("dayjs"));-var import_utc = __toESM(require("dayjs/plugin/utc.js"));-var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime.js"));-import_dayjs.default.extend(import_utc.default);-import_dayjs.default.extend(import_relativeTime.default);-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- day-});diff --git a/apps/trpc-experimental/server/build/lib/docker.js b/apps/trpc-experimental/server/build/lib/docker.jsdeleted file mode 100644index 58fd81f5d3..0000000000--- a/apps/trpc-experimental/server/build/lib/docker.js+++ /dev/null@@ -1,168 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var docker_exports = {};-__export(docker_exports, {- checkContainer: () => checkContainer,- defaultComposeConfiguration: () => defaultComposeConfiguration,- formatLabelsOnDocker: () => formatLabelsOnDocker,- removeContainer: () => removeContainer,- stopDatabaseContainer: () => stopDatabaseContainer,- stopTcpHttpProxy: () => stopTcpHttpProxy-});-module.exports = __toCommonJS(docker_exports);-var import_executeCommand = require("./executeCommand");-async function checkContainer({- dockerId,- container,- remove = false-}) {- let containerFound = false;- try {- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker inspect --format '{{json .State}}' ${container}`- });- containerFound = true;- const parsedStdout = JSON.parse(stdout);- const status = parsedStdout.Status;- const isRunning = status === "running";- const isRestarting = status === "restarting";- const isExited = status === "exited";- if (status === "created") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker rm ${container}`- });- }- if (remove && status === "exited") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker rm ${container}`- });- }- return {- found: containerFound,- status: {- isRunning,- isRestarting,- isExited- }- };- } catch (err) {- }- return {- found: false- };-}-async function removeContainer({- id,- dockerId-}) {- try {- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker inspect --format '{{json .State}}' ${id}`- });- if (JSON.parse(stdout).Running) {- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker stop -t 0 ${id}` });- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker rm ${id}` });- }- if (JSON.parse(stdout).Status === "exited") {- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker rm ${id}` });- }- } catch (error) {- throw error;- }-}-async function stopDatabaseContainer(database) {- let everStarted = false;- const {- id,- destinationDockerId,- destinationDocker: { engine, id: dockerId }- } = database;- if (destinationDockerId) {- try {- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker inspect --format '{{json .State}}' ${id}`- });- if (stdout) {- everStarted = true;- await removeContainer({ id, dockerId });- }- } catch (error) {- }- }- return everStarted;-}-async function stopTcpHttpProxy(id, destinationDocker, publicPort, forceName = null) {- const { id: dockerId } = destinationDocker;- let container = `${id}-${publicPort}`;- if (forceName)- container = forceName;- const { found } = await checkContainer({ dockerId, container });- try {- if (!found)- return true;- return await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker stop -t 0 ${container} && docker rm ${container}`,- shell: true- });- } catch (error) {- return error;- }-}-function formatLabelsOnDocker(data) {- return data.trim().split("\n").map((a) => JSON.parse(a)).map((container) => {- const labels = container.Labels.split(",");- let jsonLabels = {};- labels.forEach((l) => {- const name = l.split("=")[0];- const value = l.split("=")[1];- jsonLabels = { ...jsonLabels, ...{ [name]: value } };- });- container.Labels = jsonLabels;- return container;- });-}-function defaultComposeConfiguration(network) {- return {- networks: [network],- restart: "on-failure",- deploy: {- restart_policy: {- condition: "on-failure",- delay: "5s",- max_attempts: 10,- window: "120s"- }- }- };-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- checkContainer,- defaultComposeConfiguration,- formatLabelsOnDocker,- removeContainer,- stopDatabaseContainer,- stopTcpHttpProxy-});diff --git a/apps/trpc-experimental/server/build/lib/executeCommand.js b/apps/trpc-experimental/server/build/lib/executeCommand.jsdeleted file mode 100644index b1a12607bf..0000000000--- a/apps/trpc-experimental/server/build/lib/executeCommand.js+++ /dev/null@@ -1,207 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var executeCommand_exports = {};-__export(executeCommand_exports, {- createRemoteEngineConfiguration: () => createRemoteEngineConfiguration,- executeCommand: () => executeCommand-});-module.exports = __toCommonJS(executeCommand_exports);-var import_prisma = require("../prisma");-var import_os = __toESM(require("os"));-var import_promises = __toESM(require("fs/promises"));-var import_ssh_config = __toESM(require("ssh-config"));-var import_ssh = require("./ssh");-var import_env = require("../env");-var import_logging = require("./logging");-var import_common = require("./common");-async function executeCommand({- command,- dockerId = null,- sshCommand = false,- shell = false,- stream = false,- buildId,- applicationId,- debug-}) {- const { execa, execaCommand } = await import("execa");- const { parse } = await import("shell-quote");- const parsedCommand = parse(command);- const dockerCommand = parsedCommand[0];- const dockerArgs = parsedCommand.slice(1);- if (dockerId && dockerCommand && dockerArgs) {- const destinationDocker = await import_prisma.prisma.destinationDocker.findUnique({- where: { id: dockerId }- });- if (!destinationDocker) {- throw new Error("Destination docker not found");- }- let { remoteEngine, remoteIpAddress, engine } = destinationDocker;- if (remoteEngine) {- await createRemoteEngineConfiguration(dockerId);- engine = `ssh://${remoteIpAddress}-remote`;- } else {- engine = "unix:///var/run/docker.sock";- }- if (import_env.env.CODESANDBOX_HOST) {- if (command.startsWith("docker compose")) {- command = command.replace(/docker compose/gi, "docker-compose");- }- }- if (sshCommand) {- if (shell) {- return execaCommand(`ssh ${remoteIpAddress}-remote ${command}`);- }- return await execa("ssh", [`${remoteIpAddress}-remote`, dockerCommand, ...dockerArgs]);- }- if (stream) {- return await new Promise(async (resolve, reject) => {- let subprocess = null;- if (shell) {- subprocess = execaCommand(command, {- env: { DOCKER_BUILDKIT: "1", DOCKER_HOST: engine }- });- } else {- subprocess = execa(dockerCommand, dockerArgs, {- env: { DOCKER_BUILDKIT: "1", DOCKER_HOST: engine }- });- }- const logs = [];- if (subprocess && subprocess.stdout && subprocess.stderr) {- subprocess.stdout.on("data", async (data) => {- const stdout = data.toString();- const array = stdout.split("\n");- for (const line of array) {- if (line !== "\n" && line !== "") {- const log = {- line: `${line.replace("\n", "")}`,- buildId,- applicationId- };- logs.push(log);- if (debug) {- await (0, import_logging.saveBuildLog)(log);- }- }- }- });- subprocess.stderr.on("data", async (data) => {- const stderr = data.toString();- const array = stderr.split("\n");- for (const line of array) {- if (line !== "\n" && line !== "") {- const log = {- line: `${line.replace("\n", "")}`,- buildId,- applicationId- };- logs.push(log);- if (debug) {- await (0, import_logging.saveBuildLog)(log);- }- }- }- });- subprocess.on("exit", async (code) => {- if (code === 0) {- resolve(code);- } else {- if (!debug) {- for (const log of logs) {- await (0, import_logging.saveBuildLog)(log);- }- }- reject(code);- }- });- }- });- } else {- if (shell) {- return await execaCommand(command, {- env: { DOCKER_BUILDKIT: "1", DOCKER_HOST: engine }- });- } else {- return await execa(dockerCommand, dockerArgs, {- env: { DOCKER_BUILDKIT: "1", DOCKER_HOST: engine }- });- }- }- } else {- if (shell) {- return execaCommand(command, { shell: true });- }- return await execa(dockerCommand, dockerArgs);- }-}-async function createRemoteEngineConfiguration(id) {- const homedir = import_os.default.homedir();- const sshKeyFile = `/tmp/id_rsa-${id}`;- const localPort = await (0, import_ssh.getFreeSSHLocalPort)(id);- const {- sshKey: { privateKey },- network,- remoteIpAddress,- remotePort,- remoteUser- } = await import_prisma.prisma.destinationDocker.findFirst({ where: { id }, include: { sshKey: true } });- await import_promises.default.writeFile(sshKeyFile, (0, import_common.decrypt)(privateKey) + "\n", { encoding: "utf8", mode: 400 });- const config = import_ssh_config.default.parse("");- const Host = `${remoteIpAddress}-remote`;- try {- await executeCommand({ command: `ssh-keygen -R ${Host}` });- await executeCommand({ command: `ssh-keygen -R ${remoteIpAddress}` });- await executeCommand({ command: `ssh-keygen -R localhost:${localPort}` });- } catch (error) {- }- const found = config.find({ Host });- const foundIp = config.find({ Host: remoteIpAddress });- if (found)- config.remove({ Host });- if (foundIp)- config.remove({ Host: remoteIpAddress });- config.append({- Host,- Hostname: remoteIpAddress,- Port: remotePort.toString(),- User: remoteUser,- StrictHostKeyChecking: "no",- IdentityFile: sshKeyFile,- ControlMaster: "auto",- ControlPath: `${homedir}/.ssh/coolify-${remoteIpAddress}-%r@%h:%p`,- ControlPersist: "10m"- });- try {- await import_promises.default.stat(`${homedir}/.ssh/`);- } catch (error) {- await import_promises.default.mkdir(`${homedir}/.ssh/`);- }- return await import_promises.default.writeFile(`${homedir}/.ssh/config`, import_ssh_config.default.stringify(config));-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- createRemoteEngineConfiguration,- executeCommand-});diff --git a/apps/trpc-experimental/server/build/lib/importers/github.js b/apps/trpc-experimental/server/build/lib/importers/github.jsdeleted file mode 100644index c03410e053..0000000000--- a/apps/trpc-experimental/server/build/lib/importers/github.js+++ /dev/null@@ -1,108 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var github_exports = {};-__export(github_exports, {- default: () => github_default-});-module.exports = __toCommonJS(github_exports);-var import_jsonwebtoken = __toESM(require("jsonwebtoken"));-var import_prisma = require("../../prisma");-var import_common = require("../buildPacks/common");-var import_common2 = require("../common");-var import_executeCommand = require("../executeCommand");-async function github_default({- applicationId,- workdir,- githubAppId,- repository,- apiUrl,- gitCommitHash,- htmlUrl,- branch,- buildId,- customPort,- forPublic-}) {- const { default: got } = await import("got");- const url = htmlUrl.replace("https://", "").replace("http://", "");- if (forPublic) {- await (0, import_common.saveBuildLog)({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await (0, import_common.saveBuildLog)({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- await (0, import_executeCommand.executeCommand)({- command: `git clone -q -b ${branch} https://${url}/${repository}.git ${workdir}/ && cd ${workdir} && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- });- } else {- const body = await import_prisma.prisma.githubApp.findUnique({ where: { id: githubAppId } });- if (body.privateKey)- body.privateKey = (0, import_common2.decrypt)(body.privateKey);- const { privateKey, appId, installationId } = body;- const githubPrivateKey = privateKey.replace(/\\n/g, "\n").replace(/"/g, "");- const payload = {- iat: Math.round(new Date().getTime() / 1e3),- exp: Math.round(new Date().getTime() / 1e3 + 60),- iss: appId- };- const jwtToken = import_jsonwebtoken.default.sign(payload, githubPrivateKey, {- algorithm: "RS256"- });- const { token } = await got.post(`${apiUrl}/app/installations/${installationId}/access_tokens`, {- headers: {- Authorization: `Bearer ${jwtToken}`,- Accept: "application/vnd.github.machine-man-preview+json"- }- }).json();- await (0, import_common.saveBuildLog)({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await (0, import_common.saveBuildLog)({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- await (0, import_executeCommand.executeCommand)({- command: `git clone -q -b ${branch} https://x-access-token:${token}@${url}/${repository}.git --config core.sshCommand="ssh -p ${customPort}" ${workdir}/ && cd ${workdir} && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- });- }- const { stdout: commit } = await (0, import_executeCommand.executeCommand)({ command: `cd ${workdir}/ && git rev-parse HEAD`, shell: true });- return commit.replace("\n", "");-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/importers/gitlab.js b/apps/trpc-experimental/server/build/lib/importers/gitlab.jsdeleted file mode 100644index d34c5bb7bd..0000000000--- a/apps/trpc-experimental/server/build/lib/importers/gitlab.js+++ /dev/null@@ -1,76 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var gitlab_exports = {};-__export(gitlab_exports, {- default: () => gitlab_default-});-module.exports = __toCommonJS(gitlab_exports);-var import_common = require("../buildPacks/common");-var import_executeCommand = require("../executeCommand");-async function gitlab_default({- applicationId,- workdir,- repodir,- htmlUrl,- gitCommitHash,- repository,- branch,- buildId,- privateSshKey,- customPort,- forPublic,- customUser-}) {- const url = htmlUrl.replace("https://", "").replace("http://", "").replace(/\/$/, "");- if (!forPublic) {- await (0, import_executeCommand.executeCommand)({ command: `echo '${privateSshKey}' > ${repodir}/id.rsa`, shell: true });- await (0, import_executeCommand.executeCommand)({ command: `chmod 600 ${repodir}/id.rsa` });- }- await (0, import_common.saveBuildLog)({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await (0, import_common.saveBuildLog)({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- if (forPublic) {- await (0, import_executeCommand.executeCommand)(- {- command: `git clone -q -b ${branch} https://${url}/${repository}.git ${workdir}/ && cd ${workdir}/ && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- }- );- } else {- await (0, import_executeCommand.executeCommand)(- {- command: `git clone -q -b ${branch} ${customUser}@${url}:${repository}.git --config core.sshCommand="ssh -p ${customPort} -q -i ${repodir}id.rsa -o StrictHostKeyChecking=no" ${workdir}/ && cd ${workdir}/ && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- }- );- }- const { stdout: commit } = await (0, import_executeCommand.executeCommand)({ command: `cd ${workdir}/ && git rev-parse HEAD`, shell: true });- return commit.replace("\n", "");-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {});diff --git a/apps/trpc-experimental/server/build/lib/importers/index.js b/apps/trpc-experimental/server/build/lib/importers/index.jsdeleted file mode 100644index c6d1a4b556..0000000000--- a/apps/trpc-experimental/server/build/lib/importers/index.js+++ /dev/null@@ -1,37 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var importers_exports = {};-__export(importers_exports, {- github: () => import_github.default,- gitlab: () => import_gitlab.default-});-module.exports = __toCommonJS(importers_exports);-var import_github = __toESM(require("./github"));-var import_gitlab = __toESM(require("./gitlab"));-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- github,- gitlab-});diff --git a/apps/trpc-experimental/server/build/lib/logging.js b/apps/trpc-experimental/server/build/lib/logging.jsdeleted file mode 100644index e820a79258..0000000000--- a/apps/trpc-experimental/server/build/lib/logging.js+++ /dev/null@@ -1,75 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var logging_exports = {};-__export(logging_exports, {- saveBuildLog: () => saveBuildLog-});-module.exports = __toCommonJS(logging_exports);-var import_prisma = require("../prisma");-var import_common = require("./common");-var import_dayjs = require("./dayjs");-const saveBuildLog = async ({ line, buildId, applicationId }) => {- if (buildId === "undefined" || buildId === "null" || !buildId)- return;- if (applicationId === "undefined" || applicationId === "null" || !applicationId)- return;- const { default: got } = await import("got");- if (typeof line === "object" && line) {- if (line.shortMessage) {- line = line.shortMessage + "\n" + line.stderr;- } else {- line = JSON.stringify(line);- }- }- if (line && typeof line === "string" && line.includes("ghs_")) {- const regex = /ghs_.*@/g;- line = line.replace(regex, "<SENSITIVE_DATA_DELETED>@");- }- const addTimestamp = `[${(0, import_common.generateTimestamp)()}] ${line}`;- const fluentBitUrl = import_common.isDev ? "http://localhost:24224" : "http://coolify-fluentbit:24224";- if (import_common.isDev) {- console.debug(`[${applicationId}] ${addTimestamp}`);- }- try {- return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {- json: {- line: (0, import_common.encrypt)(line)- }- });- } catch (error) {- return await import_prisma.prisma.buildLog.create({- data: {- line: addTimestamp,- buildId,- time: Number((0, import_dayjs.day)().valueOf()),- applicationId- }- });- }-};-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- saveBuildLog-});diff --git a/apps/trpc-experimental/server/build/lib/ssh.js b/apps/trpc-experimental/server/build/lib/ssh.jsdeleted file mode 100644index 508741eebf..0000000000--- a/apps/trpc-experimental/server/build/lib/ssh.js+++ /dev/null@@ -1,76 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var ssh_exports = {};-__export(ssh_exports, {- getFreeSSHLocalPort: () => getFreeSSHLocalPort-});-module.exports = __toCommonJS(ssh_exports);-var import_prisma = require("../prisma");-var import_common = require("./common");-async function getFreeSSHLocalPort(id) {- const { default: isReachable } = await import("is-port-reachable");- const { remoteIpAddress, sshLocalPort } = await import_prisma.prisma.destinationDocker.findUnique({- where: { id }- });- if (sshLocalPort) {- return Number(sshLocalPort);- }- const data = await import_prisma.prisma.setting.findFirst();- const { minPort, maxPort } = data;- const ports = await import_prisma.prisma.destinationDocker.findMany({- where: { sshLocalPort: { not: null }, remoteIpAddress: { not: remoteIpAddress } }- });- const alreadyConfigured = await import_prisma.prisma.destinationDocker.findFirst({- where: {- remoteIpAddress,- id: { not: id },- sshLocalPort: { not: null }- }- });- if (alreadyConfigured?.sshLocalPort) {- await import_prisma.prisma.destinationDocker.update({- where: { id },- data: { sshLocalPort: alreadyConfigured.sshLocalPort }- });- return Number(alreadyConfigured.sshLocalPort);- }- const range = (0, import_common.generateRangeArray)(minPort, maxPort);- const availablePorts = range.filter((port) => !ports.map((p) => p.sshLocalPort).includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: "localhost" });- if (!found) {- await import_prisma.prisma.destinationDocker.update({- where: { id },- data: { sshLocalPort: Number(port) }- });- return Number(port);- }- }- return false;-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- getFreeSSHLocalPort-});diff --git a/apps/trpc-experimental/server/build/prisma.js b/apps/trpc-experimental/server/build/prisma.jsdeleted file mode 100644index ec44b30000..0000000000--- a/apps/trpc-experimental/server/build/prisma.js+++ /dev/null@@ -1,36 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var prisma_exports = {};-__export(prisma_exports, {- prisma: () => prisma-});-module.exports = __toCommonJS(prisma_exports);-var import_env = require("./env");-var import_client = require("@prisma/client");-const prismaGlobal = global;-const prisma = prismaGlobal.prisma || new import_client.PrismaClient({- log: import_env.env.NODE_ENV !== "development" ? ["query", "error", "warn"] : ["error"]-});-if (import_env.env.NODE_ENV !== "production") {- prismaGlobal.prisma = prisma;-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- prisma-});diff --git a/apps/trpc-experimental/server/build/scheduler.js b/apps/trpc-experimental/server/build/scheduler.jsdeleted file mode 100644index 2a9b35e730..0000000000--- a/apps/trpc-experimental/server/build/scheduler.js+++ /dev/null@@ -1,48 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var scheduler_exports = {};-__export(scheduler_exports, {- isDev: () => isDev,- scheduler: () => scheduler-});-module.exports = __toCommonJS(scheduler_exports);-var import_bree = __toESM(require("bree"));-var import_path = __toESM(require("path"));-var import_ts_worker = __toESM(require("@breejs/ts-worker"));-const isDev = process.env["NODE_ENV"] === "development";-import_bree.default.extend(import_ts_worker.default);-const options = {- defaultExtension: "js",- logger: false,- jobs: [{ name: "applicationBuildQueue" }]-};-if (isDev)- options.root = import_path.default.join(__dirname, "./jobs");-const scheduler = new import_bree.default(options);-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- isDev,- scheduler-});diff --git a/apps/trpc-experimental/server/build/server.js b/apps/trpc-experimental/server/build/server.jsdeleted file mode 100644index f821124acb..0000000000--- a/apps/trpc-experimental/server/build/server.js+++ /dev/null@@ -1,99 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var server_exports = {};-__export(server_exports, {- createServer: () => createServer-});-module.exports = __toCommonJS(server_exports);-var import_fastify = require("@trpc/server/adapters/fastify");-var import_fastify2 = __toESM(require("fastify"));-var import_trpc = require("./trpc");-var import_context = require("./trpc/context");-var import_cors = __toESM(require("@fastify/cors"));-var path = __toESM(require("node:path"));-var import_static = __toESM(require("@fastify/static"));-var import_autoload = __toESM(require("@fastify/autoload"));-var import_graceful = __toESM(require("@ladjs/graceful"));-var import_scheduler = require("./scheduler");-const isDev = process.env["NODE_ENV"] === "development";-function createServer(opts) {- const dev = opts.dev ?? true;- const port = opts.port ?? 3e3;- const prefix = opts.prefix ?? "/trpc";- const server = (0, import_fastify2.default)({ logger: dev, trustProxy: true });- server.register(import_cors.default);- server.register(import_fastify.fastifyTRPCPlugin, {- prefix,- trpcOptions: {- router: import_trpc.appRouter,- createContext: import_context.createContext,- onError({ error, type, path: path2, input, ctx, req }) {- console.error("Error:", error);- if (error.code === "INTERNAL_SERVER_ERROR") {- }- }- }- });- if (!isDev) {- server.register(import_static.default, {- root: path.join(__dirname, "./public"),- preCompressed: true- });- server.setNotFoundHandler(async function(request, reply) {- if (request.raw.url && request.raw.url.startsWith("/api")) {- return reply.status(404).send({- success: false- });- }- return reply.status(200).sendFile("index.html");- });- }- server.register(import_autoload.default, {- dir: path.join(__dirname, "api"),- options: { prefix: "/api" }- });- const stop = () => server.close();- const start = async () => {- try {- await server.listen({ host: "0.0.0.0", port });- console.log("Coolify server is listening on port", port, "at 0.0.0.0 \u{1F680}");- const graceful = new import_graceful.default({ brees: [import_scheduler.scheduler] });- graceful.listen();- setInterval(async () => {- if (!import_scheduler.scheduler.workers.has("applicationBuildQueue")) {- import_scheduler.scheduler.run("applicationBuildQueue");- }- }, 2e3);- } catch (err) {- server.log.error(err);- process.exit(1);- }- };- return { server, start, stop };-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- createServer-});diff --git a/apps/trpc-experimental/server/build/trpc/context.js b/apps/trpc-experimental/server/build/trpc/context.jsdeleted file mode 100644index 953bece681..0000000000--- a/apps/trpc-experimental/server/build/trpc/context.js+++ /dev/null@@ -1,43 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var context_exports = {};-__export(context_exports, {- createContext: () => createContext-});-module.exports = __toCommonJS(context_exports);-var import_jsonwebtoken = __toESM(require("jsonwebtoken"));-var import_env = require("../env");-function createContext({ req }) {- const token = req.headers.authorization;- let user = null;- if (token) {- user = import_jsonwebtoken.default.verify(token, import_env.env.COOLIFY_SECRET_KEY);- }- return { user, hostname: req.hostname };-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- createContext-});diff --git a/apps/trpc-experimental/server/build/trpc/index.js b/apps/trpc-experimental/server/build/trpc/index.jsdeleted file mode 100644index a325a5955b..0000000000--- a/apps/trpc-experimental/server/build/trpc/index.js+++ /dev/null@@ -1,39 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var trpc_exports = {};-__export(trpc_exports, {- appRouter: () => appRouter-});-module.exports = __toCommonJS(trpc_exports);-var import_trpc = require("./trpc");-var import_routers = require("./routers");-const appRouter = (0, import_trpc.router)({- settings: import_routers.settingsRouter,- auth: import_routers.authRouter,- dashboard: import_routers.dashboardRouter,- applications: import_routers.applicationsRouter,- services: import_routers.servicesRouter,- databases: import_routers.databasesRouter,- sources: import_routers.sourcesRouter,- destinations: import_routers.destinationsRouter-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- appRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/applications/index.js b/apps/trpc-experimental/server/build/trpc/routers/applications/index.jsdeleted file mode 100644index b34785834a..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/applications/index.js+++ /dev/null@@ -1,1277 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var applications_exports = {};-__export(applications_exports, {- applicationsRouter: () => applicationsRouter-});-module.exports = __toCommonJS(applications_exports);-var import_zod = require("zod");-var import_promises = __toESM(require("fs/promises"));-var import_js_yaml = __toESM(require("js-yaml"));-var import_trpc = require("../../trpc");-var import_prisma = require("../../../prisma");-var import_executeCommand = require("../../../lib/executeCommand");-var import_docker = require("../../../lib/docker");-var import_lib = require("./lib");-var import_cuid = __toESM(require("cuid"));-var import_common = require("../../../lib/common");-var import_dayjs = require("../../../lib/dayjs");-var import_csvtojson = __toESM(require("csvtojson"));-const applicationsRouter = (0, import_trpc.router)({- deleteApplication: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- force: import_zod.z.boolean().default(false)- })- ).mutation(async ({ input, ctx }) => {- const { id, force } = input;- const teamId = ctx.user.teamId;- const application = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (!force && application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split("\n");- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id2 = containerObj.ID;- await (0, import_docker.removeContainer)({ id: id2, dockerId: application.destinationDocker.id });- }- }- }- await import_prisma.prisma.applicationSettings.deleteMany({ where: { application: { id } } });- await import_prisma.prisma.buildLog.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.build.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.secret.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.applicationConnectedDatabase.deleteMany({ where: { applicationId: id } });- if (teamId === "0") {- await import_prisma.prisma.application.deleteMany({ where: { id } });- } else {- await import_prisma.prisma.application.deleteMany({ where: { id, teams: { some: { id: teamId } } } });- }- return {};- }),- restartPreview: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- pullmergeRequestId: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- let application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- const buildId = (0, import_cuid.default)();- const { id: dockerId, network } = application.destinationDocker;- const {- secrets,- port,- repository,- persistentStorage,- id: applicationId,- buildPack,- exposePort- } = application;- let envs = [];- if (secrets.length > 0) {- envs = [...envs, ...(0, import_common.generateSecrets)(secrets, pullmergeRequestId, false, port)];- }- const { workdir } = await (0, import_common.createDirectories)({ repository, buildId });- const labels = [];- let image = null;- const { stdout: container } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker container ls --filter 'label=com.docker.compose.service=${id}-${pullmergeRequestId}' --format '{{json .}}'`- });- const containersArray = container.trim().split("\n");- for (const container2 of containersArray) {- const containerObj = (0, import_docker.formatLabelsOnDocker)(container2);- image = containerObj[0].Image;- Object.keys(containerObj[0].Labels).forEach(function(key) {- if (key.startsWith("coolify")) {- labels.push(`${key}=${containerObj[0].Labels[key]}`);- }- });- }- let imageFound = false;- try {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker image inspect ${image}`- });- imageFound = true;- } catch (error) {- }- if (!imageFound) {- throw { status: 500, message: "Image not found, cannot restart application." };- }- const volumes = persistentStorage?.map((storage) => {- return `${applicationId}${storage.path.replace(/\//gi, "-")}:${buildPack !== "docker" ? "/app" : ""}${storage.path}`;- }) || [];- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(":")[0]}`]: {- name: volume.split(":")[0]- }- };- });- const composeFile = {- version: "3.8",- services: {- [`${applicationId}-${pullmergeRequestId}`]: {- image,- container_name: `${applicationId}-${pullmergeRequestId}`,- volumes,- environment: envs,- labels,- depends_on: [],- expose: [port],- ...exposePort ? { ports: [`${exposePort}:${port}`] } : {},- ...(0, import_docker.defaultComposeConfiguration)(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await import_promises.default.writeFile(`${workdir}/docker-compose.yml`, import_js_yaml.default.dump(composeFile));- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker stop -t 0 ${id}-${pullmergeRequestId}` });- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker compose --project-directory ${workdir} up -d`- });- }- }),- getPreviewStatus: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- pullmergeRequestId: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- let isRunning = false;- let isExited = false;- let isRestarting = false;- let isBuilding = false;- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- const status = await (0, import_docker.checkContainer)({- dockerId: application.destinationDocker.id,- container: `${id}-${pullmergeRequestId}`- });- if (status?.found) {- isRunning = status.status.isRunning;- isExited = status.status.isExited;- isRestarting = status.status.isRestarting;- }- const building = await import_prisma.prisma.build.findMany({- where: { applicationId: id, pullmergeRequestId, status: { in: ["queued", "running"] } }- });- isBuilding = building.length > 0;- }- return {- success: true,- data: {- isBuilding,- isRunning,- isRestarting,- isExited- }- };- }),- loadPreviews: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- const application = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker container ls --filter 'name=${id}-' --format "{{json .}}"`- });- if (stdout === "") {- throw { status: 500, message: "No previews found." };- }- const containers = (0, import_docker.formatLabelsOnDocker)(stdout).filter(- (container) => container.Labels["coolify.configuration"] && container.Labels["coolify.type"] === "standalone-application"- );- const jsonContainers = containers.map(- (container) => JSON.parse(Buffer.from(container.Labels["coolify.configuration"], "base64").toString())- ).filter((container) => {- return container.pullmergeRequestId && container.applicationId === id;- });- for (const container of jsonContainers) {- const found = await import_prisma.prisma.previewApplication.findMany({- where: {- applicationId: container.applicationId,- pullmergeRequestId: container.pullmergeRequestId- }- });- if (found.length === 0) {- await import_prisma.prisma.previewApplication.create({- data: {- pullmergeRequestId: container.pullmergeRequestId,- sourceBranch: container.branch,- customDomain: container.fqdn,- application: { connect: { id: container.applicationId } }- }- });- }- }- return {- success: true,- data: {- previews: await import_prisma.prisma.previewApplication.findMany({ where: { applicationId: id } })- }- };- }),- stopPreview: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- pullmergeRequestId: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- const container = `${id}-${pullmergeRequestId}`;- const { id: dockerId } = application.destinationDocker;- const { found } = await (0, import_docker.checkContainer)({ dockerId, container });- if (found) {- await (0, import_docker.removeContainer)({ id: container, dockerId: application.destinationDocker.id });- }- await import_prisma.prisma.previewApplication.deleteMany({- where: { applicationId: application.id, pullmergeRequestId }- });- }- return {};- }),- getUsage: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- containerId: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id, containerId } = input;- const teamId = ctx.user.teamId;- let usage = {};- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application.destinationDockerId) {- [usage] = await Promise.all([- (0, import_common.getContainerUsage)(application.destinationDocker.id, containerId)- ]);- }- return {- success: true,- data: {- usage- }- };- }),- getLocalImages: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user.teamId;- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- let imagesAvailables = [];- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker images --format '{{.Repository}}#{{.Tag}}#{{.CreatedAt}}'`- });- const { stdout: runningImage } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter 'label=com.docker.compose.service=${id}' --format {{.Image}}`- });- const images = stdout.trim().split("\n").filter((image) => image.includes(id) && !image.includes("-cache"));- for (const image of images) {- const [repository, tag, createdAt] = image.split("#");- if (tag.includes("-")) {- continue;- }- const [year, time] = createdAt.split(" ");- imagesAvailables.push({- repository,- tag,- createdAt: (0, import_dayjs.day)(year + time).unix()- });- }- imagesAvailables = imagesAvailables.sort((a, b) => b.tag - a.tag);- return {- success: true,- data: {- imagesAvailables,- runningImage- }- };- }),- resetQueue: import_trpc.privateProcedure.mutation(async ({ ctx }) => {- const teamId = ctx.user.teamId;- if (teamId === "0") {- await import_prisma.prisma.build.updateMany({- where: { status: { in: ["queued", "running"] } },- data: { status: "canceled" }- });- }- }),- cancelBuild: import_trpc.privateProcedure.input(- import_zod.z.object({- buildId: import_zod.z.string(),- applicationId: import_zod.z.string()- })- ).mutation(async ({ input }) => {- const { buildId, applicationId } = input;- let count = 0;- await new Promise(async (resolve, reject) => {- const { destinationDockerId, status } = await import_prisma.prisma.build.findFirst({- where: { id: buildId }- });- const { id: dockerId } = await import_prisma.prisma.destinationDocker.findFirst({- where: { id: destinationDockerId }- });- const interval = setInterval(async () => {- try {- if (status === "failed" || status === "canceled") {- clearInterval(interval);- return resolve();- }- if (count > 15) {- clearInterval(interval);- await (0, import_common.cleanupDB)(buildId, applicationId);- return reject(new Error("Canceled."));- }- const { stdout: buildContainers } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker container ls --filter "label=coolify.buildId=${buildId}" --format '{{json .}}'`- });- if (buildContainers) {- const containersArray = buildContainers.trim().split("\n");- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- if (!containerObj.Names.startsWith(`${applicationId} `)) {- await (0, import_docker.removeContainer)({ id, dockerId });- clearInterval(interval);- await (0, import_common.cleanupDB)(buildId, applicationId);- return resolve();- }- }- }- count++;- } catch (error) {- }- }, 100);- });- }),- getBuildLogs: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- buildId: import_zod.z.string(),- sequence: import_zod.z.number()- })- ).query(async ({ input }) => {- let { id, buildId, sequence } = input;- let file = `/app/logs/${id}_buildlog_${buildId}.csv`;- if (import_common.isDev) {- file = `${process.cwd()}/../../logs/${id}_buildlog_${buildId}.csv`;- }- const data = await import_prisma.prisma.build.findFirst({ where: { id: buildId } });- const createdAt = (0, import_dayjs.day)(data.createdAt).utc();- try {- await import_promises.default.stat(file);- } catch (error) {- let logs2 = await import_prisma.prisma.buildLog.findMany({- where: { buildId, time: { gt: sequence } },- orderBy: { time: "asc" }- });- const data2 = await import_prisma.prisma.build.findFirst({ where: { id: buildId } });- const createdAt2 = (0, import_dayjs.day)(data2.createdAt).utc();- return {- logs: logs2.map((log) => {- log.time = Number(log.time);- return log;- }),- fromDb: true,- took: (0, import_dayjs.day)().diff(createdAt2) / 1e3,- status: data2?.status || "queued"- };- }- let fileLogs = (await import_promises.default.readFile(file)).toString();- let decryptedLogs = await (0, import_csvtojson.default)({ noheader: true }).fromString(fileLogs);- let logs = decryptedLogs.map((log) => {- const parsed = {- time: log["field1"],- line: (0, import_common.decrypt)(log["field2"] + '","' + log["field3"])- };- return parsed;- }).filter((log) => log.time > sequence);- return {- logs,- fromDb: false,- took: (0, import_dayjs.day)().diff(createdAt) / 1e3,- status: data?.status || "queued"- };- }),- getBuilds: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- buildId: import_zod.z.string().optional(),- skip: import_zod.z.number()- })- ).query(async ({ input }) => {- let { id, buildId, skip } = input;- let builds = [];- const buildCount = await import_prisma.prisma.build.count({ where: { applicationId: id } });- if (buildId) {- builds = await import_prisma.prisma.build.findMany({ where: { applicationId: id, id: buildId } });- } else {- builds = await import_prisma.prisma.build.findMany({- where: { applicationId: id },- orderBy: { createdAt: "desc" },- take: 5 + skip- });- }- builds = builds.map((build) => {- if (build.status === "running") {- build.elapsed = ((0, import_dayjs.day)().utc().diff((0, import_dayjs.day)(build.createdAt)) / 1e3).toFixed(0);- }- return build;- });- return {- builds,- buildCount- };- }),- loadLogs: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- containerId: import_zod.z.string(),- since: import_zod.z.number()- })- ).query(async ({ input }) => {- let { id, containerId, since } = input;- if (since !== 0) {- since = (0, import_dayjs.day)(since).unix();- }- const {- destinationDockerId,- destinationDocker: { id: dockerId }- } = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (destinationDockerId) {- try {- const { default: ansi } = await import("strip-ansi");- const { stdout, stderr } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker logs --since ${since} --tail 5000 --timestamps ${containerId}`- });- const stripLogsStdout = stdout.toString().split("\n").map((l) => ansi(l)).filter((a) => a);- const stripLogsStderr = stderr.toString().split("\n").map((l) => ansi(l)).filter((a) => a);- const logs = stripLogsStderr.concat(stripLogsStdout);- const sortedLogs = logs.sort(- (a, b) => (0, import_dayjs.day)(a.split(" ")[0]).isAfter((0, import_dayjs.day)(b.split(" ")[0])) ? 1 : -1- );- return { logs: sortedLogs };- } catch (error) {- const { statusCode, stderr } = error;- if (stderr.startsWith("Error: No such container")) {- return { logs: [], noContainer: true };- }- if (statusCode === 404) {- return {- logs: []- };- }- }- }- return {- message: "No logs found."- };- }),- getStorages: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ input }) => {- const { id } = input;- const persistentStorages = await import_prisma.prisma.applicationPersistentStorage.findMany({- where: { applicationId: id }- });- return {- success: true,- data: {- persistentStorages- }- };- }),- deleteStorage: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- path: import_zod.z.string()- })- ).mutation(async ({ input }) => {- const { id, path } = input;- await import_prisma.prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id, path } });- }),- updateStorage: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- path: import_zod.z.string(),- storageId: import_zod.z.string(),- newStorage: import_zod.z.boolean().optional().default(false)- })- ).mutation(async ({ input }) => {- const { id, path, newStorage, storageId } = input;- if (newStorage) {- await import_prisma.prisma.applicationPersistentStorage.create({- data: { path, application: { connect: { id } } }- });- } else {- await import_prisma.prisma.applicationPersistentStorage.update({- where: { id: storageId },- data: { path }- });- }- }),- deleteSecret: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string()- })- ).mutation(async ({ input }) => {- const { id, name } = input;- await import_prisma.prisma.secret.deleteMany({ where: { applicationId: id, name } });- }),- updateSecret: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- value: import_zod.z.string(),- isBuildSecret: import_zod.z.boolean().optional().default(false),- isPreview: import_zod.z.boolean().optional().default(false)- })- ).mutation(async ({ input }) => {- const { id, name, value, isBuildSecret, isPreview } = input;- console.log({ isBuildSecret });- await import_prisma.prisma.secret.updateMany({- where: { applicationId: id, name, isPRMRSecret: isPreview },- data: { value: (0, import_common.encrypt)(value.trim()), isBuildSecret }- });- }),- newSecret: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- value: import_zod.z.string(),- isBuildSecret: import_zod.z.boolean().optional().default(false)- })- ).mutation(async ({ input }) => {- const { id, name, value, isBuildSecret } = input;- const found = await import_prisma.prisma.secret.findMany({ where: { applicationId: id, name } });- if (found.length > 0) {- throw { message: "Secret already exists." };- }- await import_prisma.prisma.secret.create({- data: {- name,- value: (0, import_common.encrypt)(value.trim()),- isBuildSecret,- isPRMRSecret: false,- application: { connect: { id } }- }- });- await import_prisma.prisma.secret.create({- data: {- name,- value: (0, import_common.encrypt)(value.trim()),- isBuildSecret,- isPRMRSecret: true,- application: { connect: { id } }- }- });- }),- getSecrets: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ input }) => {- const { id } = input;- let secrets = await import_prisma.prisma.secret.findMany({- where: { applicationId: id, isPRMRSecret: false },- orderBy: { createdAt: "asc" }- });- let previewSecrets = await import_prisma.prisma.secret.findMany({- where: { applicationId: id, isPRMRSecret: true },- orderBy: { createdAt: "asc" }- });- secrets = secrets.map((secret) => {- secret.value = (0, import_common.decrypt)(secret.value);- return secret;- });- previewSecrets = previewSecrets.map((secret) => {- secret.value = (0, import_common.decrypt)(secret.value);- return secret;- });- return {- success: true,- data: {- previewSecrets: previewSecrets.sort((a, b) => {- return ("" + a.name).localeCompare(b.name);- }),- secrets: secrets.sort((a, b) => {- return ("" + a.name).localeCompare(b.name);- })- }- };- }),- checkDomain: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- domain: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id, domain } = input;- const {- fqdn,- settings: { dualCerts }- } = await import_prisma.prisma.application.findUnique({ where: { id }, include: { settings: true } });- return await (0, import_common.checkDomainsIsValidInDNS)({ hostname: domain, fqdn, dualCerts });- }),- checkDNS: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- fqdn: import_zod.z.string(),- forceSave: import_zod.z.boolean(),- dualCerts: import_zod.z.boolean(),- exposePort: import_zod.z.number().nullable().optional()- })- ).mutation(async ({ input, ctx }) => {- let { id, exposePort, fqdn, forceSave, dualCerts } = input;- if (!fqdn) {- return {};- } else {- fqdn = fqdn.toLowerCase();- }- if (exposePort)- exposePort = Number(exposePort);- const {- destinationDocker: { engine, remoteIpAddress, remoteEngine },- exposePort: configuredPort- } = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- const { isDNSCheckEnabled } = await import_prisma.prisma.setting.findFirst({});- const found = await (0, import_common.isDomainConfigured)({ id, fqdn, remoteIpAddress });- if (found) {- throw {- status: 500,- message: `Domain ${(0, import_common.getDomain)(fqdn).replace("www.", "")} is already in use!`- };- }- if (exposePort)- await (0, import_common.checkExposedPort)({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress- });- if (isDNSCheckEnabled && !import_common.isDev && !forceSave) {- let hostname = ctx.hostname.split(":")[0];- if (remoteEngine)- hostname = remoteIpAddress;- return await (0, import_common.checkDomainsIsValidInDNS)({ hostname, fqdn, dualCerts });- }- }),- saveSettings: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- previews: import_zod.z.boolean().optional(),- debug: import_zod.z.boolean().optional(),- dualCerts: import_zod.z.boolean().optional(),- isBot: import_zod.z.boolean().optional(),- autodeploy: import_zod.z.boolean().optional(),- isDBBranching: import_zod.z.boolean().optional(),- isCustomSSL: import_zod.z.boolean().optional()- })- ).mutation(async ({ ctx, input }) => {- const { id, debug, previews, dualCerts, autodeploy, isBot, isDBBranching, isCustomSSL } = input;- await import_prisma.prisma.application.update({- where: { id },- data: {- fqdn: isBot ? null : void 0,- settings: {- update: { debug, previews, dualCerts, autodeploy, isBot, isDBBranching, isCustomSSL }- }- },- include: { destinationDocker: true }- });- }),- getImages: import_trpc.privateProcedure.input(import_zod.z.object({ buildPack: import_zod.z.string(), deploymentType: import_zod.z.string().nullable() })).query(async ({ ctx, input }) => {- const { buildPack, deploymentType } = input;- let publishDirectory = void 0;- let port = void 0;- const { baseImage, baseBuildImage, baseBuildImages, baseImages } = (0, import_lib.setDefaultBaseImage)(- buildPack,- deploymentType- );- if (buildPack === "nextjs") {- if (deploymentType === "static") {- publishDirectory = "out";- port = "80";- } else {- publishDirectory = "";- port = "3000";- }- }- if (buildPack === "nuxtjs") {- if (deploymentType === "static") {- publishDirectory = "dist";- port = "80";- } else {- publishDirectory = "";- port = "3000";- }- }- return {- success: true,- data: { baseImage, baseImages, baseBuildImage, baseBuildImages, publishDirectory, port }- };- }),- getApplicationById: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: "Team not found." };- }- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- return {- success: true,- data: { ...application }- };- }),- save: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- buildPack: import_zod.z.string(),- fqdn: import_zod.z.string().nullable().optional(),- port: import_zod.z.number(),- exposePort: import_zod.z.number().nullable().optional(),- installCommand: import_zod.z.string(),- buildCommand: import_zod.z.string(),- startCommand: import_zod.z.string(),- baseDirectory: import_zod.z.string().nullable().optional(),- publishDirectory: import_zod.z.string().nullable().optional(),- pythonWSGI: import_zod.z.string().nullable().optional(),- pythonModule: import_zod.z.string().nullable().optional(),- pythonVariable: import_zod.z.string().nullable().optional(),- dockerFileLocation: import_zod.z.string(),- denoMainFile: import_zod.z.string().nullable().optional(),- denoOptions: import_zod.z.string().nullable().optional(),- gitCommitHash: import_zod.z.string(),- baseImage: import_zod.z.string(),- baseBuildImage: import_zod.z.string(),- deploymentType: import_zod.z.string().nullable().optional(),- baseDatabaseBranch: import_zod.z.string().nullable().optional(),- dockerComposeFile: import_zod.z.string().nullable().optional(),- dockerComposeFileLocation: import_zod.z.string().nullable().optional(),- dockerComposeConfiguration: import_zod.z.string().nullable().optional(),- simpleDockerfile: import_zod.z.string().nullable().optional(),- dockerRegistryImageName: import_zod.z.string().nullable().optional()- })- ).mutation(async ({ input }) => {- let {- id,- name,- buildPack,- fqdn,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- denoMainFile,- denoOptions,- gitCommitHash,- baseImage,- baseBuildImage,- deploymentType,- baseDatabaseBranch,- dockerComposeFile,- dockerComposeFileLocation,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName- } = input;- const {- destinationDocker: { engine, remoteEngine, remoteIpAddress },- exposePort: configuredPort- } = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (exposePort)- await (0, import_common.checkExposedPort)({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress- });- if (denoOptions)- denoOptions = denoOptions.trim();- const defaultConfiguration = await (0, import_common.setDefaultConfiguration)({- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- });- if (baseDatabaseBranch) {- await import_prisma.prisma.application.update({- where: { id },- data: {- name,- fqdn,- exposePort,- pythonWSGI,- pythonModule,- pythonVariable,- denoOptions,- baseImage,- gitCommitHash,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName,- ...defaultConfiguration,- connectedDatabase: { update: { hostedDatabaseDBName: baseDatabaseBranch } }- }- });- } else {- await import_prisma.prisma.application.update({- where: { id },- data: {- name,- fqdn,- exposePort,- pythonWSGI,- pythonModule,- gitCommitHash,- pythonVariable,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName,- ...defaultConfiguration- }- });- }- }),- status: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: "Team not found." };- }- let payload = [];- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- if (application.buildPack === "compose") {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter "label=coolify.applicationId=${id}" --format '{{json .}}'`- });- const containersArray = containers.trim().split("\n");- if (containersArray.length > 0 && containersArray[0] !== "") {- for (const container of containersArray) {- let isRunning = false;- let isExited = false;- let isRestarting = false;- const containerObj = JSON.parse(container);- const status = containerObj.State;- if (status === "running") {- isRunning = true;- }- if (status === "exited") {- isExited = true;- }- if (status === "restarting") {- isRestarting = true;- }- payload.push({- name: containerObj.Names,- status: {- isRunning,- isExited,- isRestarting- }- });- }- }- } else {- let isRunning = false;- let isExited = false;- let isRestarting = false;- const status = await (0, import_docker.checkContainer)({- dockerId: application.destinationDocker.id,- container: id- });- if (status?.found) {- isRunning = status.status.isRunning;- isExited = status.status.isExited;- isRestarting = status.status.isRestarting;- payload.push({- name: id,- status: {- isRunning,- isExited,- isRestarting- }- });- }- }- }- return payload;- }),- cleanup: import_trpc.privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let applications = await import_prisma.prisma.application.findMany({- where: { teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { settings: true, destinationDocker: true, teams: true }- });- for (const application of applications) {- if (!application.buildPack || !application.destinationDockerId || !application.branch || !application.settings?.isBot && !application?.fqdn) {- if (application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${application.id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split("\n");- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- await (0, import_docker.removeContainer)({ id, dockerId: application.destinationDocker.id });- }- }- }- await import_prisma.prisma.applicationSettings.deleteMany({ where: { applicationId: application.id } });- await import_prisma.prisma.buildLog.deleteMany({ where: { applicationId: application.id } });- await import_prisma.prisma.build.deleteMany({ where: { applicationId: application.id } });- await import_prisma.prisma.secret.deleteMany({ where: { applicationId: application.id } });- await import_prisma.prisma.applicationPersistentStorage.deleteMany({- where: { applicationId: application.id }- });- await import_prisma.prisma.applicationConnectedDatabase.deleteMany({- where: { applicationId: application.id }- });- await import_prisma.prisma.application.deleteMany({ where: { id: application.id } });- }- }- return {};- }),- stop: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- const { id: dockerId } = application.destinationDocker;- if (application.buildPack === "compose") {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter "label=coolify.applicationId=${id}" --format '{{json .}}'`- });- const containersArray = containers.trim().split("\n");- if (containersArray.length > 0 && containersArray[0] !== "") {- for (const container of containersArray) {- const containerObj = JSON.parse(container);- await (0, import_docker.removeContainer)({- id: containerObj.ID,- dockerId: application.destinationDocker.id- });- }- }- return;- }- const { found } = await (0, import_docker.checkContainer)({ dockerId, container: id });- if (found) {- await (0, import_docker.removeContainer)({ id, dockerId: application.destinationDocker.id });- }- }- return {};- }),- restart: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string(), imageId: import_zod.z.string().nullable() })).mutation(async ({ ctx, input }) => {- const { id, imageId } = input;- const teamId = ctx.user?.teamId;- let application = await (0, import_lib.getApplicationFromDB)(id, teamId);- if (application?.destinationDockerId) {- const buildId = (0, import_cuid.default)();- const { id: dockerId, network } = application.destinationDocker;- const {- dockerRegistry,- secrets,- pullmergeRequestId,- port,- repository,- persistentStorage,- id: applicationId,- buildPack,- exposePort- } = application;- let location = null;- const labels = [];- let image = null;- const envs = [`PORT=${port}`, "NODE_ENV=production"];- if (secrets.length > 0) {- secrets.forEach((secret) => {- if (pullmergeRequestId) {- const isSecretFound = secrets.filter((s) => s.name === secret.name && s.isPRMRSecret);- if (isSecretFound.length > 0) {- if (isSecretFound[0].value.includes("\\n") || isSecretFound[0].value.includes("'")) {- envs.push(`${secret.name}=${isSecretFound[0].value}`);- } else {- envs.push(`${secret.name}='${isSecretFound[0].value}'`);- }- } else {- if (secret.value.includes("\\n") || secret.value.includes("'")) {- envs.push(`${secret.name}=${secret.value}`);- } else {- envs.push(`${secret.name}='${secret.value}'`);- }- }- } else {- if (!secret.isPRMRSecret) {- if (secret.value.includes("\\n") || secret.value.includes("'")) {- envs.push(`${secret.name}=${secret.value}`);- } else {- envs.push(`${secret.name}='${secret.value}'`);- }- }- }- });- }- const { workdir } = await (0, import_common.createDirectories)({ repository, buildId });- if (imageId) {- image = imageId;- } else {- const { stdout: container } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker container ls --filter 'label=com.docker.compose.service=${id}' --format '{{json .}}'`- });- const containersArray = container.trim().split("\n");- for (const container2 of containersArray) {- const containerObj = (0, import_docker.formatLabelsOnDocker)(container2);- image = containerObj[0].Image;- Object.keys(containerObj[0].Labels).forEach(function(key) {- if (key.startsWith("coolify")) {- labels.push(`${key}=${containerObj[0].Labels[key]}`);- }- });- }- }- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await (0, import_common.saveDockerRegistryCredentials)({ url, username, password, workdir });- }- let imageFoundLocally = false;- try {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker image inspect ${image}`- });- imageFoundLocally = true;- } catch (error) {- }- let imageFoundRemotely = false;- try {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker ${location ? `--config ${location}` : ""} pull ${image}`- });- imageFoundRemotely = true;- } catch (error) {- }- if (!imageFoundLocally && !imageFoundRemotely) {- throw { status: 500, message: "Image not found, cannot restart application." };- }- await import_promises.default.writeFile(`${workdir}/.env`, envs.join("\n"));- let envFound = false;- try {- envFound = !!await import_promises.default.stat(`${workdir}/.env`);- } catch (error) {- }- const volumes = persistentStorage?.map((storage) => {- return `${applicationId}${storage.path.replace(/\//gi, "-")}:${buildPack !== "docker" ? "/app" : ""}${storage.path}`;- }) || [];- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(":")[0]}`]: {- name: volume.split(":")[0]- }- };- });- const composeFile = {- version: "3.8",- services: {- [applicationId]: {- image,- container_name: applicationId,- volumes,- env_file: envFound ? [`${workdir}/.env`] : [],- labels,- depends_on: [],- expose: [port],- ...exposePort ? { ports: [`${exposePort}:${port}`] } : {},- ...(0, import_docker.defaultComposeConfiguration)(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await import_promises.default.writeFile(`${workdir}/docker-compose.yml`, import_js_yaml.default.dump(composeFile));- try {- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker stop -t 0 ${id}` });- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker rm ${id}` });- } catch (error) {- }- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker compose --project-directory ${workdir} up -d`- });- }- return {};- }),- deploy: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- forceRebuild: import_zod.z.boolean().default(false),- pullmergeRequestId: import_zod.z.string().nullable().optional(),- branch: import_zod.z.string().nullable().optional()- })- ).mutation(async ({ ctx, input }) => {- const { id, pullmergeRequestId, branch, forceRebuild } = input;- const teamId = ctx.user?.teamId;- const buildId = await (0, import_lib.deployApplication)(id, teamId, forceRebuild, pullmergeRequestId, branch);- return {- buildId- };- }),- forceRedeploy: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const buildId = await (0, import_lib.deployApplication)(id, teamId, true);- return {- buildId- };- }),- delete: import_trpc.privateProcedure.input(import_zod.z.object({ force: import_zod.z.boolean(), id: import_zod.z.string() })).mutation(async ({ ctx, input }) => {- const { id, force } = input;- const teamId = ctx.user?.teamId;- const application = await import_prisma.prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (!force && application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split("\n");- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id2 = containerObj.ID;- await (0, import_docker.removeContainer)({ id: id2, dockerId: application.destinationDocker.id });- }- }- }- await import_prisma.prisma.applicationSettings.deleteMany({ where: { application: { id } } });- await import_prisma.prisma.buildLog.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.build.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.secret.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id } });- await import_prisma.prisma.applicationConnectedDatabase.deleteMany({ where: { applicationId: id } });- if (teamId === "0") {- await import_prisma.prisma.application.deleteMany({ where: { id } });- } else {- await import_prisma.prisma.application.deleteMany({ where: { id, teams: { some: { id: teamId } } } });- }- return {};- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- applicationsRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/applications/lib.js b/apps/trpc-experimental/server/build/trpc/routers/applications/lib.jsdeleted file mode 100644index 95a6d7b1d2..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/applications/lib.js+++ /dev/null@@ -1,526 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var lib_exports = {};-__export(lib_exports, {- deployApplication: () => deployApplication,- generateConfigHash: () => generateConfigHash,- getApplicationFromDB: () => getApplicationFromDB,- setDefaultBaseImage: () => setDefaultBaseImage-});-module.exports = __toCommonJS(lib_exports);-var import_cuid = __toESM(require("cuid"));-var import_node_crypto = __toESM(require("node:crypto"));-var import_common = require("../../../lib/common");-var import_prisma = require("../../../prisma");-async function deployApplication(id, teamId, forceRebuild, pullmergeRequestId = null, branch = null) {- const buildId = (0, import_cuid.default)();- const application = await getApplicationFromDB(id, teamId);- if (application) {- if (!application?.configHash) {- await generateConfigHash(- id,- application.buildPack,- application.port,- application.exposePort,- application.installCommand,- application.buildCommand,- application.startCommand- );- }- await import_prisma.prisma.application.update({ where: { id }, data: { updatedAt: new Date() } });- if (application.gitSourceId) {- await import_prisma.prisma.build.create({- data: {- id: buildId,- applicationId: id,- sourceBranch: branch,- branch: application.branch,- pullmergeRequestId: pullmergeRequestId?.toString(),- forceRebuild,- destinationDockerId: application.destinationDocker?.id,- gitSourceId: application.gitSource?.id,- githubAppId: application.gitSource?.githubApp?.id,- gitlabAppId: application.gitSource?.gitlabApp?.id,- status: "queued",- type: pullmergeRequestId ? application.gitSource?.githubApp?.id ? "manual_pr" : "manual_mr" : "manual"- }- });- } else {- await import_prisma.prisma.build.create({- data: {- id: buildId,- applicationId: id,- branch: "latest",- forceRebuild,- destinationDockerId: application.destinationDocker?.id,- status: "queued",- type: "manual"- }- });- }- return buildId;- }- throw { status: 500, message: "Application cannot be deployed." };-}-async function generateConfigHash(id, buildPack, port, exposePort, installCommand, buildCommand, startCommand) {- const configHash = import_node_crypto.default.createHash("sha256").update(- JSON.stringify({- buildPack,- port,- exposePort,- installCommand,- buildCommand,- startCommand- })- ).digest("hex");- return await import_prisma.prisma.application.update({ where: { id }, data: { configHash } });-}-async function getApplicationFromDB(id, teamId) {- let application = await import_prisma.prisma.application.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: {- destinationDocker: true,- settings: true,- gitSource: { include: { githubApp: true, gitlabApp: true } },- secrets: true,- persistentStorage: true,- connectedDatabase: true,- previewApplication: true,- dockerRegistry: true- }- });- if (!application) {- throw { status: 404, message: "Application not found." };- }- application = decryptApplication(application);- const buildPack = application?.buildPack || null;- const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(buildPack);- if (application && !application.baseImage) {- application.baseImage = baseImage;- }- if (application && !application.baseBuildImage) {- application.baseBuildImage = baseBuildImage;- }- return { ...application, baseBuildImages, baseImages };-}-function decryptApplication(application) {- if (application) {- if (application?.gitSource?.githubApp?.clientSecret) {- application.gitSource.githubApp.clientSecret = (0, import_common.decrypt)(application.gitSource.githubApp.clientSecret) || null;- }- if (application?.gitSource?.githubApp?.webhookSecret) {- application.gitSource.githubApp.webhookSecret = (0, import_common.decrypt)(application.gitSource.githubApp.webhookSecret) || null;- }- if (application?.gitSource?.githubApp?.privateKey) {- application.gitSource.githubApp.privateKey = (0, import_common.decrypt)(application.gitSource.githubApp.privateKey) || null;- }- if (application?.gitSource?.gitlabApp?.appSecret) {- application.gitSource.gitlabApp.appSecret = (0, import_common.decrypt)(application.gitSource.gitlabApp.appSecret) || null;- }- if (application?.secrets.length > 0) {- application.secrets = application.secrets.map((s) => {- s.value = (0, import_common.decrypt)(s.value) || null;- return s;- });- }- return application;- }-}-const staticApps = ["static", "react", "vuejs", "svelte", "gatsby", "astro", "eleventy"];-const nodeBased = [- "react",- "preact",- "vuejs",- "svelte",- "gatsby",- "astro",- "eleventy",- "node",- "nestjs",- "nuxtjs",- "nextjs"-];-function setDefaultBaseImage(buildPack, deploymentType = null) {- const nodeVersions = [- {- value: "node:lts",- label: "node:lts"- },- {- value: "node:18",- label: "node:18"- },- {- value: "node:17",- label: "node:17"- },- {- value: "node:16",- label: "node:16"- },- {- value: "node:14",- label: "node:14"- },- {- value: "node:12",- label: "node:12"- }- ];- const staticVersions = [- {- value: "webdevops/nginx:alpine",- label: "webdevops/nginx:alpine"- },- {- value: "webdevops/apache:alpine",- label: "webdevops/apache:alpine"- },- {- value: "nginx:alpine",- label: "nginx:alpine"- },- {- value: "httpd:alpine",- label: "httpd:alpine (Apache)"- }- ];- const rustVersions = [- {- value: "rust:latest",- label: "rust:latest"- },- {- value: "rust:1.60",- label: "rust:1.60"- },- {- value: "rust:1.60-buster",- label: "rust:1.60-buster"- },- {- value: "rust:1.60-bullseye",- label: "rust:1.60-bullseye"- },- {- value: "rust:1.60-slim-buster",- label: "rust:1.60-slim-buster"- },- {- value: "rust:1.60-slim-bullseye",- label: "rust:1.60-slim-bullseye"- },- {- value: "rust:1.60-alpine3.14",- label: "rust:1.60-alpine3.14"- },- {- value: "rust:1.60-alpine3.15",- label: "rust:1.60-alpine3.15"- }- ];- const phpVersions = [- {- value: "webdevops/php-apache:8.2",- label: "webdevops/php-apache:8.2"- },- {- value: "webdevops/php-nginx:8.2",- label: "webdevops/php-nginx:8.2"- },- {- value: "webdevops/php-apache:8.1",- label: "webdevops/php-apache:8.1"- },- {- value: "webdevops/php-nginx:8.1",- label: "webdevops/php-nginx:8.1"- },- {- value: "webdevops/php-apache:8.0",- label: "webdevops/php-apache:8.0"- },- {- value: "webdevops/php-nginx:8.0",- label: "webdevops/php-nginx:8.0"- },- {- value: "webdevops/php-apache:7.4",- label: "webdevops/php-apache:7.4"- },- {- value: "webdevops/php-nginx:7.4",- label: "webdevops/php-nginx:7.4"- },- {- value: "webdevops/php-apache:7.3",- label: "webdevops/php-apache:7.3"- },- {- value: "webdevops/php-nginx:7.3",- label: "webdevops/php-nginx:7.3"- },- {- value: "webdevops/php-apache:7.2",- label: "webdevops/php-apache:7.2"- },- {- value: "webdevops/php-nginx:7.2",- label: "webdevops/php-nginx:7.2"- },- {- value: "webdevops/php-apache:7.1",- label: "webdevops/php-apache:7.1"- },- {- value: "webdevops/php-nginx:7.1",- label: "webdevops/php-nginx:7.1"- },- {- value: "webdevops/php-apache:7.0",- label: "webdevops/php-apache:7.0"- },- {- value: "webdevops/php-nginx:7.0",- label: "webdevops/php-nginx:7.0"- },- {- value: "webdevops/php-apache:5.6",- label: "webdevops/php-apache:5.6"- },- {- value: "webdevops/php-nginx:5.6",- label: "webdevops/php-nginx:5.6"- },- {- value: "webdevops/php-apache:8.2-alpine",- label: "webdevops/php-apache:8.2-alpine"- },- {- value: "webdevops/php-nginx:8.2-alpine",- label: "webdevops/php-nginx:8.2-alpine"- },- {- value: "webdevops/php-apache:8.1-alpine",- label: "webdevops/php-apache:8.1-alpine"- },- {- value: "webdevops/php-nginx:8.1-alpine",- label: "webdevops/php-nginx:8.1-alpine"- },- {- value: "webdevops/php-apache:8.0-alpine",- label: "webdevops/php-apache:8.0-alpine"- },- {- value: "webdevops/php-nginx:8.0-alpine",- label: "webdevops/php-nginx:8.0-alpine"- },- {- value: "webdevops/php-apache:7.4-alpine",- label: "webdevops/php-apache:7.4-alpine"- },- {- value: "webdevops/php-nginx:7.4-alpine",- label: "webdevops/php-nginx:7.4-alpine"- },- {- value: "webdevops/php-apache:7.3-alpine",- label: "webdevops/php-apache:7.3-alpine"- },- {- value: "webdevops/php-nginx:7.3-alpine",- label: "webdevops/php-nginx:7.3-alpine"- },- {- value: "webdevops/php-apache:7.2-alpine",- label: "webdevops/php-apache:7.2-alpine"- },- {- value: "webdevops/php-nginx:7.2-alpine",- label: "webdevops/php-nginx:7.2-alpine"- },- {- value: "webdevops/php-apache:7.1-alpine",- label: "webdevops/php-apache:7.1-alpine"- },- {- value: "php:8.1-fpm",- label: "php:8.1-fpm"- },- {- value: "php:8.0-fpm",- label: "php:8.0-fpm"- },- {- value: "php:8.1-fpm-alpine",- label: "php:8.1-fpm-alpine"- },- {- value: "php:8.0-fpm-alpine",- label: "php:8.0-fpm-alpine"- }- ];- const pythonVersions = [- {- value: "python:3.10-alpine",- label: "python:3.10-alpine"- },- {- value: "python:3.10-buster",- label: "python:3.10-buster"- },- {- value: "python:3.10-bullseye",- label: "python:3.10-bullseye"- },- {- value: "python:3.10-slim-bullseye",- label: "python:3.10-slim-bullseye"- },- {- value: "python:3.9-alpine",- label: "python:3.9-alpine"- },- {- value: "python:3.9-buster",- label: "python:3.9-buster"- },- {- value: "python:3.9-bullseye",- label: "python:3.9-bullseye"- },- {- value: "python:3.9-slim-bullseye",- label: "python:3.9-slim-bullseye"- },- {- value: "python:3.8-alpine",- label: "python:3.8-alpine"- },- {- value: "python:3.8-buster",- label: "python:3.8-buster"- },- {- value: "python:3.8-bullseye",- label: "python:3.8-bullseye"- },- {- value: "python:3.8-slim-bullseye",- label: "python:3.8-slim-bullseye"- },- {- value: "python:3.7-alpine",- label: "python:3.7-alpine"- },- {- value: "python:3.7-buster",- label: "python:3.7-buster"- },- {- value: "python:3.7-bullseye",- label: "python:3.7-bullseye"- },- {- value: "python:3.7-slim-bullseye",- label: "python:3.7-slim-bullseye"- }- ];- const herokuVersions = [- {- value: "heroku/builder:22",- label: "heroku/builder:22"- },- {- value: "heroku/buildpacks:20",- label: "heroku/buildpacks:20"- },- {- value: "heroku/builder-classic:22",- label: "heroku/builder-classic:22"- }- ];- let payload = {- baseImage: null,- baseBuildImage: null,- baseImages: [],- baseBuildImages: []- };- if (nodeBased.includes(buildPack)) {- if (deploymentType === "static") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "nginx:alpine" : "webdevops/nginx:alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? staticVersions.filter((version) => !version.value.includes("webdevops")) : staticVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- } else {- payload.baseImage = "node:lts";- payload.baseImages = nodeVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- }- }- if (staticApps.includes(buildPack)) {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "nginx:alpine" : "webdevops/nginx:alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? staticVersions.filter((version) => !version.value.includes("webdevops")) : staticVersions;- payload.baseBuildImage = "node:lts";- payload.baseBuildImages = nodeVersions;- }- if (buildPack === "python") {- payload.baseImage = "python:3.10-alpine";- payload.baseImages = pythonVersions;- }- if (buildPack === "rust") {- payload.baseImage = "rust:latest";- payload.baseBuildImage = "rust:latest";- payload.baseImages = rustVersions;- payload.baseBuildImages = rustVersions;- }- if (buildPack === "deno") {- payload.baseImage = "denoland/deno:latest";- }- if (buildPack === "php") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "php:8.1-fpm-alpine" : "webdevops/php-apache:8.2-alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? phpVersions.filter((version) => !version.value.includes("webdevops")) : phpVersions;- }- if (buildPack === "laravel") {- payload.baseImage = (0, import_common.isARM)(process.arch) ? "php:8.1-fpm-alpine" : "webdevops/php-apache:8.2-alpine";- payload.baseImages = (0, import_common.isARM)(process.arch) ? phpVersions.filter((version) => !version.value.includes("webdevops")) : phpVersions;- payload.baseBuildImage = "node:18";- payload.baseBuildImages = nodeVersions;- }- if (buildPack === "heroku") {- payload.baseImage = "heroku/buildpacks:20";- payload.baseImages = herokuVersions;- }- return payload;-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- deployApplication,- generateConfigHash,- getApplicationFromDB,- setDefaultBaseImage-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/auth.js b/apps/trpc-experimental/server/build/trpc/routers/auth.jsdeleted file mode 100644index 5f41172d43..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/auth.js+++ /dev/null@@ -1,201 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var auth_exports = {};-__export(auth_exports, {- authRouter: () => authRouter-});-module.exports = __toCommonJS(auth_exports);-var import_zod = require("zod");-var import_trpc = require("../trpc");-var import_server = require("@trpc/server");-var import_common = require("../../lib/common");-var import_env = require("../../env");-var import_jsonwebtoken = __toESM(require("jsonwebtoken"));-var import_prisma = require("../../prisma");-var import_cuid = __toESM(require("cuid"));-const authRouter = (0, import_trpc.router)({- register: import_trpc.publicProcedure.input(- import_zod.z.object({- email: import_zod.z.string(),- password: import_zod.z.string()- })- ).mutation(async ({ input }) => {- const { email, password } = input;- const userFound = await import_prisma.prisma.user.findUnique({- where: { email },- include: { teams: true, permission: true }- });- if (userFound) {- throw new import_server.TRPCError({- code: "BAD_REQUEST",- message: "User already exists."- });- }- const settings = await (0, import_common.listSettings)();- if (!settings?.isRegistrationEnabled) {- throw new import_server.TRPCError({- code: "FORBIDDEN",- message: "Registration is disabled."- });- }- const usersCount = await import_prisma.prisma.user.count();- const uid = usersCount === 0 ? "0" : (0, import_cuid.default)();- const permission = "owner";- const isAdmin = true;- const hashedPassword = await (0, import_common.hashPassword)(password);- if (usersCount === 0) {- await import_prisma.prisma.user.create({- data: {- id: uid,- email,- password: hashedPassword,- type: "email",- teams: {- create: {- id: uid,- name: (0, import_common.uniqueName)(),- destinationDocker: { connect: { network: "coolify" } }- }- },- permission: { create: { teamId: uid, permission } }- },- include: { teams: true }- });- await import_prisma.prisma.setting.update({- where: { id: "0" },- data: { isRegistrationEnabled: false }- });- } else {- await import_prisma.prisma.user.create({- data: {- id: uid,- email,- password: hashedPassword,- type: "email",- teams: {- create: {- id: uid,- name: (0, import_common.uniqueName)()- }- },- permission: { create: { teamId: uid, permission } }- },- include: { teams: true }- });- }- const payload = {- userId: uid,- teamId: uid,- permission,- isAdmin- };- return {- ...payload,- token: import_jsonwebtoken.default.sign(payload, import_env.env.COOLIFY_SECRET_KEY)- };- }),- login: import_trpc.publicProcedure.input(- import_zod.z.object({- email: import_zod.z.string(),- password: import_zod.z.string()- })- ).mutation(async ({ input }) => {- const { email, password } = input;- const userFound = await import_prisma.prisma.user.findUnique({- where: { email },- include: { teams: true, permission: true }- });- if (!userFound) {- throw new import_server.TRPCError({- code: "BAD_REQUEST",- message: "User already exists."- });- }- if (userFound.type === "email") {- if (userFound.password === "RESETME") {- const hashedPassword = await (0, import_common.hashPassword)(password);- if (userFound.updatedAt < new Date(Date.now() - 1e3 * 60 * 10)) {- if (userFound.id === "0") {- await import_prisma.prisma.user.update({- where: { email: userFound.email },- data: { password: "RESETME" }- });- } else {- await import_prisma.prisma.user.update({- where: { email: userFound.email },- data: { password: "RESETTIMEOUT" }- });- }- } else {- await import_prisma.prisma.user.update({- where: { email: userFound.email },- data: { password: hashedPassword }- });- const payload2 = {- userId: userFound.id,- teamId: userFound.id,- permission: userFound.permission,- isAdmin: true- };- return {- ...payload2,- token: import_jsonwebtoken.default.sign(payload2, import_env.env.COOLIFY_SECRET_KEY)- };- }- }- if (!userFound.password) {- throw new import_server.TRPCError({- code: "BAD_REQUEST",- message: "Something went wrong. Please try again later."- });- }- const passwordMatch = (0, import_common.comparePassword)(password, userFound.password);- if (!passwordMatch) {- throw new import_server.TRPCError({- code: "BAD_REQUEST",- message: "Incorrect password."- });- }- const payload = {- userId: userFound.id,- teamId: userFound.id,- permission: userFound.permission,- isAdmin: true- };- return {- ...payload,- token: import_jsonwebtoken.default.sign(payload, import_env.env.COOLIFY_SECRET_KEY)- };- }- throw new import_server.TRPCError({- code: "BAD_REQUEST",- message: "Not implemented yet."- });- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- authRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/dashboard.js b/apps/trpc-experimental/server/build/trpc/routers/dashboard.jsdeleted file mode 100644index cd1519b5dd..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/dashboard.js+++ /dev/null@@ -1,87 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var dashboard_exports = {};-__export(dashboard_exports, {- dashboardRouter: () => dashboardRouter-});-module.exports = __toCommonJS(dashboard_exports);-var import_trpc = require("../trpc");-var import_common = require("../../lib/common");-var import_prisma = require("../../prisma");-const dashboardRouter = (0, import_trpc.router)({- resources: import_trpc.privateProcedure.query(async ({ ctx }) => {- const id = ctx.user?.teamId === "0" ? void 0 : ctx.user?.teamId;- let applications = await import_prisma.prisma.application.findMany({- where: { teams: { some: { id } } },- include: { settings: true, destinationDocker: true, teams: true }- });- const databases = await import_prisma.prisma.database.findMany({- where: { teams: { some: { id } } },- include: { settings: true, destinationDocker: true, teams: true }- });- const services = await import_prisma.prisma.service.findMany({- where: { teams: { some: { id } } },- include: { destinationDocker: true, teams: true }- });- const gitSources = await import_prisma.prisma.gitSource.findMany({- where: {- OR: [{ teams: { some: { id } } }, { isSystemWide: true }]- },- include: { teams: true }- });- const destinations = await import_prisma.prisma.destinationDocker.findMany({- where: { teams: { some: { id } } },- include: { teams: true }- });- const settings = await (0, import_common.listSettings)();- let foundUnconfiguredApplication = false;- for (const application of applications) {- if ((!application.buildPack || !application.branch) && !application.simpleDockerfile || !application.destinationDockerId || !application.settings?.isBot && !application?.fqdn && application.buildPack !== "compose") {- foundUnconfiguredApplication = true;- }- }- let foundUnconfiguredService = false;- for (const service of services) {- if (!service.fqdn) {- foundUnconfiguredService = true;- }- }- let foundUnconfiguredDatabase = false;- for (const database of databases) {- if (!database.version) {- foundUnconfiguredDatabase = true;- }- }- return {- foundUnconfiguredApplication,- foundUnconfiguredDatabase,- foundUnconfiguredService,- applications,- databases,- services,- gitSources,- destinations,- settings- };- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- dashboardRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/databases/index.js b/apps/trpc-experimental/server/build/trpc/routers/databases/index.jsdeleted file mode 100644index 70c2fc4d23..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/databases/index.js+++ /dev/null@@ -1,384 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var databases_exports = {};-__export(databases_exports, {- databasesRouter: () => databasesRouter-});-module.exports = __toCommonJS(databases_exports);-var import_zod = require("zod");-var import_promises = __toESM(require("fs/promises"));-var import_trpc = require("../../trpc");-var import_common = require("../../../lib/common");-var import_prisma = require("../../../prisma");-var import_executeCommand = require("../../../lib/executeCommand");-var import_docker = require("../../../lib/docker");-var import_lib = require("./lib");-var import_js_yaml = __toESM(require("js-yaml"));-var import_lib2 = require("../services/lib");-const databasesRouter = (0, import_trpc.router)({- usage: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const { id } = input;- let usage = {};- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- if (database.destinationDockerId) {- [usage] = await Promise.all([(0, import_common.getContainerUsage)(database.destinationDocker.id, id)]);- }- return {- success: true,- data: {- usage- }- };- }),- save: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const {- id,- name,- defaultDatabase,- dbUser,- dbUserPassword,- rootUser,- rootUserPassword,- version,- isRunning- } = input;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- if (isRunning) {- if (database.dbUserPassword !== dbUserPassword) {- await (0, import_lib.updatePasswordInDb)(database, dbUser, dbUserPassword, false);- } else if (database.rootUserPassword !== rootUserPassword) {- await (0, import_lib.updatePasswordInDb)(database, rootUser, rootUserPassword, true);- }- }- const encryptedDbUserPassword = dbUserPassword && (0, import_common.encrypt)(dbUserPassword);- const encryptedRootUserPassword = rootUserPassword && (0, import_common.encrypt)(rootUserPassword);- await import_prisma.prisma.database.update({- where: { id },- data: {- name,- defaultDatabase,- dbUser,- dbUserPassword: encryptedDbUserPassword,- rootUser,- rootUserPassword: encryptedRootUserPassword,- version- }- });- }),- saveSettings: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- isPublic: import_zod.z.boolean(),- appendOnly: import_zod.z.boolean().default(true)- })- ).mutation(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const { id, isPublic, appendOnly = true } = input;- let publicPort = null;- const {- destinationDocker: { remoteEngine, engine, remoteIpAddress }- } = await import_prisma.prisma.database.findUnique({ where: { id }, include: { destinationDocker: true } });- if (isPublic) {- publicPort = await (0, import_lib2.getFreePublicPort)({ id, remoteEngine, engine, remoteIpAddress });- }- await import_prisma.prisma.database.update({- where: { id },- data: {- settings: {- upsert: { update: { isPublic, appendOnly }, create: { isPublic, appendOnly } }- }- }- });- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- const { arch } = await (0, import_common.listSettings)();- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- const { destinationDockerId, destinationDocker, publicPort: oldPublicPort } = database;- const { privatePort } = (0, import_lib.generateDatabaseConfiguration)(database, arch);- if (destinationDockerId) {- if (isPublic) {- await import_prisma.prisma.database.update({ where: { id }, data: { publicPort } });- await (0, import_common.startTraefikTCPProxy)(destinationDocker, id, publicPort, privatePort);- } else {- await import_prisma.prisma.database.update({ where: { id }, data: { publicPort: null } });- await (0, import_docker.stopTcpHttpProxy)(id, destinationDocker, oldPublicPort);- }- }- return { publicPort };- }),- saveSecret: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- value: import_zod.z.string(),- isNew: import_zod.z.boolean().default(true)- })- ).mutation(async ({ ctx, input }) => {- let { id, name, value, isNew } = input;- if (isNew) {- const found = await import_prisma.prisma.databaseSecret.findFirst({ where: { name, databaseId: id } });- if (found) {- throw `Secret ${name} already exists.`;- } else {- value = (0, import_common.encrypt)(value.trim());- await import_prisma.prisma.databaseSecret.create({- data: { name, value, database: { connect: { id } } }- });- }- } else {- value = (0, import_common.encrypt)(value.trim());- const found = await import_prisma.prisma.databaseSecret.findFirst({ where: { databaseId: id, name } });- if (found) {- await import_prisma.prisma.databaseSecret.updateMany({- where: { databaseId: id, name },- data: { value }- });- } else {- await import_prisma.prisma.databaseSecret.create({- data: { name, value, database: { connect: { id } } }- });- }- }- }),- start: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true, databaseSecret: true }- });- const { arch } = await (0, import_common.listSettings)();- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- const {- type,- destinationDockerId,- destinationDocker,- publicPort,- settings: { isPublic },- databaseSecret- } = database;- const { privatePort, command, environmentVariables, image, volume, ulimits } = (0, import_lib.generateDatabaseConfiguration)(database, arch);- const network = destinationDockerId && destinationDocker.network;- const volumeName = volume.split(":")[0];- const labels = await (0, import_lib.makeLabelForStandaloneDatabase)({ id, image, volume });- const { workdir } = await (0, import_common.createDirectories)({ repository: type, buildId: id });- if (databaseSecret.length > 0) {- databaseSecret.forEach((secret) => {- environmentVariables[secret.name] = (0, import_common.decrypt)(secret.value);- });- }- const composeFile = {- version: "3.8",- services: {- [id]: {- container_name: id,- image,- command,- environment: environmentVariables,- volumes: [volume],- ulimits,- labels,- ...(0, import_docker.defaultComposeConfiguration)(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: {- [volumeName]: {- name: volumeName- }- }- };- const composeFileDestination = `${workdir}/docker-compose.yaml`;- await import_promises.default.writeFile(composeFileDestination, import_js_yaml.default.dump(composeFile));- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker compose -f ${composeFileDestination} up -d`- });- if (isPublic)- await (0, import_common.startTraefikTCPProxy)(destinationDocker, id, publicPort, privatePort);- }),- stop: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- const everStarted = await (0, import_docker.stopDatabaseContainer)(database);- if (everStarted)- await (0, import_docker.stopTcpHttpProxy)(id, database.destinationDocker, database.publicPort);- await import_prisma.prisma.database.update({- where: { id },- data: {- settings: { upsert: { update: { isPublic: false }, create: { isPublic: false } } }- }- });- await import_prisma.prisma.database.update({ where: { id }, data: { publicPort: null } });- }),- getDatabaseById: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (!database) {- throw { status: 404, message: "Database not found." };- }- const settings = await (0, import_common.listSettings)();- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- const configuration = (0, import_lib.generateDatabaseConfiguration)(database, settings.arch);- return {- success: true,- data: {- privatePort: configuration?.privatePort,- database,- versions: await (0, import_lib.getDatabaseVersions)(database.type, settings.arch),- settings- }- };- }),- status: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;- let isRunning = false;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database) {- const { destinationDockerId, destinationDocker } = database;- if (destinationDockerId) {- try {- const { stdout } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker inspect --format '{{json .State}}' ${id}`- });- if (JSON.parse(stdout).Running) {- isRunning = true;- }- } catch (error) {- }- }- }- return {- success: true,- data: {- isRunning- }- };- }),- cleanup: import_trpc.privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let databases = await import_prisma.prisma.database.findMany({- where: { teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { settings: true, destinationDocker: true, teams: true }- });- for (const database of databases) {- if (!database?.version) {- const { id } = database;- if (database.destinationDockerId) {- const everStarted = await (0, import_docker.stopDatabaseContainer)(database);- if (everStarted)- await (0, import_docker.stopTcpHttpProxy)(id, database.destinationDocker, database.publicPort);- }- await import_prisma.prisma.databaseSettings.deleteMany({ where: { databaseId: id } });- await import_prisma.prisma.databaseSecret.deleteMany({ where: { databaseId: id } });- await import_prisma.prisma.database.delete({ where: { id } });- }- }- return {};- }),- delete: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string(), force: import_zod.z.boolean().default(false) })).mutation(async ({ ctx, input }) => {- const { id, force } = input;- const teamId = ctx.user?.teamId;- const database = await import_prisma.prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (!force) {- if (database.dbUserPassword)- database.dbUserPassword = (0, import_common.decrypt)(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = (0, import_common.decrypt)(database.rootUserPassword);- if (database.destinationDockerId) {- const everStarted = await (0, import_docker.stopDatabaseContainer)(database);- if (everStarted)- await (0, import_docker.stopTcpHttpProxy)(id, database.destinationDocker, database.publicPort);- }- }- await import_prisma.prisma.databaseSettings.deleteMany({ where: { databaseId: id } });- await import_prisma.prisma.databaseSecret.deleteMany({ where: { databaseId: id } });- await import_prisma.prisma.database.delete({ where: { id } });- return {};- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- databasesRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/databases/lib.js b/apps/trpc-experimental/server/build/trpc/routers/databases/lib.jsdeleted file mode 100644index 2cb21ef782..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/databases/lib.js+++ /dev/null@@ -1,316 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var lib_exports = {};-__export(lib_exports, {- generateDatabaseConfiguration: () => generateDatabaseConfiguration,- getDatabaseImage: () => getDatabaseImage,- getDatabaseVersions: () => getDatabaseVersions,- makeLabelForStandaloneDatabase: () => makeLabelForStandaloneDatabase,- supportedDatabaseTypesAndVersions: () => supportedDatabaseTypesAndVersions,- updatePasswordInDb: () => updatePasswordInDb-});-module.exports = __toCommonJS(lib_exports);-var import_common = require("../../../lib/common");-var import_executeCommand = require("../../../lib/executeCommand");-var import_prisma = require("../../../prisma");-const supportedDatabaseTypesAndVersions = [- {- name: "mongodb",- fancyName: "MongoDB",- baseImage: "bitnami/mongodb",- baseImageARM: "mongo",- versions: ["5.0", "4.4", "4.2"],- versionsARM: ["5.0", "4.4", "4.2"]- },- {- name: "mysql",- fancyName: "MySQL",- baseImage: "bitnami/mysql",- baseImageARM: "mysql",- versions: ["8.0", "5.7"],- versionsARM: ["8.0", "5.7"]- },- {- name: "mariadb",- fancyName: "MariaDB",- baseImage: "bitnami/mariadb",- baseImageARM: "mariadb",- versions: ["10.8", "10.7", "10.6", "10.5", "10.4", "10.3", "10.2"],- versionsARM: ["10.8", "10.7", "10.6", "10.5", "10.4", "10.3", "10.2"]- },- {- name: "postgresql",- fancyName: "PostgreSQL",- baseImage: "bitnami/postgresql",- baseImageARM: "postgres",- versions: ["14.5.0", "13.8.0", "12.12.0", "11.17.0", "10.22.0"],- versionsARM: ["14.5", "13.8", "12.12", "11.17", "10.22"]- },- {- name: "redis",- fancyName: "Redis",- baseImage: "bitnami/redis",- baseImageARM: "redis",- versions: ["7.0", "6.2", "6.0", "5.0"],- versionsARM: ["7.0", "6.2", "6.0", "5.0"]- },- {- name: "couchdb",- fancyName: "CouchDB",- baseImage: "bitnami/couchdb",- baseImageARM: "couchdb",- versions: ["3.2.2", "3.1.2", "2.3.1"],- versionsARM: ["3.2.2", "3.1.2", "2.3.1"]- },- {- name: "edgedb",- fancyName: "EdgeDB",- baseImage: "edgedb/edgedb",- versions: ["latest", "2.1", "2.0", "1.4"]- }-];-function getDatabaseImage(type, arch) {- const found = supportedDatabaseTypesAndVersions.find((t) => t.name === type);- if (found) {- if ((0, import_common.isARM)(arch)) {- return found.baseImageARM || found.baseImage;- }- return found.baseImage;- }- return "";-}-function generateDatabaseConfiguration(database, arch) {- const { id, dbUser, dbUserPassword, rootUser, rootUserPassword, defaultDatabase, version: version2, type } = database;- const baseImage = getDatabaseImage(type, arch);- if (type === "mysql") {- const configuration = {- privatePort: 3306,- environmentVariables: {- MYSQL_USER: dbUser,- MYSQL_PASSWORD: dbUserPassword,- MYSQL_ROOT_PASSWORD: rootUserPassword,- MYSQL_ROOT_USER: rootUser,- MYSQL_DATABASE: defaultDatabase- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/mysql/data`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/mysql`;- }- return configuration;- } else if (type === "mariadb") {- const configuration = {- privatePort: 3306,- environmentVariables: {- MARIADB_ROOT_USER: rootUser,- MARIADB_ROOT_PASSWORD: rootUserPassword,- MARIADB_USER: dbUser,- MARIADB_PASSWORD: dbUserPassword,- MARIADB_DATABASE: defaultDatabase- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/mariadb`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/mysql`;- }- return configuration;- } else if (type === "mongodb") {- const configuration = {- privatePort: 27017,- environmentVariables: {- MONGODB_ROOT_USER: rootUser,- MONGODB_ROOT_PASSWORD: rootUserPassword- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/mongodb`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.environmentVariables = {- MONGO_INITDB_ROOT_USERNAME: rootUser,- MONGO_INITDB_ROOT_PASSWORD: rootUserPassword- };- configuration.volume = `${id}-${type}-data:/data/db`;- }- return configuration;- } else if (type === "postgresql") {- const configuration = {- privatePort: 5432,- environmentVariables: {- POSTGRESQL_POSTGRES_PASSWORD: rootUserPassword,- POSTGRESQL_PASSWORD: dbUserPassword,- POSTGRESQL_USERNAME: dbUser,- POSTGRESQL_DATABASE: defaultDatabase- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/postgresql`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;- configuration.environmentVariables = {- POSTGRES_PASSWORD: dbUserPassword,- POSTGRES_USER: dbUser,- POSTGRES_DB: defaultDatabase- };- }- return configuration;- } else if (type === "redis") {- const {- settings: { appendOnly }- } = database;- const configuration = {- privatePort: 6379,- command: void 0,- environmentVariables: {- REDIS_PASSWORD: dbUserPassword,- REDIS_AOF_ENABLED: appendOnly ? "yes" : "no"- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/redis/data`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.volume = `${id}-${type}-data:/data`;- configuration.command = `/usr/local/bin/redis-server --appendonly ${appendOnly ? "yes" : "no"} --requirepass ${dbUserPassword}`;- }- return configuration;- } else if (type === "couchdb") {- const configuration = {- privatePort: 5984,- environmentVariables: {- COUCHDB_PASSWORD: dbUserPassword,- COUCHDB_USER: dbUser- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/bitnami/couchdb`,- ulimits: {}- };- if ((0, import_common.isARM)(arch)) {- configuration.volume = `${id}-${type}-data:/opt/couchdb/data`;- }- return configuration;- } else if (type === "edgedb") {- const configuration = {- privatePort: 5656,- environmentVariables: {- EDGEDB_SERVER_PASSWORD: rootUserPassword,- EDGEDB_SERVER_USER: rootUser,- EDGEDB_SERVER_DATABASE: defaultDatabase,- EDGEDB_SERVER_TLS_CERT_MODE: "generate_self_signed"- },- image: `${baseImage}:${version2}`,- volume: `${id}-${type}-data:/var/lib/edgedb/data`,- ulimits: {}- };- return configuration;- }- return null;-}-function getDatabaseVersions(type, arch) {- const found = supportedDatabaseTypesAndVersions.find((t) => t.name === type);- if (found) {- if ((0, import_common.isARM)(arch)) {- return found.versionsARM || found.versions;- }- return found.versions;- }- return [];-}-async function updatePasswordInDb(database, user, newPassword, isRoot) {- const {- id,- type,- rootUser,- rootUserPassword,- dbUser,- dbUserPassword,- defaultDatabase,- destinationDockerId,- destinationDocker: { id: dockerId }- } = database;- if (destinationDockerId) {- if (type === "mysql") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} mysql -u ${rootUser} -p${rootUserPassword} -e "ALTER USER '${user}'@'%' IDENTIFIED WITH caching_sha2_password BY '${newPassword}';"`- });- } else if (type === "mariadb") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} mysql -u ${rootUser} -p${rootUserPassword} -e "SET PASSWORD FOR '${user}'@'%' = PASSWORD('${newPassword}');"`- });- } else if (type === "postgresql") {- if (isRoot) {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} psql postgresql://postgres:${rootUserPassword}@${id}:5432/${defaultDatabase} -c "ALTER role postgres WITH PASSWORD '${newPassword}'"`- });- } else {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} psql postgresql://${dbUser}:${dbUserPassword}@${id}:5432/${defaultDatabase} -c "ALTER role ${user} WITH PASSWORD '${newPassword}'"`- });- }- } else if (type === "mongodb") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} mongo 'mongodb://${rootUser}:${rootUserPassword}@${id}:27017/admin?readPreference=primary&ssl=false' --eval "db.changeUserPassword('${user}','${newPassword}')"`- });- } else if (type === "redis") {- await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker exec ${id} redis-cli -u redis://${dbUserPassword}@${id}:6379 --raw CONFIG SET requirepass ${newPassword}`- });- }- }-}-async function makeLabelForStandaloneDatabase({ id, image, volume }) {- const database = await import_prisma.prisma.database.findFirst({ where: { id } });- delete database.destinationDockerId;- delete database.createdAt;- delete database.updatedAt;- return [- "coolify.managed=true",- `coolify.version=${import_common.version}`,- `coolify.type=standalone-database`,- `coolify.name=${database.name}`,- `coolify.configuration=${(0, import_common.base64Encode)(- JSON.stringify({- version: import_common.version,- image,- volume,- ...database- })- )}`- ];-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- generateDatabaseConfiguration,- getDatabaseImage,- getDatabaseVersions,- makeLabelForStandaloneDatabase,- supportedDatabaseTypesAndVersions,- updatePasswordInDb-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/destinations/index.js b/apps/trpc-experimental/server/build/trpc/routers/destinations/index.jsdeleted file mode 100644index 787431e461..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/destinations/index.js+++ /dev/null@@ -1,220 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var destinations_exports = {};-__export(destinations_exports, {- destinationsRouter: () => destinationsRouter-});-module.exports = __toCommonJS(destinations_exports);-var import_zod = require("zod");-var import_trpc = require("../../trpc");-var import_common = require("../../../lib/common");-var import_prisma = require("../../../prisma");-var import_executeCommand = require("../../../lib/executeCommand");-var import_docker = require("../../../lib/docker");-const destinationsRouter = (0, import_trpc.router)({- restartProxy: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- await (0, import_common.stopTraefikProxy)(id);- await (0, import_common.startTraefikProxy)(id);- await import_prisma.prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: true }- });- }),- startProxy: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- await (0, import_common.startTraefikProxy)(id);- }),- stopProxy: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- await (0, import_common.stopTraefikProxy)(id);- }),- saveSettings: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- engine: import_zod.z.string(),- isCoolifyProxyUsed: import_zod.z.boolean()- })- ).mutation(async ({ input, ctx }) => {- const { id, engine, isCoolifyProxyUsed } = input;- await import_prisma.prisma.destinationDocker.updateMany({- where: { engine },- data: { isCoolifyProxyUsed }- });- }),- status: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const destination = await import_prisma.prisma.destinationDocker.findUnique({ where: { id } });- const { found: isRunning } = await (0, import_docker.checkContainer)({- dockerId: destination.id,- container: "coolify-proxy",- remove: true- });- return {- isRunning- };- }),- save: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- htmlUrl: import_zod.z.string(),- apiUrl: import_zod.z.string(),- customPort: import_zod.z.number(),- customUser: import_zod.z.string(),- isSystemWide: import_zod.z.boolean().default(false)- })- ).mutation(async ({ input, ctx }) => {- const { teamId } = ctx.user;- let {- id,- name,- network,- engine,- isCoolifyProxyUsed,- remoteIpAddress,- remoteUser,- remotePort- } = input;- if (id === "new") {- if (engine) {- const { stdout } = await await (0, import_executeCommand.executeCommand)({- command: `docker network ls --filter 'name=^${network}$' --format '{{json .}}'`- });- if (stdout === "") {- await await (0, import_executeCommand.executeCommand)({- command: `docker network create --attachable ${network}`- });- }- await import_prisma.prisma.destinationDocker.create({- data: { name, teams: { connect: { id: teamId } }, engine, network, isCoolifyProxyUsed }- });- const destinations = await import_prisma.prisma.destinationDocker.findMany({ where: { engine } });- const destination = destinations.find((destination2) => destination2.network === network);- if (destinations.length > 0) {- const proxyConfigured = destinations.find(- (destination2) => destination2.network !== network && destination2.isCoolifyProxyUsed === true- );- if (proxyConfigured) {- isCoolifyProxyUsed = !!proxyConfigured.isCoolifyProxyUsed;- }- await import_prisma.prisma.destinationDocker.updateMany({- where: { engine },- data: { isCoolifyProxyUsed }- });- }- if (isCoolifyProxyUsed) {- await (0, import_common.startTraefikProxy)(destination.id);- }- return { id: destination.id };- } else {- const destination = await import_prisma.prisma.destinationDocker.create({- data: {- name,- teams: { connect: { id: teamId } },- engine,- network,- isCoolifyProxyUsed,- remoteEngine: true,- remoteIpAddress,- remoteUser,- remotePort: Number(remotePort)- }- });- return { id: destination.id };- }- } else {- await import_prisma.prisma.destinationDocker.update({ where: { id }, data: { name, engine, network } });- return {};- }- }),- check: import_trpc.privateProcedure.input(- import_zod.z.object({- network: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { network } = input;- const found = await import_prisma.prisma.destinationDocker.findFirst({ where: { network } });- if (found) {- throw {- message: `Network already exists: ${network}`- };- }- }),- delete: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- const { network, remoteVerified, engine, isCoolifyProxyUsed } = await import_prisma.prisma.destinationDocker.findUnique({ where: { id } });- if (isCoolifyProxyUsed) {- if (engine || remoteVerified) {- const { stdout: found } = await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker ps -a --filter network=${network} --filter name=coolify-proxy --format '{{.}}'`- });- if (found) {- await (0, import_executeCommand.executeCommand)({- dockerId: id,- command: `docker network disconnect ${network} coolify-proxy`- });- await (0, import_executeCommand.executeCommand)({ dockerId: id, command: `docker network rm ${network}` });- }- }- }- await import_prisma.prisma.destinationDocker.delete({ where: { id } });- }),- getDestinationById: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id } = input;- const { teamId } = ctx.user;- const destination = await import_prisma.prisma.destinationDocker.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { sshKey: true, application: true, service: true, database: true }- });- if (!destination && id !== "new") {- throw { status: 404, message: `Destination not found.` };- }- const settings = await (0, import_common.listSettings)();- return {- destination,- settings- };- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- destinationsRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/index.js b/apps/trpc-experimental/server/build/trpc/routers/index.jsdeleted file mode 100644index a2eb93e72c..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/index.js+++ /dev/null@@ -1,25 +0,0 @@-"use strict";-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var routers_exports = {};-module.exports = __toCommonJS(routers_exports);-__reExport(routers_exports, require("./auth"), module.exports);-__reExport(routers_exports, require("./dashboard"), module.exports);-__reExport(routers_exports, require("./settings"), module.exports);-__reExport(routers_exports, require("./applications"), module.exports);-__reExport(routers_exports, require("./services"), module.exports);-__reExport(routers_exports, require("./databases"), module.exports);-__reExport(routers_exports, require("./sources"), module.exports);-__reExport(routers_exports, require("./destinations"), module.exports);diff --git a/apps/trpc-experimental/server/build/trpc/routers/services/index.js b/apps/trpc-experimental/server/build/trpc/routers/services/index.jsdeleted file mode 100644index 369203aaab..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/services/index.js+++ /dev/null@@ -1,846 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var services_exports = {};-__export(services_exports, {- getServiceFromDB: () => getServiceFromDB,- servicesRouter: () => servicesRouter-});-module.exports = __toCommonJS(services_exports);-var import_zod = require("zod");-var import_js_yaml = __toESM(require("js-yaml"));-var import_promises = __toESM(require("fs/promises"));-var import_path = __toESM(require("path"));-var import_trpc = require("../../trpc");-var import_common = require("../../../lib/common");-var import_prisma = require("../../../prisma");-var import_executeCommand = require("../../../lib/executeCommand");-var import_lib = require("./lib");-var import_docker = require("../../../lib/docker");-var import_cuid = __toESM(require("cuid"));-var import_dayjs = require("../../../lib/dayjs");-const servicesRouter = (0, import_trpc.router)({- getLogs: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- containerId: import_zod.z.string(),- since: import_zod.z.number().optional().default(0)- })- ).query(async ({ input, ctx }) => {- let { id, containerId, since } = input;- if (since !== 0) {- since = (0, import_dayjs.day)(since).unix();- }- const {- destinationDockerId,- destinationDocker: { id: dockerId }- } = await import_prisma.prisma.service.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (destinationDockerId) {- try {- const { default: ansi } = await import("strip-ansi");- const { stdout, stderr } = await (0, import_executeCommand.executeCommand)({- dockerId,- command: `docker logs --since ${since} --tail 5000 --timestamps ${containerId}`- });- const stripLogsStdout = stdout.toString().split("\n").map((l) => ansi(l)).filter((a) => a);- const stripLogsStderr = stderr.toString().split("\n").map((l) => ansi(l)).filter((a) => a);- const logs = stripLogsStderr.concat(stripLogsStdout);- const sortedLogs = logs.sort(- (a, b) => (0, import_dayjs.day)(a.split(" ")[0]).isAfter((0, import_dayjs.day)(b.split(" ")[0])) ? 1 : -1- );- return {- data: {- logs: sortedLogs- }- };- } catch (error) {- const { statusCode, stderr } = error;- if (stderr.startsWith("Error: No such container")) {- return {- data: {- logs: [],- noContainer: true- }- };- }- if (statusCode === 404) {- return {- data: {- logs: []- }- };- }- }- }- return {- message: "No logs found."- };- }),- deleteStorage: import_trpc.privateProcedure.input(- import_zod.z.object({- storageId: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { storageId } = input;- await import_prisma.prisma.servicePersistentStorage.deleteMany({ where: { id: storageId } });- }),- saveStorage: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- path: import_zod.z.string(),- isNewStorage: import_zod.z.boolean(),- storageId: import_zod.z.string().optional().nullable(),- containerId: import_zod.z.string().optional()- })- ).mutation(async ({ input, ctx }) => {- const { id, path: path2, isNewStorage, storageId, containerId } = input;- if (isNewStorage) {- const volumeName = `${id}-custom${path2.replace(/\//gi, "-")}`;- const found = await import_prisma.prisma.servicePersistentStorage.findFirst({- where: { path: path2, containerId }- });- if (found) {- throw {- status: 500,- message: "Persistent storage already exists for this container and path."- };- }- await import_prisma.prisma.servicePersistentStorage.create({- data: { path: path2, volumeName, containerId, service: { connect: { id } } }- });- } else {- await import_prisma.prisma.servicePersistentStorage.update({- where: { id: storageId },- data: { path: path2, containerId }- });- }- }),- getStorages: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const persistentStorages = await import_prisma.prisma.servicePersistentStorage.findMany({- where: { serviceId: id }- });- return {- success: true,- data: {- persistentStorages- }- };- }),- deleteSecret: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string(), name: import_zod.z.string() })).mutation(async ({ input, ctx }) => {- const { id, name } = input;- await import_prisma.prisma.serviceSecret.deleteMany({ where: { serviceId: id, name } });- }),- saveService: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- fqdn: import_zod.z.string().optional(),- exposePort: import_zod.z.string().optional(),- type: import_zod.z.string(),- serviceSetting: import_zod.z.any(),- version: import_zod.z.string().optional()- })- ).mutation(async ({ input, ctx }) => {- const teamId = ctx.user?.teamId;- let { id, name, fqdn, exposePort, type, serviceSetting, version } = input;- if (fqdn)- fqdn = fqdn.toLowerCase();- if (exposePort)- exposePort = Number(exposePort);- type = (0, import_common.fixType)(type);- const data = {- fqdn,- name,- exposePort,- version- };- const templates = await (0, import_common.getTemplates)();- const service = await import_prisma.prisma.service.findUnique({ where: { id } });- const foundTemplate = templates.find((t) => (0, import_common.fixType)(t.type) === (0, import_common.fixType)(service.type));- for (const setting of serviceSetting) {- let { id: settingId, name: name2, value, changed = false, isNew = false, variableName } = setting;- if (value) {- if (changed) {- await import_prisma.prisma.serviceSetting.update({ where: { id: settingId }, data: { value } });- }- if (isNew) {- if (!variableName) {- variableName = foundTemplate?.variables.find((v) => v.name === name2).id;- }- await import_prisma.prisma.serviceSetting.create({- data: { name: name2, value, variableName, service: { connect: { id } } }- });- }- }- }- await import_prisma.prisma.service.update({- where: { id },- data- });- }),- createSecret: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- value: import_zod.z.string(),- isBuildSecret: import_zod.z.boolean().optional(),- isPRMRSecret: import_zod.z.boolean().optional(),- isNew: import_zod.z.boolean().optional()- })- ).mutation(async ({ input }) => {- let { id, name, value, isNew } = input;- if (isNew) {- const found = await import_prisma.prisma.serviceSecret.findFirst({ where: { name, serviceId: id } });- if (found) {- throw `Secret ${name} already exists.`;- } else {- value = (0, import_common.encrypt)(value.trim());- await import_prisma.prisma.serviceSecret.create({- data: { name, value, service: { connect: { id } } }- });- }- } else {- value = (0, import_common.encrypt)(value.trim());- const found = await import_prisma.prisma.serviceSecret.findFirst({ where: { serviceId: id, name } });- if (found) {- await import_prisma.prisma.serviceSecret.updateMany({- where: { serviceId: id, name },- data: { value }- });- } else {- await import_prisma.prisma.serviceSecret.create({- data: { name, value, service: { connect: { id } } }- });- }- }- }),- getSecrets: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- let secrets = await import_prisma.prisma.serviceSecret.findMany({- where: { serviceId: id },- orderBy: { createdAt: "desc" }- });- const templates = await (0, import_common.getTemplates)();- if (!templates)- throw new Error("No templates found. Please contact support.");- const foundTemplate = templates.find((t) => (0, import_common.fixType)(t.type) === service.type);- secrets = secrets.map((secret) => {- const foundVariable = foundTemplate?.variables?.find((v) => v.name === secret.name) || null;- if (foundVariable) {- secret.readOnly = foundVariable.readOnly;- }- secret.value = (0, import_common.decrypt)(secret.value);- return secret;- });- return {- success: true,- data: {- secrets- }- };- }),- wordpress: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string(), ftpEnabled: import_zod.z.boolean() })).mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const {- service: {- destinationDocker: { engine, remoteEngine, remoteIpAddress }- }- } = await import_prisma.prisma.wordpress.findUnique({- where: { serviceId: id },- include: { service: { include: { destinationDocker: true } } }- });- const publicPort = await (0, import_lib.getFreePublicPort)({ id, remoteEngine, engine, remoteIpAddress });- let ftpUser = (0, import_cuid.default)();- let ftpPassword = (0, import_lib.generatePassword)({});- const hostkeyDir = import_common.isDev ? "/tmp/hostkeys" : "/app/ssl/hostkeys";- try {- const data = await import_prisma.prisma.wordpress.update({- where: { serviceId: id },- data: { ftpEnabled },- include: { service: { include: { destinationDocker: true } } }- });- const {- service: { destinationDockerId, destinationDocker },- ftpPublicPort,- ftpUser: user,- ftpPassword: savedPassword,- ftpHostKey,- ftpHostKeyPrivate- } = data;- const { network, engine: engine2 } = destinationDocker;- if (ftpEnabled) {- if (user)- ftpUser = user;- if (savedPassword)- ftpPassword = (0, import_common.decrypt)(savedPassword);- const { stdout: password } = await (0, import_executeCommand.executeCommand)({- command: `echo ${ftpPassword} | openssl passwd -1 -stdin`,- shell: true- });- if (destinationDockerId) {- try {- await import_promises.default.stat(hostkeyDir);- } catch (error) {- await (0, import_executeCommand.executeCommand)({ command: `mkdir -p ${hostkeyDir}` });- }- if (!ftpHostKey) {- await (0, import_executeCommand.executeCommand)({- command: `ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N "" -q -f ${hostkeyDir}/${id}.ed25519`- });- const { stdout: ftpHostKey2 } = await (0, import_executeCommand.executeCommand)({- command: `cat ${hostkeyDir}/${id}.ed25519`- });- await import_prisma.prisma.wordpress.update({- where: { serviceId: id },- data: { ftpHostKey: (0, import_common.encrypt)(ftpHostKey2) }- });- } else {- await (0, import_executeCommand.executeCommand)({- command: `echo "${(0, import_common.decrypt)(ftpHostKey)}" > ${hostkeyDir}/${id}.ed25519`,- shell: true- });- }- if (!ftpHostKeyPrivate) {- await (0, import_executeCommand.executeCommand)({- command: `ssh-keygen -t rsa -b 4096 -N "" -f ${hostkeyDir}/${id}.rsa`- });- const { stdout: ftpHostKeyPrivate2 } = await (0, import_executeCommand.executeCommand)({- command: `cat ${hostkeyDir}/${id}.rsa`- });- await import_prisma.prisma.wordpress.update({- where: { serviceId: id },- data: { ftpHostKeyPrivate: (0, import_common.encrypt)(ftpHostKeyPrivate2) }- });- } else {- await (0, import_executeCommand.executeCommand)({- command: `echo "${(0, import_common.decrypt)(ftpHostKeyPrivate)}" > ${hostkeyDir}/${id}.rsa`,- shell: true- });- }- await import_prisma.prisma.wordpress.update({- where: { serviceId: id },- data: {- ftpPublicPort: publicPort,- ftpUser: user ? void 0 : ftpUser,- ftpPassword: savedPassword ? void 0 : (0, import_common.encrypt)(ftpPassword)- }- });- try {- const { found: isRunning } = await (0, import_docker.checkContainer)({- dockerId: destinationDocker.id,- container: `${id}-ftp`- });- if (isRunning) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker stop -t 0 ${id}-ftp && docker rm ${id}-ftp`,- shell: true- });- }- } catch (error) {- }- const volumes = [- `${id}-wordpress-data:/home/${ftpUser}/wordpress`,- `${import_common.isDev ? hostkeyDir : "/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys"}/${id}.ed25519:/etc/ssh/ssh_host_ed25519_key`,- `${import_common.isDev ? hostkeyDir : "/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys"}/${id}.rsa:/etc/ssh/ssh_host_rsa_key`,- `${import_common.isDev ? hostkeyDir : "/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys"}/${id}.sh:/etc/sftp.d/chmod.sh`- ];- const compose = {- version: "3.8",- services: {- [`${id}-ftp`]: {- image: `atmoz/sftp:alpine`,- command: `'${ftpUser}:${password.replace("\n", "").replace(/\$/g, "$$$")}:e:33'`,- extra_hosts: ["host.docker.internal:host-gateway"],- container_name: `${id}-ftp`,- volumes,- networks: [network],- depends_on: [],- restart: "always"- }- },- networks: {- [network]: {- external: true- }- },- volumes: {- [`${id}-wordpress-data`]: {- external: true,- name: `${id}-wordpress-data`- }- }- };- await import_promises.default.writeFile(- `${hostkeyDir}/${id}.sh`,- `#!/bin/bash-chmod 600 /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_rsa_key-userdel -f xfs-chown -R 33:33 /home/${ftpUser}/wordpress/`- );- await (0, import_executeCommand.executeCommand)({ command: `chmod +x ${hostkeyDir}/${id}.sh` });- await import_promises.default.writeFile(`${hostkeyDir}/${id}-docker-compose.yml`, import_js_yaml.default.dump(compose));- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker compose -f ${hostkeyDir}/${id}-docker-compose.yml up -d`- });- }- return {- publicPort,- ftpUser,- ftpPassword- };- } else {- await import_prisma.prisma.wordpress.update({- where: { serviceId: id },- data: { ftpPublicPort: null }- });- try {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker stop -t 0 ${id}-ftp && docker rm ${id}-ftp`,- shell: true- });- } catch (error) {- }- await (0, import_docker.stopTcpHttpProxy)(id, destinationDocker, ftpPublicPort);- }- } catch ({ status, message }) {- throw message;- } finally {- try {- await (0, import_executeCommand.executeCommand)({- command: `rm -fr ${hostkeyDir}/${id}-docker-compose.yml ${hostkeyDir}/${id}.ed25519 ${hostkeyDir}/${id}.ed25519.pub ${hostkeyDir}/${id}.rsa ${hostkeyDir}/${id}.rsa.pub ${hostkeyDir}/${id}.sh`- });- } catch (error) {- }- }- }),- start: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- const arm = (0, import_common.isARM)(service.arch);- const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } = service;- const { workdir } = await (0, import_common.createDirectories)({ repository: type, buildId: id });- const template = await (0, import_lib.parseAndFindServiceTemplates)(service, workdir, true);- const network = destinationDockerId && destinationDocker.network;- const config = {};- for (const s in template.services) {- let newEnvironments = [];- if (arm) {- if (template.services[s]?.environmentArm?.length > 0) {- for (const environment of template.services[s].environmentArm) {- let [env, ...value] = environment.split("=");- value = value.join("=");- if (!value.startsWith("$$secret") && value !== "") {- newEnvironments.push(`${env}=${value}`);- }- }- }- } else {- if (template.services[s]?.environment?.length > 0) {- for (const environment of template.services[s].environment) {- let [env, ...value] = environment.split("=");- value = value.join("=");- if (!value.startsWith("$$secret") && value !== "") {- newEnvironments.push(`${env}=${value}`);- }- }- }- }- const secrets = await (0, import_lib.verifyAndDecryptServiceSecrets)(id);- for (const secret of secrets) {- const { name, value } = secret;- if (value) {- const foundEnv = !!template.services[s].environment?.find(- (env) => env.startsWith(`${name}=`)- );- const foundNewEnv = !!newEnvironments?.find((env) => env.startsWith(`${name}=`));- if (foundEnv && !foundNewEnv) {- newEnvironments.push(`${name}=${value}`);- }- if (!foundEnv && !foundNewEnv && s === id) {- newEnvironments.push(`${name}=${value}`);- }- }- }- const customVolumes = await import_prisma.prisma.servicePersistentStorage.findMany({- where: { serviceId: id }- });- let volumes = /* @__PURE__ */ new Set();- if (arm) {- template.services[s]?.volumesArm && template.services[s].volumesArm.length > 0 && template.services[s].volumesArm.forEach((v) => volumes.add(v));- } else {- template.services[s]?.volumes && template.services[s].volumes.length > 0 && template.services[s].volumes.forEach((v) => volumes.add(v));- }- if (service.type === "plausibleanalytics" && service.plausibleAnalytics?.id) {- let temp = Array.from(volumes);- temp.forEach((a) => {- const t = a.replace(service.id, service.plausibleAnalytics.id);- volumes.delete(a);- volumes.add(t);- });- }- if (customVolumes.length > 0) {- for (const customVolume of customVolumes) {- const { volumeName, path: path2, containerId } = customVolume;- if (volumes && volumes.size > 0 && !volumes.has(`${volumeName}:${path2}`) && containerId === service) {- volumes.add(`${volumeName}:${path2}`);- }- }- }- let ports = [];- if (template.services[s].proxy?.length > 0) {- for (const proxy of template.services[s].proxy) {- if (proxy.hostPort) {- ports.push(`${proxy.hostPort}:${proxy.port}`);- }- }- } else {- if (template.services[s].ports?.length === 1) {- for (const port of template.services[s].ports) {- if (exposePort) {- ports.push(`${exposePort}:${port}`);- }- }- }- }- let image = template.services[s].image;- if (arm && template.services[s].imageArm) {- image = template.services[s].imageArm;- }- config[s] = {- container_name: s,- build: template.services[s].build || void 0,- command: template.services[s].command,- entrypoint: template.services[s]?.entrypoint,- image,- expose: template.services[s].ports,- ports: ports.length > 0 ? ports : void 0,- volumes: Array.from(volumes),- environment: newEnvironments,- depends_on: template.services[s]?.depends_on,- ulimits: template.services[s]?.ulimits,- cap_drop: template.services[s]?.cap_drop,- cap_add: template.services[s]?.cap_add,- labels: (0, import_common.makeLabelForServices)(type),- ...(0, import_docker.defaultComposeConfiguration)(network)- };- if (template.services[s]?.files?.length > 0) {- if (!config[s].build) {- config[s].build = {- context: workdir,- dockerfile: `Dockerfile.${s}`- };- }- let Dockerfile = `- FROM ${template.services[s].image}`;- for (const file of template.services[s].files) {- const { location, content } = file;- const source = import_path.default.join(workdir, location);- await import_promises.default.mkdir(import_path.default.dirname(source), { recursive: true });- await import_promises.default.writeFile(source, content);- Dockerfile += `- COPY .${location} ${location}`;- }- await import_promises.default.writeFile(`${workdir}/Dockerfile.${s}`, Dockerfile);- }- }- const { volumeMounts } = (0, import_lib.persistentVolumes)(id, persistentStorage, config);- const composeFile = {- version: "3.8",- services: config,- networks: {- [network]: {- external: true- }- },- volumes: volumeMounts- };- const composeFileDestination = `${workdir}/docker-compose.yaml`;- await import_promises.default.writeFile(composeFileDestination, import_js_yaml.default.dump(composeFile));- let fastify = null;- await (0, import_lib.startServiceContainers)(fastify, id, teamId, destinationDocker.id, composeFileDestination);- if (service.type === "minio") {- try {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker container ls -a --filter 'name=${id}-' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- }- try {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDocker.id,- command: `docker container ls -a --filter 'name=${id}-' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- }- }- }),- stop: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const { destinationDockerId } = await getServiceFromDB({ id, teamId });- if (destinationDockerId) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.project=${id}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- return {};- }- }),- getServices: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- if (!service) {- throw { status: 404, message: "Service not found." };- }- let template = {};- let tags = [];- if (service.type) {- template = await (0, import_lib.parseAndFindServiceTemplates)(service);- tags = await (0, import_common.getTags)(service.type);- }- return {- success: true,- data: {- settings: await (0, import_common.listSettings)(),- service,- template,- tags- }- };- }),- status: import_trpc.privateProcedure.input(import_zod.z.object({ id: import_zod.z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: "Team not found." };- }- const service = await getServiceFromDB({ id, teamId });- const { destinationDockerId } = service;- let payload = {};- if (destinationDockerId) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: service.destinationDocker.id,- command: `docker ps -a --filter "label=com.docker.compose.project=${id}" --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split("\n");- if (containersArray.length > 0 && containersArray[0] !== "") {- const templates = await (0, import_common.getTemplates)();- let template = templates.find((t) => t.type === service.type);- const templateStr = JSON.stringify(template);- if (templateStr) {- template = JSON.parse(templateStr.replaceAll("$$id", service.id));- }- for (const container of containersArray) {- let isRunning = false;- let isExited = false;- let isRestarting = false;- let isExcluded = false;- const containerObj = JSON.parse(container);- const exclude = template?.services[containerObj.Names]?.exclude;- if (exclude) {- payload[containerObj.Names] = {- status: {- isExcluded: true,- isRunning: false,- isExited: false,- isRestarting: false- }- };- continue;- }- const status = containerObj.State;- if (status === "running") {- isRunning = true;- }- if (status === "exited") {- isExited = true;- }- if (status === "restarting") {- isRestarting = true;- }- payload[containerObj.Names] = {- status: {- isExcluded,- isRunning,- isExited,- isRestarting- }- };- }- }- }- }- return payload;- }),- cleanup: import_trpc.privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let services = await import_prisma.prisma.service.findMany({- where: { teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: { destinationDocker: true, teams: true }- });- for (const service of services) {- if (!service.fqdn) {- if (service.destinationDockerId) {- const { stdout: containers } = await (0, import_executeCommand.executeCommand)({- dockerId: service.destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.project=${service.id}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split("\n");- if (containerArray.length > 0) {- for (const container of containerArray) {- await (0, import_executeCommand.executeCommand)({- dockerId: service.destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await (0, import_executeCommand.executeCommand)({- dockerId: service.destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- }- await (0, import_common.removeService)({ id: service.id });- }- }- }),- delete: import_trpc.privateProcedure.input(import_zod.z.object({ force: import_zod.z.boolean(), id: import_zod.z.string() })).mutation(async ({ input }) => {- const { id } = input;- await import_prisma.prisma.serviceSecret.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.serviceSetting.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.servicePersistentStorage.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.meiliSearch.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.fider.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.ghost.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.umami.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.hasura.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.plausibleAnalytics.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.minio.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.vscodeserver.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.wordpress.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.glitchTip.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.moodle.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.appwrite.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.searxng.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.weblate.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.taiga.deleteMany({ where: { serviceId: id } });- await import_prisma.prisma.service.delete({ where: { id } });- return {};- })-});-async function getServiceFromDB({- id,- teamId-}) {- const settings = await import_prisma.prisma.setting.findFirst();- const body = await import_prisma.prisma.service.findFirst({- where: { id, teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- include: {- destinationDocker: true,- persistentStorage: true,- serviceSecret: true,- serviceSetting: true,- wordpress: true,- plausibleAnalytics: true- }- });- if (!body) {- return null;- }- if (body?.serviceSecret.length > 0) {- body.serviceSecret = body.serviceSecret.map((s) => {- s.value = (0, import_common.decrypt)(s.value);- return s;- });- }- if (body.wordpress) {- body.wordpress.ftpPassword = (0, import_common.decrypt)(body.wordpress.ftpPassword);- }- return { ...body, settings };-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- getServiceFromDB,- servicesRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/services/lib.js b/apps/trpc-experimental/server/build/trpc/routers/services/lib.jsdeleted file mode 100644index f374502d9e..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/services/lib.js+++ /dev/null@@ -1,371 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var lib_exports = {};-__export(lib_exports, {- generatePassword: () => generatePassword,- getFreePublicPort: () => getFreePublicPort,- parseAndFindServiceTemplates: () => parseAndFindServiceTemplates,- persistentVolumes: () => persistentVolumes,- startServiceContainers: () => startServiceContainers,- verifyAndDecryptServiceSecrets: () => verifyAndDecryptServiceSecrets-});-module.exports = __toCommonJS(lib_exports);-var import_common = require("../../../lib/common");-var import_bcryptjs = __toESM(require("bcryptjs"));-var import_prisma = require("../../../prisma");-var import_crypto = __toESM(require("crypto"));-var import_executeCommand = require("../../../lib/executeCommand");-async function parseAndFindServiceTemplates(service, workdir, isDeploy = false) {- const templates = await (0, import_common.getTemplates)();- const foundTemplate = templates.find((t) => (0, import_common.fixType)(t.type) === service.type);- let parsedTemplate = {};- if (foundTemplate) {- if (!isDeploy) {- for (const [key, value] of Object.entries(foundTemplate.services)) {- const realKey = key.replace("$$id", service.id);- let name = value.name;- if (!name) {- if (Object.keys(foundTemplate.services).length === 1) {- name = foundTemplate.name || service.name.toLowerCase();- } else {- if (key === "$$id") {- name = foundTemplate.name || key.replaceAll("$$id-", "") || service.name.toLowerCase();- } else {- name = key.replaceAll("$$id-", "") || service.name.toLowerCase();- }- }- }- parsedTemplate[realKey] = {- value,- name,- documentation: value.documentation || foundTemplate.documentation || "https://docs.coollabs.io",- image: value.image,- files: value?.files,- environment: [],- fqdns: [],- hostPorts: [],- proxy: {}- };- if (value.environment?.length > 0) {- for (const env of value.environment) {- let [envKey, ...envValue] = env.split("=");- envValue = envValue.join("=");- let variable = null;- if (foundTemplate?.variables) {- variable = foundTemplate?.variables.find((v) => v.name === envKey) || foundTemplate?.variables.find((v) => v.id === envValue);- }- if (variable) {- const id = variable.id.replaceAll("$$", "");- const label = variable?.label;- const description = variable?.description;- const defaultValue = variable?.defaultValue;- const main = variable?.main || "$$id";- const type = variable?.type || "input";- const placeholder = variable?.placeholder || "";- const readOnly = variable?.readOnly || false;- const required = variable?.required || false;- if (envValue.startsWith("$$config") || variable?.showOnConfiguration) {- if (envValue.startsWith("$$config_coolify")) {- continue;- }- parsedTemplate[realKey].environment.push({- id,- name: envKey,- value: envValue,- main,- label,- description,- defaultValue,- type,- placeholder,- required,- readOnly- });- }- }- }- }- if (value?.proxy && value.proxy.length > 0) {- for (const proxyValue of value.proxy) {- if (proxyValue.domain) {- const variable = foundTemplate?.variables.find((v) => v.id === proxyValue.domain);- if (variable) {- const { id, name: name2, label, description, defaultValue, required = false } = variable;- const found = await import_prisma.prisma.serviceSetting.findFirst({- where: { serviceId: service.id, variableName: proxyValue.domain }- });- parsedTemplate[realKey].fqdns.push({- id,- name: name2,- value: found?.value || "",- label,- description,- defaultValue,- required- });- }- }- if (proxyValue.hostPort) {- const variable = foundTemplate?.variables.find((v) => v.id === proxyValue.hostPort);- if (variable) {- const { id, name: name2, label, description, defaultValue, required = false } = variable;- const found = await import_prisma.prisma.serviceSetting.findFirst({- where: { serviceId: service.id, variableName: proxyValue.hostPort }- });- parsedTemplate[realKey].hostPorts.push({- id,- name: name2,- value: found?.value || "",- label,- description,- defaultValue,- required- });- }- }- }- }- }- } else {- parsedTemplate = foundTemplate;- }- let strParsedTemplate = JSON.stringify(parsedTemplate);- strParsedTemplate = strParsedTemplate.replaceAll("$$id", service.id);- strParsedTemplate = strParsedTemplate.replaceAll(- "$$core_version",- service.version || foundTemplate.defaultVersion- );- if (workdir) {- strParsedTemplate = strParsedTemplate.replaceAll("$$workdir", workdir);- }- if (service.serviceSetting.length > 0) {- for (const setting of service.serviceSetting) {- const { value, variableName } = setting;- const regex = new RegExp(`\\$\\$config_${variableName.replace("$$config_", "")}"`, "gi");- if (value === "$$generate_fqdn") {- strParsedTemplate = strParsedTemplate.replaceAll(regex, service.fqdn + '"' || '"');- } else if (value === "$$generate_fqdn_slash") {- strParsedTemplate = strParsedTemplate.replaceAll(regex, service.fqdn + '/"');- } else if (value === "$$generate_domain") {- strParsedTemplate = strParsedTemplate.replaceAll(regex, (0, import_common.getDomain)(service.fqdn) + '"');- } else if (service.destinationDocker?.network && value === "$$generate_network") {- strParsedTemplate = strParsedTemplate.replaceAll(- regex,- service.destinationDocker.network + '"'- );- } else {- strParsedTemplate = strParsedTemplate.replaceAll(regex, value + '"');- }- }- }- if (service.serviceSecret.length > 0) {- for (const secret of service.serviceSecret) {- let { name, value } = secret;- name = name.toLowerCase();- const regexHashed = new RegExp(`\\$\\$hashed\\$\\$secret_${name}`, "gi");- const regex = new RegExp(`\\$\\$secret_${name}`, "gi");- if (value) {- strParsedTemplate = strParsedTemplate.replaceAll(- regexHashed,- import_bcryptjs.default.hashSync(value.replaceAll('"', '\\"'), 10)- );- strParsedTemplate = strParsedTemplate.replaceAll(regex, value.replaceAll('"', '\\"'));- } else {- strParsedTemplate = strParsedTemplate.replaceAll(regexHashed, "");- strParsedTemplate = strParsedTemplate.replaceAll(regex, "");- }- }- }- parsedTemplate = JSON.parse(strParsedTemplate);- }- return parsedTemplate;-}-function generatePassword({- length = 24,- symbols = false,- isHex = false-}) {- if (isHex) {- return import_crypto.default.randomBytes(length).toString("hex");- }- const password = generator.generate({- length,- numbers: true,- strict: true,- symbols- });- return password;-}-async function getFreePublicPort({ id, remoteEngine, engine, remoteIpAddress }) {- const { default: isReachable } = await import("is-port-reachable");- const data = await import_prisma.prisma.setting.findFirst();- const { minPort, maxPort } = data;- if (remoteEngine) {- const dbUsed = await (await import_prisma.prisma.database.findMany({- where: {- publicPort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { publicPort: true }- })).map((a) => a.publicPort);- const wpFtpUsed = await (await import_prisma.prisma.wordpress.findMany({- where: {- ftpPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { ftpPublicPort: true }- })).map((a) => a.ftpPublicPort);- const wpUsed = await (await import_prisma.prisma.wordpress.findMany({- where: {- mysqlPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { mysqlPublicPort: true }- })).map((a) => a.mysqlPublicPort);- const minioUsed = await (await import_prisma.prisma.minio.findMany({- where: {- publicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { publicPort: true }- })).map((a) => a.publicPort);- const usedPorts = [...dbUsed, ...wpFtpUsed, ...wpUsed, ...minioUsed];- const range = (0, import_common.generateRangeArray)(minPort, maxPort);- const availablePorts = range.filter((port) => !usedPorts.includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: remoteIpAddress });- if (!found) {- return port;- }- }- return false;- } else {- const dbUsed = await (await import_prisma.prisma.database.findMany({- where: { publicPort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { publicPort: true }- })).map((a) => a.publicPort);- const wpFtpUsed = await (await import_prisma.prisma.wordpress.findMany({- where: {- ftpPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { ftpPublicPort: true }- })).map((a) => a.ftpPublicPort);- const wpUsed = await (await import_prisma.prisma.wordpress.findMany({- where: {- mysqlPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { mysqlPublicPort: true }- })).map((a) => a.mysqlPublicPort);- const minioUsed = await (await import_prisma.prisma.minio.findMany({- where: {- publicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { publicPort: true }- })).map((a) => a.publicPort);- const usedPorts = [...dbUsed, ...wpFtpUsed, ...wpUsed, ...minioUsed];- const range = (0, import_common.generateRangeArray)(minPort, maxPort);- const availablePorts = range.filter((port) => !usedPorts.includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: "localhost" });- if (!found) {- return port;- }- }- return false;- }-}-async function verifyAndDecryptServiceSecrets(id) {- const secrets = await import_prisma.prisma.serviceSecret.findMany({ where: { serviceId: id } });- let decryptedSecrets = secrets.map((secret) => {- const { name, value } = secret;- if (value) {- let rawValue = (0, import_common.decrypt)(value);- rawValue = rawValue.replaceAll(/\$/gi, "$$$");- return { name, value: rawValue };- }- return { name, value };- });- return decryptedSecrets;-}-function persistentVolumes(id, persistentStorage, config) {- let volumeSet = /* @__PURE__ */ new Set();- if (Object.keys(config).length > 0) {- for (const [key, value] of Object.entries(config)) {- if (value.volumes) {- for (const volume of value.volumes) {- if (!volume.startsWith("/")) {- volumeSet.add(volume);- }- }- }- }- }- const volumesArray = Array.from(volumeSet);- const persistentVolume = persistentStorage?.map((storage) => {- return `${id}${storage.path.replace(/\//gi, "-")}:${storage.path}`;- }) || [];- let volumes = [...persistentVolume];- if (volumesArray)- volumes = [...volumesArray, ...volumes];- const composeVolumes = volumes.length > 0 && volumes.map((volume) => {- return {- [`${volume.split(":")[0]}`]: {- name: volume.split(":")[0]- }- };- }) || [];- const volumeMounts = Object.assign({}, ...composeVolumes) || {};- return { volumeMounts };-}-async function startServiceContainers(fastify, id, teamId, dockerId, composeFileDestination) {- try {- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker compose -f ${composeFileDestination} pull` });- } catch (error) {- }- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker compose -f ${composeFileDestination} build --no-cache` });- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker compose -f ${composeFileDestination} create` });- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker compose -f ${composeFileDestination} start` });- await (0, import_common.asyncSleep)(1e3);- await (0, import_executeCommand.executeCommand)({ dockerId, command: `docker compose -f ${composeFileDestination} up -d` });-}-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- generatePassword,- getFreePublicPort,- parseAndFindServiceTemplates,- persistentVolumes,- startServiceContainers,- verifyAndDecryptServiceSecrets-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/settings.js b/apps/trpc-experimental/server/build/trpc/routers/settings.jsdeleted file mode 100644index 425a0d819b..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/settings.js+++ /dev/null@@ -1,108 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var settings_exports = {};-__export(settings_exports, {- settingsRouter: () => settingsRouter-});-module.exports = __toCommonJS(settings_exports);-var import_trpc = require("../trpc");-var import_server = require("@trpc/server");-var import_common = require("../../lib/common");-var import_env = require("../../env");-var import_jsonwebtoken = __toESM(require("jsonwebtoken"));-const settingsRouter = (0, import_trpc.router)({- getBaseSettings: import_trpc.publicProcedure.query(async () => {- const settings = await (0, import_common.listSettings)();- return {- success: true,- data: {- isRegistrationEnabled: settings?.isRegistrationEnabled- }- };- }),- getInstanceSettings: import_trpc.privateProcedure.query(async ({ ctx }) => {- try {- const settings = await (0, import_common.listSettings)();- let isAdmin = false;- let permission = null;- let token = null;- let pendingInvitations = [];- if (!settings) {- throw new import_server.TRPCError({- code: "INTERNAL_SERVER_ERROR",- message: "An unexpected error occurred, please try again later."- });- }- if (ctx.user) {- const currentUser = await (0, import_common.getCurrentUser)(ctx.user.userId);- if (currentUser) {- const foundPermission = currentUser.permission.find(- (p) => p.teamId === ctx.user?.teamId- )?.permission;- if (foundPermission) {- permission = foundPermission;- isAdmin = foundPermission === "owner" || foundPermission === "admin";- }- const payload = {- userId: ctx.user?.userId,- teamId: ctx.user?.teamId,- permission,- isAdmin,- iat: Math.floor(Date.now() / 1e3)- };- token = import_jsonwebtoken.default.sign(payload, import_env.env.COOLIFY_SECRET_KEY);- }- pendingInvitations = await (0, import_common.getTeamInvitation)(ctx.user.userId);- }- return {- success: true,- data: {- token,- userId: ctx.user?.userId,- teamId: ctx.user?.teamId,- permission,- isAdmin,- ipv4: ctx.user?.teamId ? settings.ipv4 : null,- ipv6: ctx.user?.teamId ? settings.ipv6 : null,- version: import_common.version,- whiteLabeled: import_env.env.COOLIFY_WHITE_LABELED === "true",- whiteLabeledIcon: import_env.env.COOLIFY_WHITE_LABELED_ICON,- isRegistrationEnabled: settings.isRegistrationEnabled,- pendingInvitations- }- };- } catch (error) {- throw new import_server.TRPCError({- code: "INTERNAL_SERVER_ERROR",- message: "An unexpected error occurred, please try again later.",- cause: error- });- }- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- settingsRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/routers/sources/index.js b/apps/trpc-experimental/server/build/trpc/routers/sources/index.jsdeleted file mode 100644index 08f10e593b..0000000000--- a/apps/trpc-experimental/server/build/trpc/routers/sources/index.js+++ /dev/null@@ -1,241 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var sources_exports = {};-__export(sources_exports, {- sourcesRouter: () => sourcesRouter-});-module.exports = __toCommonJS(sources_exports);-var import_zod = require("zod");-var import_trpc = require("../../trpc");-var import_common = require("../../../lib/common");-var import_prisma = require("../../../prisma");-var import_cuid = __toESM(require("cuid"));-const sourcesRouter = (0, import_trpc.router)({- save: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- htmlUrl: import_zod.z.string(),- apiUrl: import_zod.z.string(),- customPort: import_zod.z.number(),- customUser: import_zod.z.string(),- isSystemWide: import_zod.z.boolean().default(false)- })- ).mutation(async ({ input, ctx }) => {- let { id, name, htmlUrl, apiUrl, customPort, customUser, isSystemWide } = input;- if (customPort)- customPort = Number(customPort);- await import_prisma.prisma.gitSource.update({- where: { id },- data: { name, htmlUrl, apiUrl, customPort, customUser, isSystemWide }- });- }),- newGitHubApp: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- name: import_zod.z.string(),- htmlUrl: import_zod.z.string(),- apiUrl: import_zod.z.string(),- organization: import_zod.z.string(),- customPort: import_zod.z.number(),- isSystemWide: import_zod.z.boolean().default(false)- })- ).mutation(async ({ ctx, input }) => {- const { teamId } = ctx.user;- let { id, name, htmlUrl, apiUrl, organization, customPort, isSystemWide } = input;- if (customPort)- customPort = Number(customPort);- if (id === "new") {- const newId = (0, import_cuid.default)();- await import_prisma.prisma.gitSource.create({- data: {- id: newId,- name,- htmlUrl,- apiUrl,- organization,- customPort,- isSystemWide,- type: "github",- teams: { connect: { id: teamId } }- }- });- return {- id: newId- };- }- return null;- }),- newGitLabApp: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string(),- type: import_zod.z.string(),- name: import_zod.z.string(),- htmlUrl: import_zod.z.string(),- apiUrl: import_zod.z.string(),- oauthId: import_zod.z.number(),- appId: import_zod.z.string(),- appSecret: import_zod.z.string(),- groupName: import_zod.z.string().optional().nullable(),- customPort: import_zod.z.number().optional().nullable(),- customUser: import_zod.z.string().optional().nullable()- })- ).mutation(async ({ input, ctx }) => {- const { teamId } = ctx.user;- let {- id,- type,- name,- htmlUrl,- apiUrl,- oauthId,- appId,- appSecret,- groupName,- customPort,- customUser- } = input;- if (oauthId)- oauthId = Number(oauthId);- if (customPort)- customPort = Number(customPort);- const encryptedAppSecret = (0, import_common.encrypt)(appSecret);- if (id === "new") {- const newId = (0, import_cuid.default)();- await import_prisma.prisma.gitSource.create({- data: {- id: newId,- type,- apiUrl,- htmlUrl,- name,- customPort,- customUser,- teams: { connect: { id: teamId } }- }- });- await import_prisma.prisma.gitlabApp.create({- data: {- teams: { connect: { id: teamId } },- appId,- oauthId,- groupName,- appSecret: encryptedAppSecret,- gitSource: { connect: { id: newId } }- }- });- return {- status: 201,- id: newId- };- } else {- await import_prisma.prisma.gitSource.update({- where: { id },- data: { type, apiUrl, htmlUrl, name, customPort, customUser }- });- await import_prisma.prisma.gitlabApp.update({- where: { id },- data: {- appId,- oauthId,- groupName,- appSecret: encryptedAppSecret- }- });- }- }),- delete: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).mutation(async ({ input, ctx }) => {- const { id } = input;- const source = await import_prisma.prisma.gitSource.delete({- where: { id },- include: { githubApp: true, gitlabApp: true }- });- if (source.githubAppId) {- await import_prisma.prisma.githubApp.delete({ where: { id: source.githubAppId } });- }- if (source.gitlabAppId) {- await import_prisma.prisma.gitlabApp.delete({ where: { id: source.gitlabAppId } });- }- }),- getSourceById: import_trpc.privateProcedure.input(- import_zod.z.object({- id: import_zod.z.string()- })- ).query(async ({ input, ctx }) => {- const { id } = input;- const { teamId } = ctx.user;- const settings = await import_prisma.prisma.setting.findFirst({});- if (id === "new") {- return {- source: {- name: null,- type: null,- htmlUrl: null,- apiUrl: null,- organization: null,- customPort: 22,- customUser: "git"- },- settings- };- }- const source = await import_prisma.prisma.gitSource.findFirst({- where: {- id,- OR: [- { teams: { some: { id: teamId === "0" ? void 0 : teamId } } },- { isSystemWide: true }- ]- },- include: { githubApp: true, gitlabApp: true }- });- if (!source) {- throw { status: 404, message: "Source not found." };- }- if (source?.githubApp?.clientSecret)- source.githubApp.clientSecret = (0, import_common.decrypt)(source.githubApp.clientSecret);- if (source?.githubApp?.webhookSecret)- source.githubApp.webhookSecret = (0, import_common.decrypt)(source.githubApp.webhookSecret);- if (source?.githubApp?.privateKey)- source.githubApp.privateKey = (0, import_common.decrypt)(source.githubApp.privateKey);- if (source?.gitlabApp?.appSecret)- source.gitlabApp.appSecret = (0, import_common.decrypt)(source.gitlabApp.appSecret);- return {- success: true,- data: {- source,- settings- }- };- })-});-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- sourcesRouter-});diff --git a/apps/trpc-experimental/server/build/trpc/trpc.js b/apps/trpc-experimental/server/build/trpc/trpc.jsdeleted file mode 100644index 1b7ee2c0f0..0000000000--- a/apps/trpc-experimental/server/build/trpc/trpc.js+++ /dev/null@@ -1,65 +0,0 @@-"use strict";-var __create = Object.create;-var __defProp = Object.defineProperty;-var __getOwnPropDesc = Object.getOwnPropertyDescriptor;-var __getOwnPropNames = Object.getOwnPropertyNames;-var __getProtoOf = Object.getPrototypeOf;-var __hasOwnProp = Object.prototype.hasOwnProperty;-var __export = (target, all) => {- for (var name in all)- __defProp(target, name, { get: all[name], enumerable: true });-};-var __copyProps = (to, from, except, desc) => {- if (from && typeof from === "object" || typeof from === "function") {- for (let key of __getOwnPropNames(from))- if (!__hasOwnProp.call(to, key) && key !== except)- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });- }- return to;-};-var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,- mod-));-var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);-var trpc_exports = {};-__export(trpc_exports, {- privateProcedure: () => privateProcedure,- publicProcedure: () => publicProcedure,- router: () => router-});-module.exports = __toCommonJS(trpc_exports);-var import_server = require("@trpc/server");-var import_superjson = __toESM(require("superjson"));-const t = import_server.initTRPC.context().create({- transformer: import_superjson.default,- errorFormatter({ shape }) {- return shape;- }-});-const logger = t.middleware(async ({ path, type, next }) => {- const start = Date.now();- const result = await next();- const durationMs = Date.now() - start;- result.ok ? console.log("OK request timing:", { path, type, durationMs }) : console.log("Non-OK request timing", { path, type, durationMs });- return result;-});-const isAdmin = t.middleware(async ({ ctx, next }) => {- if (!ctx.user) {- throw new import_server.TRPCError({ code: "UNAUTHORIZED" });- }- return next({- ctx: {- user: ctx.user- }- });-});-const router = t.router;-const privateProcedure = t.procedure.use(isAdmin);-const publicProcedure = t.procedure;-// Annotate the CommonJS export names for ESM import in node:-0 && (module.exports = {- privateProcedure,- publicProcedure,- router-});diff --git a/apps/trpc-experimental/server/db/.gitkeep b/apps/trpc-experimental/server/db/.gitkeepdeleted file mode 100644index e69de29bb2..0000000000diff --git a/apps/trpc-experimental/server/db/dev.db b/apps/trpc-experimental/server/db/dev.dbdeleted file mode 100644index 3aba23ddd8..0000000000Binary files a/apps/trpc-experimental/server/db/dev.db and /dev/null differdiff --git a/apps/trpc-experimental/server/db/migration.db b/apps/trpc-experimental/server/db/migration.dbdeleted file mode 100644index d555f31d56..0000000000Binary files a/apps/trpc-experimental/server/db/migration.db and /dev/null differdiff --git a/apps/trpc-experimental/server/db/migration.db-journal b/apps/trpc-experimental/server/db/migration.db-journaldeleted file mode 100644index 3deb841d82..0000000000Binary files a/apps/trpc-experimental/server/db/migration.db-journal and /dev/null differdiff --git a/apps/trpc-experimental/server/devTags.json b/apps/trpc-experimental/server/devTags.jsondeleted file mode 100644index 5d4ef05cd4..0000000000--- a/apps/trpc-experimental/server/devTags.json+++ /dev/null@@ -1,1013 +0,0 @@-[- { "name": "directus-postgresql", "image": "directus/directus", "tags": ["9.22"] },- { "name": "whoogle", "image": "benbusby/whoogle-search", "tags": ["0.8.1"] },- { "name": "libretranslate", "image": "libretranslate/libretranslate", "tags": ["v1.3.8"] },- {- "name": "appsmith",- "image": "appsmith/appsmith-ce",- "tags": [- "v1.9.1",- "v1.8.15",- "v1.8.12",- "v1.8.10",- "v1.8.9",- "v1.8.7",- "v1.8.5",- "v1.8.3",- "v1.8.0",- "v1.7.13",- "v1.7.11",- "v1.7.8",- "v1.7.6",- "v1.7.4",- "v1.7.2",- "v1.7.1",- "v1.6.22",- "v1.6.20",- "v1.6.19",- "v1.6.17",- "v1.6.15",- "v1.6.13",- "v1.6.11",- "v1.6.9",- "v1.6.7",- "v1.6.5",- "v1.6.3",- "v1.6.1",- "v1.5.30",- "v1.5.28"- ]- },- {- "name": "appwrite",- "image": "appwrite/appwrite",- "tags": [- "1.2.0",- "1.1.2",- "1.1.0",- "1.0.3",- "1.0.1",- "1.0.0",- "0.15.2",- "0.15.0",- "0.14.2",- "0.14.0",- "0.13.4",- "0.13.2",- "0.13.0",- "0.12.3",- "0.12.1",- "0.12.0",- "0.11.2",- "0.11.0",- "0.10.4",- "0.10.2",- "0.10.0",- "0.9.3",- "0.9.1",- "0.8.0",- "0.7.1",- "0.6.2",- "0.6.0",- "0.5.2",- "0.5.0",- "0.3.1"- ]- },- {- "name": "fider",- "image": "getfider/fider",- "tags": [- "stable",- "master",- "main",- "dev",- "SHA_ee6e83cfaadadaa56ab76e089e01f5631af3506f",- "SHA_deb4f9b4f561d890d8a80e6872fea9a98a265cc6",- "SHA_d5cc307909d43447200483d76b5db74d8ed8349e",- "SHA_d1674476577a7fd3c88fc29f91c3f35f5bd6a260",- "SHA_d107cbb157abca6576110080736213efe0955cff",- "SHA_c9c55b2f5b33a76015241b97e03cfac1254b42a7",- "SHA_bcf451a3cb02d5c8a489fd30309249296057b084",- "SHA_bbfe419639514f949a042807addf0fde7d4de225",- "SHA_adc3afc4c7bcf96931a5f90cab65c282d860dbfd",- "SHA_ab5283ae95334f10b5041402dce79e333c472015",- "SHA_a3f4cb5ed0a4ee2d726705fc426636364aac17a1",- "SHA_a18224142bf51bc6463c3d22f45f62287902e9a6",- "SHA_8e5cff30d95963eaee2587488d351e0d658c8195",- "SHA_8cabe2817ce7ccaf2f0a9fdbb1b5d3411de87f81",- "SHA_7851f9da566132d87fa2a63004e78c3bc9c09c6c",- "SHA_6c0f2bed1754e9d579eb9575129a6e3dbc529c32",- "SHA_603508c8790d6a6fb1e852df1a58ead8e5b3ea6c",- "SHA_55efacf164a4749b50ee68ae8925e7dc9dfa3a0c",- "SHA_4bdd291ce61e5f5dfc063fa1b2d9be8c9ff1d4c4",- "SHA_3fba9cb6a9ceab0c78c6cff3220610f591f657cb",- "SHA_3d635b57606a9885babe91fe975b11429e0f2c38",- "SHA_3b794edbd9789a8aa38ecd3714bc536a675d3058",- "SHA_3570c454ad3252b690608f7bf8051737d8519f8a",- "SHA_263e2709fd145f3ea511e5557e170102899995b0",- "SHA_255c30ed012fc4c39ffc97efc1d3b00425b17c72",- "SHA_17f92b16ef790003338f0926fc8d791a9a61333c"- ]- },- {- "name": "ghost-mariadb",- "image": "bitnami/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.26.0",- "5.25.5",- "5.25.4",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.24.0",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.7",- "5.22.6",- "5.22.5",- "5.22.4",- "5.22.3",- "5.22.2",- "5.22.1",- "5.22.0",- "5.21.0",- "4.48.8"- ]- },- {- "name": "ghost-mysql",- "image": "library/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.25.5",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.4",- "5.22.1",- "5.20.0",- "5.19.3",- "5.19.0",- "5.18.0",- "5.17.2",- "5.17.1",- "5.17.0",- "5.16.2",- "5.14.2",- "5.14.1"- ]- },- {- "name": "ghost-only",- "image": "library/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.25.5",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.4",- "5.22.1",- "5.20.0",- "5.19.3",- "5.19.0",- "5.18.0",- "5.17.2",- "5.17.1",- "5.17.0",- "5.16.2",- "5.14.2",- "5.14.1"- ]- },- {- "name": "gitea",- "image": "gitea/gitea",- "tags": [- "1.18.0",- "1.17.4",- "1.17.3",- "1.17.2",- "1.17.1",- "1.17.0",- "1.16.9",- "1.16.8",- "1.16.7",- "1.16.6",- "1.16.5",- "1.16.4",- "1.16.3",- "1.16.2",- "1.16.1",- "1.16.0",- "1.15.11",- "1.15.10",- "1.15.9",- "1.15.8",- "1.15.7",- "1.15.6",- "1.15.5",- "1.15.4",- "1.15.3",- "1.15.2",- "1.15.1",- "1.15.0",- "1.14.7",- "1.14.6"- ]- },- {- "name": "glitchtip",- "image": "glitchtip/glitchtip",- "tags": [- "v3.0.2",- "v3.0.0",- "v2.0.7",- "v2.0.5",- "v2.0.2",- "v2.0.0",- "v1.12.4",- "v1.12.2",- "v1.12.0",- "v1.10.3",- "v1.10.1",- "v1.9.2",- "v1.9.0",- "v1.8.4",- "v1.8.2",- "v1.8.0",- "v1.7.1",- "v1.6.4",- "v1.6.2",- "v1.6.0",- "v1.5.3",- "v1.5.1",- "v1.4.1",- "v1.3.3",- "v1.3.1",- "v1.2.6",- "v1.2.4",- "v1.2.2",- "v1.2.0",- "v1.1.2"- ]- },- {- "name": "grafana",- "image": "grafana/grafana",- "tags": [- "9.3.2",- "9.3.1",- "9.3.0",- "9.2.8",- "9.2.7",- "9.2.6",- "9.2.5",- "9.2.4",- "9.2.3",- "9.2.2",- "9.2.1",- "9.2.0",- "9.1.8",- "9.1.7",- "9.1.6",- "9.1.5",- "9.1.4",- "9.1.3",- "9.1.2",- "9.1.1",- "9.1.0",- "9.0.9",- "9.0.8",- "9.0.7",- "9.0.6",- "9.0.5",- "9.0.4",- "9.0.3",- "9.0.2",- "9.0.1"- ]- },- {- "name": "hasura",- "image": "hasura/graphql-engine",- "tags": [- "v2.16.1",- "v2.16.0",- "v2.15.2",- "v2.14.1",- "v2.13.2",- "v2.12.1",- "v2.11.3",- "v2.10.2",- "v2.9.0",- "v2.8.4",- "v2.8.3",- "v2.8.2",- "v2.8.1",- "v2.8.0",- "v2.7.0",- "v2.6.2",- "v2.6.1",- "v2.6.0",- "v2.5.2",- "v2.5.1",- "v2.5.0",- "v2.4.0",- "v2.3.1",- "v2.3.0",- "v2.2.2",- "v2.2.1",- "v2.2.0",- "v2.1.1",- "v2.1.0",- "v2.0.10"- ]- },- {- "name": "keycloak",- "image": "quay.io/keycloak/keycloak",- "tags": [- "9.0.3",- "9.0.0",- "8.0.1",- "7.0.0",- "6.0.1",- "6.0.0",- "20.0.2",- "20.0.1",- "20.0.0",- "19.0.3",- "19.0.1",- "19.0.0",- "18.0.1",- "18.0.0",- "17.0.1",- "17.0.0",- "16.1.0",- "15.1.1",- "15.0.2",- "15.0.0",- "13.0.1",- "12.0.4",- "12.0.2",- "12.0.0",- "11.0.2",- "11.0.0",- "10.0.1"- ]- },- {- "name": "languagetool",- "image": "silviof/docker-languagetool",- "tags": ["latest", "6.0", "5.8", "5.7", "5.6", "5.5", "5.4", "5.3"]- },- {- "name": "lavalink",- "image": "fredboat/lavalink",- "tags": [- "v3.7",- "v3.6",- "v3-vda0b3a4b3916a7b1a2b79702de1143c3a6939810-SNAPSHOT",- "v3-vc92690c425390bd20f6c51643c67ba79ab85b7e0-SNAPSHOT",- "v3-vab81dcd46adf3e8a961dd57eacd2a1bde1233e6c-SNAPSHOT",- "v3-v9c9432704d6a4badfcbd06a57597c54bed8f4326-SNAPSHOT",- "v3-v3.0",- "v3-v3",- "v3-v124f8fae7dab299f9cdf1cb4c1715be455497286-SNAPSHOT",- "v3-",- "v3",- "v2.0.1",- "v2.0",- "v2",- "update-udpqueue-vb4a439d6147dbd8641ea4f265e8efc9f1e16e2d3-SNAPSHOT",- "update-udpqueue-",- "update-udpqueue",- "revert-713-fix-error-for-loading-jda-nas",- "refactor-github-actions",- "patch-update-lp",- "patch-update-github-actions",- "patch-more-configurable-github-actions",- "patch-lavaplayer-update",- "patch-lavaplayer-bump",- "patch-build-number",- "next-api-vd4db194cac7a839a3899857f1f6d7b910369309d-SNAPSHOT",- "next-api-vc2e018d5ffef54b2d17244b3d213e31723a084d6-SNAPSHOT",- "next-api-v42cb5f7c58e98d1911e87bffb35aee0a235b85f8-SNAPSHOT",- "next-api-v31a243bda80badbd7d643f68fc1f87e99639060f-SNAPSHOT",- "next-api-v17f6884434c2d70d1704b2322a951d9f07af8865-SNAPSHOT"- ]- },- {- "name": "meilisearch",- "image": "getmeili/meilisearch",- "tags": [- "v0.30.5",- "v0.30.3",- "v0.30.1",- "v0.30.0",- "v0.29.3",- "v0.29.1",- "v0.29.0",- "v0.28.1",- "v0.28.0",- "v0.27.1",- "v0.27.0",- "v0.26.1",- "v0.26.0",- "v0.25.1",- "v0.25.0",- "v0.23.1",- "v0.23.0",- "v0.21.1",- "v0.21.0",- "v0.20.0",- "v0.19.0",- "v0.18.1",- "v0.18.0",- "v0.17.0",- "v0.16.0",- "0.14.1",- "v0.14.1",- "v0.14.0",- "v0.12.0",- "v0.11.0"- ]- },- {- "name": "minio",- "image": "minio/minio",- "tags": [- "RELEASE.2023-01-06T18-11-18Z",- "RELEASE.2023-01-02T09-40-09Z",- "RELEASE.2022-12-12T19-27-27Z",- "RELEASE.2022-12-07T00-56-37Z",- "RELEASE.2022-12-02T19-19-22Z",- "RELEASE.2022-11-29T23-40-49Z",- "RELEASE.2022-11-26T22-43-32Z",- "RELEASE.2022-11-17T23-20-09Z",- "RELEASE.2022-11-11T03-44-20Z",- "RELEASE.2022-11-10T18-20-21Z",- "RELEASE.2022-11-08T05-27-07Z",- "RELEASE.2022-10-29T06-21-33Z",- "RELEASE.2022-10-24T18-35-07Z.hotfix.7906ac5be",- "RELEASE.2022-10-24T18-35-07Z",- "RELEASE.2022-10-21T22-37-48Z",- "RELEASE.2022-10-20T00-55-09Z",- "RELEASE.2022-10-15T19-57-03Z",- "RELEASE.2022-10-08T20-11-00Z",- "RELEASE.2022-10-05T14-58-27Z",- "RELEASE.2022-10-02T19-29-29Z",- "RELEASE.2022-09-25T15-44-53Z",- "RELEASE.2022-09-22T18-57-27Z",- "RELEASE.2022-09-17T00-09-45Z.hotfix.f76e5da9f",- "RELEASE.2022-09-17T00-09-45Z.fips",- "RELEASE.2022-09-07T22-25-02Z.fips",- "RELEASE.2022-09-01T23-53-36Z.fips",- "RELEASE.2022-08-26T19-53-15Z.fips",- "RELEASE.2022-08-25T07-17-05Z.fips",- "RELEASE.2022-08-22T23-53-06Z.hotfix.5fa3967bb",- "RELEASE.2022-08-22T23-53-06Z"- ]- },- {- "name": "n8n",- "image": "n8nio/n8n",- "tags": [- "0.210.1",- "0.210.0",- "0.209.4",- "0.209.3",- "0.209.2",- "0.209.1",- "0.209.0",- "0.208.1",- "0.208.0",- "0.207.1",- "0.207.0",- "0.206.1",- "0.205.0",- "0.204.0",- "0.203.1",- "0.202.1",- "0.202.0",- "0.201.0",- "0.200.1",- "0.199.0",- "0.198.1",- "0.198.0",- "0.197.1",- "0.197.0",- "0.196.0",- "0.195.5",- "0.195.4",- "0.195.3",- "0.195.2",- "0.195.1"- ]- },- {- "name": "nocodb",- "image": "nocodb/nocodb",- "tags": [- "0.100.1",- "0.99.1",- "0.98.4",- "0.98.2",- "0.98.0",- "0.96.4",- "0.96.2",- "0.96.0",- "0.92.3",- "0.91.10",- "0.91.9",- "0.91.7",- "0.91.0",- "0.90.10",- "0.90.7",- "0.90.4",- "0.90.2",- "0.90.0",- "0.84.15",- "0.84.12",- "0.84.8",- "0.84.6",- "0.84.2",- "0.84.1",- "0.83.6",- "0.83.3",- "0.83.1",- "0.82.0",- "0.81.0",- "0.11.46"- ]- },- {- "name": "openblocks",- "image": "openblocksdev/openblocks-ce",- "tags": ["latest", "heroku", "beta", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.21"]- },- {- "name": "plausibleanalytics-arm",- "image": "plausible/analytics",- "tags": [- "v1.5.1",- "v1.5.0-rc.2",- "v1.5.0-rc.1",- "v1.5.0",- "v1.5",- "v1.4.4",- "v1.4.3",- "v1.4.2",- "v1.4.1",- "v1.4.0.rc.0",- "v1.4.0-rc.0",- "v1.4.0",- "v1.4",- "v1.3.0-rc.1",- "v1.3.0-rc.0",- "v1.3.0",- "v1.3",- "v1.2.1",- "v1.2.0",- "v1.2-rc.1",- "v1.2-rc.0",- "v1.2",- "v1.1.1",- "v1.1.0",- "v1.1",- "v1.0.0",- "v1.0",- "v1",- "stable",- "master"- ]- },- {- "name": "plausibleanalytics",- "image": "plausible/analytics",- "tags": [- "v1.5.1",- "v1.5.0-rc.2",- "v1.5.0-rc.1",- "v1.5.0",- "v1.5",- "v1.4.4",- "v1.4.3",- "v1.4.2",- "v1.4.1",- "v1.4.0.rc.0",- "v1.4.0-rc.0",- "v1.4.0",- "v1.4",- "v1.3.0-rc.1",- "v1.3.0-rc.0",- "v1.3.0",- "v1.3",- "v1.2.1",- "v1.2.0",- "v1.2-rc.1",- "v1.2-rc.0",- "v1.2",- "v1.1.1",- "v1.1.0",- "v1.1",- "v1.0.0",- "v1.0",- "v1",- "stable",- "master"- ]- },- {- "name": "pocketbase",- "image": "coollabsio/pocketbase",- "tags": [- "0.8.0-arm64",- "0.8.0-amd64",- "0.8.0-aarch64",- "0.8.0",- "0.10.2-arm64",- "0.10.2-amd64",- "0.10.2-aarch64",- "0.10.2"- ]- },- {- "name": "searxng",- "image": "searxng/searxng",- "tags": [- "2023.01.09-afd71a6c",- "2023.01.09-a90ed481",- "2023.01.08-54e63839",- "2023.01.08-4e735b28",- "2023.01.08-217395b8",- "2023.01.08-0c429d70",- "2023.01.07-cb7b0916",- "2023.01.07-a98c5156",- "2023.01.07-633ba8b1",- "2023.01.07-4e355564",- "2023.01.06-b241015e",- "2023.01.06-269a72ee",- "2023.01.05-aba969cc",- "2022.12.30-b6d98be7",- "2022.12.30-647a0aa9",- "2022.12.30-17516290",- "2022.12.29-d531f893",- "2022.12.29-9b31976c",- "2022.12.29-76cd808a",- "2022.12.29-3ec58b06",- "2022.12.29-174e6851",- "2022.12.26-0d489617",- "2022.12.23-e8f72d70",- "2022.12.23-a2d506d4",- "2022.12.22-d75ae7c8",- "2022.12.16-f5bd73d9",- "2022.12.16-b9274821",- "2022.12.16-42ca37a6",- "2022.12.16-2a51c856",- "2022.12.16-0dac581c"- ]- },- {- "name": "trilium",- "image": "zadam/trilium",- "tags": [- "0.57.4",- "0.57.2",- "0.56.1",- "0.55.1",- "0.54.2",- "0.53.2",- "0.52.4",- "0.52.2",- "0.51.2",- "0.50.3",- "0.50.1",- "0.49.5",- "0.49.3",- "0.48.9",- "0.48.7",- "0.48.4",- "0.48.2",- "0.47.8",- "0.47.6",- "0.47.4",- "0.47.2",- "0.46.7",- "0.46.5",- "0.45.10",- "0.45.9",- "0.45.7",- "0.45.5",- "0.45.3",- "0.44.8",- "0.44.6"- ]- },- {- "name": "umami-postgresql",- "image": "ghcr.io/umami-software/umami",- "tags": [- "postgresql-v1.39.5",- "postgresql-v1.39.4",- "postgresql-v1.39.3",- "postgresql-v1.39.2",- "postgresql-v1.39.1",- "postgresql-v1.39.0",- "postgresql-v1.38.0",- "postgresql-v1.37.0",- "postgresql-v1.36.1",- "postgresql-v1.36.0",- "postgresql-v1.35.0",- "postgresql-v1.34.0",- "postgresql-v1.33.3",- "postgresql-latest",- "mysql-v1.39.5",- "mysql-v1.39.4",- "mysql-v1.39.3",- "mysql-v1.39.2",- "mysql-v1.39.1",- "mysql-v1.39.0",- "mysql-v1.38.0",- "mysql-v1.37.0",- "mysql-v1.36.1",- "mysql-v1.36.0",- "mysql-v1.35.0",- "mysql-v1.34.0",- "mysql-v1.33.3",- "mysql-latest"- ]- },- {- "name": "umami",- "image": "ghcr.io/umami-software/umami",- "tags": [- "postgresql-v1.39.5",- "postgresql-v1.39.4",- "postgresql-v1.39.3",- "postgresql-v1.39.2",- "postgresql-v1.39.1",- "postgresql-v1.39.0",- "postgresql-v1.38.0",- "postgresql-v1.37.0",- "postgresql-v1.36.1",- "postgresql-v1.36.0",- "postgresql-v1.35.0",- "postgresql-v1.34.0",- "postgresql-v1.33.3",- "postgresql-latest",- "mysql-v1.39.5",- "mysql-v1.39.4",- "mysql-v1.39.3",- "mysql-v1.39.2",- "mysql-v1.39.1",- "mysql-v1.39.0",- "mysql-v1.38.0",- "mysql-v1.37.0",- "mysql-v1.36.1",- "mysql-v1.36.0",- "mysql-v1.35.0",- "mysql-v1.34.0",- "mysql-v1.33.3",- "mysql-latest"- ]- },- {- "name": "uptimekuma",- "image": "louislam/uptime-kuma",- "tags": [- "1.19.4",- "1.19.3",- "1.19.2",- "1.19.1",- "1.19.0",- "1.18.5",- "1.18.4",- "1.18.3",- "1.18.2",- "1.18.1",- "1.18.0",- "1.17.1",- "1.17.0",- "1.16.1",- "1.16.0",- "1.15.1",- "1.15.0",- "1.14.1",- "1.14.0",- "1.13.2",- "1.13.1",- "1.13.0",- "1.12.1",- "1.11.4",- "1.11.3",- "1.11.2",- "1.11.1",- "1.11.0",- "1.10.2",- "1.10.1"- ]- },- {- "name": "vaultwarden",- "image": "vaultwarden/server",- "tags": [- "1.27.0",- "1.26.0",- "1.25.2",- "1.25.1",- "1.25.0",- "1.24.0",- "1.23.1",- "1.23.0",- "1.22.2",- "1.22.1",- "1.22.0",- "1.21.0"- ]- },- {- "name": "vscodeserver",- "image": "codercom/code-server",- "tags": [- "4.9.1",- "4.9.0",- "4.8.3",- "4.8.2",- "4.8.1",- "4.8.0",- "4.7.0",- "4.6.0",- "4.5.1",- "4.4.0",- "4.2.0",- "4.0.2",- "3.11.1",- "3.10.2",- "3.10.0",- "3.9.3",- "3.9.1",- "3.8.1",- "3.7.4",- "3.7.2",- "3.7.0",- "3.6.1",- "3.5.0",- "3.4.0",- "3.3.0",- "3.2.0",- "3.1.1",- "3.1.0",- "3.0.2",- "3.0.0"- ]- },- {- "name": "weblate",- "image": "weblate/weblate",- "tags": [- "latest",- "edge-2023-01-10-1df5c9dd96a6d8650f6881942fecbe33e1884295",- "edge-2023-01-09-7029b7b6c630be7cdac07d1629573dd2b81bc05f",- "edge-2023-01-09-4b05a878aa25b2c544a4e77027769b5934ec561f",- "edge-2023-01-07-df50259ff209720b0fd3c983bd7a5d01b564149c",- "edge-2023-01-07-719b3034de0ed369cd63554ea652f11142b9a540",- "edge-2023-01-07-14d4aec6cd8e1e6e0b7c1dc3a9cf4a74ccfc5e37",- "edge-2023-01-07-00f2d980c4388d799ba0df3a27c10bf941b7edd3",- "edge-2023-01-04-e92fe933b22e36e92f6de57a0ecb16752852d815",- "edge-2023-01-04-4c413c6ba33c39a6b7f3238f255bc09c69e96345",- "edge-2023-01-02-fd57652cce9dd2a12c7ff1dc644f5a969e57ea76",- "edge-2023-01-02-738d270784bca0cfaaef59e6cfb8c307f68a9939",- "edge-2023-01-02-3f6a7a183bbda4dc2e8d7e468370adc6f9e50527",- "edge-2023-01-01-5580a7a4755bf71403c85999fb4dff2078293403",- "edge-2022-12-29-8f422f23930880809a26d1207f9e43315ef54ad2",- "edge-2022-12-28-375fd99195711641246ccd09e3ce394d6928eaef",- "edge-2022-12-25-358c8ce6071f2781ae027bbc3a46d906ce08d9e7",- "edge-2022-12-24-3e1503494ce06ad6ff32f02db1a7d59224e5c860",- "edge-2022-12-21-cac4b09f943fe97700e3a33b7caf23277d2fcc11",- "edge-2022-12-21-3a8dd1bf66a7295f3512346bc1c97d55c5649dcf",- "edge-2022-12-16-e93caa3b014543b716b946f2c7fbf4a8f9be6099",- "edge-2022-12-16-318a467d2e529a081e9ea9dbad993c1736ff1a00",- "edge-2022-12-16-1af41ec4bd3838f967d88b68dec8195419e01e6f",- "edge-2022-12-16-02e9d020b01d004655c3af20c68a30f6c4645c1a",- "edge-2022-12-15-a6af1384a0831b17c43da7262f80d0cfbc766835",- "edge-2022-12-15-a1c9f77b301a9e23fc05ef2adc4694cceb632c25",- "edge-2022-12-15-1305f7115ef79b75e638b097772680d9cadbd4d0",- "edge-2022-12-14-b400145f05687e647bd4c8192be99f7f04373fb5",- "edge-2022-12-12-c0db193a3baacd107c5f2c28c6e0af89c3d5afa3",- "edge-2022-12-09-647d40c67cf405870ba71a01584a42cfaec5915f"- ]- },- {- "name": "wordpress-only",- "image": "library/wordpress",- "tags": [- "php8.2-fpm-alpine",- "php8.2-fpm",- "php8.2-apache",- "php8.2",- "php8.1-fpm-alpine",- "php8.1-fpm",- "php8.1-apache",- "php8.1",- "php8.0-fpm-alpine",- "php8.0-fpm",- "php8.0-apache",- "php8.0",- "php7.4-fpm-alpine",- "php7.4-fpm",- "php7.4-apache",- "php7.4",- "php7.3-fpm-alpine",- "php7.3-fpm",- "php7.3-apache",- "php7.3",- "php7.2-fpm-alpine",- "php7.2-fpm",- "php7.2-apache",- "php7.2",- "php7.1-fpm-alpine",- "php7.1-fpm",- "php7.1-apache",- "php7.1",- "php7.0-fpm-alpine",- "php7.0-fpm"- ]- },- {- "name": "wordpress",- "image": "library/wordpress",- "tags": [- "php8.2-fpm-alpine",- "php8.2-fpm",- "php8.2-apache",- "php8.2",- "php8.1-fpm-alpine",- "php8.1-fpm",- "php8.1-apache",- "php8.1",- "php8.0-fpm-alpine",- "php8.0-fpm",- "php8.0-apache",- "php8.0",- "php7.4-fpm-alpine",- "php7.4-fpm",- "php7.4-apache",- "php7.4",- "php7.3-fpm-alpine",- "php7.3-fpm",- "php7.3-apache",- "php7.3",- "php7.2-fpm-alpine",- "php7.2-fpm",- "php7.2-apache",- "php7.2",- "php7.1-fpm-alpine",- "php7.1-fpm",- "php7.1-apache",- "php7.1",- "php7.0-fpm-alpine",- "php7.0-fpm"- ]- }-]diff --git a/apps/trpc-experimental/server/devTemplates.yaml b/apps/trpc-experimental/server/devTemplates.yamldeleted file mode 100644index 4cff705db4..0000000000--- a/apps/trpc-experimental/server/devTemplates.yaml+++ /dev/null@@ -1,3582 +0,0 @@-- templateVersion: 1.0.0- defaultVersion: "9.22"- documentation: https://docs.directus.io/getting-started/introduction.html- type: directus-postgresql- name: Directus- subname: (PostgreSQL)- description: >-- Directus is a free and open-source headless CMS framework for managing custom SQL-based databases.- labels:- - CMS- - headless- services:- $$id:- name: Directus- depends_on:- - $$id-postgresql- - $$id-redis- image: directus/directus:$$core_version- volumes:- - $$id-uploads:/directus/uploads- - $$id-database:/directus/database- - $$id-extensions:/directus/extensions- environment:- - KEY=$$secret_key- - SECRET=$$secret_secret- - DB_CLIENT=pg- - DB_CONNECTION_STRING=$$secret_db_connection_string- - CACHE_ENABLED=true- - CACHE_STORE=redis- - CACHE_REDIS=$$secret_cache_redis- - ADMIN_EMAIL=$$config_admin_email- - ADMIN_PASSWORD=$$secret_admin_password- - CACHE_AUTO_PURGE=true- - PUBLIC_URL=$$config_public_url- ports:- - "8055"- $$id-postgresql:- name: Directus PostgreSQL- depends_on: []- image: postgres:14-alpine- volumes:- - $$id-postgresql-data:/var/lib/postgresql/data- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- $$id-redis:- name: Directus Redis- depends_on: []- image: redis:7.0.4-alpine- command: "--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples 5"- volumes:- - "$$id-redis:/data"- environment: []- variables:- - id: $$config_public_url- name: PUBLIC_URL- label: Public URL- defaultValue: $$generate_fqdn- description: ""- - id: $$secret_db_connection_string- name: DB_CONNECTION_STRING- label: Directus Database Url- defaultValue: postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$config_postgres_db- main: $$id-postgresql- name: POSTGRES_DB- label: Database- defaultValue: directus- description: ""- - id: $$config_postgres_user- main: $$id-postgresql- name: POSTGRES_USER- label: User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- main: $$id-postgresql- name: POSTGRES_PASSWORD- label: Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$secret_cache_redis- name: CACHE_REDIS- label: Redis Url- defaultValue: redis://$$id-redis:6379- description: ""- - id: $$config_admin_email- name: ADMIN_EMAIL- label: Initial Admin Email- defaultValue: "[email protected]"- description: "The email address of the first user that is automatically created. You can change it later in Directus."- - id: $$secret_admin_password- name: ADMIN_PASSWORD- label: Initial Admin Password- defaultValue: $$generate_password- description: "The password of the first user that is automatically created."- showOnConfiguration: true- - id: $$secret_key- name: KEY- label: Key- defaultValue: $$generate_password- description: "Unique identifier for the project."- showOnConfiguration: true- - id: $$secret_secret- name: SECRET- label: Secret- defaultValue: $$generate_password- description: "Secret string for the project."- showOnConfiguration: true--- templateVersion: 1.0.0- defaultVersion: v1.3.8- documentation: https://github.com/LibreTranslate/LibreTranslate- description: Free and Open Source Machine Translation API. 100% self-hosted, offline capable and easy to setup.- type: libretranslate- name: Libretranslate- labels:- - translator- - argos- - python- - libretranslate- services:- $$id:- name: Libretranslate- image: libretranslate/libretranslate:$$core_version- environment:- - LT_HOST=0.0.0.0- - LT_SUGGESTIONS=true- - LT_CHAR_LIMIT=$$config_lt_char_limit- - LT_REQ_LIMIT=$$config_lt_req_limit- - LT_BATCH_LIMIT=$$config_lt_batch_limit- - LT_GA_ID=$$config_lt_ga_id- - LT_DISABLE_WEB_UI=$$config_lt_web_ui- volumes:- - $$id-libretranslate:/libretranslate- ports:- - "5000"- variables:- - id: $$config_lt_char_limit- name: LT_CHAR_LIMIT- label: Char limit- defaultValue: "5000"- description: "Set character limit."- - id: $$config_lt_req_limit- name: LT_REQ_LIMIT- label: Request limit- defaultValue: "5000"- description: "Set maximum number of requests per minute per client."- - id: $$config_lt_batch_limit- name: LT_BATCH_LIMIT- label: Batch Limit- defaultValue: "5000"- description: "Set maximum number of texts to translate in a batch request."- - id: $$config_lt_ga_id- name: LT_GA_ID- label: Google Analytics ID- defaultValue: ""- description: "Enable Google Analytics on the API client page by providing an ID"- - id: $$config_lt_web_ui- name: LT_DISABLE_WEB_UI- label: Web UI- defaultValue: "false"- description: "Disable or enable web ui. True or false."-- templateVersion: 1.0.0- defaultVersion: 0.8.1- documentation: https://github.com/benbusby/whoogle-search- type: whoogle- name: Whoogle Search- description: A self-hosted, ad-free, privacy-respecting metasearch engine- labels:- - search- services:- $$id:- name: Whoogle Search- documentation: https://github.com/benbusby/whoogle-search- depends_on: []- image: benbusby/whoogle-search:$$core_version- cap_drop:- - ALL- environment:- - WHOOGLE_USER=$$config_whoogle_username- - WHOOGLE_PASS=$$secret_whoogle_password- - WHOOGLE_CONFIG_PREFERENCES_KEY=$$secret_whoogle_preferences_key- ulimits:- nofile:- soft: 262144- hard: 262144- ports:- - "5000"- variables:- - id: $$config_whoogle_username- name: WHOOGLE_USER- label: Whoogle User- defaultValue: $$generate_username- description: "Username to log into Whoogle"- - id: $$secret_whoogle_password- name: WHOOGLE_PASSWORD- label: Whoogle Password- defaultValue: $$generate_password- description: "Password to log into Whoogle"- showOnConfiguration: true- - id: $$secret_whoogle_preferences_key- name: WHOOGLE_CONFIG_PREFERENCES_KEY- label: Whoogle preferences key- defaultValue: $$generate_password- description: "password to encrypt preferences"-- templateVersion: 1.0.0- defaultVersion: 1.1.3- documentation: https://docs.openblocks.dev/- type: openblocks- name: Openblocks- description: The Open Source Retool Alternative- services:- $$id:- image: openblocksdev/openblocks-ce:$$core_version- volumes:- - $$id-stacks-data:/openblocks-stacks- ports:- - "3000"-- templateVersion: 1.0.0- defaultVersion: "0.10.2"- documentation: https://pocketbase.io/docs/- type: pocketbase- name: Pocketbase- description: "Open Source realtime backend in 1 file"- services:- $$id:- image: coollabsio/pocketbase:$$core_version- volumes:- - $$id-data:/app/pb_data- ports:- - "8080"-- templateVersion: 1.0.0- defaultVersion: v1.5.1- documentation: https://plausible.io/doc/- type: plausibleanalytics-arm- name: Plausible Analytics (ARM)- description: A lightweight and open-source website analytics tool.- labels:- - analytics- - statistics- - plausible- - gdpr- - no-cookie- - google analytics- services:- $$id:- name: Plausible Analytics- command: >-- sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate- && /entrypoint.sh db init-admin && /entrypoint.sh run"- depends_on:- - $$id-postgresql- - $$id-clickhouse- image: plausible/analytics:$$core_version- environment:- - ADMIN_USER_EMAIL=$$config_admin_user_email- - ADMIN_USER_NAME=$$config_admin_user_name- - ADMIN_USER_PWD=$$secret_admin_user_pwd- - BASE_URL=$$config_base_url- - SECRET_KEY_BASE=$$secret_secret_key_base- - DISABLE_AUTH=$$config_disable_auth- - DISABLE_REGISTRATION=$$config_disable_registration- - DATABASE_URL=$$secret_database_url- - CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url- ports:- - "8000"- $$id-postgresql:- name: PostgreSQL- image: postgres:14-alpine- volumes:- - $$id-postgresql-data:/var/lib/postgresql/data- environment:- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_DB=$$config_postgres_db- $$id-clickhouse:- name: Clickhouse- volumes:- - $$id-clickhouse-data:/var/lib/clickhouse- image: clickhouse/clickhouse-server:22.6-alpine- ulimits:- nofile:- soft: 262144- hard: 262144- files:- - location: /etc/clickhouse-server/users.d/logging.xml- content: >-- <yandex><logger><level>warning</level><console>true</console></logger><query_thread_log- remove="remove"/><query_log remove="remove"/><text_log- remove="remove"/><trace_log remove="remove"/><metric_log- remove="remove"/><asynchronous_metric_log- remove="remove"/><session_log remove="remove"/><part_log- remove="remove"/></yandex>- - location: /etc/clickhouse-server/config.d/logging.xml- content: >-- <yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>- - location: /docker-entrypoint-initdb.d/init.query- content: CREATE DATABASE IF NOT EXISTS plausible;- - location: /docker-entrypoint-initdb.d/init-db.sh- content: >-- clickhouse client --queries-file- /docker-entrypoint-initdb.d/init.query- variables:- - id: $$config_base_url- name: BASE_URL- label: Base URL- defaultValue: $$generate_fqdn- description: >-- You must set this to the FQDN of the Plausible Analytics instance. This is- used to generate the links to the Plausible Analytics instance.- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$secret_clickhouse_database_url- name: CLICKHOUSE_DATABASE_URL- label: Database URL for Clickhouse- defaultValue: http://$$id-clickhouse:8123/plausible- description: ""- - id: $$config_admin_user_email- name: ADMIN_USER_EMAIL- label: Admin Email Address- defaultValue: [email protected]- description: This is the admin email. Please change it.- - id: $$config_admin_user_name- name: ADMIN_USER_NAME- label: Admin User Name- defaultValue: $$generate_username- description: This is the admin username. Please change it.- - id: $$secret_admin_user_pwd- name: ADMIN_USER_PWD- label: Admin User Password- defaultValue: $$generate_password- description: This is the admin password. Please change it.- showOnConfiguration: true- - id: $$secret_secret_key_base- name: SECRET_KEY_BASE- label: Secret Key Base- defaultValue: $$generate_hex(64)- description: ""- - id: $$config_disable_auth- name: DISABLE_AUTH- label: Authentication- defaultValue: "false"- description: ""- - id: $$config_disable_registration- name: DISABLE_REGISTRATION- label: Registration- defaultValue: "true"- description: ""- - id: $$config_postgres_user- main: $$id-postgresql- name: POSTGRES_USER- label: PostgreSQL Username- defaultValue: postgresql- description: ""- - id: $$secret_postgres_password- main: $$id-postgresql- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_db- main: $$id-postgresql- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: plausible- description: ""- - id: $$config_scriptName- name: SCRIPT_NAME- label: Custom Script Name- defaultValue: plausible.js- description: This is the default script name.-- templateVersion: 1.0.0- defaultVersion: "1.17"- documentation: https://docs.gitea.io- type: gitea- name: Gitea- description: Gitea is a community managed lightweight code hosting solution written in Go.- labels:- - storage- - git- services:- $$id:- name: Gitea- documentation: https://docs.gitea.io- image: gitea/gitea:$$core_version- volumes:- - $$id-data:/data- - /etc/timezone:/etc/timezone:ro- - /etc/localtime:/etc/localtime:ro- environment:- - USER_UID=1000- - USER_GID=1000- - DOMAIN=$$config_domain- - SSH_DOMAIN=$$config_ssh_domain- - ROOT_URL=$$config_root_url- - SECRET_KEY=$$secret_secret_key- - INTERNAL_TOKEN=$$secret_internal_token- - SSH_PORT=22- - START_SSH_SERVER=$$config_start_ssh_server- ports:- - "3000"- - "22"- proxy:- - port: "22"- hostPort: $$config_hostport_ssh- variables:- - id: $$config_hostport_ssh- name: SSH_PORT- label: SSH Port- defaultValue: "8022"- description: ""- required: true- - id: $$config_domain- name: DOMAIN- label: Domain- defaultValue: $$generate_domain- description: ""- - id: $$config_ssh_domain- name: SSH_DOMAIN- label: SSH Domain- defaultValue: $$generate_domain- description: ""- - id: $$config_start_ssh_server- name: START_SSH_SERVER- label: Start SSH Server- defaultValue: "true"- description: ""- - id: $$config_root_url- name: ROOT_URL- label: Root URL of Gitea- defaultValue: $$generate_fqdn_slash- description: ""- - id: $$secret_secret_key- name: SECRET_KEY- label: Secret Key- defaultValue: $$generate_hex(32)- description: ""- - id: $$secret_internal_token- name: INTERNAL_TOKEN- label: Internal JWT Token- defaultValue: $$generate_token- description: ""-- templateVersion: 1.0.0- defaultVersion: "20.0"- documentation: https://www.keycloak.org/documentation- type: keycloak- name: Keycloak- description: "Keycloak provides user federation, strong authentication, user management, fine-grained authorization, and more."- labels:- - authentication- - authorization- - oidconnect- - saml2- services:- $$id:- name: Keycloak- command: start --db=postgres --features=token-exchange --import-realm- depends_on:- - $$id-postgresql- image: "quay.io/keycloak/keycloak:$$core_version"- volumes:- - $$id-import:/opt/keycloak/data/import- environment:- - KC_HEALTH_ENABLED=true- - KC_PROXY=edge- - KC_DB=postgres- - KC_HOSTNAME=$$config_keycloak_domain- - KEYCLOAK_ADMIN=$$config_admin_user- - KEYCLOAK_ADMIN_PASSWORD=$$secret_keycloak_admin_password- - KC_DB_PASSWORD=$$secret_postgres_password- - KC_DB_USERNAME=$$config_postgres_user- - KC_DB_URL=$$secret_keycloak_database_url- ports:- - "8080"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:14-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- variables:- - id: $$config_keycloak_domain- name: KEYCLOAK_DOMAIN- label: Keycloak Domain- defaultValue: $$generate_domain- description: ""- - id: $$secret_keycloak_database_url- name: KEYCLOAK_DATABASE_URL- label: Keycloak Database Url- defaultValue: >-- jdbc:postgresql://$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$config_admin_user- name: KEYCLOAK_ADMIN- label: Keycloak Admin User- defaultValue: $$generate_username- description: ""- - id: $$secret_keycloak_admin_password- name: KEYCLOAK_ADMIN_PASSWORD- label: Keycloak Admin Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_user- main: $$id-postgresql- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- main: $$id-postgresql- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_db- main: $$id-postgresql- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: keycloak- description: ""-- templateVersion: 1.0.0- defaultVersion: v3.7- documentation: https://github.com/freyacodes/Lavalink- description: Standalone audio sending node based on Lavaplayer.- type: lavalink- name: Lavalink- labels:- - discord- - discord bot- - audio- - lavalink- - jda- services:- $$id:- name: Lavalink- image: fredboat/lavalink:$$core_version- environment: []- volumes:- - $$id-lavalink:/lavalink- ports:- - $$config_port- files:- - location: /opt/Lavalink/application.yml- content: >-- server:- port: 2333- address: 0.0.0.0- lavalink:- server:- password: "$$secret_password"- sources:- youtube: true- bandcamp: true- soundcloud: true- twitch: true- vimeo: true- http: true- local: false-- logging:- file:- path: ./logs/-- level:- root: INFO- lavalink: INFO-- logback:- rollingpolicy:- max-file-size: 1GB- max-history: 30- variables:- - id: $$secret_password- name: PASSWORD- label: Password- defaultValue: $$generate_password- required: true-- templateVersion: 1.0.0- defaultVersion: v1.8.9- documentation: https://docs.appsmith.com/getting-started/setup/instance-configuration/- type: appsmith- name: Appsmith- description: "Fastest way to build internal apps over any database or API."- services:- $$id:- image: appsmith/appsmith-ce:$$core_version- environment:- - APPSMITH_MAIL_ENABLED=$$config_appsmith_mail_enabled- - APPSMITH_DISABLE_TELEMETRY=$$config_appsmith_disable_telemetry- - APPSMITH_DISABLE_INTERCOM=$$config_appsmith_disable_intercom- volumes:- - $$id-stacks-data:/appsmith-stacks- ports:- - "80"- variables:- - id: $$config_appsmith_mail_enabled- name: APPSMITH_MAIL_ENABLED- label: Enable Mail- defaultValue: "false"- description: ""- - id: $$config_appsmith_disable_telemetry- name: APPSMITH_DISABLE_TELEMETRY- label: Disable Telemetry- defaultValue: "true"- description: ""- - id: $$config_appsmith_disable_intercom- name: APPSMITH_DISABLE_INTERCOM- label: Disable Intercom- defaultValue: "true"- description: ""-- templateVersion: 1.0.0- defaultVersion: 0.57.4- documentation: https://hub.docker.com/r/zadam/trilium- description: "A hierarchical note taking application with focus on building large personal knowledge bases."- labels:- - personal- - knowledge- - notes- - wiki- type: trilium- name: Trilium Notes- services:- $$id:- image: zadam/trilium:$$core_version- environment: []- volumes:- - $$id-trilium:/home/node/trilium-data- ports:- - "8080"- variables: []-- templateVersion: 1.0.0- defaultVersion: 1.18.5- documentation: https://hub.docker.com/r/louislam/uptime-kuma- description: A free & fancy self-hosted monitoring tool.- labels:- - uptime- type: uptimekuma- name: UptimeKuma- services:- $$id:- image: louislam/uptime-kuma:$$core_version- environment: []- volumes:- - $$id-uptimekuma:/app/data- ports:- - "3001"- variables: []-- templateVersion: 1.0.0- defaultVersion: "5.8"- documentation: https://hub.docker.com/r/silviof/docker-languagetool- description: "A multilingual grammar, style and spell checker."- type: languagetool- name: LanguageTool- services:- $$id:- image: silviof/docker-languagetool:$$core_version- environment: []- volumes:- - $$id-ngrams:/ngrams- ports:- - "8010"- variables: []-- templateVersion: 1.0.0- defaultVersion: 1.26.0- documentation: https://hub.docker.com/r/vaultwarden/server- description: "Bitwarden compatible server written in Rust."- type: vaultwarden- name: VaultWarden- labels:- - bitwarden- - password manager- services:- $$id:- image: vaultwarden/server:$$core_version- environment: []- volumes:- - $$id-data:/data- ports:- - "80"- variables: []-- templateVersion: 1.0.0- defaultVersion: 9.3.1- documentation: https://hub.docker.com/r/grafana/grafana- type: grafana- name: Grafana- description: >-- Grafana allows you to query, visualize, alert on and understand your metrics.- labels:- - monitoring- - metrics- - dashboard- services:- $$id:- image: grafana/grafana:$$core_version- environment: []- volumes:- - $$id-config:/etc/grafana- - $$id-grafana:/var/lib/grafana- ports:- - "3000"- variables: []-- templateVersion: 1.0.0- defaultVersion: 1.1.2- documentation: https://appwrite.io/docs- type: appwrite- name: Appwrite- description: Secure Backend Server for Web, Mobile & Flutter Developers.- labels:- - serverless- - backend- - storage- - api- services:- "$$id":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_WORKER_PER_CORE=$$config__app_worker_per_core- - _APP_LOCALE=$$config__app_locale- - _APP_CONSOLE_WHITELIST_ROOT=$$config__app_console_whitelist_root- - _APP_CONSOLE_WHITELIST_EMAILS=$$config__app_console_whitelist_emails- - _APP_CONSOLE_WHITELIST_IPS=$$config__app_console_whitelist_ips- - _APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name- - _APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address- - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address- - _APP_SYSTEM_RESPONSE_FORMAT=$$config__app_system_response_format- - _APP_OPTIONS_ABUSE=$$config__app_options_abuse- - _APP_OPTIONS_FORCE_HTTPS=$$config__app_options_force_https- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_DOMAIN=$$config__app_domain- - _APP_DOMAIN_TARGET=$$config__app_domain_target- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_SMTP_HOST=$$config__app_smtp_host- - _APP_SMTP_PORT=$$config__app_smtp_port- - _APP_SMTP_SECURE=$$config__app_smtp_secure- - _APP_SMTP_USERNAME=$$config__app_smtp_username- - _APP_SMTP_PASSWORD=$$secret__app_smtp_password- - _APP_USAGE_STATS=$$config__app_usage_stats- - _APP_INFLUXDB_HOST=$$config__app_influxdb_host- - _APP_INFLUXDB_PORT=$$config__app_influxdb_port- - _APP_STORAGE_LIMIT=$$config__app_storage_limit- - _APP_STORAGE_PREVIEW_LIMIT=$$config__app_storage_preview_limit- - _APP_STORAGE_ANTIVIRUS=$$config__app_storage_antivirus_enabled- - _APP_STORAGE_ANTIVIRUS_HOST=$$config__app_storage_antivirus_host- - _APP_STORAGE_ANTIVIRUS_PORT=$$config__app_storage_antivirus_port- - _APP_STORAGE_DEVICE=$$config__app_storage_device- - _APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key- - _APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret- - _APP_STORAGE_S3_REGION=$$config__app_storage_s3_region- - _APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket- - _APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key- - _APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret- - _APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region- - _APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket- - _APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key- - _APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret- - _APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region- - _APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket- - _APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key- - _APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret- - _APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region- - _APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket- - _APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key- - _APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret- - _APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region- - _APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket- - _APP_FUNCTIONS_SIZE_LIMIT=$$config__app_functions_size_limit- - _APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout- - _APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout- - _APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers- - _APP_FUNCTIONS_CPUS=$$config__app_functions_cpus- - _APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated- - _APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap- - _APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes- - _APP_EXECUTOR_SECRET=$$secret__app_executor_secret- - _APP_EXECUTOR_HOST=$$config__app_executor_host- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - _APP_STATSD_HOST=$$config__app_statsd_host- - _APP_STATSD_PORT=$$config__app_statsd_port- - _APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval- - _APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution- - _APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache- - _APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse- - _APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit- - _APP_SMS_PROVIDER=$$config__app_sms_provider- - _APP_SMS_FROM=$$config__app_sms_from- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-uploads:/storage/uploads"- - "$$id-cache:/storage/cache"- - "$$id-config:/storage/config"- - "$$id-certificates:/storage/certificates"- - "$$id-functions:/storage/functions"- ports:- - "80"- proxy:- - port: "80"- "$$id-executor":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout- - _APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout- - _APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers- - _APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes- - _APP_FUNCTIONS_CPUS=$$config__app_functions_cpus- - _APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated- - _APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap- - _APP_FUNCTIONS_INACTIVE_THRESHOLD=$$config__app_functions_inactive_threshold- - _APP_EXECUTOR_SECRET=$$secret__app_executor_secret- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - _APP_STORAGE_DEVICE=$$config__app_storage_device- - _APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key- - _APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret- - _APP_STORAGE_S3_REGION=$$config__app_storage_s3_region- - _APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket- - _APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key- - _APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret- - _APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region- - _APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket- - _APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key- - _APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret- - _APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region- - _APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket- - _APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key- - _APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret- - _APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region- - _APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket- - _APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key- - _APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret- - _APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region- - _APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket- - DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username- - DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-functions:/storage/functions"- - "$$id-builds:/storage/builds"- - "/var/run/docker.sock:/var/run/docker.sock"- - "/tmp:/tmp:rw"- entrypoint: executor- "$$id-influxdb":- image: appwrite/influxdb:1.5.0- environment: []- volumes:- - "$$id-influxdb:/var/lib/influxdb"- "$$id-maintenance":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_DOMAIN=$$config__app_domain- - _APP_DOMAIN_TARGET=$$config__app_domain_target- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval- - _APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution- - _APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache- - _APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse- - _APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: maintenance- "$$id-mariadb":- image: mariadb:10.7- command: "--innodb-flush-method fsync"- environment:- - MARIADB_ROOT_PASSWORD=$$secret__app_db_root_pass- - MARIADB_DATABASE=$$config__app_db_schema- - MARIADB_USER=$$config__app_db_user- - MARIADB_PASSWORD=$$secret__app_db_pass- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-mariadb:/var/lib/mysql"- "$$id-realtime":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_WORKER_PER_CORE=$$config__app_worker_per_core- - _APP_OPTIONS_ABUSE=$$config__app_options_abuse- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_USAGE_STATS=$$config__app_usage_stats- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: realtime- proxy:- - port: "80"- pathPrefix: "/v1/realtime"- "$$id-redis":- image: redis:7.0.4-alpine- command:- "--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples- 5"- environment: []- volumes:- - "$$id-redis:/data"- "$$id-schedule":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: schedule- "$$id-telegraf":- image: appwrite/telegraf:1.4.0- environment:- - _APP_INFLUXDB_HOST=$$config__app_influxdb_host- - _APP_INFLUXDB_PORT=$$config__app_influxdb_port- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-influxdb:/var/lib/influxdb"- "$$id-usage-database":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_INFLUXDB_HOST=$$config__app_influxdb_host- - _APP_INFLUXDB_PORT=$$config__app_influxdb_port- - _APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval- - _APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: usage --type database- "$$id-usage":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_INFLUXDB_HOST=$$config__app_influxdb_host- - _APP_INFLUXDB_PORT=$$config__app_influxdb_port- - _APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval- - _APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: usage --type timeseries- "$$id-worker-audits":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-audits- "$$id-worker-builds":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_EXECUTOR_SECRET=$$secret__app_executor_secret- - _APP_EXECUTOR_HOST=$$config__app_executor_host- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-builds- "$$id-worker-certificates":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_DOMAIN=$$config__app_domain- - _APP_DOMAIN_TARGET=$$config__app_domain_target- - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-config:/storage/config"- - "$$id-certificates:/storage/certificates"- entrypoint: worker-certificates- "$$id-worker-databases":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-databases- "$$id-worker-deletes":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_STORAGE_DEVICE=$$config__app_storage_device- - _APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key- - _APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret- - _APP_STORAGE_S3_REGION=$$config__app_storage_s3_region- - _APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket- - _APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key- - _APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret- - _APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region- - _APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket- - _APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key- - _APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret- - _APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region- - _APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket- - _APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key- - _APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret- - _APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region- - _APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket- - _APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key- - _APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret- - _APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region- - _APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - _APP_EXECUTOR_SECRET=$$secret__app_executor_secret- - _APP_EXECUTOR_HOST=$$config__app_executor_host- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes:- - "$$id-uploads:/storage/uploads"- - "$$id-cache:/storage/cache"- - "$$id-functions:/storage/functions"- - "$$id-builds:/storage/builds"- - "$$id-certificates:/storage/certificates"- entrypoint: worker-deletes- "$$id-worker-functions":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_DB_HOST=$$config__app_db_host- - _APP_DB_PORT=$$config__app_db_port- - _APP_DB_SCHEMA=$$config__app_db_schema- - _APP_DB_USER=$$config__app_db_user- - _APP_DB_PASS=$$secret__app_db_pass- - _APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout- - _APP_EXECUTOR_SECRET=$$secret__app_executor_secret- - _APP_EXECUTOR_HOST=$$config__app_executor_host- - _APP_USAGE_STATS=$$config__app_usage_stats- - DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username- - DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-functions- "$$id-worker-mails":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name- - _APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_SMTP_HOST=$$config__app_smtp_host- - _APP_SMTP_PORT=$$config__app_smtp_port- - _APP_SMTP_SECURE=$$config__app_smtp_secure- - _APP_SMTP_USERNAME=$$config__app_smtp_username- - _APP_SMTP_PASSWORD=$$secret__app_smtp_password- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-mails- "$$id-worker-messaging":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_SMS_PROVIDER=$$config__app_sms_provider- - _APP_SMS_FROM=$$config__app_sms_from- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-messaging- "$$id-worker-webhooks":- image: appwrite/appwrite:$$core_version- environment:- - _APP_ENV=$$config__app_env- - _APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1- - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address- - _APP_REDIS_HOST=$$config__app_redis_host- - _APP_REDIS_PORT=$$config__app_redis_port- - _APP_REDIS_USER=$$config__app_redis_user- - _APP_REDIS_PASS=$$secret__app_redis_pass- - _APP_LOGGING_PROVIDER=$$config__app_logging_provider- - _APP_LOGGING_CONFIG=$$config__app_logging_config- - OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network- volumes: []- entrypoint: worker-webhooks- variables:- - id: "$$config__app_influxdb_host"- name: _APP_INFLUXDB_HOST- label: InfluxDB | _APP_INFLUXDB_HOST- defaultValue: "$$id-influxdb"- description: ""- - id: "$$config__app_influxdb_port"- name: _APP_INFLUXDB_PORT- label: InfluxDB | _APP_INFLUXDB_PORT- defaultValue: "8086"- description: InfluxDB server TCP port.- - id: "$$config__app_env"- name: _APP_ENV- label: General | _APP_ENV- defaultValue: production- description: Set your server running environment.- - id: "$$config__app_worker_per_core"- name: _APP_WORKER_PER_CORE- label: General | _APP_WORKER_PER_CORE- defaultValue: "6"- description:- Internal Worker per core for the API, Realtime and Executor containers.- Can be configured to optimize performance.- - id: "$$config__app_locale"- name: _APP_LOCALE- label: General | _APP_LOCALE- defaultValue: en- description: Set your Appwrite's locale. By default, the locale is set to 'en'.- - id: "$$config__app_console_whitelist_root"- name: _APP_CONSOLE_WHITELIST_ROOT- label: General | _APP_CONSOLE_WHITELIST_ROOT- defaultValue: enabled- description:- This option allows you to disable the creation of new users on the- Appwrite console. When enabled only 1 user will be able to use the registration- form. New users can be added by inviting them to your project. By default this- option is enabled.- - id: "$$config__app_console_whitelist_emails"- name: _APP_CONSOLE_WHITELIST_EMAILS- label: General | _APP_CONSOLE_WHITELIST_EMAILS- defaultValue: ""- description:- This option allows you to limit creation of new users on the Appwrite- console. This option is very useful for small teams or sole developers. To enable- it, pass a list of allowed email addresses separated by a comma.- - id: "$$config__app_console_whitelist_ips"- name: _APP_CONSOLE_WHITELIST_IPS- label: General | _APP_CONSOLE_WHITELIST_IPS- defaultValue: ""- description:- This last option allows you to limit creation of users in Appwrite- console for users sharing the same set of IP addresses. This option is very- useful for team working with a VPN service or a company IP.\n\nTo enable/activate- this option, pass a list of allowed IP addresses separated by a comma.- - id: "$$config__app_system_email_name"- name: _APP_SYSTEM_EMAIL_NAME- label: General | _APP_SYSTEM_EMAIL_NAME- defaultValue: Appwrite- description:- This is the sender name value that will appear on email messages- sent to developers from the Appwrite console. You can use url encoded strings- for spaces and special chars.- - id: "$$config__app_system_email_address"- name: _APP_SYSTEM_EMAIL_ADDRESS- label: General | _APP_SYSTEM_EMAIL_ADDRESS- defaultValue: [email protected]- description:- This is the sender email address that will appear on email messages- sent to developers from the Appwrite console. You should choose an email address- that is allowed to be used from your SMTP server to avoid the server email ending- in the users' SPAM folders.- - id: "$$config__app_system_security_email_address"- name: _APP_SYSTEM_SECURITY_EMAIL_ADDRESS- label: General | _APP_SYSTEM_SECURITY_EMAIL_ADDRESS- defaultValue: [email protected]- description:- This is the email address used to issue SSL certificates for custom- domains or the user agent in your webhooks payload.- - id: "$$config__app_system_response_format"- name: _APP_SYSTEM_RESPONSE_FORMAT- label: General | _APP_SYSTEM_RESPONSE_FORMAT- defaultValue: ""- description:- Use this environment variable to set the default Appwrite HTTP response- format to support an older version of Appwrite. This option is useful to overcome- breaking changes between versions. You can also use the X-Appwrite-Response-Format- HTTP request header to overwrite the response for a specific request. This variable- accepts any valid Appwrite version. To use the current version format, leave- the value of the variable empty.- - id: "$$config__app_options_abuse"- name: _APP_OPTIONS_ABUSE- label: General | _APP_OPTIONS_ABUSE- defaultValue: enabled- description:- Allows you to disable abuse checks and API rate limiting. By default,- set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not- recommended to disable this check-in a production environment.- - id: "$$config__app_options_force_https"- name: _APP_OPTIONS_FORCE_HTTPS- label: General | _APP_OPTIONS_FORCE_HTTPS- defaultValue: disabled- description:- Allows you to force HTTPS connection to your API. This feature redirects- any HTTP call to HTTPS and adds the 'Strict-Transport-Security' header to all- HTTP responses.- - id: "$$secret__app_openssl_key_v1"- name: _APP_OPENSSL_KEY_V1- label: General | _APP_OPENSSL_KEY_V1- defaultValue: "$$generate_hex(256)"- description:- This is your server private secret key that is used to encrypt all- sensitive data on your server. Appwrite server encrypts all secret data on your- server like webhooks, HTTP passwords, user sessions, and storage files. Keep- it a secret and have a backup for it.- - id: "$$config__app_domain"- name: _APP_DOMAIN- label: General | _APP_DOMAIN- defaultValue: $$generate_domain- description:- Your Appwrite domain address. When setting a public suffix domain,- Appwrite will attempt to issue a valid SSL certificate automatically. When used- with a dev domain, Appwrite will assign a self-signed SSL certificate. The default- value is 'localhost'.- - id: "$$config__app_domain_target"- name: _APP_DOMAIN_TARGET- label: General | _APP_DOMAIN_TARGET- defaultValue: $$generate_fqdn- description:- A DNS A record hostname to serve as a CNAME target for your Appwrite- custom domains. You can use the same value as used for the Appwrite '_APP_DOMAIN'- variable. The default value is 'localhost'.- - id: "$$config__app_redis_host"- name: _APP_REDIS_HOST- label: Redis | _APP_REDIS_HOST- defaultValue: "$$id-redis"- description: ""- - id: "$$config__app_redis_port"- name: _APP_REDIS_PORT- label: Redis | _APP_REDIS_PORT- defaultValue: "6379"- description: Redis server TCP port.- - id: "$$config__app_redis_user"- name: _APP_REDIS_USER- label: Redis | _APP_REDIS_USER- defaultValue: ""- description:- Redis server user. This is an optional variable. Default value is- an empty string.- - id: "$$secret__app_redis_pass"- name: _APP_REDIS_PASS- label: Redis | _APP_REDIS_PASS- defaultValue: ""- description:- Redis server password. This is an optional variable. Default value- is an empty string.- - id: "$$config__app_db_host"- name: _APP_DB_HOST- label: MariaDB | _APP_DB_HOST- defaultValue: "$$id-mariadb"- description: ""- - id: "$$config__app_db_port"- name: _APP_DB_PORT- label: MariaDB | _APP_DB_PORT- defaultValue: "3306"- description: MariaDB server TCP port.- - id: "$$config__app_db_schema"- name: _APP_DB_SCHEMA- label: MariaDB | _APP_DB_SCHEMA- defaultValue: appwrite- description: MariaDB server database schema.- - id: "$$config__app_db_user"- name: _APP_DB_USER- label: MariaDB | _APP_DB_USER- defaultValue: user- description: MariaDB server user name.- - id: "$$secret__app_db_root_pass"- name: MARIADB_ROOT_PASSWORD- label: MariaDB | MARIADB_ROOT_PASSWORD- defaultValue: "$$generate_hex(16)"- description: MariaDB server root user password.- - id: "$$secret__app_db_pass"- name: _APP_DB_PASS- label: MariaDB | _APP_DB_PASS- defaultValue: "$$generate_hex(16)"- description: MariaDB server user password.- - id: "$$config__app_smtp_host"- name: _APP_SMTP_HOST- label: SMTP | _APP_SMTP_HOST- defaultValue: ""- description:- SMTP server host name address. Use an empty string to disable all- mail sending from the server. The default value for this variable is an empty- string.- - id: "$$config__app_smtp_port"- name: _APP_SMTP_PORT- label: SMTP | _APP_SMTP_PORT- defaultValue: ""- description: SMTP server TCP port. Empty by default.- - id: "$$config__app_smtp_secure"- name: _APP_SMTP_SECURE- label: SMTP | _APP_SMTP_SECURE- defaultValue: ""- description:- SMTP secure connection protocol. Empty by default, change to 'tls'- if running on a secure connection.- - id: "$$config__app_smtp_username"- name: _APP_SMTP_USERNAME- label: SMTP | _APP_SMTP_USERNAME- defaultValue: ""- description: SMTP server user name. Empty by default.- - id: "$$secret__app_smtp_password"- name: _APP_SMTP_PASSWORD- label: SMTP | _APP_SMTP_PASSWORD- defaultValue: ""- description: SMTP server user password. Empty by default.- - id: "$$config__app_usage_stats"- name: _APP_USAGE_STATS- label: General | _APP_USAGE_STATS- defaultValue: enabled- description:- This variable allows you to disable the collection and displaying- of usage stats. This value is set to 'enabled' by default, to disable the usage- stats set the value to 'disabled'. When disabled, it's recommended to turn off- the Worker Usage, Influxdb and Telegraf containers for better resource usage.- - id: "$$config__app_storage_limit"- name: _APP_STORAGE_LIMIT- label: Storage | _APP_STORAGE_LIMIT- defaultValue: "30000000"- description:- Maximum file size allowed for file upload. The default value is 30MB.- You should pass your size limit value in bytes.- - id: "$$config__app_storage_preview_limit"- name: _APP_STORAGE_PREVIEW_LIMIT- label: Storage | _APP_STORAGE_PREVIEW_LIMIT- defaultValue: "20000000"- description:- Maximum file size allowed for file image preview. The default value- is 20MB. You should pass your size limit value in bytes.- - id: "$$config__app_storage_antivirus_enabled"- name: _APP_STORAGE_ANTIVIRUS- label: Storage | _APP_STORAGE_ANTIVIRUS- defaultValue: disabled- description:- This variable allows you to disable the internal anti-virus scans.- This value is set to 'disabled' by default, to enable the scans set the value- to 'enabled'. Before enabling, you must add the ClamAV service and depend on- it on main Appwrite service.- - id: "$$config__app_storage_antivirus_host"- name: _APP_STORAGE_ANTIVIRUS_HOST- label: Storage | _APP_STORAGE_ANTIVIRUS_HOST- defaultValue: clamav- description: ClamAV server host name address.- - id: "$$config__app_storage_antivirus_port"- name: _APP_STORAGE_ANTIVIRUS_PORT- label: Storage | _APP_STORAGE_ANTIVIRUS_PORT- defaultValue: "3310"- description: ClamAV server TCP port.- - id: "$$config__app_storage_device"- name: _APP_STORAGE_DEVICE- label: Storage | _APP_STORAGE_DEVICE- defaultValue: Local- description:- Select default storage device. The default value is 'Local'. List- of supported adapters are 'Local', 'S3', 'DOSpaces', 'Backblaze', 'Linode' and- 'Wasabi'.- - id: "$$secret__app_storage_s3_access_key"- name: _APP_STORAGE_S3_ACCESS_KEY- label: Storage | _APP_STORAGE_S3_ACCESS_KEY- defaultValue: ""- description:- AWS S3 storage access key. Required when the storage adapter is set- to S3. You can get your access key from your AWS console.- - id: "$$secret__app_storage_s3_secret"- name: _APP_STORAGE_S3_SECRET- label: Storage | _APP_STORAGE_S3_SECRET- defaultValue: ""- description:- AWS S3 storage secret key. Required when the storage adapter is set- to S3. You can get your secret key from your AWS console.- - id: "$$config__app_storage_s3_region"- name: _APP_STORAGE_S3_REGION- label: Storage | _APP_STORAGE_S3_REGION- defaultValue: us-east-1- description:- AWS S3 storage region. Required when storage adapter is set to S3.- You can find your region info for your bucket from AWS console.- - id: "$$config__app_storage_s3_bucket"- name: _APP_STORAGE_S3_BUCKET- label: Storage | _APP_STORAGE_S3_BUCKET- defaultValue: ""- description:- AWS S3 storage bucket. Required when storage adapter is set to S3.- You can create buckets in your AWS console.- - id: "$$secret__app_storage_do_spaces_access_key"- name: _APP_STORAGE_DO_SPACES_ACCESS_KEY- label: Storage | _APP_STORAGE_DO_SPACES_ACCESS_KEY- defaultValue: ""- description:- DigitalOcean spaces access key. Required when the storage adapter- is set to DOSpaces. You can get your access key from your DigitalOcean console.- - id: "$$secret__app_storage_do_spaces_secret"- name: _APP_STORAGE_DO_SPACES_SECRET- label: Storage | _APP_STORAGE_DO_SPACES_SECRET- defaultValue: ""- description:- DigitalOcean spaces secret key. Required when the storage adapter- is set to DOSpaces. You can get your secret key from your DigitalOcean console.- - id: "$$config__app_storage_do_spaces_region"- name: _APP_STORAGE_DO_SPACES_REGION- label: Storage | _APP_STORAGE_DO_SPACES_REGION- defaultValue: us-east-1- description:- DigitalOcean spaces region. Required when storage adapter is set- to DOSpaces. You can find your region info for your space from DigitalOcean- console.- - id: "$$config__app_storage_do_spaces_bucket"- name: _APP_STORAGE_DO_SPACES_BUCKET- label: Storage | _APP_STORAGE_DO_SPACES_BUCKET- defaultValue: ""- description:- DigitalOcean spaces bucket. Required when storage adapter is set- to DOSpaces. You can create spaces in your DigitalOcean console.- - id: "$$secret__app_storage_backblaze_access_key"- name: _APP_STORAGE_BACKBLAZE_ACCESS_KEY- label: Storage | _APP_STORAGE_BACKBLAZE_ACCESS_KEY- defaultValue: ""- description:- Backblaze access key. Required when the storage adapter is set to- Backblaze. Your Backblaze keyID will be your access key. You can get your keyID- from your Backblaze console.- - id: "$$secret__app_storage_backblaze_secret"- name: _APP_STORAGE_BACKBLAZE_SECRET- label: Storage | _APP_STORAGE_BACKBLAZE_SECRET- defaultValue: ""- description:- Backblaze secret key. Required when the storage adapter is set to- Backblaze. Your Backblaze applicationKey will be your secret key. You can get- your applicationKey from your Backblaze console.- - id: "$$config__app_storage_backblaze_region"- name: _APP_STORAGE_BACKBLAZE_REGION- label: Storage | _APP_STORAGE_BACKBLAZE_REGION- defaultValue: us-west-004- description:- Backblaze region. Required when storage adapter is set to Backblaze.- You can find your region info from your Backblaze console.- - id: "$$config__app_storage_backblaze_bucket"- name: _APP_STORAGE_BACKBLAZE_BUCKET- label: Storage | _APP_STORAGE_BACKBLAZE_BUCKET- defaultValue: ""- description:- Backblaze bucket. Required when storage adapter is set to Backblaze.- You can create your bucket from your Backblaze console.- - id: "$$secret__app_storage_linode_access_key"- name: _APP_STORAGE_LINODE_ACCESS_KEY- label: Storage | _APP_STORAGE_LINODE_ACCESS_KEY- defaultValue: ""- description:- Linode object storage access key. Required when the storage adapter- is set to Linode. You can get your access key from your Linode console.- - id: "$$secret__app_storage_linode_secret"- name: _APP_STORAGE_LINODE_SECRET- label: Storage | _APP_STORAGE_LINODE_SECRET- defaultValue: ""- description:- Linode object storage secret key. Required when the storage adapter- is set to Linode. You can get your secret key from your Linode console.- - id: "$$config__app_storage_linode_region"- name: _APP_STORAGE_LINODE_REGION- label: Storage | _APP_STORAGE_LINODE_REGION- defaultValue: eu-central-1- description:- Linode object storage region. Required when storage adapter is set- to Linode. You can find your region info from your Linode console.- - id: "$$config__app_storage_linode_bucket"- name: _APP_STORAGE_LINODE_BUCKET- label: Storage | _APP_STORAGE_LINODE_BUCKET- defaultValue: ""- description:- Linode object storage bucket. Required when storage adapter is set- to Linode. You can create buckets in your Linode console.- - id: "$$secret__app_storage_wasabi_access_key"- name: _APP_STORAGE_WASABI_ACCESS_KEY- label: Storage | _APP_STORAGE_WASABI_ACCESS_KEY- defaultValue: ""- description:- Wasabi access key. Required when the storage adapter is set to Wasabi.- You can get your access key from your Wasabi console.- - id: "$$secret__app_storage_wasabi_secret"- name: _APP_STORAGE_WASABI_SECRET- label: Storage | _APP_STORAGE_WASABI_SECRET- defaultValue: ""- description:- Wasabi secret key. Required when the storage adapter is set to Wasabi.- You can get your secret key from your Wasabi console.- - id: "$$config__app_storage_wasabi_region"- name: _APP_STORAGE_WASABI_REGION- label: Storage | _APP_STORAGE_WASABI_REGION- defaultValue: eu-central-1- description:- Wasabi region. Required when storage adapter is set to Wasabi. You- can find your region info from your Wasabi console.- - id: "$$config__app_storage_wasabi_bucket"- name: _APP_STORAGE_WASABI_BUCKET- label: Storage | _APP_STORAGE_WASABI_BUCKET- defaultValue: ""- description:- Wasabi bucket. Required when storage adapter is set to Wasabi. You- can create buckets in your Wasabi console.- - id: "$$config__app_functions_size_limit"- name: _APP_FUNCTIONS_SIZE_LIMIT- label: Functions | _APP_FUNCTIONS_SIZE_LIMIT- defaultValue: "30000000"- description: The maximum size deployment in bytes. The default value is 30MB.- - id: "$$config__app_functions_timeout"- name: _APP_FUNCTIONS_TIMEOUT- label: Functions | _APP_FUNCTIONS_TIMEOUT- defaultValue: "900"- description:- The maximum number of seconds allowed as a timeout value when creating- a new function. The default value is 900 seconds.- - id: "$$config__app_functions_build_timeout"- name: _APP_FUNCTIONS_BUILD_TIMEOUT- label: Functions | _APP_FUNCTIONS_BUILD_TIMEOUT- defaultValue: "900"- description:- The maximum number of seconds allowed as a timeout value when building- a new function. The default value is 900 seconds.- - id: "$$config__app_functions_containers"- name: _APP_FUNCTIONS_CONTAINERS- label: Functions | _APP_FUNCTIONS_CONTAINERS- defaultValue: "10"- description:- The maximum number of containers Appwrite is allowed to keep alive- in the background for function environments. Running containers allow faster- execution time as there is no need to recreate each container every time a function- gets executed. The default value is 10.- - id: "$$config__app_functions_cpus"- name: _APP_FUNCTIONS_CPUS- label: Functions | _APP_FUNCTIONS_CPUS- defaultValue: ""- description:- The maximum number of CPU core a single cloud function is allowed- to use. Please note that setting a value higher than available cores will result- in a function error, which might result in an error. The default value is empty.- When it's empty, CPU limit will be disabled.- - id: "$$config__app_functions_memory_allocated"- name: _APP_FUNCTIONS_MEMORY- label: Functions | _APP_FUNCTIONS_MEMORY- defaultValue: ""- description:- The maximum amount of memory a single cloud function is allowed to- use in megabytes. The default value is empty. When it's empty, memory limit- will be disabled.- - id: "$$config__app_functions_memory_swap"- name: _APP_FUNCTIONS_MEMORY_SWAP- label: Functions | _APP_FUNCTIONS_MEMORY_SWAP- defaultValue: ""- description:- The maximum amount of swap memory a single cloud function is allowed- to use in megabytes. The default value is empty. When it's empty, swap memory- limit will be disabled.- - id: "$$config__app_functions_runtimes"- name: _APP_FUNCTIONS_RUNTIMES- label: Functions | _APP_FUNCTIONS_RUNTIMES- defaultValue: node-18.0- description: |-- This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.- To enable/activate this option, pass a list of allowed environments separated by a comma.- Currently, supported environments are: node-14.5, node-16.0, node-18.0, php-8.0, php-8.1, ruby-3.0, ruby-3.1, python-3.8, python-3.9, python-3.10, deno-1.21, deno-1.24, dart-2.15, dart-2.16, dart-2.17, dotnet-3.1, dotnet-6.0, java-8.0, java-11.0, java-17.0, java-18.0, swift-5.5, kotlin-1.6, cpp-17.0- - id: "$$secret__app_executor_secret"- name: _APP_EXECUTOR_SECRET- label: Functions | _APP_EXECUTOR_SECRET- defaultValue: "$$generate_hex(16)"- description:- The secret key used by Appwrite to communicate with the function- executor.- - id: "$$config__app_executor_host"- name: _APP_EXECUTOR_HOST- label: ""- defaultValue: http://$$id-executor/v1- description: ""- - id: "$$config__app_logging_provider"- name: _APP_LOGGING_PROVIDER- label: General | _APP_LOGGING_PROVIDER- defaultValue: ""- description:- This variable allows you to enable logging errors to 3rd party providers.- This value is empty by default, to enable the logger set the value to one of- 'sentry', 'raygun', 'appsignal', 'logowl'- - id: "$$config__app_logging_config"- name: _APP_LOGGING_CONFIG- label: General | _APP_LOGGING_CONFIG- defaultValue: ""- description:- This variable configures authentication to 3rd party error logging- providers. If using Sentry, this should be 'SENTRY_API_KEY;SENTRY_APP_ID'. If- using Raygun, this should be Raygun API key. If using AppSignal, this should- be AppSignal API key. If using LogOwl, this should be LogOwl Service Ticket.- - id: "$$config__app_statsd_host"- name: _APP_STATSD_HOST- label: ""- defaultValue: "$$id-telegraf"- description: ""- - id: "$$config__app_statsd_port"- name: _APP_STATSD_PORT- label: StatsD | _APP_STATSD_PORT- defaultValue: "8125"- description: StatsD server TCP port.- - id: "$$config__app_maintenance_interval"- name: _APP_MAINTENANCE_INTERVAL- label: Functions | _APP_MAINTENANCE_INTERVAL- defaultValue: "86400"- description:- Interval value containing the number of seconds that the Appwrite- maintenance process should wait before executing system cleanups and optimizations.- The default value is 86400 seconds (1 day).- - id: "$$config__app_maintenance_retention_execution"- name: _APP_MAINTENANCE_RETENTION_EXECUTION- label: Functions | _APP_MAINTENANCE_RETENTION_EXECUTION- defaultValue: "1209600"- description:- The maximum duration (in seconds) upto which to retain execution- logs. The default value is 1209600 seconds (14 days).- - id: "$$config__app_maintenance_retention_cache"- name: _APP_MAINTENANCE_RETENTION_CACHE- label: Functions | _APP_MAINTENANCE_RETENTION_CACHE- defaultValue: "2592000"- description:- The maximum duration (in seconds) upto which to retain cached files.- The default value is 2592000 seconds (30 days).- - id: "$$config__app_maintenance_retention_abuse"- name: _APP_MAINTENANCE_RETENTION_ABUSE- label: Functions | _APP_MAINTENANCE_RETENTION_ABUSE- defaultValue: "86400"- description:- The maximum duration (in seconds) upto which to retain abuse logs.- The default value is 86400 seconds (1 day).- - id: "$$config__app_maintenance_retention_audit"- name: _APP_MAINTENANCE_RETENTION_AUDIT- label: Functions | _APP_MAINTENANCE_RETENTION_AUDIT- defaultValue: "1209600"- description:- The maximum duration (in seconds) upto which to retain audit logs.- The default value is 1209600 seconds (14 days).- - id: "$$config__app_sms_provider"- name: _APP_SMS_PROVIDER- label: Phone | _APP_SMS_PROVIDER- defaultValue: ""- description:- "Provider used for delivering SMS for Phone authentication. Use the- following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. Available providers- are twilio, text-magic, telesign, msg91, and vonage."- - id: "$$config__app_sms_from"- name: _APP_SMS_FROM- label: Phone | _APP_SMS_FROM- defaultValue: ""- description:- Phone number used for sending out messages. Must start with a leading- '+' and maximum of 15 digits without spaces (+123456789).- - id: "$$config__app_functions_inactive_threshold"- name: _APP_FUNCTIONS_INACTIVE_THRESHOLD- label: Functions | _APP_FUNCTIONS_INACTIVE_THRESHOLD- defaultValue: "60"- description:- The minimum time a function can be inactive before it's container- is shutdown and put to sleep. The default value is 60 seconds- - id: "$$config_open_runtimes_network"- name: OPEN_RUNTIMES_NETWORK- label: ""- defaultValue: "$$generate_network"- description: ""- - id: "$$config_dockerhub_pull_username"- name: DOCKERHUB_PULL_USERNAME- label: Functions | DOCKERHUB_PULL_USERNAME- defaultValue: ""- description:- The username for hub.docker.com. This variable is used to pull images- from hub.docker.com.- - id: "$$secret_dockerhub_pull_password"- name: DOCKERHUB_PULL_PASSWORD- label: Functions | DOCKERHUB_PULL_PASSWORD- defaultValue: ""- description:- The password for hub.docker.com. This variable is used to pull images- from hub.docker.com.- - id: "$$config__app_usage_timeseries_interval"- name: _APP_USAGE_TIMESERIES_INTERVAL- label: General | _APP_USAGE_TIMESERIES_INTERVAL- defaultValue: "30"- description:- Interval value containing the number of seconds that the Appwrite- usage process should wait before aggregating stats and syncing it to mariadb- from InfluxDB. The default value is 30 seconds.- - id: "$$config__app_usage_database_interval"- name: _APP_USAGE_DATABASE_INTERVAL- label: General | _APP_USAGE_DATABASE_INTERVAL- defaultValue: "900"- description:- Interval value containing the number of seconds that the Appwrite- usage process should wait before aggregating stats from data in Appwrite Database.- The default value is 15 minutes.-- templateVersion: 1.0.0- defaultVersion: latest- documentation: https://docs.weblate.org/en/latest/admin/install/docker.html- description: "A copylefted libre software web-based continuous localization system."- type: weblate- name: Weblate- labels:- - translate- - localization- services:- $$id:- name: Weblate- depends_on:- - $$id-postgresql- - $$id-redis- image: "weblate/weblate:$$core_version"- volumes:- - "$$id-data:/app/data"- environment:- - WEBLATE_SITE_DOMAIN=$$config_weblate_site_domain- - WEBLATE_ADMIN_PASSWORD=$$secret_weblate_admin_password- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_DATABASE=$$config_postgres_db- - POSTGRES_HOST=$$id-postgresql- - POSTGRES_PORT=5432- - REDIS_HOST=$$id-redis- ports:- - "8080"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:14-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- $$id-redis:- name: Redis- depends_on: []- image: "redis:7-alpine"- volumes:- - "$$id-redis-data:/data"- environment: []- ports: []- variables:- - id: $$config_weblate_site_domain- name: WEBLATE_SITE_DOMAIN- label: Weblate Domain- defaultValue: $$generate_domain- description: ""- - id: $$secret_weblate_admin_password- name: WEBLATE_ADMIN_PASSWORD- label: Weblate Admin Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_user- main: $$id-postgresql- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- main: $$id-postgresql- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_db- main: $$id-postgresql- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: weblate- description: ""-- templateVersion: 1.0.0- defaultVersion: 2022.12.12-966e9c3c- documentation: https://docs.searxng.org/- type: searxng- name: SearXNG- description: "Free internet metasearch engine which aggregates results from more than 70 search services."- services:- $$id:- name: SearXNG- depends_on:- - $$id-redis- image: "searxng/searxng:$$core_version"- volumes:- - "$$id-searxng:/etc/searxng"- environment:- - SEARXNG_BASE_URL=$$config_searxng_base_url- ports:- - "8080"- cap_drop:- - ALL- cap_add:- - CHOWN- - SETGID- - SETUID- - DAC_OVERRIDE- files:- - location: /etc/searxng/settings.yml- content: |2--- # see https://docs.searxng.org/admin/engines/settings.html#use-default-settings- use_default_settings: true- server:- secret_key: $$secret_secret_key- limiter: true- image_proxy: true- ui:- static_use_hash: true- redis:- url: redis://:$$secret_redis_password@$$id-redis:6379/0- $$id-redis:- name: Redis- command: >-- redis-server --requirepass $$secret_redis_password --save ""- --appendonly "no"- depends_on: []- image: "redis:7-alpine"- volumes:- - "$$id-redis-data:/data"- environment:- - REDIS_PASSWORD=$$secret_redis_password- ports: []- cap_drop:- - ALL- cap_add:- - SETGID- - SETUID- - DAC_OVERRIDE- variables:- - id: $$config_searxng_base_url- name: SEARXNG_BASE_URL- label: SearXNG Base URL- defaultValue: $$generate_fqdn- description: ""- - id: $$secret_secret_key- name: SECRET_KEY- label: Secret Key- defaultValue: $$generate_hex(64)- description: ""- - id: $$secret_redis_password- name: REDIS_PASSWORD- label: Redis Password- defaultValue: $$generate_password- description: ""-- templateVersion: 1.0.0- defaultVersion: v3.0.0- documentation: https://glitchtip.com/documentation- type: glitchtip- name: GlitchTip- description: "Simple, open source error tracking."- labels:- - sentry- - bugsnag- services:- $$id:- name: GlitchTip- depends_on:- - $$id-postgresql- - $$id-redis- image: "glitchtip/glitchtip:$$core_version"- volumes: []- environment:- - PORT=$$config_port- - GLITCHTIP_DOMAIN=$$config_glitchtip_domain- - SECRET_KEY=$$secret_secret_key- - DATABASE_URL=$$secret_database_url- - REDIS_URL=$$secret_redis_url- - DEFAULT_FROM_EMAIL=$$config_default_from_email- - EMAIL_URL=$$secret_email_url- - EMAIL_HOST=$$config_email_host- - EMAIL_PORT=$$config_email_port- - EMAIL_HOST_USER=$$config_email_host_user- - EMAIL_HOST_PASSWORD=$$secret_email_host_password- - EMAIL_USE_TLS=$$config_email_use_tls- - EMAIL_USE_SSL=$$config_email_use_ssl- - EMAIL_BACKEND=$$config_email_backend- - MAILGUN_API_KEY=$$secret_mailgun_api_key- - SENDGRID_API_KEY=$$secret_sendgrid_api_key- - ENABLE_OPEN_USER_REGISTRATION=$$config_enable_open_user_registration- - DJANGO_SUPERUSER_EMAIL=$$config_django_superuser_email- - DJANGO_SUPERUSER_PASSWORD=$$secret_django_superuser_password- - DJANGO_SUPERUSER_USERNAME=$$config_django_superuser_username- - CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency- ports:- - "8000"- $$id-worker:- name: Celery Worker- command: ./bin/run-celery-with-beat.sh- depends_on:- - $$id-postgresql- - $$id-redis- image: "glitchtip/glitchtip:$$core_version"- environment:- - GLITCHTIP_DOMAIN=$$config_glitchtip_domain- - SECRET_KEY=$$secret_secret_key- - DATABASE_URL=$$secret_database_url- - REDIS_URL=$$secret_redis_url- - DEFAULT_FROM_EMAIL=$$config_default_from_email- - EMAIL_URL=$$secret_email_url- - CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency- ports: []- $$id-migrate:- exclude: true- name: Migrate- command: ./manage.py migrate- depends_on:- - $$id-postgresql- - $$id-redis- image: "glitchtip/glitchtip:$$core_version"- environment:- - GLITCHTIP_DOMAIN=$$config_glitchtip_domain- - SECRET_KEY=$$secret_secret_key- - DATABASE_URL=$$secret_database_url- - REDIS_URL=$$secret_redis_url- - DEFAULT_FROM_EMAIL=$$config_default_from_email- - EMAIL_URL=$$secret_email_url- ports: []- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:14-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- $$id-redis:- name: Redis- depends_on: []- image: "redis:7-alpine"- volumes:- - "$$id-postgresql-redis-data:/data"- environment: []- ports: []- variables:- - id: $$config_django_superuser_username- name: DJANGO_SUPERUSER_USERNAME- label: Django Superuser Username- defaultValue: $$generate_username- description: ""- - id: $$secret_django_superuser_password- name: DJANGO_SUPERUSER_PASSWORD- label: Django Superuser Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_port- name: PORT- label: GlitchTip Port- defaultValue: "8000"- description: ""- - id: $$config_celery_worker_concurrency- main: $$id-worker- name: CELERY_WORKER_CONCURRENCY- label: Celery Worker Concurrency- defaultValue: "2"- description: ""- - id: $$config_glitchtip_domain- name: GLITCHTIP_DOMAIN- label: GlitchTip Domain- defaultValue: $$generate_fqdn- description: ""- - id: $$secret_email_url- name: EMAIL_URL- label: SMTP Email URL- defaultValue: >-- smtp://$$config_email_host_user:$$secret_email_host_password@$$config_email_host:$$config_email_port- description: ""- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$secret_redis_url- name: REDIS_URL- label: Redis URL- defaultValue: "redis://$$id-redis:6379/0"- description: ""- - id: $$config_default_from_email- name: DEFAULT_FROM_EMAIL- label: Default Email Address- defaultValue: [email protected]- description: ""- - id: $$config_email_host- name: EMAIL_HOST- label: Email SMTP Host- defaultValue: ""- description: ""- - id: $$config_email_port- name: EMAIL_PORT- label: Email SMTP Port- defaultValue: "25"- description: ""- - id: $$config_email_host_user- name: EMAIL_HOST_USER- label: Email SMTP User- defaultValue: ""- description: ""- - id: $$secret_email_host_password- name: EMAIL_HOST_PASSWORD- label: Email SMTP Password- defaultValue: ""- description: ""- - id: $$config_email_use_tls- name: EMAIL_USE_TLS- label: Email Use TLS- defaultValue: "false"- description: ""- - id: $$config_email_use_ssl- name: EMAIL_USE_SSL- label: Email Use SSL- defaultValue: "false"- description: ""- - id: $$secret_email_smtp_password- name: EMAIL_SMTP_PASSWORD- label: SMTP Password- defaultValue: ""- description: ""- - id: $$config_email_backend- name: EMAIL_BACKEND- label: Email Backend- defaultValue: ""- description: ""- - id: $$secret_mailgun_api_key- name: MAILGUN_API_KEY- label: Mailgun API Key- defaultValue: ""- description: ""- showOnConfiguration: true- - id: $$secret_sendgrid_api_key- name: SENDGRID_API_KEY- label: Sendgrid API Key- defaultValue: ""- description: ""- showOnConfiguration: true- - id: $$config_enable_open_user_registration- name: ENABLE_OPEN_USER_REGISTRATION- label: Enable Open User Registration- defaultValue: "true"- description: ""- - id: $$config_django_superuser_email- name: DJANGO_SUPERUSER_EMAIL- label: Django Superuser Email- defaultValue: [email protected]- description: ""- - id: $$config_postgres_user- main: $$id-postgresql- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- main: $$id-postgresql- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_postgres_db- main: $$id-postgresql- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: glitchtip- description: ""-- templateVersion: 1.0.0- defaultVersion: v2.16.0- documentation: https://hasura.io/docs/latest/index/- type: hasura- name: Hasura- description: "Instant realtime GraphQL APIs on any Postgres application, existing or new."- labels:- - graphql- - database- services:- $$id:- name: Hasura- depends_on:- - $$id-postgresql- image: "hasura/graphql-engine:$$core_version"- volumes: []- environment:- - HASURA_GRAPHQL_ENABLE_CONSOLE=$$config_hasura_graphql_enable_console- - >-- HASURA_GRAPHQL_METADATA_DATABASE_URL=$$secret_hasura_graphql_metadata_database_url- - HASURA_GRAPHQL_ADMIN_SECRET=$$secret_hasura_graphql_admin_secret- ports:- - "8080"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:12-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- variables:- - id: $$config_hasura_graphql_enable_console- name: HASURA_GRAPHQL_ENABLE_CONSOLE- label: Enable Hasura Console- defaultValue: "true"- description: ""- - id: $$secret_hasura_graphql_metadata_database_url- name: HASURA_GRAPHQL_METADATA_DATABASE_URL- label: Hasura Metadata Database URL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$secret_hasura_graphql_admin_secret- name: HASURA_GRAPHQL_ADMIN_SECRET- label: Hasura Admin Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgres_user- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_postgres_db- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: hasura- description: ""-- templateVersion: 1.0.0- defaultVersion: postgresql-v1.39.5- documentation: https://umami.is/docs/getting-started- type: umami-postgresql- name: Umami- subname: (PostgreSQL)- description: >-- A simple, easy to use, self-hosted web analytics solution.- services:- $$id:- name: Umami- depends_on:- - $$id-postgresql- image: "ghcr.io/umami-software/umami:$$core_version"- volumes: []- environment:- - ADMIN_PASSWORD=$$secret_admin_password- - DATABASE_URL=$$secret_database_url- - DATABASE_TYPE=$$config_database_type- - HASH_SALT=$$secret_hash_salt- ports:- - "3000"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:12-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- files:- - location: /docker-entrypoint-initdb.d/schema.postgresql.sql- content: |2--- -- CreateTable- CREATE TABLE "account" (- "user_id" SERIAL NOT NULL,- "username" VARCHAR(255) NOT NULL,- "password" VARCHAR(60) NOT NULL,- "is_admin" BOOLEAN NOT NULL DEFAULT false,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "updated_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,-- PRIMARY KEY ("user_id")- );-- -- CreateTable- CREATE TABLE "event" (- "event_id" SERIAL NOT NULL,- "website_id" INTEGER NOT NULL,- "session_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "url" VARCHAR(500) NOT NULL,- "event_type" VARCHAR(50) NOT NULL,- "event_value" VARCHAR(50) NOT NULL,-- PRIMARY KEY ("event_id")- );-- -- CreateTable- CREATE TABLE "pageview" (- "view_id" SERIAL NOT NULL,- "website_id" INTEGER NOT NULL,- "session_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "url" VARCHAR(500) NOT NULL,- "referrer" VARCHAR(500),-- PRIMARY KEY ("view_id")- );-- -- CreateTable- CREATE TABLE "session" (- "session_id" SERIAL NOT NULL,- "session_uuid" UUID NOT NULL,- "website_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "hostname" VARCHAR(100),- "browser" VARCHAR(20),- "os" VARCHAR(20),- "device" VARCHAR(20),- "screen" VARCHAR(11),- "language" VARCHAR(35),- "country" CHAR(2),-- PRIMARY KEY ("session_id")- );-- -- CreateTable- CREATE TABLE "website" (- "website_id" SERIAL NOT NULL,- "website_uuid" UUID NOT NULL,- "user_id" INTEGER NOT NULL,- "name" VARCHAR(100) NOT NULL,- "domain" VARCHAR(500),- "share_id" VARCHAR(64),- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,-- PRIMARY KEY ("website_id")- );-- -- CreateIndex- CREATE UNIQUE INDEX "account.username_unique" ON "account"("username");-- -- CreateIndex- CREATE INDEX "event_created_at_idx" ON "event"("created_at");-- -- CreateIndex- CREATE INDEX "event_session_id_idx" ON "event"("session_id");-- -- CreateIndex- CREATE INDEX "event_website_id_idx" ON "event"("website_id");-- -- CreateIndex- CREATE INDEX "pageview_created_at_idx" ON "pageview"("created_at");-- -- CreateIndex- CREATE INDEX "pageview_session_id_idx" ON "pageview"("session_id");-- -- CreateIndex- CREATE INDEX "pageview_website_id_created_at_idx" ON "pageview"("website_id", "created_at");-- -- CreateIndex- CREATE INDEX "pageview_website_id_idx" ON "pageview"("website_id");-- -- CreateIndex- CREATE INDEX "pageview_website_id_session_id_created_at_idx" ON "pageview"("website_id", "session_id", "created_at");-- -- CreateIndex- CREATE UNIQUE INDEX "session.session_uuid_unique" ON "session"("session_uuid");-- -- CreateIndex- CREATE INDEX "session_created_at_idx" ON "session"("created_at");-- -- CreateIndex- CREATE INDEX "session_website_id_idx" ON "session"("website_id");-- -- CreateIndex- CREATE UNIQUE INDEX "website.website_uuid_unique" ON "website"("website_uuid");-- -- CreateIndex- CREATE UNIQUE INDEX "website.share_id_unique" ON "website"("share_id");-- -- CreateIndex- CREATE INDEX "website_user_id_idx" ON "website"("user_id");-- -- AddForeignKey- ALTER TABLE "event" ADD FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "event" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "pageview" ADD FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "pageview" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "session" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "website" ADD FOREIGN KEY ("user_id") REFERENCES "account"("user_id") ON DELETE CASCADE ON UPDATE CASCADE;-- insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);- variables:- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$secret_hash_salt- name: HASH_SALT- label: Hash Salt- defaultValue: $$generate_hex(64)- description: ""- - id: $$config_database_type- name: DATABASE_TYPE- label: Database Type- defaultValue: "postgresql"- description: ""- - id: $$config_postgres_user- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_postgres_db- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: umami- description: ""- - id: $$secret_admin_password- name: ADMIN_PASSWORD- label: Initial Admin Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true-- templateVersion: 1.0.0- ignore: true- defaultVersion: postgresql-v1.39.5- documentation: https://umami.is/docs/getting-started- type: umami- name: Umami- subname: (PostgreSQL)- description: >-- A simple, easy to use, self-hosted web analytics solution.- services:- $$id:- name: Umami- depends_on:- - $$id-postgresql- image: "ghcr.io/umami-software/umami:$$core_version"- volumes: []- environment:- - ADMIN_PASSWORD=$$secret_admin_password- - DATABASE_URL=$$secret_database_url- - DATABASE_TYPE=$$config_database_type- - HASH_SALT=$$secret_hash_salt- ports:- - "3000"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:12-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- ports: []- files:- - location: /docker-entrypoint-initdb.d/schema.postgresql.sql- content: |2--- -- CreateTable- CREATE TABLE "account" (- "user_id" SERIAL NOT NULL,- "username" VARCHAR(255) NOT NULL,- "password" VARCHAR(60) NOT NULL,- "is_admin" BOOLEAN NOT NULL DEFAULT false,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "updated_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,-- PRIMARY KEY ("user_id")- );-- -- CreateTable- CREATE TABLE "event" (- "event_id" SERIAL NOT NULL,- "website_id" INTEGER NOT NULL,- "session_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "url" VARCHAR(500) NOT NULL,- "event_type" VARCHAR(50) NOT NULL,- "event_value" VARCHAR(50) NOT NULL,-- PRIMARY KEY ("event_id")- );-- -- CreateTable- CREATE TABLE "pageview" (- "view_id" SERIAL NOT NULL,- "website_id" INTEGER NOT NULL,- "session_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "url" VARCHAR(500) NOT NULL,- "referrer" VARCHAR(500),-- PRIMARY KEY ("view_id")- );-- -- CreateTable- CREATE TABLE "session" (- "session_id" SERIAL NOT NULL,- "session_uuid" UUID NOT NULL,- "website_id" INTEGER NOT NULL,- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,- "hostname" VARCHAR(100),- "browser" VARCHAR(20),- "os" VARCHAR(20),- "device" VARCHAR(20),- "screen" VARCHAR(11),- "language" VARCHAR(35),- "country" CHAR(2),-- PRIMARY KEY ("session_id")- );-- -- CreateTable- CREATE TABLE "website" (- "website_id" SERIAL NOT NULL,- "website_uuid" UUID NOT NULL,- "user_id" INTEGER NOT NULL,- "name" VARCHAR(100) NOT NULL,- "domain" VARCHAR(500),- "share_id" VARCHAR(64),- "created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,-- PRIMARY KEY ("website_id")- );-- -- CreateIndex- CREATE UNIQUE INDEX "account.username_unique" ON "account"("username");-- -- CreateIndex- CREATE INDEX "event_created_at_idx" ON "event"("created_at");-- -- CreateIndex- CREATE INDEX "event_session_id_idx" ON "event"("session_id");-- -- CreateIndex- CREATE INDEX "event_website_id_idx" ON "event"("website_id");-- -- CreateIndex- CREATE INDEX "pageview_created_at_idx" ON "pageview"("created_at");-- -- CreateIndex- CREATE INDEX "pageview_session_id_idx" ON "pageview"("session_id");-- -- CreateIndex- CREATE INDEX "pageview_website_id_created_at_idx" ON "pageview"("website_id", "created_at");-- -- CreateIndex- CREATE INDEX "pageview_website_id_idx" ON "pageview"("website_id");-- -- CreateIndex- CREATE INDEX "pageview_website_id_session_id_created_at_idx" ON "pageview"("website_id", "session_id", "created_at");-- -- CreateIndex- CREATE UNIQUE INDEX "session.session_uuid_unique" ON "session"("session_uuid");-- -- CreateIndex- CREATE INDEX "session_created_at_idx" ON "session"("created_at");-- -- CreateIndex- CREATE INDEX "session_website_id_idx" ON "session"("website_id");-- -- CreateIndex- CREATE UNIQUE INDEX "website.website_uuid_unique" ON "website"("website_uuid");-- -- CreateIndex- CREATE UNIQUE INDEX "website.share_id_unique" ON "website"("share_id");-- -- CreateIndex- CREATE INDEX "website_user_id_idx" ON "website"("user_id");-- -- AddForeignKey- ALTER TABLE "event" ADD FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "event" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "pageview" ADD FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "pageview" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "session" ADD FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE CASCADE;-- -- AddForeignKey- ALTER TABLE "website" ADD FOREIGN KEY ("user_id") REFERENCES "account"("user_id") ON DELETE CASCADE ON UPDATE CASCADE;-- insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);- variables:- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db- description: ""- - id: $$secret_hash_salt- name: HASH_SALT- label: Hash Salt- defaultValue: $$generate_hex(64)- description: ""- - id: $$config_database_type- name: DATABASE_TYPE- label: Database Type- defaultValue: "postgresql"- description: ""- - id: $$config_postgres_user- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_postgres_db- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: umami- description: ""- - id: $$secret_admin_password- name: ADMIN_PASSWORD- label: Initial Admin Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true-- templateVersion: 1.0.0- defaultVersion: v0.30.1- documentation: https://docs.meilisearch.com/learn/getting_started/quick_start.html- type: meilisearch- name: MeiliSearch- description: >-- A lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.- services:- $$id:- name: MeiliSearch- documentation: https://docs.meilisearch.com/- depends_on: []- image: "getmeili/meilisearch:$$core_version"- volumes:- - "$$id-datams:/meili_data/data.ms"- - "$$id-data:/meili_data"- - "$$id-snapshot:/snapshot"- - "$$id-dump:/dumps"- environment:- - MEILI_MASTER_KEY=$$secret_meili_master_key- ports:- - "7700"- variables:- - id: $$secret_meili_master_key- name: MEILI_MASTER_KEY- label: Master Key- defaultValue: $$generate_hex(64)- description: ""- showOnConfiguration: true-- templateVersion: 1.0.0- ignore: true- defaultVersion: latest- documentation: https://docs.ghost.org- arch: amd64- type: ghost-mariadb- name: Ghost- subname: (MariaDB)- description: >-- Free and open source blogging platform.- labels:- - cms- - blog- services:- $$id:- name: Ghost- depends_on:- - $$id-mariadb- image: "bitnami/ghost:$$core_version"- volumes:- - "$$id-ghost:/bitnami/ghost"- environment:- - url=$$config_url- - GHOST_HOST=$$config_ghost_host- - GHOST_ENABLE_HTTPS=$$config_ghost_enable_https- - GHOST_EMAIL=$$config_ghost_email- - GHOST_PASSWORD=$$secret_ghost_password- - GHOST_DATABASE_HOST=$$config_ghost_database_host- - GHOST_DATABASE_USER=$$config_mariadb_user- - GHOST_DATABASE_PASSWORD=$$secret_ghost_database_password- - GHOST_DATABASE_NAME=$$config_mariadb_database- - GHOST_DATABASE_PORT_NUMBER=3306- ports:- - "2368"- $$id-mariadb:- name: MariaDB- depends_on: []- image: "bitnami/mariadb:latest"- volumes:- - "$$id-mariadb:/bitnami/mariadb"- environment:- - MARIADB_USER=$$config_mariadb_user- - MARIADB_PASSWORD=$$secret_mariadb_password- - MARIADB_DATABASE=$$config_mariadb_database- - MARIADB_ROOT_USER=$$config_mariadb_root_user- - MARIADB_ROOT_PASSWORD=$$secret_mariadb_root_password- ports: []- variables:- - id: $$config_url- name: url- label: URL- defaultValue: $$generate_fqdn- description: ""- - id: $$config_ghost_host- name: GHOST_HOST- label: Ghost Host- defaultValue: $$generate_domain- description: ""- - id: $$config_ghost_enable_https- name: GHOST_ENABLE_HTTPS- label: Ghost Enable HTTPS- defaultValue: "no"- description: ""- - id: $$config_ghost_email- name: GHOST_EMAIL- label: Ghost Default Email- defaultValue: [email protected]- description: ""- - id: $$secret_ghost_password- name: GHOST_PASSWORD- label: Ghost Default Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_ghost_database_host- name: GHOST_DATABASE_HOST- label: Ghost Database Host- defaultValue: $$id-mariadb- description: ""- - id: $$config_ghost_database_user- name: GHOST_DATABASE_USER- label: MariaDB User- defaultValue: $$config_mariadb_user- description: ""- - id: $$secret_ghost_database_password- name: GHOST_DATABASE_PASSWORD- label: MariaDB Password- defaultValue: $$secret_mariadb_password- description: ""- - id: $$config_ghost_database_name- name: GHOST_DATABASE_NAME- label: MariaDB Database- defaultValue: $$config_mariadb_database- description: ""- - id: $$config_mariadb_user- name: MARIADB_USER- label: MariaDB User- defaultValue: $$generate_username- description: ""- - id: $$secret_mariadb_password- name: MARIADB_PASSWORD- label: MariaDB Password- defaultValue: $$generate_password- description: ""- - id: $$config_mariadb_database- name: MARIADB_DATABASE- label: MariaDB Database- defaultValue: ghost- description: ""- - id: $$config_mariadb_root_user- name: MARIADB_ROOT_USER- label: MariaDB Root User- defaultValue: $$generate_username- description: ""- - id: $$secret_mariadb_root_password- name: MARIADB_ROOT_PASSWORD- label: MariaDB Root Password- defaultValue: $$generate_password- description: ""-- templateVersion: 1.0.0- defaultVersion: "5.25.3"- documentation: https://docs.ghost.org- type: ghost-only- name: Ghost- subname: (without Database)- description: >-- Free and open source blogging platform.- services:- $$id:- name: Ghost- image: "ghost:$$core_version"- volumes:- - "$$id-ghost:/var/lib/ghost/content"- environment:- - url=$$config_url- - database__client=$$config_database__client- - database__connection__host=$$config_database__connection__host- - database__connection__user=$$config_database__connection__user- - database__connection__password=$$secret_database__connection__password- - database__connection__database=$$config_database__connection__database- ports:- - "2368"- variables:- - id: $$config_url- name: url- label: URL- defaultValue: $$generate_fqdn- description: ""- - id: $$config_database__client- name: database__client- label: Database Client- defaultValue: mysql- description: ""- required: true- - id: $$config_database__connection__host- name: database__connection__host- label: Database Host- defaultValue: ""- description: ""- required: true- placeholder: "db.coolify.io"- - id: $$config_database__connection__user- name: database__connection__user- label: Database User- defaultValue: ""- description: ""- placeholder: "ghost"- required: true- - id: $$secret_database__connection__password- name: database__connection__password- label: Database Password- defaultValue: ""- description: ""- placeholder: "superSecretP4ssword"- showOnConfiguration: true- required: true- - id: $$config_database__connection__database- name: database__connection__database- label: Database Name- defaultValue: ""- description: ""- placeholder: "ghost_db"- required: true-- templateVersion: 1.0.0- defaultVersion: "5.25.3"- documentation: https://docs.ghost.org- type: ghost-mysql- name: Ghost- subname: (MySQL)- description: >-- Ghost is a free and open source blogging platform.- services:- $$id:- name: Ghost- depends_on:- - $$id-mysql- image: "ghost:$$core_version"- volumes:- - "$$id-ghost:/var/lib/ghost/content"- environment:- - url=$$config_url- - database__client=$$config_database__client- - database__connection__host=$$config_database__connection__host- - database__connection__user=$$config_mysql_user- - database__connection__password=$$secret_mysql_password- - database__connection__database=$$config_mysql_database- ports:- - "2368"- $$id-mysql:- name: MySQL- depends_on: []- image: "mysql:8.0"- volumes:- - "$$id-mysql:/var/lib/mysql"- environment:- - MYSQL_USER=$$config_mysql_user- - MYSQL_PASSWORD=$$secret_mysql_password- - MYSQL_DATABASE=$$config_mysql_database- - MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password- ports: []- variables:- - id: $$config_url- name: url- label: URL- defaultValue: $$generate_fqdn- description: ""- - id: $$config_database__client- name: database__client- label: Database Client- defaultValue: mysql- description: ""- readOnly: true- - id: $$config_database__connection__host- name: database__connection__host- label: Database Host- defaultValue: $$id-mysql- description: ""- - id: $$config_mysql_user- main: $$id-mysql- name: MYSQL_USER- label: MySQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_mysql_password- main: $$id-mysql- name: MYSQL_PASSWORD- label: MySQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_mysql_database- main: $$id-mysql- name: MYSQL_DATABASE- label: MySQL Database- defaultValue: ghost- description: ""- - id: $$secret_mysql_root_password- name: MYSQL_ROOT_PASSWORD- label: MySQL Root Password- defaultValue: $$generate_password- description: ""-- templateVersion: 1.0.0- defaultVersion: php8.1- documentation: https://wordpress.org/- type: wordpress- name: WordPress- subname: (MySQL)- description: A content management system based on PHP.- labels:- - "wordpress"- - "php"- - "cms"- services:- $$id:- name: WordPress- depends_on:- - $$id-mysql- image: "wordpress:$$core_version"- volumes:- - "$$id-wordpress-data:/var/www/html"- environment:- - WORDPRESS_DB_HOST=$$config_wordpress_db_host- - WORDPRESS_DB_USER=$$config_mysql_user- - WORDPRESS_DB_PASSWORD=$$secret_mysql_password- - WORDPRESS_DB_NAME=$$config_mysql_database- - WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra- ports:- - "80"- $$id-mysql:- name: MySQL- depends_on: []- image: "bitnami/mysql:5.7"- imageArm: "mysql:8.0"- volumes:- - "$$id-mysql-data:/bitnami/mysql/data"- volumesArm:- - "$$id-mysql-data:/var/lib/mysql"- environment:- - MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password- - MYSQL_ROOT_USER=$$config_mysql_root_user- - MYSQL_DATABASE=$$config_mysql_database- - MYSQL_USER=$$config_mysql_user- - MYSQL_PASSWORD=$$secret_mysql_password- variables:- - id: $$config_wordpress_db_host- name: WORDPRESS_DB_HOST- label: Database Host- defaultValue: $$id-mysql- description: ""- readOnly: true- - id: $$config_wordpress_config_extra- name: WORDPRESS_CONFIG_EXTRA- label: WordPress Config Extra- defaultValue: ""- description: ""- type: "textarea"- placeholder: |- define('WP_DEBUG', true);- define('WP_DEBUG_LOG', true);- define('WP_DEBUG_DISPLAY', false);- @ini_set('display_errors', 0);- - id: $$secret_mysql_root_password- name: MYSQL_ROOT_PASSWORD- label: MySQL Root Password- defaultValue: $$generate_password- description: ""- readOnly: true- - id: $$config_mysql_root_user- name: MYSQL_ROOT_USER- label: MySQL Root User- defaultValue: $$generate_username- description: ""- readOnly: true- - id: $$config_mysql_database- name: MYSQL_DATABASE- label: MySQL Database- defaultValue: wordpress- description: ""- readOnly: true- - id: $$config_mysql_user- name: MYSQL_USER- label: MySQL User- defaultValue: $$generate_username- description: ""- readOnly: true- - id: $$secret_mysql_password- name: MYSQL_PASSWORD- label: MySQL Password- defaultValue: $$generate_password- description: ""- readOnly: true-- templateVersion: 1.0.0- defaultVersion: php8.1- documentation: https://wordpress.org/- type: wordpress-only- name: WordPress- subname: (without DB)- description: A content management system based on PHP.- labels:- - "wordpress"- - "php"- - "cms"- services:- $$id:- name: WordPress- image: "wordpress:$$core_version"- volumes:- - "$$id-wordpress-data:/var/www/html"- environment:- - WORDPRESS_DB_HOST=$$config_wordpress_db_host- - WORDPRESS_DB_PORT=$$config_wordpress_db_port- - WORDPRESS_DB_USER=$$config_wordpress_db_user- - WORDPRESS_DB_PASSWORD=$$secret_wordpress_db_password- - WORDPRESS_DB_NAME=$$config_wordpress_db_name- - WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra- ports:- - "80"- variables:- - id: $$config_wordpress_db_host- name: WORDPRESS_DB_HOST- label: Database Host- defaultValue: ""- description: ""- placeholder: "db.coollabs.io"- required: true- - id: $$config_wordpress_db_port- name: WORDPRESS_DB_PORT- label: Database Port- defaultValue: ""- description: ""- placeholder: "3306"- required: true- - id: $$config_wordpress_db_user- name: WORDPRESS_DB_USER- label: Database User- defaultValue: ""- description: ""- placeholder: "wordpress"- required: true- - id: $$secret_wordpress_db_password- name: WORDPRESS_DB_PASSWORD- label: Database Password- defaultValue: ""- description: ""- placeholder: "supers3cr3tpassw0rd!"- required: true- showOnConfiguration: true- - id: $$config_wordpress_db_name- name: WORDPRESS_DB_NAME- label: Database Name- defaultValue: ""- description: ""- placeholder: "wordpress"- required: true- - id: $$config_wordpress_config_extra- name: WORDPRESS_CONFIG_EXTRA- label: Extra Config- defaultValue: ""- description: ""- type: "textarea"- placeholder: |- define('WP_DEBUG', true);- define('WP_DEBUG_LOG', true);- define('WP_DEBUG_DISPLAY', false);- @ini_set('display_errors', 0);-- templateVersion: 1.0.0- defaultVersion: 4.9.0- documentation: https://coder.com/docs/coder-oss/latest- type: vscodeserver- name: VSCode Server- description: >-- Visual Studio Code on a remote server, accessible through the browser.- labels:- - vscode- - ide- services:- $$id:- name: VSCode Server- depends_on: []- image: "codercom/code-server:$$core_version"- volumes:- - "$$id-config-data:/home/coder/.local/share/code-server"- - "$$id-vscodeserver-data:/home/coder"- - "$$id-keys-directory:/root/.ssh"- - "$$id-theme-and-plugin-directory:/root/.local/share/code-server"- environment:- - PASSWORD=$$secret_password- ports:- - "8080"- variables:- - id: $$secret_password- name: PASSWORD- label: Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true-- templateVersion: 1.0.0- defaultVersion: RELEASE.2022-12-12T19-27-27Z- documentation: https://min.io/docs/minio- type: minio- name: MinIO- description: "A cloud storage server compatible with Amazon S3."- labels:- - storage- - s3- services:- $$id:- name: MinIO- command: "server /data --console-address :9001"- depends_on: []- image: "minio/minio:$$core_version"- volumes:- - "$$id-minio-data:/data"- - "$$id-data-write:/files"- environment:- - MINIO_SERVER_URL=$$config_coolify_fqdn_minio_console- - MINIO_BROWSER_REDIRECT_URL=$$config_minio_browser_redirect_url- - MINIO_DOMAIN=$$config_minio_domain- - MINIO_ROOT_USER=$$config_minio_root_user- - MINIO_ROOT_PASSWORD=$$secret_minio_root_password- ports:- - "9000"- - "9001"- proxy:- - port: "9000"- domain: $$config_coolify_fqdn_minio_console- - port: "9001"- variables:- - id: $$config_coolify_fqdn_minio_console- name: MINIO_SERVER_URL- label: MinIO Server URL- defaultValue: ""- description: "Specify the URL hostname the MinIO Console should use for connecting to the MinIO Server."- required: true- - id: $$config_minio_browser_redirect_url- name: MINIO_BROWSER_REDIRECT_URL- label: Browser Redirect URL- defaultValue: $$generate_fqdn- description: ""- - id: $$config_minio_domain- name: MINIO_DOMAIN- label: Domain- defaultValue: $$generate_domain- description: ""- - id: $$config_minio_root_user- name: MINIO_ROOT_USER- label: Root User- defaultValue: $$generate_username- description: ""- - id: $$secret_minio_root_password- name: MINIO_ROOT_PASSWORD- label: Root User Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true-- templateVersion: 1.0.0- defaultVersion: 0.21.1- documentation: https://fider.io/docs- type: fider- name: Fider- description: A platform to collect and organize customer feedback.- labels:- - suggestion- - feedback- services:- $$id:- name: Fider- image: "getfider/fider:$$core_version"- depends_on:- - $$id-postgresql- environment:- - BASE_URL=$$config_base_url- - DATABASE_URL=$$secret_database_url- - JWT_SECRET=$$secret_jwt_secret- - EMAIL_NOREPLY=$$config_email_noreply- - EMAIL_MAILGUN_API=$$secret_email_mailgun_api- - EMAIL_MAILGUN_REGION=$$config_email_mailgun_region- - EMAIL_MAILGUN_DOMAIN=$$config_email_mailgun_domain- - EMAIL_SMTP_HOST=$$config_email_smtp_host- - EMAIL_SMTP_PORT=$$config_email_smtp_port- - EMAIL_SMTP_USER=$$config_email_smtp_user- - EMAIL_SMTP_PASSWORD=$$secret_email_smtp_password- - EMAIL_SMTP_ENABLE_STARTTLS=$$config_email_smtp_enable_starttls- ports:- - "3000"- $$id-postgresql:- name: PostgreSQL- depends_on: []- image: "postgres:12-alpine"- volumes:- - "$$id-postgresql-data:/var/lib/postgresql/data"- environment:- - POSTGRES_USER=$$config_postgres_user- - POSTGRES_PASSWORD=$$secret_postgres_password- - POSTGRES_DB=$$config_postgres_db- variables:- - id: $$config_base_url- name: BASE_URL- label: Base URL- defaultValue: $$generate_fqdn- description: ""- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db?sslmode=disable- description: ""- - id: $$secret_jwt_secret- name: JWT_SECRET- label: JWT Secret- defaultValue: $$generate_hex(64)- description: ""- - id: $$config_email_noreply- name: EMAIL_NOREPLY- label: No Reply Email Address- defaultValue: [email protected]- description: ""- - id: $$secret_email_mailgun_api- name: EMAIL_MAILGUN_API- label: Mailgun API Key- defaultValue: ""- description: ""- showOnConfiguration: true- - id: $$config_email_mailgun_region- name: EMAIL_MAILGUN_REGION- label: Mailgun Region- defaultValue: EU- description: ""- - id: $$config_email_mailgun_domain- name: EMAIL_MAILGUN_DOMAIN- label: Mailgun Domain- defaultValue: ""- description: ""- - id: $$config_email_smtp_host- name: EMAIL_SMTP_HOST- label: SMTP Host- defaultValue: ""- description: ""- - id: $$config_email_smtp_port- name: EMAIL_SMTP_PORT- label: SMTP Port- defaultValue: "587"- description: ""- - id: $$config_email_smtp_user- name: EMAIL_SMTP_USER- label: SMTP User- defaultValue: ""- description: ""- - id: $$secret_email_smtp_password- name: EMAIL_SMTP_PASSWORD- label: SMTP Password- defaultValue: ""- description: ""- showOnConfiguration: true- - id: $$config_email_smtp_enable_starttls- name: EMAIL_SMTP_ENABLE_STARTTLS- label: SMTP Enable StartTLS- defaultValue: "false"- description: ""- - id: $$config_postgres_user- name: POSTGRES_USER- label: PostgreSQL User- defaultValue: $$generate_username- description: ""- - id: $$secret_postgres_password- name: POSTGRES_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- - id: $$config_postgres_db- name: POSTGRES_DB- label: PostgreSQL Database- defaultValue: $$generate_username- description: ""-- templateVersion: 1.0.0- defaultVersion: 0.207.0- documentation: https://docs.n8n.io- type: n8n- name: n8n.io- description: A free and open node based Workflow Automation Tool.- labels:- - workflow- - automation- - ifttt- - zapier- - nodered- services:- $$id:- name: N8n- depends_on: []- image: "n8nio/n8n:$$core_version"- volumes:- - "$$id-data:/root/.n8n"- - "$$id-data-write:/files"- - "/var/run/docker.sock:/var/run/docker.sock"- environment:- - WEBHOOK_URL=$$config_webhook_url- ports:- - "5678"- variables:- - id: $$config_webhook_url- name: WEBHOOK_URL- label: Webhook URL- defaultValue: $$generate_fqdn- description: ""-- templateVersion: 1.0.0- defaultVersion: stable- documentation: https://plausible.io/doc/- arch: amd64- type: plausibleanalytics- name: Plausible Analytics- description: A lightweight and open-source website analytics tool.- labels:- - analytics- - statistics- - plausible- - gdpr- - no-cookie- - google analytics- services:- $$id:- name: Plausible Analytics- command: >-- sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db- migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"- depends_on:- - $$id-postgresql- - $$id-clickhouse- image: "plausible/analytics:$$core_version"- environment:- - ADMIN_USER_EMAIL=$$config_admin_user_email- - ADMIN_USER_NAME=$$config_admin_user_name- - ADMIN_USER_PWD=$$secret_admin_user_pwd- - BASE_URL=$$config_base_url- - SECRET_KEY_BASE=$$secret_secret_key_base- - DISABLE_AUTH=$$config_disable_auth- - DISABLE_REGISTRATION=$$config_disable_registration- - DATABASE_URL=$$secret_database_url- - CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url- ports:- - "8000"- $$id-postgresql:- name: PostgreSQL- image: "bitnami/postgresql:13"- volumes:- - "$$id-postgresql-data:/bitnami/postgresql"- environment:- - POSTGRESQL_PASSWORD=$$secret_postgresql_password- - POSTGRESQL_USERNAME=$$config_postgresql_username- - POSTGRESQL_DATABASE=$$config_postgresql_database- $$id-clickhouse:- name: Clickhouse- volumes:- - "$$id-clickhouse-data:/var/lib/clickhouse"- image: "clickhouse/clickhouse-server:22.6-alpine"- ulimits:- nofile:- soft: 262144- hard: 262144- files:- - location: /etc/clickhouse-server/users.d/logging.xml- content: >-- <yandex><logger><level>warning</level><console>true</console></logger><query_thread_log- remove="remove"/><query_log remove="remove"/><text_log- remove="remove"/><trace_log remove="remove"/><metric_log- remove="remove"/><asynchronous_metric_log- remove="remove"/><session_log remove="remove"/><part_log- remove="remove"/></yandex>- - location: /etc/clickhouse-server/config.d/logging.xml- content: >-- <yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>- - location: /docker-entrypoint-initdb.d/init.query- content: CREATE DATABASE IF NOT EXISTS plausible;- - location: /docker-entrypoint-initdb.d/init-db.sh- content: >-- clickhouse client --queries-file- /docker-entrypoint-initdb.d/init.query- variables:- - id: $$config_base_url- name: BASE_URL- label: Base URL- defaultValue: $$generate_fqdn- description: >-- You must set this to the FQDN of the Plausible Analytics instance. This- is used to generate the links to the Plausible Analytics instance.- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL for PostgreSQL- defaultValue: >-- postgresql://$$config_postgresql_username:$$secret_postgresql_password@$$id-postgresql:5432/$$config_postgresql_database- description: ""- - id: $$secret_clickhouse_database_url- name: CLICKHOUSE_DATABASE_URL- label: Database URL for Clickhouse- defaultValue: "http://$$id-clickhouse:8123/plausible"- description: ""- - id: $$config_admin_user_email- name: ADMIN_USER_EMAIL- label: Admin Email Address- defaultValue: [email protected]- description: This is the admin email. Please change it.- - id: $$config_admin_user_name- name: ADMIN_USER_NAME- label: Admin User Name- defaultValue: $$generate_username- description: This is the admin username. Please change it.- - id: $$secret_admin_user_pwd- name: ADMIN_USER_PWD- label: Admin User Password- defaultValue: $$generate_password- description: This is the admin password. Please change it.- showOnConfiguration: true- - id: $$secret_secret_key_base- name: SECRET_KEY_BASE- label: Secret Key Base- defaultValue: $$generate_hex(64)- description: ""- - id: $$config_disable_auth- name: DISABLE_AUTH- label: Authentication- defaultValue: "false"- description: ""- - id: $$config_disable_registration- name: DISABLE_REGISTRATION- label: Registration- defaultValue: "true"- description: ""- - id: $$config_postgresql_username- main: $$id-postgresql- name: POSTGRESQL_USERNAME- label: PostgreSQL Username- defaultValue: postgresql- description: ""- - id: $$secret_postgresql_password- main: $$id-postgresql- name: POSTGRESQL_PASSWORD- label: PostgreSQL Password- defaultValue: $$generate_password- description: ""- showOnConfiguration: true- - id: $$config_postgresql_database- main: $$id-postgresql- name: POSTGRESQL_DATABASE- label: PostgreSQL Database- defaultValue: plausible- description: ""- - id: $$config_scriptName- name: SCRIPT_NAME- label: Custom Script Name- defaultValue: plausible.js- description: This is the default script name.-- templateVersion: 1.0.0- defaultVersion: 0.99.1- documentation: https://docs.nocodb.com- type: nocodb- name: NocoDB- description: >-- Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadsheet.- labels:- - database- - airtable- - spreadsheet- services:- $$id:- name: NocoDB- image: nocodb/nocodb:$$core_version- environment:- - PORT=$$config_port- - NC_DB=$$config_nc_db- - DATABASE_URL=$$secret_database_url- - NC_PUBLIC_URL=$$config_public_url- - NC_AUTH_JWT_SECRET=$$secret_auth_jwt_secret- - NC_SENTRY_DSN=$$secret_sentry_dsn- - >-- NC_CONNECT_TO_EXTERNAL_DB_DISABLED=$$config_connect_to_external_db_disabled- - NC_DISABLE_TELE=$$config_disable_tele- volumes:- - $$id-data:/usr/app/data- ports:- - "8080"- variables:- - id: $$config_nc_db- name: NC_DB- label: Database- defaultValue: ""- description: >-- MySQL, PostgreSQL and MSSQL connection urls supported. If absent: A- local SQLite will be created in root folder.- - id: $$config_port- name: PORT- label: Port- defaultValue: "8080"- description: >--- - id: $$secret_database_url- name: DATABASE_URL- label: Database URL- defaultValue: ""- description: >-- JDBC URL Format. Can be used instead of NC_DB. Used in 1-Click Heroku- deployment.- - id: $$config_public_url- name: NC_PUBLIC_URL- label: Public URL- defaultValue: ""- description: >-- Used for sending Email invitations. If absent: Best guess from http- request params.- - id: $$secret_auth_jwt_secret- name: NC_AUTH_JWT_SECRET- label: Auth JWT Secret- defaultValue: $$generate_hex(64)- description: >-- JWT secret used for auth and storing other secrets. If absent: A Random- secret will be generated.- - id: $$secret_sentry_dsn- name: NC_SENTRY_DSN- label: Sentry DSN- defaultValue: ""- description: For Sentry monitoring.- - id: $$config_connect_to_external_db_disabled- name: NC_CONNECT_TO_EXTERNAL_DB_DISABLED- label: Disable External Database- defaultValue: "0"- description: Disable Project creation with external database. (Enter "1" to disable).- - id: $$config_disable_tele- name: NC_DISABLE_TELE- label: NocoDB Disable Telemetry- defaultValue: "1"- description: Disable telemetry (Enter "1" to disable).diff --git a/apps/trpc-experimental/server/nodemon.json b/apps/trpc-experimental/server/nodemon.jsondeleted file mode 100644index 48bb2f1431..0000000000--- a/apps/trpc-experimental/server/nodemon.json+++ /dev/null@@ -1,7 +0,0 @@-{- "watch": ["src"],- "ignore": ["src/**/*.test.ts"],- "ext": "ts,mjs,json,graphql",- "exec": "rimraf build && esbuild `find src \\( -name '*.ts' -o -name '*.js' \\)` --platform=node --outdir=build --format=cjs && node build",- "legacyWatch": true-}diff --git a/apps/trpc-experimental/server/package.json b/apps/trpc-experimental/server/package.jsondeleted file mode 100644index 45177559ae..0000000000--- a/apps/trpc-experimental/server/package.json+++ /dev/null@@ -1,85 +0,0 @@-{- "name": "server",- "description": "Coolify's Fastify API",- "license": "Apache-2.0",- "scripts": {- "build": "rimraf ../../build && tsc --outDir ../../build",- "dev-old": "tsx watch --clear-screen=false src",- "dev": "nodemon",- "lint": "prettier --plugin-search-dir . --check . && eslint .",- "format": "prettier --plugin-search-dir . --write .",- "test-dev": "start-server-and-test 'tsx src/server' http-get://localhost:2022 'tsx src/client'",- "test-start": "start-server-and-test 'node dist/server' http-get://localhost:2022 'node dist/client'",- "db:generate": "prisma generate",- "db:push": "prisma db push && prisma generate",- "db:seed": "prisma db seed",- "db:studio": "prisma studio",- "db:migrate": "DATABASE_URL=file:../db/migration.db prisma migrate dev --skip-seed --name"- },- "dependencies": {- "@breejs/ts-worker": "2.0.0",- "@fastify/autoload": "5.6.0",- "@fastify/cors": "8.2.0",- "@fastify/env": "4.1.0",- "@fastify/jwt": "6.5.0",- "@fastify/static": "6.6.0",- "@fastify/websocket": "7.1.1",- "@iarna/toml": "2.2.5",- "@ladjs/graceful": "3.0.2",- "@prisma/client": "4.6.1",- "@trpc/client": "10.1.0",- "@trpc/server": "10.1.0",- "abort-controller": "3.0.0",- "axe": "11.0.0",- "bcryptjs": "2.4.3",- "bree": "9.1.2",- "cabin": "11.0.1",- "csvtojson": "2.0.10",- "cuid": "2.1.8",- "dayjs": "1.11.6",- "dotenv": "^16.0.3",- "execa": "6.1.0",- "fastify": "4.10.2",- "fastify-plugin": "4.4.0",- "got": "^12.5.3",- "is-ip": "5.0.0",- "is-port-reachable": "4.0.0",- "js-yaml": "4.1.0",- "jsonwebtoken": "9.0.0",- "node-fetch": "3.3.0",- "p-all": "4.0.0",- "p-throttle": "5.0.0",- "prisma": "4.6.1",- "shell-quote": "^1.7.4",- "ssh-config": "4.1.6",- "strip-ansi": "7.0.1",- "superjson": "1.11.0",- "tslib": "2.4.1",- "unique-names-generator": "4.7.1",- "ws": "8.11.0",- "zod": "3.19.1"- },- "devDependencies": {- "@types/bcryptjs": "^2.4.2",- "@types/js-yaml": "^4.0.5",- "@types/jsonwebtoken": "^8.5.9",- "@types/node": "18.11.9",- "@types/node-fetch": "2.6.2",- "@types/shell-quote": "^1.7.1",- "@types/ws": "8.5.3",- "esbuild": "0.15.15",- "nodemon": "2.0.20",- "npm-run-all": "4.1.5",- "rimraf": "3.0.2",- "start-server-and-test": "1.14.0",- "tsx": "3.12.1",- "typescript": "4.9.3",- "wait-port": "1.0.4"- },- "publishConfig": {- "access": "restricted"- },- "prisma": {- "seed": "tsx prisma/seed.ts"- }-}diff --git a/apps/trpc-experimental/server/prisma/migrations/20220131142425_init/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220131142425_init/migration.sqldeleted file mode 100644index 6607a48b5a..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220131142425_init/migration.sql+++ /dev/null@@ -1,443 +0,0 @@--- CreateTable-CREATE TABLE "Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "User" (- "id" TEXT NOT NULL PRIMARY KEY,- "email" TEXT NOT NULL,- "type" TEXT NOT NULL,- "password" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "Permission" (- "id" TEXT NOT NULL PRIMARY KEY,- "userId" TEXT NOT NULL,- "teamId" TEXT NOT NULL,- "permission" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Permission_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,- CONSTRAINT "Permission_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Team" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "databaseId" TEXT,- "serviceId" TEXT,- FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "TeamInvitation" (- "id" TEXT NOT NULL PRIMARY KEY,- "uid" TEXT NOT NULL,- "email" TEXT NOT NULL,- "teamId" TEXT NOT NULL,- "teamName" TEXT NOT NULL,- "permission" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP-);---- CreateTable-CREATE TABLE "Application" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "repository" TEXT,- "configHash" TEXT,- "branch" TEXT,- "buildPack" TEXT,- "projectId" INTEGER,- "port" INTEGER,- "installCommand" TEXT,- "buildCommand" TEXT,- "startCommand" TEXT,- "baseDirectory" TEXT,- "publishDirectory" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "destinationDockerId" TEXT,- "gitSourceId" TEXT,- CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Secret" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "isBuildSecret" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "applicationId" TEXT NOT NULL,- CONSTRAINT "Secret_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "BuildLog" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT,- "buildId" TEXT NOT NULL,- "line" TEXT NOT NULL,- "time" INTEGER NOT NULL-);---- CreateTable-CREATE TABLE "Build" (- "id" TEXT NOT NULL PRIMARY KEY,- "type" TEXT NOT NULL,- "applicationId" TEXT,- "destinationDockerId" TEXT,- "gitSourceId" TEXT,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- "commit" TEXT,- "status" TEXT DEFAULT 'queued',- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "DestinationDocker" (- "id" TEXT NOT NULL PRIMARY KEY,- "network" TEXT NOT NULL,- "name" TEXT NOT NULL,- "engine" TEXT NOT NULL,- "remoteEngine" BOOLEAN NOT NULL DEFAULT false,- "isCoolifyProxyUsed" BOOLEAN DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "GitSource" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "type" TEXT,- "apiUrl" TEXT,- "htmlUrl" TEXT,- "organization" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "GithubApp" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT,- "appId" INTEGER,- "installationId" INTEGER,- "clientId" TEXT,- "clientSecret" TEXT,- "webhookSecret" TEXT,- "privateKey" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "GitlabApp" (- "id" TEXT NOT NULL PRIMARY KEY,- "oauthId" INTEGER NOT NULL,- "groupName" TEXT,- "deployKeyId" INTEGER,- "privateSshKey" TEXT,- "publicSshKey" TEXT,- "webhookToken" TEXT,- "appId" TEXT,- "appSecret" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- CreateTable-CREATE TABLE "Database" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "publicPort" INTEGER,- "defaultDatabase" TEXT,- "type" TEXT,- "version" TEXT,- "dbUser" TEXT,- "dbUserPassword" TEXT,- "rootUser" TEXT,- "rootUserPassword" TEXT,- "destinationDockerId" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Database_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "DatabaseSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "databaseId" TEXT NOT NULL,- "isPublic" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "DatabaseSettings_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Service" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "type" TEXT,- "version" TEXT,- "destinationDockerId" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "PlausibleAnalytics" (- "id" TEXT NOT NULL PRIMARY KEY,- "email" TEXT,- "username" TEXT,- "password" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "secretKeyBase" TEXT,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "PlausibleAnalytics_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Minio" (- "id" TEXT NOT NULL PRIMARY KEY,- "rootUser" TEXT NOT NULL,- "rootUserPassword" TEXT NOT NULL,- "publicPort" INTEGER,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Minio_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Vscodeserver" (- "id" TEXT NOT NULL PRIMARY KEY,- "password" TEXT NOT NULL,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Vscodeserver_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "Wordpress" (- "id" TEXT NOT NULL PRIMARY KEY,- "extraConfig" TEXT,- "tablePrefix" TEXT,- "mysqlUser" TEXT NOT NULL,- "mysqlPassword" TEXT NOT NULL,- "mysqlRootUser" TEXT NOT NULL,- "mysqlRootUserPassword" TEXT NOT NULL,- "mysqlDatabase" TEXT,- "mysqlPublicPort" INTEGER,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_TeamToUser" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_ApplicationToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "Application" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_GitSourceToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "GitSource" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_GithubAppToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "GithubApp" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_GitlabAppToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "GitlabApp" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_DestinationDockerToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "DestinationDocker" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_DatabaseToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "Database" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateTable-CREATE TABLE "_ServiceToTeam" (- "A" TEXT NOT NULL,- "B" TEXT NOT NULL,- FOREIGN KEY ("A") REFERENCES "Service" ("id") ON DELETE CASCADE ON UPDATE CASCADE,- FOREIGN KEY ("B") REFERENCES "Team" ("id") ON DELETE CASCADE ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");---- CreateIndex-CREATE UNIQUE INDEX "User_id_key" ON "User"("id");---- CreateIndex-CREATE UNIQUE INDEX "User_email_key" ON "User"("email");---- CreateIndex-CREATE UNIQUE INDEX "Application_fqdn_key" ON "Application"("fqdn");---- CreateIndex-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");---- CreateIndex-CREATE UNIQUE INDEX "Secret_name_key" ON "Secret"("name");---- CreateIndex-CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");---- CreateIndex-CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");---- CreateIndex-CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");---- CreateIndex-CREATE UNIQUE INDEX "GithubApp_name_key" ON "GithubApp"("name");---- CreateIndex-CREATE UNIQUE INDEX "GitlabApp_oauthId_key" ON "GitlabApp"("oauthId");---- CreateIndex-CREATE UNIQUE INDEX "GitlabApp_groupName_key" ON "GitlabApp"("groupName");---- CreateIndex-CREATE UNIQUE INDEX "DatabaseSettings_databaseId_key" ON "DatabaseSettings"("databaseId");---- CreateIndex-CREATE UNIQUE INDEX "PlausibleAnalytics_serviceId_key" ON "PlausibleAnalytics"("serviceId");---- CreateIndex-CREATE UNIQUE INDEX "Minio_serviceId_key" ON "Minio"("serviceId");---- CreateIndex-CREATE UNIQUE INDEX "Vscodeserver_serviceId_key" ON "Vscodeserver"("serviceId");---- CreateIndex-CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");---- CreateIndex-CREATE UNIQUE INDEX "_TeamToUser_AB_unique" ON "_TeamToUser"("A", "B");---- CreateIndex-CREATE INDEX "_TeamToUser_B_index" ON "_TeamToUser"("B");---- CreateIndex-CREATE UNIQUE INDEX "_ApplicationToTeam_AB_unique" ON "_ApplicationToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_ApplicationToTeam_B_index" ON "_ApplicationToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_GitSourceToTeam_AB_unique" ON "_GitSourceToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_GitSourceToTeam_B_index" ON "_GitSourceToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_GithubAppToTeam_AB_unique" ON "_GithubAppToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_GithubAppToTeam_B_index" ON "_GithubAppToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_GitlabAppToTeam_AB_unique" ON "_GitlabAppToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_GitlabAppToTeam_B_index" ON "_GitlabAppToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_DestinationDockerToTeam_AB_unique" ON "_DestinationDockerToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_DestinationDockerToTeam_B_index" ON "_DestinationDockerToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_DatabaseToTeam_AB_unique" ON "_DatabaseToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_DatabaseToTeam_B_index" ON "_DatabaseToTeam"("B");---- CreateIndex-CREATE UNIQUE INDEX "_ServiceToTeam_AB_unique" ON "_ServiceToTeam"("A", "B");---- CreateIndex-CREATE INDEX "_ServiceToTeam_B_index" ON "_ServiceToTeam"("B");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220210104005_redis_aol/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220210104005_redis_aol/migration.sqldeleted file mode 100644index 8a7e41098f..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220210104005_redis_aol/migration.sql+++ /dev/null@@ -1,28 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Team" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "databaseId" TEXT,- "serviceId" TEXT-);-INSERT INTO "new_Team" ("createdAt", "databaseId", "id", "name", "serviceId", "updatedAt") SELECT "createdAt", "databaseId", "id", "name", "serviceId", "updatedAt" FROM "Team";-DROP TABLE "Team";-ALTER TABLE "new_Team" RENAME TO "Team";-CREATE TABLE "new_DatabaseSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "databaseId" TEXT NOT NULL,- "isPublic" BOOLEAN NOT NULL DEFAULT false,- "appendOnly" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "DatabaseSettings_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_DatabaseSettings" ("createdAt", "databaseId", "id", "isPublic", "updatedAt") SELECT "createdAt", "databaseId", "id", "isPublic", "updatedAt" FROM "DatabaseSettings";-DROP TABLE "DatabaseSettings";-ALTER TABLE "new_DatabaseSettings" RENAME TO "DatabaseSettings";-CREATE UNIQUE INDEX "DatabaseSettings_databaseId_key" ON "DatabaseSettings"("databaseId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sqldeleted file mode 100644index da4aa8e7cc..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220212142309_unique_secret_by_application/migration.sql+++ /dev/null@@ -1,11 +0,0 @@-/*- Warnings:-- - A unique constraint covering the columns `[name,applicationId]` on the table `Secret` will be added. If there are existing duplicate values, this will fail.--*/--- DropIndex-DROP INDEX "Secret_name_key";---- CreateIndex-CREATE UNIQUE INDEX "Secret_name_applicationId_key" ON "Secret"("name", "applicationId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220217211304_dualcerts/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220217211304_dualcerts/migration.sqldeleted file mode 100644index a6ea0a57df..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220217211304_dualcerts/migration.sql+++ /dev/null@@ -1,47 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("createdAt", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "createdAt", "debug", "id", "previews", "updatedAt") SELECT "applicationId", "createdAt", "debug", "id", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-CREATE TABLE "new_Service" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "type" TEXT,- "version" TEXT,- "destinationDockerId" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_Service" ("createdAt", "destinationDockerId", "fqdn", "id", "name", "type", "updatedAt", "version") SELECT "createdAt", "destinationDockerId", "fqdn", "id", "name", "type", "updatedAt", "version" FROM "Service";-DROP TABLE "Service";-ALTER TABLE "new_Service" RENAME TO "Service";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220219231255_prmr_secrets/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220219231255_prmr_secrets/migration.sqldeleted file mode 100644index 728fcae36f..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220219231255_prmr_secrets/migration.sql+++ /dev/null@@ -1,19 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Secret" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "isPRMRSecret" BOOLEAN NOT NULL DEFAULT false,- "isBuildSecret" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "applicationId" TEXT NOT NULL,- CONSTRAINT "Secret_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Secret" ("applicationId", "createdAt", "id", "isBuildSecret", "name", "updatedAt", "value") SELECT "applicationId", "createdAt", "id", "isBuildSecret", "name", "updatedAt", "value" FROM "Secret";-DROP TABLE "Secret";-ALTER TABLE "new_Secret" RENAME TO "Secret";-CREATE UNIQUE INDEX "Secret_name_applicationId_isPRMRSecret_key" ON "Secret"("name", "applicationId", "isPRMRSecret");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220220141136_public_portrange/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220220141136_public_portrange/migration.sqldeleted file mode 100644index 6423e97611..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220220141136_public_portrange/migration.sql+++ /dev/null@@ -1,20 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220301101928_proxyhash/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220301101928_proxyhash/migration.sqldeleted file mode 100644index 87845b38b8..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220301101928_proxyhash/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "proxyHash" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220304141408_service_secrets/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220304141408_service_secrets/migration.sqldeleted file mode 100644index baa0c3f546..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220304141408_service_secrets/migration.sql+++ /dev/null@@ -1,13 +0,0 @@--- CreateTable-CREATE TABLE "ServiceSecret" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "serviceId" TEXT NOT NULL,- CONSTRAINT "ServiceSecret_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "ServiceSecret_name_serviceId_key" ON "ServiceSecret"("name", "serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220311213422_autodeploy/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220311213422_autodeploy/migration.sqldeleted file mode 100644index d534d93726..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220311213422_autodeploy/migration.sql+++ /dev/null@@ -1,19 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt") SELECT "applicationId", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220320141424_phpmodules/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220320141424_phpmodules/migration.sqldeleted file mode 100644index 6a17ff8a34..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220320141424_phpmodules/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "phpModules" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220322135800_persistent_storage/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220322135800_persistent_storage/migration.sqldeleted file mode 100644index d26ae3f8be..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220322135800_persistent_storage/migration.sql+++ /dev/null@@ -1,18 +0,0 @@--- CreateTable-CREATE TABLE "ApplicationPersistentStorage" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "path" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationPersistentStorage_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_key" ON "ApplicationPersistentStorage"("applicationId");---- CreateIndex-CREATE UNIQUE INDEX "ApplicationPersistentStorage_path_key" ON "ApplicationPersistentStorage"("path");---- CreateIndex-CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_path_key" ON "ApplicationPersistentStorage"("applicationId", "path");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220327180323_ghost/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220327180323_ghost/migration.sqldeleted file mode 100644index 3c1cec36f5..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220327180323_ghost/migration.sql+++ /dev/null@@ -1,19 +0,0 @@--- CreateTable-CREATE TABLE "Ghost" (- "id" TEXT NOT NULL PRIMARY KEY,- "defaultEmail" TEXT NOT NULL,- "defaultPassword" TEXT NOT NULL,- "mariadbUser" TEXT NOT NULL,- "mariadbPassword" TEXT NOT NULL,- "mariadbRootUser" TEXT NOT NULL,- "mariadbRootUserPassword" TEXT NOT NULL,- "mariadbDatabase" TEXT,- "mariadbPublicPort" INTEGER,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Ghost_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Ghost_serviceId_key" ON "Ghost"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220402135305_python/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220402135305_python/migration.sqldeleted file mode 100644index 0c253d539e..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220402135305_python/migration.sql+++ /dev/null@@ -1,4 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "pythonModule" TEXT;-ALTER TABLE "Application" ADD COLUMN "pythonVariable" TEXT;-ALTER TABLE "Application" ADD COLUMN "pythonWSGI" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220402210645_meilisearch/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220402210645_meilisearch/migration.sqldeleted file mode 100644index 9e832b1074..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220402210645_meilisearch/migration.sql+++ /dev/null@@ -1,12 +0,0 @@--- CreateTable-CREATE TABLE "MeiliSearch" (- "id" TEXT NOT NULL PRIMARY KEY,- "masterKey" TEXT NOT NULL,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "MeiliSearch_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "MeiliSearch_serviceId_key" ON "MeiliSearch"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sqldeleted file mode 100644index 6c3c4b907a..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220405151428_wordpress_sftp/migration.sql+++ /dev/null@@ -1,29 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Wordpress" (- "id" TEXT NOT NULL PRIMARY KEY,- "extraConfig" TEXT,- "tablePrefix" TEXT,- "mysqlUser" TEXT NOT NULL,- "mysqlPassword" TEXT NOT NULL,- "mysqlRootUser" TEXT NOT NULL,- "mysqlRootUserPassword" TEXT NOT NULL,- "mysqlDatabase" TEXT,- "mysqlPublicPort" INTEGER,- "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,- "ftpUser" TEXT,- "ftpPassword" TEXT,- "ftpPublicPort" INTEGER,- "ftpHostKey" TEXT,- "ftpHostKeyPrivate" TEXT,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";-DROP TABLE "Wordpress";-ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";-CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sqldeleted file mode 100644index 9b645cc3b9..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220407220809_unique_storage_fix/migration.sql+++ /dev/null@@ -1,5 +0,0 @@--- DropIndex-DROP INDEX "ApplicationPersistentStorage_path_key";---- DropIndex-DROP INDEX "ApplicationPersistentStorage_applicationId_key";diff --git a/apps/trpc-experimental/server/prisma/migrations/20220408070805_added_expose_port/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220408070805_added_expose_port/migration.sqldeleted file mode 100644index a23afd64ac..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220408070805_added_expose_port/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "exposePort" INTEGER;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sqldeleted file mode 100644index f85fd31df6..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220418214843_persistent_storage_services/migration.sql+++ /dev/null@@ -1,12 +0,0 @@--- CreateTable-CREATE TABLE "ServicePersistentStorage" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "path" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ServicePersistentStorage_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_path_key" ON "ServicePersistentStorage"("serviceId", "path");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sqldeleted file mode 100644index ce32f0844f..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220419203408_multiply_dockerfile_locations/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "dockerFileLocation" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220420202031_deno_configurations/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220420202031_deno_configurations/migration.sqldeleted file mode 100644index 9d0e832dc7..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220420202031_deno_configurations/migration.sql+++ /dev/null@@ -1,3 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "denoMainFile" TEXT;-ALTER TABLE "Application" ADD COLUMN "denoOptions" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220420210057_branch_for_builds/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220420210057_branch_for_builds/migration.sqldeleted file mode 100644index 8cd8e653dd..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220420210057_branch_for_builds/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Build" ADD COLUMN "branch" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220425071132_umami/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220425071132_umami/migration.sqldeleted file mode 100644index 259fb76cd3..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220425071132_umami/migration.sql+++ /dev/null@@ -1,17 +0,0 @@--- CreateTable-CREATE TABLE "Umami" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "umamiAdminPassword" TEXT NOT NULL,- "hashSalt" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Umami_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Umami_serviceId_key" ON "Umami"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sqldeleted file mode 100644index a102973eef..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220425075326_auto_update_coolify/migration.sql+++ /dev/null@@ -1,22 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "proxyHash" TEXT,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220426125053_select_base_image/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220426125053_select_base_image/migration.sqldeleted file mode 100644index 37209d82fc..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220426125053_select_base_image/migration.sql+++ /dev/null@@ -1,3 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "baseBuildImage" TEXT;-ALTER TABLE "Application" ADD COLUMN "baseImage" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220427133656_hasura/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220427133656_hasura/migration.sqldeleted file mode 100644index c679ad0fb5..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220427133656_hasura/migration.sql+++ /dev/null@@ -1,16 +0,0 @@--- CreateTable-CREATE TABLE "Hasura" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "graphQLAdminPassword" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Hasura_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Hasura_serviceId_key" ON "Hasura"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220429202516_fider/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220429202516_fider/migration.sqldeleted file mode 100644index a6d31a24d3..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220429202516_fider/migration.sql+++ /dev/null@@ -1,25 +0,0 @@--- CreateTable-CREATE TABLE "Fider" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "jwtSecret" TEXT NOT NULL,- "emailNoreply" TEXT,- "emailMailgunApiKey" TEXT,- "emailMailgunDomain" TEXT,- "emailMailgunRegion" TEXT,- "emailSmtpHost" TEXT,- "emailSmtpPort" INTEGER,- "emailSmtpUser" TEXT,- "emailSmtpPassword" TEXT,- "emailSmtpEnableStartTls" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Fider_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Fider_serviceId_key" ON "Fider"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220429214112_fider_correction/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220429214112_fider_correction/migration.sqldeleted file mode 100644index 429524f725..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220429214112_fider_correction/migration.sql+++ /dev/null@@ -1,29 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Fider" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "jwtSecret" TEXT NOT NULL,- "emailNoreply" TEXT,- "emailMailgunApiKey" TEXT,- "emailMailgunDomain" TEXT,- "emailMailgunRegion" TEXT NOT NULL DEFAULT 'EU',- "emailSmtpHost" TEXT,- "emailSmtpPort" INTEGER,- "emailSmtpUser" TEXT,- "emailSmtpPassword" TEXT,- "emailSmtpEnableStartTls" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Fider_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Fider" ("createdAt", "emailMailgunApiKey", "emailMailgunDomain", "emailMailgunRegion", "emailNoreply", "emailSmtpEnableStartTls", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUser", "id", "jwtSecret", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "serviceId", "updatedAt") SELECT "createdAt", "emailMailgunApiKey", "emailMailgunDomain", coalesce("emailMailgunRegion", 'EU') AS "emailMailgunRegion", "emailNoreply", "emailSmtpEnableStartTls", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUser", "id", "jwtSecret", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "serviceId", "updatedAt" FROM "Fider";-DROP TABLE "Fider";-ALTER TABLE "new_Fider" RENAME TO "Fider";-CREATE UNIQUE INDEX "Fider_serviceId_key" ON "Fider"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sqldeleted file mode 100644index cf57379cac..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220430111953_ssl_dns_check_settings/migration.sql+++ /dev/null@@ -1,23 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "proxyHash" TEXT,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sqldeleted file mode 100644index fdbab57131..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220430124553_expose_port_for_services/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Service" ADD COLUMN "exposePort" INTEGER;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sqldeleted file mode 100644index 6c8c28ff4c..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220509130501_custom_plausible_script/migration.sql+++ /dev/null@@ -1,24 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_PlausibleAnalytics" (- "id" TEXT NOT NULL PRIMARY KEY,- "email" TEXT,- "username" TEXT,- "password" TEXT NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "secretKeyBase" TEXT,- "scriptName" TEXT NOT NULL DEFAULT 'plausible.js',- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "PlausibleAnalytics_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_PlausibleAnalytics" ("createdAt", "email", "id", "password", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "serviceId", "updatedAt", "username") SELECT "createdAt", "email", "id", "password", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "serviceId", "updatedAt", "username" FROM "PlausibleAnalytics";-DROP TABLE "PlausibleAnalytics";-ALTER TABLE "new_PlausibleAnalytics" RENAME TO "PlausibleAnalytics";-CREATE UNIQUE INDEX "PlausibleAnalytics_serviceId_key" ON "PlausibleAnalytics"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sqldeleted file mode 100644index 5a1cd301cd..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220510081125_custom_wordpress_db/migration.sql+++ /dev/null@@ -1,32 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Wordpress" (- "id" TEXT NOT NULL PRIMARY KEY,- "extraConfig" TEXT,- "tablePrefix" TEXT,- "ownMysql" BOOLEAN NOT NULL DEFAULT false,- "mysqlHost" TEXT,- "mysqlPort" INTEGER,- "mysqlUser" TEXT NOT NULL,- "mysqlPassword" TEXT NOT NULL,- "mysqlRootUser" TEXT NOT NULL,- "mysqlRootUserPassword" TEXT NOT NULL,- "mysqlDatabase" TEXT,- "mysqlPublicPort" INTEGER,- "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,- "ftpUser" TEXT,- "ftpPassword" TEXT,- "ftpPublicPort" INTEGER,- "ftpHostKey" TEXT,- "ftpHostKeyPrivate" TEXT,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlPassword", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";-DROP TABLE "Wordpress";-ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";-CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220517081328_traefik/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220517081328_traefik/migration.sqldeleted file mode 100644index a83281fa46..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220517081328_traefik/migration.sql+++ /dev/null@@ -1,24 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "proxyHash" TEXT,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "createdAt", "dualCerts", "fqdn", "id", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sqldeleted file mode 100644index a447128648..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220519095648_minio_apifqdn/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Minio" ADD COLUMN "apiFqdn" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sqldeleted file mode 100644index 2776d1b883..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220708132655_deployment_type_for_applications/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "deploymentType" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sqldeleted file mode 100644index f702291b22..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220712083523_custom_port_git_sources/migration.sql+++ /dev/null@@ -1,24 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_GitSource" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "type" TEXT,- "apiUrl" TEXT,- "htmlUrl" TEXT,- "customPort" INTEGER NOT NULL DEFAULT 22,- "organization" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";-DROP TABLE "GitSource";-ALTER TABLE "new_GitSource" RENAME TO "GitSource";-CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");-CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220718083646_moodle/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220718083646_moodle/migration.sqldeleted file mode 100644index eaed14a4a8..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220718083646_moodle/migration.sql+++ /dev/null@@ -1,20 +0,0 @@--- CreateTable-CREATE TABLE "Moodle" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "defaultUsername" TEXT NOT NULL,- "defaultPassword" TEXT NOT NULL,- "defaultEmail" TEXT NOT NULL,- "mariadbUser" TEXT NOT NULL,- "mariadbPassword" TEXT NOT NULL,- "mariadbRootUser" TEXT NOT NULL,- "mariadbRootUserPassword" TEXT NOT NULL,- "mariadbDatabase" TEXT NOT NULL,- "mariadbPublicPort" INTEGER,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Moodle_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Moodle_serviceId_key" ON "Moodle"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sqldeleted file mode 100644index e80df22f23..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220718114551_remote_docker_engine/migration.sql+++ /dev/null@@ -1,21 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_DestinationDocker" (- "id" TEXT NOT NULL PRIMARY KEY,- "network" TEXT NOT NULL,- "name" TEXT NOT NULL,- "engine" TEXT,- "remoteEngine" BOOLEAN NOT NULL DEFAULT false,- "remoteIpAddress" TEXT,- "remoteUser" TEXT,- "remotePort" INTEGER,- "isCoolifyProxyUsed" BOOLEAN DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_DestinationDocker" ("createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "updatedAt") SELECT "createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "updatedAt" FROM "DestinationDocker";-DROP TABLE "DestinationDocker";-ALTER TABLE "new_DestinationDocker" RENAME TO "DestinationDocker";-CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220721084020_ssh_key/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220721084020_ssh_key/migration.sqldeleted file mode 100644index 8323af409b..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220721084020_ssh_key/migration.sql+++ /dev/null@@ -1,33 +0,0 @@--- CreateTable-CREATE TABLE "SshKey" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "privateKey" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);---- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_DestinationDocker" (- "id" TEXT NOT NULL PRIMARY KEY,- "network" TEXT NOT NULL,- "name" TEXT NOT NULL,- "engine" TEXT,- "remoteEngine" BOOLEAN NOT NULL DEFAULT false,- "remoteIpAddress" TEXT,- "remoteUser" TEXT,- "remotePort" INTEGER,- "remoteVerified" BOOLEAN NOT NULL DEFAULT false,- "isCoolifyProxyUsed" BOOLEAN DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "sshKeyId" TEXT,- CONSTRAINT "DestinationDocker_sshKeyId_fkey" FOREIGN KEY ("sshKeyId") REFERENCES "SshKey" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_DestinationDocker" ("createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "remoteIpAddress", "remotePort", "remoteUser", "updatedAt") SELECT "createdAt", "engine", "id", "isCoolifyProxyUsed", "name", "network", "remoteEngine", "remoteIpAddress", "remotePort", "remoteUser", "updatedAt" FROM "DestinationDocker";-DROP TABLE "DestinationDocker";-ALTER TABLE "new_DestinationDocker" RENAME TO "DestinationDocker";-CREATE UNIQUE INDEX "DestinationDocker_network_key" ON "DestinationDocker"("network");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220722203927_ipaddress/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220722203927_ipaddress/migration.sqldeleted file mode 100644index 21d45ada32..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220722203927_ipaddress/migration.sql+++ /dev/null@@ -1,3 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "ipv4" TEXT;-ALTER TABLE "Setting" ADD COLUMN "ipv6" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220725191205_architecture/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220725191205_architecture/migration.sqldeleted file mode 100644index 2e0ff3e011..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220725191205_architecture/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "arch" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sqldeleted file mode 100644index e6e47b1978..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220726121333_fix_ssh_key/migration.sql+++ /dev/null@@ -1,16 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_SshKey" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "privateKey" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "teamId" TEXT,- CONSTRAINT "SshKey_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_SshKey" ("createdAt", "id", "name", "privateKey", "updatedAt") SELECT "createdAt", "id", "name", "privateKey", "updatedAt" FROM "SshKey";-DROP TABLE "SshKey";-ALTER TABLE "new_SshKey" RENAME TO "SshKey";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sqldeleted file mode 100644index f1eab666b4..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220806090621_fqdn_not_unique_anymore/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- DropIndex-DROP INDEX "Application_fqdn_key";diff --git a/apps/trpc-experimental/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sqldeleted file mode 100644index ae4c39846a..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220806102340_rde_ssh_local_port/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "DestinationDocker" ADD COLUMN "sshLocalPort" INTEGER;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220815092230_glitchtip/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220815092230_glitchtip/migration.sqldeleted file mode 100644index dba98ab822..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220815092230_glitchtip/migration.sql+++ /dev/null@@ -1,30 +0,0 @@--- CreateTable-CREATE TABLE "GlitchTip" (- "id" TEXT NOT NULL PRIMARY KEY,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "secretKeyBase" TEXT,- "defaultEmail" TEXT NOT NULL,- "defaultUsername" TEXT NOT NULL,- "defaultPassword" TEXT NOT NULL,- "defaultEmailFrom" TEXT NOT NULL DEFAULT '[email protected]',- "emailSmtpHost" TEXT DEFAULT 'domain.tdl',- "emailSmtpPort" INTEGER DEFAULT 25,- "emailSmtpUser" TEXT,- "emailSmtpPassword" TEXT,- "emailSmtpUseTls" BOOLEAN DEFAULT false,- "emailSmtpUseSsl" BOOLEAN DEFAULT false,- "emailBackend" TEXT,- "mailgunApiKey" TEXT,- "sendgridApiKey" TEXT,- "enableOpenUserRegistration" BOOLEAN NOT NULL DEFAULT true,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "GlitchTip_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "GlitchTip_serviceId_key" ON "GlitchTip"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220815133844_appwrite/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220815133844_appwrite/migration.sqldeleted file mode 100644index ec61dc434e..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220815133844_appwrite/migration.sql+++ /dev/null@@ -1,22 +0,0 @@--- CreateTable-CREATE TABLE "Appwrite" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "opensslKeyV1" TEXT NOT NULL,- "executorSecret" TEXT NOT NULL,- "redisPassword" TEXT NOT NULL,- "mariadbHost" TEXT,- "mariadbPort" INTEGER NOT NULL DEFAULT 3306,- "mariadbUser" TEXT NOT NULL,- "mariadbPassword" TEXT NOT NULL,- "mariadbRootUser" TEXT NOT NULL,- "mariadbRootUserPassword" TEXT NOT NULL,- "mariadbDatabase" TEXT NOT NULL,- "mariadbPublicPort" INTEGER,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Appwrite_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Appwrite_serviceId_key" ON "Appwrite"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220816133447_bot_deployments/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220816133447_bot_deployments/migration.sqldeleted file mode 100644index 3d6d92d0e6..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220816133447_bot_deployments/migration.sql+++ /dev/null@@ -1,20 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "isBot" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sqldeleted file mode 100644index 03588b549c..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220817082342_custom_dns_servers/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "DNSServers" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220818093615_public_repositories/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220818093615_public_repositories/migration.sqldeleted file mode 100644index 7f08c29fd9..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220818093615_public_repositories/migration.sql+++ /dev/null@@ -1,42 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_GitSource" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "forPublic" BOOLEAN NOT NULL DEFAULT false,- "type" TEXT,- "apiUrl" TEXT,- "htmlUrl" TEXT,- "customPort" INTEGER NOT NULL DEFAULT 22,- "organization" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "customPort", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "customPort", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";-DROP TABLE "GitSource";-ALTER TABLE "new_GitSource" RENAME TO "GitSource";-CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");-CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "isBot" BOOLEAN NOT NULL DEFAULT false,- "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220823070532_service_searxng/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220823070532_service_searxng/migration.sqldeleted file mode 100644index 81ecc81c83..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220823070532_service_searxng/migration.sql+++ /dev/null@@ -1,13 +0,0 @@--- CreateTable-CREATE TABLE "Searxng" (- "id" TEXT NOT NULL PRIMARY KEY,- "secretKey" TEXT NOT NULL,- "redisPassword" TEXT NOT NULL,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Searxng_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Searxng_serviceId_key" ON "Searxng"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sqldeleted file mode 100644index 1535c2bf7c..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220825064811_concurrent_build_settings/migration.sql+++ /dev/null@@ -1,29 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "proxyHash" TEXT,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "DNSServers" TEXT,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1-);-INSERT INTO "new_Setting" ("DNSServers", "arch", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "DNSServers", "arch", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sqldeleted file mode 100644index 78c51fc156..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220825072007_build_queue_improvements/migration.sql+++ /dev/null@@ -1,24 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Build" (- "id" TEXT NOT NULL PRIMARY KEY,- "type" TEXT NOT NULL,- "applicationId" TEXT,- "destinationDockerId" TEXT,- "gitSourceId" TEXT,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- "commit" TEXT,- "pullmergeRequestId" TEXT,- "forceRebuild" BOOLEAN NOT NULL DEFAULT false,- "sourceBranch" TEXT,- "branch" TEXT,- "status" TEXT DEFAULT 'queued',- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Build" ("applicationId", "branch", "commit", "createdAt", "destinationDockerId", "gitSourceId", "githubAppId", "gitlabAppId", "id", "status", "type", "updatedAt") SELECT "applicationId", "branch", "commit", "createdAt", "destinationDockerId", "gitSourceId", "githubAppId", "gitlabAppId", "id", "status", "type", "updatedAt" FROM "Build";-DROP TABLE "Build";-ALTER TABLE "new_Build" RENAME TO "Build";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220831095714_service_weblate/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220831095714_service_weblate/migration.sqldeleted file mode 100644index c985b4ae25..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220831095714_service_weblate/migration.sql+++ /dev/null@@ -1,18 +0,0 @@--- CreateTable-CREATE TABLE "Weblate" (- "id" TEXT NOT NULL PRIMARY KEY,- "adminPassword" TEXT NOT NULL,- "postgresqlHost" TEXT NOT NULL,- "postgresqlPort" INTEGER NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Weblate_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Weblate_serviceId_key" ON "Weblate"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220902115640_service_taiga/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220902115640_service_taiga/migration.sqldeleted file mode 100644index 3035dd8efe..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220902115640_service_taiga/migration.sql+++ /dev/null@@ -1,23 +0,0 @@--- CreateTable-CREATE TABLE "Taiga" (- "id" TEXT NOT NULL PRIMARY KEY,- "secretKey" TEXT NOT NULL,- "erlangSecret" TEXT NOT NULL,- "djangoAdminPassword" TEXT NOT NULL,- "djangoAdminUser" TEXT NOT NULL,- "rabbitMQUser" TEXT NOT NULL,- "rabbitMQPassword" TEXT NOT NULL,- "postgresqlHost" TEXT NOT NULL,- "postgresqlPort" INTEGER NOT NULL,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Taiga_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "Taiga_serviceId_key" ON "Taiga"("serviceId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220905062318_database_branching/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220905062318_database_branching/migration.sqldeleted file mode 100644index d828a4c667..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220905062318_database_branching/migration.sql+++ /dev/null@@ -1,22 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "isBot" BOOLEAN NOT NULL DEFAULT false,- "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,- "isDBBranching" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isPublicRepository", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isPublicRepository", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220905113241_prisma_migration/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220905113241_prisma_migration/migration.sqldeleted file mode 100644index 324bcfff0c..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220905113241_prisma_migration/migration.sql+++ /dev/null@@ -1,20 +0,0 @@-/*- Warnings:-- - You are about to alter the column `time` on the `BuildLog` table. The data in that column could be lost. The data in that column will be cast from `Int` to `BigInt`.--*/--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_BuildLog" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT,- "buildId" TEXT NOT NULL,- "line" TEXT NOT NULL,- "time" BIGINT NOT NULL-);-INSERT INTO "new_BuildLog" ("applicationId", "buildId", "id", "line", "time") SELECT "applicationId", "buildId", "id", "line", "time" FROM "BuildLog";-DROP TABLE "BuildLog";-ALTER TABLE "new_BuildLog" RENAME TO "BuildLog";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220905115321_application_connected_database/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220905115321_application_connected_database/migration.sqldeleted file mode 100644index 576c23bdf3..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220905115321_application_connected_database/migration.sql+++ /dev/null@@ -1,20 +0,0 @@--- CreateTable-CREATE TABLE "ApplicationConnectedDatabase" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "databaseId" TEXT,- "hostedDatabaseType" TEXT,- "hostedDatabaseHost" TEXT,- "hostedDatabasePort" INTEGER,- "hostedDatabaseName" TEXT,- "hostedDatabaseUser" TEXT,- "hostedDatabasePassword" TEXT,- "hostedDatabaseDBName" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationConnectedDatabase_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "ApplicationConnectedDatabase_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "ApplicationConnectedDatabase_applicationId_key" ON "ApplicationConnectedDatabase"("applicationId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sqldeleted file mode 100644index 05fb3e2855..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220906120112_enable_api_debug_logging/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "isAPIDebuggingEnabled" BOOLEAN DEFAULT false;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220907092244_database_secrets/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220907092244_database_secrets/migration.sqldeleted file mode 100644index 53ff2d19ed..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220907092244_database_secrets/migration.sql+++ /dev/null@@ -1,13 +0,0 @@--- CreateTable-CREATE TABLE "DatabaseSecret" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "databaseId" TEXT NOT NULL,- CONSTRAINT "DatabaseSecret_databaseId_fkey" FOREIGN KEY ("databaseId") REFERENCES "Database" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "DatabaseSecret_name_databaseId_key" ON "DatabaseSecret"("name", "databaseId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220913092100_preview_applications/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220913092100_preview_applications/migration.sqldeleted file mode 100644index 0ec1aafa09..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220913092100_preview_applications/migration.sql+++ /dev/null@@ -1,18 +0,0 @@--- AlterTable-ALTER TABLE "Build" ADD COLUMN "previewApplicationId" TEXT;---- CreateTable-CREATE TABLE "PreviewApplication" (- "id" TEXT NOT NULL PRIMARY KEY,- "pullmergeRequestId" TEXT NOT NULL,- "sourceBranch" TEXT NOT NULL,- "isRandomDomain" BOOLEAN NOT NULL DEFAULT false,- "customDomain" TEXT,- "applicationId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "PreviewApplication_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "PreviewApplication_applicationId_key" ON "PreviewApplication"("applicationId");diff --git a/apps/trpc-experimental/server/prisma/migrations/20220922064605_custom_certificates/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220922064605_custom_certificates/migration.sqldeleted file mode 100644index 8049130388..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220922064605_custom_certificates/migration.sql+++ /dev/null@@ -1,10 +0,0 @@--- CreateTable-CREATE TABLE "Certificate" (- "id" TEXT NOT NULL PRIMARY KEY,- "key" TEXT NOT NULL,- "cert" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "teamId" TEXT,- CONSTRAINT "Certificate_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);diff --git a/apps/trpc-experimental/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sqldeleted file mode 100644index b9261a955f..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220923122227_custom_ssl_for_applications/migration.sql+++ /dev/null@@ -1,23 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "isBot" BOOLEAN NOT NULL DEFAULT false,- "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,- "isDBBranching" BOOLEAN NOT NULL DEFAULT false,- "isCustomSSL" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isDBBranching", "isPublicRepository", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isDBBranching", "isPublicRepository", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sqldeleted file mode 100644index a3657504dc..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20220928083348_system_wide_git_sources/migration.sql+++ /dev/null@@ -1,26 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_GitSource" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "forPublic" BOOLEAN NOT NULL DEFAULT false,- "type" TEXT,- "apiUrl" TEXT,- "htmlUrl" TEXT,- "customPort" INTEGER NOT NULL DEFAULT 22,- "organization" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "githubAppId" TEXT,- "gitlabAppId" TEXT,- "isSystemWide" BOOLEAN NOT NULL DEFAULT false,- CONSTRAINT "GitSource_gitlabAppId_fkey" FOREIGN KEY ("gitlabAppId") REFERENCES "GitlabApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "GitSource_githubAppId_fkey" FOREIGN KEY ("githubAppId") REFERENCES "GithubApp" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_GitSource" ("apiUrl", "createdAt", "customPort", "forPublic", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt") SELECT "apiUrl", "createdAt", "customPort", "forPublic", "githubAppId", "gitlabAppId", "htmlUrl", "id", "name", "organization", "type", "updatedAt" FROM "GitSource";-DROP TABLE "GitSource";-ALTER TABLE "new_GitSource" RENAME TO "GitSource";-CREATE UNIQUE INDEX "GitSource_githubAppId_key" ON "GitSource"("githubAppId");-CREATE UNIQUE INDEX "GitSource_gitlabAppId_key" ON "GitSource"("gitlabAppId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sqldeleted file mode 100644index 031f842cb2..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221002084246_no_unique_appid_on_previews/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- DropIndex-DROP INDEX "PreviewApplication_applicationId_key";diff --git a/apps/trpc-experimental/server/prisma/migrations/20221002091630_forked_previews/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221002091630_forked_previews/migration.sqldeleted file mode 100644index 2312c011bb..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221002091630_forked_previews/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Build" ADD COLUMN "sourceRepository" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sqldeleted file mode 100644index bb93e1aaf2..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221005120323_initial_docker_compose/migration.sql+++ /dev/null@@ -1,3 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "dockerComposeFile" TEXT;-ALTER TABLE "Application" ADD COLUMN "dockerComposeFileLocation" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sqldeleted file mode 100644index e7368dc1af..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221005132352_docker_compose_configuration/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "dockerComposeConfiguration" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sqldeleted file mode 100644index 8370174356..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221017134342_standardized_service_configs/migration.sql+++ /dev/null@@ -1,13 +0,0 @@--- CreateTable-CREATE TABLE "ServiceSetting" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ServiceSetting_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);---- CreateIndex-CREATE UNIQUE INDEX "ServiceSetting_serviceId_name_key" ON "ServiceSetting"("serviceId", "name");diff --git a/apps/trpc-experimental/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sqldeleted file mode 100644index c7b935eb74..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221018090939_service_peristent_volumes_predefined/migration.sql+++ /dev/null@@ -1,19 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ServicePersistentStorage" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "path" TEXT NOT NULL,- "volumeName" TEXT,- "predefined" BOOLEAN NOT NULL DEFAULT false,- "containerId" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ServicePersistentStorage_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ServicePersistentStorage" ("createdAt", "id", "path", "serviceId", "updatedAt") SELECT "createdAt", "id", "path", "serviceId", "updatedAt" FROM "ServicePersistentStorage";-DROP TABLE "ServicePersistentStorage";-ALTER TABLE "new_ServicePersistentStorage" RENAME TO "ServicePersistentStorage";-CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_path_key" ON "ServicePersistentStorage"("serviceId", "path");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sqldeleted file mode 100644index b2eddcfd9b..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221021112429_serivce_settings_extended/migration.sql+++ /dev/null@@ -1,24 +0,0 @@-/*- Warnings:-- - Added the required column `variableName` to the `ServiceSetting` table without a default value. This is not possible if the table is not empty.--*/--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ServiceSetting" (- "id" TEXT NOT NULL PRIMARY KEY,- "serviceId" TEXT NOT NULL,- "name" TEXT NOT NULL,- "value" TEXT NOT NULL,- "variableName" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ServiceSetting_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ServiceSetting" ("createdAt", "id", "name", "serviceId", "updatedAt", "value") SELECT "createdAt", "id", "name", "serviceId", "updatedAt", "value" FROM "ServiceSetting";-DROP TABLE "ServiceSetting";-ALTER TABLE "new_ServiceSetting" RENAME TO "ServiceSetting";-CREATE UNIQUE INDEX "ServiceSetting_serviceId_name_key" ON "ServiceSetting"("serviceId", "name");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221021185630_service_template_version/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221021185630_service_template_version/migration.sqldeleted file mode 100644index f716a2340e..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221021185630_service_template_version/migration.sql+++ /dev/null@@ -1,21 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Service" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "exposePort" INTEGER,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "type" TEXT,- "version" TEXT,- "templateVersion" TEXT NOT NULL DEFAULT '0.0.0',- "destinationDockerId" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Service_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_Service" ("createdAt", "destinationDockerId", "dualCerts", "exposePort", "fqdn", "id", "name", "type", "updatedAt", "version") SELECT "createdAt", "destinationDockerId", "dualCerts", "exposePort", "fqdn", "id", "name", "type", "updatedAt", "version" FROM "Service";-DROP TABLE "Service";-ALTER TABLE "new_Service" RENAME TO "Service";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sqldeleted file mode 100644index dae80a76a9..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221026115123_service_persistent_unique/migration.sql+++ /dev/null@@ -1,11 +0,0 @@-/*- Warnings:-- - A unique constraint covering the columns `[serviceId,containerId,path]` on the table `ServicePersistentStorage` will be added. If there are existing duplicate values, this will fail.--*/--- DropIndex-DROP INDEX "ServicePersistentStorage_serviceId_path_key";---- CreateIndex-CREATE UNIQUE INDEX "ServicePersistentStorage_serviceId_containerId_path_key" ON "ServicePersistentStorage"("serviceId", "containerId", "path");diff --git a/apps/trpc-experimental/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sqldeleted file mode 100644index 217039d97b..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221028074301_wordpress_optional_fields/migration.sql+++ /dev/null@@ -1,32 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Wordpress" (- "id" TEXT NOT NULL PRIMARY KEY,- "extraConfig" TEXT,- "tablePrefix" TEXT,- "ownMysql" BOOLEAN NOT NULL DEFAULT false,- "mysqlHost" TEXT,- "mysqlPort" INTEGER,- "mysqlUser" TEXT,- "mysqlPassword" TEXT,- "mysqlRootUser" TEXT,- "mysqlRootUserPassword" TEXT,- "mysqlDatabase" TEXT,- "mysqlPublicPort" INTEGER,- "ftpEnabled" BOOLEAN NOT NULL DEFAULT false,- "ftpUser" TEXT,- "ftpPassword" TEXT,- "ftpPublicPort" INTEGER,- "ftpHostKey" TEXT,- "ftpHostKeyPrivate" TEXT,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "Wordpress_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Wordpress" ("createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlHost", "mysqlPassword", "mysqlPort", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "ownMysql", "serviceId", "tablePrefix", "updatedAt") SELECT "createdAt", "extraConfig", "ftpEnabled", "ftpHostKey", "ftpHostKeyPrivate", "ftpPassword", "ftpPublicPort", "ftpUser", "id", "mysqlDatabase", "mysqlHost", "mysqlPassword", "mysqlPort", "mysqlPublicPort", "mysqlRootUser", "mysqlRootUserPassword", "mysqlUser", "ownMysql", "serviceId", "tablePrefix", "updatedAt" FROM "Wordpress";-DROP TABLE "Wordpress";-ALTER TABLE "new_Wordpress" RENAME TO "Wordpress";-CREATE UNIQUE INDEX "Wordpress_serviceId_key" ON "Wordpress"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sqldeleted file mode 100644index 8584fe25c7..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221104092223_default_redirect_proxy/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "proxyDefaultRedirect" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sqldeleted file mode 100644index 6913c8b001..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221114093217_application_storage_path_migration/migration.sql+++ /dev/null@@ -1,45 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "proxyPassword" TEXT NOT NULL,- "proxyUser" TEXT NOT NULL,- "proxyHash" TEXT,- "proxyDefaultRedirect" TEXT,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "DNSServers" TEXT,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false-);-INSERT INTO "new_Setting" ("DNSServers", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "proxyHash", "proxyPassword", "proxyUser", "updatedAt") SELECT "DNSServers", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "proxyHash", "proxyPassword", "proxyUser", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-CREATE TABLE "new_ApplicationPersistentStorage" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "path" TEXT NOT NULL,- "oldPath" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationPersistentStorage_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationPersistentStorage" ("applicationId", "createdAt", "id", "path", "updatedAt") SELECT "applicationId", "createdAt", "id", "path", "updatedAt" FROM "ApplicationPersistentStorage";-DROP TABLE "ApplicationPersistentStorage";-ALTER TABLE "new_ApplicationPersistentStorage" RENAME TO "ApplicationPersistentStorage";-CREATE UNIQUE INDEX "ApplicationPersistentStorage_applicationId_path_key" ON "ApplicationPersistentStorage"("applicationId", "path");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sqldeleted file mode 100644index 1acf261a57..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221123122143_remote_haproxy_from_db/migration.sql+++ /dev/null@@ -1,37 +0,0 @@-/*- Warnings:-- - You are about to drop the column `proxyHash` on the `Setting` table. All the data in the column will be lost.- - You are about to drop the column `proxyPassword` on the `Setting` table. All the data in the column will be lost.- - You are about to drop the column `proxyUser` on the `Setting` table. All the data in the column will be lost.--*/--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "DNSServers" TEXT,- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,- "proxyDefaultRedirect" TEXT,- "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221123133429_docker_registries/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221123133429_docker_registries/migration.sqldeleted file mode 100644index abebc55143..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221123133429_docker_registries/migration.sql+++ /dev/null@@ -1,59 +0,0 @@--- CreateTable-CREATE TABLE "DockerRegistry" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "url" TEXT NOT NULL,- "username" TEXT,- "password" TEXT,- "isSystemWide" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "teamId" TEXT,- CONSTRAINT "DockerRegistry_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);---- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Application" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "repository" TEXT,- "configHash" TEXT,- "branch" TEXT,- "buildPack" TEXT,- "projectId" INTEGER,- "port" INTEGER,- "exposePort" INTEGER,- "installCommand" TEXT,- "buildCommand" TEXT,- "startCommand" TEXT,- "baseDirectory" TEXT,- "publishDirectory" TEXT,- "deploymentType" TEXT,- "phpModules" TEXT,- "pythonWSGI" TEXT,- "pythonModule" TEXT,- "pythonVariable" TEXT,- "dockerFileLocation" TEXT,- "denoMainFile" TEXT,- "denoOptions" TEXT,- "dockerComposeFile" TEXT,- "dockerComposeFileLocation" TEXT,- "dockerComposeConfiguration" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "destinationDockerId" TEXT,- "gitSourceId" TEXT,- "baseImage" TEXT,- "baseBuildImage" TEXT,- "dockerRegistryId" TEXT NOT NULL DEFAULT '0',- CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "Application_dockerRegistryId_fkey" FOREIGN KEY ("dockerRegistryId") REFERENCES "DockerRegistry" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_Application" ("baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "exposePort", "fqdn", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt") SELECT "baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "exposePort", "fqdn", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt" FROM "Application";-DROP TABLE "Application";-ALTER TABLE "new_Application" RENAME TO "Application";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221128104158_do_not_track/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221128104158_do_not_track/migration.sqldeleted file mode 100644index 9cf26d8a80..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221128104158_do_not_track/migration.sql+++ /dev/null@@ -1,30 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "DNSServers" TEXT,- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,- "proxyDefaultRedirect" TEXT,- "doNotTrack" BOOLEAN NOT NULL DEFAULT false,- "isAPIDebuggingEnabled" BOOLEAN DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221128104718_fix_defaults/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221128104718_fix_defaults/migration.sqldeleted file mode 100644index c1152cdc35..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221128104718_fix_defaults/migration.sql+++ /dev/null@@ -1,60 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "DNSServers" TEXT,- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,- "proxyDefaultRedirect" TEXT,- "doNotTrack" BOOLEAN NOT NULL DEFAULT false,- "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT false,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", coalesce("isAPIDebuggingEnabled", false) AS "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-CREATE TABLE "new_GlitchTip" (- "id" TEXT NOT NULL PRIMARY KEY,- "postgresqlUser" TEXT NOT NULL,- "postgresqlPassword" TEXT NOT NULL,- "postgresqlDatabase" TEXT NOT NULL,- "postgresqlPublicPort" INTEGER,- "secretKeyBase" TEXT,- "defaultEmail" TEXT NOT NULL,- "defaultUsername" TEXT NOT NULL,- "defaultPassword" TEXT NOT NULL,- "defaultEmailFrom" TEXT NOT NULL DEFAULT '[email protected]',- "emailSmtpHost" TEXT DEFAULT 'domain.tdl',- "emailSmtpPort" INTEGER DEFAULT 25,- "emailSmtpUser" TEXT,- "emailSmtpPassword" TEXT,- "emailSmtpUseTls" BOOLEAN NOT NULL DEFAULT false,- "emailSmtpUseSsl" BOOLEAN NOT NULL DEFAULT false,- "emailBackend" TEXT,- "mailgunApiKey" TEXT,- "sendgridApiKey" TEXT,- "enableOpenUserRegistration" BOOLEAN NOT NULL DEFAULT true,- "serviceId" TEXT NOT NULL,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "GlitchTip_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_GlitchTip" ("createdAt", "defaultEmail", "defaultEmailFrom", "defaultPassword", "defaultUsername", "emailBackend", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", "emailSmtpUseSsl", "emailSmtpUseTls", "emailSmtpUser", "enableOpenUserRegistration", "id", "mailgunApiKey", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "sendgridApiKey", "serviceId", "updatedAt") SELECT "createdAt", "defaultEmail", "defaultEmailFrom", "defaultPassword", "defaultUsername", "emailBackend", "emailSmtpHost", "emailSmtpPassword", "emailSmtpPort", coalesce("emailSmtpUseSsl", false) AS "emailSmtpUseSsl", coalesce("emailSmtpUseTls", false) AS "emailSmtpUseTls", "emailSmtpUser", "enableOpenUserRegistration", "id", "mailgunApiKey", "postgresqlDatabase", "postgresqlPassword", "postgresqlPublicPort", "postgresqlUser", "secretKeyBase", "sendgridApiKey", "serviceId", "updatedAt" FROM "GlitchTip";-DROP TABLE "GlitchTip";-ALTER TABLE "new_GlitchTip" RENAME TO "GlitchTip";-CREATE UNIQUE INDEX "GlitchTip_serviceId_key" ON "GlitchTip"("serviceId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221128105615_custom_sentry/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221128105615_custom_sentry/migration.sqldeleted file mode 100644index 00857eb0d5..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221128105615_custom_sentry/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Setting" ADD COLUMN "sentryDSN" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221129081832_fix_defaults/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221129081832_fix_defaults/migration.sqldeleted file mode 100644index 96f6de3fb7..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221129081832_fix_defaults/migration.sql+++ /dev/null@@ -1,31 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "DNSServers" TEXT NOT NULL DEFAULT '1.1.1.1,8.8.8.8',- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,- "proxyDefaultRedirect" TEXT,- "doNotTrack" BOOLEAN NOT NULL DEFAULT false,- "sentryDSN" TEXT,- "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT true,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "sentryDSN", "updatedAt") SELECT coalesce("DNSServers", '1.1.1.1,8.8.8.8') AS "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "proxyDefaultRedirect", "sentryDSN", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221129121702_preview_separator/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221129121702_preview_separator/migration.sqldeleted file mode 100644index e0d64cdc8c..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221129121702_preview_separator/migration.sql+++ /dev/null@@ -1,33 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_Setting" (- "id" TEXT NOT NULL PRIMARY KEY,- "fqdn" TEXT,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "minPort" INTEGER NOT NULL DEFAULT 9000,- "maxPort" INTEGER NOT NULL DEFAULT 9100,- "DNSServers" TEXT NOT NULL DEFAULT '1.1.1.1,8.8.8.8',- "ipv4" TEXT,- "ipv6" TEXT,- "arch" TEXT,- "concurrentBuilds" INTEGER NOT NULL DEFAULT 1,- "applicationStoragePathMigrationFinished" BOOLEAN NOT NULL DEFAULT false,- "numberOfDockerImagesKeptLocally" INTEGER NOT NULL DEFAULT 3,- "proxyDefaultRedirect" TEXT,- "doNotTrack" BOOLEAN NOT NULL DEFAULT false,- "sentryDSN" TEXT,- "previewSeparator" TEXT NOT NULL DEFAULT '.',- "isAPIDebuggingEnabled" BOOLEAN NOT NULL DEFAULT false,- "isRegistrationEnabled" BOOLEAN NOT NULL DEFAULT true,- "isAutoUpdateEnabled" BOOLEAN NOT NULL DEFAULT false,- "isDNSCheckEnabled" BOOLEAN NOT NULL DEFAULT true,- "isTraefikUsed" BOOLEAN NOT NULL DEFAULT true,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL-);-INSERT INTO "new_Setting" ("DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", "numberOfDockerImagesKeptLocally", "proxyDefaultRedirect", "sentryDSN", "updatedAt") SELECT "DNSServers", "applicationStoragePathMigrationFinished", "arch", "concurrentBuilds", "createdAt", "doNotTrack", "dualCerts", "fqdn", "id", "ipv4", "ipv6", "isAPIDebuggingEnabled", "isAutoUpdateEnabled", "isDNSCheckEnabled", "isRegistrationEnabled", "isTraefikUsed", "maxPort", "minPort", 3, "proxyDefaultRedirect", "sentryDSN", "updatedAt" FROM "Setting";-DROP TABLE "Setting";-ALTER TABLE "new_Setting" RENAME TO "Setting";-CREATE UNIQUE INDEX "Setting_fqdn_key" ON "Setting"("fqdn");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sqldeleted file mode 100644index aa8136ed8e..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221129130036_keep_local_docker_images/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "gitCommitHash" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sqldeleted file mode 100644index c77afb6875..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221130142058_reconfigure_docker_registries/migration.sql+++ /dev/null@@ -1,66 +0,0 @@-/*- Warnings:-- - You are about to drop the column `isSystemWide` on the `DockerRegistry` table. All the data in the column will be lost.--*/--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_DockerRegistry" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "url" TEXT NOT NULL,- "username" TEXT,- "password" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "teamId" TEXT,- CONSTRAINT "DockerRegistry_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_DockerRegistry" ("createdAt", "id", "name", "password", "teamId", "updatedAt", "url", "username") SELECT "createdAt", "id", "name", "password", "teamId", "updatedAt", "url", "username" FROM "DockerRegistry";-DROP TABLE "DockerRegistry";-ALTER TABLE "new_DockerRegistry" RENAME TO "DockerRegistry";-CREATE TABLE "new_Application" (- "id" TEXT NOT NULL PRIMARY KEY,- "name" TEXT NOT NULL,- "fqdn" TEXT,- "repository" TEXT,- "configHash" TEXT,- "branch" TEXT,- "buildPack" TEXT,- "projectId" INTEGER,- "port" INTEGER,- "exposePort" INTEGER,- "installCommand" TEXT,- "buildCommand" TEXT,- "startCommand" TEXT,- "baseDirectory" TEXT,- "publishDirectory" TEXT,- "deploymentType" TEXT,- "phpModules" TEXT,- "pythonWSGI" TEXT,- "pythonModule" TEXT,- "pythonVariable" TEXT,- "dockerFileLocation" TEXT,- "denoMainFile" TEXT,- "denoOptions" TEXT,- "dockerComposeFile" TEXT,- "dockerComposeFileLocation" TEXT,- "dockerComposeConfiguration" TEXT,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- "destinationDockerId" TEXT,- "gitSourceId" TEXT,- "gitCommitHash" TEXT,- "baseImage" TEXT,- "baseBuildImage" TEXT,- "dockerRegistryId" TEXT,- CONSTRAINT "Application_gitSourceId_fkey" FOREIGN KEY ("gitSourceId") REFERENCES "GitSource" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "Application_destinationDockerId_fkey" FOREIGN KEY ("destinationDockerId") REFERENCES "DestinationDocker" ("id") ON DELETE SET NULL ON UPDATE CASCADE,- CONSTRAINT "Application_dockerRegistryId_fkey" FOREIGN KEY ("dockerRegistryId") REFERENCES "DockerRegistry" ("id") ON DELETE SET NULL ON UPDATE CASCADE-);-INSERT INTO "new_Application" ("baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "dockerRegistryId", "exposePort", "fqdn", "gitCommitHash", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt") SELECT "baseBuildImage", "baseDirectory", "baseImage", "branch", "buildCommand", "buildPack", "configHash", "createdAt", "denoMainFile", "denoOptions", "deploymentType", "destinationDockerId", "dockerComposeConfiguration", "dockerComposeFile", "dockerComposeFileLocation", "dockerFileLocation", "dockerRegistryId", "exposePort", "fqdn", "gitCommitHash", "gitSourceId", "id", "installCommand", "name", "phpModules", "port", "projectId", "publishDirectory", "pythonModule", "pythonVariable", "pythonWSGI", "repository", "startCommand", "updatedAt" FROM "Application";-DROP TABLE "Application";-ALTER TABLE "new_Application" RENAME TO "Application";-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sqldeleted file mode 100644index b3406e59e3..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221201115801_simple_dockerfile_deployment/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "simpleDockerfile" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sqldeleted file mode 100644index 9f85d35182..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20221201133847_push_image_to_docker_registry/migration.sql+++ /dev/null@@ -1,2 +0,0 @@--- AlterTable-ALTER TABLE "Application" ADD COLUMN "dockerRegistryImageName" TEXT;diff --git a/apps/trpc-experimental/server/prisma/migrations/20230117092356_http2_protocol/migration.sql b/apps/trpc-experimental/server/prisma/migrations/20230117092356_http2_protocol/migration.sqldeleted file mode 100644index 7b24ac820d..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/20230117092356_http2_protocol/migration.sql+++ /dev/null@@ -1,24 +0,0 @@--- RedefineTables-PRAGMA foreign_keys=OFF;-CREATE TABLE "new_ApplicationSettings" (- "id" TEXT NOT NULL PRIMARY KEY,- "applicationId" TEXT NOT NULL,- "dualCerts" BOOLEAN NOT NULL DEFAULT false,- "debug" BOOLEAN NOT NULL DEFAULT false,- "previews" BOOLEAN NOT NULL DEFAULT false,- "autodeploy" BOOLEAN NOT NULL DEFAULT true,- "isBot" BOOLEAN NOT NULL DEFAULT false,- "isPublicRepository" BOOLEAN NOT NULL DEFAULT false,- "isDBBranching" BOOLEAN NOT NULL DEFAULT false,- "isCustomSSL" BOOLEAN NOT NULL DEFAULT false,- "isHttp2" BOOLEAN NOT NULL DEFAULT false,- "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,- "updatedAt" DATETIME NOT NULL,- CONSTRAINT "ApplicationSettings_applicationId_fkey" FOREIGN KEY ("applicationId") REFERENCES "Application" ("id") ON DELETE RESTRICT ON UPDATE CASCADE-);-INSERT INTO "new_ApplicationSettings" ("applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isCustomSSL", "isDBBranching", "isPublicRepository", "previews", "updatedAt") SELECT "applicationId", "autodeploy", "createdAt", "debug", "dualCerts", "id", "isBot", "isCustomSSL", "isDBBranching", "isPublicRepository", "previews", "updatedAt" FROM "ApplicationSettings";-DROP TABLE "ApplicationSettings";-ALTER TABLE "new_ApplicationSettings" RENAME TO "ApplicationSettings";-CREATE UNIQUE INDEX "ApplicationSettings_applicationId_key" ON "ApplicationSettings"("applicationId");-PRAGMA foreign_key_check;-PRAGMA foreign_keys=ON;diff --git a/apps/trpc-experimental/server/prisma/migrations/migration_lock.toml b/apps/trpc-experimental/server/prisma/migrations/migration_lock.tomldeleted file mode 100644index e5e5c4705a..0000000000--- a/apps/trpc-experimental/server/prisma/migrations/migration_lock.toml+++ /dev/null@@ -1,3 +0,0 @@-# Please do not edit this file manually-# It should be added in your version-control system (i.e. Git)-provider = "sqlite"\ No newline at end of filediff --git a/apps/trpc-experimental/server/prisma/schema.prisma b/apps/trpc-experimental/server/prisma/schema.prismadeleted file mode 100644index bb76d83b0c..0000000000--- a/apps/trpc-experimental/server/prisma/schema.prisma+++ /dev/null@@ -1,707 +0,0 @@-generator client {- provider = "prisma-client-js"- binaryTargets = ["native"]-}--datasource db {- provider = "sqlite"- url = env("COOLIFY_DATABASE_URL")-}--model Certificate {- id String @id @default(cuid())- key String- cert String- team Team? @relation(fields: [teamId], references: [id])- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- teamId String?-}--model Setting {- id String @id @default(cuid())- fqdn String? @unique- dualCerts Boolean @default(false)- minPort Int @default(9000)- maxPort Int @default(9100)- DNSServers String @default("1.1.1.1,8.8.8.8")- ipv4 String?- ipv6 String?- arch String?- concurrentBuilds Int @default(1)- applicationStoragePathMigrationFinished Boolean @default(false)- numberOfDockerImagesKeptLocally Int @default(3)- proxyDefaultRedirect String?- doNotTrack Boolean @default(false)- sentryDSN String?- previewSeparator String @default(".")- isAPIDebuggingEnabled Boolean @default(false)- isRegistrationEnabled Boolean @default(true)- isAutoUpdateEnabled Boolean @default(false)- isDNSCheckEnabled Boolean @default(true)- isTraefikUsed Boolean @default(true)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt-}--model User {- id String @id @unique @default(cuid())- email String @unique- type String- password String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- permission Permission[]- teams Team[]-}--model Permission {- id String @id @default(cuid())- userId String- teamId String- permission String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- team Team @relation(fields: [teamId], references: [id])- user User @relation(fields: [userId], references: [id])-}--model Team {- id String @id @default(cuid())- name String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- databaseId String?- serviceId String?- permissions Permission[]- sshKey SshKey[]- applications Application[]- database Database[]- destinationDocker DestinationDocker[]- gitSources GitSource[]- gitHubApps GithubApp[]- gitLabApps GitlabApp[]- service Service[]- users User[]- certificate Certificate[]- dockerRegistry DockerRegistry[]-}--model TeamInvitation {- id String @id @default(cuid())- uid String- email String- teamId String- teamName String- permission String- createdAt DateTime @default(now())-}--model Application {- id String @id @default(cuid())- name String- fqdn String?- repository String?- configHash String?- branch String?- buildPack String?- projectId Int?- port Int?- exposePort Int?- installCommand String?- buildCommand String?- startCommand String?- baseDirectory String?- publishDirectory String?- deploymentType String?- phpModules String?- pythonWSGI String?- pythonModule String?- pythonVariable String?- dockerFileLocation String?- denoMainFile String?- denoOptions String?- dockerComposeFile String?- dockerComposeFileLocation String?- dockerComposeConfiguration String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- destinationDockerId String?- gitSourceId String?- gitCommitHash String?- baseImage String?- baseBuildImage String?- settings ApplicationSettings?- dockerRegistryId String?- dockerRegistryImageName String?- simpleDockerfile String?-- persistentStorage ApplicationPersistentStorage[]- secrets Secret[]- teams Team[]- connectedDatabase ApplicationConnectedDatabase?- previewApplication PreviewApplication[]- gitSource GitSource? @relation(fields: [gitSourceId], references: [id])- destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])- dockerRegistry DockerRegistry? @relation(fields: [dockerRegistryId], references: [id])-}--model PreviewApplication {- id String @id @default(cuid())- pullmergeRequestId String- sourceBranch String- isRandomDomain Boolean @default(false)- customDomain String?- applicationId String- application Application @relation(fields: [applicationId], references: [id])- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt-}--model ApplicationConnectedDatabase {- id String @id @default(cuid())- applicationId String @unique- databaseId String?- hostedDatabaseType String?- hostedDatabaseHost String?- hostedDatabasePort Int?- hostedDatabaseName String?- hostedDatabaseUser String?- hostedDatabasePassword String?- hostedDatabaseDBName String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- database Database? @relation(fields: [databaseId], references: [id])- application Application @relation(fields: [applicationId], references: [id])-}--model ApplicationSettings {- id String @id @default(cuid())- applicationId String @unique- dualCerts Boolean @default(false)- debug Boolean @default(false)- previews Boolean @default(false)- autodeploy Boolean @default(true)- isBot Boolean @default(false)- isPublicRepository Boolean @default(false)- isDBBranching Boolean @default(false)- isCustomSSL Boolean @default(false)- isHttp2 Boolean @default(false)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- application Application @relation(fields: [applicationId], references: [id])-}--model ApplicationPersistentStorage {- id String @id @default(cuid())- applicationId String- path String- oldPath Boolean @default(false)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- application Application @relation(fields: [applicationId], references: [id])-- @@unique([applicationId, path])-}--model ServicePersistentStorage {- id String @id @default(cuid())- serviceId String- path String- volumeName String?- predefined Boolean @default(false)- containerId String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-- @@unique([serviceId, containerId, path])-}--model Secret {- id String @id @default(cuid())- name String- value String- isPRMRSecret Boolean @default(false)- isBuildSecret Boolean @default(false)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- applicationId String- application Application @relation(fields: [applicationId], references: [id])-- @@unique([name, applicationId, isPRMRSecret])-}--model ServiceSecret {- id String @id @default(cuid())- name String- value String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- serviceId String- service Service @relation(fields: [serviceId], references: [id])-- @@unique([name, serviceId])-}--model BuildLog {- id String @id @default(cuid())- applicationId String?- buildId String- line String- time BigInt-}--model Build {- id String @id @default(cuid())- type String- applicationId String?- destinationDockerId String?- gitSourceId String?- githubAppId String?- gitlabAppId String?- commit String?- pullmergeRequestId String?- previewApplicationId String?- forceRebuild Boolean @default(false)- sourceBranch String?- sourceRepository String?- branch String?- status String? @default("queued")- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt-}--model DestinationDocker {- id String @id @default(cuid())- network String @unique- name String- engine String?- remoteEngine Boolean @default(false)- remoteIpAddress String?- remoteUser String?- remotePort Int?- remoteVerified Boolean @default(false)- isCoolifyProxyUsed Boolean? @default(false)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- sshKeyId String?- sshKey SshKey? @relation(fields: [sshKeyId], references: [id])- sshLocalPort Int?- application Application[]- database Database[]- service Service[]- teams Team[]-}--model SshKey {- id String @id @default(cuid())- name String- privateKey String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- teamId String?- team Team? @relation(fields: [teamId], references: [id])- destinationDocker DestinationDocker[]-}--model DockerRegistry {- id String @id @default(cuid())- name String- url String- username String?- password String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- teamId String?- team Team? @relation(fields: [teamId], references: [id])- application Application[]-}--model GitSource {- id String @id @default(cuid())- name String- forPublic Boolean @default(false)- type String?- apiUrl String?- htmlUrl String?- customPort Int @default(22)- customUser String @default("git")- organization String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- githubAppId String? @unique- gitlabAppId String? @unique- isSystemWide Boolean @default(false)- gitlabApp GitlabApp? @relation(fields: [gitlabAppId], references: [id])- githubApp GithubApp? @relation(fields: [githubAppId], references: [id])- application Application[]- teams Team[]-}--model GithubApp {- id String @id @default(cuid())- name String? @unique- appId Int?- installationId Int?- clientId String?- clientSecret String?- webhookSecret String?- privateKey String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- gitSource GitSource?- teams Team[]-}--model GitlabApp {- id String @id @default(cuid())- oauthId Int @unique- groupName String? @unique- deployKeyId Int?- privateSshKey String?- publicSshKey String?- webhookToken String?- appId String?- appSecret String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- gitSource GitSource?- teams Team[]-}--model Database {- id String @id @default(cuid())- name String- publicPort Int?- defaultDatabase String?- type String?- version String?- dbUser String?- dbUserPassword String?- rootUser String?- rootUserPassword String?- destinationDockerId String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])- settings DatabaseSettings?- teams Team[]- applicationConnectedDatabase ApplicationConnectedDatabase[]- databaseSecret DatabaseSecret[]-}--model DatabaseSecret {- id String @id @default(cuid())- name String- value String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- databaseId String- database Database @relation(fields: [databaseId], references: [id])-- @@unique([name, databaseId])-}--model DatabaseSettings {- id String @id @default(cuid())- databaseId String @unique- isPublic Boolean @default(false)- appendOnly Boolean @default(true)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- database Database @relation(fields: [databaseId], references: [id])-}--model Service {- id String @id @default(cuid())- name String- fqdn String?- exposePort Int?- dualCerts Boolean @default(false)- type String?- version String?- templateVersion String @default("0.0.0")- destinationDockerId String?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- destinationDocker DestinationDocker? @relation(fields: [destinationDockerId], references: [id])- persistentStorage ServicePersistentStorage[]- serviceSecret ServiceSecret[]- serviceSetting ServiceSetting[]- teams Team[]-- fider Fider?- ghost Ghost?- glitchTip GlitchTip?- hasura Hasura?- meiliSearch MeiliSearch?- minio Minio?- moodle Moodle?- plausibleAnalytics PlausibleAnalytics?- umami Umami?- vscodeserver Vscodeserver?- wordpress Wordpress?- appwrite Appwrite?- searxng Searxng?- weblate Weblate?- taiga Taiga?-}--model ServiceSetting {- id String @id @default(cuid())- serviceId String- name String- value String- variableName String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-- @@unique([serviceId, name])-}--model PlausibleAnalytics {- id String @id @default(cuid())- email String?- username String?- password String- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- secretKeyBase String?- scriptName String @default("plausible.js")- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Minio {- id String @id @default(cuid())- rootUser String- rootUserPassword String- publicPort Int?- apiFqdn String?- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Vscodeserver {- id String @id @default(cuid())- password String- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Wordpress {- id String @id @default(cuid())- extraConfig String?- tablePrefix String?- ownMysql Boolean @default(false)- mysqlHost String?- mysqlPort Int?- mysqlUser String?- mysqlPassword String?- mysqlRootUser String?- mysqlRootUserPassword String?- mysqlDatabase String?- mysqlPublicPort Int?- ftpEnabled Boolean @default(false)- ftpUser String?- ftpPassword String?- ftpPublicPort Int?- ftpHostKey String?- ftpHostKeyPrivate String?- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Ghost {- id String @id @default(cuid())- defaultEmail String- defaultPassword String- mariadbUser String- mariadbPassword String- mariadbRootUser String- mariadbRootUserPassword String- mariadbDatabase String?- mariadbPublicPort Int?- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model MeiliSearch {- id String @id @default(cuid())- masterKey String- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Umami {- id String @id @default(cuid())- serviceId String @unique- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- umamiAdminPassword String- hashSalt String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Hasura {- id String @id @default(cuid())- serviceId String @unique- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- graphQLAdminPassword String- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Fider {- id String @id @default(cuid())- serviceId String @unique- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- jwtSecret String- emailNoreply String?- emailMailgunApiKey String?- emailMailgunDomain String?- emailMailgunRegion String @default("EU")- emailSmtpHost String?- emailSmtpPort Int?- emailSmtpUser String?- emailSmtpPassword String?- emailSmtpEnableStartTls Boolean @default(false)- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Moodle {- id String @id @default(cuid())- serviceId String @unique- defaultUsername String- defaultPassword String- defaultEmail String- mariadbUser String- mariadbPassword String- mariadbRootUser String- mariadbRootUserPassword String- mariadbDatabase String- mariadbPublicPort Int?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Appwrite {- id String @id @default(cuid())- serviceId String @unique- opensslKeyV1 String- executorSecret String- redisPassword String- mariadbHost String?- mariadbPort Int @default(3306)- mariadbUser String- mariadbPassword String- mariadbRootUser String- mariadbRootUserPassword String- mariadbDatabase String- mariadbPublicPort Int?- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model GlitchTip {- id String @id @default(cuid())- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- secretKeyBase String?- defaultEmail String- defaultUsername String- defaultPassword String- defaultEmailFrom String @default("[email protected]")- emailSmtpHost String? @default("domain.tdl")- emailSmtpPort Int? @default(25)- emailSmtpUser String?- emailSmtpPassword String?- emailSmtpUseTls Boolean @default(false)- emailSmtpUseSsl Boolean @default(false)- emailBackend String?- mailgunApiKey String?- sendgridApiKey String?- enableOpenUserRegistration Boolean @default(true)- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Searxng {- id String @id @default(cuid())- secretKey String- redisPassword String- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Weblate {- id String @id @default(cuid())- adminPassword String- postgresqlHost String- postgresqlPort Int- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}--model Taiga {- id String @id @default(cuid())- secretKey String- erlangSecret String- djangoAdminPassword String- djangoAdminUser String- rabbitMQUser String- rabbitMQPassword String- postgresqlHost String- postgresqlPort Int- postgresqlUser String- postgresqlPassword String- postgresqlDatabase String- postgresqlPublicPort Int?- serviceId String @unique- createdAt DateTime @default(now())- updatedAt DateTime @updatedAt- service Service @relation(fields: [serviceId], references: [id])-}diff --git a/apps/trpc-experimental/server/prisma/seed.js b/apps/trpc-experimental/server/prisma/seed.jsdeleted file mode 100644index 3d4b16a288..0000000000--- a/apps/trpc-experimental/server/prisma/seed.js+++ /dev/null@@ -1,113 +0,0 @@-const dotEnvExtended = require('dotenv-extended');-dotEnvExtended.load();-const crypto = require('crypto');-const { PrismaClient } = require('@prisma/client');-const prisma = new PrismaClient();-const algorithm = 'aes-256-ctr';--async function main() {- // Enable registration for the first user- const settingsFound = await prisma.setting.findFirst({});- if (!settingsFound) {- await prisma.setting.create({- data: {- id: '0',- arch: process.arch,- }- });- } else {- await prisma.setting.update({- where: {- id: settingsFound.id- },- data: {- id: '0'- }- });- }- // Create local docker engine- const localDocker = await prisma.destinationDocker.findFirst({- where: { engine: '/var/run/docker.sock' }- });- if (!localDocker) {- await prisma.destinationDocker.create({- data: {- engine: '/var/run/docker.sock',- name: 'Local Docker',- isCoolifyProxyUsed: true,- network: 'coolify'- }- });- }-- // Set auto-update based on env variable- const isAutoUpdateEnabled = process.env['COOLIFY_AUTO_UPDATE'] === 'true';- await prisma.setting.update({- where: {- id: '0'- },- data: {- isAutoUpdateEnabled- }- });- // Create public github source- const github = await prisma.gitSource.findFirst({- where: { htmlUrl: 'https://github.com', forPublic: true }- });- if (!github) {- await prisma.gitSource.create({- data: {- apiUrl: 'https://api.github.com',- htmlUrl: 'https://github.com',- forPublic: true,- name: 'Github Public',- type: 'github'- }- });- }- // Create public gitlab source- const gitlab = await prisma.gitSource.findFirst({- where: { htmlUrl: 'https://gitlab.com', forPublic: true }- });- if (!gitlab) {- await prisma.gitSource.create({- data: {- apiUrl: 'https://gitlab.com/api/v4',- htmlUrl: 'https://gitlab.com',- forPublic: true,- name: 'Gitlab Public',- type: 'gitlab'- }- });- }- // Set new preview secrets- const secrets = await prisma.secret.findMany({ where: { isPRMRSecret: false } })- if (secrets.length > 0) {- for (const secret of secrets) {- const previewSecrets = await prisma.secret.findMany({ where: { applicationId: secret.applicationId, name: secret.name, isPRMRSecret: true } })- if (previewSecrets.length === 0) {- await prisma.secret.create({ data: { ...secret, id: undefined, isPRMRSecret: true } })- }- }- }-}-main()- .catch((e) => {- console.error(e);- process.exit(1);- })- .finally(async () => {- await prisma.$disconnect();- });--const encrypt = (text) => {- if (text) {- const iv = crypto.randomBytes(16);- const cipher = crypto.createCipheriv(algorithm, process.env['COOLIFY_SECRET_KEY'], iv);- const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);- return JSON.stringify({- iv: iv.toString('hex'),- content: encrypted.toString('hex')- });- }-};\ No newline at end of filediff --git a/apps/trpc-experimental/server/src/api/index.ts b/apps/trpc-experimental/server/src/api/index.tsdeleted file mode 100644index b47d8358ce..0000000000--- a/apps/trpc-experimental/server/src/api/index.ts+++ /dev/null@@ -1,8 +0,0 @@-import type { FastifyPluginAsync } from 'fastify';--const root: FastifyPluginAsync = async (fastify): Promise<void> => {- fastify.get('/', async function (_request, _reply) {- return { status: 'ok' };- });-};-export default root;diff --git a/apps/trpc-experimental/server/src/config.ts b/apps/trpc-experimental/server/src/config.tsdeleted file mode 100644index e45c2a4bde..0000000000--- a/apps/trpc-experimental/server/src/config.ts+++ /dev/null@@ -1,7 +0,0 @@-import type { ServerOptions } from './server';--export const serverConfig: ServerOptions = {- dev: false,- port: 2022,- prefix: '/trpc'-};diff --git a/apps/trpc-experimental/server/src/env.js b/apps/trpc-experimental/server/src/env.jsdeleted file mode 100644index fece0be52e..0000000000--- a/apps/trpc-experimental/server/src/env.js+++ /dev/null@@ -1,23 +0,0 @@-const dotenv = require('dotenv');-// const isDev = process.env.NODE_ENV === 'development';-// dotenv.config({ path: isDev ? '../../.env' : '.env' });-dotenv.config();-const { z } = require('zod');--/*eslint sort-keys: "error"*/-const envSchema = z.object({- CODESANDBOX_HOST: z.string().optional(),- NODE_ENV: z.enum(['development', 'test', 'production']),- COOLIFY_DATABASE_URL: z.string(),- COOLIFY_SECRET_KEY: z.string().length(32),- COOLIFY_WHITE_LABELED: z.string().optional(),- COOLIFY_WHITE_LABELED_ICON: z.string().optional()-});--const env = envSchema.safeParse(process.env);--if (!env.success) {- console.error('❌ Invalid environment variables:', JSON.stringify(env.error.format(), null, 4));- process.exit(1);-}-module.exports.env = env.data;diff --git a/apps/trpc-experimental/server/src/index.ts b/apps/trpc-experimental/server/src/index.tsdeleted file mode 100644index 8f2d2782e7..0000000000--- a/apps/trpc-experimental/server/src/index.ts+++ /dev/null@@ -1,7 +0,0 @@-import { serverConfig } from './config';-import { createServer } from './server';--const server = createServer(serverConfig);--server.start();-diff --git a/apps/trpc-experimental/server/src/jobs/applicationBuildQueue.ts b/apps/trpc-experimental/server/src/jobs/applicationBuildQueue.tsdeleted file mode 100644index 0242d2a119..0000000000--- a/apps/trpc-experimental/server/src/jobs/applicationBuildQueue.ts+++ /dev/null@@ -1,851 +0,0 @@-import { parentPort } from 'node:worker_threads';-import crypto from 'crypto';-import fs from 'fs/promises';-import yaml from 'js-yaml';--import {- copyBaseConfigurationFiles,- makeLabelForSimpleDockerfile,- makeLabelForStandaloneApplication,- saveBuildLog,- saveDockerRegistryCredentials,- setDefaultConfiguration-} from '../lib/buildPacks/common';-import {- createDirectories,- decrypt,- getDomain,- generateSecrets,- decryptApplication,- pushToRegistry-} from '../lib/common';-import * as importers from '../lib/importers';-import * as buildpacks from '../lib/buildPacks';-import { prisma } from '../prisma';-import { executeCommand } from '../lib/executeCommand';-import { defaultComposeConfiguration } from '../lib/docker';--(async () => {- if (parentPort) {- parentPort.on('message', async (message) => {- if (message === 'error') throw new Error('oops');- if (message === 'cancel') {- parentPort.postMessage('cancelled');- await prisma.$disconnect();- process.exit(0);- }- });- const pThrottle = await import('p-throttle');- const throttle = pThrottle.default({- limit: 1,- interval: 2000- });-- const th = throttle(async () => {- try {- const queuedBuilds = await prisma.build.findMany({- where: { status: { in: ['queued', 'running'] } },- orderBy: { createdAt: 'asc' }- });- const { concurrentBuilds } = await prisma.setting.findFirst({});- if (queuedBuilds.length > 0) {- parentPort.postMessage({ deploying: true });- const concurrency = concurrentBuilds;- const pAll = await import('p-all');- const actions = [];-- for (const queueBuild of queuedBuilds) {- actions.push(async () => {- let application = await prisma.application.findUnique({- where: { id: queueBuild.applicationId },- include: {- dockerRegistry: true,- destinationDocker: true,- gitSource: { include: { githubApp: true, gitlabApp: true } },- persistentStorage: true,- secrets: true,- settings: true,- teams: true- }- });-- let {- id: buildId,- type,- gitSourceId,- sourceBranch = null,- pullmergeRequestId = null,- previewApplicationId = null,- forceRebuild,- sourceRepository = null- } = queueBuild;- application = decryptApplication(application);-- if (!gitSourceId && application.simpleDockerfile) {- const {- id: applicationId,- destinationDocker,- destinationDockerId,- secrets,- port,- persistentStorage,- exposePort,- simpleDockerfile,- dockerRegistry- } = application;- const { workdir } = await createDirectories({ repository: applicationId, buildId });- try {- if (queueBuild.status === 'running') {- await saveBuildLog({- line: 'Building halted, restarting...',- buildId,- applicationId: application.id- });- }- const volumes =- persistentStorage?.map((storage) => {- if (storage.oldPath) {- return `${applicationId}${storage.path- .replace(/\//gi, '-')- .replace('-app', '')}:${storage.path}`;- }- return `${applicationId}${storage.path.replace(/\//gi, '-')}:${storage.path}`;- }) || [];-- if (destinationDockerId) {- await prisma.build.update({- where: { id: buildId },- data: { status: 'running' }- });- try {- const { stdout: containers } = await executeCommand({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.service=${applicationId}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- //- }- let envs = [];- if (secrets.length > 0) {- envs = [- ...envs,- ...generateSecrets(secrets, pullmergeRequestId, false, port)- ];- }- await fs.writeFile(`${workdir}/Dockerfile`, simpleDockerfile);- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- await saveDockerRegistryCredentials({ url, username, password, workdir });- }-- const labels = makeLabelForSimpleDockerfile({- applicationId,- type,- port: exposePort ? `${exposePort}:${port}` : port- });- try {- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(':')[0]}`]: {- name: volume.split(':')[0]- }- };- });- const composeFile = {- version: '3.8',- services: {- [applicationId]: {- build: {- context: workdir- },- image: `${applicationId}:${buildId}`,- container_name: applicationId,- volumes,- labels,- environment: envs,- depends_on: [],- expose: [port],- ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),- ...defaultComposeConfiguration(destinationDocker.network)- }- },- networks: {- [destinationDocker.network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await fs.writeFile(`${workdir}/docker-compose.yml`, yaml.dump(composeFile));- await executeCommand({- debug: true,- dockerId: destinationDocker.id,- command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`- });- await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });- } catch (error) {- await saveBuildLog({ line: error, buildId, applicationId });- const foundBuild = await prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await prisma.build.update({- where: { id: buildId },- data: {- status: 'failed'- }- });- }- throw new Error(error);- }- }- } catch (error) {- const foundBuild = await prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await prisma.build.update({- where: { id: buildId },- data: {- status: 'failed'- }- });- }- if (error !== 1) {- await saveBuildLog({ line: error, buildId, applicationId: application.id });- }- if (error instanceof Error) {- await saveBuildLog({- line: error.message,- buildId,- applicationId: application.id- });- }- await fs.rm(workdir, { recursive: true, force: true });- return;- }- try {- if (application.dockerRegistryImageName) {- const customTag = application.dockerRegistryImageName.split(':')[1] || buildId;- const imageName = application.dockerRegistryImageName.split(':')[0];- await saveBuildLog({- line: `Pushing ${imageName}:${customTag} to Docker Registry... It could take a while...`,- buildId,- applicationId: application.id- });- await pushToRegistry(application, workdir, buildId, imageName, customTag);- await saveBuildLog({ line: 'Success', buildId, applicationId: application.id });- }- } catch (error) {- if (error.stdout) {- await saveBuildLog({ line: error.stdout, buildId, applicationId });- }- if (error.stderr) {- await saveBuildLog({ line: error.stderr, buildId, applicationId });- }- } finally {- await fs.rm(workdir, { recursive: true, force: true });- await prisma.build.update({- where: { id: buildId },- data: { status: 'success' }- });- }- return;- }-- const originalApplicationId = application.id;- const {- id: applicationId,- name,- destinationDocker,- destinationDockerId,- gitSource,- configHash,- fqdn,- projectId,- secrets,- phpModules,- settings,- persistentStorage,- pythonWSGI,- pythonModule,- pythonVariable,- denoOptions,- exposePort,- baseImage,- baseBuildImage,- deploymentType,- gitCommitHash,- dockerRegistry- } = application;-- let {- branch,- repository,- buildPack,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- dockerFileLocation,- dockerComposeFileLocation,- dockerComposeConfiguration,- denoMainFile- } = application;-- let imageId = applicationId;- let domain = getDomain(fqdn);-- let location = null;-- let tag = null;- let customTag = null;- let imageName = null;-- let imageFoundLocally = false;- let imageFoundRemotely = false;-- if (pullmergeRequestId) {- const previewApplications = await prisma.previewApplication.findMany({- where: { applicationId: originalApplicationId, pullmergeRequestId }- });- if (previewApplications.length > 0) {- previewApplicationId = previewApplications[0].id;- }- // Previews, we need to get the source branch and set subdomain- branch = sourceBranch;- domain = `${pullmergeRequestId}.${domain}`;- imageId = `${applicationId}-${pullmergeRequestId}`;- repository = sourceRepository || repository;- }- const { workdir, repodir } = await createDirectories({ repository, buildId });- try {- if (queueBuild.status === 'running') {- await saveBuildLog({- line: 'Building halted, restarting...',- buildId,- applicationId: application.id- });- }-- const currentHash = crypto- .createHash('sha256')- .update(- JSON.stringify({- pythonWSGI,- pythonModule,- pythonVariable,- deploymentType,- denoOptions,- baseImage,- baseBuildImage,- buildPack,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- secrets,- branch,- repository,- fqdn- })- )- .digest('hex');- const { debug } = settings;- if (!debug) {- await saveBuildLog({- line: `Debug logging is disabled. Enable it above if necessary!`,- buildId,- applicationId- });- }- const volumes =- persistentStorage?.map((storage) => {- if (storage.oldPath) {- return `${applicationId}${storage.path- .replace(/\//gi, '-')- .replace('-app', '')}:${storage.path}`;- }- return `${applicationId}${storage.path.replace(/\//gi, '-')}:${storage.path}`;- }) || [];-- try {- dockerComposeConfiguration = JSON.parse(dockerComposeConfiguration);- } catch (error) {}- let deployNeeded = true;- let destinationType;-- if (destinationDockerId) {- destinationType = 'docker';- }- if (destinationType === 'docker') {- await prisma.build.update({- where: { id: buildId },- data: { status: 'running' }- });-- const configuration = await setDefaultConfiguration(application);-- buildPack = configuration.buildPack;- port = configuration.port;- installCommand = configuration.installCommand;- startCommand = configuration.startCommand;- buildCommand = configuration.buildCommand;- publishDirectory = configuration.publishDirectory;- baseDirectory = configuration.baseDirectory || '';- dockerFileLocation = configuration.dockerFileLocation;- dockerComposeFileLocation = configuration.dockerComposeFileLocation;- denoMainFile = configuration.denoMainFile;- const commit = await importers[gitSource.type]({- applicationId,- debug,- workdir,- repodir,- githubAppId: gitSource.githubApp?.id,- gitlabAppId: gitSource.gitlabApp?.id,- customPort: gitSource.customPort,- gitCommitHash,- configuration,- repository,- branch,- buildId,- apiUrl: gitSource.apiUrl,- htmlUrl: gitSource.htmlUrl,- projectId,- deployKeyId: gitSource.gitlabApp?.deployKeyId || null,- privateSshKey: decrypt(gitSource.gitlabApp?.privateSshKey) || null,- forPublic: gitSource.forPublic- });- if (!commit) {- throw new Error('No commit found?');- }- tag = commit.slice(0, 7);- if (pullmergeRequestId) {- tag = `${commit.slice(0, 7)}-${pullmergeRequestId}`;- }- if (application.dockerRegistryImageName) {- imageName = application.dockerRegistryImageName.split(':')[0];- customTag = application.dockerRegistryImageName.split(':')[1] || tag;- } else {- customTag = tag;- imageName = applicationId;- }-- if (pullmergeRequestId) {- customTag = `${customTag}-${pullmergeRequestId}`;- }-- try {- await prisma.build.update({ where: { id: buildId }, data: { commit } });- } catch (err) {}-- if (!pullmergeRequestId) {- if (configHash !== currentHash) {- deployNeeded = true;- if (configHash) {- await saveBuildLog({- line: 'Configuration changed',- buildId,- applicationId- });- }- } else {- deployNeeded = false;- }- } else {- deployNeeded = true;- }-- try {- await executeCommand({- dockerId: destinationDocker.id,- command: `docker image inspect ${applicationId}:${tag}`- });- imageFoundLocally = true;- } catch (error) {- //- }- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await saveDockerRegistryCredentials({- url,- username,- password,- workdir- });- }-- try {- await executeCommand({- dockerId: destinationDocker.id,- command: `docker ${- location ? `--config ${location}` : ''- } pull ${imageName}:${customTag}`- });- imageFoundRemotely = true;- } catch (error) {- //- }- let imageFound = `${applicationId}:${tag}`;- if (imageFoundRemotely) {- imageFound = `${imageName}:${customTag}`;- }- await copyBaseConfigurationFiles(- buildPack,- workdir,- buildId,- applicationId,- baseImage- );- const labels = makeLabelForStandaloneApplication({- applicationId,- fqdn,- name,- type,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- port: exposePort ? `${exposePort}:${port}` : port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory- });- if (forceRebuild) deployNeeded = true;- if ((!imageFoundLocally && !imageFoundRemotely) || deployNeeded) {- if (buildPack === 'static') {- await buildpacks.staticApp({- dockerId: destinationDocker.id,- network: destinationDocker.network,- buildId,- applicationId,- domain,- name,- type,- volumes,- labels,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- publishDirectory,- debug,- commit,- tag,- workdir,- port: exposePort ? `${exposePort}:${port}` : port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- phpModules,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- dockerComposeConfiguration,- dockerComposeFileLocation,- denoMainFile,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- forceRebuild- });- } else if (buildpacks[buildPack])- await buildpacks[buildPack]({- dockerId: destinationDocker.id,- network: destinationDocker.network,- buildId,- applicationId,- domain,- name,- type,- volumes,- labels,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- publishDirectory,- debug,- commit,- tag,- workdir,- port: exposePort ? `${exposePort}:${port}` : port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- phpModules,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- dockerComposeConfiguration,- dockerComposeFileLocation,- denoMainFile,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- forceRebuild- });- else {- await saveBuildLog({- line: `Build pack ${buildPack} not found`,- buildId,- applicationId- });- throw new Error(`Build pack ${buildPack} not found.`);- }- } else {- if (imageFoundRemotely || deployNeeded) {- await saveBuildLog({- line: `Container image ${imageFound} found in Docker Registry - reuising it`,- buildId,- applicationId- });- } else {- if (imageFoundLocally || deployNeeded) {- await saveBuildLog({- line: `Container image ${imageFound} found locally - reuising it`,- buildId,- applicationId- });- }- }- }-- if (buildPack === 'compose') {- const fileYaml = `${workdir}${baseDirectory}${dockerComposeFileLocation}`;- try {- const { stdout: containers } = await executeCommand({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=coolify.applicationId=${applicationId}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- //- }- try {- await executeCommand({- debug,- buildId,- applicationId,- dockerId: destinationDocker.id,- command: `docker compose --project-directory ${workdir} -f ${fileYaml} up -d`- });- await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });- await prisma.build.update({- where: { id: buildId },- data: { status: 'success' }- });- await prisma.application.update({- where: { id: applicationId },- data: { configHash: currentHash }- });- } catch (error) {- await saveBuildLog({ line: error, buildId, applicationId });- const foundBuild = await prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await prisma.build.update({- where: { id: buildId },- data: {- status: 'failed'- }- });- }- throw new Error(error);- }- } else {- try {- const { stdout: containers } = await executeCommand({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.service=${- pullmergeRequestId ? imageId : applicationId- }' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {- //- }- let envs = [];- if (secrets.length > 0) {- envs = [- ...envs,- ...generateSecrets(secrets, pullmergeRequestId, false, port)- ];- }- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- await saveDockerRegistryCredentials({ url, username, password, workdir });- }- try {- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(':')[0]}`]: {- name: volume.split(':')[0]- }- };- });- const composeFile = {- version: '3.8',- services: {- [imageId]: {- image: imageFound,- container_name: imageId,- volumes,- environment: envs,- labels,- depends_on: [],- expose: [port],- ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),- ...defaultComposeConfiguration(destinationDocker.network)- }- },- networks: {- [destinationDocker.network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await fs.writeFile(`${workdir}/docker-compose.yml`, yaml.dump(composeFile));- await executeCommand({- debug,- dockerId: destinationDocker.id,- command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`- });- await saveBuildLog({ line: 'Deployed 🎉', buildId, applicationId });- } catch (error) {- await saveBuildLog({ line: error, buildId, applicationId });- const foundBuild = await prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await prisma.build.update({- where: { id: buildId },- data: {- status: 'failed'- }- });- }- throw new Error(error);- }-- if (!pullmergeRequestId)- await prisma.application.update({- where: { id: applicationId },- data: { configHash: currentHash }- });- }- }- } catch (error) {- const foundBuild = await prisma.build.findUnique({ where: { id: buildId } });- if (foundBuild) {- await prisma.build.update({- where: { id: buildId },- data: {- status: 'failed'- }- });- }- if (error !== 1) {- await saveBuildLog({ line: error, buildId, applicationId: application.id });- }- if (error instanceof Error) {- await saveBuildLog({- line: error.message,- buildId,- applicationId: application.id- });- }- await fs.rm(workdir, { recursive: true, force: true });- return;- }- try {- if (application.dockerRegistryImageName && (!imageFoundRemotely || forceRebuild)) {- await saveBuildLog({- line: `Pushing ${imageName}:${customTag} to Docker Registry... It could take a while...`,- buildId,- applicationId: application.id- });- await pushToRegistry(application, workdir, tag, imageName, customTag);- await saveBuildLog({ line: 'Success', buildId, applicationId: application.id });- }- } catch (error) {- if (error.stdout) {- await saveBuildLog({ line: error.stdout, buildId, applicationId });- }- if (error.stderr) {- await saveBuildLog({ line: error.stderr, buildId, applicationId });- }- } finally {- await fs.rm(workdir, { recursive: true, force: true });- await prisma.build.update({ where: { id: buildId }, data: { status: 'success' } });- }- });- }- await pAll.default(actions, { concurrency });- }- } catch (error) {- console.log(error);- }- });- while (true) {- await th();- }- } else {- console.log('hello');- process.exit(0);- }-})();diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/common.ts b/apps/trpc-experimental/server/src/lib/buildPacks/common.tsdeleted file mode 100644index ebbd83583a..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/common.ts+++ /dev/null@@ -1,843 +0,0 @@-import {- base64Encode,- decrypt,- encrypt,- generateSecrets,- generateTimestamp,- getDomain,- isARM,- isDev,- version-} from '../common';-import { promises as fs } from 'fs';-import { day } from '../dayjs';-import { prisma } from '../../prisma';-import { executeCommand } from '../executeCommand';--const staticApps = ['static', 'react', 'vuejs', 'svelte', 'gatsby', 'astro', 'eleventy'];-const nodeBased = [- 'react',- 'preact',- 'vuejs',- 'svelte',- 'gatsby',- 'astro',- 'eleventy',- 'node',- 'nestjs',- 'nuxtjs',- 'nextjs'-];--export function setDefaultBaseImage(- buildPack: string | null,- deploymentType: string | null = null-) {- const nodeVersions = [- {- value: 'node:lts',- label: 'node:lts'- },- {- value: 'node:18',- label: 'node:18'- },- {- value: 'node:17',- label: 'node:17'- },- {- value: 'node:16',- label: 'node:16'- },- {- value: 'node:14',- label: 'node:14'- },- {- value: 'node:12',- label: 'node:12'- }- ];- const staticVersions = [- {- value: 'webdevops/nginx:alpine',- label: 'webdevops/nginx:alpine'- },- {- value: 'webdevops/apache:alpine',- label: 'webdevops/apache:alpine'- },- {- value: 'nginx:alpine',- label: 'nginx:alpine'- },- {- value: 'httpd:alpine',- label: 'httpd:alpine (Apache)'- }- ];- const rustVersions = [- {- value: 'rust:latest',- label: 'rust:latest'- },- {- value: 'rust:1.60',- label: 'rust:1.60'- },- {- value: 'rust:1.60-buster',- label: 'rust:1.60-buster'- },- {- value: 'rust:1.60-bullseye',- label: 'rust:1.60-bullseye'- },- {- value: 'rust:1.60-slim-buster',- label: 'rust:1.60-slim-buster'- },- {- value: 'rust:1.60-slim-bullseye',- label: 'rust:1.60-slim-bullseye'- },- {- value: 'rust:1.60-alpine3.14',- label: 'rust:1.60-alpine3.14'- },- {- value: 'rust:1.60-alpine3.15',- label: 'rust:1.60-alpine3.15'- }- ];- const phpVersions = [- {- value: 'webdevops/php-apache:8.2',- label: 'webdevops/php-apache:8.2'- },- {- value: 'webdevops/php-nginx:8.2',- label: 'webdevops/php-nginx:8.2'- },- {- value: 'webdevops/php-apache:8.1',- label: 'webdevops/php-apache:8.1'- },- {- value: 'webdevops/php-nginx:8.1',- label: 'webdevops/php-nginx:8.1'- },- {- value: 'webdevops/php-apache:8.0',- label: 'webdevops/php-apache:8.0'- },- {- value: 'webdevops/php-nginx:8.0',- label: 'webdevops/php-nginx:8.0'- },- {- value: 'webdevops/php-apache:7.4',- label: 'webdevops/php-apache:7.4'- },- {- value: 'webdevops/php-nginx:7.4',- label: 'webdevops/php-nginx:7.4'- },- {- value: 'webdevops/php-apache:7.3',- label: 'webdevops/php-apache:7.3'- },- {- value: 'webdevops/php-nginx:7.3',- label: 'webdevops/php-nginx:7.3'- },- {- value: 'webdevops/php-apache:7.2',- label: 'webdevops/php-apache:7.2'- },- {- value: 'webdevops/php-nginx:7.2',- label: 'webdevops/php-nginx:7.2'- },- {- value: 'webdevops/php-apache:7.1',- label: 'webdevops/php-apache:7.1'- },- {- value: 'webdevops/php-nginx:7.1',- label: 'webdevops/php-nginx:7.1'- },- {- value: 'webdevops/php-apache:7.0',- label: 'webdevops/php-apache:7.0'- },- {- value: 'webdevops/php-nginx:7.0',- label: 'webdevops/php-nginx:7.0'- },- {- value: 'webdevops/php-apache:5.6',- label: 'webdevops/php-apache:5.6'- },- {- value: 'webdevops/php-nginx:5.6',- label: 'webdevops/php-nginx:5.6'- },- {- value: 'webdevops/php-apache:8.2-alpine',- label: 'webdevops/php-apache:8.2-alpine'- },- {- value: 'webdevops/php-nginx:8.2-alpine',- label: 'webdevops/php-nginx:8.2-alpine'- },- {- value: 'webdevops/php-apache:8.1-alpine',- label: 'webdevops/php-apache:8.1-alpine'- },- {- value: 'webdevops/php-nginx:8.1-alpine',- label: 'webdevops/php-nginx:8.1-alpine'- },- {- value: 'webdevops/php-apache:8.0-alpine',- label: 'webdevops/php-apache:8.0-alpine'- },- {- value: 'webdevops/php-nginx:8.0-alpine',- label: 'webdevops/php-nginx:8.0-alpine'- },- {- value: 'webdevops/php-apache:7.4-alpine',- label: 'webdevops/php-apache:7.4-alpine'- },- {- value: 'webdevops/php-nginx:7.4-alpine',- label: 'webdevops/php-nginx:7.4-alpine'- },- {- value: 'webdevops/php-apache:7.3-alpine',- label: 'webdevops/php-apache:7.3-alpine'- },- {- value: 'webdevops/php-nginx:7.3-alpine',- label: 'webdevops/php-nginx:7.3-alpine'- },- {- value: 'webdevops/php-apache:7.2-alpine',- label: 'webdevops/php-apache:7.2-alpine'- },- {- value: 'webdevops/php-nginx:7.2-alpine',- label: 'webdevops/php-nginx:7.2-alpine'- },- {- value: 'webdevops/php-apache:7.1-alpine',- label: 'webdevops/php-apache:7.1-alpine'- },- {- value: 'php:8.1-fpm',- label: 'php:8.1-fpm'- },- {- value: 'php:8.0-fpm',- label: 'php:8.0-fpm'- },- {- value: 'php:8.1-fpm-alpine',- label: 'php:8.1-fpm-alpine'- },- {- value: 'php:8.0-fpm-alpine',- label: 'php:8.0-fpm-alpine'- }- ];- const pythonVersions = [- {- value: 'python:3.10-alpine',- label: 'python:3.10-alpine'- },- {- value: 'python:3.10-buster',- label: 'python:3.10-buster'- },- {- value: 'python:3.10-bullseye',- label: 'python:3.10-bullseye'- },- {- value: 'python:3.10-slim-bullseye',- label: 'python:3.10-slim-bullseye'- },- {- value: 'python:3.9-alpine',- label: 'python:3.9-alpine'- },- {- value: 'python:3.9-buster',- label: 'python:3.9-buster'- },- {- value: 'python:3.9-bullseye',- label: 'python:3.9-bullseye'- },- {- value: 'python:3.9-slim-bullseye',- label: 'python:3.9-slim-bullseye'- },- {- value: 'python:3.8-alpine',- label: 'python:3.8-alpine'- },- {- value: 'python:3.8-buster',- label: 'python:3.8-buster'- },- {- value: 'python:3.8-bullseye',- label: 'python:3.8-bullseye'- },- {- value: 'python:3.8-slim-bullseye',- label: 'python:3.8-slim-bullseye'- },- {- value: 'python:3.7-alpine',- label: 'python:3.7-alpine'- },- {- value: 'python:3.7-buster',- label: 'python:3.7-buster'- },- {- value: 'python:3.7-bullseye',- label: 'python:3.7-bullseye'- },- {- value: 'python:3.7-slim-bullseye',- label: 'python:3.7-slim-bullseye'- }- ];- const herokuVersions = [- {- value: 'heroku/builder:22',- label: 'heroku/builder:22'- },- {- value: 'heroku/buildpacks:20',- label: 'heroku/buildpacks:20'- },- {- value: 'heroku/builder-classic:22',- label: 'heroku/builder-classic:22'- }- ];- let payload: any = {- baseImage: null,- baseBuildImage: null,- baseImages: [],- baseBuildImages: []- };- if (nodeBased.includes(buildPack)) {- if (deploymentType === 'static') {- payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';- payload.baseImages = isARM(process.arch)- ? staticVersions.filter((version) => !version.value.includes('webdevops'))- : staticVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- } else {- payload.baseImage = 'node:lts';- payload.baseImages = nodeVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- }- }- if (staticApps.includes(buildPack)) {- payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';- payload.baseImages = isARM(process.arch)- ? staticVersions.filter((version) => !version.value.includes('webdevops'))- : staticVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- }- if (buildPack === 'python') {- payload.baseImage = 'python:3.10-alpine';- payload.baseImages = pythonVersions;- }- if (buildPack === 'rust') {- payload.baseImage = 'rust:latest';- payload.baseBuildImage = 'rust:latest';- payload.baseImages = rustVersions;- payload.baseBuildImages = rustVersions;- }- if (buildPack === 'deno') {- payload.baseImage = 'denoland/deno:latest';- }- if (buildPack === 'php') {- payload.baseImage = isARM(process.arch)- ? 'php:8.1-fpm-alpine'- : 'webdevops/php-apache:8.2-alpine';- payload.baseImages = isARM(process.arch)- ? phpVersions.filter((version) => !version.value.includes('webdevops'))- : phpVersions;- }- if (buildPack === 'laravel') {- payload.baseImage = isARM(process.arch)- ? 'php:8.1-fpm-alpine'- : 'webdevops/php-apache:8.2-alpine';- payload.baseImages = isARM(process.arch)- ? phpVersions.filter((version) => !version.value.includes('webdevops'))- : phpVersions;- payload.baseBuildImage = 'node:18';- payload.baseBuildImages = nodeVersions;- }- if (buildPack === 'heroku') {- payload.baseImage = 'heroku/buildpacks:20';- payload.baseImages = herokuVersions;- }- return payload;-}--export const setDefaultConfiguration = async (data: any) => {- let {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- } = data;- //@ts-ignore- const template = scanningTemplates[buildPack];- if (!port) {- port = template?.port || 3000;-- if (buildPack === 'static') port = 80;- else if (buildPack === 'node') port = 3000;- else if (buildPack === 'php') port = 80;- else if (buildPack === 'python') port = 8000;- }- if (!installCommand && buildPack !== 'static' && buildPack !== 'laravel')- installCommand = template?.installCommand || 'yarn install';- if (!startCommand && buildPack !== 'static' && buildPack !== 'laravel')- startCommand = template?.startCommand || 'yarn start';- if (!buildCommand && buildPack !== 'static' && buildPack !== 'laravel')- buildCommand = template?.buildCommand || null;- if (!publishDirectory) publishDirectory = template?.publishDirectory || null;- if (baseDirectory) {- if (!baseDirectory.startsWith('/')) baseDirectory = `/${baseDirectory}`;- if (baseDirectory.endsWith('/') && baseDirectory !== '/')- baseDirectory = baseDirectory.slice(0, -1);- }- if (dockerFileLocation) {- if (!dockerFileLocation.startsWith('/')) dockerFileLocation = `/${dockerFileLocation}`;- if (dockerFileLocation.endsWith('/')) dockerFileLocation = dockerFileLocation.slice(0, -1);- } else {- dockerFileLocation = '/Dockerfile';- }- if (dockerComposeFileLocation) {- if (!dockerComposeFileLocation.startsWith('/'))- dockerComposeFileLocation = `/${dockerComposeFileLocation}`;- if (dockerComposeFileLocation.endsWith('/'))- dockerComposeFileLocation = dockerComposeFileLocation.slice(0, -1);- } else {- dockerComposeFileLocation = '/Dockerfile';- }- if (!denoMainFile) {- denoMainFile = 'main.ts';- }-- return {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- };-};--export const scanningTemplates = {- '@sveltejs/kit': {- buildPack: 'nodejs'- },- astro: {- buildPack: 'astro'- },- '@11ty/eleventy': {- buildPack: 'eleventy'- },- svelte: {- buildPack: 'svelte'- },- '@nestjs/core': {- buildPack: 'nestjs'- },- next: {- buildPack: 'nextjs'- },- nuxt: {- buildPack: 'nuxtjs'- },- 'react-scripts': {- buildPack: 'react'- },- 'parcel-bundler': {- buildPack: 'static'- },- '@vue/cli-service': {- buildPack: 'vuejs'- },- vuejs: {- buildPack: 'vuejs'- },- gatsby: {- buildPack: 'gatsby'- },- 'preact-cli': {- buildPack: 'react'- }-};--export const saveBuildLog = async ({- line,- buildId,- applicationId-}: {- line: string;- buildId: string;- applicationId: string;-}): Promise<any> => {- if (buildId === 'undefined' || buildId === 'null' || !buildId) return;- if (applicationId === 'undefined' || applicationId === 'null' || !applicationId) return;- const { default: got } = await import('got');- if (typeof line === 'object' && line) {- if (line.shortMessage) {- line = line.shortMessage + '\n' + line.stderr;- } else {- line = JSON.stringify(line);- }- }- if (line && typeof line === 'string' && line.includes('ghs_')) {- const regex = /ghs_.*@/g;- line = line.replace(regex, '<SENSITIVE_DATA_DELETED>@');- }- const addTimestamp = `[${generateTimestamp()}] ${line}`;- const fluentBitUrl = isDev- ? process.env.COOLIFY_CONTAINER_DEV === 'true'- ? 'http://coolify-fluentbit:24224'- : 'http://localhost:24224'- : 'http://coolify-fluentbit:24224';-- if (isDev && !process.env.COOLIFY_CONTAINER_DEV) {- console.debug(`[${applicationId}] ${addTimestamp}`);- }- try {- return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {- json: {- line: encrypt(line)- }- });- } catch (error) {- return await prisma.buildLog.create({- data: {- line: addTimestamp,- buildId,- time: Number(day().valueOf()),- applicationId- }- });- }-};--export async function copyBaseConfigurationFiles(- buildPack,- workdir,- buildId,- applicationId,- baseImage-) {- try {- if (buildPack === 'php') {- await fs.writeFile(`${workdir}/entrypoint.sh`, `chown -R 1000 /app`);- await saveBuildLog({- line: 'Copied default configuration file for PHP.',- buildId,- applicationId- });- } else if (baseImage?.includes('nginx')) {- await fs.writeFile(- `${workdir}/nginx.conf`,- `user nginx;- worker_processes auto;-- error_log /docker.stdout;- pid /run/nginx.pid;-- events {- worker_connections 1024;- }-- http {- log_format main '$remote_addr - $remote_user [$time_local] "$request" '- '$status $body_bytes_sent "$http_referer" '- '"$http_user_agent" "$http_x_forwarded_for"';-- access_log /docker.stdout main;-- sendfile on;- tcp_nopush on;- tcp_nodelay on;- keepalive_timeout 65;- types_hash_max_size 2048;-- include /etc/nginx/mime.types;- default_type application/octet-stream;-- server {- listen 80;- server_name localhost;-- location / {- root /app;- index index.html;- try_files $uri $uri/index.html $uri/ /index.html =404;- }-- error_page 404 /50x.html;-- # redirect server error pages to the static page /50x.html- #- error_page 500 502 503 504 /50x.html;- location = /50x.html {- root /app;- }-- }-- }- `- );- }- // TODO: Add more configuration files for other buildpacks, like apache2, etc.- } catch (error) {- throw new Error(error);- }-}--export function checkPnpm(installCommand = null, buildCommand = null, startCommand = null) {- return (- installCommand?.includes('pnpm') ||- buildCommand?.includes('pnpm') ||- startCommand?.includes('pnpm')- );-}--export async function saveDockerRegistryCredentials({ url, username, password, workdir }) {- if (!username || !password) {- return null;- }-- let decryptedPassword = decrypt(password);- const location = `${workdir}/.docker`;-- try {- await fs.mkdir(`${workdir}/.docker`);- } catch (error) {- // console.log(error);- }- const payload = JSON.stringify({- auths: {- [url]: {- auth: Buffer.from(`${username}:${decryptedPassword}`).toString('base64')- }- }- });- await fs.writeFile(`${location}/config.json`, payload);- return location;-}-export async function buildImage({- applicationId,- tag,- workdir,- buildId,- dockerId,- isCache = false,- debug = false,- dockerFileLocation = '/Dockerfile',- commit,- forceRebuild = false-}) {- if (isCache) {- await saveBuildLog({ line: `Building cache image...`, buildId, applicationId });- } else {- await saveBuildLog({ line: `Building production image...`, buildId, applicationId });- }- const dockerFile = isCache ? `${dockerFileLocation}-cache` : `${dockerFileLocation}`;- const cache = `${applicationId}:${tag}${isCache ? '-cache' : ''}`;- let location = null;-- const { dockerRegistry } = await prisma.application.findUnique({- where: { id: applicationId },- select: { dockerRegistry: true }- });- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await saveDockerRegistryCredentials({ url, username, password, workdir });- }-- await executeCommand({- stream: true,- debug,- buildId,- applicationId,- dockerId,- command: `docker ${location ? `--config ${location}` : ''} build ${- forceRebuild ? '--no-cache' : ''- } --progress plain -f ${workdir}/${dockerFile} -t ${cache} --build-arg SOURCE_COMMIT=${commit} ${workdir}`- });-- const { status } = await prisma.build.findUnique({ where: { id: buildId } });- if (status === 'canceled') {- throw new Error('Canceled.');- }-}-export function makeLabelForSimpleDockerfile({ applicationId, port, type }) {- return [- 'coolify.managed=true',- `coolify.version=${version}`,- `coolify.applicationId=${applicationId}`,- `coolify.type=standalone-application`- ];-}-export function makeLabelForStandaloneApplication({- applicationId,- fqdn,- name,- type,- pullmergeRequestId = null,- buildPack,- repository,- branch,- projectId,- port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory-}) {- if (pullmergeRequestId) {- const protocol = fqdn.startsWith('https://') ? 'https' : 'http';- const domain = getDomain(fqdn);- fqdn = `${protocol}://${pullmergeRequestId}.${domain}`;- }- return [- 'coolify.managed=true',- `coolify.version=${version}`,- `coolify.applicationId=${applicationId}`,- `coolify.type=standalone-application`,- `coolify.name=${name}`,- `coolify.configuration=${base64Encode(- JSON.stringify({- applicationId,- fqdn,- name,- type,- pullmergeRequestId,- buildPack,- repository,- branch,- projectId,- port,- commit,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory- })- )}`- ];-}--export async function buildCacheImageWithNode(data, imageForBuild) {- const {- workdir,- buildId,- baseDirectory,- installCommand,- buildCommand,- secrets,- pullmergeRequestId- } = data;- const isPnpm = checkPnpm(installCommand, buildCommand);- const Dockerfile: Array<string> = [];- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');- }- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- if (installCommand) {- Dockerfile.push(`RUN ${installCommand}`);- }- Dockerfile.push(`RUN ${buildCommand}`);- await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));- await buildImage({ ...data, isCache: true });-}--export async function buildCacheImageForLaravel(data, imageForBuild) {- const { workdir, buildId, secrets, pullmergeRequestId } = data;- const Dockerfile: Array<string> = [];- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push(`COPY *.json *.mix.js /app/`);- Dockerfile.push(`COPY resources /app/resources`);- Dockerfile.push(`RUN yarn install && yarn production`);- await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));- await buildImage({ ...data, isCache: true });-}--export async function buildCacheImageWithCargo(data, imageForBuild) {- const { applicationId, workdir, buildId } = data;-- const Dockerfile: Array<string> = [];- Dockerfile.push(`FROM ${imageForBuild} as planner-${applicationId}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push('RUN cargo install cargo-chef');- Dockerfile.push('COPY . .');- Dockerfile.push('RUN cargo chef prepare --recipe-path recipe.json');- Dockerfile.push(`FROM ${imageForBuild}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push('RUN cargo install cargo-chef');- Dockerfile.push(`COPY --from=planner-${applicationId} /app/recipe.json recipe.json`);- Dockerfile.push('RUN cargo chef cook --release --recipe-path recipe.json');- await fs.writeFile(`${workdir}/Dockerfile-cache`, Dockerfile.join('\n'));- await buildImage({ ...data, isCache: true });-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/compose.ts b/apps/trpc-experimental/server/src/lib/buildPacks/compose.tsdeleted file mode 100644index f34e1fddd9..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/compose.ts+++ /dev/null@@ -1,137 +0,0 @@-import { promises as fs } from 'fs';-import { saveBuildLog } from './common';-import yaml from 'js-yaml';-import { generateSecrets } from '../common';-import { defaultComposeConfiguration } from '../docker';-import { executeCommand } from '../executeCommand';--export default async function (data) {- let {- applicationId,- debug,- buildId,- dockerId,- network,- volumes,- labels,- workdir,- baseDirectory,- secrets,- pullmergeRequestId,- dockerComposeConfiguration,- dockerComposeFileLocation- } = data;- const fileYaml = `${workdir}${baseDirectory}${dockerComposeFileLocation}`;- const dockerComposeRaw = await fs.readFile(fileYaml, 'utf8');- const dockerComposeYaml = yaml.load(dockerComposeRaw);- if (!dockerComposeYaml.services) {- throw 'No Services found in docker-compose file.';- }- let envs = [];- let buildEnvs = [];- if (secrets.length > 0) {- envs = [...envs, ...generateSecrets(secrets, pullmergeRequestId, false, null)];- buildEnvs = [...buildEnvs, ...generateSecrets(secrets, pullmergeRequestId, true, null, true)];- }-- const composeVolumes = [];- if (volumes.length > 0) {- for (const volume of volumes) {- let [v, path] = volume.split(':');- composeVolumes[v] = {- name: v- };- }- }-- let networks = {};- for (let [key, value] of Object.entries(dockerComposeYaml.services)) {- value['container_name'] = `${applicationId}-${key}`;-- let environment = typeof value['environment'] === 'undefined' ? [] : value['environment'];- if (Object.keys(environment).length > 0) {- environment = Object.entries(environment).map(([key, value]) => `${key}=${value}`);- }- value['environment'] = [...environment, ...envs];-- let build = typeof value['build'] === 'undefined' ? [] : value['build'];- if (typeof build === 'string') {- build = { context: build };- }- const buildArgs = typeof build['args'] === 'undefined' ? [] : build['args'];- let finalArgs = [...buildEnvs];- if (Object.keys(buildArgs).length > 0) {- for (const arg of buildArgs) {- const [key, _] = arg.split('=');- if (finalArgs.filter((env) => env.startsWith(key)).length === 0) {- finalArgs.push(arg);- }- }- }- value['build'] = {- ...build,- args: finalArgs- };-- value['labels'] = labels;- // TODO: If we support separated volume for each service, we need to add it here- if (value['volumes']?.length > 0) {- value['volumes'] = value['volumes'].map((volume) => {- let [v, path, permission] = volume.split(':');- if (!path) {- path = v;- v = `${applicationId}${v.replace(/\//gi, '-').replace(/\./gi, '')}`;- } else {- v = `${applicationId}${v.replace(/\//gi, '-').replace(/\./gi, '')}`;- }- composeVolumes[v] = {- name: v- };- return `${v}:${path}${permission ? ':' + permission : ''}`;- });- }- if (volumes.length > 0) {- for (const volume of volumes) {- value['volumes'].push(volume);- }- }- if (dockerComposeConfiguration[key].port) {- value['expose'] = [dockerComposeConfiguration[key].port];- }- if (value['networks']?.length > 0) {- value['networks'].forEach((network) => {- networks[network] = {- name: network- };- });- }- value['networks'] = [...(value['networks'] || ''), network];- dockerComposeYaml.services[key] = {- ...dockerComposeYaml.services[key],- restart: defaultComposeConfiguration(network).restart,- deploy: defaultComposeConfiguration(network).deploy- };- }- if (Object.keys(composeVolumes).length > 0) {- dockerComposeYaml['volumes'] = { ...composeVolumes };- }- dockerComposeYaml['networks'] = Object.assign({ ...networks }, { [network]: { external: true } });-- await fs.writeFile(fileYaml, yaml.dump(dockerComposeYaml));- await executeCommand({- debug,- buildId,- applicationId,- dockerId,- command: `docker compose --project-directory ${workdir} -f ${fileYaml} pull`- });- await saveBuildLog({ line: 'Pulling images from Compose file...', buildId, applicationId });- await executeCommand({- debug,- buildId,- applicationId,- dockerId,- command: `docker compose --project-directory ${workdir} -f ${fileYaml} build --progress plain`- });- await saveBuildLog({ line: 'Building images from Compose file...', buildId, applicationId });-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/deno.ts b/apps/trpc-experimental/server/src/lib/buildPacks/deno.tsdeleted file mode 100644index 2649e3d0a7..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/deno.ts+++ /dev/null@@ -1,52 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- workdir,- port,- baseDirectory,- secrets,- pullmergeRequestId,- denoMainFile,- denoOptions,- buildId- } = data;- const Dockerfile: Array<string> = [];-- let depsFound = false;- try {- await fs.readFile(`${workdir}${baseDirectory || ''}/deps.ts`);- depsFound = true;- } catch (error) {}-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (depsFound) {- Dockerfile.push(`COPY .${baseDirectory || ''}/deps.ts /app`);- Dockerfile.push(`RUN deno cache deps.ts`);- }- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- Dockerfile.push(`RUN deno cache ${denoMainFile}`);- Dockerfile.push(`ENV NO_COLOR true`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD deno run ${denoOptions || ''} ${denoMainFile}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/docker.ts b/apps/trpc-experimental/server/src/lib/buildPacks/docker.tsdeleted file mode 100644index e02103f88c..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/docker.ts+++ /dev/null@@ -1,27 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildImage } from './common';--export default async function (data) {- let { workdir, buildId, baseDirectory, secrets, pullmergeRequestId, dockerFileLocation } = data;- const file = `${workdir}${baseDirectory}${dockerFileLocation}`;- data.workdir = `${workdir}${baseDirectory}`;- const DockerfileRaw = await fs.readFile(`${file}`, 'utf8');- const Dockerfile: Array<string> = DockerfileRaw.toString().trim().split('\n');- Dockerfile.forEach((line, index) => {- if (line.startsWith('FROM')) {- Dockerfile.splice(index + 1, 0, `LABEL coolify.buildId=${buildId}`);- }- });- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.forEach((line, index) => {- if (line.startsWith('FROM')) {- Dockerfile.splice(index + 1, 0, env);- }- });- });- }- await fs.writeFile(`${data.workdir}${dockerFileLocation}`, Dockerfile.join('\n'));- await buildImage(data);-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/gatsby.ts b/apps/trpc-experimental/server/src/lib/buildPacks/gatsby.tsdeleted file mode 100644index fbb0a933f8..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/gatsby.ts+++ /dev/null@@ -1,28 +0,0 @@-import { promises as fs } from 'fs';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, imageforBuild): Promise<void> => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${imageforBuild}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/heroku.ts b/apps/trpc-experimental/server/src/lib/buildPacks/heroku.tsdeleted file mode 100644index a58fd8fcf6..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/heroku.ts+++ /dev/null@@ -1,17 +0,0 @@-import { executeCommand } from "../executeCommand";-import { saveBuildLog } from "./common";--export default async function (data: any): Promise<void> {- const { buildId, applicationId, tag, dockerId, debug, workdir, baseDirectory, baseImage } = data- try {- await saveBuildLog({ line: `Building production image...`, buildId, applicationId });- await executeCommand({- buildId,- debug,- dockerId,- command: `pack build -p ${workdir}${baseDirectory} ${applicationId}:${tag} --builder ${baseImage}`- })- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/index.ts b/apps/trpc-experimental/server/src/lib/buildPacks/index.tsdeleted file mode 100644index fa10e4bcdc..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/index.ts+++ /dev/null@@ -1,41 +0,0 @@-import node from './node';-import staticApp from './static';-import docker from './docker';-import gatsby from './gatsby';-import svelte from './svelte';-import react from './react';-import nestjs from './nestjs';-import nextjs from './nextjs';-import nuxtjs from './nuxtjs';-import vuejs from './vuejs';-import php from './php';-import rust from './rust';-import astro from './static';-import eleventy from './static';-import python from './python';-import deno from './deno';-import laravel from './laravel';-import heroku from './heroku';-import compose from './compose';--export {- node,- staticApp,- docker,- gatsby,- svelte,- react,- nestjs,- nextjs,- nuxtjs,- vuejs,- php,- rust,- astro,- eleventy,- python,- deno,- laravel,- heroku,- compose-};diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/laravel.ts b/apps/trpc-experimental/server/src/lib/buildPacks/laravel.tsdeleted file mode 100644index 159e8d9ca5..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/laravel.ts+++ /dev/null@@ -1,46 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildCacheImageForLaravel, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const { workdir, applicationId, tag, buildId, port, secrets, pullmergeRequestId } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`ENV WEB_DOCUMENT_ROOT /app/public`);- Dockerfile.push(`COPY --chown=application:application composer.* ./`);- Dockerfile.push(`COPY --chown=application:application database/ database/`);- Dockerfile.push(- `RUN composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --prefer-dist`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/public/js/ /app/public/js/`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/public/css/ /app/public/css/`- );- Dockerfile.push(- `COPY --chown=application:application --from=${applicationId}:${tag}-cache /app/mix-manifest.json /app/public/mix-manifest.json`- );- Dockerfile.push(`COPY --chown=application:application . ./`);- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- const { baseImage, baseBuildImage } = data;- try {- await buildCacheImageForLaravel(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/nestjs.ts b/apps/trpc-experimental/server/src/lib/buildPacks/nestjs.tsdeleted file mode 100644index 90c99301b7..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/nestjs.ts+++ /dev/null@@ -1,31 +0,0 @@-import { promises as fs } from 'fs';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const { buildId, applicationId, tag, port, startCommand, workdir, baseDirectory } = data;- const Dockerfile: Array<string> = [];- const isPnpm = startCommand.includes('pnpm');-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (isPnpm) {- Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${baseDirectory || ''} ./`);-- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/nextjs.ts b/apps/trpc-experimental/server/src/lib/buildPacks/nextjs.tsdeleted file mode 100644index 957dc5bcec..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/nextjs.ts+++ /dev/null@@ -1,66 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildCacheImageWithNode, buildImage, checkPnpm } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- applicationId,- buildId,- tag,- workdir,- publishDirectory,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- deploymentType,- baseImage- } = data;- const Dockerfile: Array<string> = [];- const isPnpm = checkPnpm(installCommand, buildCommand, startCommand);- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');- }- if (deploymentType === 'node') {- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- Dockerfile.push(`RUN ${installCommand}`);- Dockerfile.push(`RUN ${buildCommand}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- } else if (deploymentType === 'static') {- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- Dockerfile.push(`EXPOSE 80`);- }-- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage, deploymentType, buildCommand } = data;- if (deploymentType === 'node') {- await createDockerfile(data, baseImage);- await buildImage(data);- } else if (deploymentType === 'static') {- if (buildCommand) await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- }- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/node.ts b/apps/trpc-experimental/server/src/lib/buildPacks/node.tsdeleted file mode 100644index 8ccfcc68e9..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/node.ts+++ /dev/null@@ -1,49 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildImage, checkPnpm } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- workdir,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- buildId- } = data;- const Dockerfile: Array<string> = [];- const isPnpm = checkPnpm(installCommand, buildCommand, startCommand);-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');- }- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- Dockerfile.push(`RUN ${installCommand}`);- if (buildCommand) {- Dockerfile.push(`RUN ${buildCommand}`);- }- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage } = data;- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/nuxtjs.ts b/apps/trpc-experimental/server/src/lib/buildPacks/nuxtjs.tsdeleted file mode 100644index 957dc5bcec..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/nuxtjs.ts+++ /dev/null@@ -1,66 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildCacheImageWithNode, buildImage, checkPnpm } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- applicationId,- buildId,- tag,- workdir,- publishDirectory,- port,- installCommand,- buildCommand,- startCommand,- baseDirectory,- secrets,- pullmergeRequestId,- deploymentType,- baseImage- } = data;- const Dockerfile: Array<string> = [];- const isPnpm = checkPnpm(installCommand, buildCommand, startCommand);- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (isPnpm) {- Dockerfile.push('RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7');- }- if (deploymentType === 'node') {- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- Dockerfile.push(`RUN ${installCommand}`);- Dockerfile.push(`RUN ${buildCommand}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ${startCommand}`);- } else if (deploymentType === 'static') {- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- Dockerfile.push(`EXPOSE 80`);- }-- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage, deploymentType, buildCommand } = data;- if (deploymentType === 'node') {- await createDockerfile(data, baseImage);- await buildImage(data);- } else if (deploymentType === 'static') {- if (buildCommand) await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- }- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/php.ts b/apps/trpc-experimental/server/src/lib/buildPacks/php.tsdeleted file mode 100644index abfd7af4f9..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/php.ts+++ /dev/null@@ -1,50 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildImage } from './common';--const createDockerfile = async (data, image, htaccessFound): Promise<void> => {- const { workdir, baseDirectory, buildId, port, secrets, pullmergeRequestId } = data;- const Dockerfile: Array<string> = [];- let composerFound = false;- try {- await fs.readFile(`${workdir}${baseDirectory || ''}/composer.json`);- composerFound = true;- } catch (error) {}-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`COPY .${baseDirectory || ''} /app`);- if (htaccessFound) {- Dockerfile.push(`COPY .${baseDirectory || ''}/.htaccess ./`);- }- if (composerFound) {- Dockerfile.push(`RUN composer install`);- }-- Dockerfile.push(`COPY /entrypoint.sh /opt/docker/provision/entrypoint.d/30-entrypoint.sh`);- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- const { workdir, baseDirectory, baseImage } = data;- try {- let htaccessFound = false;- try {- await fs.readFile(`${workdir}${baseDirectory || ''}/.htaccess`);- htaccessFound = true;- } catch (e) {- //- }- await createDockerfile(data, baseImage, htaccessFound);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/python.ts b/apps/trpc-experimental/server/src/lib/buildPacks/python.tsdeleted file mode 100644index 56294660fa..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/python.ts+++ /dev/null@@ -1,67 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- workdir,- port,- baseDirectory,- secrets,- pullmergeRequestId,- pythonWSGI,- pythonModule,- pythonVariable,- buildId- } = data;- const Dockerfile: Array<string> = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (pythonWSGI?.toLowerCase() === 'gunicorn') {- Dockerfile.push(`RUN pip install gunicorn`);- } else if (pythonWSGI?.toLowerCase() === 'uvicorn') {- Dockerfile.push(`RUN pip install uvicorn`);- } else if (pythonWSGI?.toLowerCase() === 'uwsgi') {- Dockerfile.push(`RUN apk add --no-cache uwsgi-python3`);- // Dockerfile.push(`RUN pip install --no-cache-dir uwsgi`)- }-- try {- await fs.stat(`${workdir}${baseDirectory || ''}/requirements.txt`);- Dockerfile.push(`COPY .${baseDirectory || ''}/requirements.txt ./`);- Dockerfile.push(`RUN pip install --no-cache-dir -r .${baseDirectory || ''}/requirements.txt`);- } catch (e) {- //- }- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- Dockerfile.push(`EXPOSE ${port}`);- if (pythonWSGI?.toLowerCase() === 'gunicorn') {- Dockerfile.push(`CMD gunicorn -w=4 -b=0.0.0.0:8000 ${pythonModule}:${pythonVariable}`);- } else if (pythonWSGI?.toLowerCase() === 'uvicorn') {- Dockerfile.push(`CMD uvicorn ${pythonModule}:${pythonVariable} --port ${port} --host 0.0.0.0`);- } else if (pythonWSGI?.toLowerCase() === 'uwsgi') {- Dockerfile.push(- `CMD uwsgi --master -p 4 --http-socket 0.0.0.0:8000 --uid uwsgi --plugins python3 --protocol uwsgi --wsgi ${pythonModule}:${pythonVariable}`- );- } else {- Dockerfile.push(`CMD python ${pythonModule}`);- }-- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/react.ts b/apps/trpc-experimental/server/src/lib/buildPacks/react.tsdeleted file mode 100644index e85704d3f1..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/react.ts+++ /dev/null@@ -1,28 +0,0 @@-import { promises as fs } from 'fs';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/rust.ts b/apps/trpc-experimental/server/src/lib/buildPacks/rust.tsdeleted file mode 100644index f3c9ef918a..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/rust.ts+++ /dev/null@@ -1,40 +0,0 @@-import { promises as fs } from 'fs';-import TOML from '@iarna/toml';-import { buildCacheImageWithCargo, buildImage } from './common';-import { executeCommand } from '../executeCommand';--const createDockerfile = async (data, image, name): Promise<void> => {- const { workdir, port, applicationId, tag, buildId } = data;- const Dockerfile: Array<string> = [];- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/target target`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /usr/local/cargo /usr/local/cargo`);- Dockerfile.push(`COPY . .`);- Dockerfile.push(`RUN cargo build --release --bin ${name}`);- Dockerfile.push('FROM debian:buster-slim');- Dockerfile.push('WORKDIR /app');- Dockerfile.push(- `RUN apt-get update -y && apt-get install -y --no-install-recommends openssl libcurl4 ca-certificates && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*`- );- Dockerfile.push(`RUN update-ca-certificates`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/target/release/${name} ${name}`);- Dockerfile.push(`EXPOSE ${port}`);- Dockerfile.push(`CMD ["/app/${name}"]`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { workdir, baseImage, baseBuildImage } = data;- const { stdout: cargoToml } = await executeCommand({ command: `cat ${workdir}/Cargo.toml` });- const parsedToml: any = TOML.parse(cargoToml);- const name = parsedToml.package.name;- await buildCacheImageWithCargo(data, baseBuildImage);- await createDockerfile(data, baseImage, name);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/static.ts b/apps/trpc-experimental/server/src/lib/buildPacks/static.tsdeleted file mode 100644index 19b13cef38..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/static.ts+++ /dev/null@@ -1,54 +0,0 @@-import { promises as fs } from 'fs';-import { generateSecrets } from '../common';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const {- applicationId,- tag,- workdir,- buildCommand,- baseDirectory,- publishDirectory,- secrets,- pullmergeRequestId,- baseImage,- buildId,- port- } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${image}`);- if (baseImage?.includes('httpd')) {- Dockerfile.push('WORKDIR /usr/local/apache2/htdocs/');- } else {- Dockerfile.push('WORKDIR /app');- }- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- if (secrets.length > 0) {- generateSecrets(secrets, pullmergeRequestId, true).forEach((env) => {- Dockerfile.push(env);- });- }- if (buildCommand) {- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- } else {- Dockerfile.push(`COPY .${baseDirectory || ''} ./`);- }- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- if (data.buildCommand) await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/svelte.ts b/apps/trpc-experimental/server/src/lib/buildPacks/svelte.tsdeleted file mode 100644index 56fc12d7a0..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/svelte.ts+++ /dev/null@@ -1,28 +0,0 @@-import { promises as fs } from 'fs';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/buildPacks/vuejs.ts b/apps/trpc-experimental/server/src/lib/buildPacks/vuejs.tsdeleted file mode 100644index 56fc12d7a0..0000000000--- a/apps/trpc-experimental/server/src/lib/buildPacks/vuejs.ts+++ /dev/null@@ -1,28 +0,0 @@-import { promises as fs } from 'fs';-import { buildCacheImageWithNode, buildImage } from './common';--const createDockerfile = async (data, image): Promise<void> => {- const { applicationId, tag, workdir, publishDirectory, baseImage, buildId, port } = data;- const Dockerfile: Array<string> = [];-- Dockerfile.push(`FROM ${image}`);- Dockerfile.push('WORKDIR /app');- Dockerfile.push(`LABEL coolify.buildId=${buildId}`);- Dockerfile.push(`COPY --from=${applicationId}:${tag}-cache /app/${publishDirectory} ./`);- if (baseImage?.includes('nginx')) {- Dockerfile.push(`COPY /nginx.conf /etc/nginx/nginx.conf`);- }- Dockerfile.push(`EXPOSE ${port}`);- await fs.writeFile(`${workdir}/Dockerfile`, Dockerfile.join('\n'));-};--export default async function (data) {- try {- const { baseImage, baseBuildImage } = data;- await buildCacheImageWithNode(data, baseBuildImage);- await createDockerfile(data, baseImage);- await buildImage(data);- } catch (error) {- throw error;- }-}diff --git a/apps/trpc-experimental/server/src/lib/common.ts b/apps/trpc-experimental/server/src/lib/common.tsdeleted file mode 100644index 70893ff3b7..0000000000--- a/apps/trpc-experimental/server/src/lib/common.ts+++ /dev/null@@ -1,939 +0,0 @@-import type { Permission, Setting, Team, TeamInvitation, User } from '@prisma/client';-import { prisma } from '../prisma';-import bcrypt from 'bcryptjs';-import crypto from 'crypto';-import { promises as dns } from 'dns';-import fs from 'fs/promises';-import { uniqueNamesGenerator, adjectives, colors, animals } from 'unique-names-generator';-import type { Config } from 'unique-names-generator';-import { env } from '../env';-import { day } from './dayjs';-import { executeCommand } from './executeCommand';-import { saveBuildLog } from './logging';-import { checkContainer } from './docker';-import yaml from 'js-yaml';--const customConfig: Config = {- dictionaries: [adjectives, colors, animals],- style: 'capital',- separator: ' ',- length: 3-};-const algorithm = 'aes-256-ctr';-export const isDev = env.NODE_ENV === 'development';-export const version = '3.13.0';-export const sentryDSN =- 'https://[email protected]/4504236622217216';-export const defaultTraefikImage = `traefik:v2.8`;-export function getAPIUrl() {- if (process.env.GITPOD_WORKSPACE_URL) {- const { href } = new URL(process.env.GITPOD_WORKSPACE_URL);- const newURL = href.replace('https://', 'https://3001-').replace(/\/$/, '');- return newURL;- }- if (process.env.CODESANDBOX_HOST) {- return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3001')}`;- }- return isDev ? 'http://host.docker.internal:3001' : 'http://localhost:3000';-}--export function getUIUrl() {- if (process.env.GITPOD_WORKSPACE_URL) {- const { href } = new URL(process.env.GITPOD_WORKSPACE_URL);- const newURL = href.replace('https://', 'https://3000-').replace(/\/$/, '');- return newURL;- }- if (process.env.CODESANDBOX_HOST) {- return `https://${process.env.CODESANDBOX_HOST.replace(/\$PORT/, '3000')}`;- }- return 'http://localhost:3000';-}-const mainTraefikEndpoint = isDev- ? `${getAPIUrl()}/webhooks/traefik/main.json`- : 'http://coolify:3000/webhooks/traefik/main.json';--const otherTraefikEndpoint = isDev- ? `${getAPIUrl()}/webhooks/traefik/other.json`- : 'http://coolify:3000/webhooks/traefik/other.json';--export async function listSettings(): Promise<Setting | null> {- return await prisma.setting.findUnique({ where: { id: '0' } });-}-export async function getCurrentUser(- userId: string-): Promise<(User & { permission: Permission[]; teams: Team[] }) | null> {- return await prisma.user.findUnique({- where: { id: userId },- include: { teams: true, permission: true }- });-}-export async function getTeamInvitation(userId: string): Promise<TeamInvitation[]> {- return await prisma.teamInvitation.findMany({ where: { uid: userId } });-}--export async function hashPassword(password: string): Promise<string> {- const saltRounds = 15;- return bcrypt.hash(password, saltRounds);-}-export async function comparePassword(password: string, hashedPassword: string): Promise<boolean> {- return bcrypt.compare(password, hashedPassword);-}-export const uniqueName = (): string => uniqueNamesGenerator(customConfig);--export const decrypt = (hashString: string) => {- if (hashString) {- try {- const hash = JSON.parse(hashString);- const decipher = crypto.createDecipheriv(- algorithm,- env.COOLIFY_SECRET_KEY,- Buffer.from(hash.iv, 'hex')- );- const decrpyted = Buffer.concat([- decipher.update(Buffer.from(hash.content, 'hex')),- decipher.final()- ]);- return decrpyted.toString();- } catch (error) {- if (error instanceof Error) {- console.log({ decryptionError: error.message });- }- return hashString;- }- }- return false;-};--export function generateRangeArray(start: number, end: number) {- return Array.from({ length: end - start }, (_v, k) => k + start);-}-export function generateTimestamp(): string {- return `${day().format('HH:mm:ss.SSS')}`;-}-export const encrypt = (text: string) => {- if (text) {- const iv = crypto.randomBytes(16);- const cipher = crypto.createCipheriv(algorithm, env.COOLIFY_SECRET_KEY, iv);- const encrypted = Buffer.concat([cipher.update(text.trim()), cipher.final()]);- return JSON.stringify({- iv: iv.toString('hex'),- content: encrypted.toString('hex')- });- }- return false;-};--export async function getTemplates() {- const templatePath = isDev ? './templates.json' : '/app/templates.json';- const open = await fs.open(templatePath, 'r');- try {- let data = await open.readFile({ encoding: 'utf-8' });- let jsonData = JSON.parse(data);- if (isARM(process.arch)) {- jsonData = jsonData.filter((d: { arch: string }) => d.arch !== 'amd64');- }- return jsonData;- } catch (error) {- return [];- } finally {- await open?.close();- }-}-export function isARM(arch: string) {- if (arch === 'arm' || arch === 'arm64' || arch === 'aarch' || arch === 'aarch64') {- return true;- }- return false;-}--export async function removeService({ id }: { id: string }): Promise<void> {- await prisma.serviceSecret.deleteMany({ where: { serviceId: id } });- await prisma.serviceSetting.deleteMany({ where: { serviceId: id } });- await prisma.servicePersistentStorage.deleteMany({ where: { serviceId: id } });- await prisma.meiliSearch.deleteMany({ where: { serviceId: id } });- await prisma.fider.deleteMany({ where: { serviceId: id } });- await prisma.ghost.deleteMany({ where: { serviceId: id } });- await prisma.umami.deleteMany({ where: { serviceId: id } });- await prisma.hasura.deleteMany({ where: { serviceId: id } });- await prisma.plausibleAnalytics.deleteMany({ where: { serviceId: id } });- await prisma.minio.deleteMany({ where: { serviceId: id } });- await prisma.vscodeserver.deleteMany({ where: { serviceId: id } });- await prisma.wordpress.deleteMany({ where: { serviceId: id } });- await prisma.glitchTip.deleteMany({ where: { serviceId: id } });- await prisma.moodle.deleteMany({ where: { serviceId: id } });- await prisma.appwrite.deleteMany({ where: { serviceId: id } });- await prisma.searxng.deleteMany({ where: { serviceId: id } });- await prisma.weblate.deleteMany({ where: { serviceId: id } });- await prisma.taiga.deleteMany({ where: { serviceId: id } });-- await prisma.service.delete({ where: { id } });-}--export const createDirectories = async ({- repository,- buildId-}: {- repository: string;- buildId: string;-}): Promise<{ workdir: string; repodir: string }> => {- if (repository) repository = repository.replaceAll(' ', '');- const repodir = `/tmp/build-sources/${repository}/`;- const workdir = `/tmp/build-sources/${repository}/${buildId}`;- let workdirFound = false;- try {- workdirFound = !!(await fs.stat(workdir));- } catch (error) {}- if (workdirFound) {- await executeCommand({ command: `rm -fr ${workdir}` });- }- await executeCommand({ command: `mkdir -p ${workdir}` });- return {- workdir,- repodir- };-};--export async function saveDockerRegistryCredentials({ url, username, password, workdir }) {- if (!username || !password) {- return null;- }-- let decryptedPassword = decrypt(password);- const location = `${workdir}/.docker`;-- try {- await fs.mkdir(`${workdir}/.docker`);- } catch (error) {- console.log(error);- }- const payload = JSON.stringify({- auths: {- [url]: {- auth: Buffer.from(`${username}:${decryptedPassword}`).toString('base64')- }- }- });- await fs.writeFile(`${location}/config.json`, payload);- return location;-}-export function getDomain(domain: string): string {- if (domain) {- return domain?.replace('https://', '').replace('http://', '');- } else {- return '';- }-}--export async function isDomainConfigured({- id,- fqdn,- checkOwn = false,- remoteIpAddress = undefined-}: {- id: string;- fqdn: string;- checkOwn?: boolean;- remoteIpAddress?: string;-}): Promise<boolean> {- const domain = getDomain(fqdn);- const nakedDomain = domain.replace('www.', '');- const foundApp = await prisma.application.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } },- { dockerComposeConfiguration: { contains: `//${nakedDomain}` } },- { dockerComposeConfiguration: { contains: `//www.${nakedDomain}` } }- ],- id: { not: id },- destinationDocker: {- remoteIpAddress- }- },- select: { fqdn: true }- });- const foundService = await prisma.service.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } }- ],- id: { not: checkOwn ? undefined : id },- destinationDocker: {- remoteIpAddress- }- },- select: { fqdn: true }- });-- const coolifyFqdn = await prisma.setting.findFirst({- where: {- OR: [- { fqdn: { endsWith: `//${nakedDomain}` } },- { fqdn: { endsWith: `//www.${nakedDomain}` } }- ],- id: { not: id }- },- select: { fqdn: true }- });- return !!(foundApp || foundService || coolifyFqdn);-}--export async function checkExposedPort({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress-}: {- id: string;- configuredPort?: number;- exposePort: number;- engine: string;- remoteEngine: boolean;- remoteIpAddress?: string;-}) {- if (exposePort < 1024 || exposePort > 65535) {- throw { status: 500, message: `Exposed Port needs to be between 1024 and 65535.` };- }- if (configuredPort) {- if (configuredPort !== exposePort) {- const availablePort = await getFreeExposedPort(- id,- exposePort,- engine,- remoteEngine,- remoteIpAddress- );- if (availablePort.toString() !== exposePort.toString()) {- throw { status: 500, message: `Port ${exposePort} is already in use.` };- }- }- } else {- const availablePort = await getFreeExposedPort(- id,- exposePort,- engine,- remoteEngine,- remoteIpAddress- );- if (availablePort.toString() !== exposePort.toString()) {- throw { status: 500, message: `Port ${exposePort} is already in use.` };- }- }-}-export async function getFreeExposedPort(id, exposePort, engine, remoteEngine, remoteIpAddress) {- const { default: checkPort } = await import('is-port-reachable');- if (remoteEngine) {- const applicationUsed = await (- await prisma.application.findMany({- where: {- exposePort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { exposePort: true }- })- ).map((a) => a.exposePort);- const serviceUsed = await (- await prisma.service.findMany({- where: {- exposePort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { exposePort: true }- })- ).map((a) => a.exposePort);- const usedPorts = [...applicationUsed, ...serviceUsed];- if (usedPorts.includes(exposePort)) {- return false;- }- const found = await checkPort(exposePort, { host: remoteIpAddress });- if (!found) {- return exposePort;- }- return false;- } else {- const applicationUsed = await (- await prisma.application.findMany({- where: { exposePort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { exposePort: true }- })- ).map((a) => a.exposePort);- const serviceUsed = await (- await prisma.service.findMany({- where: { exposePort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { exposePort: true }- })- ).map((a) => a.exposePort);- const usedPorts = [...applicationUsed, ...serviceUsed];- if (usedPorts.includes(exposePort)) {- return false;- }- const found = await checkPort(exposePort, { host: 'localhost' });- if (!found) {- return exposePort;- }- return false;- }-}--export async function checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts }): Promise<any> {- const { isIP } = await import('is-ip');- const domain = getDomain(fqdn);- const domainDualCert = domain.includes('www.') ? domain.replace('www.', '') : `www.${domain}`;-- const { DNSServers } = await listSettings();- if (DNSServers) {- dns.setServers([...DNSServers.split(',')]);- }-- let resolves = [];- try {- if (isIP(hostname)) {- resolves = [hostname];- } else {- resolves = await dns.resolve4(hostname);- }- } catch (error) {- throw { status: 500, message: `Could not determine IP address for ${hostname}.` };- }-- if (dualCerts) {- try {- const ipDomain = await dns.resolve4(domain);- const ipDomainDualCert = await dns.resolve4(domainDualCert);-- let ipDomainFound = false;- let ipDomainDualCertFound = false;-- for (const ip of ipDomain) {- if (resolves.includes(ip)) {- ipDomainFound = true;- }- }- for (const ip of ipDomainDualCert) {- if (resolves.includes(ip)) {- ipDomainDualCertFound = true;- }- }- if (ipDomainFound && ipDomainDualCertFound) return { status: 200 };- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- } catch (error) {- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- }- } else {- try {- const ipDomain = await dns.resolve4(domain);- let ipDomainFound = false;- for (const ip of ipDomain) {- if (resolves.includes(ip)) {- ipDomainFound = true;- }- }- if (ipDomainFound) return { status: 200 };- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- } catch (error) {- throw {- status: 500,- message: `DNS not set correctly or propogated.<br>Please check your DNS settings.`- };- }- }-}-export const setDefaultConfiguration = async (data: any) => {- let {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- } = data;- //@ts-ignore- const template = scanningTemplates[buildPack];- if (!port) {- port = template?.port || 3000;-- if (buildPack === 'static') port = 80;- else if (buildPack === 'node') port = 3000;- else if (buildPack === 'php') port = 80;- else if (buildPack === 'python') port = 8000;- }- if (!installCommand && buildPack !== 'static' && buildPack !== 'laravel')- installCommand = template?.installCommand || 'yarn install';- if (!startCommand && buildPack !== 'static' && buildPack !== 'laravel')- startCommand = template?.startCommand || 'yarn start';- if (!buildCommand && buildPack !== 'static' && buildPack !== 'laravel')- buildCommand = template?.buildCommand || null;- if (!publishDirectory) publishDirectory = template?.publishDirectory || null;- if (baseDirectory) {- if (!baseDirectory.startsWith('/')) baseDirectory = `/${baseDirectory}`;- if (baseDirectory.endsWith('/') && baseDirectory !== '/')- baseDirectory = baseDirectory.slice(0, -1);- }- if (dockerFileLocation) {- if (!dockerFileLocation.startsWith('/')) dockerFileLocation = `/${dockerFileLocation}`;- if (dockerFileLocation.endsWith('/')) dockerFileLocation = dockerFileLocation.slice(0, -1);- } else {- dockerFileLocation = '/Dockerfile';- }- if (dockerComposeFileLocation) {- if (!dockerComposeFileLocation.startsWith('/'))- dockerComposeFileLocation = `/${dockerComposeFileLocation}`;- if (dockerComposeFileLocation.endsWith('/'))- dockerComposeFileLocation = dockerComposeFileLocation.slice(0, -1);- } else {- dockerComposeFileLocation = '/Dockerfile';- }- if (!denoMainFile) {- denoMainFile = 'main.ts';- }-- return {- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- };-};--export const scanningTemplates = {- '@sveltejs/kit': {- buildPack: 'nodejs'- },- astro: {- buildPack: 'astro'- },- '@11ty/eleventy': {- buildPack: 'eleventy'- },- svelte: {- buildPack: 'svelte'- },- '@nestjs/core': {- buildPack: 'nestjs'- },- next: {- buildPack: 'nextjs'- },- nuxt: {- buildPack: 'nuxtjs'- },- 'react-scripts': {- buildPack: 'react'- },- 'parcel-bundler': {- buildPack: 'static'- },- '@vue/cli-service': {- buildPack: 'vuejs'- },- vuejs: {- buildPack: 'vuejs'- },- gatsby: {- buildPack: 'gatsby'- },- 'preact-cli': {- buildPack: 'react'- }-};--export async function cleanupDB(buildId: string, applicationId: string) {- const data = await prisma.build.findUnique({ where: { id: buildId } });- if (data?.status === 'queued' || data?.status === 'running') {- await prisma.build.update({ where: { id: buildId }, data: { status: 'canceled' } });- }- await saveBuildLog({ line: 'Canceled.', buildId, applicationId });-}--export const base64Encode = (text: string): string => {- return Buffer.from(text).toString('base64');-};-export const base64Decode = (text: string): string => {- return Buffer.from(text, 'base64').toString('ascii');-};-function parseSecret(secret, isBuild) {- if (secret.value.includes('$')) {- secret.value = secret.value.replaceAll('$', '$$$$');- }- if (secret.value.includes('\\n')) {- if (isBuild) {- return `ARG ${secret.name}=${secret.value}`;- } else {- return `${secret.name}=${secret.value}`;- }- } else if (secret.value.includes(' ')) {- if (isBuild) {- return `ARG ${secret.name}='${secret.value}'`;- } else {- return `${secret.name}='${secret.value}'`;- }- } else {- if (isBuild) {- return `ARG ${secret.name}=${secret.value}`;- } else {- return `${secret.name}=${secret.value}`;- }- }-}-export function generateSecrets(- secrets: Array<any>,- pullmergeRequestId: string,- isBuild = false,- port = null,- compose = false-): Array<string> {- const envs = [];- const isPRMRSecret = secrets.filter((s) => s.isPRMRSecret);- const normalSecrets = secrets.filter((s) => !s.isPRMRSecret);- if (pullmergeRequestId && isPRMRSecret.length > 0) {- isPRMRSecret.forEach((secret) => {- if ((isBuild && !secret.isBuildSecret) || (!isBuild && secret.isBuildSecret)) {- return;- }- const build = isBuild && secret.isBuildSecret;- envs.push(parseSecret(secret, compose ? false : build));- });- }- if (!pullmergeRequestId && normalSecrets.length > 0) {- normalSecrets.forEach((secret) => {- if ((isBuild && !secret.isBuildSecret) || (!isBuild && secret.isBuildSecret)) {- return;- }- const build = isBuild && secret.isBuildSecret;- envs.push(parseSecret(secret, compose ? false : build));- });- }- const portFound = envs.filter((env) => env.startsWith('PORT'));- if (portFound.length === 0 && port && !isBuild) {- envs.push(`PORT=${port}`);- }- const nodeEnv = envs.filter((env) => env.startsWith('NODE_ENV'));- if (nodeEnv.length === 0 && !isBuild) {- envs.push(`NODE_ENV=production`);- }- return envs;-}-export function decryptApplication(application: any) {- if (application) {- if (application?.gitSource?.githubApp?.clientSecret) {- application.gitSource.githubApp.clientSecret =- decrypt(application.gitSource.githubApp.clientSecret) || null;- }- if (application?.gitSource?.githubApp?.webhookSecret) {- application.gitSource.githubApp.webhookSecret =- decrypt(application.gitSource.githubApp.webhookSecret) || null;- }- if (application?.gitSource?.githubApp?.privateKey) {- application.gitSource.githubApp.privateKey =- decrypt(application.gitSource.githubApp.privateKey) || null;- }- if (application?.gitSource?.gitlabApp?.appSecret) {- application.gitSource.gitlabApp.appSecret =- decrypt(application.gitSource.gitlabApp.appSecret) || null;- }- if (application?.secrets.length > 0) {- application.secrets = application.secrets.map((s: any) => {- s.value = decrypt(s.value) || null;- return s;- });- }-- return application;- }-}-export async function pushToRegistry(- application: any,- workdir: string,- tag: string,- imageName: string,- customTag: string-) {- const location = `${workdir}/.docker`;- const tagCommand = `docker tag ${application.id}:${tag} ${imageName}:${customTag}`;- const pushCommand = `docker --config ${location} push ${imageName}:${customTag}`;- await executeCommand({- dockerId: application.destinationDockerId,- command: tagCommand- });- await executeCommand({- dockerId: application.destinationDockerId,- command: pushCommand- });-}--export async function getContainerUsage(dockerId: string, container: string): Promise<any> {- try {- const { stdout } = await executeCommand({- dockerId,- command: `docker container stats ${container} --no-stream --no-trunc --format "{{json .}}"`- });- return JSON.parse(stdout);- } catch (err) {- return {- MemUsage: 0,- CPUPerc: 0,- NetIO: 0- };- }-}-export function fixType(type) {- return type?.replaceAll(' ', '').toLowerCase() || null;-}-const compareSemanticVersions = (a: string, b: string) => {- const a1 = a.split('.');- const b1 = b.split('.');- const len = Math.min(a1.length, b1.length);- for (let i = 0; i < len; i++) {- const a2 = +a1[i] || 0;- const b2 = +b1[i] || 0;- if (a2 !== b2) {- return a2 > b2 ? 1 : -1;- }- }- return b1.length - a1.length;-};-export async function getTags(type: string) {- try {- if (type) {- const tagsPath = isDev ? './tags.json' : '/app/tags.json';- const data = await fs.readFile(tagsPath, 'utf8');- let tags = JSON.parse(data);- if (tags) {- tags = tags.find((tag: any) => tag.name.includes(type));- tags.tags = tags.tags.sort(compareSemanticVersions).reverse();- return tags;- }- }- } catch (error) {- return [];- }-}-export function makeLabelForServices(type) {- return [- 'coolify.managed=true',- `coolify.version=${version}`,- `coolify.type=service`,- `coolify.service.type=${type}`- ];-}-export const asyncSleep = (delay: number): Promise<unknown> =>- new Promise((resolve) => setTimeout(resolve, delay));--export async function startTraefikTCPProxy(- destinationDocker: any,- id: string,- publicPort: number,- privatePort: number,- type?: string-): Promise<{ stdout: string; stderr: string }> {- const { network, id: dockerId, remoteEngine } = destinationDocker;- const container = `${id}-${publicPort}`;- const { found } = await checkContainer({ dockerId, container, remove: true });- const { ipv4, ipv6 } = await listSettings();-- let dependentId = id;- if (type === 'wordpressftp') dependentId = `${id}-ftp`;- const { found: foundDependentContainer } = await checkContainer({- dockerId,- container: dependentId,- remove: true- });- if (foundDependentContainer && !found) {- const { stdout: Config } = await executeCommand({- dockerId,- command: `docker network inspect ${network} --format '{{json .IPAM.Config }}'`- });-- const ip = JSON.parse(Config)[0].Gateway;- let traefikUrl = otherTraefikEndpoint;- if (remoteEngine) {- let ip = null;- if (isDev) {- ip = getAPIUrl();- } else {- ip = `http://${ipv4 || ipv6}:3000`;- }- traefikUrl = `${ip}/webhooks/traefik/other.json`;- }- const tcpProxy = {- version: '3.8',- services: {- [`${id}-${publicPort}`]: {- container_name: container,- image: defaultTraefikImage,- command: [- `--entrypoints.tcp.address=:${publicPort}`,- `--entryPoints.tcp.forwardedHeaders.insecure=true`,- `--providers.http.endpoint=${traefikUrl}?id=${id}&privatePort=${privatePort}&publicPort=${publicPort}&type=tcp&address=${dependentId}`,- '--providers.http.pollTimeout=10s',- '--log.level=error'- ],- ports: [`${publicPort}:${publicPort}`],- extra_hosts: ['host.docker.internal:host-gateway', `host.docker.internal: ${ip}`],- volumes: ['/var/run/docker.sock:/var/run/docker.sock'],- networks: ['coolify-infra', network]- }- },- networks: {- [network]: {- external: false,- name: network- },- 'coolify-infra': {- external: false,- name: 'coolify-infra'- }- }- };- await fs.writeFile(`/tmp/docker-compose-${id}.yaml`, yaml.dump(tcpProxy));- await executeCommand({- dockerId,- command: `docker compose -f /tmp/docker-compose-${id}.yaml up -d`- });- await fs.rm(`/tmp/docker-compose-${id}.yaml`);- }- if (!foundDependentContainer && found) {- await executeCommand({- dockerId,- command: `docker stop -t 0 ${container} && docker rm ${container}`,- shell: true- });- }-}-export async function startTraefikProxy(id: string): Promise<void> {- const { engine, network, remoteEngine, remoteIpAddress } =- await prisma.destinationDocker.findUnique({ where: { id } });- const { found } = await checkContainer({- dockerId: id,- container: 'coolify-proxy',- remove: true- });- const { id: settingsId, ipv4, ipv6 } = await listSettings();-- if (!found) {- const { stdout: coolifyNetwork } = await executeCommand({- dockerId: id,- command: `docker network ls --filter 'name=coolify-infra' --no-trunc --format "{{json .}}"`- });-- if (!coolifyNetwork) {- await executeCommand({- dockerId: id,- command: `docker network create --attachable coolify-infra`- });- }- const { stdout: Config } = await executeCommand({- dockerId: id,- command: `docker network inspect ${network} --format '{{json .IPAM.Config }}'`- });- const ip = JSON.parse(Config)[0].Gateway;- let traefikUrl = mainTraefikEndpoint;- if (remoteEngine) {- let ip = null;- if (isDev) {- ip = getAPIUrl();- } else {- ip = `http://${ipv4 || ipv6}:3000`;- }- traefikUrl = `${ip}/webhooks/traefik/remote/${id}`;- }- await executeCommand({- dockerId: id,- command: `docker run --restart always \- --add-host 'host.docker.internal:host-gateway' \- ${ip ? `--add-host 'host.docker.internal:${ip}'` : ''} \- -v coolify-traefik-letsencrypt:/etc/traefik/acme \- -v /var/run/docker.sock:/var/run/docker.sock \- --network coolify-infra \- -p "80:80" \- -p "443:443" \- --name coolify-proxy \- -d ${defaultTraefikImage} \- --entrypoints.web.address=:80 \- --entrypoints.web.forwardedHeaders.insecure=true \- --entrypoints.websecure.address=:443 \- --entrypoints.websecure.forwardedHeaders.insecure=true \- --providers.docker=true \- --providers.docker.exposedbydefault=false \- --providers.http.endpoint=${traefikUrl} \- --providers.http.pollTimeout=5s \- --certificatesresolvers.letsencrypt.acme.httpchallenge=true \- --certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json \- --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web \- --log.level=error`- });- await prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: true }- });- }- // Configure networks for local docker engine- if (engine) {- const destinations = await prisma.destinationDocker.findMany({ where: { engine } });- for (const destination of destinations) {- await configureNetworkTraefikProxy(destination);- }- }- // Configure networks for remote docker engine- if (remoteEngine) {- const destinations = await prisma.destinationDocker.findMany({ where: { remoteIpAddress } });- for (const destination of destinations) {- await configureNetworkTraefikProxy(destination);- }- }-}--export async function configureNetworkTraefikProxy(destination: any): Promise<void> {- const { id } = destination;- const { stdout: networks } = await executeCommand({- dockerId: id,- command: `docker ps -a --filter name=coolify-proxy --format '{{json .Networks}}'`- });- const configuredNetworks = networks.replace(/"/g, '').replace('\n', '').split(',');- if (!configuredNetworks.includes(destination.network)) {- await executeCommand({- dockerId: destination.id,- command: `docker network connect ${destination.network} coolify-proxy`- });- }-}--export async function stopTraefikProxy(id: string): Promise<{ stdout: string; stderr: string }> {- const { found } = await checkContainer({ dockerId: id, container: 'coolify-proxy' });- await prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: false }- });- if (found) {- return await executeCommand({- dockerId: id,- command: `docker stop -t 0 coolify-proxy && docker rm coolify-proxy`,- shell: true- });- }- return { stdout: '', stderr: '' };-}diff --git a/apps/trpc-experimental/server/src/lib/dayjs.ts b/apps/trpc-experimental/server/src/lib/dayjs.tsdeleted file mode 100644index 9ff5b0a1a0..0000000000--- a/apps/trpc-experimental/server/src/lib/dayjs.ts+++ /dev/null@@ -1,7 +0,0 @@-import dayjs from 'dayjs';-import utc from 'dayjs/plugin/utc.js';-import relativeTime from 'dayjs/plugin/relativeTime.js';-dayjs.extend(utc);-dayjs.extend(relativeTime);--export { dayjs as day };diff --git a/apps/trpc-experimental/server/src/lib/docker.ts b/apps/trpc-experimental/server/src/lib/docker.tsdeleted file mode 100644index 0f02da0e29..0000000000--- a/apps/trpc-experimental/server/src/lib/docker.ts+++ /dev/null@@ -1,157 +0,0 @@-import { executeCommand } from './executeCommand';--export async function checkContainer({- dockerId,- container,- remove = false-}: {- dockerId: string;- container: string;- remove?: boolean;-}): Promise<{- found: boolean;- status?: { isExited: boolean; isRunning: boolean; isRestarting: boolean };-}> {- let containerFound = false;- try {- const { stdout } = await executeCommand({- dockerId,- command: `docker inspect --format '{{json .State}}' ${container}`- });- containerFound = true;- const parsedStdout = JSON.parse(stdout);- const status = parsedStdout.Status;- const isRunning = status === 'running';- const isRestarting = status === 'restarting';- const isExited = status === 'exited';- if (status === 'created') {- await executeCommand({- dockerId,- command: `docker rm ${container}`- });- }- if (remove && status === 'exited') {- await executeCommand({- dockerId,- command: `docker rm ${container}`- });- }-- return {- found: containerFound,- status: {- isRunning,- isRestarting,- isExited- }- };- } catch (err) {- // Container not found- }- return {- found: false- };-}--export async function removeContainer({- id,- dockerId-}: {- id: string;- dockerId: string;-}): Promise<void> {- try {- const { stdout } = await executeCommand({- dockerId,- command: `docker inspect --format '{{json .State}}' ${id}`- });- if (JSON.parse(stdout).Running) {- await executeCommand({ dockerId, command: `docker stop -t 0 ${id}` });- await executeCommand({ dockerId, command: `docker rm ${id}` });- }- if (JSON.parse(stdout).Status === 'exited') {- await executeCommand({ dockerId, command: `docker rm ${id}` });- }- } catch (error) {- throw error;- }-}--export async function stopDatabaseContainer(database: any): Promise<boolean> {- let everStarted = false;- const {- id,- destinationDockerId,- destinationDocker: { engine, id: dockerId }- } = database;- if (destinationDockerId) {- try {- const { stdout } = await executeCommand({- dockerId,- command: `docker inspect --format '{{json .State}}' ${id}`- });-- if (stdout) {- everStarted = true;- await removeContainer({ id, dockerId });- }- } catch (error) {- //- }- }- return everStarted;-}-export async function stopTcpHttpProxy(- id: string,- destinationDocker: any,- publicPort: number,- forceName: string | null = null-): Promise<{ stdout: string; stderr: string } | Error | unknown> {- const { id: dockerId } = destinationDocker;- let container = `${id}-${publicPort}`;- if (forceName) container = forceName;- const { found } = await checkContainer({ dockerId, container });- try {- if (!found) return true;- return await executeCommand({- dockerId,- command: `docker stop -t 0 ${container} && docker rm ${container}`,- shell: true- });- } catch (error) {- return error;- }-}--export function formatLabelsOnDocker(data: any) {- return data- .trim()- .split('\n')- .map((a) => JSON.parse(a))- .map((container) => {- const labels = container.Labels.split(',');- let jsonLabels = {};- labels.forEach((l) => {- const name = l.split('=')[0];- const value = l.split('=')[1];- jsonLabels = { ...jsonLabels, ...{ [name]: value } };- });- container.Labels = jsonLabels;- return container;- });-}--export function defaultComposeConfiguration(network: string): any {- return {- networks: [network],- restart: 'on-failure',- deploy: {- restart_policy: {- condition: 'on-failure',- delay: '5s',- max_attempts: 10,- window: '120s'- }- }- };-}diff --git a/apps/trpc-experimental/server/src/lib/executeCommand.ts b/apps/trpc-experimental/server/src/lib/executeCommand.tsdeleted file mode 100644index 31119be080..0000000000--- a/apps/trpc-experimental/server/src/lib/executeCommand.ts+++ /dev/null@@ -1,196 +0,0 @@-import { prisma } from '../prisma';-import os from 'os';-import fs from 'fs/promises';-import type { ExecaChildProcess } from 'execa';-import sshConfig from 'ssh-config';--import { getFreeSSHLocalPort } from './ssh';-import { env } from '../env';-import { BuildLog, saveBuildLog } from './logging';-import { decrypt } from './common';--export async function executeCommand({- command,- dockerId = null,- sshCommand = false,- shell = false,- stream = false,- buildId,- applicationId,- debug-}: {- command: string;- sshCommand?: boolean;- shell?: boolean;- stream?: boolean;- dockerId?: string | null;- buildId?: string;- applicationId?: string;- debug?: boolean;-}): Promise<ExecaChildProcess<string>> {- const { execa, execaCommand } = await import('execa');- const { parse } = await import('shell-quote');- const parsedCommand = parse(command);- const dockerCommand = parsedCommand[0];- const dockerArgs = parsedCommand.slice(1);-- if (dockerId && dockerCommand && dockerArgs) {- const destinationDocker = await prisma.destinationDocker.findUnique({- where: { id: dockerId }- });- if (!destinationDocker) {- throw new Error('Destination docker not found');- }- let { remoteEngine, remoteIpAddress, engine } = destinationDocker;- if (remoteEngine) {- await createRemoteEngineConfiguration(dockerId);- engine = `ssh://${remoteIpAddress}-remote`;- } else {- engine = 'unix:///var/run/docker.sock';- }-- if (env.CODESANDBOX_HOST) {- if (command.startsWith('docker compose')) {- command = command.replace(/docker compose/gi, 'docker-compose');- }- }- if (sshCommand) {- if (shell) {- return execaCommand(`ssh ${remoteIpAddress}-remote ${command}`);- }- //@ts-ignore- return await execa('ssh', [`${remoteIpAddress}-remote`, dockerCommand, ...dockerArgs]);- }- if (stream) {- return await new Promise(async (resolve, reject) => {- let subprocess = null;- if (shell) {- //@ts-ignore- subprocess = execaCommand(command, {- env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }- });- } else {- //@ts-ignore- subprocess = execa(dockerCommand, dockerArgs, {- env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }- });- }- const logs: any[] = [];- if (subprocess && subprocess.stdout && subprocess.stderr) {- subprocess.stdout.on('data', async (data: string) => {- const stdout = data.toString();- const array = stdout.split('\n');- for (const line of array) {- if (line !== '\n' && line !== '') {- const log: BuildLog = {- line: `${line.replace('\n', '')}`,- buildId,- applicationId- };- logs.push(log);- if (debug) {- await saveBuildLog(log);- }- }- }- });- subprocess.stderr.on('data', async (data: string) => {- const stderr = data.toString();- const array = stderr.split('\n');- for (const line of array) {- if (line !== '\n' && line !== '') {- const log = {- line: `${line.replace('\n', '')}`,- buildId,- applicationId- };- logs.push(log);- if (debug) {- await saveBuildLog(log);- }- }- }- });- subprocess.on('exit', async (code: number) => {- if (code === 0) {- //@ts-ignore- resolve(code);- } else {- if (!debug) {- for (const log of logs) {- await saveBuildLog(log);- }- }- reject(code);- }- });- }- });- } else {- if (shell) {- return await execaCommand(command, {- //@ts-ignore- env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }- });- } else {- //@ts-ignore- return await execa(dockerCommand, dockerArgs, {- env: { DOCKER_BUILDKIT: '1', DOCKER_HOST: engine }- });- }- }- } else {- if (shell) {- return execaCommand(command, { shell: true });- }- //@ts-ignore- return await execa(dockerCommand, dockerArgs);- }-}--export async function createRemoteEngineConfiguration(id: string) {- const homedir = os.homedir();- const sshKeyFile = `/tmp/id_rsa-${id}`;- const localPort = await getFreeSSHLocalPort(id);- const {- sshKey: { privateKey },- network,- remoteIpAddress,- remotePort,- remoteUser- } = await prisma.destinationDocker.findFirst({ where: { id }, include: { sshKey: true } });- await fs.writeFile(sshKeyFile, decrypt(privateKey) + '\n', { encoding: 'utf8', mode: 400 });- const config = sshConfig.parse('');- const Host = `${remoteIpAddress}-remote`;-- try {- await executeCommand({ command: `ssh-keygen -R ${Host}` });- await executeCommand({ command: `ssh-keygen -R ${remoteIpAddress}` });- await executeCommand({ command: `ssh-keygen -R localhost:${localPort}` });- } catch (error) {}-- const found = config.find({ Host });- const foundIp = config.find({ Host: remoteIpAddress });-- if (found) config.remove({ Host });- if (foundIp) config.remove({ Host: remoteIpAddress });-- config.append({- Host,- Hostname: remoteIpAddress,- Port: remotePort.toString(),- User: remoteUser,- StrictHostKeyChecking: 'no',- IdentityFile: sshKeyFile,- ControlMaster: 'auto',- ControlPath: `${homedir}/.ssh/coolify-${remoteIpAddress}-%r@%h:%p`,- ControlPersist: '10m'- });-- try {- await fs.stat(`${homedir}/.ssh/`);- } catch (error) {- await fs.mkdir(`${homedir}/.ssh/`);- }- return await fs.writeFile(`${homedir}/.ssh/config`, sshConfig.stringify(config));-}diff --git a/apps/trpc-experimental/server/src/lib/importers/github.ts b/apps/trpc-experimental/server/src/lib/importers/github.tsdeleted file mode 100644index dfaa4c724e..0000000000--- a/apps/trpc-experimental/server/src/lib/importers/github.ts+++ /dev/null@@ -1,96 +0,0 @@--import jsonwebtoken from 'jsonwebtoken';-import { prisma } from '../../prisma';-import { saveBuildLog } from '../buildPacks/common';-import { decrypt } from '../common';-import { executeCommand } from '../executeCommand';--export default async function ({- applicationId,- workdir,- githubAppId,- repository,- apiUrl,- gitCommitHash,- htmlUrl,- branch,- buildId,- customPort,- forPublic-}: {- applicationId: string;- workdir: string;- githubAppId: string;- repository: string;- apiUrl: string;- gitCommitHash?: string;- htmlUrl: string;- branch: string;- buildId: string;- customPort: number;- forPublic?: boolean;-}): Promise<string> {- const { default: got } = await import('got')- const url = htmlUrl.replace('https://', '').replace('http://', '');- if (forPublic) {- await saveBuildLog({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await saveBuildLog({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- await executeCommand({- command:- `git clone -q -b ${branch} https://${url}/${repository}.git ${workdir}/ && cd ${workdir} && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- });-- } else {- const body = await prisma.githubApp.findUnique({ where: { id: githubAppId } });- if (body.privateKey) body.privateKey = decrypt(body.privateKey);- const { privateKey, appId, installationId } = body- const githubPrivateKey = privateKey.replace(/\\n/g, '\n').replace(/"/g, '');-- const payload = {- iat: Math.round(new Date().getTime() / 1000),- exp: Math.round(new Date().getTime() / 1000 + 60),- iss: appId- };- const jwtToken = jsonwebtoken.sign(payload, githubPrivateKey, {- algorithm: 'RS256'- });- const { token } = await got- .post(`${apiUrl}/app/installations/${installationId}/access_tokens`, {- headers: {- Authorization: `Bearer ${jwtToken}`,- Accept: 'application/vnd.github.machine-man-preview+json'- }- })- .json();- await saveBuildLog({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await saveBuildLog({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- await executeCommand({- command:- `git clone -q -b ${branch} https://x-access-token:${token}@${url}/${repository}.git --config core.sshCommand="ssh -p ${customPort}" ${workdir}/ && cd ${workdir} && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `,- shell: true- });- }- const { stdout: commit } = await executeCommand({ command: `cd ${workdir}/ && git rev-parse HEAD`, shell: true });- return commit.replace('\n', '');-}diff --git a/apps/trpc-experimental/server/src/lib/importers/gitlab.ts b/apps/trpc-experimental/server/src/lib/importers/gitlab.tsdeleted file mode 100644index 4f49fbd0ee..0000000000--- a/apps/trpc-experimental/server/src/lib/importers/gitlab.ts+++ /dev/null@@ -1,65 +0,0 @@-import { saveBuildLog } from "../buildPacks/common";-import { executeCommand } from "../executeCommand";--export default async function ({- applicationId,- workdir,- repodir,- htmlUrl,- gitCommitHash,- repository,- branch,- buildId,- privateSshKey,- customPort,- forPublic,- customUser,-}: {- applicationId: string;- workdir: string;- repository: string;- htmlUrl: string;- branch: string;- buildId: string;- repodir: string;- gitCommitHash: string;- privateSshKey: string;- customPort: number;- forPublic: boolean;- customUser: string;-}): Promise<string> {- const url = htmlUrl.replace('https://', '').replace('http://', '').replace(/\/$/, '');- if (!forPublic) {- await executeCommand({ command: `echo '${privateSshKey}' > ${repodir}/id.rsa`, shell: true });- await executeCommand({ command: `chmod 600 ${repodir}/id.rsa` });- }-- await saveBuildLog({- line: `Cloning ${repository}:${branch}...`,- buildId,- applicationId- });- if (gitCommitHash) {- await saveBuildLog({- line: `Checking out ${gitCommitHash} commit...`,- buildId,- applicationId- });- }- if (forPublic) {- await executeCommand({- command:- `git clone -q -b ${branch} https://${url}/${repository}.git ${workdir}/ && cd ${workdir}/ && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `, shell: true- }- );- } else {- await executeCommand({- command:- `git clone -q -b ${branch} ${customUser}@${url}:${repository}.git --config core.sshCommand="ssh -p ${customPort} -q -i ${repodir}id.rsa -o StrictHostKeyChecking=no" ${workdir}/ && cd ${workdir}/ && git checkout ${gitCommitHash || ""} && git submodule update --init --recursive && git lfs pull && cd .. `, shell: true- }- );- }-- const { stdout: commit } = await executeCommand({ command: `cd ${workdir}/ && git rev-parse HEAD`, shell: true });- return commit.replace('\n', '');-}diff --git a/apps/trpc-experimental/server/src/lib/importers/index.ts b/apps/trpc-experimental/server/src/lib/importers/index.tsdeleted file mode 100644index 1934438901..0000000000--- a/apps/trpc-experimental/server/src/lib/importers/index.ts+++ /dev/null@@ -1,4 +0,0 @@-import github from './github';-import gitlab from './gitlab';--export { github, gitlab };diff --git a/apps/trpc-experimental/server/src/lib/logging.ts b/apps/trpc-experimental/server/src/lib/logging.tsdeleted file mode 100644index bb4dde7a08..0000000000--- a/apps/trpc-experimental/server/src/lib/logging.ts+++ /dev/null@@ -1,48 +0,0 @@-import { prisma } from '../prisma';-import { encrypt, generateTimestamp, isDev } from './common';-import { day } from './dayjs';--export type Line = string | { shortMessage: string; stderr: string };-export type BuildLog = {- line: Line;- buildId?: string;- applicationId?: string;-};-export const saveBuildLog = async ({ line, buildId, applicationId }: BuildLog): Promise<any> => {- if (buildId === 'undefined' || buildId === 'null' || !buildId) return;- if (applicationId === 'undefined' || applicationId === 'null' || !applicationId) return;- const { default: got } = await import('got');- if (typeof line === 'object' && line) {- if (line.shortMessage) {- line = line.shortMessage + '\n' + line.stderr;- } else {- line = JSON.stringify(line);- }- }- if (line && typeof line === 'string' && line.includes('ghs_')) {- const regex = /ghs_.*@/g;- line = line.replace(regex, '<SENSITIVE_DATA_DELETED>@');- }- const addTimestamp = `[${generateTimestamp()}] ${line}`;- const fluentBitUrl = isDev ? 'http://localhost:24224' : 'http://coolify-fluentbit:24224';-- if (isDev) {- console.debug(`[${applicationId}] ${addTimestamp}`);- }- try {- return await got.post(`${fluentBitUrl}/${applicationId}_buildlog_${buildId}.csv`, {- json: {- line: encrypt(line)- }- });- } catch (error) {- return await prisma.buildLog.create({- data: {- line: addTimestamp,- buildId,- time: Number(day().valueOf()),- applicationId- }- });- }-};diff --git a/apps/trpc-experimental/server/src/lib/ssh.ts b/apps/trpc-experimental/server/src/lib/ssh.tsdeleted file mode 100644index 77cbf73071..0000000000--- a/apps/trpc-experimental/server/src/lib/ssh.ts+++ /dev/null@@ -1,47 +0,0 @@-import { prisma } from '../prisma';-import { generateRangeArray } from './common';--export async function getFreeSSHLocalPort(id: string): Promise<number | boolean> {- const { default: isReachable } = await import('is-port-reachable');- const { remoteIpAddress, sshLocalPort } = await prisma.destinationDocker.findUnique({- where: { id }- });- if (sshLocalPort) {- return Number(sshLocalPort);- }-- const data = await prisma.setting.findFirst();- const { minPort, maxPort } = data;-- const ports = await prisma.destinationDocker.findMany({- where: { sshLocalPort: { not: null }, remoteIpAddress: { not: remoteIpAddress } }- });-- const alreadyConfigured = await prisma.destinationDocker.findFirst({- where: {- remoteIpAddress,- id: { not: id },- sshLocalPort: { not: null }- }- });- if (alreadyConfigured?.sshLocalPort) {- await prisma.destinationDocker.update({- where: { id },- data: { sshLocalPort: alreadyConfigured.sshLocalPort }- });- return Number(alreadyConfigured.sshLocalPort);- }- const range = generateRangeArray(minPort, maxPort);- const availablePorts = range.filter((port) => !ports.map((p) => p.sshLocalPort).includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: 'localhost' });- if (!found) {- await prisma.destinationDocker.update({- where: { id },- data: { sshLocalPort: Number(port) }- });- return Number(port);- }- }- return false;-}diff --git a/apps/trpc-experimental/server/src/prisma.ts b/apps/trpc-experimental/server/src/prisma.tsdeleted file mode 100644index 6aa0585c4a..0000000000--- a/apps/trpc-experimental/server/src/prisma.ts+++ /dev/null@@ -1,20 +0,0 @@-/**- * Instantiates a single instance PrismaClient and save it on the global object.- * @link https://www.prisma.io/docs/support/help-articles/nextjs-prisma-client-dev-practices- */-import { env } from './env';-import { PrismaClient } from '@prisma/client';--const prismaGlobal = global as typeof global & {- prisma?: PrismaClient;-};--export const prisma: PrismaClient =- prismaGlobal.prisma ||- new PrismaClient({- log: env.NODE_ENV !== 'development' ? ['query', 'error', 'warn'] : ['error']- });--if (env.NODE_ENV !== 'production') {- prismaGlobal.prisma = prisma;-}diff --git a/apps/trpc-experimental/server/src/scheduler.ts b/apps/trpc-experimental/server/src/scheduler.tsdeleted file mode 100644index 9a8583fc2a..0000000000--- a/apps/trpc-experimental/server/src/scheduler.ts+++ /dev/null@@ -1,17 +0,0 @@-import Bree from 'bree';-import path from 'path';-import Cabin from 'cabin';-import TSBree from '@breejs/ts-worker';--export const isDev = process.env['NODE_ENV'] === 'development';--Bree.extend(TSBree);--const options: any = {- defaultExtension: 'js',- logger: false,- jobs: [{ name: 'applicationBuildQueue' }]-};-if (isDev) options.root = path.join(__dirname, './jobs');--export const scheduler = new Bree(options);diff --git a/apps/trpc-experimental/server/src/server.ts b/apps/trpc-experimental/server/src/server.tsdeleted file mode 100644index 6b2d9d87d3..0000000000--- a/apps/trpc-experimental/server/src/server.ts+++ /dev/null@@ -1,79 +0,0 @@-import { fastifyTRPCPlugin } from '@trpc/server/adapters/fastify';-import fastify from 'fastify';-import { appRouter } from './trpc';-import { createContext } from './trpc/context';-import cors from '@fastify/cors';-import * as path from 'node:path';-import serve from '@fastify/static';-import autoLoad from '@fastify/autoload';-// import { prisma } from './prisma';-import Graceful from '@ladjs/graceful';-import { scheduler } from './scheduler';--const isDev = process.env['NODE_ENV'] === 'development';--export interface ServerOptions {- dev?: boolean;- port?: number;- prefix?: string;-}--export function createServer(opts: ServerOptions) {- const dev = opts.dev ?? true;- const port = opts.port ?? 3000;- const prefix = opts.prefix ?? '/trpc';- const server = fastify({ logger: dev, trustProxy: true });- server.register(cors);- server.register(fastifyTRPCPlugin, {- prefix,- trpcOptions: {- router: appRouter,- createContext,- onError({ error, type, path, input, ctx, req }) {- console.error('Error:', error);- if (error.code === 'INTERNAL_SERVER_ERROR') {- // send to bug reporting- }- }- }- });- // Serve static files in production. Static files are generated by `yarn build` in the client folder by SvelteKit.- if (!isDev) {- server.register(serve, {- root: path.join(__dirname, './public'),- preCompressed: true- });- server.setNotFoundHandler(async function (request, reply) {- if (request.raw.url && request.raw.url.startsWith('/api')) {- return reply.status(404).send({- success: false- });- }- return reply.status(200).sendFile('index.html');- });- }- server.register(autoLoad, {- dir: path.join(__dirname, 'api'),- options: { prefix: '/api' }- });-- const stop = () => server.close();- const start = async () => {- try {- await server.listen({ host: '0.0.0.0', port });- console.log('Coolify server is listening on port', port, 'at 0.0.0.0 🚀');- const graceful = new Graceful({ brees: [scheduler] });- graceful.listen();- setInterval(async () => {- if (!scheduler.workers.has('applicationBuildQueue')) {- scheduler.run('applicationBuildQueue');- }- }, 2000);- } catch (err) {- server.log.error(err);- process.exit(1);- }- };-- return { server, start, stop };-}diff --git a/apps/trpc-experimental/server/src/tags.json b/apps/trpc-experimental/server/src/tags.jsondeleted file mode 100644index 0d84f6caa0..0000000000--- a/apps/trpc-experimental/server/src/tags.json+++ /dev/null@@ -1 +0,0 @@-[{"name":"appsmith","image":"appsmith/appsmith-ce","tags":["v1.8.8","v1.8.6","v1.8.4","v1.8.2","v1.8.10","v1.8.0","v1.7.8","v1.7.6","v1.7.4","v1.7.2","v1.7.13","v1.7.11","v1.7.1","v1.6.9","v1.6.7","v1.6.5","v1.6.3","v1.6.22","v1.6.20","v1.6.19","v1.6.17","v1.6.15","v1.6.13","v1.6.11","v1.6.1","v1.5.30","v1.5.28","v1.5.26","v1.5.24","v1.5.22"]},{"name":"appwrite","image":"appwrite/appwrite","tags":["1.1.2","1.1.0","1.0.3","1.0.1","1.0.0","0.9.3","0.9.1","0.8.0","0.7.1","0.6.2","0.6.0","0.5.2","0.5.0","0.3.1","0.2.0","0.15.2","0.15.0","0.14.2","0.14.0","0.13.4","0.13.2","0.13.0","0.12.3","0.12.1","0.12.0","0.11.2","0.11.0","0.10.4","0.10.2","0.10.0"]},{"name":"fider","image":"getfider/fider","tags":["stable","master","main","dev","SHA_ee6e83cfaadadaa56ab76e089e01f5631af3506f","SHA_deb4f9b4f561d890d8a80e6872fea9a98a265cc6","SHA_d5cc307909d43447200483d76b5db74d8ed8349e","SHA_d1674476577a7fd3c88fc29f91c3f35f5bd6a260","SHA_d107cbb157abca6576110080736213efe0955cff","SHA_c9c55b2f5b33a76015241b97e03cfac1254b42a7","SHA_bcf451a3cb02d5c8a489fd30309249296057b084","SHA_bbfe419639514f949a042807addf0fde7d4de225","SHA_adc3afc4c7bcf96931a5f90cab65c282d860dbfd","SHA_ab5283ae95334f10b5041402dce79e333c472015","SHA_a3f4cb5ed0a4ee2d726705fc426636364aac17a1","SHA_a18224142bf51bc6463c3d22f45f62287902e9a6","SHA_8e5cff30d95963eaee2587488d351e0d658c8195","SHA_8cabe2817ce7ccaf2f0a9fdbb1b5d3411de87f81","SHA_7851f9da566132d87fa2a63004e78c3bc9c09c6c","SHA_6c0f2bed1754e9d579eb9575129a6e3dbc529c32","SHA_603508c8790d6a6fb1e852df1a58ead8e5b3ea6c","SHA_55efacf164a4749b50ee68ae8925e7dc9dfa3a0c","SHA_4bdd291ce61e5f5dfc063fa1b2d9be8c9ff1d4c4","SHA_3fba9cb6a9ceab0c78c6cff3220610f591f657cb","SHA_3d635b57606a9885babe91fe975b11429e0f2c38","SHA_3b794edbd9789a8aa38ecd3714bc536a675d3058","SHA_3570c454ad3252b690608f7bf8051737d8519f8a","SHA_263e2709fd145f3ea511e5557e170102899995b0","SHA_255c30ed012fc4c39ffc97efc1d3b00425b17c72","SHA_17f92b16ef790003338f0926fc8d791a9a61333c"]},{"name":"ghost-mariadb","image":"bitnami/ghost","tags":["5.7.1","5.7.0","5.5.0","5.4.1","5.4.0","5.3.1","5.3.0","5.24.2","5.24.1","5.24.0","5.23.0","5.22.9","5.22.8","5.22.7","5.22.6","5.22.5","5.22.4","5.22.3","5.22.2","5.22.11","5.22.10","5.22.1","5.22.0","5.21.0","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","4.48.8"]},{"name":"ghost-mysql","image":"library/ghost","tags":["5.9.4","5.8.3","5.8.2","5.7.1","5.7.0","5.5.0","5.4.1","5.3.1","5.3.0","5.24.2","5.24.1","5.23.0","5.22.9","5.22.8","5.22.4","5.22.11","5.22.10","5.22.1","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","5.19.0","5.18.0","5.17.2","5.17.1","5.17.0","5.16.2"]},{"name":"ghost-only","image":"library/ghost","tags":["5.9.4","5.8.3","5.8.2","5.7.1","5.7.0","5.5.0","5.4.1","5.3.1","5.3.0","5.24.2","5.24.1","5.23.0","5.22.9","5.22.8","5.22.4","5.22.11","5.22.10","5.22.1","5.20.0","5.2.4","5.2.3","5.2.2","5.2.1","5.19.3","5.19.0","5.18.0","5.17.2","5.17.1","5.17.0","5.16.2"]},{"name":"gitea","image":"gitea/gitea","tags":["1.9.6","1.9.5","1.9.4","1.9.3","1.9.2","1.9.0","1.8.3","1.8.1","1.8.0","1.7.5","1.7.3","1.7.1","1.7.0","1.6.3","1.6.1","1.6.0","1.5.3","1.5.1","1.5.0","1.4.3","1.4.1","1.4.0","1.3.3","1.3.1","1.3.0","1.2.3","1.2.1","1.2.0","1.17.3","1.17.2"]},{"name":"glitchtip","image":"glitchtip/glitchtip","tags":["v2.0.7","v2.0.5","v2.0.2","v2.0.0","v1.9.2","v1.9.0","v1.8.4","v1.8.2","v1.8.0","v1.7.1","v1.6.4","v1.6.2","v1.6.0","v1.5.3","v1.5.1","v1.4.1","v1.3.3","v1.3.1","v1.2.6","v1.2.4","v1.2.2","v1.2.0","v1.12.4","v1.12.2","v1.12.0","v1.10.3","v1.10.1","v1.1.2","v1.1.0","v1.0.8"]},{"name":"grafana","image":"grafana/grafana","tags":["9.3.1","9.3.0","9.2.7","9.2.6","9.2.5","9.2.4","9.2.3","9.2.2","9.2.1","9.2.0","9.1.8","9.1.7","9.1.6","9.1.5","9.1.4","9.1.3","9.1.2","9.1.1","9.1.0","9.0.9","9.0.8","9.0.7","9.0.6","9.0.5","9.0.4","9.0.3","9.0.2","9.0.1","9.0.0","8.5.9"]},{"name":"hasura","image":"hasura/graphql-engine","tags":["v2.9.0","v2.8.4","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.0","v2.6.2","v2.6.1","v2.6.0","v2.5.2","v2.5.1","v2.5.0","v2.4.0","v2.3.1","v2.3.0","v2.2.2","v2.2.1","v2.2.0","v2.15.2","v2.15.1","v2.15.0","v2.14.1","v2.14.0","v2.13.2","v2.13.1","v2.13.0","v2.12.1","v2.12.0","v2.11.3"]},{"name":"keycloak","image":"quay.io/keycloak/keycloak","tags":["9.0.3","9.0.0","8.0.1","7.0.0","6.0.1","6.0.0","20.0.1","20.0.0","19.0.3","19.0.1","19.0.0","18.0.1","18.0.0","17.0.1","17.0.0","16.1.0","15.1.1","15.0.2","15.0.0","13.0.1","12.0.4","12.0.2","12.0.0","11.0.2","11.0.0","10.0.1"]},{"name":"languagetool","image":"silviof/docker-languagetool","tags":["latest","5.8","5.7","5.6","5.5","5.4","5.3"]},{"name":"lavalink","image":"fredboat/lavalink","tags":["v3.7","v3.6","v3-vda0b3a4b3916a7b1a2b79702de1143c3a6939810-SNAPSHOT","v3-vc92690c425390bd20f6c51643c67ba79ab85b7e0-SNAPSHOT","v3-vab81dcd46adf3e8a961dd57eacd2a1bde1233e6c-SNAPSHOT","v3-v9c9432704d6a4badfcbd06a57597c54bed8f4326-SNAPSHOT","v3-v3.0","v3-v3","v3-v124f8fae7dab299f9cdf1cb4c1715be455497286-SNAPSHOT","v3-","v3","v2.0.1","v2.0","v2","update-udpqueue-vb4a439d6147dbd8641ea4f265e8efc9f1e16e2d3-SNAPSHOT","update-udpqueue-","update-udpqueue","revert-713-fix-error-for-loading-jda-nas","refactor-github-actions","patch-update-github-actions","patch-more-configurable-github-actions","patch-lavaplayer-update","patch-lavaplayer-bump","patch-build-number","next-api-vd4db194cac7a839a3899857f1f6d7b910369309d-SNAPSHOT","next-api-vc2e018d5ffef54b2d17244b3d213e31723a084d6-SNAPSHOT","next-api-v42cb5f7c58e98d1911e87bffb35aee0a235b85f8-SNAPSHOT","next-api-v31a243bda80badbd7d643f68fc1f87e99639060f-SNAPSHOT","next-api-v17f6884434c2d70d1704b2322a951d9f07af8865-SNAPSHOT","next-api-"]},{"name":"meilisearch","image":"getmeili/meilisearch","tags":["v0.9.0","v0.8.3","v0.8.1","v0.30.0","v0.29.1","v0.29.0","v0.28.1","v0.28.0","v0.27.1","v0.27.0","v0.26.1","v0.26.0","v0.25.1","v0.25.0","v0.23.1","v0.23.0","v0.21.1","v0.21.0","v0.20.0","v0.19.0","v0.18.1","v0.18.0","v0.17.0","v0.16.0","v0.14.1","v0.14.0","v0.12.0","v0.11.0","v0.10.0","0.14.1"]},{"name":"minio","image":"minio/minio","tags":["RELEASE.2022-11-29T23-40-49Z.fips","RELEASE.2022-11-26T22-43-32Z.fips","RELEASE.2022-11-17T23-20-09Z.fips","RELEASE.2022-11-11T03-44-20Z.fips","RELEASE.2022-11-10T18-20-21Z.fips","RELEASE.2022-11-08T05-27-07Z.fips","RELEASE.2022-10-29T06-21-33Z.fips","RELEASE.2022-10-24T18-35-07Z.hotfix.ce525fdaf","RELEASE.2022-10-24T18-35-07Z.fips","RELEASE.2022-10-21T22-37-48Z.fips","RELEASE.2022-10-20T00-55-09Z.fips","RELEASE.2022-10-15T19-57-03Z.fips","RELEASE.2022-10-08T20-11-00Z.fips","RELEASE.2022-10-05T14-58-27Z.fips","RELEASE.2022-10-02T19-29-29Z.fips","RELEASE.2022-09-25T15-44-53Z.fips","RELEASE.2022-09-22T18-57-27Z.fips","RELEASE.2022-09-17T00-09-45Z.hotfix.fc6d6fdbd","RELEASE.2022-09-17T00-09-45Z.hotfix.4bb22d5cd","RELEASE.2022-09-17T00-09-45Z","RELEASE.2022-09-07T22-25-02Z","RELEASE.2022-09-01T23-53-36Z","RELEASE.2022-08-26T19-53-15Z","RELEASE.2022-08-25T07-17-05Z","RELEASE.2022-08-22T23-53-06Z.fips","RELEASE.2022-08-13T21-54-44Z.fips","RELEASE.2022-08-11T04-37-28Z.fips","RELEASE.2022-08-08T18-34-09Z.fips","RELEASE.2022-08-05T23-27-09Z.fips","RELEASE.2022-08-02T23-59-16Z.fips"]},{"name":"n8n","image":"n8nio/n8n","tags":["0.99.1","0.99.0","0.98.0","0.97.0","0.96.0","0.95.1","0.95.0","0.94.1","0.94.0","0.93.0","0.92.0","0.91.0","0.9.0","0.89.2","0.88.1","0.88.0","0.87.2","0.87.1","0.87.0","0.86.1","0.86.0","0.85.0","0.84.4","0.84.3","0.84.1","0.84.0","0.83.0","0.82.1","0.82.0","0.81.0"]},{"name":"nocodb","image":"nocodb/nocodb","tags":["0.99.2","0.99.0","0.98.3","0.98.1","0.97.0","0.96.3","0.96.1","0.92.4","0.92.0","0.91.8","0.91.6","0.91.1","0.90.8","0.90.5","0.90.3","0.90.11","0.90.1","0.9.9","0.9.7","0.9.43","0.9.41","0.9.39","0.9.37","0.9.35","0.9.33","0.9.31","0.9.29","0.9.27","0.9.25","0.9.22"]},{"name":"plausibleanalytics-arm","image":"plausible/analytics","tags":["v1.5.0-rc.2","v1.5.0-rc.1","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0.rc.0","v1.4.0-rc.0","v1.4.0","v1.4","v1.3.0-rc.1","v1.3.0-rc.0","v1.3.0","v1.3","v1.2.1","v1.2.0","v1.2-rc.1","v1.2-rc.0","v1.2","v1.1.1","v1.1.0","v1.1","v1.0.0","v1.0","v1","stable","master","loadtest","latest","1.5.0-rc.0"]},{"name":"plausibleanalytics","image":"plausible/analytics","tags":["v1.5.0-rc.2","v1.5.0-rc.1","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0.rc.0","v1.4.0-rc.0","v1.4.0","v1.4","v1.3.0-rc.1","v1.3.0-rc.0","v1.3.0","v1.3","v1.2.1","v1.2.0","v1.2-rc.1","v1.2-rc.0","v1.2","v1.1.1","v1.1.0","v1.1","v1.0.0","v1.0","v1","stable","master","loadtest","latest","1.5.0-rc.0"]},{"name":"pocketbase","image":"coollabsio/pocketbase","tags":["0.8.0-arm64","0.8.0-amd64","0.8.0-aarch64","0.8.0"]},{"name":"searxng","image":"searxng/searxng","tags":["2022.12.02-ffb72dfd","2022.12.02-890d63b9","2022.12.02-4970db05","2022.12.02-317fe0a2","2022.11.30-f19837cf","2022.11.30-44d4a171","2022.11.30-0361f836","2022.11.29-a8359dd4","2022.11.29-82af2f44","2022.11.29-768659f2","2022.11.29-5b19f892","2022.11.29-3579a38a","2022.11.29-1b2f1c17","2022.11.25-5ca6868c","2022.11.25-28ae469f","2022.11.25-1314c1c5","2022.11.19-b5371b7a","2022.11.18-fe8b0472","2022.11.18-1cdadf4b","2022.11.11-e6345758","2022.11.11-3a765113","2022.11.10-117f69fa","2022.11.09-ee4475ff","2022.11.07-d3949269","2022.11.07-8f19bdaf","2022.11.06-ae54c7d5","2022.11.06-2dc5c0e1","2022.11.05-e9f42e1c","2022.11.05-d764d94a","2022.11.05-d3a7399e"]},{"name":"trilium","image":"zadam/trilium","tags":["0.57.2","0.56.1","0.55.1","0.54.2","0.53.2","0.52.4","0.52.2","0.51.2","0.50.3","0.50.1","0.49.5","0.49.3","0.48.9","0.48.7","0.48.4","0.48.2","0.47.8","0.47.6","0.47.4","0.47.2","0.46.7","0.46.5","0.45.9","0.45.7","0.45.5","0.45.3","0.45.10","0.44.8","0.44.6","0.44.4"]},{"name":"umami-postgresql","image":"ghcr.io/umami-software/umami","tags":["postgresql-v1.39.5","postgresql-v1.39.4","postgresql-v1.39.3","postgresql-v1.39.2","postgresql-v1.39.1","postgresql-v1.39.0","postgresql-v1.38.0","postgresql-v1.37.0","postgresql-v1.36.1","postgresql-v1.36.0","postgresql-v1.35.0","postgresql-v1.34.0","postgresql-v1.33.3","postgresql-latest","mysql-v1.39.5","mysql-v1.39.4","mysql-v1.39.3","mysql-v1.39.2","mysql-v1.39.1","mysql-v1.39.0","mysql-v1.38.0","mysql-v1.37.0","mysql-v1.36.1","mysql-v1.36.0","mysql-v1.35.0","mysql-v1.34.0","mysql-v1.33.3","mysql-latest"]},{"name":"umami","image":"ghcr.io/umami-software/umami","tags":["postgresql-v1.39.5","postgresql-v1.39.4","postgresql-v1.39.3","postgresql-v1.39.2","postgresql-v1.39.1","postgresql-v1.39.0","postgresql-v1.38.0","postgresql-v1.37.0","postgresql-v1.36.1","postgresql-v1.36.0","postgresql-v1.35.0","postgresql-v1.34.0","postgresql-v1.33.3","postgresql-latest","mysql-v1.39.5","mysql-v1.39.4","mysql-v1.39.3","mysql-v1.39.2","mysql-v1.39.1","mysql-v1.39.0","mysql-v1.38.0","mysql-v1.37.0","mysql-v1.36.1","mysql-v1.36.0","mysql-v1.35.0","mysql-v1.34.0","mysql-v1.33.3","mysql-latest"]},{"name":"uptimekuma","image":"louislam/uptime-kuma","tags":["1.9.2","1.9.1","1.9.0","1.8.0","1.7.3","1.7.1","1.7.0","1.6.3","1.6.2","1.6.1","1.6.0","1.5.3","1.5.2","1.5.0","1.3.1","1.2.0","1.18.5","1.18.4","1.18.3","1.18.2","1.18.1","1.18.0","1.17.1","1.17.0","1.16.1","1.16.0","1.15.1","1.15.0","1.14.1","1.14.0"]},{"name":"vaultwarden","image":"vaultwarden/server","tags":["1.26.0","1.25.2","1.25.1","1.25.0","1.24.0","1.23.1","1.23.0","1.22.2","1.22.1","1.22.0","1.21.0"]},{"name":"vscodeserver","image":"codercom/code-server","tags":["4.8.3","4.8.2","4.8.1","4.8.0","4.7.0","4.6.0","4.5.1","4.4.0","4.2.0","4.0.2","3.9.3","3.9.1","3.8.1","3.7.4","3.7.2","3.7.0","3.6.1","3.5.0","3.4.0","3.3.0","3.2.0","3.11.1","3.10.2","3.10.0","3.1.1","3.1.0","3.0.2","3.0.0"]},{"name":"weblate","image":"weblate/weblate","tags":["latest","edge-2022-12-01-0295bd44d4d9da0e0836b9152319fba173a0825e","edge-2022-11-28-f28431a1e78f88bf49ccf539fbc00afe0925542d","edge-2022-11-26-558811de16025b83de43d2747f1fe209a5b829f1","edge-2022-11-23-4a1fe25c7b70e49156e02183a8deec3b357b9030","edge-2022-11-22-9a178e7f5c2e387329592a1dd7700671f64f6682","edge-2022-11-21-eb741ebad70211ecb1babdfd23e4f43c5a59fc7b","edge-2022-11-21-4580d37f616650cf5b0851fee051651f785e8852","edge-2022-11-21-0f74d6c4d3777dbf28affd09b45c69c85ed01d84","edge-2022-11-15-cad0a043b32c1ee61611ab258db0f01c5e6d718f","edge-2022-11-10-bf41db3afbab22384e103718094738dcfdc1a270","edge-2022-11-09-9bc90ce8b873778d2f486eccd0163bb1bb65ca6e","edge-2022-11-08-36e221037ff7097f8cd2c88d779135b6c7d3f363","edge-2022-11-08-3568e3c6759a9e9b779d98cb98393526d451466a","edge-2022-11-08-261d197970ca0679514d32ff783467972e807061","edge-2022-11-05-fa5cb203d854a11cc7850868a2890168afa3e7da","edge-2022-11-05-d93ae789eef8f065240f9fb6feb3edb236a7e6f8","edge-2022-11-05-8fc2be8e9d22e5ca2da2773488da7f72c5927ec3","edge-2022-11-05-85da67e88a113bed65530f0695ad4cddec0ed05a","edge-2022-11-05-3f4d77b6f2cb16bf008a4ef587e843ccb9c0c5d0","edge-2022-11-05-226eed520a2b32c3583c6e3247109ec8950764e7","edge-2022-11-03-487f3255cb89415fbe0769fa4b7bd2a9209deca6","edge-2022-11-02-e4171e0c5657ca38341cce8ac31f5cbdf25389eb","edge-2022-11-02-6d886c40cd62eb23d21f7c0a1840b4a7a4c51ad0","edge-2022-11-01-608df4dd95a2d1f76c15cddd9e116bb4c3229168","edge-2022-11-01-54957be78eb76f602ceae50c0b01b64b20402b2a","edge-2022-10-31-c55c7302a6c82a160ee9d711893c12d67ecd3b27","edge-2022-10-26-c69cfdd83ed1fad4a4d57398552b8c70894a6586","edge-2022-10-26-410b3aff37de5bbfacbc47642ce28b2518bee506","edge-2022-10-25-e09e2c29ed3748eb0fa248453635dd27768e8dd9"]},{"name":"wordpress-only","image":"library/wordpress","tags":["php8.1-fpm-alpine","php8.1-fpm","php8.1-apache","php8.1","php8.0-fpm-alpine","php8.0-fpm","php8.0-apache","php8.0","php7.4-fpm-alpine","php7.4-fpm","php7.4-apache","php7.4","php7.3-fpm-alpine","php7.3-fpm","php7.3-apache","php7.3","php7.2-fpm-alpine","php7.2-fpm","php7.2-apache","php7.2","php7.1-fpm-alpine","php7.1-fpm","php7.1-apache","php7.1","php7.0-fpm-alpine","php7.0-fpm","php7.0-apache","php7.0","php5.6-fpm-alpine","php5.6-fpm"]},{"name":"wordpress","image":"library/wordpress","tags":["php8.1-fpm-alpine","php8.1-fpm","php8.1-apache","php8.1","php8.0-fpm-alpine","php8.0-fpm","php8.0-apache","php8.0","php7.4-fpm-alpine","php7.4-fpm","php7.4-apache","php7.4","php7.3-fpm-alpine","php7.3-fpm","php7.3-apache","php7.3","php7.2-fpm-alpine","php7.2-fpm","php7.2-apache","php7.2","php7.1-fpm-alpine","php7.1-fpm","php7.1-apache","php7.1","php7.0-fpm-alpine","php7.0-fpm","php7.0-apache","php7.0","php5.6-fpm-alpine","php5.6-fpm"]}]\ No newline at end of filediff --git a/apps/trpc-experimental/server/src/templates.json b/apps/trpc-experimental/server/src/templates.jsondeleted file mode 100644index 256cca6091..0000000000--- a/apps/trpc-experimental/server/src/templates.json+++ /dev/null@@ -1 +0,0 @@-[{"templateVersion":"1.0.0","defaultVersion":"0.8.0","documentation":"https://pocketbase.io/docs/","type":"pocketbase","name":"Pocketbase","description":"Open Source realtime backend in 1 file","services":{"$$id":{"image":"coollabsio/pocketbase:$$core_version","volumes":["$$id-data:/app/pb_data"],"ports":["8080"]}}},{"templateVersion":"1.0.0","defaultVersion":"1.5.0-rc.0","documentation":"https://plausible.io/doc/","type":"plausibleanalytics-arm","name":"Plausible Analytics (ARM)","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DB=$$config_postgres_db"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Disable Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Disable Registration","defaultValue":"true","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"1.17","documentation":"https://docs.gitea.io","type":"gitea","name":"Gitea","description":"Gitea is a community managed lightweight code hosting solution written in Go.","labels":["storage","git"],"services":{"$$id":{"name":"Gitea","documentation":"https://docs.gitea.io","image":"gitea/gitea:$$core_version","volumes":["$$id-data:/data","/etc/timezone:/etc/timezone:ro","/etc/localtime:/etc/localtime:ro"],"environment":["USER_UID=1000","USER_GID=1000","DOMAIN=$$config_domain","SSH_DOMAIN=$$config_ssh_domain","ROOT_URL=$$config_root_url","SECRET_KEY=$$secret_secret_key","INTERNAL_TOKEN=$$secret_internal_token","SSH_PORT=22","START_SSH_SERVER=$$config_start_ssh_server"],"ports":["3000","22"],"proxy":[{"port":"22","hostPort":"$$config_hostport_ssh"}]}},"variables":[{"id":"$$config_hostport_ssh","name":"SSH_PORT","label":"SSH Port","defaultValue":"8022","description":"","required":true},{"id":"$$config_domain","name":"DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ssh_domain","name":"SSH_DOMAIN","label":"SSH Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_start_ssh_server","name":"START_SSH_SERVER","label":"Start SSH Server","defaultValue":"true","description":""},{"id":"$$config_root_url","name":"ROOT_URL","label":"Root URL of Gitea","defaultValue":"$$generate_fqdn_slash","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(32)","description":""},{"id":"$$secret_internal_token","name":"INTERNAL_TOKEN","label":"Internal JWT Token","defaultValue":"$$generate_token","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"20.0","documentation":"https://www.keycloak.org/documentation","type":"keycloak","name":"Keycloak","description":"Keycloak provides user federation, strong authentication, user management, fine-grained authorization, and more.","labels":["authentication","authorization","oidconnect","saml2"],"services":{"$$id":{"name":"Keycloak","command":"start --db=postgres --features=token-exchange --import-realm","depends_on":["$$id-postgresql"],"image":"quay.io/keycloak/keycloak:$$core_version","volumes":["$$id-import:/opt/keycloak/data/import"],"environment":["KC_HEALTH_ENABLED=true","KC_PROXY=edge","KC_DB=postgres","KC_HOSTNAME=$$config_keycloak_domain","KEYCLOAK_ADMIN=$$config_admin_user","KEYCLOAK_ADMIN_PASSWORD=$$secret_keycloak_admin_password","KC_DB_PASSWORD=$$secret_postgres_password","KC_DB_USERNAME=$$config_postgres_user","KC_DB_URL=$$secret_keycloak_database_url"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_keycloak_domain","name":"KEYCLOAK_DOMAIN","label":"Keycloak Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_keycloak_database_url","name":"KEYCLOAK_DATABASE_URL","label":"Keycloak Database Url","defaultValue":"jdbc:postgresql://$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$config_admin_user","name":"KEYCLOAK_ADMIN","label":"Keycloak Admin User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_keycloak_admin_password","name":"KEYCLOAK_ADMIN_PASSWORD","label":"Keycloak Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"keycloak","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v3.6","documentation":"https://github.com/freyacodes/Lavalink","description":"Standalone audio sending node based on Lavaplayer.","type":"lavalink","name":"Lavalink","labels":["discord","discord bot","audio","lavalink","jda"],"services":{"$$id":{"name":"Lavalink","image":"fredboat/lavalink:$$core_version","environment":[],"volumes":["$$id-lavalink:/lavalink"],"ports":["2333"],"files":[{"location":"/opt/Lavalink/application.yml","content":"server:\n port: $$config_port\n address: 0.0.0.0\nlavalink:\n server:\n password: \"$$secret_password\"\n sources:\n youtube: true\n bandcamp: true\n soundcloud: true\n twitch: true\n vimeo: true\n http: true\n local: false\n\nlogging:\n file:\n path: ./logs/\n\n level:\n root: INFO\n lavalink: INFO\n\n logback:\n rollingpolicy:\n max-file-size: 1GB\n max-history: 30"}]}},"variables":[{"id":"$$config_port","name":"PORT","label":"Port","defaultValue":"2333","required":true},{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"v1.8.6","documentation":"https://docs.appsmith.com/getting-started/setup/instance-configuration/","type":"appsmith","name":"Appsmith","description":"Fastest way to build internal apps over any database or API.","services":{"$$id":{"image":"appsmith/appsmith-ce:$$core_version","environment":["APPSMITH_MAIL_ENABLED=$$config_appsmith_mail_enabled","APPSMITH_DISABLE_TELEMETRY=$$config_appsmith_disable_telemetry","APPSMITH_DISABLE_INTERCOM=$$config_appsmith_disable_intercom"],"volumes":["$$id-stacks-data:/appsmith-stacks"],"ports":["80"]}},"variables":[{"id":"$$config_appsmith_mail_enabled","name":"APPSMITH_MAIL_ENABLED","label":"Enable Mail","defaultValue":"false","description":""},{"id":"$$config_appsmith_disable_telemetry","name":"APPSMITH_DISABLE_TELEMETRY","label":"Disable Telemetry","defaultValue":"true","description":""},{"id":"$$config_appsmith_disable_intercom","name":"APPSMITH_DISABLE_INTERCOM","label":"Disable Intercom","defaultValue":"true","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.56.2","documentation":"https://hub.docker.com/r/zadam/trilium","description":"A hierarchical note taking application with focus on building large personal knowledge bases.","labels":["personal","knowledge","notes","wiki"],"type":"trilium","name":"Trilium Notes","services":{"$$id":{"image":"zadam/trilium:$$core_version","environment":[],"volumes":["$$id-trilium:/home/node/trilium-data"],"ports":["8080"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.9.2","documentation":"https://hub.docker.com/r/louislam/uptime-kuma","description":"A free & fancy self-hosted monitoring tool.","labels":["uptime"],"type":"uptimekuma","name":"UptimeKuma","services":{"$$id":{"image":"louislam/uptime-kuma:$$core_version","environment":[],"volumes":["$$id-uptimekuma:/app/data"],"ports":["3001"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"5.8","documentation":"https://hub.docker.com/r/silviof/docker-languagetool","description":"A multilingual grammar, style and spell checker.","type":"languagetool","name":"LanguageTool","services":{"$$id":{"image":"silviof/docker-languagetool:$$core_version","environment":[],"volumes":["$$id-ngrams:/ngrams"],"ports":["8010"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.26.0","documentation":"https://hub.docker.com/r/vaultwarden/server","description":"Bitwarden compatible server written in Rust.","type":"vaultwarden","name":"VaultWarden","labels":["bitwarden","password manager"],"services":{"$$id":{"image":"vaultwarden/server:$$core_version","environment":[],"volumes":["$$id-data:/data"],"ports":["80"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"9.2.3","documentation":"https://hub.docker.com/r/grafana/grafana","type":"grafana","name":"Grafana","description":"Grafana allows you to query, visualize, alert on and understand your metrics.","labels":["monitoring","metrics","dashboard"],"services":{"$$id":{"image":"grafana/grafana:$$core_version","environment":[],"volumes":["$$id-config:/etc/grafana","$$id-grafana:/var/lib/grafana"],"ports":["3000"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.0.3","documentation":"https://appwrite.io/docs","type":"appwrite","name":"Appwrite","description":"Secure Backend Server for Web, Mobile & Flutter Developers.","labels":["serverless","backend","storage","api"],"services":{"$$id":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_LOCALE=$$config__app_locale","_APP_CONSOLE_WHITELIST_ROOT=$$config__app_console_whitelist_root","_APP_CONSOLE_WHITELIST_EMAILS=$$config__app_console_whitelist_emails","_APP_CONSOLE_WHITELIST_IPS=$$config__app_console_whitelist_ips","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_SYSTEM_RESPONSE_FORMAT=$$config__app_system_response_format","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPTIONS_FORCE_HTTPS=$$config__app_options_force_https","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_STORAGE_LIMIT=$$config__app_storage_limit","_APP_STORAGE_PREVIEW_LIMIT=$$config__app_storage_preview_limit","_APP_STORAGE_ANTIVIRUS=$$config__app_storage_antivirus_enabled","_APP_STORAGE_ANTIVIRUS_HOST=$$config__app_storage_antivirus_host","_APP_STORAGE_ANTIVIRUS_PORT=$$config__app_storage_antivirus_port","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_FUNCTIONS_SIZE_LIMIT=$$config__app_functions_size_limit","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STATSD_HOST=$$config__app_statsd_host","_APP_STATSD_PORT=$$config__app_statsd_port","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-config:/storage/config","$$id-certificates:/storage/certificates","$$id-functions:/storage/functions"],"ports":["80"],"proxy":[{"port":"80"}]},"$$id-executor":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_INACTIVE_THRESHOLD=$$config__app_functions_inactive_threshold","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-functions:/storage/functions","$$id-builds:/storage/builds","/var/run/docker.sock:/var/run/docker.sock"],"entrypoint":"executor"},"$$id-influxdb":{"image":"appwrite/influxdb:1.5.0","environment":[],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-maintenance":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"maintenance"},"$$id-mariadb":{"image":"mariadb:10.7","command":"--innodb-flush-method fsync","environment":["MARIADB_ROOT_PASSWORD=$$secret__app_db_root_pass","MARIADB_DATABASE=$$config__app_db_schema","MARIADB_USER=$$config__app_db_user","MARIADB_PASSWORD=$$secret__app_db_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-mariadb:/var/lib/mysql"]},"$$id-realtime":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"realtime","proxy":[{"port":"80","pathPrefix":"/v1/realtime"}]},"$$id-redis":{"image":"redis:7.0.4-alpine","command":"--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples 5","environment":[],"volumes":["$$id-redis:/data"]},"$$id-schedule":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"schedule"},"$$id-telegraf":{"image":"appwrite/telegraf:1.4.0","environment":["_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-usage-database":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type database"},"$$id-usage":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type timeseries"},"$$id-worker-audits":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-audits"},"$$id-worker-builds":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-builds"},"$$id-worker-certificates":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-config:/storage/config","$$id-certificates:/storage/certificates"],"entrypoint":"worker-certificates"},"$$id-worker-databases":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-databases"},"$$id-worker-deletes":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-functions:/storage/functions","$$id-builds:/storage/builds","$$id-certificates:/storage/certificates"],"entrypoint":"worker-deletes"},"$$id-worker-functions":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_USAGE_STATS=$$config__app_usage_stats","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-functions"},"$$id-worker-mails":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-mails"},"$$id-worker-messaging":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-messaging"},"$$id-worker-webhooks":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-webhooks"}},"variables":[{"id":"$$config__app_influxdb_host","name":"_APP_INFLUXDB_HOST","label":"InfluxDB | _APP_INFLUXDB_HOST","defaultValue":"$$id-influxdb","description":""},{"id":"$$config__app_influxdb_port","name":"_APP_INFLUXDB_PORT","label":"InfluxDB | _APP_INFLUXDB_PORT","defaultValue":"8086","description":"InfluxDB server TCP port."},{"id":"$$config__app_env","name":"_APP_ENV","label":"General | _APP_ENV","defaultValue":"production","description":"Set your server running environment."},{"id":"$$config__app_worker_per_core","name":"_APP_WORKER_PER_CORE","label":"General | _APP_WORKER_PER_CORE","defaultValue":"6","description":"Internal Worker per core for the API, Realtime and Executor containers. Can be configured to optimize performance."},{"id":"$$config__app_locale","name":"_APP_LOCALE","label":"General | _APP_LOCALE","defaultValue":"en","description":"Set your Appwrite's locale. By default, the locale is set to 'en'."},{"id":"$$config__app_console_whitelist_root","name":"_APP_CONSOLE_WHITELIST_ROOT","label":"General | _APP_CONSOLE_WHITELIST_ROOT","defaultValue":"enabled","description":"This option allows you to disable the creation of new users on the Appwrite console. When enabled only 1 user will be able to use the registration form. New users can be added by inviting them to your project. By default this option is enabled."},{"id":"$$config__app_console_whitelist_emails","name":"_APP_CONSOLE_WHITELIST_EMAILS","label":"General | _APP_CONSOLE_WHITELIST_EMAILS","defaultValue":"","description":"This option allows you to limit creation of new users on the Appwrite console. This option is very useful for small teams or sole developers. To enable it, pass a list of allowed email addresses separated by a comma."},{"id":"$$config__app_console_whitelist_ips","name":"_APP_CONSOLE_WHITELIST_IPS","label":"General | _APP_CONSOLE_WHITELIST_IPS","defaultValue":"","description":"This last option allows you to limit creation of users in Appwrite console for users sharing the same set of IP addresses. This option is very useful for team working with a VPN service or a company IP.\\n\\nTo enable/activate this option, pass a list of allowed IP addresses separated by a comma."},{"id":"$$config__app_system_email_name","name":"_APP_SYSTEM_EMAIL_NAME","label":"General | _APP_SYSTEM_EMAIL_NAME","defaultValue":"Appwrite","description":"This is the sender name value that will appear on email messages sent to developers from the Appwrite console. You can use url encoded strings for spaces and special chars."},{"id":"$$config__app_system_email_address","name":"_APP_SYSTEM_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the sender email address that will appear on email messages sent to developers from the Appwrite console. You should choose an email address that is allowed to be used from your SMTP server to avoid the server email ending in the users' SPAM folders."},{"id":"$$config__app_system_security_email_address","name":"_APP_SYSTEM_SECURITY_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_SECURITY_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the email address used to issue SSL certificates for custom domains or the user agent in your webhooks payload."},{"id":"$$config__app_system_response_format","name":"_APP_SYSTEM_RESPONSE_FORMAT","label":"General | _APP_SYSTEM_RESPONSE_FORMAT","defaultValue":"","description":"Use this environment variable to set the default Appwrite HTTP response format to support an older version of Appwrite. This option is useful to overcome breaking changes between versions. You can also use the X-Appwrite-Response-Format HTTP request header to overwrite the response for a specific request. This variable accepts any valid Appwrite version. To use the current version format, leave the value of the variable empty."},{"id":"$$config__app_options_abuse","name":"_APP_OPTIONS_ABUSE","label":"General | _APP_OPTIONS_ABUSE","defaultValue":"enabled","description":"Allows you to disable abuse checks and API rate limiting. By default, set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not recommended to disable this check-in a production environment."},{"id":"$$config__app_options_force_https","name":"_APP_OPTIONS_FORCE_HTTPS","label":"General | _APP_OPTIONS_FORCE_HTTPS","defaultValue":"disabled","description":"Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the 'Strict-Transport-Security' header to all HTTP responses."},{"id":"$$secret__app_openssl_key_v1","name":"_APP_OPENSSL_KEY_V1","label":"General | _APP_OPENSSL_KEY_V1","defaultValue":"$$generate_hex(256)","description":"This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. Keep it a secret and have a backup for it."},{"id":"$$config__app_domain","name":"_APP_DOMAIN","label":"General | _APP_DOMAIN","defaultValue":"$$generate_domain","description":"Your Appwrite domain address. When setting a public suffix domain, Appwrite will attempt to issue a valid SSL certificate automatically. When used with a dev domain, Appwrite will assign a self-signed SSL certificate. The default value is 'localhost'."},{"id":"$$config__app_domain_target","name":"_APP_DOMAIN_TARGET","label":"General | _APP_DOMAIN_TARGET","defaultValue":"$$generate_fqdn","description":"A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite '_APP_DOMAIN' variable. The default value is 'localhost'."},{"id":"$$config__app_redis_host","name":"_APP_REDIS_HOST","label":"Redis | _APP_REDIS_HOST","defaultValue":"$$id-redis","description":""},{"id":"$$config__app_redis_port","name":"_APP_REDIS_PORT","label":"Redis | _APP_REDIS_PORT","defaultValue":"6379","description":"Redis server TCP port."},{"id":"$$config__app_redis_user","name":"_APP_REDIS_USER","label":"Redis | _APP_REDIS_USER","defaultValue":"","description":"Redis server user. This is an optional variable. Default value is an empty string."},{"id":"$$secret__app_redis_pass","name":"_APP_REDIS_PASS","label":"Redis | _APP_REDIS_PASS","defaultValue":"","description":"Redis server password. This is an optional variable. Default value is an empty string."},{"id":"$$config__app_db_host","name":"_APP_DB_HOST","label":"MariaDB | _APP_DB_HOST","defaultValue":"$$id-mariadb","description":""},{"id":"$$config__app_db_port","name":"_APP_DB_PORT","label":"MariaDB | _APP_DB_PORT","defaultValue":"3306","description":"MariaDB server TCP port."},{"id":"$$config__app_db_schema","name":"_APP_DB_SCHEMA","label":"MariaDB | _APP_DB_SCHEMA","defaultValue":"appwrite","description":"MariaDB server database schema."},{"id":"$$config__app_db_user","name":"_APP_DB_USER","label":"MariaDB | _APP_DB_USER","defaultValue":"user","description":"MariaDB server user name."},{"id":"$$secret__app_db_root_pass","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB | MARIADB_ROOT_PASSWORD","defaultValue":"$$generate_hex(16)","description":"MariaDB server root user password."},{"id":"$$secret__app_db_pass","name":"_APP_DB_PASS","label":"MariaDB | _APP_DB_PASS","defaultValue":"$$generate_hex(16)","description":"MariaDB server user password."},{"id":"$$config__app_smtp_host","name":"_APP_SMTP_HOST","label":"SMTP | _APP_SMTP_HOST","defaultValue":"","description":"SMTP server host name address. Use an empty string to disable all mail sending from the server. The default value for this variable is an empty string."},{"id":"$$config__app_smtp_port","name":"_APP_SMTP_PORT","label":"SMTP | _APP_SMTP_PORT","defaultValue":"","description":"SMTP server TCP port. Empty by default."},{"id":"$$config__app_smtp_secure","name":"_APP_SMTP_SECURE","label":"SMTP | _APP_SMTP_SECURE","defaultValue":"","description":"SMTP secure connection protocol. Empty by default, change to 'tls' if running on a secure connection."},{"id":"$$config__app_smtp_username","name":"_APP_SMTP_USERNAME","label":"SMTP | _APP_SMTP_USERNAME","defaultValue":"","description":"SMTP server user name. Empty by default."},{"id":"$$secret__app_smtp_password","name":"_APP_SMTP_PASSWORD","label":"SMTP | _APP_SMTP_PASSWORD","defaultValue":"","description":"SMTP server user password. Empty by default."},{"id":"$$config__app_usage_stats","name":"_APP_USAGE_STATS","label":"General | _APP_USAGE_STATS","defaultValue":"enabled","description":"This variable allows you to disable the collection and displaying of usage stats. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'. When disabled, it's recommended to turn off the Worker Usage, Influxdb and Telegraf containers for better resource usage."},{"id":"$$config__app_storage_limit","name":"_APP_STORAGE_LIMIT","label":"Storage | _APP_STORAGE_LIMIT","defaultValue":"30000000","description":"Maximum file size allowed for file upload. The default value is 30MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_preview_limit","name":"_APP_STORAGE_PREVIEW_LIMIT","label":"Storage | _APP_STORAGE_PREVIEW_LIMIT","defaultValue":"20000000","description":"Maximum file size allowed for file image preview. The default value is 20MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_antivirus_enabled","name":"_APP_STORAGE_ANTIVIRUS","label":"Storage | _APP_STORAGE_ANTIVIRUS","defaultValue":"disabled","description":"This variable allows you to disable the internal anti-virus scans. This value is set to 'disabled' by default, to enable the scans set the value to 'enabled'. Before enabling, you must add the ClamAV service and depend on it on main Appwrite service."},{"id":"$$config__app_storage_antivirus_host","name":"_APP_STORAGE_ANTIVIRUS_HOST","label":"Storage | _APP_STORAGE_ANTIVIRUS_HOST","defaultValue":"clamav","description":"ClamAV server host name address."},{"id":"$$config__app_storage_antivirus_port","name":"_APP_STORAGE_ANTIVIRUS_PORT","label":"Storage | _APP_STORAGE_ANTIVIRUS_PORT","defaultValue":"3310","description":"ClamAV server TCP port."},{"id":"$$config__app_storage_device","name":"_APP_STORAGE_DEVICE","label":"Storage | _APP_STORAGE_DEVICE","defaultValue":"Local","description":"Select default storage device. The default value is 'Local'. List of supported adapters are 'Local', 'S3', 'DOSpaces', 'Backblaze', 'Linode' and 'Wasabi'."},{"id":"$$secret__app_storage_s3_access_key","name":"_APP_STORAGE_S3_ACCESS_KEY","label":"Storage | _APP_STORAGE_S3_ACCESS_KEY","defaultValue":"","description":"AWS S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your AWS console."},{"id":"$$secret__app_storage_s3_secret","name":"_APP_STORAGE_S3_SECRET","label":"Storage | _APP_STORAGE_S3_SECRET","defaultValue":"","description":"AWS S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your AWS console."},{"id":"$$config__app_storage_s3_region","name":"_APP_STORAGE_S3_REGION","label":"Storage | _APP_STORAGE_S3_REGION","defaultValue":"us-east-1","description":"AWS S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from AWS console."},{"id":"$$config__app_storage_s3_bucket","name":"_APP_STORAGE_S3_BUCKET","label":"Storage | _APP_STORAGE_S3_BUCKET","defaultValue":"","description":"AWS S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your AWS console."},{"id":"$$secret__app_storage_do_spaces_access_key","name":"_APP_STORAGE_DO_SPACES_ACCESS_KEY","label":"Storage | _APP_STORAGE_DO_SPACES_ACCESS_KEY","defaultValue":"","description":"DigitalOcean spaces access key. Required when the storage adapter is set to DOSpaces. You can get your access key from your DigitalOcean console."},{"id":"$$secret__app_storage_do_spaces_secret","name":"_APP_STORAGE_DO_SPACES_SECRET","label":"Storage | _APP_STORAGE_DO_SPACES_SECRET","defaultValue":"","description":"DigitalOcean spaces secret key. Required when the storage adapter is set to DOSpaces. You can get your secret key from your DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_region","name":"_APP_STORAGE_DO_SPACES_REGION","label":"Storage | _APP_STORAGE_DO_SPACES_REGION","defaultValue":"us-east-1","description":"DigitalOcean spaces region. Required when storage adapter is set to DOSpaces. You can find your region info for your space from DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_bucket","name":"_APP_STORAGE_DO_SPACES_BUCKET","label":"Storage | _APP_STORAGE_DO_SPACES_BUCKET","defaultValue":"","description":"DigitalOcean spaces bucket. Required when storage adapter is set to DOSpaces. You can create spaces in your DigitalOcean console."},{"id":"$$secret__app_storage_backblaze_access_key","name":"_APP_STORAGE_BACKBLAZE_ACCESS_KEY","label":"Storage | _APP_STORAGE_BACKBLAZE_ACCESS_KEY","defaultValue":"","description":"Backblaze access key. Required when the storage adapter is set to Backblaze. Your Backblaze keyID will be your access key. You can get your keyID from your Backblaze console."},{"id":"$$secret__app_storage_backblaze_secret","name":"_APP_STORAGE_BACKBLAZE_SECRET","label":"Storage | _APP_STORAGE_BACKBLAZE_SECRET","defaultValue":"","description":"Backblaze secret key. Required when the storage adapter is set to Backblaze. Your Backblaze applicationKey will be your secret key. You can get your applicationKey from your Backblaze console."},{"id":"$$config__app_storage_backblaze_region","name":"_APP_STORAGE_BACKBLAZE_REGION","label":"Storage | _APP_STORAGE_BACKBLAZE_REGION","defaultValue":"us-west-004","description":"Backblaze region. Required when storage adapter is set to Backblaze. You can find your region info from your Backblaze console."},{"id":"$$config__app_storage_backblaze_bucket","name":"_APP_STORAGE_BACKBLAZE_BUCKET","label":"Storage | _APP_STORAGE_BACKBLAZE_BUCKET","defaultValue":"","description":"Backblaze bucket. Required when storage adapter is set to Backblaze. You can create your bucket from your Backblaze console."},{"id":"$$secret__app_storage_linode_access_key","name":"_APP_STORAGE_LINODE_ACCESS_KEY","label":"Storage | _APP_STORAGE_LINODE_ACCESS_KEY","defaultValue":"","description":"Linode object storage access key. Required when the storage adapter is set to Linode. You can get your access key from your Linode console."},{"id":"$$secret__app_storage_linode_secret","name":"_APP_STORAGE_LINODE_SECRET","label":"Storage | _APP_STORAGE_LINODE_SECRET","defaultValue":"","description":"Linode object storage secret key. Required when the storage adapter is set to Linode. You can get your secret key from your Linode console."},{"id":"$$config__app_storage_linode_region","name":"_APP_STORAGE_LINODE_REGION","label":"Storage | _APP_STORAGE_LINODE_REGION","defaultValue":"eu-central-1","description":"Linode object storage region. Required when storage adapter is set to Linode. You can find your region info from your Linode console."},{"id":"$$config__app_storage_linode_bucket","name":"_APP_STORAGE_LINODE_BUCKET","label":"Storage | _APP_STORAGE_LINODE_BUCKET","defaultValue":"","description":"Linode object storage bucket. Required when storage adapter is set to Linode. You can create buckets in your Linode console."},{"id":"$$secret__app_storage_wasabi_access_key","name":"_APP_STORAGE_WASABI_ACCESS_KEY","label":"Storage | _APP_STORAGE_WASABI_ACCESS_KEY","defaultValue":"","description":"Wasabi access key. Required when the storage adapter is set to Wasabi. You can get your access key from your Wasabi console."},{"id":"$$secret__app_storage_wasabi_secret","name":"_APP_STORAGE_WASABI_SECRET","label":"Storage | _APP_STORAGE_WASABI_SECRET","defaultValue":"","description":"Wasabi secret key. Required when the storage adapter is set to Wasabi. You can get your secret key from your Wasabi console."},{"id":"$$config__app_storage_wasabi_region","name":"_APP_STORAGE_WASABI_REGION","label":"Storage | _APP_STORAGE_WASABI_REGION","defaultValue":"eu-central-1","description":"Wasabi region. Required when storage adapter is set to Wasabi. You can find your region info from your Wasabi console."},{"id":"$$config__app_storage_wasabi_bucket","name":"_APP_STORAGE_WASABI_BUCKET","label":"Storage | _APP_STORAGE_WASABI_BUCKET","defaultValue":"","description":"Wasabi bucket. Required when storage adapter is set to Wasabi. You can create buckets in your Wasabi console."},{"id":"$$config__app_functions_size_limit","name":"_APP_FUNCTIONS_SIZE_LIMIT","label":"Functions | _APP_FUNCTIONS_SIZE_LIMIT","defaultValue":"30000000","description":"The maximum size deployment in bytes. The default value is 30MB."},{"id":"$$config__app_functions_timeout","name":"_APP_FUNCTIONS_TIMEOUT","label":"Functions | _APP_FUNCTIONS_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_build_timeout","name":"_APP_FUNCTIONS_BUILD_TIMEOUT","label":"Functions | _APP_FUNCTIONS_BUILD_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when building a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_containers","name":"_APP_FUNCTIONS_CONTAINERS","label":"Functions | _APP_FUNCTIONS_CONTAINERS","defaultValue":"10","description":"The maximum number of containers Appwrite is allowed to keep alive in the background for function environments. Running containers allow faster execution time as there is no need to recreate each container every time a function gets executed. The default value is 10."},{"id":"$$config__app_functions_cpus","name":"_APP_FUNCTIONS_CPUS","label":"Functions | _APP_FUNCTIONS_CPUS","defaultValue":"","description":"The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it's empty, CPU limit will be disabled."},{"id":"$$config__app_functions_memory_allocated","name":"_APP_FUNCTIONS_MEMORY","label":"Functions | _APP_FUNCTIONS_MEMORY","defaultValue":"","description":"The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, memory limit will be disabled."},{"id":"$$config__app_functions_memory_swap","name":"_APP_FUNCTIONS_MEMORY_SWAP","label":"Functions | _APP_FUNCTIONS_MEMORY_SWAP","defaultValue":"","description":"The maximum amount of swap memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, swap memory limit will be disabled."},{"id":"$$config__app_functions_runtimes","name":"_APP_FUNCTIONS_RUNTIMES","label":"Functions | _APP_FUNCTIONS_RUNTIMES","defaultValue":"node-18.0","description":"This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\nCurrently, supported environments are: node-14.5, node-16.0, node-18.0, php-8.0, php-8.1, ruby-3.0, ruby-3.1, python-3.8, python-3.9, python-3.10, deno-1.21, deno-1.24, dart-2.15, dart-2.16, dart-2.17, dotnet-3.1, dotnet-6.0, java-8.0, java-11.0, java-17.0, java-18.0, swift-5.5, kotlin-1.6, cpp-17.0"},{"id":"$$secret__app_executor_secret","name":"_APP_EXECUTOR_SECRET","label":"Functions | _APP_EXECUTOR_SECRET","defaultValue":"$$generate_hex(16)","description":"The secret key used by Appwrite to communicate with the function executor."},{"id":"$$config__app_executor_host","name":"_APP_EXECUTOR_HOST","label":"","defaultValue":"http://$$id-executor/v1","description":""},{"id":"$$config__app_logging_provider","name":"_APP_LOGGING_PROVIDER","label":"General | _APP_LOGGING_PROVIDER","defaultValue":"","description":"This variable allows you to enable logging errors to 3rd party providers. This value is empty by default, to enable the logger set the value to one of 'sentry', 'raygun', 'appsignal', 'logowl'"},{"id":"$$config__app_logging_config","name":"_APP_LOGGING_CONFIG","label":"General | _APP_LOGGING_CONFIG","defaultValue":"","description":"This variable configures authentication to 3rd party error logging providers. If using Sentry, this should be 'SENTRY_API_KEY;SENTRY_APP_ID'. If using Raygun, this should be Raygun API key. If using AppSignal, this should be AppSignal API key. If using LogOwl, this should be LogOwl Service Ticket."},{"id":"$$config__app_statsd_host","name":"_APP_STATSD_HOST","label":"","defaultValue":"$$id-telegraf","description":""},{"id":"$$config__app_statsd_port","name":"_APP_STATSD_PORT","label":"StatsD | _APP_STATSD_PORT","defaultValue":"8125","description":"StatsD server TCP port."},{"id":"$$config__app_maintenance_interval","name":"_APP_MAINTENANCE_INTERVAL","label":"Functions | _APP_MAINTENANCE_INTERVAL","defaultValue":"86400","description":"Interval value containing the number of seconds that the Appwrite maintenance process should wait before executing system cleanups and optimizations. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_execution","name":"_APP_MAINTENANCE_RETENTION_EXECUTION","label":"Functions | _APP_MAINTENANCE_RETENTION_EXECUTION","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain execution logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_maintenance_retention_cache","name":"_APP_MAINTENANCE_RETENTION_CACHE","label":"Functions | _APP_MAINTENANCE_RETENTION_CACHE","defaultValue":"2592000","description":"The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days)."},{"id":"$$config__app_maintenance_retention_abuse","name":"_APP_MAINTENANCE_RETENTION_ABUSE","label":"Functions | _APP_MAINTENANCE_RETENTION_ABUSE","defaultValue":"86400","description":"The maximum duration (in seconds) upto which to retain abuse logs. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_audit","name":"_APP_MAINTENANCE_RETENTION_AUDIT","label":"Functions | _APP_MAINTENANCE_RETENTION_AUDIT","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_sms_provider","name":"_APP_SMS_PROVIDER","label":"Phone | _APP_SMS_PROVIDER","defaultValue":"","description":"Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. Available providers are twilio, text-magic, telesign, msg91, and vonage."},{"id":"$$config__app_sms_from","name":"_APP_SMS_FROM","label":"Phone | _APP_SMS_FROM","defaultValue":"","description":"Phone number used for sending out messages. Must start with a leading '+' and maximum of 15 digits without spaces (+123456789)."},{"id":"$$config__app_functions_inactive_threshold","name":"_APP_FUNCTIONS_INACTIVE_THRESHOLD","label":"Functions | _APP_FUNCTIONS_INACTIVE_THRESHOLD","defaultValue":"60","description":"The minimum time a function can be inactive before it's container is shutdown and put to sleep. The default value is 60 seconds"},{"id":"$$config_open_runtimes_network","name":"OPEN_RUNTIMES_NETWORK","label":"","defaultValue":"$$generate_network","description":""},{"id":"$$config_dockerhub_pull_username","name":"DOCKERHUB_PULL_USERNAME","label":"Functions | DOCKERHUB_PULL_USERNAME","defaultValue":"","description":"The username for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$secret_dockerhub_pull_password","name":"DOCKERHUB_PULL_PASSWORD","label":"Functions | DOCKERHUB_PULL_PASSWORD","defaultValue":"","description":"The password for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$config__app_usage_timeseries_interval","name":"_APP_USAGE_TIMESERIES_INTERVAL","label":"General | _APP_USAGE_TIMESERIES_INTERVAL","defaultValue":"30","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to mariadb from InfluxDB. The default value is 30 seconds."},{"id":"$$config__app_usage_database_interval","name":"_APP_USAGE_DATABASE_INTERVAL","label":"General | _APP_USAGE_DATABASE_INTERVAL","defaultValue":"900","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats from data in Appwrite Database. The default value is 15 minutes."}]},{"templateVersion":"1.0.0","defaultVersion":"latest","documentation":"https://docs.weblate.org/en/latest/admin/install/docker.html","description":"A copylefted libre software web-based continuous localization system.","type":"weblate","name":"Weblate","labels":["translate","localization"],"services":{"$$id":{"name":"Weblate","depends_on":["$$id-postgresql","$$id-redis"],"image":"weblate/weblate:$$core_version","volumes":["$$id-data:/app/data"],"environment":["WEBLATE_SITE_DOMAIN=$$config_weblate_site_domain","WEBLATE_ADMIN_PASSWORD=$$secret_weblate_admin_password","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DATABASE=$$config_postgres_db","POSTGRES_HOST=$$id-postgresql","POSTGRES_PORT=5432","REDIS_HOST=$$id-redis"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_weblate_site_domain","name":"WEBLATE_SITE_DOMAIN","label":"Weblate Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_weblate_admin_password","name":"WEBLATE_ADMIN_PASSWORD","label":"Weblate Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"weblate","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"2022.10.14-1a5b0965","documentation":"https://docs.searxng.org/","type":"searxng","name":"SearXNG","description":"Free internet metasearch engine which aggregates results from more than 70 search services.","services":{"$$id":{"name":"SearXNG","depends_on":["$$id-redis"],"image":"searxng/searxng:$$core_version","volumes":["$$id-searxng:/etc/searxng"],"environment":["SEARXNG_BASE_URL=$$config_searxng_base_url"],"ports":["8080"],"cap_drop":["ALL"],"cap_add":["CHOWN","SETGID","SETUID","DAC_OVERRIDE"],"files":[{"location":"/etc/searxng/settings.yml","content":"\n # see https://docs.searxng.org/admin/engines/settings.html#use-default-settings\n use_default_settings: true\n server:\n secret_key: $$secret_secret_key\n limiter: true\n image_proxy: true\n ui:\n static_use_hash: true\n redis:\n url: redis://:$$secret_redis_password@$$id-redis:6379/0"}]},"$$id-redis":{"name":"Redis","command":"redis-server --requirepass $$secret_redis_password --save \"\" --appendonly \"no\"","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":["REDIS_PASSWORD=$$secret_redis_password"],"ports":[],"cap_drop":["ALL"],"cap_add":["SETGID","SETUID","DAC_OVERRIDE"]}},"variables":[{"id":"$$config_searxng_base_url","name":"SEARXNG_BASE_URL","label":"SearXNG Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$secret_redis_password","name":"REDIS_PASSWORD","label":"Redis Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v2.0.6","documentation":"https://glitchtip.com/documentation","type":"glitchtip","name":"GlitchTip","description":"Simple, open source error tracking.","labels":["sentry","bugsnag"],"services":{"$$id":{"name":"GlitchTip","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","volumes":[],"environment":["PORT=$$config_port","GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","EMAIL_HOST=$$config_email_host","EMAIL_PORT=$$config_email_port","EMAIL_HOST_USER=$$config_email_host_user","EMAIL_HOST_PASSWORD=$$secret_email_host_password","EMAIL_USE_TLS=$$config_email_use_tls","EMAIL_USE_SSL=$$config_email_use_ssl","EMAIL_BACKEND=$$config_email_backend","MAILGUN_API_KEY=$$secret_mailgun_api_key","SENDGRID_API_KEY=$$secret_sendgrid_api_key","ENABLE_OPEN_USER_REGISTRATION=$$config_enable_open_user_registration","DJANGO_SUPERUSER_EMAIL=$$config_django_superuser_email","DJANGO_SUPERUSER_PASSWORD=$$secret_django_superuser_password","DJANGO_SUPERUSER_USERNAME=$$config_django_superuser_username","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":["8000"]},"$$id-worker":{"name":"Celery Worker","command":"./bin/run-celery-with-beat.sh","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":[]},"$$id-migrate":{"exclude":true,"name":"Migrate","command":"./manage.py migrate","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url"],"ports":[]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-postgresql-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_django_superuser_username","name":"DJANGO_SUPERUSER_USERNAME","label":"Django Superuser Username","defaultValue":"$$generate_username","description":""},{"id":"$$secret_django_superuser_password","name":"DJANGO_SUPERUSER_PASSWORD","label":"Django Superuser Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_port","name":"PORT","label":"GlitchTip Port","defaultValue":"8000","description":""},{"id":"$$config_celery_worker_concurrency","main":"$$id-worker","name":"CELERY_WORKER_CONCURRENCY","label":"Celery Worker Concurrency","defaultValue":"2","description":""},{"id":"$$config_glitchtip_domain","name":"GLITCHTIP_DOMAIN","label":"GlitchTip Domain","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_email_url","name":"EMAIL_URL","label":"SMTP Email URL","defaultValue":"smtp://$$config_email_host_user:$$secret_email_host_password@$$config_email_host:$$config_email_port","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_redis_url","name":"REDIS_URL","label":"Redis URL","defaultValue":"redis://$$id-redis:6379/0","description":""},{"id":"$$config_default_from_email","name":"DEFAULT_FROM_EMAIL","label":"Default Email Address","defaultValue":"[email protected]","description":""},{"id":"$$config_email_host","name":"EMAIL_HOST","label":"Email SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_port","name":"EMAIL_PORT","label":"Email SMTP Port","defaultValue":"25","description":""},{"id":"$$config_email_host_user","name":"EMAIL_HOST_USER","label":"Email SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_host_password","name":"EMAIL_HOST_PASSWORD","label":"Email SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_use_tls","name":"EMAIL_USE_TLS","label":"Email Use TLS","defaultValue":"false","description":""},{"id":"$$config_email_use_ssl","name":"EMAIL_USE_SSL","label":"Email Use SSL","defaultValue":"false","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_backend","name":"EMAIL_BACKEND","label":"Email Backend","defaultValue":"","description":""},{"id":"$$secret_mailgun_api_key","name":"MAILGUN_API_KEY","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$secret_sendgrid_api_key","name":"SENDGRID_API_KEY","label":"Sendgrid API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_enable_open_user_registration","name":"ENABLE_OPEN_USER_REGISTRATION","label":"Enable Open User Registration","defaultValue":"true","description":""},{"id":"$$config_django_superuser_email","name":"DJANGO_SUPERUSER_EMAIL","label":"Django Superuser Email","defaultValue":"[email protected]","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"glitchtip","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v2.13.0","documentation":"https://hasura.io/docs/latest/index/","type":"hasura","name":"Hasura","description":"Instant realtime GraphQL APIs on any Postgres application, existing or new.","labels":["graphql","database"],"services":{"$$id":{"name":"Hasura","depends_on":["$$id-postgresql"],"image":"hasura/graphql-engine:$$core_version","volumes":[],"environment":["HASURA_GRAPHQL_ENABLE_CONSOLE=$$config_hasura_graphql_enable_console","HASURA_GRAPHQL_METADATA_DATABASE_URL=$$secret_hasura_graphql_metadata_database_url","HASURA_GRAPHQL_ADMIN_SECRET=$$secret_hasura_graphql_admin_secret"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_hasura_graphql_enable_console","name":"HASURA_GRAPHQL_ENABLE_CONSOLE","label":"Enable Hasura Console","defaultValue":"true","description":""},{"id":"$$secret_hasura_graphql_metadata_database_url","name":"HASURA_GRAPHQL_METADATA_DATABASE_URL","label":"Hasura Metadata Database URL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hasura_graphql_admin_secret","name":"HASURA_GRAPHQL_ADMIN_SECRET","label":"Hasura Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"hasura","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"postgresql-v1.38.0","documentation":"https://umami.is/docs/getting-started","type":"umami-postgresql","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"user_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n \n PRIMARY KEY (\"event_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n \n PRIMARY KEY (\"view_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n \n PRIMARY KEY (\"session_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"website_id\")\n );\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n \n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n \n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n \n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"postgresql-v1.38.0","documentation":"https://umami.is/docs/getting-started","type":"umami","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"user_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n \n PRIMARY KEY (\"event_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n \n PRIMARY KEY (\"view_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n \n PRIMARY KEY (\"session_id\")\n );\n \n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \n PRIMARY KEY (\"website_id\")\n );\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n \n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n \n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n \n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n \n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n \n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n \n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n \n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"v0.29.1","documentation":"https://docs.meilisearch.com/learn/getting_started/quick_start.html","type":"meilisearch","name":"MeiliSearch","description":"A lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.","services":{"$$id":{"name":"MeiliSearch","documentation":"https://docs.meilisearch.com/","depends_on":[],"image":"getmeili/meilisearch:$$core_version","volumes":["$$id-datams:/meili_data/data.ms","$$id-data:/meili_data","$$id-snapshot:/snapshot","$$id-dump:/dumps"],"environment":["MEILI_MASTER_KEY=$$secret_meili_master_key"],"ports":["7700"]}},"variables":[{"id":"$$secret_meili_master_key","name":"MEILI_MASTER_KEY","label":"Master Key","defaultValue":"$$generate_hex(64)","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"latest","documentation":"https://docs.ghost.org","arch":"amd64","type":"ghost-mariadb","name":"Ghost","subname":"(MariaDB)","description":"Free and open source blogging platform.","labels":["cms","blog"],"services":{"$$id":{"name":"Ghost","depends_on":["$$id-mariadb"],"image":"bitnami/ghost:$$core_version","volumes":["$$id-ghost:/bitnami/ghost"],"environment":["url=$$config_url","GHOST_HOST=$$config_ghost_host","GHOST_ENABLE_HTTPS=$$config_ghost_enable_https","GHOST_EMAIL=$$config_ghost_email","GHOST_PASSWORD=$$secret_ghost_password","GHOST_DATABASE_HOST=$$config_ghost_database_host","GHOST_DATABASE_USER=$$config_mariadb_user","GHOST_DATABASE_PASSWORD=$$secret_ghost_database_password","GHOST_DATABASE_NAME=$$config_mariadb_database","GHOST_DATABASE_PORT_NUMBER=3306"],"ports":["2368"]},"$$id-mariadb":{"name":"MariaDB","depends_on":[],"image":"bitnami/mariadb:latest","volumes":["$$id-mariadb:/bitnami/mariadb"],"environment":["MARIADB_USER=$$config_mariadb_user","MARIADB_PASSWORD=$$secret_mariadb_password","MARIADB_DATABASE=$$config_mariadb_database","MARIADB_ROOT_USER=$$config_mariadb_root_user","MARIADB_ROOT_PASSWORD=$$secret_mariadb_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_ghost_host","name":"GHOST_HOST","label":"Ghost Host","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ghost_enable_https","name":"GHOST_ENABLE_HTTPS","label":"Ghost Enable HTTPS","defaultValue":"no","description":""},{"id":"$$config_ghost_email","name":"GHOST_EMAIL","label":"Ghost Default Email","defaultValue":"[email protected]","description":""},{"id":"$$secret_ghost_password","name":"GHOST_PASSWORD","label":"Ghost Default Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_ghost_database_host","name":"GHOST_DATABASE_HOST","label":"Ghost Database Host","defaultValue":"$$id-mariadb","description":""},{"id":"$$config_ghost_database_user","name":"GHOST_DATABASE_USER","label":"MariaDB User","defaultValue":"$$config_mariadb_user","description":""},{"id":"$$secret_ghost_database_password","name":"GHOST_DATABASE_PASSWORD","label":"MariaDB Password","defaultValue":"$$secret_mariadb_password","description":""},{"id":"$$config_ghost_database_name","name":"GHOST_DATABASE_NAME","label":"MariaDB Database","defaultValue":"$$config_mariadb_database","description":""},{"id":"$$config_mariadb_user","name":"MARIADB_USER","label":"MariaDB User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_password","name":"MARIADB_PASSWORD","label":"MariaDB Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mariadb_database","name":"MARIADB_DATABASE","label":"MariaDB Database","defaultValue":"ghost","description":""},{"id":"$$config_mariadb_root_user","name":"MARIADB_ROOT_USER","label":"MariaDB Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_root_password","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"5.22","documentation":"https://docs.ghost.org","type":"ghost-only","name":"Ghost","subname":"(without Database)","description":"Free and open source blogging platform.","services":{"$$id":{"name":"Ghost","image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_database__connection__user","database__connection__password=$$secret_database__connection__password","database__connection__database=$$config_database__connection__database"],"ports":["2368"]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","required":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"","description":"","required":true,"placeholder":"db.coolify.io"},{"id":"$$config_database__connection__user","name":"database__connection__user","label":"Database User","defaultValue":"","description":"","placeholder":"ghost","required":true},{"id":"$$secret_database__connection__password","name":"database__connection__password","label":"Database Password","defaultValue":"","description":"","placeholder":"superSecretP4ssword","showOnConfiguration":true,"required":true},{"id":"$$config_database__connection__database","name":"database__connection__database","label":"Database Name","defaultValue":"","description":"","placeholder":"ghost_db","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"5.22","documentation":"https://docs.ghost.org","type":"ghost-mysql","name":"Ghost","subname":"(MySQL)","description":"Ghost is a free and open source blogging platform.","services":{"$$id":{"name":"Ghost","depends_on":["$$id-mysql"],"image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_mysql_user","database__connection__password=$$secret_mysql_password","database__connection__database=$$config_mysql_database"],"ports":["2368"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"mysql:8.0","volumes":["$$id-mysql:/var/lib/mysql"],"environment":["MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password","MYSQL_DATABASE=$$config_mysql_database","MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","readOnly":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"$$id-mysql","description":""},{"id":"$$config_mysql_user","main":"$$id-mysql","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mysql_password","main":"$$id-mysql","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mysql_database","main":"$$id-mysql","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"ghost","description":""},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress","name":"WordPress","subname":"(MySQL)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","depends_on":["$$id-mysql"],"image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_USER=$$config_mysql_user","WORDPRESS_DB_PASSWORD=$$secret_mysql_password","WORDPRESS_DB_NAME=$$config_mysql_database","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"bitnami/mysql:5.7","imageArm":"mysql:8.0","volumes":["$$id-mysql-data:/bitnami/mysql/data"],"volumesArm":["$$id-mysql-data:/var/lib/mysql"],"environment":["MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password","MYSQL_ROOT_USER=$$config_mysql_root_user","MYSQL_DATABASE=$$config_mysql_database","MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"$$id-mysql","description":"","readOnly":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"WordPress Config Extra","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":"","readOnly":true},{"id":"$$config_mysql_root_user","name":"MYSQL_ROOT_USER","label":"MySQL Root User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$config_mysql_database","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"wordpress","description":"","readOnly":true},{"id":"$$config_mysql_user","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$secret_mysql_password","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":"","readOnly":true}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress-only","name":"WordPress","subname":"(without DB)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_PORT=$$config_wordpress_db_port","WORDPRESS_DB_USER=$$config_wordpress_db_user","WORDPRESS_DB_PASSWORD=$$secret_wordpress_db_password","WORDPRESS_DB_NAME=$$config_wordpress_db_name","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"","description":"","placeholder":"db.coollabs.io","required":true},{"id":"$$config_wordpress_db_port","name":"WORDPRESS_DB_PORT","label":"Database Port","defaultValue":"","description":"","placeholder":"3306","required":true},{"id":"$$config_wordpress_db_user","name":"WORDPRESS_DB_USER","label":"Database User","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$secret_wordpress_db_password","name":"WORDPRESS_DB_PASSWORD","label":"Database Password","defaultValue":"","description":"","placeholder":"supers3cr3tpassw0rd!","required":true,"showOnConfiguration":true},{"id":"$$config_wordpress_db_name","name":"WORDPRESS_DB_NAME","label":"Database Name","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"Extra Config","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"}]},{"templateVersion":"1.0.0","defaultVersion":"4.7.1","documentation":"https://coder.com/docs/coder-oss/latest","type":"vscodeserver","name":"VSCode Server","description":"Visual Studio Code on a remote server, accessible through the browser.","labels":["vscode","ide"],"services":{"$$id":{"name":"VSCode Server","depends_on":[],"image":"codercom/code-server:$$core_version","volumes":["$$id-config-data:/home/coder/.local/share/code-server","$$id-vscodeserver-data:/home/coder","$$id-keys-directory:/root/.ssh","$$id-theme-and-plugin-directory:/root/.local/share/code-server"],"environment":["PASSWORD=$$secret_password"],"ports":["8080"]}},"variables":[{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"RELEASE.2022-10-15T19-57-03Z","documentation":"https://min.io/docs/minio","type":"minio","name":"MinIO","description":"A cloud storage server compatible with Amazon S3.","labels":["storage","s3"],"services":{"$$id":{"name":"MinIO","command":"server /data --console-address :9001","depends_on":[],"image":"minio/minio:$$core_version","volumes":["$$id-minio-data:/data","$$id-data-write:/files"],"environment":["MINIO_SERVER_URL=$$config_coolify_fqdn_minio_console","MINIO_BROWSER_REDIRECT_URL=$$config_minio_browser_redirect_url","MINIO_DOMAIN=$$config_minio_domain","MINIO_ROOT_USER=$$config_minio_root_user","MINIO_ROOT_PASSWORD=$$secret_minio_root_password"],"ports":["9000","9001"],"proxy":[{"port":"9000","domain":"$$config_coolify_fqdn_minio_console"},{"port":"9001"}]}},"variables":[{"id":"$$config_coolify_fqdn_minio_console","name":"MINIO_SERVER_URL","label":"MinIO Server URL","defaultValue":"","description":"Specify the URL hostname the MinIO Console should use for connecting to the MinIO Server.","required":true},{"id":"$$config_minio_browser_redirect_url","name":"MINIO_BROWSER_REDIRECT_URL","label":"Browser Redirect URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_minio_domain","name":"MINIO_DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_minio_root_user","name":"MINIO_ROOT_USER","label":"Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_minio_root_password","name":"MINIO_ROOT_PASSWORD","label":"Root User Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"0.21.1","documentation":"https://fider.io/docs","type":"fider","name":"Fider","description":"A platform to collect and organize customer feedback.","labels":["suggestion","feedback"],"services":{"$$id":{"name":"Fider","image":"getfider/fider:$$core_version","depends_on":["$$id-postgresql"],"environment":["BASE_URL=$$config_base_url","DATABASE_URL=$$secret_database_url","JWT_SECRET=$$secret_jwt_secret","EMAIL_NOREPLY=$$config_email_noreply","EMAIL_MAILGUN_API=$$secret_email_mailgun_api","EMAIL_MAILGUN_REGION=$$config_email_mailgun_region","EMAIL_MAILGUN_DOMAIN=$$config_email_mailgun_domain","EMAIL_SMTP_HOST=$$config_email_smtp_host","EMAIL_SMTP_PORT=$$config_email_smtp_port","EMAIL_SMTP_USER=$$config_email_smtp_user","EMAIL_SMTP_PASSWORD=$$secret_email_smtp_password","EMAIL_SMTP_ENABLE_STARTTLS=$$config_email_smtp_enable_starttls"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db?sslmode=disable","description":""},{"id":"$$secret_jwt_secret","name":"JWT_SECRET","label":"JWT Secret","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_email_noreply","name":"EMAIL_NOREPLY","label":"No Reply Email Address","defaultValue":"[email protected]","description":""},{"id":"$$secret_email_mailgun_api","name":"EMAIL_MAILGUN_API","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_mailgun_region","name":"EMAIL_MAILGUN_REGION","label":"Mailgun Region","defaultValue":"EU","description":""},{"id":"$$config_email_mailgun_domain","name":"EMAIL_MAILGUN_DOMAIN","label":"Mailgun Domain","defaultValue":"","description":""},{"id":"$$config_email_smtp_host","name":"EMAIL_SMTP_HOST","label":"SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_smtp_port","name":"EMAIL_SMTP_PORT","label":"SMTP Port","defaultValue":"587","description":""},{"id":"$$config_email_smtp_user","name":"EMAIL_SMTP_USER","label":"SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_smtp_enable_starttls","name":"EMAIL_SMTP_ENABLE_STARTTLS","label":"SMTP Enable StartTLS","defaultValue":"false","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"$$generate_username","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.198.1","documentation":"https://docs.n8n.io","type":"n8n","name":"n8n.io","description":"A free and open node based Workflow Automation Tool.","labels":["workflow","automation","ifttt","zapier","nodered"],"services":{"$$id":{"name":"N8n","depends_on":[],"image":"n8nio/n8n:$$core_version","volumes":["$$id-data:/root/.n8n","$$id-data-write:/files","/var/run/docker.sock:/var/run/docker.sock"],"environment":["WEBHOOK_URL=$$config_webhook_url"],"ports":["5678"]}},"variables":[{"id":"$$config_webhook_url","name":"WEBHOOK_URL","label":"Webhook URL","defaultValue":"$$generate_fqdn","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"stable","documentation":"https://plausible.io/doc/","arch":"amd64","type":"plausibleanalytics","name":"Plausible Analytics","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"bitnami/postgresql:13","volumes":["$$id-postgresql-data:/bitnami/postgresql"],"environment":["POSTGRESQL_PASSWORD=$$secret_postgresql_password","POSTGRESQL_USERNAME=$$config_postgresql_username","POSTGRESQL_DATABASE=$$config_postgresql_database"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgresql_username:$$secret_postgresql_password@$$id-postgresql:5432/$$config_postgresql_database","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Disable Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Disable Registration","defaultValue":"true","description":""},{"id":"$$config_postgresql_username","main":"$$id-postgresql","name":"POSTGRESQL_USERNAME","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgresql_password","main":"$$id-postgresql","name":"POSTGRESQL_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgresql_database","main":"$$id-postgresql","name":"POSTGRESQL_DATABASE","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"0.98.1","documentation":"https://docs.nocodb.com","type":"nocodb","name":"NocoDB","description":"Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadsheet.","labels":["database","airtable","spreadsheet"],"services":{"$$id":{"name":"NocoDB","image":"nocodb/nocodb:$$core_version","environment":["PORT=$$config_port","NC_DB=$$config_nc_db","DATABASE_URL=$$secret_database_url","NC_PUBLIC_URL=$$config_public_url","NC_AUTH_JWT_SECRET=$$secret_auth_jwt_secret","NC_SENTRY_DSN=$$secret_sentry_dsn","NC_CONNECT_TO_EXTERNAL_DB_DISABLED=$$config_connect_to_external_db_disabled","NC_DISABLE_TELE=$$config_disable_tele"],"volumes":["$$id-data:/usr/app/data"],"ports":["8080"]}},"variables":[{"id":"$$config_nc_db","name":"NC_DB","label":"Database","defaultValue":"","description":"MySQL, PostgreSQL and MSSQL connection urls supported. If absent: A local SQLite will be created in root folder."},{"id":"$$config_port","name":"PORT","label":"Port","defaultValue":"8080","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL","defaultValue":"","description":"JDBC URL Format. Can be used instead of NC_DB. Used in 1-Click Heroku deployment."},{"id":"$$config_public_url","name":"NC_PUBLIC_URL","label":"Public URL","defaultValue":"","description":"Used for sending Email invitations. If absent: Best guess from http request params."},{"id":"$$secret_auth_jwt_secret","name":"NC_AUTH_JWT_SECRET","label":"Auth JWT Secret","defaultValue":"$$generate_hex(64)","description":"JWT secret used for auth and storing other secrets. If absent: A Random secret will be generated."},{"id":"$$secret_sentry_dsn","name":"NC_SENTRY_DSN","label":"Sentry DSN","defaultValue":"","description":"For Sentry monitoring."},{"id":"$$config_connect_to_external_db_disabled","name":"NC_CONNECT_TO_EXTERNAL_DB_DISABLED","label":"Disable External Database","defaultValue":"0","description":"Disable Project creation with external database. (Enter \"1\" to disable)."},{"id":"$$config_disable_tele","name":"NC_DISABLE_TELE","label":"NocoDB Disable Telemetry","defaultValue":"1","description":"Disable telemetry (Enter \"1\" to disable)."}]}]\ No newline at end of filediff --git a/apps/trpc-experimental/server/src/trpc/context.ts b/apps/trpc-experimental/server/src/trpc/context.tsdeleted file mode 100644index c7a231a1c3..0000000000--- a/apps/trpc-experimental/server/src/trpc/context.ts+++ /dev/null@@ -1,22 +0,0 @@-import type { inferAsyncReturnType } from '@trpc/server';-import type { CreateFastifyContextOptions } from '@trpc/server/adapters/fastify';-import jwt from 'jsonwebtoken';-import { env } from '../env';-export interface User {- userId: string;- teamId: string;- permission: string;- isAdmin: boolean;- iat: number;-}--export function createContext({ req }: CreateFastifyContextOptions) {- const token = req.headers.authorization;- let user: User | null = null;- if (token) {- user = jwt.verify(token, env.COOLIFY_SECRET_KEY) as User;- }- return { user, hostname: req.hostname };-}--export type Context = inferAsyncReturnType<typeof createContext>;diff --git a/apps/trpc-experimental/server/src/trpc/index.ts b/apps/trpc-experimental/server/src/trpc/index.tsdeleted file mode 100644index 259f0fe51e..0000000000--- a/apps/trpc-experimental/server/src/trpc/index.ts+++ /dev/null@@ -1,27 +0,0 @@-import { router } from './trpc';-import type { Permission } from '@prisma/client';--import {- settingsRouter,- authRouter,- dashboardRouter,- applicationsRouter,- servicesRouter,- databasesRouter,- sourcesRouter,- destinationsRouter-} from './routers';--export const appRouter = router({- settings: settingsRouter,- auth: authRouter,- dashboard: dashboardRouter,- applications: applicationsRouter,- services: servicesRouter,- databases: databasesRouter,- sources: sourcesRouter,- destinations: destinationsRouter-});--export type AppRouter = typeof appRouter;-export type PrismaPermission = Permission;diff --git a/apps/trpc-experimental/server/src/trpc/routers/applications/index.ts b/apps/trpc-experimental/server/src/trpc/routers/applications/index.tsdeleted file mode 100644index 38c13d9d10..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/applications/index.ts+++ /dev/null@@ -1,1388 +0,0 @@-import { z } from 'zod';-import fs from 'fs/promises';-import yaml from 'js-yaml';-import { privateProcedure, router } from '../../trpc';-import { prisma } from '../../../prisma';-import { executeCommand } from '../../../lib/executeCommand';-import {- checkContainer,- defaultComposeConfiguration,- formatLabelsOnDocker,- removeContainer-} from '../../../lib/docker';-import {- deployApplication,- generateConfigHash,- getApplicationFromDB,- setDefaultBaseImage-} from './lib';-import cuid from 'cuid';-import {- checkDomainsIsValidInDNS,- checkExposedPort,- cleanupDB,- createDirectories,- decrypt,- encrypt,- generateSecrets,- getContainerUsage,- getDomain,- isDev,- isDomainConfigured,- saveDockerRegistryCredentials,- setDefaultConfiguration-} from '../../../lib/common';-import { day } from '../../../lib/dayjs';-import csv from 'csvtojson';-import { scheduler } from '../../../scheduler';--export const applicationsRouter = router({- deleteApplication: privateProcedure- .input(- z.object({- id: z.string(),- force: z.boolean().default(false)- })- )- .mutation(async ({ input, ctx }) => {- const { id, force } = input;- const teamId = ctx.user.teamId;- const application = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (!force && application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split('\n');- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- await removeContainer({ id, dockerId: application.destinationDocker.id });- }- }- }- await prisma.applicationSettings.deleteMany({ where: { application: { id } } });- await prisma.buildLog.deleteMany({ where: { applicationId: id } });- await prisma.build.deleteMany({ where: { applicationId: id } });- await prisma.secret.deleteMany({ where: { applicationId: id } });- await prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id } });- await prisma.applicationConnectedDatabase.deleteMany({ where: { applicationId: id } });- await prisma.previewApplication.deleteMany({ where: { applicationId: id } });- if (teamId === '0') {- await prisma.application.deleteMany({ where: { id } });- } else {- await prisma.application.deleteMany({ where: { id, teams: { some: { id: teamId } } } });- }- return {};- }),- restartPreview: privateProcedure- .input(- z.object({- id: z.string(),- pullmergeRequestId: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- let application: any = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- const buildId = cuid();- const { id: dockerId, network } = application.destinationDocker;- const {- secrets,- port,- repository,- persistentStorage,- id: applicationId,- buildPack,- exposePort- } = application;-- let envs = [];- if (secrets.length > 0) {- envs = [...envs, ...generateSecrets(secrets, pullmergeRequestId, false, port)];- }- const { workdir } = await createDirectories({ repository, buildId });- const labels = [];- let image = null;- const { stdout: container } = await executeCommand({- dockerId,- command: `docker container ls --filter 'label=com.docker.compose.service=${id}-${pullmergeRequestId}' --format '{{json .}}'`- });- const containersArray = container.trim().split('\n');- for (const container of containersArray) {- const containerObj = formatLabelsOnDocker(container);- image = containerObj[0].Image;- Object.keys(containerObj[0].Labels).forEach(function (key) {- if (key.startsWith('coolify')) {- labels.push(`${key}=${containerObj[0].Labels[key]}`);- }- });- }- let imageFound = false;- try {- await executeCommand({- dockerId,- command: `docker image inspect ${image}`- });- imageFound = true;- } catch (error) {- //- }- if (!imageFound) {- throw { status: 500, message: 'Image not found, cannot restart application.' };- }-- const volumes =- persistentStorage?.map((storage) => {- return `${applicationId}${storage.path.replace(/\//gi, '-')}:${- buildPack !== 'docker' ? '/app' : ''- }${storage.path}`;- }) || [];- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(':')[0]}`]: {- name: volume.split(':')[0]- }- };- });- const composeFile = {- version: '3.8',- services: {- [`${applicationId}-${pullmergeRequestId}`]: {- image,- container_name: `${applicationId}-${pullmergeRequestId}`,- volumes,- environment: envs,- labels,- depends_on: [],- expose: [port],- ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),- ...defaultComposeConfiguration(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await fs.writeFile(`${workdir}/docker-compose.yml`, yaml.dump(composeFile));- await executeCommand({ dockerId, command: `docker stop -t 0 ${id}-${pullmergeRequestId}` });- await executeCommand({ dockerId, command: `docker rm ${id}-${pullmergeRequestId}` });- await executeCommand({- dockerId,- command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`- });- }- }),- getPreviewStatus: privateProcedure- .input(- z.object({- id: z.string(),- pullmergeRequestId: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- let isRunning = false;- let isExited = false;- let isRestarting = false;- let isBuilding = false;- const application: any = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- const status = await checkContainer({- dockerId: application.destinationDocker.id,- container: `${id}-${pullmergeRequestId}`- });- if (status?.found) {- isRunning = status.status.isRunning;- isExited = status.status.isExited;- isRestarting = status.status.isRestarting;- }- const building = await prisma.build.findMany({- where: { applicationId: id, pullmergeRequestId, status: { in: ['queued', 'running'] } }- });- isBuilding = building.length > 0;- }- return {- success: true,- data: {- isBuilding,- isRunning,- isRestarting,- isExited- }- };- }),- loadPreviews: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- const application = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- const { stdout } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker container ls --filter 'name=${id}-' --format "{{json .}}"`- });- if (stdout === '') {- throw { status: 500, message: 'No previews found.' };- }- const containers = formatLabelsOnDocker(stdout).filter(- (container) =>- container.Labels['coolify.configuration'] &&- container.Labels['coolify.type'] === 'standalone-application'- );-- const jsonContainers = containers- .map((container) =>- JSON.parse(Buffer.from(container.Labels['coolify.configuration'], 'base64').toString())- )- .filter((container) => {- return container.pullmergeRequestId && container.applicationId === id;- });- for (const container of jsonContainers) {- const found = await prisma.previewApplication.findMany({- where: {- applicationId: container.applicationId,- pullmergeRequestId: container.pullmergeRequestId- }- });- if (found.length === 0) {- await prisma.previewApplication.create({- data: {- pullmergeRequestId: container.pullmergeRequestId,- sourceBranch: container.branch,- customDomain: container.fqdn,- application: { connect: { id: container.applicationId } }- }- });- }- }- return {- success: true,- data: {- previews: await prisma.previewApplication.findMany({ where: { applicationId: id } })- }- };- }),- stopPreview: privateProcedure- .input(- z.object({- id: z.string(),- pullmergeRequestId: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id, pullmergeRequestId } = input;- const teamId = ctx.user.teamId;- const application: any = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- const container = `${id}-${pullmergeRequestId}`;- const { id: dockerId } = application.destinationDocker;- const { found } = await checkContainer({ dockerId, container });- if (found) {- await removeContainer({ id: container, dockerId: application.destinationDocker.id });- }- await prisma.previewApplication.deleteMany({- where: { applicationId: application.id, pullmergeRequestId }- });- }- return {};- }),- getUsage: privateProcedure- .input(- z.object({- id: z.string(),- containerId: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id, containerId } = input;- const teamId = ctx.user.teamId;- let usage = {};-- const application: any = await getApplicationFromDB(id, teamId);- if (application.destinationDockerId) {- [usage] = await Promise.all([- getContainerUsage(application.destinationDocker.id, containerId)- ]);- }- return {- success: true,- data: {- usage- }- };- }),- getLocalImages: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user.teamId;- const application: any = await getApplicationFromDB(id, teamId);- let imagesAvailables = [];- const { stdout } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker images --format '{{.Repository}}#{{.Tag}}#{{.CreatedAt}}'`- });- const { stdout: runningImage } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter 'label=com.docker.compose.service=${id}' --format {{.Image}}`- });- const images = stdout- .trim()- .split('\n')- .filter((image) => image.includes(id) && !image.includes('-cache'));- for (const image of images) {- const [repository, tag, createdAt] = image.split('#');- if (tag.includes('-')) {- continue;- }- const [year, time] = createdAt.split(' ');- imagesAvailables.push({- repository,- tag,- createdAt: day(year + time).unix()- });- }-- imagesAvailables = imagesAvailables.sort((a, b) => b.tag - a.tag);-- return {- success: true,- data: {- imagesAvailables,- runningImage- }- };- }),- resetQueue: privateProcedure.mutation(async ({ ctx }) => {- const teamId = ctx.user.teamId;- if (teamId === '0') {- await prisma.build.updateMany({- where: { status: { in: ['queued', 'running'] } },- data: { status: 'canceled' }- });- // scheduler.workers.get("").postMessage("cancel");- }- }),- cancelBuild: privateProcedure- .input(- z.object({- buildId: z.string(),- applicationId: z.string()- })- )- .mutation(async ({ input }) => {- const { buildId, applicationId } = input;- let count = 0;- await new Promise<void>(async (resolve, reject) => {- const { destinationDockerId, status } = await prisma.build.findFirst({- where: { id: buildId }- });- const { id: dockerId } = await prisma.destinationDocker.findFirst({- where: { id: destinationDockerId }- });- const interval = setInterval(async () => {- try {- if (status === 'failed' || status === 'canceled') {- clearInterval(interval);- return resolve();- }- if (count > 15) {- clearInterval(interval);- // if (scheduler.workers.has('deployApplication')) {- // scheduler.workers.get('deployApplication').postMessage('cancel');- // }- await cleanupDB(buildId, applicationId);- return reject(new Error('Canceled.'));- }- const { stdout: buildContainers } = await executeCommand({- dockerId,- command: `docker container ls --filter "label=coolify.buildId=${buildId}" --format '{{json .}}'`- });- if (buildContainers) {- const containersArray = buildContainers.trim().split('\n');- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- if (!containerObj.Names.startsWith(`${applicationId} `)) {- await removeContainer({ id, dockerId });- clearInterval(interval);- // if (scheduler.workers.has('deployApplication')) {- // scheduler.workers.get('deployApplication').postMessage('cancel');- // }- await cleanupDB(buildId, applicationId);- return resolve();- }- }- }- count++;- } catch (error) {}- }, 100);- });- }),- getBuildLogs: privateProcedure- .input(- z.object({- id: z.string(),- buildId: z.string(),- sequence: z.number()- })- )- .query(async ({ input }) => {- let { id, buildId, sequence } = input;- let file = `/app/logs/${id}_buildlog_${buildId}.csv`;- if (isDev) {- file = `${process.cwd()}/../../logs/${id}_buildlog_${buildId}.csv`;- }- const data = await prisma.build.findFirst({ where: { id: buildId } });- const createdAt = day(data.createdAt).utc();- try {- await fs.stat(file);- } catch (error) {- let logs = await prisma.buildLog.findMany({- where: { buildId, time: { gt: sequence } },- orderBy: { time: 'asc' }- });- const data = await prisma.build.findFirst({ where: { id: buildId } });- const createdAt = day(data.createdAt).utc();- return {- logs: logs.map((log) => {- log.time = Number(log.time);- return log;- }),- fromDb: true,- took: day().diff(createdAt) / 1000,- status: data?.status || 'queued'- };- }- let fileLogs = (await fs.readFile(file)).toString();- let decryptedLogs = await csv({ noheader: true }).fromString(fileLogs);- let logs = decryptedLogs- .map((log) => {- const parsed = {- time: log['field1'],- line: decrypt(log['field2'] + '","' + log['field3'])- };- return parsed;- })- .filter((log) => log.time > sequence);- return {- logs,- fromDb: false,- took: day().diff(createdAt) / 1000,- status: data?.status || 'queued'- };- }),- getBuilds: privateProcedure- .input(- z.object({- id: z.string(),- buildId: z.string().optional(),- skip: z.number()- })- )- .query(async ({ input }) => {- let { id, buildId, skip } = input;- let builds = [];- const buildCount = await prisma.build.count({ where: { applicationId: id } });- if (buildId) {- builds = await prisma.build.findMany({ where: { applicationId: id, id: buildId } });- } else {- builds = await prisma.build.findMany({- where: { applicationId: id },- orderBy: { createdAt: 'desc' },- take: 5 + skip- });- }- builds = builds.map((build) => {- if (build.status === 'running') {- build.elapsed = (day().utc().diff(day(build.createdAt)) / 1000).toFixed(0);- }- return build;- });- return {- builds,- buildCount- };- }),- loadLogs: privateProcedure- .input(- z.object({- id: z.string(),- containerId: z.string(),- since: z.number()- })- )- .query(async ({ input }) => {- let { id, containerId, since } = input;- if (since !== 0) {- since = day(since).unix();- }- const {- destinationDockerId,- destinationDocker: { id: dockerId }- } = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (destinationDockerId) {- try {- const { default: ansi } = await import('strip-ansi');- const { stdout, stderr } = await executeCommand({- dockerId,- command: `docker logs --since ${since} --tail 5000 --timestamps ${containerId}`- });- const stripLogsStdout = stdout- .toString()- .split('\n')- .map((l) => ansi(l))- .filter((a) => a);- const stripLogsStderr = stderr- .toString()- .split('\n')- .map((l) => ansi(l))- .filter((a) => a);- return { logs: stripLogsStderr.concat(stripLogsStdout) };- } catch (error) {- const { statusCode, stderr } = error;- if (stderr.startsWith('Error: No such container')) {- return { logs: [], noContainer: true };- }- if (statusCode === 404) {- return {- logs: []- };- }- }- }- return {- message: 'No logs found.'- };- }),- getStorages: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ input }) => {- const { id } = input;- const persistentStorages = await prisma.applicationPersistentStorage.findMany({- where: { applicationId: id }- });-- return {- success: true,- data: {- persistentStorages- }- };- }),- deleteStorage: privateProcedure- .input(- z.object({- id: z.string(),- path: z.string()- })- )- .mutation(async ({ input }) => {- const { id, path } = input;- await prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id, path } });- }),- updateStorage: privateProcedure- .input(- z.object({- id: z.string(),- path: z.string(),- storageId: z.string(),- newStorage: z.boolean().optional().default(false)- })- )- .mutation(async ({ input }) => {- const { id, path, newStorage, storageId } = input;- if (newStorage) {- await prisma.applicationPersistentStorage.create({- data: { path, application: { connect: { id } } }- });- } else {- await prisma.applicationPersistentStorage.update({- where: { id: storageId },- data: { path }- });- }- }),- deleteSecret: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string()- })- )- .mutation(async ({ input }) => {- const { id, name } = input;- await prisma.secret.deleteMany({ where: { applicationId: id, name } });- }),- updateSecret: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- value: z.string(),- isBuildSecret: z.boolean().optional().default(false),- isPreview: z.boolean().optional().default(false)- })- )- .mutation(async ({ input }) => {- const { id, name, value, isBuildSecret, isPreview } = input;- console.log({ isBuildSecret });- await prisma.secret.updateMany({- where: { applicationId: id, name, isPRMRSecret: isPreview },- data: { value: encrypt(value.trim()), isBuildSecret }- });- }),- newSecret: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- value: z.string(),- isBuildSecret: z.boolean().optional().default(false)- })- )- .mutation(async ({ input }) => {- const { id, name, value, isBuildSecret } = input;- const found = await prisma.secret.findMany({ where: { applicationId: id, name } });- if (found.length > 0) {- throw { message: 'Secret already exists.' };- }- await prisma.secret.create({- data: {- name,- value: encrypt(value.trim()),- isBuildSecret,- isPRMRSecret: false,- application: { connect: { id } }- }- });- await prisma.secret.create({- data: {- name,- value: encrypt(value.trim()),- isBuildSecret,- isPRMRSecret: true,- application: { connect: { id } }- }- });- }),- getSecrets: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ input }) => {- const { id } = input;- let secrets = await prisma.secret.findMany({- where: { applicationId: id, isPRMRSecret: false },- orderBy: { createdAt: 'asc' }- });- let previewSecrets = await prisma.secret.findMany({- where: { applicationId: id, isPRMRSecret: true },- orderBy: { createdAt: 'asc' }- });-- secrets = secrets.map((secret) => {- secret.value = decrypt(secret.value);- return secret;- });- previewSecrets = previewSecrets.map((secret) => {- secret.value = decrypt(secret.value);- return secret;- });-- return {- success: true,- data: {- previewSecrets: previewSecrets.sort((a, b) => {- return ('' + a.name).localeCompare(b.name);- }),- secrets: secrets.sort((a, b) => {- return ('' + a.name).localeCompare(b.name);- })- }- };- }),- checkDomain: privateProcedure- .input(- z.object({- id: z.string(),- domain: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id, domain } = input;- const {- fqdn,- settings: { dualCerts }- } = await prisma.application.findUnique({ where: { id }, include: { settings: true } });- return await checkDomainsIsValidInDNS({ hostname: domain, fqdn, dualCerts });- }),-- checkDNS: privateProcedure- .input(- z.object({- id: z.string(),- fqdn: z.string(),- forceSave: z.boolean(),- dualCerts: z.boolean(),- exposePort: z.number().nullable().optional()- })- )- .mutation(async ({ input, ctx }) => {- let { id, exposePort, fqdn, forceSave, dualCerts } = input;- if (!fqdn) {- return {};- } else {- fqdn = fqdn.toLowerCase();- }- if (exposePort) exposePort = Number(exposePort);-- const {- destinationDocker: { engine, remoteIpAddress, remoteEngine },- exposePort: configuredPort- } = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- const { isDNSCheckEnabled } = await prisma.setting.findFirst({});-- const found = await isDomainConfigured({ id, fqdn, remoteIpAddress });- if (found) {- throw {- status: 500,- message: `Domain ${getDomain(fqdn).replace('www.', '')} is already in use!`- };- }- if (exposePort)- await checkExposedPort({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress- });- if (isDNSCheckEnabled && !isDev && !forceSave) {- let hostname = ctx.hostname.split(':')[0];- if (remoteEngine) hostname = remoteIpAddress;- return await checkDomainsIsValidInDNS({ hostname, fqdn, dualCerts });- }- }),- saveSettings: privateProcedure- .input(- z.object({- id: z.string(),- previews: z.boolean().optional(),- debug: z.boolean().optional(),- dualCerts: z.boolean().optional(),- isBot: z.boolean().optional(),- autodeploy: z.boolean().optional(),- isDBBranching: z.boolean().optional(),- isCustomSSL: z.boolean().optional(),- isHttp2: z.boolean().optional()- })- )- .mutation(async ({ ctx, input }) => {- const { id, debug, previews, dualCerts, autodeploy, isBot, isDBBranching, isCustomSSL, isHttp2 } =- input;- await prisma.application.update({- where: { id },- data: {- fqdn: isBot ? null : undefined,- settings: {- update: { debug, previews, dualCerts, autodeploy, isBot, isDBBranching, isCustomSSL, isHttp2 }- }- },- include: { destinationDocker: true }- });- }),- getImages: privateProcedure- .input(z.object({ buildPack: z.string(), deploymentType: z.string().nullable() }))- .query(async ({ ctx, input }) => {- const { buildPack, deploymentType } = input;- let publishDirectory = undefined;- let port = undefined;- const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(- buildPack,- deploymentType- );- if (buildPack === 'nextjs') {- if (deploymentType === 'static') {- publishDirectory = 'out';- port = '80';- } else {- publishDirectory = '';- port = '3000';- }- }- if (buildPack === 'nuxtjs') {- if (deploymentType === 'static') {- publishDirectory = 'dist';- port = '80';- } else {- publishDirectory = '';- port = '3000';- }- }- return {- success: true,- data: { baseImage, baseImages, baseBuildImage, baseBuildImages, publishDirectory, port }- };- }),- getApplicationById: privateProcedure- .input(z.object({ id: z.string() }))- .query(async ({ ctx, input }) => {- const id: string = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: 'Team not found.' };- }- const application = await getApplicationFromDB(id, teamId);- return {- success: true,- data: { ...application }- };- }),- save: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- buildPack: z.string(),- fqdn: z.string().nullable().optional(),- port: z.number(),- exposePort: z.number().nullable().optional(),- installCommand: z.string(),- buildCommand: z.string(),- startCommand: z.string(),- baseDirectory: z.string().nullable().optional(),- publishDirectory: z.string().nullable().optional(),- pythonWSGI: z.string().nullable().optional(),- pythonModule: z.string().nullable().optional(),- pythonVariable: z.string().nullable().optional(),- dockerFileLocation: z.string(),- denoMainFile: z.string().nullable().optional(),- denoOptions: z.string().nullable().optional(),- gitCommitHash: z.string(),- baseImage: z.string(),- baseBuildImage: z.string(),- deploymentType: z.string().nullable().optional(),- baseDatabaseBranch: z.string().nullable().optional(),- dockerComposeFile: z.string().nullable().optional(),- dockerComposeFileLocation: z.string().nullable().optional(),- dockerComposeConfiguration: z.string().nullable().optional(),- simpleDockerfile: z.string().nullable().optional(),- dockerRegistryImageName: z.string().nullable().optional()- })- )- .mutation(async ({ input }) => {- let {- id,- name,- buildPack,- fqdn,- port,- exposePort,- installCommand,- buildCommand,- startCommand,- baseDirectory,- publishDirectory,- pythonWSGI,- pythonModule,- pythonVariable,- dockerFileLocation,- denoMainFile,- denoOptions,- gitCommitHash,- baseImage,- baseBuildImage,- deploymentType,- baseDatabaseBranch,- dockerComposeFile,- dockerComposeFileLocation,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName- } = input;- const {- destinationDocker: { engine, remoteEngine, remoteIpAddress },- exposePort: configuredPort- } = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (exposePort)- await checkExposedPort({- id,- configuredPort,- exposePort,- engine,- remoteEngine,- remoteIpAddress- });- if (denoOptions) denoOptions = denoOptions.trim();- const defaultConfiguration = await setDefaultConfiguration({- buildPack,- port,- installCommand,- startCommand,- buildCommand,- publishDirectory,- baseDirectory,- dockerFileLocation,- dockerComposeFileLocation,- denoMainFile- });- if (baseDatabaseBranch) {- await prisma.application.update({- where: { id },- data: {- name,- fqdn,- exposePort,- pythonWSGI,- pythonModule,- pythonVariable,- denoOptions,- baseImage,- gitCommitHash,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName,- ...defaultConfiguration,- connectedDatabase: { update: { hostedDatabaseDBName: baseDatabaseBranch } }- }- });- } else {- await prisma.application.update({- where: { id },- data: {- name,- fqdn,- exposePort,- pythonWSGI,- pythonModule,- gitCommitHash,- pythonVariable,- denoOptions,- baseImage,- baseBuildImage,- deploymentType,- dockerComposeFile,- dockerComposeConfiguration,- simpleDockerfile,- dockerRegistryImageName,- ...defaultConfiguration- }- });- }- }),- status: privateProcedure.input(z.object({ id: z.string() })).query(async ({ ctx, input }) => {- const id: string = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: 'Team not found.' };- }- let payload = [];- const application: any = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- if (application.buildPack === 'compose') {- const { stdout: containers } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter "label=coolify.applicationId=${id}" --format '{{json .}}'`- });- const containersArray = containers.trim().split('\n');- if (containersArray.length > 0 && containersArray[0] !== '') {- for (const container of containersArray) {- let isRunning = false;- let isExited = false;- let isRestarting = false;- const containerObj = JSON.parse(container);- const status = containerObj.State;- if (status === 'running') {- isRunning = true;- }- if (status === 'exited') {- isExited = true;- }- if (status === 'restarting') {- isRestarting = true;- }- payload.push({- name: containerObj.Names,- status: {- isRunning,- isExited,- isRestarting- }- });- }- }- } else {- let isRunning = false;- let isExited = false;- let isRestarting = false;- const status = await checkContainer({- dockerId: application.destinationDocker.id,- container: id- });- if (status?.found) {- isRunning = status.status.isRunning;- isExited = status.status.isExited;- isRestarting = status.status.isRestarting;- payload.push({- name: id,- status: {- isRunning,- isExited,- isRestarting- }- });- }- }- }- return payload;- }),- cleanup: privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let applications = await prisma.application.findMany({- where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { settings: true, destinationDocker: true, teams: true }- });- for (const application of applications) {- if (application?.buildPack === 'compose') {- continue;- }- if (- !application.buildPack ||- !application.destinationDockerId ||- !application.branch ||- (!application.settings?.isBot && !application?.fqdn)- ) {- if (application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${application.id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split('\n');- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- await removeContainer({ id, dockerId: application.destinationDocker.id });- }- }- }- await prisma.applicationSettings.deleteMany({ where: { applicationId: application.id } });- await prisma.buildLog.deleteMany({ where: { applicationId: application.id } });- await prisma.build.deleteMany({ where: { applicationId: application.id } });- await prisma.secret.deleteMany({ where: { applicationId: application.id } });- await prisma.previewApplication.deleteMany({ where: { applicationId: id } });- await prisma.applicationPersistentStorage.deleteMany({- where: { applicationId: application.id }- });- await prisma.applicationConnectedDatabase.deleteMany({- where: { applicationId: application.id }- });- await prisma.application.deleteMany({ where: { id: application.id } });- }- }- return {};- }),- stop: privateProcedure.input(z.object({ id: z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const application: any = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- const { id: dockerId } = application.destinationDocker;- if (application.buildPack === 'compose') {- const { stdout: containers } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter "label=coolify.applicationId=${id}" --format '{{json .}}'`- });- const containersArray = containers.trim().split('\n');- if (containersArray.length > 0 && containersArray[0] !== '') {- for (const container of containersArray) {- const containerObj = JSON.parse(container);- await removeContainer({- id: containerObj.ID,- dockerId: application.destinationDocker.id- });- }- }- return;- }- const { found } = await checkContainer({ dockerId, container: id });- if (found) {- await removeContainer({ id, dockerId: application.destinationDocker.id });- }- }- return {};- }),- restart: privateProcedure- .input(z.object({ id: z.string(), imageId: z.string().nullable() }))- .mutation(async ({ ctx, input }) => {- const { id, imageId } = input;- const teamId = ctx.user?.teamId;- let application = await getApplicationFromDB(id, teamId);- if (application?.destinationDockerId) {- const buildId = cuid();- const { id: dockerId, network } = application.destinationDocker;- const {- dockerRegistry,- secrets,- pullmergeRequestId,- port,- repository,- persistentStorage,- id: applicationId,- buildPack,- exposePort- } = application;- let location = null;- const labels = [];- let image = null;- const envs = [`PORT=${port}`, 'NODE_ENV=production'];-- if (secrets.length > 0) {- secrets.forEach((secret) => {- if (pullmergeRequestId) {- const isSecretFound = secrets.filter((s) => s.name === secret.name && s.isPRMRSecret);- if (isSecretFound.length > 0) {- if (- isSecretFound[0].value.includes('\\n') ||- isSecretFound[0].value.includes("'")- ) {- envs.push(`${secret.name}=${isSecretFound[0].value}`);- } else {- envs.push(`${secret.name}='${isSecretFound[0].value}'`);- }- } else {- if (secret.value.includes('\\n') || secret.value.includes("'")) {- envs.push(`${secret.name}=${secret.value}`);- } else {- envs.push(`${secret.name}='${secret.value}'`);- }- }- } else {- if (!secret.isPRMRSecret) {- if (secret.value.includes('\\n') || secret.value.includes("'")) {- envs.push(`${secret.name}=${secret.value}`);- } else {- envs.push(`${secret.name}='${secret.value}'`);- }- }- }- });- }- const { workdir } = await createDirectories({ repository, buildId });-- if (imageId) {- image = imageId;- } else {- const { stdout: container } = await executeCommand({- dockerId,- command: `docker container ls --filter 'label=com.docker.compose.service=${id}' --format '{{json .}}'`- });- const containersArray = container.trim().split('\n');- for (const container of containersArray) {- const containerObj = formatLabelsOnDocker(container);- image = containerObj[0].Image;- Object.keys(containerObj[0].Labels).forEach(function (key) {- if (key.startsWith('coolify')) {- labels.push(`${key}=${containerObj[0].Labels[key]}`);- }- });- }- }-- if (dockerRegistry) {- const { url, username, password } = dockerRegistry;- location = await saveDockerRegistryCredentials({ url, username, password, workdir });- }-- let imageFoundLocally = false;- try {- await executeCommand({- dockerId,- command: `docker image inspect ${image}`- });- imageFoundLocally = true;- } catch (error) {- //- }- let imageFoundRemotely = false;- try {- await executeCommand({- dockerId,- command: `docker ${location ? `--config ${location}` : ''} pull ${image}`- });- imageFoundRemotely = true;- } catch (error) {- //- }-- if (!imageFoundLocally && !imageFoundRemotely) {- throw { status: 500, message: 'Image not found, cannot restart application.' };- }- await fs.writeFile(`${workdir}/.env`, envs.join('\n'));-- let envFound = false;- try {- envFound = !!(await fs.stat(`${workdir}/.env`));- } catch (error) {- //- }- const volumes =- persistentStorage?.map((storage) => {- return `${applicationId}${storage.path.replace(/\//gi, '-')}:${- buildPack !== 'docker' ? '/app' : ''- }${storage.path}`;- }) || [];- const composeVolumes = volumes.map((volume) => {- return {- [`${volume.split(':')[0]}`]: {- name: volume.split(':')[0]- }- };- });- const composeFile = {- version: '3.8',- services: {- [applicationId]: {- image,- container_name: applicationId,- volumes,- env_file: envFound ? [`${workdir}/.env`] : [],- labels,- depends_on: [],- expose: [port],- ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),- ...defaultComposeConfiguration(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: Object.assign({}, ...composeVolumes)- };- await fs.writeFile(`${workdir}/docker-compose.yml`, yaml.dump(composeFile));- try {- await executeCommand({ dockerId, command: `docker stop -t 0 ${id}` });- await executeCommand({ dockerId, command: `docker rm ${id}` });- } catch (error) {- //- }-- await executeCommand({- dockerId,- command: `docker compose --project-directory ${workdir} -f ${workdir}/docker-compose.yml up -d`- });- }- return {};- }),- deploy: privateProcedure- .input(- z.object({- id: z.string(),- forceRebuild: z.boolean().default(false),- pullmergeRequestId: z.string().nullable().optional(),- branch: z.string().nullable().optional()- })- )- .mutation(async ({ ctx, input }) => {- const { id, pullmergeRequestId, branch, forceRebuild } = input;- const teamId = ctx.user?.teamId;- const buildId = await deployApplication(id, teamId, forceRebuild, pullmergeRequestId, branch);- return {- buildId- };- }),- forceRedeploy: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const buildId = await deployApplication(id, teamId, true);- return {- buildId- };- }),- delete: privateProcedure- .input(z.object({ force: z.boolean(), id: z.string() }))- .mutation(async ({ ctx, input }) => {- const { id, force } = input;- const teamId = ctx.user?.teamId;- const application = await prisma.application.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (!force && application?.destinationDockerId && application.destinationDocker?.network) {- const { stdout: containers } = await executeCommand({- dockerId: application.destinationDocker.id,- command: `docker ps -a --filter network=${application.destinationDocker.network} --filter name=${id} --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split('\n');- for (const container of containersArray) {- const containerObj = JSON.parse(container);- const id = containerObj.ID;- await removeContainer({ id, dockerId: application.destinationDocker.id });- }- }- }- await prisma.applicationSettings.deleteMany({ where: { application: { id } } });- await prisma.buildLog.deleteMany({ where: { applicationId: id } });- await prisma.build.deleteMany({ where: { applicationId: id } });- await prisma.secret.deleteMany({ where: { applicationId: id } });- await prisma.applicationPersistentStorage.deleteMany({ where: { applicationId: id } });- await prisma.applicationConnectedDatabase.deleteMany({ where: { applicationId: id } });- await prisma.previewApplication.deleteMany({ where: { applicationId: id } });- if (teamId === '0') {- await prisma.application.deleteMany({ where: { id } });- } else {- await prisma.application.deleteMany({ where: { id, teams: { some: { id: teamId } } } });- }- return {};- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/applications/lib.ts b/apps/trpc-experimental/server/src/trpc/routers/applications/lib.tsdeleted file mode 100644index ee4b9a809c..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/applications/lib.ts+++ /dev/null@@ -1,533 +0,0 @@-import cuid from 'cuid';-import crypto from 'node:crypto';-import { decrypt, isARM } from '../../../lib/common';--import { prisma } from '../../../prisma';--export async function deployApplication(- id: string,- teamId: string,- forceRebuild: boolean,- pullmergeRequestId: string | null = null,- branch: string | null = null-): Promise<string | Error> {- const buildId = cuid();- const application = await getApplicationFromDB(id, teamId);- if (application) {- if (!application?.configHash) {- await generateConfigHash(- id,- application.buildPack,- application.port,- application.exposePort,- application.installCommand,- application.buildCommand,- application.startCommand- );- }- await prisma.application.update({ where: { id }, data: { updatedAt: new Date() } });- if (application.gitSourceId) {- await prisma.build.create({- data: {- id: buildId,- applicationId: id,- sourceBranch: branch,- branch: application.branch,- pullmergeRequestId: pullmergeRequestId?.toString(),- forceRebuild,- destinationDockerId: application.destinationDocker?.id,- gitSourceId: application.gitSource?.id,- githubAppId: application.gitSource?.githubApp?.id,- gitlabAppId: application.gitSource?.gitlabApp?.id,- status: 'queued',- type: pullmergeRequestId- ? application.gitSource?.githubApp?.id- ? 'manual_pr'- : 'manual_mr'- : 'manual'- }- });- } else {- await prisma.build.create({- data: {- id: buildId,- applicationId: id,- branch: 'latest',- forceRebuild,- destinationDockerId: application.destinationDocker?.id,- status: 'queued',- type: 'manual'- }- });- }- return buildId;- }- throw { status: 500, message: 'Application cannot be deployed.' };-}-export async function generateConfigHash(- id: string,- buildPack: string,- port: number,- exposePort: number,- installCommand: string,- buildCommand: string,- startCommand: string-): Promise<any> {- const configHash = crypto- .createHash('sha256')- .update(- JSON.stringify({- buildPack,- port,- exposePort,- installCommand,- buildCommand,- startCommand- })- )- .digest('hex');- return await prisma.application.update({ where: { id }, data: { configHash } });-}-export async function getApplicationFromDB(id: string, teamId: string) {- let application = await prisma.application.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: {- destinationDocker: true,- settings: true,- gitSource: { include: { githubApp: true, gitlabApp: true } },- secrets: true,- persistentStorage: true,- connectedDatabase: true,- previewApplication: true,- dockerRegistry: true- }- });- if (!application) {- throw { status: 404, message: 'Application not found.' };- }- application = decryptApplication(application);- const buildPack = application?.buildPack || null;- const { baseImage, baseBuildImage, baseBuildImages, baseImages } = setDefaultBaseImage(buildPack);-- // Set default build images- if (application && !application.baseImage) {- application.baseImage = baseImage;- }- if (application && !application.baseBuildImage) {- application.baseBuildImage = baseBuildImage;- }- return { ...application, baseBuildImages, baseImages };-}-function decryptApplication(application: any) {- if (application) {- if (application?.gitSource?.githubApp?.clientSecret) {- application.gitSource.githubApp.clientSecret =- decrypt(application.gitSource.githubApp.clientSecret) || null;- }- if (application?.gitSource?.githubApp?.webhookSecret) {- application.gitSource.githubApp.webhookSecret =- decrypt(application.gitSource.githubApp.webhookSecret) || null;- }- if (application?.gitSource?.githubApp?.privateKey) {- application.gitSource.githubApp.privateKey =- decrypt(application.gitSource.githubApp.privateKey) || null;- }- if (application?.gitSource?.gitlabApp?.appSecret) {- application.gitSource.gitlabApp.appSecret =- decrypt(application.gitSource.gitlabApp.appSecret) || null;- }- if (application?.secrets.length > 0) {- application.secrets = application.secrets.map((s: any) => {- s.value = decrypt(s.value) || null;- return s;- });- }-- return application;- }-}--const staticApps = ['static', 'react', 'vuejs', 'svelte', 'gatsby', 'astro', 'eleventy'];-const nodeBased = [- 'react',- 'preact',- 'vuejs',- 'svelte',- 'gatsby',- 'astro',- 'eleventy',- 'node',- 'nestjs',- 'nuxtjs',- 'nextjs'-];-export function setDefaultBaseImage(- buildPack: string | null,- deploymentType: string | null = null-) {- const nodeVersions = [- {- value: 'node:lts',- label: 'node:lts'- },- {- value: 'node:18',- label: 'node:18'- },- {- value: 'node:17',- label: 'node:17'- },- {- value: 'node:16',- label: 'node:16'- },- {- value: 'node:14',- label: 'node:14'- },- {- value: 'node:12',- label: 'node:12'- }- ];- const staticVersions = [- {- value: 'webdevops/nginx:alpine',- label: 'webdevops/nginx:alpine'- },- {- value: 'webdevops/apache:alpine',- label: 'webdevops/apache:alpine'- },- {- value: 'nginx:alpine',- label: 'nginx:alpine'- },- {- value: 'httpd:alpine',- label: 'httpd:alpine (Apache)'- }- ];- const rustVersions = [- {- value: 'rust:latest',- label: 'rust:latest'- },- {- value: 'rust:1.60',- label: 'rust:1.60'- },- {- value: 'rust:1.60-buster',- label: 'rust:1.60-buster'- },- {- value: 'rust:1.60-bullseye',- label: 'rust:1.60-bullseye'- },- {- value: 'rust:1.60-slim-buster',- label: 'rust:1.60-slim-buster'- },- {- value: 'rust:1.60-slim-bullseye',- label: 'rust:1.60-slim-bullseye'- },- {- value: 'rust:1.60-alpine3.14',- label: 'rust:1.60-alpine3.14'- },- {- value: 'rust:1.60-alpine3.15',- label: 'rust:1.60-alpine3.15'- }- ];- const phpVersions = [- {- value: 'webdevops/php-apache:8.2',- label: 'webdevops/php-apache:8.2'- },- {- value: 'webdevops/php-nginx:8.2',- label: 'webdevops/php-nginx:8.2'- },- {- value: 'webdevops/php-apache:8.1',- label: 'webdevops/php-apache:8.1'- },- {- value: 'webdevops/php-nginx:8.1',- label: 'webdevops/php-nginx:8.1'- },- {- value: 'webdevops/php-apache:8.0',- label: 'webdevops/php-apache:8.0'- },- {- value: 'webdevops/php-nginx:8.0',- label: 'webdevops/php-nginx:8.0'- },- {- value: 'webdevops/php-apache:7.4',- label: 'webdevops/php-apache:7.4'- },- {- value: 'webdevops/php-nginx:7.4',- label: 'webdevops/php-nginx:7.4'- },- {- value: 'webdevops/php-apache:7.3',- label: 'webdevops/php-apache:7.3'- },- {- value: 'webdevops/php-nginx:7.3',- label: 'webdevops/php-nginx:7.3'- },- {- value: 'webdevops/php-apache:7.2',- label: 'webdevops/php-apache:7.2'- },- {- value: 'webdevops/php-nginx:7.2',- label: 'webdevops/php-nginx:7.2'- },- {- value: 'webdevops/php-apache:7.1',- label: 'webdevops/php-apache:7.1'- },- {- value: 'webdevops/php-nginx:7.1',- label: 'webdevops/php-nginx:7.1'- },- {- value: 'webdevops/php-apache:7.0',- label: 'webdevops/php-apache:7.0'- },- {- value: 'webdevops/php-nginx:7.0',- label: 'webdevops/php-nginx:7.0'- },- {- value: 'webdevops/php-apache:5.6',- label: 'webdevops/php-apache:5.6'- },- {- value: 'webdevops/php-nginx:5.6',- label: 'webdevops/php-nginx:5.6'- },- {- value: 'webdevops/php-apache:8.2-alpine',- label: 'webdevops/php-apache:8.2-alpine'- },- {- value: 'webdevops/php-nginx:8.2-alpine',- label: 'webdevops/php-nginx:8.2-alpine'- },- {- value: 'webdevops/php-apache:8.1-alpine',- label: 'webdevops/php-apache:8.1-alpine'- },- {- value: 'webdevops/php-nginx:8.1-alpine',- label: 'webdevops/php-nginx:8.1-alpine'- },- {- value: 'webdevops/php-apache:8.0-alpine',- label: 'webdevops/php-apache:8.0-alpine'- },- {- value: 'webdevops/php-nginx:8.0-alpine',- label: 'webdevops/php-nginx:8.0-alpine'- },- {- value: 'webdevops/php-apache:7.4-alpine',- label: 'webdevops/php-apache:7.4-alpine'- },- {- value: 'webdevops/php-nginx:7.4-alpine',- label: 'webdevops/php-nginx:7.4-alpine'- },- {- value: 'webdevops/php-apache:7.3-alpine',- label: 'webdevops/php-apache:7.3-alpine'- },- {- value: 'webdevops/php-nginx:7.3-alpine',- label: 'webdevops/php-nginx:7.3-alpine'- },- {- value: 'webdevops/php-apache:7.2-alpine',- label: 'webdevops/php-apache:7.2-alpine'- },- {- value: 'webdevops/php-nginx:7.2-alpine',- label: 'webdevops/php-nginx:7.2-alpine'- },- {- value: 'webdevops/php-apache:7.1-alpine',- label: 'webdevops/php-apache:7.1-alpine'- },- {- value: 'php:8.1-fpm',- label: 'php:8.1-fpm'- },- {- value: 'php:8.0-fpm',- label: 'php:8.0-fpm'- },- {- value: 'php:8.1-fpm-alpine',- label: 'php:8.1-fpm-alpine'- },- {- value: 'php:8.0-fpm-alpine',- label: 'php:8.0-fpm-alpine'- }- ];- const pythonVersions = [- {- value: 'python:3.10-alpine',- label: 'python:3.10-alpine'- },- {- value: 'python:3.10-buster',- label: 'python:3.10-buster'- },- {- value: 'python:3.10-bullseye',- label: 'python:3.10-bullseye'- },- {- value: 'python:3.10-slim-bullseye',- label: 'python:3.10-slim-bullseye'- },- {- value: 'python:3.9-alpine',- label: 'python:3.9-alpine'- },- {- value: 'python:3.9-buster',- label: 'python:3.9-buster'- },- {- value: 'python:3.9-bullseye',- label: 'python:3.9-bullseye'- },- {- value: 'python:3.9-slim-bullseye',- label: 'python:3.9-slim-bullseye'- },- {- value: 'python:3.8-alpine',- label: 'python:3.8-alpine'- },- {- value: 'python:3.8-buster',- label: 'python:3.8-buster'- },- {- value: 'python:3.8-bullseye',- label: 'python:3.8-bullseye'- },- {- value: 'python:3.8-slim-bullseye',- label: 'python:3.8-slim-bullseye'- },- {- value: 'python:3.7-alpine',- label: 'python:3.7-alpine'- },- {- value: 'python:3.7-buster',- label: 'python:3.7-buster'- },- {- value: 'python:3.7-bullseye',- label: 'python:3.7-bullseye'- },- {- value: 'python:3.7-slim-bullseye',- label: 'python:3.7-slim-bullseye'- }- ];- const herokuVersions = [- {- value: 'heroku/builder:22',- label: 'heroku/builder:22'- },- {- value: 'heroku/buildpacks:20',- label: 'heroku/buildpacks:20'- },- {- value: 'heroku/builder-classic:22',- label: 'heroku/builder-classic:22'- }- ];- let payload: any = {- baseImage: null,- baseBuildImage: null,- baseImages: [],- baseBuildImages: []- };- if (nodeBased.includes(buildPack)) {- if (deploymentType === 'static') {- payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';- payload.baseImages = isARM(process.arch)- ? staticVersions.filter((version) => !version.value.includes('webdevops'))- : staticVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- } else {- payload.baseImage = 'node:lts';- payload.baseImages = nodeVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- }- }- if (staticApps.includes(buildPack)) {- payload.baseImage = isARM(process.arch) ? 'nginx:alpine' : 'webdevops/nginx:alpine';- payload.baseImages = isARM(process.arch)- ? staticVersions.filter((version) => !version.value.includes('webdevops'))- : staticVersions;- payload.baseBuildImage = 'node:lts';- payload.baseBuildImages = nodeVersions;- }- if (buildPack === 'python') {- payload.baseImage = 'python:3.10-alpine';- payload.baseImages = pythonVersions;- }- if (buildPack === 'rust') {- payload.baseImage = 'rust:latest';- payload.baseBuildImage = 'rust:latest';- payload.baseImages = rustVersions;- payload.baseBuildImages = rustVersions;- }- if (buildPack === 'deno') {- payload.baseImage = 'denoland/deno:latest';- }- if (buildPack === 'php') {- payload.baseImage = isARM(process.arch)- ? 'php:8.1-fpm-alpine'- : 'webdevops/php-apache:8.2-alpine';- payload.baseImages = isARM(process.arch)- ? phpVersions.filter((version) => !version.value.includes('webdevops'))- : phpVersions;- }- if (buildPack === 'laravel') {- payload.baseImage = isARM(process.arch)- ? 'php:8.1-fpm-alpine'- : 'webdevops/php-apache:8.2-alpine';- payload.baseImages = isARM(process.arch)- ? phpVersions.filter((version) => !version.value.includes('webdevops'))- : phpVersions;- payload.baseBuildImage = 'node:18';- payload.baseBuildImages = nodeVersions;- }- if (buildPack === 'heroku') {- payload.baseImage = 'heroku/buildpacks:20';- payload.baseImages = herokuVersions;- }- return payload;-}diff --git a/apps/trpc-experimental/server/src/trpc/routers/auth.ts b/apps/trpc-experimental/server/src/trpc/routers/auth.tsdeleted file mode 100644index 1c431995cb..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/auth.ts+++ /dev/null@@ -1,178 +0,0 @@-import { z } from 'zod';-import { publicProcedure, router } from '../trpc';-import { TRPCError } from '@trpc/server';-import { comparePassword, hashPassword, listSettings, uniqueName } from '../../lib/common';-import { env } from '../../env';-import jsonwebtoken from 'jsonwebtoken';-import { prisma } from '../../prisma';-import cuid from 'cuid';--export const authRouter = router({- register: publicProcedure- .input(- z.object({- email: z.string(),- password: z.string()- })- )- .mutation(async ({ input }) => {- const { email, password } = input;- const userFound = await prisma.user.findUnique({- where: { email },- include: { teams: true, permission: true }- });-- if (userFound) {- throw new TRPCError({- code: 'BAD_REQUEST',- message: 'User already exists.'- });- }- const settings = await listSettings();- if (!settings?.isRegistrationEnabled) {- throw new TRPCError({- code: 'FORBIDDEN',- message: 'Registration is disabled.'- });- }- const usersCount = await prisma.user.count();- const uid = usersCount === 0 ? '0' : cuid();- const permission = 'owner';- const isAdmin = true;- const hashedPassword = await hashPassword(password);-- // Create the first user as the owner- if (usersCount === 0) {- await prisma.user.create({- data: {- id: uid,- email,- password: hashedPassword,- type: 'email',- teams: {- create: {- id: uid,- name: uniqueName(),- destinationDocker: { connect: { network: 'coolify' } }- }- },- permission: { create: { teamId: uid, permission } }- },- include: { teams: true }- });- await prisma.setting.update({- where: { id: '0' },- data: { isRegistrationEnabled: false }- });- } else {- // Create a new user and team- await prisma.user.create({- data: {- id: uid,- email,- password: hashedPassword,- type: 'email',- teams: {- create: {- id: uid,- name: uniqueName()- }- },- permission: { create: { teamId: uid, permission } }- },- include: { teams: true }- });- }- const payload = {- userId: uid,- teamId: uid,- permission,- isAdmin- };- return {- ...payload,- token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)- };- }),- login: publicProcedure- .input(- z.object({- email: z.string(),- password: z.string()- })- )- .mutation(async ({ input }) => {- const { email, password } = input;- const userFound = await prisma.user.findUnique({- where: { email },- include: { teams: true, permission: true }- });-- if (!userFound) {- throw new TRPCError({- code: 'BAD_REQUEST',- message: 'User already exists.'- });- }- if (userFound.type === 'email') {- if (userFound.password === 'RESETME') {- const hashedPassword = await hashPassword(password);- if (userFound.updatedAt < new Date(Date.now() - 1000 * 60 * 10)) {- if (userFound.id === '0') {- await prisma.user.update({- where: { email: userFound.email },- data: { password: 'RESETME' }- });- } else {- await prisma.user.update({- where: { email: userFound.email },- data: { password: 'RESETTIMEOUT' }- });- }- } else {- await prisma.user.update({- where: { email: userFound.email },- data: { password: hashedPassword }- });- const payload = {- userId: userFound.id,- teamId: userFound.id,- permission: userFound.permission,- isAdmin: true- };- return {- ...payload,- token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)- };- }- }- if (!userFound.password) {- throw new TRPCError({- code: 'BAD_REQUEST',- message: 'Something went wrong. Please try again later.'- });- }- const passwordMatch = comparePassword(password, userFound.password);- if (!passwordMatch) {- throw new TRPCError({- code: 'BAD_REQUEST',- message: 'Incorrect password.'- });- }- const payload = {- userId: userFound.id,- teamId: userFound.id,- permission: userFound.permission,- isAdmin: true- };- return {- ...payload,- token: jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY)- };- }- throw new TRPCError({- code: 'BAD_REQUEST',- message: 'Not implemented yet.'- });- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/dashboard.ts b/apps/trpc-experimental/server/src/trpc/routers/dashboard.tsdeleted file mode 100644index 273018dc1a..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/dashboard.ts+++ /dev/null@@ -1,65 +0,0 @@-import { privateProcedure, router } from '../trpc';-import { listSettings } from '../../lib/common';-import { prisma } from '../../prisma';--export const dashboardRouter = router({- resources: privateProcedure.query(async ({ ctx }) => {- const id = ctx.user?.teamId === '0' ? undefined : ctx.user?.teamId;- let applications = await prisma.application.findMany({- where: { teams: { some: { id } } },- include: { settings: true, destinationDocker: true, teams: true }- });- const databases = await prisma.database.findMany({- where: { teams: { some: { id } } },- include: { settings: true, destinationDocker: true, teams: true }- });- const services = await prisma.service.findMany({- where: { teams: { some: { id } } },- include: { destinationDocker: true, teams: true }- });- const gitSources = await prisma.gitSource.findMany({- where: {- OR: [{ teams: { some: { id } } }, { isSystemWide: true }]- },- include: { teams: true }- });- const destinations = await prisma.destinationDocker.findMany({- where: { teams: { some: { id } } },- include: { teams: true }- });- const settings = await listSettings();- let foundUnconfiguredApplication = false;- for (const application of applications) {- if (- ((!application.buildPack || !application.branch) && !application.simpleDockerfile) ||- !application.destinationDockerId ||- (!application.settings?.isBot && !application?.fqdn && application.buildPack !== 'compose')- ) {- foundUnconfiguredApplication = true;- }- }- let foundUnconfiguredService = false;- for (const service of services) {- if (!service.fqdn) {- foundUnconfiguredService = true;- }- }- let foundUnconfiguredDatabase = false;- for (const database of databases) {- if (!database.version) {- foundUnconfiguredDatabase = true;- }- }- return {- foundUnconfiguredApplication,- foundUnconfiguredDatabase,- foundUnconfiguredService,- applications,- databases,- services,- gitSources,- destinations,- settings- };- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/databases/index.ts b/apps/trpc-experimental/server/src/trpc/routers/databases/index.tsdeleted file mode 100644index 8851d975a4..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/databases/index.ts+++ /dev/null@@ -1,379 +0,0 @@-import { z } from 'zod';-import fs from 'fs/promises';-import { privateProcedure, router } from '../../trpc';-import {- createDirectories,- decrypt,- encrypt,- getContainerUsage,- listSettings,- startTraefikTCPProxy-} from '../../../lib/common';-import { prisma } from '../../../prisma';-import { executeCommand } from '../../../lib/executeCommand';-import {- defaultComposeConfiguration,- stopDatabaseContainer,- stopTcpHttpProxy-} from '../../../lib/docker';-import {- generateDatabaseConfiguration,- getDatabaseVersions,- makeLabelForStandaloneDatabase,- updatePasswordInDb-} from './lib';-import yaml from 'js-yaml';-import { getFreePublicPort } from '../services/lib';--export const databasesRouter = router({- usage: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const { id } = input;- let usage = {};-- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);- if (database.destinationDockerId) {- [usage] = await Promise.all([getContainerUsage(database.destinationDocker.id, id)]);- }- return {- success: true,- data: {- usage- }- };- }),- save: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const {- id,- name,- defaultDatabase,- dbUser,- dbUserPassword,- rootUser,- rootUserPassword,- version,- isRunning- } = input;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);- if (isRunning) {- if (database.dbUserPassword !== dbUserPassword) {- await updatePasswordInDb(database, dbUser, dbUserPassword, false);- } else if (database.rootUserPassword !== rootUserPassword) {- await updatePasswordInDb(database, rootUser, rootUserPassword, true);- }- }- const encryptedDbUserPassword = dbUserPassword && encrypt(dbUserPassword);- const encryptedRootUserPassword = rootUserPassword && encrypt(rootUserPassword);- await prisma.database.update({- where: { id },- data: {- name,- defaultDatabase,- dbUser,- dbUserPassword: encryptedDbUserPassword,- rootUser,- rootUserPassword: encryptedRootUserPassword,- version- }- });- }),- saveSettings: privateProcedure- .input(- z.object({- id: z.string(),- isPublic: z.boolean(),- appendOnly: z.boolean().default(true)- })- )- .mutation(async ({ ctx, input }) => {- const teamId = ctx.user?.teamId;- const { id, isPublic, appendOnly = true } = input;-- let publicPort = null;-- const {- destinationDocker: { remoteEngine, engine, remoteIpAddress }- } = await prisma.database.findUnique({ where: { id }, include: { destinationDocker: true } });-- if (isPublic) {- publicPort = await getFreePublicPort({ id, remoteEngine, engine, remoteIpAddress });- }- await prisma.database.update({- where: { id },- data: {- settings: {- upsert: { update: { isPublic, appendOnly }, create: { isPublic, appendOnly } }- }- }- });- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- const { arch } = await listSettings();- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);-- const { destinationDockerId, destinationDocker, publicPort: oldPublicPort } = database;- const { privatePort } = generateDatabaseConfiguration(database, arch);-- if (destinationDockerId) {- if (isPublic) {- await prisma.database.update({ where: { id }, data: { publicPort } });- await startTraefikTCPProxy(destinationDocker, id, publicPort, privatePort);- } else {- await prisma.database.update({ where: { id }, data: { publicPort: null } });- await stopTcpHttpProxy(id, destinationDocker, oldPublicPort);- }- }- return { publicPort };- }),- saveSecret: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- value: z.string(),- isNew: z.boolean().default(true)- })- )- .mutation(async ({ ctx, input }) => {- let { id, name, value, isNew } = input;-- if (isNew) {- const found = await prisma.databaseSecret.findFirst({ where: { name, databaseId: id } });- if (found) {- throw `Secret ${name} already exists.`;- } else {- value = encrypt(value.trim());- await prisma.databaseSecret.create({- data: { name, value, database: { connect: { id } } }- });- }- } else {- value = encrypt(value.trim());- const found = await prisma.databaseSecret.findFirst({ where: { databaseId: id, name } });-- if (found) {- await prisma.databaseSecret.updateMany({- where: { databaseId: id, name },- data: { value }- });- } else {- await prisma.databaseSecret.create({- data: { name, value, database: { connect: { id } } }- });- }- }- }),- start: privateProcedure.input(z.object({ id: z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true, databaseSecret: true }- });- const { arch } = await listSettings();- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);- const {- type,- destinationDockerId,- destinationDocker,- publicPort,- settings: { isPublic },- databaseSecret- } = database;- const { privatePort, command, environmentVariables, image, volume, ulimits } =- generateDatabaseConfiguration(database, arch);-- const network = destinationDockerId && destinationDocker.network;- const volumeName = volume.split(':')[0];- const labels = await makeLabelForStandaloneDatabase({ id, image, volume });-- const { workdir } = await createDirectories({ repository: type, buildId: id });- if (databaseSecret.length > 0) {- databaseSecret.forEach((secret) => {- environmentVariables[secret.name] = decrypt(secret.value);- });- }- const composeFile = {- version: '3.8',- services: {- [id]: {- container_name: id,- image,- command,- environment: environmentVariables,- volumes: [volume],- ulimits,- labels,- ...defaultComposeConfiguration(network)- }- },- networks: {- [network]: {- external: true- }- },- volumes: {- [volumeName]: {- name: volumeName- }- }- };- const composeFileDestination = `${workdir}/docker-compose.yaml`;- await fs.writeFile(composeFileDestination, yaml.dump(composeFile));- await executeCommand({- dockerId: destinationDocker.id,- command: `docker compose -f ${composeFileDestination} up -d`- });- if (isPublic) await startTraefikTCPProxy(destinationDocker, id, publicPort, privatePort);- }),- stop: privateProcedure.input(z.object({ id: z.string() })).mutation(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);- const everStarted = await stopDatabaseContainer(database);- if (everStarted) await stopTcpHttpProxy(id, database.destinationDocker, database.publicPort);- await prisma.database.update({- where: { id },- data: {- settings: { upsert: { update: { isPublic: false }, create: { isPublic: false } } }- }- });- await prisma.database.update({ where: { id }, data: { publicPort: null } });- }),- getDatabaseById: privateProcedure- .input(z.object({ id: z.string() }))- .query(async ({ ctx, input }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (!database) {- throw { status: 404, message: 'Database not found.' };- }- const settings = await listSettings();- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword) database.rootUserPassword = decrypt(database.rootUserPassword);- const configuration = generateDatabaseConfiguration(database, settings.arch);- return {- success: true,- data: {- privatePort: configuration?.privatePort,- database,- versions: await getDatabaseVersions(database.type, settings.arch),- settings- }- };- }),- status: privateProcedure.input(z.object({ id: z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;-- let isRunning = false;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (database) {- const { destinationDockerId, destinationDocker } = database;- if (destinationDockerId) {- try {- const { stdout } = await executeCommand({- dockerId: destinationDocker.id,- command: `docker inspect --format '{{json .State}}' ${id}`- });-- if (JSON.parse(stdout).Running) {- isRunning = true;- }- } catch (error) {- //- }- }- }- return {- success: true,- data: {- isRunning- }- };- }),- cleanup: privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let databases = await prisma.database.findMany({- where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { settings: true, destinationDocker: true, teams: true }- });- for (const database of databases) {- if (!database?.version) {- const { id } = database;- if (database.destinationDockerId) {- const everStarted = await stopDatabaseContainer(database);- if (everStarted)- await stopTcpHttpProxy(id, database.destinationDocker, database.publicPort);- }- await prisma.databaseSettings.deleteMany({ where: { databaseId: id } });- await prisma.databaseSecret.deleteMany({ where: { databaseId: id } });- await prisma.database.delete({ where: { id } });- }- }- return {};- }),- delete: privateProcedure- .input(z.object({ id: z.string(), force: z.boolean().default(false) }))- .mutation(async ({ ctx, input }) => {- const { id, force } = input;- const teamId = ctx.user?.teamId;- const database = await prisma.database.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, settings: true }- });- if (!force) {- if (database.dbUserPassword) database.dbUserPassword = decrypt(database.dbUserPassword);- if (database.rootUserPassword)- database.rootUserPassword = decrypt(database.rootUserPassword);- if (database.destinationDockerId) {- const everStarted = await stopDatabaseContainer(database);- if (everStarted)- await stopTcpHttpProxy(id, database.destinationDocker, database.publicPort);- }- }- await prisma.databaseSettings.deleteMany({ where: { databaseId: id } });- await prisma.databaseSecret.deleteMany({ where: { databaseId: id } });- await prisma.database.delete({ where: { id } });- return {};- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/databases/lib.ts b/apps/trpc-experimental/server/src/trpc/routers/databases/lib.tsdeleted file mode 100644index a1a7cd6479..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/databases/lib.ts+++ /dev/null@@ -1,283 +0,0 @@-import { base64Encode, isARM, version } from "../../../lib/common";-import { executeCommand } from "../../../lib/executeCommand";-import { prisma } from "../../../prisma";--export const supportedDatabaseTypesAndVersions = [- {- name: 'mongodb',- fancyName: 'MongoDB',- baseImage: 'bitnami/mongodb',- baseImageARM: 'mongo',- versions: ['5.0', '4.4', '4.2'],- versionsARM: ['5.0', '4.4', '4.2']- },- {- name: 'mysql',- fancyName: 'MySQL',- baseImage: 'bitnami/mysql',- baseImageARM: 'mysql',- versions: ['8.0', '5.7'],- versionsARM: ['8.0', '5.7']- },- {- name: 'mariadb',- fancyName: 'MariaDB',- baseImage: 'bitnami/mariadb',- baseImageARM: 'mariadb',- versions: ['10.8', '10.7', '10.6', '10.5', '10.4', '10.3', '10.2'],- versionsARM: ['10.8', '10.7', '10.6', '10.5', '10.4', '10.3', '10.2']- },- {- name: 'postgresql',- fancyName: 'PostgreSQL',- baseImage: 'bitnami/postgresql',- baseImageARM: 'postgres',- versions: ['14.5.0', '13.8.0', '12.12.0', '11.17.0', '10.22.0'],- versionsARM: ['14.5', '13.8', '12.12', '11.17', '10.22']- },- {- name: 'redis',- fancyName: 'Redis',- baseImage: 'bitnami/redis',- baseImageARM: 'redis',- versions: ['7.0', '6.2', '6.0', '5.0'],- versionsARM: ['7.0', '6.2', '6.0', '5.0']- },- {- name: 'couchdb',- fancyName: 'CouchDB',- baseImage: 'bitnami/couchdb',- baseImageARM: 'couchdb',- versions: ['3.2.2', '3.1.2', '2.3.1'],- versionsARM: ['3.2.2', '3.1.2', '2.3.1']- },- {- name: 'edgedb',- fancyName: 'EdgeDB',- baseImage: 'edgedb/edgedb',- versions: ['latest', '2.1', '2.0', '1.4']- }-];-export function getDatabaseImage(type: string, arch: string): string {- const found = supportedDatabaseTypesAndVersions.find((t) => t.name === type);- if (found) {- if (isARM(arch)) {- return found.baseImageARM || found.baseImage;- }- return found.baseImage;- }- return '';-}-export function generateDatabaseConfiguration(database: any, arch: string) {- const { id, dbUser, dbUserPassword, rootUser, rootUserPassword, defaultDatabase, version, type } =- database;- const baseImage = getDatabaseImage(type, arch);- if (type === 'mysql') {- const configuration = {- privatePort: 3306,- environmentVariables: {- MYSQL_USER: dbUser,- MYSQL_PASSWORD: dbUserPassword,- MYSQL_ROOT_PASSWORD: rootUserPassword,- MYSQL_ROOT_USER: rootUser,- MYSQL_DATABASE: defaultDatabase- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/mysql/data`,- ulimits: {}- };- if (isARM(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/mysql`;- }- return configuration;- } else if (type === 'mariadb') {- const configuration = {- privatePort: 3306,- environmentVariables: {- MARIADB_ROOT_USER: rootUser,- MARIADB_ROOT_PASSWORD: rootUserPassword,- MARIADB_USER: dbUser,- MARIADB_PASSWORD: dbUserPassword,- MARIADB_DATABASE: defaultDatabase- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/mariadb`,- ulimits: {}- };- if (isARM(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/mysql`;- }- return configuration;- } else if (type === 'mongodb') {- const configuration = {- privatePort: 27017,- environmentVariables: {- MONGODB_ROOT_USER: rootUser,- MONGODB_ROOT_PASSWORD: rootUserPassword- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/mongodb`,- ulimits: {}- };- if (isARM(arch)) {- configuration.environmentVariables = {- MONGO_INITDB_ROOT_USERNAME: rootUser,- MONGO_INITDB_ROOT_PASSWORD: rootUserPassword- };- configuration.volume = `${id}-${type}-data:/data/db`;- }- return configuration;- } else if (type === 'postgresql') {- const configuration = {- privatePort: 5432,- environmentVariables: {- POSTGRESQL_POSTGRES_PASSWORD: rootUserPassword,- POSTGRESQL_PASSWORD: dbUserPassword,- POSTGRESQL_USERNAME: dbUser,- POSTGRESQL_DATABASE: defaultDatabase- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/postgresql`,- ulimits: {}- };- if (isARM(arch)) {- configuration.volume = `${id}-${type}-data:/var/lib/postgresql`;- configuration.environmentVariables = {- POSTGRES_PASSWORD: dbUserPassword,- POSTGRES_USER: dbUser,- POSTGRES_DB: defaultDatabase- };- }- return configuration;- } else if (type === 'redis') {- const {- settings: { appendOnly }- } = database;- const configuration = {- privatePort: 6379,- command: undefined,- environmentVariables: {- REDIS_PASSWORD: dbUserPassword,- REDIS_AOF_ENABLED: appendOnly ? 'yes' : 'no'- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/redis/data`,- ulimits: {}- };- if (isARM(arch)) {- configuration.volume = `${id}-${type}-data:/data`;- configuration.command = `/usr/local/bin/redis-server --appendonly ${- appendOnly ? 'yes' : 'no'- } --requirepass ${dbUserPassword}`;- }- return configuration;- } else if (type === 'couchdb') {- const configuration = {- privatePort: 5984,- environmentVariables: {- COUCHDB_PASSWORD: dbUserPassword,- COUCHDB_USER: dbUser- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/bitnami/couchdb`,- ulimits: {}- };- if (isARM(arch)) {- configuration.volume = `${id}-${type}-data:/opt/couchdb/data`;- }- return configuration;- } else if (type === 'edgedb') {- const configuration = {- privatePort: 5656,- environmentVariables: {- EDGEDB_SERVER_PASSWORD: rootUserPassword,- EDGEDB_SERVER_USER: rootUser,- EDGEDB_SERVER_DATABASE: defaultDatabase,- EDGEDB_SERVER_TLS_CERT_MODE: 'generate_self_signed'- },- image: `${baseImage}:${version}`,- volume: `${id}-${type}-data:/var/lib/edgedb/data`,- ulimits: {}- };- return configuration;- }- return null;-}-export function getDatabaseVersions(type: string, arch: string): string[] {- const found = supportedDatabaseTypesAndVersions.find((t) => t.name === type);- if (found) {- if (isARM(arch)) {- return found.versionsARM || found.versions;- }- return found.versions;- }- return [];-}-export async function updatePasswordInDb(database, user, newPassword, isRoot) {- const {- id,- type,- rootUser,- rootUserPassword,- dbUser,- dbUserPassword,- defaultDatabase,- destinationDockerId,- destinationDocker: { id: dockerId }- } = database;- if (destinationDockerId) {- if (type === 'mysql') {- await executeCommand({- dockerId,- command: `docker exec ${id} mysql -u ${rootUser} -p${rootUserPassword} -e \"ALTER USER '${user}'@'%' IDENTIFIED WITH caching_sha2_password BY '${newPassword}';\"`- });- } else if (type === 'mariadb') {- await executeCommand({- dockerId,- command: `docker exec ${id} mysql -u ${rootUser} -p${rootUserPassword} -e \"SET PASSWORD FOR '${user}'@'%' = PASSWORD('${newPassword}');\"`- });- } else if (type === 'postgresql') {- if (isRoot) {- await executeCommand({- dockerId,- command: `docker exec ${id} psql postgresql://postgres:${rootUserPassword}@${id}:5432/${defaultDatabase} -c "ALTER role postgres WITH PASSWORD '${newPassword}'"`- });- } else {- await executeCommand({- dockerId,- command: `docker exec ${id} psql postgresql://${dbUser}:${dbUserPassword}@${id}:5432/${defaultDatabase} -c "ALTER role ${user} WITH PASSWORD '${newPassword}'"`- });- }- } else if (type === 'mongodb') {- await executeCommand({- dockerId,- command: `docker exec ${id} mongo 'mongodb://${rootUser}:${rootUserPassword}@${id}:27017/admin?readPreference=primary&ssl=false' --eval "db.changeUserPassword('${user}','${newPassword}')"`- });- } else if (type === 'redis') {- await executeCommand({- dockerId,- command: `docker exec ${id} redis-cli -u redis://${dbUserPassword}@${id}:6379 --raw CONFIG SET requirepass ${newPassword}`- });- }- }-}-export async function makeLabelForStandaloneDatabase({ id, image, volume }) {- const database = await prisma.database.findFirst({ where: { id } });- delete database.destinationDockerId;- delete database.createdAt;- delete database.updatedAt;- return [- 'coolify.managed=true',- `coolify.version=${version}`,- `coolify.type=standalone-database`,- `coolify.name=${database.name}`,- `coolify.configuration=${base64Encode(- JSON.stringify({- version,- image,- volume,- ...database- })- )}`- ];-}\ No newline at end of filediff --git a/apps/trpc-experimental/server/src/trpc/routers/destinations/index.ts b/apps/trpc-experimental/server/src/trpc/routers/destinations/index.tsdeleted file mode 100644index 21d7ee9573..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/destinations/index.ts+++ /dev/null@@ -1,218 +0,0 @@-import { z } from 'zod';-import { privateProcedure, router } from '../../trpc';-import {- listSettings,- startTraefikProxy,- startTraefikTCPProxy,- stopTraefikProxy-} from '../../../lib/common';-import { prisma } from '../../../prisma';--import { executeCommand } from '../../../lib/executeCommand';-import { checkContainer } from '../../../lib/docker';--export const destinationsRouter = router({- restartProxy: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- await stopTraefikProxy(id);- await startTraefikProxy(id);- await prisma.destinationDocker.update({- where: { id },- data: { isCoolifyProxyUsed: true }- });- }),- startProxy: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- await startTraefikProxy(id);- }),- stopProxy: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- await stopTraefikProxy(id);- }),- saveSettings: privateProcedure- .input(- z.object({- id: z.string(),- engine: z.string(),- isCoolifyProxyUsed: z.boolean()- })- )- .mutation(async ({ input, ctx }) => {- const { id, engine, isCoolifyProxyUsed } = input;- await prisma.destinationDocker.updateMany({- where: { engine },- data: { isCoolifyProxyUsed }- });- }),- status: privateProcedure.input(z.object({ id: z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const destination = await prisma.destinationDocker.findUnique({ where: { id } });- const { found: isRunning } = await checkContainer({- dockerId: destination.id,- container: 'coolify-proxy',- remove: true- });- return {- isRunning- };- }),- save: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- htmlUrl: z.string(),- apiUrl: z.string(),- customPort: z.number(),- customUser: z.string(),- isSystemWide: z.boolean().default(false)- })- )- .mutation(async ({ input, ctx }) => {- const { teamId } = ctx.user;- let {- id,- name,- network,- engine,- isCoolifyProxyUsed,- remoteIpAddress,- remoteUser,- remotePort- } = input;- if (id === 'new') {- if (engine) {- const { stdout } = await await executeCommand({- command: `docker network ls --filter 'name=^${network}$' --format '{{json .}}'`- });- if (stdout === '') {- await await executeCommand({- command: `docker network create --attachable ${network}`- });- }- await prisma.destinationDocker.create({- data: { name, teams: { connect: { id: teamId } }, engine, network, isCoolifyProxyUsed }- });- const destinations = await prisma.destinationDocker.findMany({ where: { engine } });- const destination = destinations.find((destination) => destination.network === network);- if (destinations.length > 0) {- const proxyConfigured = destinations.find(- (destination) =>- destination.network !== network && destination.isCoolifyProxyUsed === true- );- if (proxyConfigured) {- isCoolifyProxyUsed = !!proxyConfigured.isCoolifyProxyUsed;- }- await prisma.destinationDocker.updateMany({- where: { engine },- data: { isCoolifyProxyUsed }- });- }- if (isCoolifyProxyUsed) {- await startTraefikProxy(destination.id);- }- return { id: destination.id };- } else {- const destination = await prisma.destinationDocker.create({- data: {- name,- teams: { connect: { id: teamId } },- engine,- network,- isCoolifyProxyUsed,- remoteEngine: true,- remoteIpAddress,- remoteUser,- remotePort: Number(remotePort)- }- });- return { id: destination.id };- }- } else {- await prisma.destinationDocker.update({ where: { id }, data: { name, engine, network } });- return {};- }- }),- check: privateProcedure- .input(- z.object({- network: z.string()- })- )- .query(async ({ input, ctx }) => {- const { network } = input;- const found = await prisma.destinationDocker.findFirst({ where: { network } });- if (found) {- throw {- message: `Network already exists: ${network}`- };- }- }),- delete: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- const { network, remoteVerified, engine, isCoolifyProxyUsed } =- await prisma.destinationDocker.findUnique({ where: { id } });- if (isCoolifyProxyUsed) {- if (engine || remoteVerified) {- const { stdout: found } = await executeCommand({- dockerId: id,- command: `docker ps -a --filter network=${network} --filter name=coolify-proxy --format '{{.}}'`- });- if (found) {- await executeCommand({- dockerId: id,- command: `docker network disconnect ${network} coolify-proxy`- });- await executeCommand({ dockerId: id, command: `docker network rm ${network}` });- }- }- }- await prisma.destinationDocker.delete({ where: { id } });- }),- getDestinationById: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id } = input;- const { teamId } = ctx.user;- const destination = await prisma.destinationDocker.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { sshKey: true, application: true, service: true, database: true }- });- if (!destination && id !== 'new') {- throw { status: 404, message: `Destination not found.` };- }- const settings = await listSettings();- return {- destination,- settings- };- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/index.ts b/apps/trpc-experimental/server/src/trpc/routers/index.tsdeleted file mode 100644index 5bc9f108b4..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/index.ts+++ /dev/null@@ -1,8 +0,0 @@-export * from './auth';-export * from './dashboard';-export * from './settings';-export * from './applications';-export * from './services';-export * from './databases';-export * from './sources';-export * from './destinations';diff --git a/apps/trpc-experimental/server/src/trpc/routers/services/index.ts b/apps/trpc-experimental/server/src/trpc/routers/services/index.tsdeleted file mode 100644index c4c1e4b57c..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/services/index.ts+++ /dev/null@@ -1,912 +0,0 @@-import { z } from 'zod';-import yaml from 'js-yaml';-import fs from 'fs/promises';-import path from 'path';-import { privateProcedure, router } from '../../trpc';-import {- createDirectories,- decrypt,- encrypt,- fixType,- getTags,- getTemplates,- isARM,- isDev,- listSettings,- makeLabelForServices,- removeService-} from '../../../lib/common';-import { prisma } from '../../../prisma';-import { executeCommand } from '../../../lib/executeCommand';-import {- generatePassword,- getFreePublicPort,- parseAndFindServiceTemplates,- persistentVolumes,- startServiceContainers,- verifyAndDecryptServiceSecrets-} from './lib';-import { checkContainer, defaultComposeConfiguration, stopTcpHttpProxy } from '../../../lib/docker';-import cuid from 'cuid';-import { day } from '../../../lib/dayjs';--export const servicesRouter = router({- getLogs: privateProcedure- .input(- z.object({- id: z.string(),- containerId: z.string(),- since: z.number().optional().default(0)- })- )- .query(async ({ input, ctx }) => {- let { id, containerId, since } = input;- if (since !== 0) {- since = day(since).unix();- }- const {- destinationDockerId,- destinationDocker: { id: dockerId }- } = await prisma.service.findUnique({- where: { id },- include: { destinationDocker: true }- });- if (destinationDockerId) {- try {- const { default: ansi } = await import('strip-ansi');- const { stdout, stderr } = await executeCommand({- dockerId,- command: `docker logs --since ${since} --tail 5000 --timestamps ${containerId}`- });- const stripLogsStdout = stdout- .toString()- .split('\n')- .map((l) => ansi(l))- .filter((a) => a);- const stripLogsStderr = stderr- .toString()- .split('\n')- .map((l) => ansi(l))- .filter((a) => a);- return {- data: {- logs: stripLogsStderr.concat(stripLogsStdout)- }- };- } catch (error) {- const { statusCode, stderr } = error;- if (stderr.startsWith('Error: No such container')) {- return {- data: {- logs: [],- noContainer: true- }- };- }- if (statusCode === 404) {- return {- data: {- logs: []- }- };- }- }- }- return {- message: 'No logs found.'- };- }),- deleteStorage: privateProcedure- .input(- z.object({- storageId: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { storageId } = input;- await prisma.servicePersistentStorage.deleteMany({ where: { id: storageId } });- }),- saveStorage: privateProcedure- .input(- z.object({- id: z.string(),- path: z.string(),- isNewStorage: z.boolean(),- storageId: z.string().optional().nullable(),- containerId: z.string().optional()- })- )- .mutation(async ({ input, ctx }) => {- const { id, path, isNewStorage, storageId, containerId } = input;-- if (isNewStorage) {- const volumeName = `${id}-custom${path.replace(/\//gi, '-')}`;- const found = await prisma.servicePersistentStorage.findFirst({- where: { path, containerId }- });- if (found) {- throw {- status: 500,- message: 'Persistent storage already exists for this container and path.'- };- }- await prisma.servicePersistentStorage.create({- data: { path, volumeName, containerId, service: { connect: { id } } }- });- } else {- await prisma.servicePersistentStorage.update({- where: { id: storageId },- data: { path, containerId }- });- }- }),- getStorages: privateProcedure- .input(z.object({ id: z.string() }))- .query(async ({ input, ctx }) => {- const { id } = input;- const persistentStorages = await prisma.servicePersistentStorage.findMany({- where: { serviceId: id }- });- return {- success: true,- data: {- persistentStorages- }- };- }),- deleteSecret: privateProcedure- .input(z.object({ id: z.string(), name: z.string() }))- .mutation(async ({ input, ctx }) => {- const { id, name } = input;- await prisma.serviceSecret.deleteMany({ where: { serviceId: id, name } });- }),- saveService: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- fqdn: z.string().optional(),- exposePort: z.string().optional(),- type: z.string(),- serviceSetting: z.any(),- version: z.string().optional()- })- )- .mutation(async ({ input, ctx }) => {- const teamId = ctx.user?.teamId;- let { id, name, fqdn, exposePort, type, serviceSetting, version } = input;- if (fqdn) fqdn = fqdn.toLowerCase();- if (exposePort) exposePort = Number(exposePort);- type = fixType(type);-- const data = {- fqdn,- name,- exposePort,- version- };- const templates = await getTemplates();- const service = await prisma.service.findUnique({ where: { id } });- const foundTemplate = templates.find((t) => fixType(t.type) === fixType(service.type));- for (const setting of serviceSetting) {- let { id: settingId, name, value, changed = false, isNew = false, variableName } = setting;- if (value) {- if (changed) {- await prisma.serviceSetting.update({ where: { id: settingId }, data: { value } });- }- if (isNew) {- if (!variableName) {- variableName = foundTemplate?.variables.find((v) => v.name === name).id;- }- await prisma.serviceSetting.create({- data: { name, value, variableName, service: { connect: { id } } }- });- }- }- }- await prisma.service.update({- where: { id },- data- });- }),- createSecret: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- value: z.string(),- isBuildSecret: z.boolean().optional(),- isPRMRSecret: z.boolean().optional(),- isNew: z.boolean().optional()- })- )- .mutation(async ({ input }) => {- let { id, name, value, isNew } = input;- if (isNew) {- const found = await prisma.serviceSecret.findFirst({ where: { name, serviceId: id } });- if (found) {- throw `Secret ${name} already exists.`;- } else {- value = encrypt(value.trim());- await prisma.serviceSecret.create({- data: { name, value, service: { connect: { id } } }- });- }- } else {- value = encrypt(value.trim());- const found = await prisma.serviceSecret.findFirst({ where: { serviceId: id, name } });-- if (found) {- await prisma.serviceSecret.updateMany({- where: { serviceId: id, name },- data: { value }- });- } else {- await prisma.serviceSecret.create({- data: { name, value, service: { connect: { id } } }- });- }- }- }),- getSecrets: privateProcedure.input(z.object({ id: z.string() })).query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- let secrets = await prisma.serviceSecret.findMany({- where: { serviceId: id },- orderBy: { createdAt: 'desc' }- });- const templates = await getTemplates();- if (!templates) throw new Error('No templates found. Please contact support.');- const foundTemplate = templates.find((t) => fixType(t.type) === service.type);- secrets = secrets.map((secret) => {- const foundVariable = foundTemplate?.variables?.find((v) => v.name === secret.name) || null;- if (foundVariable) {- secret.readOnly = foundVariable.readOnly;- }- secret.value = decrypt(secret.value);- return secret;- });-- return {- success: true,- data: {- secrets- }- };- }),- wordpress: privateProcedure- .input(z.object({ id: z.string(), ftpEnabled: z.boolean() }))- .mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const {- service: {- destinationDocker: { engine, remoteEngine, remoteIpAddress }- }- } = await prisma.wordpress.findUnique({- where: { serviceId: id },- include: { service: { include: { destinationDocker: true } } }- });-- const publicPort = await getFreePublicPort({ id, remoteEngine, engine, remoteIpAddress });-- let ftpUser = cuid();- let ftpPassword = generatePassword({});-- const hostkeyDir = isDev ? '/tmp/hostkeys' : '/app/ssl/hostkeys';- try {- const data = await prisma.wordpress.update({- where: { serviceId: id },- data: { ftpEnabled },- include: { service: { include: { destinationDocker: true } } }- });- const {- service: { destinationDockerId, destinationDocker },- ftpPublicPort,- ftpUser: user,- ftpPassword: savedPassword,- ftpHostKey,- ftpHostKeyPrivate- } = data;- const { network, engine } = destinationDocker;- if (ftpEnabled) {- if (user) ftpUser = user;- if (savedPassword) ftpPassword = decrypt(savedPassword);-- // TODO: rewrite these to usable without shell- const { stdout: password } = await executeCommand({- command: `echo ${ftpPassword} | openssl passwd -1 -stdin`,- shell: true- });- if (destinationDockerId) {- try {- await fs.stat(hostkeyDir);- } catch (error) {- await executeCommand({ command: `mkdir -p ${hostkeyDir}` });- }- if (!ftpHostKey) {- await executeCommand({- command: `ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N "" -q -f ${hostkeyDir}/${id}.ed25519`- });- const { stdout: ftpHostKey } = await executeCommand({- command: `cat ${hostkeyDir}/${id}.ed25519`- });- await prisma.wordpress.update({- where: { serviceId: id },- data: { ftpHostKey: encrypt(ftpHostKey) }- });- } else {- await executeCommand({- command: `echo "${decrypt(ftpHostKey)}" > ${hostkeyDir}/${id}.ed25519`,- shell: true- });- }- if (!ftpHostKeyPrivate) {- await executeCommand({- command: `ssh-keygen -t rsa -b 4096 -N "" -f ${hostkeyDir}/${id}.rsa`- });- const { stdout: ftpHostKeyPrivate } = await executeCommand({- command: `cat ${hostkeyDir}/${id}.rsa`- });- await prisma.wordpress.update({- where: { serviceId: id },- data: { ftpHostKeyPrivate: encrypt(ftpHostKeyPrivate) }- });- } else {- await executeCommand({- command: `echo "${decrypt(ftpHostKeyPrivate)}" > ${hostkeyDir}/${id}.rsa`,- shell: true- });- }-- await prisma.wordpress.update({- where: { serviceId: id },- data: {- ftpPublicPort: publicPort,- ftpUser: user ? undefined : ftpUser,- ftpPassword: savedPassword ? undefined : encrypt(ftpPassword)- }- });-- try {- const { found: isRunning } = await checkContainer({- dockerId: destinationDocker.id,- container: `${id}-ftp`- });- if (isRunning) {- await executeCommand({- dockerId: destinationDocker.id,- command: `docker stop -t 0 ${id}-ftp && docker rm ${id}-ftp`,- shell: true- });- }- } catch (error) {}- const volumes = [- `${id}-wordpress-data:/home/${ftpUser}/wordpress`,- `${- isDev ? hostkeyDir : '/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys'- }/${id}.ed25519:/etc/ssh/ssh_host_ed25519_key`,- `${- isDev ? hostkeyDir : '/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys'- }/${id}.rsa:/etc/ssh/ssh_host_rsa_key`,- `${- isDev ? hostkeyDir : '/var/lib/docker/volumes/coolify-ssl-certs/_data/hostkeys'- }/${id}.sh:/etc/sftp.d/chmod.sh`- ];-- const compose = {- version: '3.8',- services: {- [`${id}-ftp`]: {- image: `atmoz/sftp:alpine`,- command: `'${ftpUser}:${password.replace('\n', '').replace(/\$/g, '$$$')}:e:33'`,- extra_hosts: ['host.docker.internal:host-gateway'],- container_name: `${id}-ftp`,- volumes,- networks: [network],- depends_on: [],- restart: 'always'- }- },- networks: {- [network]: {- external: true- }- },- volumes: {- [`${id}-wordpress-data`]: {- external: true,- name: `${id}-wordpress-data`- }- }- };- await fs.writeFile(- `${hostkeyDir}/${id}.sh`,- `#!/bin/bash\nchmod 600 /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_rsa_key\nuserdel -f xfs\nchown -R 33:33 /home/${ftpUser}/wordpress/`- );- await executeCommand({ command: `chmod +x ${hostkeyDir}/${id}.sh` });- await fs.writeFile(`${hostkeyDir}/${id}-docker-compose.yml`, yaml.dump(compose));- await executeCommand({- dockerId: destinationDocker.id,- command: `docker compose -f ${hostkeyDir}/${id}-docker-compose.yml up -d`- });- }- return {- publicPort,- ftpUser,- ftpPassword- };- } else {- await prisma.wordpress.update({- where: { serviceId: id },- data: { ftpPublicPort: null }- });- try {- await executeCommand({- dockerId: destinationDocker.id,- command: `docker stop -t 0 ${id}-ftp && docker rm ${id}-ftp`,- shell: true- });- } catch (error) {- //- }- await stopTcpHttpProxy(id, destinationDocker, ftpPublicPort);- }- } catch ({ status, message }) {- throw message;- } finally {- try {- await executeCommand({- command: `rm -fr ${hostkeyDir}/${id}-docker-compose.yml ${hostkeyDir}/${id}.ed25519 ${hostkeyDir}/${id}.ed25519.pub ${hostkeyDir}/${id}.rsa ${hostkeyDir}/${id}.rsa.pub ${hostkeyDir}/${id}.sh`- });- } catch (error) {}- }- }),- start: privateProcedure.input(z.object({ id: z.string() })).mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- const arm = isARM(service.arch);- const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } = service;-- const { workdir } = await createDirectories({ repository: type, buildId: id });- const template: any = await parseAndFindServiceTemplates(service, workdir, true);- const network = destinationDockerId && destinationDocker.network;- const config = {};- for (const s in template.services) {- let newEnvironments = [];- if (arm) {- if (template.services[s]?.environmentArm?.length > 0) {- for (const environment of template.services[s].environmentArm) {- let [env, ...value] = environment.split('=');- value = value.join('=');- if (!value.startsWith('$$secret') && value !== '') {- newEnvironments.push(`${env}=${value}`);- }- }- }- } else {- if (template.services[s]?.environment?.length > 0) {- for (const environment of template.services[s].environment) {- let [env, ...value] = environment.split('=');- value = value.join('=');- if (!value.startsWith('$$secret') && value !== '') {- newEnvironments.push(`${env}=${value}`);- }- }- }- }- const secrets = await verifyAndDecryptServiceSecrets(id);- for (const secret of secrets) {- const { name, value } = secret;- if (value) {- const foundEnv = !!template.services[s].environment?.find((env) =>- env.startsWith(`${name}=`)- );- const foundNewEnv = !!newEnvironments?.find((env) => env.startsWith(`${name}=`));- if (foundEnv && !foundNewEnv) {- newEnvironments.push(`${name}=${value}`);- }- if (!foundEnv && !foundNewEnv && s === id) {- newEnvironments.push(`${name}=${value}`);- }- }- }- const customVolumes = await prisma.servicePersistentStorage.findMany({- where: { serviceId: id }- });- let volumes = new Set();- if (arm) {- template.services[s]?.volumesArm &&- template.services[s].volumesArm.length > 0 &&- template.services[s].volumesArm.forEach((v) => volumes.add(v));- } else {- template.services[s]?.volumes &&- template.services[s].volumes.length > 0 &&- template.services[s].volumes.forEach((v) => volumes.add(v));- }-- // Workaround: old plausible analytics service wrong volume id name- if (service.type === 'plausibleanalytics' && service.plausibleAnalytics?.id) {- let temp = Array.from(volumes);- temp.forEach((a) => {- const t = a.replace(service.id, service.plausibleAnalytics.id);- volumes.delete(a);- volumes.add(t);- });- }-- if (customVolumes.length > 0) {- for (const customVolume of customVolumes) {- const { volumeName, path, containerId } = customVolume;- if (- volumes &&- volumes.size > 0 &&- !volumes.has(`${volumeName}:${path}`) &&- containerId === service- ) {- volumes.add(`${volumeName}:${path}`);- }- }- }- let ports = [];- if (template.services[s].proxy?.length > 0) {- for (const proxy of template.services[s].proxy) {- if (proxy.hostPort) {- ports.push(`${proxy.hostPort}:${proxy.port}`);- }- }- } else {- if (template.services[s].ports?.length === 1) {- for (const port of template.services[s].ports) {- if (exposePort) {- ports.push(`${exposePort}:${port}`);- }- }- }- }- let image = template.services[s].image;- if (arm && template.services[s].imageArm) {- image = template.services[s].imageArm;- }- config[s] = {- container_name: s,- build: template.services[s].build || undefined,- command: template.services[s].command,- entrypoint: template.services[s]?.entrypoint,- image,- expose: template.services[s].ports,- ports: ports.length > 0 ? ports : undefined,- volumes: Array.from(volumes),- environment: newEnvironments,- depends_on: template.services[s]?.depends_on,- ulimits: template.services[s]?.ulimits,- cap_drop: template.services[s]?.cap_drop,- cap_add: template.services[s]?.cap_add,- labels: makeLabelForServices(type),- ...defaultComposeConfiguration(network)- };- // Generate files for builds- if (template.services[s]?.files?.length > 0) {- if (!config[s].build) {- config[s].build = {- context: workdir,- dockerfile: `Dockerfile.${s}`- };- }- let Dockerfile = `- FROM ${template.services[s].image}`;- for (const file of template.services[s].files) {- const { location, content } = file;- const source = path.join(workdir, location);- await fs.mkdir(path.dirname(source), { recursive: true });- await fs.writeFile(source, content);- Dockerfile += `- COPY .${location} ${location}`;- }- await fs.writeFile(`${workdir}/Dockerfile.${s}`, Dockerfile);- }- }- const { volumeMounts } = persistentVolumes(id, persistentStorage, config);- const composeFile = {- version: '3.8',- services: config,- networks: {- [network]: {- external: true- }- },- volumes: volumeMounts- };- const composeFileDestination = `${workdir}/docker-compose.yaml`;- await fs.writeFile(composeFileDestination, yaml.dump(composeFile));- // TODO: TODO!- let fastify = null;- await startServiceContainers(fastify, id, teamId, destinationDocker.id, composeFileDestination);-- // Workaround: Stop old minio proxies- if (service.type === 'minio') {- try {- const { stdout: containers } = await executeCommand({- dockerId: destinationDocker.id,- command: `docker container ls -a --filter 'name=${id}-' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {}- try {- const { stdout: containers } = await executeCommand({- dockerId: destinationDocker.id,- command: `docker container ls -a --filter 'name=${id}-' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- } catch (error) {}- }- }),- stop: privateProcedure.input(z.object({ id: z.string() })).mutation(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const { destinationDockerId } = await getServiceFromDB({ id, teamId });- if (destinationDockerId) {- const { stdout: containers } = await executeCommand({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.project=${id}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- return {};- }- }),- getServices: privateProcedure- .input(z.object({ id: z.string() }))- .query(async ({ input, ctx }) => {- const { id } = input;- const teamId = ctx.user?.teamId;- const service = await getServiceFromDB({ id, teamId });- if (!service) {- throw { status: 404, message: 'Service not found.' };- }- let template = {};- let tags = [];- if (service.type) {- template = await parseAndFindServiceTemplates(service);- tags = await getTags(service.type);- }- return {- success: true,- data: {- settings: await listSettings(),- service,- template,- tags- }- };- }),- status: privateProcedure.input(z.object({ id: z.string() })).query(async ({ ctx, input }) => {- const id = input.id;- const teamId = ctx.user?.teamId;- if (!teamId) {- throw { status: 400, message: 'Team not found.' };- }- const service = await getServiceFromDB({ id, teamId });- const { destinationDockerId } = service;- let payload = {};- if (destinationDockerId) {- const { stdout: containers } = await executeCommand({- dockerId: service.destinationDocker.id,- command: `docker ps -a --filter "label=com.docker.compose.project=${id}" --format '{{json .}}'`- });- if (containers) {- const containersArray = containers.trim().split('\n');- if (containersArray.length > 0 && containersArray[0] !== '') {- const templates = await getTemplates();- let template = templates.find((t: { type: string }) => t.type === service.type);- const templateStr = JSON.stringify(template);- if (templateStr) {- template = JSON.parse(templateStr.replaceAll('$$id', service.id));- }- for (const container of containersArray) {- let isRunning = false;- let isExited = false;- let isRestarting = false;- let isExcluded = false;- const containerObj = JSON.parse(container);- const exclude = template?.services[containerObj.Names]?.exclude;- if (exclude) {- payload[containerObj.Names] = {- status: {- isExcluded: true,- isRunning: false,- isExited: false,- isRestarting: false- }- };- continue;- }-- const status = containerObj.State;- if (status === 'running') {- isRunning = true;- }- if (status === 'exited') {- isExited = true;- }- if (status === 'restarting') {- isRestarting = true;- }- payload[containerObj.Names] = {- status: {- isExcluded,- isRunning,- isExited,- isRestarting- }- };- }- }- }- }- return payload;- }),- cleanup: privateProcedure.query(async ({ ctx }) => {- const teamId = ctx.user?.teamId;- let services = await prisma.service.findMany({- where: { teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: { destinationDocker: true, teams: true }- });- for (const service of services) {- if (!service.fqdn) {- if (service.destinationDockerId) {- const { stdout: containers } = await executeCommand({- dockerId: service.destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.project=${service.id}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: service.destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: service.destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- }- await removeService({ id: service.id });- }- }- }),- delete: privateProcedure- .input(z.object({ force: z.boolean(), id: z.string() }))- .mutation(async ({ input }) => {- // todo: check if user is allowed to delete service- const { id } = input;- const teamId = ctx.user?.teamId;- const { destinationDockerId } = await getServiceFromDB({ id, teamId });- if (destinationDockerId) {- const { stdout: containers } = await executeCommand({- dockerId: destinationDockerId,- command: `docker ps -a --filter 'label=com.docker.compose.project=${id}' --format {{.ID}}`- });- if (containers) {- const containerArray = containers.split('\n');- if (containerArray.length > 0) {- for (const container of containerArray) {- await executeCommand({- dockerId: destinationDockerId,- command: `docker stop -t 0 ${container}`- });- await executeCommand({- dockerId: destinationDockerId,- command: `docker rm --force ${container}`- });- }- }- }- }- await prisma.serviceSecret.deleteMany({ where: { serviceId: id } });- await prisma.serviceSetting.deleteMany({ where: { serviceId: id } });- await prisma.servicePersistentStorage.deleteMany({ where: { serviceId: id } });- await prisma.meiliSearch.deleteMany({ where: { serviceId: id } });- await prisma.fider.deleteMany({ where: { serviceId: id } });- await prisma.ghost.deleteMany({ where: { serviceId: id } });- await prisma.umami.deleteMany({ where: { serviceId: id } });- await prisma.hasura.deleteMany({ where: { serviceId: id } });- await prisma.plausibleAnalytics.deleteMany({ where: { serviceId: id } });- await prisma.minio.deleteMany({ where: { serviceId: id } });- await prisma.vscodeserver.deleteMany({ where: { serviceId: id } });- await prisma.wordpress.deleteMany({ where: { serviceId: id } });- await prisma.glitchTip.deleteMany({ where: { serviceId: id } });- await prisma.moodle.deleteMany({ where: { serviceId: id } });- await prisma.appwrite.deleteMany({ where: { serviceId: id } });- await prisma.searxng.deleteMany({ where: { serviceId: id } });- await prisma.weblate.deleteMany({ where: { serviceId: id } });- await prisma.taiga.deleteMany({ where: { serviceId: id } });-- await prisma.service.delete({ where: { id } });- return {};- })-});--export async function getServiceFromDB({- id,- teamId-}: {- id: string;- teamId: string;-}): Promise<any> {- const settings = await prisma.setting.findFirst();- const body = await prisma.service.findFirst({- where: { id, teams: { some: { id: teamId === '0' ? undefined : teamId } } },- include: {- destinationDocker: true,- persistentStorage: true,- serviceSecret: true,- serviceSetting: true,- wordpress: true,- plausibleAnalytics: true- }- });- if (!body) {- return null;- }- // body.type = fixType(body.type);-- if (body?.serviceSecret.length > 0) {- body.serviceSecret = body.serviceSecret.map((s) => {- s.value = decrypt(s.value);- return s;- });- }- if (body.wordpress) {- body.wordpress.ftpPassword = decrypt(body.wordpress.ftpPassword);- }-- return { ...body, settings };-}diff --git a/apps/trpc-experimental/server/src/trpc/routers/services/lib.ts b/apps/trpc-experimental/server/src/trpc/routers/services/lib.tsdeleted file mode 100644index ad785e58ea..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/services/lib.ts+++ /dev/null@@ -1,376 +0,0 @@-import { asyncSleep, decrypt, fixType, generateRangeArray, getDomain, getTemplates } from '../../../lib/common';-import bcrypt from 'bcryptjs';-import { prisma } from '../../../prisma';-import crypto from 'crypto';-import { executeCommand } from '../../../lib/executeCommand';--export async function parseAndFindServiceTemplates(- service: any,- workdir?: string,- isDeploy: boolean = false-) {- const templates = await getTemplates();- const foundTemplate = templates.find((t) => fixType(t.type) === service.type);- let parsedTemplate = {};- if (foundTemplate) {- if (!isDeploy) {- for (const [key, value] of Object.entries(foundTemplate.services)) {- const realKey = key.replace('$$id', service.id);- let name = value.name;- if (!name) {- if (Object.keys(foundTemplate.services).length === 1) {- name = foundTemplate.name || service.name.toLowerCase();- } else {- if (key === '$$id') {- name =- foundTemplate.name || key.replaceAll('$$id-', '') || service.name.toLowerCase();- } else {- name = key.replaceAll('$$id-', '') || service.name.toLowerCase();- }- }- }- parsedTemplate[realKey] = {- value,- name,- documentation:- value.documentation || foundTemplate.documentation || 'https://docs.coollabs.io',- image: value.image,- files: value?.files,- environment: [],- fqdns: [],- hostPorts: [],- proxy: {}- };- if (value.environment?.length > 0) {- for (const env of value.environment) {- let [envKey, ...envValue] = env.split('=');- envValue = envValue.join('=');- let variable = null;- if (foundTemplate?.variables) {- variable =- foundTemplate?.variables.find((v) => v.name === envKey) ||- foundTemplate?.variables.find((v) => v.id === envValue);- }- if (variable) {- const id = variable.id.replaceAll('$$', '');- const label = variable?.label;- const description = variable?.description;- const defaultValue = variable?.defaultValue;- const main = variable?.main || '$$id';- const type = variable?.type || 'input';- const placeholder = variable?.placeholder || '';- const readOnly = variable?.readOnly || false;- const required = variable?.required || false;- if (envValue.startsWith('$$config') || variable?.showOnConfiguration) {- if (envValue.startsWith('$$config_coolify')) {- continue;- }- parsedTemplate[realKey].environment.push({- id,- name: envKey,- value: envValue,- main,- label,- description,- defaultValue,- type,- placeholder,- required,- readOnly- });- }- }- }- }- if (value?.proxy && value.proxy.length > 0) {- for (const proxyValue of value.proxy) {- if (proxyValue.domain) {- const variable = foundTemplate?.variables.find((v) => v.id === proxyValue.domain);- if (variable) {- const { id, name, label, description, defaultValue, required = false } = variable;- const found = await prisma.serviceSetting.findFirst({- where: { serviceId: service.id, variableName: proxyValue.domain }- });- parsedTemplate[realKey].fqdns.push({- id,- name,- value: found?.value || '',- label,- description,- defaultValue,- required- });- }- }- if (proxyValue.hostPort) {- const variable = foundTemplate?.variables.find((v) => v.id === proxyValue.hostPort);- if (variable) {- const { id, name, label, description, defaultValue, required = false } = variable;- const found = await prisma.serviceSetting.findFirst({- where: { serviceId: service.id, variableName: proxyValue.hostPort }- });- parsedTemplate[realKey].hostPorts.push({- id,- name,- value: found?.value || '',- label,- description,- defaultValue,- required- });- }- }- }- }- }- } else {- parsedTemplate = foundTemplate;- }- let strParsedTemplate = JSON.stringify(parsedTemplate);-- // replace $$id and $$workdir- strParsedTemplate = strParsedTemplate.replaceAll('$$id', service.id);- strParsedTemplate = strParsedTemplate.replaceAll(- '$$core_version',- service.version || foundTemplate.defaultVersion- );-- // replace $$workdir- if (workdir) {- strParsedTemplate = strParsedTemplate.replaceAll('$$workdir', workdir);- }-- // replace $$config- if (service.serviceSetting.length > 0) {- for (const setting of service.serviceSetting) {- const { value, variableName } = setting;- const regex = new RegExp(`\\$\\$config_${variableName.replace('$$config_', '')}\"`, 'gi');- if (value === '$$generate_fqdn') {- strParsedTemplate = strParsedTemplate.replaceAll(regex, service.fqdn + '"' || '' + '"');- } else if (value === '$$generate_fqdn_slash') {- strParsedTemplate = strParsedTemplate.replaceAll(regex, service.fqdn + '/' + '"');- } else if (value === '$$generate_domain') {- strParsedTemplate = strParsedTemplate.replaceAll(regex, getDomain(service.fqdn) + '"');- } else if (service.destinationDocker?.network && value === '$$generate_network') {- strParsedTemplate = strParsedTemplate.replaceAll(- regex,- service.destinationDocker.network + '"'- );- } else {- strParsedTemplate = strParsedTemplate.replaceAll(regex, value + '"');- }- }- }-- // replace $$secret- if (service.serviceSecret.length > 0) {- for (const secret of service.serviceSecret) {- let { name, value } = secret;- name = name.toLowerCase();- const regexHashed = new RegExp(`\\$\\$hashed\\$\\$secret_${name}`, 'gi');- const regex = new RegExp(`\\$\\$secret_${name}`, 'gi');- if (value) {- strParsedTemplate = strParsedTemplate.replaceAll(- regexHashed,- bcrypt.hashSync(value.replaceAll('"', '\\"'), 10)- );- strParsedTemplate = strParsedTemplate.replaceAll(regex, value.replaceAll('"', '\\"'));- } else {- strParsedTemplate = strParsedTemplate.replaceAll(regexHashed, '');- strParsedTemplate = strParsedTemplate.replaceAll(regex, '');- }- }- }- parsedTemplate = JSON.parse(strParsedTemplate);- }- return parsedTemplate;-}-export function generatePassword({- length = 24,- symbols = false,- isHex = false-}: { length?: number; symbols?: boolean; isHex?: boolean } | null): string {- if (isHex) {- return crypto.randomBytes(length).toString('hex');- }- const password = generator.generate({- length,- numbers: true,- strict: true,- symbols- });-- return password;-}--export async function getFreePublicPort({ id, remoteEngine, engine, remoteIpAddress }) {- const { default: isReachable } = await import('is-port-reachable');- const data = await prisma.setting.findFirst();- const { minPort, maxPort } = data;- if (remoteEngine) {- const dbUsed = await (- await prisma.database.findMany({- where: {- publicPort: { not: null },- id: { not: id },- destinationDocker: { remoteIpAddress }- },- select: { publicPort: true }- })- ).map((a) => a.publicPort);- const wpFtpUsed = await (- await prisma.wordpress.findMany({- where: {- ftpPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { ftpPublicPort: true }- })- ).map((a) => a.ftpPublicPort);- const wpUsed = await (- await prisma.wordpress.findMany({- where: {- mysqlPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { mysqlPublicPort: true }- })- ).map((a) => a.mysqlPublicPort);- const minioUsed = await (- await prisma.minio.findMany({- where: {- publicPort: { not: null },- id: { not: id },- service: { destinationDocker: { remoteIpAddress } }- },- select: { publicPort: true }- })- ).map((a) => a.publicPort);- const usedPorts = [...dbUsed, ...wpFtpUsed, ...wpUsed, ...minioUsed];- const range = generateRangeArray(minPort, maxPort);- const availablePorts = range.filter((port) => !usedPorts.includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: remoteIpAddress });- if (!found) {- return port;- }- }- return false;- } else {- const dbUsed = await (- await prisma.database.findMany({- where: { publicPort: { not: null }, id: { not: id }, destinationDocker: { engine } },- select: { publicPort: true }- })- ).map((a) => a.publicPort);- const wpFtpUsed = await (- await prisma.wordpress.findMany({- where: {- ftpPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { ftpPublicPort: true }- })- ).map((a) => a.ftpPublicPort);- const wpUsed = await (- await prisma.wordpress.findMany({- where: {- mysqlPublicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { mysqlPublicPort: true }- })- ).map((a) => a.mysqlPublicPort);- const minioUsed = await (- await prisma.minio.findMany({- where: {- publicPort: { not: null },- id: { not: id },- service: { destinationDocker: { engine } }- },- select: { publicPort: true }- })- ).map((a) => a.publicPort);- const usedPorts = [...dbUsed, ...wpFtpUsed, ...wpUsed, ...minioUsed];- const range = generateRangeArray(minPort, maxPort);- const availablePorts = range.filter((port) => !usedPorts.includes(port));- for (const port of availablePorts) {- const found = await isReachable(port, { host: 'localhost' });- if (!found) {- return port;- }- }- return false;- }-}--export async function verifyAndDecryptServiceSecrets(id: string) {- const secrets = await prisma.serviceSecret.findMany({ where: { serviceId: id } })- let decryptedSecrets = secrets.map(secret => {- const { name, value } = secret- if (value) {- let rawValue = decrypt(value)- rawValue = rawValue.replaceAll(/\$/gi, '$$$')- return { name, value: rawValue }- }- return { name, value }-- })- return decryptedSecrets-}--export function persistentVolumes(id, persistentStorage, config) {- let volumeSet = new Set();- if (Object.keys(config).length > 0) {- for (const [key, value] of Object.entries(config)) {- if (value.volumes) {- for (const volume of value.volumes) {- if (!volume.startsWith('/')) {- volumeSet.add(volume);- }- }- }- }- }- const volumesArray = Array.from(volumeSet);- const persistentVolume =- persistentStorage?.map((storage) => {- return `${id}${storage.path.replace(/\//gi, '-')}:${storage.path}`;- }) || [];-- let volumes = [...persistentVolume];- if (volumesArray) volumes = [...volumesArray, ...volumes];- const composeVolumes =- (volumes.length > 0 &&- volumes.map((volume) => {- return {- [`${volume.split(':')[0]}`]: {- name: volume.split(':')[0]- }- };- })) ||- [];-- const volumeMounts = Object.assign({}, ...composeVolumes) || {};- return { volumeMounts };-}--export async function startServiceContainers(fastify, id, teamId, dockerId, composeFileDestination) {- try {- // fastify.io.to(teamId).emit(`start-service`, { serviceId: id, state: 'Pulling images...' })- await executeCommand({ dockerId, command: `docker compose -f ${composeFileDestination} pull` })- } catch (error) { }- // fastify.io.to(teamId).emit(`start-service`, { serviceId: id, state: 'Building images...' })- await executeCommand({ dockerId, command: `docker compose -f ${composeFileDestination} build --no-cache` })- // fastify.io.to(teamId).emit(`start-service`, { serviceId: id, state: 'Creating containers...' })- await executeCommand({ dockerId, command: `docker compose -f ${composeFileDestination} create` })- // fastify.io.to(teamId).emit(`start-service`, { serviceId: id, state: 'Starting containers...' })- await executeCommand({ dockerId, command: `docker compose -f ${composeFileDestination} start` })- await asyncSleep(1000);- await executeCommand({ dockerId, command: `docker compose -f ${composeFileDestination} up -d` })- // fastify.io.to(teamId).emit(`start-service`, { serviceId: id, state: 0 })-}\ No newline at end of filediff --git a/apps/trpc-experimental/server/src/trpc/routers/settings.ts b/apps/trpc-experimental/server/src/trpc/routers/settings.tsdeleted file mode 100644index e06de54a96..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/settings.ts+++ /dev/null@@ -1,80 +0,0 @@-// import { z } from 'zod';-import { publicProcedure, privateProcedure, router } from '../trpc';-import { TRPCError } from '@trpc/server';-import { getCurrentUser, getTeamInvitation, listSettings, version } from '../../lib/common';-import { env } from '../../env';-import type { Permission, TeamInvitation } from '@prisma/client';-import jsonwebtoken from 'jsonwebtoken';--export const settingsRouter = router({- getBaseSettings: publicProcedure.query(async () => {- const settings = await listSettings();- return {- success: true,- data: {- isRegistrationEnabled: settings?.isRegistrationEnabled- }- };- }),- getInstanceSettings: privateProcedure.query(async ({ ctx }) => {- try {- const settings = await listSettings();-- let isAdmin = false;- let permission = null;- let token = null;- let pendingInvitations: TeamInvitation[] = [];-- if (!settings) {- throw new TRPCError({- code: 'INTERNAL_SERVER_ERROR',- message: 'An unexpected error occurred, please try again later.'- });- }- if (ctx.user) {- const currentUser = await getCurrentUser(ctx.user.userId);- if (currentUser) {- const foundPermission = currentUser.permission.find(- (p: Permission) => p.teamId === ctx.user?.teamId- )?.permission;- if (foundPermission) {- permission = foundPermission;- isAdmin = foundPermission === 'owner' || foundPermission === 'admin';- }- const payload = {- userId: ctx.user?.userId,- teamId: ctx.user?.teamId,- permission,- isAdmin,- iat: Math.floor(Date.now() / 1000)- };- token = jsonwebtoken.sign(payload, env.COOLIFY_SECRET_KEY);- }- pendingInvitations = await getTeamInvitation(ctx.user.userId);- }- return {- success: true,- data: {- token,- userId: ctx.user?.userId,- teamId: ctx.user?.teamId,- permission,- isAdmin,- ipv4: ctx.user?.teamId ? settings.ipv4 : null,- ipv6: ctx.user?.teamId ? settings.ipv6 : null,- version,- whiteLabeled: env.COOLIFY_WHITE_LABELED === 'true',- whiteLabeledIcon: env.COOLIFY_WHITE_LABELED_ICON,- isRegistrationEnabled: settings.isRegistrationEnabled,- pendingInvitations- }- };- } catch (error) {- throw new TRPCError({- code: 'INTERNAL_SERVER_ERROR',- message: 'An unexpected error occurred, please try again later.',- cause: error- });- }- })-});diff --git a/apps/trpc-experimental/server/src/trpc/routers/sources/index.ts b/apps/trpc-experimental/server/src/trpc/routers/sources/index.tsdeleted file mode 100644index 05ff96b515..0000000000--- a/apps/trpc-experimental/server/src/trpc/routers/sources/index.ts+++ /dev/null@@ -1,223 +0,0 @@-import { z } from 'zod';-import { privateProcedure, router } from '../../trpc';-import { decrypt, encrypt } from '../../../lib/common';-import { prisma } from '../../../prisma';--import cuid from 'cuid';--export const sourcesRouter = router({- save: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- htmlUrl: z.string(),- apiUrl: z.string(),- customPort: z.number(),- customUser: z.string(),- isSystemWide: z.boolean().default(false)- })- )- .mutation(async ({ input, ctx }) => {- let { id, name, htmlUrl, apiUrl, customPort, customUser, isSystemWide } = input;- if (customPort) customPort = Number(customPort);- await prisma.gitSource.update({- where: { id },- data: { name, htmlUrl, apiUrl, customPort, customUser, isSystemWide }- });- }),- newGitHubApp: privateProcedure- .input(- z.object({- id: z.string(),- name: z.string(),- htmlUrl: z.string(),- apiUrl: z.string(),- organization: z.string(),- customPort: z.number(),- isSystemWide: z.boolean().default(false)- })- )- .mutation(async ({ ctx, input }) => {- const { teamId } = ctx.user;- let { id, name, htmlUrl, apiUrl, organization, customPort, isSystemWide } = input;-- if (customPort) customPort = Number(customPort);- if (id === 'new') {- const newId = cuid();- await prisma.gitSource.create({- data: {- id: newId,- name,- htmlUrl,- apiUrl,- organization,- customPort,- isSystemWide,- type: 'github',- teams: { connect: { id: teamId } }- }- });- return {- id: newId- };- }- return null;- }),- newGitLabApp: privateProcedure- .input(- z.object({- id: z.string(),- type: z.string(),- name: z.string(),- htmlUrl: z.string(),- apiUrl: z.string(),- oauthId: z.number(),- appId: z.string(),- appSecret: z.string(),- groupName: z.string().optional().nullable(),- customPort: z.number().optional().nullable(),- customUser: z.string().optional().nullable()- })- )- .mutation(async ({ input, ctx }) => {- const { teamId } = ctx.user;- let {- id,- type,- name,- htmlUrl,- apiUrl,- oauthId,- appId,- appSecret,- groupName,- customPort,- customUser- } = input;-- if (oauthId) oauthId = Number(oauthId);- if (customPort) customPort = Number(customPort);- const encryptedAppSecret = encrypt(appSecret);-- if (id === 'new') {- const newId = cuid();- await prisma.gitSource.create({- data: {- id: newId,- type,- apiUrl,- htmlUrl,- name,- customPort,- customUser,- teams: { connect: { id: teamId } }- }- });- await prisma.gitlabApp.create({- data: {- teams: { connect: { id: teamId } },- appId,- oauthId,- groupName,- appSecret: encryptedAppSecret,- gitSource: { connect: { id: newId } }- }- });- return {- status: 201,- id: newId- };- } else {- await prisma.gitSource.update({- where: { id },- data: { type, apiUrl, htmlUrl, name, customPort, customUser }- });- await prisma.gitlabApp.update({- where: { id },- data: {- appId,- oauthId,- groupName,- appSecret: encryptedAppSecret- }- });- }- }),- delete: privateProcedure- .input(- z.object({- id: z.string()- })- )- .mutation(async ({ input, ctx }) => {- const { id } = input;- const source = await prisma.gitSource.delete({- where: { id },- include: { githubApp: true, gitlabApp: true }- });- if (source.githubAppId) {- await prisma.githubApp.delete({ where: { id: source.githubAppId } });- }- if (source.gitlabAppId) {- await prisma.gitlabApp.delete({ where: { id: source.gitlabAppId } });- }- }),- getSourceById: privateProcedure- .input(- z.object({- id: z.string()- })- )- .query(async ({ input, ctx }) => {- const { id } = input;- const { teamId } = ctx.user;- const settings = await prisma.setting.findFirst({});-- if (id === 'new') {- return {- source: {- name: null,- type: null,- htmlUrl: null,- apiUrl: null,- organization: null,- customPort: 22,- customUser: 'git'- },- settings- };- }-- const source = await prisma.gitSource.findFirst({- where: {- id,- OR: [- { teams: { some: { id: teamId === '0' ? undefined : teamId } } },- { isSystemWide: true }- ]- },- include: { githubApp: true, gitlabApp: true }- });- if (!source) {- throw { status: 404, message: 'Source not found.' };- }-- if (source?.githubApp?.clientSecret)- source.githubApp.clientSecret = decrypt(source.githubApp.clientSecret);- if (source?.githubApp?.webhookSecret)- source.githubApp.webhookSecret = decrypt(source.githubApp.webhookSecret);- if (source?.githubApp?.privateKey)- source.githubApp.privateKey = decrypt(source.githubApp.privateKey);- if (source?.gitlabApp?.appSecret)- source.gitlabApp.appSecret = decrypt(source.gitlabApp.appSecret);-- return {- success: true,- data: {- source,- settings- }- };- })-});diff --git a/apps/trpc-experimental/server/src/trpc/trpc.ts b/apps/trpc-experimental/server/src/trpc/trpc.tsdeleted file mode 100644index 79c7c5781b..0000000000--- a/apps/trpc-experimental/server/src/trpc/trpc.ts+++ /dev/null@@ -1,33 +0,0 @@-import { initTRPC, TRPCError } from '@trpc/server';-import superjson from 'superjson';-import type { Context } from './context';--const t = initTRPC.context<Context>().create({- transformer: superjson,- errorFormatter({ shape }) {- return shape;- }-});-const logger = t.middleware(async ({ path, type, next }) => {- const start = Date.now();- const result = await next();- const durationMs = Date.now() - start;- result.ok- ? console.log('OK request timing:', { path, type, durationMs })- : console.log('Non-OK request timing', { path, type, durationMs });- return result;-});--const isAdmin = t.middleware(async ({ ctx, next }) => {- if (!ctx.user) {- throw new TRPCError({ code: 'UNAUTHORIZED' });- }- return next({- ctx: {- user: ctx.user- }- });-});-export const router = t.router;-export const privateProcedure = t.procedure.use(isAdmin);-export const publicProcedure = t.procedure;diff --git a/apps/trpc-experimental/server/tags.json b/apps/trpc-experimental/server/tags.jsondeleted file mode 100644index 5d4ef05cd4..0000000000--- a/apps/trpc-experimental/server/tags.json+++ /dev/null@@ -1,1013 +0,0 @@-[- { "name": "directus-postgresql", "image": "directus/directus", "tags": ["9.22"] },- { "name": "whoogle", "image": "benbusby/whoogle-search", "tags": ["0.8.1"] },- { "name": "libretranslate", "image": "libretranslate/libretranslate", "tags": ["v1.3.8"] },- {- "name": "appsmith",- "image": "appsmith/appsmith-ce",- "tags": [- "v1.9.1",- "v1.8.15",- "v1.8.12",- "v1.8.10",- "v1.8.9",- "v1.8.7",- "v1.8.5",- "v1.8.3",- "v1.8.0",- "v1.7.13",- "v1.7.11",- "v1.7.8",- "v1.7.6",- "v1.7.4",- "v1.7.2",- "v1.7.1",- "v1.6.22",- "v1.6.20",- "v1.6.19",- "v1.6.17",- "v1.6.15",- "v1.6.13",- "v1.6.11",- "v1.6.9",- "v1.6.7",- "v1.6.5",- "v1.6.3",- "v1.6.1",- "v1.5.30",- "v1.5.28"- ]- },- {- "name": "appwrite",- "image": "appwrite/appwrite",- "tags": [- "1.2.0",- "1.1.2",- "1.1.0",- "1.0.3",- "1.0.1",- "1.0.0",- "0.15.2",- "0.15.0",- "0.14.2",- "0.14.0",- "0.13.4",- "0.13.2",- "0.13.0",- "0.12.3",- "0.12.1",- "0.12.0",- "0.11.2",- "0.11.0",- "0.10.4",- "0.10.2",- "0.10.0",- "0.9.3",- "0.9.1",- "0.8.0",- "0.7.1",- "0.6.2",- "0.6.0",- "0.5.2",- "0.5.0",- "0.3.1"- ]- },- {- "name": "fider",- "image": "getfider/fider",- "tags": [- "stable",- "master",- "main",- "dev",- "SHA_ee6e83cfaadadaa56ab76e089e01f5631af3506f",- "SHA_deb4f9b4f561d890d8a80e6872fea9a98a265cc6",- "SHA_d5cc307909d43447200483d76b5db74d8ed8349e",- "SHA_d1674476577a7fd3c88fc29f91c3f35f5bd6a260",- "SHA_d107cbb157abca6576110080736213efe0955cff",- "SHA_c9c55b2f5b33a76015241b97e03cfac1254b42a7",- "SHA_bcf451a3cb02d5c8a489fd30309249296057b084",- "SHA_bbfe419639514f949a042807addf0fde7d4de225",- "SHA_adc3afc4c7bcf96931a5f90cab65c282d860dbfd",- "SHA_ab5283ae95334f10b5041402dce79e333c472015",- "SHA_a3f4cb5ed0a4ee2d726705fc426636364aac17a1",- "SHA_a18224142bf51bc6463c3d22f45f62287902e9a6",- "SHA_8e5cff30d95963eaee2587488d351e0d658c8195",- "SHA_8cabe2817ce7ccaf2f0a9fdbb1b5d3411de87f81",- "SHA_7851f9da566132d87fa2a63004e78c3bc9c09c6c",- "SHA_6c0f2bed1754e9d579eb9575129a6e3dbc529c32",- "SHA_603508c8790d6a6fb1e852df1a58ead8e5b3ea6c",- "SHA_55efacf164a4749b50ee68ae8925e7dc9dfa3a0c",- "SHA_4bdd291ce61e5f5dfc063fa1b2d9be8c9ff1d4c4",- "SHA_3fba9cb6a9ceab0c78c6cff3220610f591f657cb",- "SHA_3d635b57606a9885babe91fe975b11429e0f2c38",- "SHA_3b794edbd9789a8aa38ecd3714bc536a675d3058",- "SHA_3570c454ad3252b690608f7bf8051737d8519f8a",- "SHA_263e2709fd145f3ea511e5557e170102899995b0",- "SHA_255c30ed012fc4c39ffc97efc1d3b00425b17c72",- "SHA_17f92b16ef790003338f0926fc8d791a9a61333c"- ]- },- {- "name": "ghost-mariadb",- "image": "bitnami/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.26.0",- "5.25.5",- "5.25.4",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.24.0",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.7",- "5.22.6",- "5.22.5",- "5.22.4",- "5.22.3",- "5.22.2",- "5.22.1",- "5.22.0",- "5.21.0",- "4.48.8"- ]- },- {- "name": "ghost-mysql",- "image": "library/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.25.5",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.4",- "5.22.1",- "5.20.0",- "5.19.3",- "5.19.0",- "5.18.0",- "5.17.2",- "5.17.1",- "5.17.0",- "5.16.2",- "5.14.2",- "5.14.1"- ]- },- {- "name": "ghost-only",- "image": "library/ghost",- "tags": [- "5.28.0",- "5.27.0",- "5.26.4",- "5.26.3",- "5.26.2",- "5.26.1",- "5.25.5",- "5.25.3",- "5.25.2",- "5.25.1",- "5.25.0",- "5.24.2",- "5.24.1",- "5.23.0",- "5.22.11",- "5.22.10",- "5.22.9",- "5.22.8",- "5.22.4",- "5.22.1",- "5.20.0",- "5.19.3",- "5.19.0",- "5.18.0",- "5.17.2",- "5.17.1",- "5.17.0",- "5.16.2",- "5.14.2",- "5.14.1"- ]- },- {- "name": "gitea",- "image": "gitea/gitea",- "tags": [- "1.18.0",- "1.17.4",- "1.17.3",- "1.17.2",- "1.17.1",- "1.17.0",- "1.16.9",- "1.16.8",- "1.16.7",- "1.16.6",- "1.16.5",- "1.16.4",- "1.16.3",- "1.16.2",- "1.16.1",- "1.16.0",- "1.15.11",- "1.15.10",- "1.15.9",- "1.15.8",- "1.15.7",- "1.15.6",- "1.15.5",- "1.15.4",- "1.15.3",- "1.15.2",- "1.15.1",- "1.15.0",- "1.14.7",- "1.14.6"- ]- },- {- "name": "glitchtip",- "image": "glitchtip/glitchtip",- "tags": [- "v3.0.2",- "v3.0.0",- "v2.0.7",- "v2.0.5",- "v2.0.2",- "v2.0.0",- "v1.12.4",- "v1.12.2",- "v1.12.0",- "v1.10.3",- "v1.10.1",- "v1.9.2",- "v1.9.0",- "v1.8.4",- "v1.8.2",- "v1.8.0",- "v1.7.1",- "v1.6.4",- "v1.6.2",- "v1.6.0",- "v1.5.3",- "v1.5.1",- "v1.4.1",- "v1.3.3",- "v1.3.1",- "v1.2.6",- "v1.2.4",- "v1.2.2",- "v1.2.0",- "v1.1.2"- ]- },- {- "name": "grafana",- "image": "grafana/grafana",- "tags": [- "9.3.2",- "9.3.1",- "9.3.0",- "9.2.8",- "9.2.7",- "9.2.6",- "9.2.5",- "9.2.4",- "9.2.3",- "9.2.2",- "9.2.1",- "9.2.0",- "9.1.8",- "9.1.7",- "9.1.6",- "9.1.5",- "9.1.4",- "9.1.3",- "9.1.2",- "9.1.1",- "9.1.0",- "9.0.9",- "9.0.8",- "9.0.7",- "9.0.6",- "9.0.5",- "9.0.4",- "9.0.3",- "9.0.2",- "9.0.1"- ]- },- {- "name": "hasura",- "image": "hasura/graphql-engine",- "tags": [- "v2.16.1",- "v2.16.0",- "v2.15.2",- "v2.14.1",- "v2.13.2",- "v2.12.1",- "v2.11.3",- "v2.10.2",- "v2.9.0",- "v2.8.4",- "v2.8.3",- "v2.8.2",- "v2.8.1",- "v2.8.0",- "v2.7.0",- "v2.6.2",- "v2.6.1",- "v2.6.0",- "v2.5.2",- "v2.5.1",- "v2.5.0",- "v2.4.0",- "v2.3.1",- "v2.3.0",- "v2.2.2",- "v2.2.1",- "v2.2.0",- "v2.1.1",- "v2.1.0",- "v2.0.10"- ]- },- {- "name": "keycloak",- "image": "quay.io/keycloak/keycloak",- "tags": [- "9.0.3",- "9.0.0",- "8.0.1",- "7.0.0",- "6.0.1",- "6.0.0",- "20.0.2",- "20.0.1",- "20.0.0",- "19.0.3",- "19.0.1",- "19.0.0",- "18.0.1",- "18.0.0",- "17.0.1",- "17.0.0",- "16.1.0",- "15.1.1",- "15.0.2",- "15.0.0",- "13.0.1",- "12.0.4",- "12.0.2",- "12.0.0",- "11.0.2",- "11.0.0",- "10.0.1"- ]- },- {- "name": "languagetool",- "image": "silviof/docker-languagetool",- "tags": ["latest", "6.0", "5.8", "5.7", "5.6", "5.5", "5.4", "5.3"]- },- {- "name": "lavalink",- "image": "fredboat/lavalink",- "tags": [- "v3.7",- "v3.6",- "v3-vda0b3a4b3916a7b1a2b79702de1143c3a6939810-SNAPSHOT",- "v3-vc92690c425390bd20f6c51643c67ba79ab85b7e0-SNAPSHOT",- "v3-vab81dcd46adf3e8a961dd57eacd2a1bde1233e6c-SNAPSHOT",- "v3-v9c9432704d6a4badfcbd06a57597c54bed8f4326-SNAPSHOT",- "v3-v3.0",- "v3-v3",- "v3-v124f8fae7dab299f9cdf1cb4c1715be455497286-SNAPSHOT",- "v3-",- "v3",- "v2.0.1",- "v2.0",- "v2",- "update-udpqueue-vb4a439d6147dbd8641ea4f265e8efc9f1e16e2d3-SNAPSHOT",- "update-udpqueue-",- "update-udpqueue",- "revert-713-fix-error-for-loading-jda-nas",- "refactor-github-actions",- "patch-update-lp",- "patch-update-github-actions",- "patch-more-configurable-github-actions",- "patch-lavaplayer-update",- "patch-lavaplayer-bump",- "patch-build-number",- "next-api-vd4db194cac7a839a3899857f1f6d7b910369309d-SNAPSHOT",- "next-api-vc2e018d5ffef54b2d17244b3d213e31723a084d6-SNAPSHOT",- "next-api-v42cb5f7c58e98d1911e87bffb35aee0a235b85f8-SNAPSHOT",- "next-api-v31a243bda80badbd7d643f68fc1f87e99639060f-SNAPSHOT",- "next-api-v17f6884434c2d70d1704b2322a951d9f07af8865-SNAPSHOT"- ]- },- {- "name": "meilisearch",- "image": "getmeili/meilisearch",- "tags": [- "v0.30.5",- "v0.30.3",- "v0.30.1",- "v0.30.0",- "v0.29.3",- "v0.29.1",- "v0.29.0",- "v0.28.1",- "v0.28.0",- "v0.27.1",- "v0.27.0",- "v0.26.1",- "v0.26.0",- "v0.25.1",- "v0.25.0",- "v0.23.1",- "v0.23.0",- "v0.21.1",- "v0.21.0",- "v0.20.0",- "v0.19.0",- "v0.18.1",- "v0.18.0",- "v0.17.0",- "v0.16.0",- "0.14.1",- "v0.14.1",- "v0.14.0",- "v0.12.0",- "v0.11.0"- ]- },- {- "name": "minio",- "image": "minio/minio",- "tags": [- "RELEASE.2023-01-06T18-11-18Z",- "RELEASE.2023-01-02T09-40-09Z",- "RELEASE.2022-12-12T19-27-27Z",- "RELEASE.2022-12-07T00-56-37Z",- "RELEASE.2022-12-02T19-19-22Z",- "RELEASE.2022-11-29T23-40-49Z",- "RELEASE.2022-11-26T22-43-32Z",- "RELEASE.2022-11-17T23-20-09Z",- "RELEASE.2022-11-11T03-44-20Z",- "RELEASE.2022-11-10T18-20-21Z",- "RELEASE.2022-11-08T05-27-07Z",- "RELEASE.2022-10-29T06-21-33Z",- "RELEASE.2022-10-24T18-35-07Z.hotfix.7906ac5be",- "RELEASE.2022-10-24T18-35-07Z",- "RELEASE.2022-10-21T22-37-48Z",- "RELEASE.2022-10-20T00-55-09Z",- "RELEASE.2022-10-15T19-57-03Z",- "RELEASE.2022-10-08T20-11-00Z",- "RELEASE.2022-10-05T14-58-27Z",- "RELEASE.2022-10-02T19-29-29Z",- "RELEASE.2022-09-25T15-44-53Z",- "RELEASE.2022-09-22T18-57-27Z",- "RELEASE.2022-09-17T00-09-45Z.hotfix.f76e5da9f",- "RELEASE.2022-09-17T00-09-45Z.fips",- "RELEASE.2022-09-07T22-25-02Z.fips",- "RELEASE.2022-09-01T23-53-36Z.fips",- "RELEASE.2022-08-26T19-53-15Z.fips",- "RELEASE.2022-08-25T07-17-05Z.fips",- "RELEASE.2022-08-22T23-53-06Z.hotfix.5fa3967bb",- "RELEASE.2022-08-22T23-53-06Z"- ]- },- {- "name": "n8n",- "image": "n8nio/n8n",- "tags": [- "0.210.1",- "0.210.0",- "0.209.4",- "0.209.3",- "0.209.2",- "0.209.1",- "0.209.0",- "0.208.1",- "0.208.0",- "0.207.1",- "0.207.0",- "0.206.1",- "0.205.0",- "0.204.0",- "0.203.1",- "0.202.1",- "0.202.0",- "0.201.0",- "0.200.1",- "0.199.0",- "0.198.1",- "0.198.0",- "0.197.1",- "0.197.0",- "0.196.0",- "0.195.5",- "0.195.4",- "0.195.3",- "0.195.2",- "0.195.1"- ]- },- {- "name": "nocodb",- "image": "nocodb/nocodb",- "tags": [- "0.100.1",- "0.99.1",- "0.98.4",- "0.98.2",- "0.98.0",- "0.96.4",- "0.96.2",- "0.96.0",- "0.92.3",- "0.91.10",- "0.91.9",- "0.91.7",- "0.91.0",- "0.90.10",- "0.90.7",- "0.90.4",- "0.90.2",- "0.90.0",- "0.84.15",- "0.84.12",- "0.84.8",- "0.84.6",- "0.84.2",- "0.84.1",- "0.83.6",- "0.83.3",- "0.83.1",- "0.82.0",- "0.81.0",- "0.11.46"- ]- },- {- "name": "openblocks",- "image": "openblocksdev/openblocks-ce",- "tags": ["latest", "heroku", "beta", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.21"]- },- {- "name": "plausibleanalytics-arm",- "image": "plausible/analytics",- "tags": [- "v1.5.1",- "v1.5.0-rc.2",- "v1.5.0-rc.1",- "v1.5.0",- "v1.5",- "v1.4.4",- "v1.4.3",- "v1.4.2",- "v1.4.1",- "v1.4.0.rc.0",- "v1.4.0-rc.0",- "v1.4.0",- "v1.4",- "v1.3.0-rc.1",- "v1.3.0-rc.0",- "v1.3.0",- "v1.3",- "v1.2.1",- "v1.2.0",- "v1.2-rc.1",- "v1.2-rc.0",- "v1.2",- "v1.1.1",- "v1.1.0",- "v1.1",- "v1.0.0",- "v1.0",- "v1",- "stable",- "master"- ]- },- {- "name": "plausibleanalytics",- "image": "plausible/analytics",- "tags": [- "v1.5.1",- "v1.5.0-rc.2",- "v1.5.0-rc.1",- "v1.5.0",- "v1.5",- "v1.4.4",- "v1.4.3",- "v1.4.2",- "v1.4.1",- "v1.4.0.rc.0",- "v1.4.0-rc.0",- "v1.4.0",- "v1.4",- "v1.3.0-rc.1",- "v1.3.0-rc.0",- "v1.3.0",- "v1.3",- "v1.2.1",- "v1.2.0",- "v1.2-rc.1",- "v1.2-rc.0",- "v1.2",- "v1.1.1",- "v1.1.0",- "v1.1",- "v1.0.0",- "v1.0",- "v1",- "stable",- "master"- ]- },- {- "name": "pocketbase",- "image": "coollabsio/pocketbase",- "tags": [- "0.8.0-arm64",- "0.8.0-amd64",- "0.8.0-aarch64",- "0.8.0",- "0.10.2-arm64",- "0.10.2-amd64",- "0.10.2-aarch64",- "0.10.2"- ]- },- {- "name": "searxng",- "image": "searxng/searxng",- "tags": [- "2023.01.09-afd71a6c",- "2023.01.09-a90ed481",- "2023.01.08-54e63839",- "2023.01.08-4e735b28",- "2023.01.08-217395b8",- "2023.01.08-0c429d70",- "2023.01.07-cb7b0916",- "2023.01.07-a98c5156",- "2023.01.07-633ba8b1",- "2023.01.07-4e355564",- "2023.01.06-b241015e",- "2023.01.06-269a72ee",- "2023.01.05-aba969cc",- "2022.12.30-b6d98be7",- "2022.12.30-647a0aa9",- "2022.12.30-17516290",- "2022.12.29-d531f893",- "2022.12.29-9b31976c",- "2022.12.29-76cd808a",- "2022.12.29-3ec58b06",- "2022.12.29-174e6851",- "2022.12.26-0d489617",- "2022.12.23-e8f72d70",- "2022.12.23-a2d506d4",- "2022.12.22-d75ae7c8",- "2022.12.16-f5bd73d9",- "2022.12.16-b9274821",- "2022.12.16-42ca37a6",- "2022.12.16-2a51c856",- "2022.12.16-0dac581c"- ]- },- {- "name": "trilium",- "image": "zadam/trilium",- "tags": [- "0.57.4",- "0.57.2",- "0.56.1",- "0.55.1",- "0.54.2",- "0.53.2",- "0.52.4",- "0.52.2",- "0.51.2",- "0.50.3",- "0.50.1",- "0.49.5",- "0.49.3",- "0.48.9",- "0.48.7",- "0.48.4",- "0.48.2",- "0.47.8",- "0.47.6",- "0.47.4",- "0.47.2",- "0.46.7",- "0.46.5",- "0.45.10",- "0.45.9",- "0.45.7",- "0.45.5",- "0.45.3",- "0.44.8",- "0.44.6"- ]- },- {- "name": "umami-postgresql",- "image": "ghcr.io/umami-software/umami",- "tags": [- "postgresql-v1.39.5",- "postgresql-v1.39.4",- "postgresql-v1.39.3",- "postgresql-v1.39.2",- "postgresql-v1.39.1",- "postgresql-v1.39.0",- "postgresql-v1.38.0",- "postgresql-v1.37.0",- "postgresql-v1.36.1",- "postgresql-v1.36.0",- "postgresql-v1.35.0",- "postgresql-v1.34.0",- "postgresql-v1.33.3",- "postgresql-latest",- "mysql-v1.39.5",- "mysql-v1.39.4",- "mysql-v1.39.3",- "mysql-v1.39.2",- "mysql-v1.39.1",- "mysql-v1.39.0",- "mysql-v1.38.0",- "mysql-v1.37.0",- "mysql-v1.36.1",- "mysql-v1.36.0",- "mysql-v1.35.0",- "mysql-v1.34.0",- "mysql-v1.33.3",- "mysql-latest"- ]- },- {- "name": "umami",- "image": "ghcr.io/umami-software/umami",- "tags": [- "postgresql-v1.39.5",- "postgresql-v1.39.4",- "postgresql-v1.39.3",- "postgresql-v1.39.2",- "postgresql-v1.39.1",- "postgresql-v1.39.0",- "postgresql-v1.38.0",- "postgresql-v1.37.0",- "postgresql-v1.36.1",- "postgresql-v1.36.0",- "postgresql-v1.35.0",- "postgresql-v1.34.0",- "postgresql-v1.33.3",- "postgresql-latest",- "mysql-v1.39.5",- "mysql-v1.39.4",- "mysql-v1.39.3",- "mysql-v1.39.2",- "mysql-v1.39.1",- "mysql-v1.39.0",- "mysql-v1.38.0",- "mysql-v1.37.0",- "mysql-v1.36.1",- "mysql-v1.36.0",- "mysql-v1.35.0",- "mysql-v1.34.0",- "mysql-v1.33.3",- "mysql-latest"- ]- },- {- "name": "uptimekuma",- "image": "louislam/uptime-kuma",- "tags": [- "1.19.4",- "1.19.3",- "1.19.2",- "1.19.1",- "1.19.0",- "1.18.5",- "1.18.4",- "1.18.3",- "1.18.2",- "1.18.1",- "1.18.0",- "1.17.1",- "1.17.0",- "1.16.1",- "1.16.0",- "1.15.1",- "1.15.0",- "1.14.1",- "1.14.0",- "1.13.2",- "1.13.1",- "1.13.0",- "1.12.1",- "1.11.4",- "1.11.3",- "1.11.2",- "1.11.1",- "1.11.0",- "1.10.2",- "1.10.1"- ]- },- {- "name": "vaultwarden",- "image": "vaultwarden/server",- "tags": [- "1.27.0",- "1.26.0",- "1.25.2",- "1.25.1",- "1.25.0",- "1.24.0",- "1.23.1",- "1.23.0",- "1.22.2",- "1.22.1",- "1.22.0",- "1.21.0"- ]- },- {- "name": "vscodeserver",- "image": "codercom/code-server",- "tags": [- "4.9.1",- "4.9.0",- "4.8.3",- "4.8.2",- "4.8.1",- "4.8.0",- "4.7.0",- "4.6.0",- "4.5.1",- "4.4.0",- "4.2.0",- "4.0.2",- "3.11.1",- "3.10.2",- "3.10.0",- "3.9.3",- "3.9.1",- "3.8.1",- "3.7.4",- "3.7.2",- "3.7.0",- "3.6.1",- "3.5.0",- "3.4.0",- "3.3.0",- "3.2.0",- "3.1.1",- "3.1.0",- "3.0.2",- "3.0.0"- ]- },- {- "name": "weblate",- "image": "weblate/weblate",- "tags": [- "latest",- "edge-2023-01-10-1df5c9dd96a6d8650f6881942fecbe33e1884295",- "edge-2023-01-09-7029b7b6c630be7cdac07d1629573dd2b81bc05f",- "edge-2023-01-09-4b05a878aa25b2c544a4e77027769b5934ec561f",- "edge-2023-01-07-df50259ff209720b0fd3c983bd7a5d01b564149c",- "edge-2023-01-07-719b3034de0ed369cd63554ea652f11142b9a540",- "edge-2023-01-07-14d4aec6cd8e1e6e0b7c1dc3a9cf4a74ccfc5e37",- "edge-2023-01-07-00f2d980c4388d799ba0df3a27c10bf941b7edd3",- "edge-2023-01-04-e92fe933b22e36e92f6de57a0ecb16752852d815",- "edge-2023-01-04-4c413c6ba33c39a6b7f3238f255bc09c69e96345",- "edge-2023-01-02-fd57652cce9dd2a12c7ff1dc644f5a969e57ea76",- "edge-2023-01-02-738d270784bca0cfaaef59e6cfb8c307f68a9939",- "edge-2023-01-02-3f6a7a183bbda4dc2e8d7e468370adc6f9e50527",- "edge-2023-01-01-5580a7a4755bf71403c85999fb4dff2078293403",- "edge-2022-12-29-8f422f23930880809a26d1207f9e43315ef54ad2",- "edge-2022-12-28-375fd99195711641246ccd09e3ce394d6928eaef",- "edge-2022-12-25-358c8ce6071f2781ae027bbc3a46d906ce08d9e7",- "edge-2022-12-24-3e1503494ce06ad6ff32f02db1a7d59224e5c860",- "edge-2022-12-21-cac4b09f943fe97700e3a33b7caf23277d2fcc11",- "edge-2022-12-21-3a8dd1bf66a7295f3512346bc1c97d55c5649dcf",- "edge-2022-12-16-e93caa3b014543b716b946f2c7fbf4a8f9be6099",- "edge-2022-12-16-318a467d2e529a081e9ea9dbad993c1736ff1a00",- "edge-2022-12-16-1af41ec4bd3838f967d88b68dec8195419e01e6f",- "edge-2022-12-16-02e9d020b01d004655c3af20c68a30f6c4645c1a",- "edge-2022-12-15-a6af1384a0831b17c43da7262f80d0cfbc766835",- "edge-2022-12-15-a1c9f77b301a9e23fc05ef2adc4694cceb632c25",- "edge-2022-12-15-1305f7115ef79b75e638b097772680d9cadbd4d0",- "edge-2022-12-14-b400145f05687e647bd4c8192be99f7f04373fb5",- "edge-2022-12-12-c0db193a3baacd107c5f2c28c6e0af89c3d5afa3",- "edge-2022-12-09-647d40c67cf405870ba71a01584a42cfaec5915f"- ]- },- {- "name": "wordpress-only",- "image": "library/wordpress",- "tags": [- "php8.2-fpm-alpine",- "php8.2-fpm",- "php8.2-apache",- "php8.2",- "php8.1-fpm-alpine",- "php8.1-fpm",- "php8.1-apache",- "php8.1",- "php8.0-fpm-alpine",- "php8.0-fpm",- "php8.0-apache",- "php8.0",- "php7.4-fpm-alpine",- "php7.4-fpm",- "php7.4-apache",- "php7.4",- "php7.3-fpm-alpine",- "php7.3-fpm",- "php7.3-apache",- "php7.3",- "php7.2-fpm-alpine",- "php7.2-fpm",- "php7.2-apache",- "php7.2",- "php7.1-fpm-alpine",- "php7.1-fpm",- "php7.1-apache",- "php7.1",- "php7.0-fpm-alpine",- "php7.0-fpm"- ]- },- {- "name": "wordpress",- "image": "library/wordpress",- "tags": [- "php8.2-fpm-alpine",- "php8.2-fpm",- "php8.2-apache",- "php8.2",- "php8.1-fpm-alpine",- "php8.1-fpm",- "php8.1-apache",- "php8.1",- "php8.0-fpm-alpine",- "php8.0-fpm",- "php8.0-apache",- "php8.0",- "php7.4-fpm-alpine",- "php7.4-fpm",- "php7.4-apache",- "php7.4",- "php7.3-fpm-alpine",- "php7.3-fpm",- "php7.3-apache",- "php7.3",- "php7.2-fpm-alpine",- "php7.2-fpm",- "php7.2-apache",- "php7.2",- "php7.1-fpm-alpine",- "php7.1-fpm",- "php7.1-apache",- "php7.1",- "php7.0-fpm-alpine",- "php7.0-fpm"- ]- }-]diff --git a/apps/trpc-experimental/server/templates.json b/apps/trpc-experimental/server/templates.jsondeleted file mode 100644index fc378ecb03..0000000000--- a/apps/trpc-experimental/server/templates.json+++ /dev/null@@ -1 +0,0 @@-[{"templateVersion":"1.0.0","defaultVersion":"9.22","documentation":"https://docs.directus.io/getting-started/introduction.html","type":"directus-postgresql","name":"Directus","subname":"(PostgreSQL)","description":"Directus is a free and open-source headless CMS framework for managing custom SQL-based databases.","labels":["CMS","headless"],"services":{"$$id":{"name":"Directus","depends_on":["$$id-postgresql","$$id-redis"],"image":"directus/directus:$$core_version","volumes":["$$id-uploads:/directus/uploads","$$id-database:/directus/database","$$id-extensions:/directus/extensions"],"environment":["KEY=$$secret_key","SECRET=$$secret_secret","DB_CLIENT=pg","DB_CONNECTION_STRING=$$secret_db_connection_string","CACHE_ENABLED=true","CACHE_STORE=redis","CACHE_REDIS=$$secret_cache_redis","ADMIN_EMAIL=$$config_admin_email","ADMIN_PASSWORD=$$secret_admin_password","CACHE_AUTO_PURGE=true","PUBLIC_URL=$$config_public_url"],"ports":["8055"]},"$$id-postgresql":{"name":"Directus PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Directus Redis","depends_on":[],"image":"redis:7.0.4-alpine","command":"--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples 5","volumes":["$$id-redis:/data"],"environment":[]}},"variables":[{"id":"$$config_public_url","name":"PUBLIC_URL","label":"Public URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_db_connection_string","name":"DB_CONNECTION_STRING","label":"Directus Database Url","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"Database","defaultValue":"directus","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$secret_cache_redis","name":"CACHE_REDIS","label":"Redis Url","defaultValue":"redis://$$id-redis:6379","description":""},{"id":"$$config_admin_email","name":"ADMIN_EMAIL","label":"Initial Admin Email","defaultValue":"[email protected]","description":"The email address of the first user that is automatically created. You can change it later in Directus."},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"The password of the first user that is automatically created.","showOnConfiguration":true},{"id":"$$secret_key","name":"KEY","label":"Key","defaultValue":"$$generate_password","description":"Unique identifier for the project.","showOnConfiguration":true},{"id":"$$secret_secret","name":"SECRET","label":"Secret","defaultValue":"$$generate_password","description":"Secret string for the project.","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"v1.3.8","documentation":"https://github.com/LibreTranslate/LibreTranslate","description":"Free and Open Source Machine Translation API. 100% self-hosted, offline capable and easy to setup.","type":"libretranslate","name":"Libretranslate","labels":["translator","argos","python","libretranslate"],"services":{"$$id":{"name":"Libretranslate","image":"libretranslate/libretranslate:$$core_version","environment":["LT_HOST=0.0.0.0","LT_SUGGESTIONS=true","LT_CHAR_LIMIT=$$config_lt_char_limit","LT_REQ_LIMIT=$$config_lt_req_limit","LT_BATCH_LIMIT=$$config_lt_batch_limit","LT_GA_ID=$$config_lt_ga_id","LT_DISABLE_WEB_UI=$$config_lt_web_ui"],"volumes":["$$id-libretranslate:/libretranslate"],"ports":["5000"]}},"variables":[{"id":"$$config_lt_char_limit","name":"LT_CHAR_LIMIT","label":"Char limit","defaultValue":"5000","description":"Set character limit."},{"id":"$$config_lt_req_limit","name":"LT_REQ_LIMIT","label":"Request limit","defaultValue":"5000","description":"Set maximum number of requests per minute per client."},{"id":"$$config_lt_batch_limit","name":"LT_BATCH_LIMIT","label":"Batch Limit","defaultValue":"5000","description":"Set maximum number of texts to translate in a batch request."},{"id":"$$config_lt_ga_id","name":"LT_GA_ID","label":"Google Analytics ID","defaultValue":"","description":"Enable Google Analytics on the API client page by providing an ID"},{"id":"$$config_lt_web_ui","name":"LT_DISABLE_WEB_UI","label":"Web UI","defaultValue":"false","description":"Disable or enable web ui. True or false."}]},{"templateVersion":"1.0.0","defaultVersion":"0.8.1","documentation":"https://github.com/benbusby/whoogle-search","type":"whoogle","name":"Whoogle Search","description":"A self-hosted, ad-free, privacy-respecting metasearch engine","labels":["search","google"],"services":{"$$id":{"name":"Whoogle Search","documentation":"https://github.com/benbusby/whoogle-search","depends_on":[],"image":"benbusby/whoogle-search:$$core_version","cap_drop":["ALL"],"environment":["WHOOGLE_USER=$$config_whoogle_username","WHOOGLE_PASS=$$secret_whoogle_password","WHOOGLE_CONFIG_PREFERENCES_KEY=$$secret_whoogle_preferences_key"],"ulimits":{"nofile":{"soft":262144,"hard":262144}},"ports":["5000"]}},"variables":[{"id":"$$config_whoogle_username","name":"WHOOGLE_USER","label":"Whoogle User","defaultValue":"$$generate_username","description":"Username to log into Whoogle"},{"id":"$$secret_whoogle_password","name":"WHOOGLE_PASSWORD","label":"Whoogle Password","defaultValue":"$$generate_password","description":"Password to log into Whoogle","showOnConfiguration":true},{"id":"$$secret_whoogle_preferences_key","name":"WHOOGLE_CONFIG_PREFERENCES_KEY","label":"Whoogle preferences key","defaultValue":"$$generate_password","description":"password to encrypt preferences"}]},{"templateVersion":"1.0.0","defaultVersion":"1.1.3","documentation":"https://docs.openblocks.dev/","type":"openblocks","name":"Openblocks","description":"The Open Source Retool Alternative","services":{"$$id":{"image":"openblocksdev/openblocks-ce:$$core_version","volumes":["$$id-stacks-data:/openblocks-stacks"],"ports":["3000"]}}},{"templateVersion":"1.0.0","defaultVersion":"0.10.2","documentation":"https://pocketbase.io/docs/","type":"pocketbase","name":"Pocketbase","description":"Open Source realtime backend in 1 file","services":{"$$id":{"image":"coollabsio/pocketbase:$$core_version","volumes":["$$id-data:/app/pb_data"],"ports":["8080"]}}},{"templateVersion":"1.0.0","defaultVersion":"v1.5.1","documentation":"https://plausible.io/doc/","type":"plausibleanalytics-arm","name":"Plausible Analytics (ARM)","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DB=$$config_postgres_db"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Registration","defaultValue":"true","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"1.17","documentation":"https://docs.gitea.io","type":"gitea","name":"Gitea","description":"Gitea is a community managed lightweight code hosting solution written in Go.","labels":["storage","git"],"services":{"$$id":{"name":"Gitea","documentation":"https://docs.gitea.io","image":"gitea/gitea:$$core_version","volumes":["$$id-data:/data","/etc/timezone:/etc/timezone:ro","/etc/localtime:/etc/localtime:ro"],"environment":["USER_UID=1000","USER_GID=1000","DOMAIN=$$config_domain","SSH_DOMAIN=$$config_ssh_domain","ROOT_URL=$$config_root_url","SECRET_KEY=$$secret_secret_key","INTERNAL_TOKEN=$$secret_internal_token","SSH_PORT=22","START_SSH_SERVER=$$config_start_ssh_server"],"ports":["3000","22"],"proxy":[{"port":"22","hostPort":"$$config_hostport_ssh"}]}},"variables":[{"id":"$$config_hostport_ssh","name":"SSH_PORT","label":"SSH Port","defaultValue":"8022","description":"","required":true},{"id":"$$config_domain","name":"DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ssh_domain","name":"SSH_DOMAIN","label":"SSH Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_start_ssh_server","name":"START_SSH_SERVER","label":"Start SSH Server","defaultValue":"true","description":""},{"id":"$$config_root_url","name":"ROOT_URL","label":"Root URL of Gitea","defaultValue":"$$generate_fqdn_slash","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(32)","description":""},{"id":"$$secret_internal_token","name":"INTERNAL_TOKEN","label":"Internal JWT Token","defaultValue":"$$generate_token","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"20.0","documentation":"https://www.keycloak.org/documentation","type":"keycloak","name":"Keycloak","description":"Keycloak provides user federation, strong authentication, user management, fine-grained authorization, and more.","labels":["authentication","authorization","oidconnect","saml2"],"services":{"$$id":{"name":"Keycloak","command":"start --db=postgres --features=token-exchange --import-realm","depends_on":["$$id-postgresql"],"image":"quay.io/keycloak/keycloak:$$core_version","volumes":["$$id-import:/opt/keycloak/data/import"],"environment":["KC_HEALTH_ENABLED=true","KC_PROXY=edge","KC_DB=postgres","KC_HOSTNAME=$$config_keycloak_domain","KEYCLOAK_ADMIN=$$config_admin_user","KEYCLOAK_ADMIN_PASSWORD=$$secret_keycloak_admin_password","KC_DB_PASSWORD=$$secret_postgres_password","KC_DB_USERNAME=$$config_postgres_user","KC_DB_URL=$$secret_keycloak_database_url"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_keycloak_domain","name":"KEYCLOAK_DOMAIN","label":"Keycloak Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_keycloak_database_url","name":"KEYCLOAK_DATABASE_URL","label":"Keycloak Database Url","defaultValue":"jdbc:postgresql://$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$config_admin_user","name":"KEYCLOAK_ADMIN","label":"Keycloak Admin User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_keycloak_admin_password","name":"KEYCLOAK_ADMIN_PASSWORD","label":"Keycloak Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"keycloak","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v3.7","documentation":"https://github.com/freyacodes/Lavalink","description":"Standalone audio sending node based on Lavaplayer.","type":"lavalink","name":"Lavalink","labels":["discord","discord bot","audio","lavalink","jda"],"services":{"$$id":{"name":"Lavalink","image":"fredboat/lavalink:$$core_version","environment":[],"volumes":["$$id-lavalink:/lavalink"],"ports":["$$config_port"],"files":[{"location":"/opt/Lavalink/application.yml","content":"server:\n port: 2333\n address: 0.0.0.0\nlavalink:\n server:\n password: \"$$secret_password\"\n sources:\n youtube: true\n bandcamp: true\n soundcloud: true\n twitch: true\n vimeo: true\n http: true\n local: false\n\nlogging:\n file:\n path: ./logs/\n\n level:\n root: INFO\n lavalink: INFO\n\n logback:\n rollingpolicy:\n max-file-size: 1GB\n max-history: 30"}]}},"variables":[{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"v1.8.9","documentation":"https://docs.appsmith.com/getting-started/setup/instance-configuration/","type":"appsmith","name":"Appsmith","description":"Fastest way to build internal apps over any database or API.","services":{"$$id":{"image":"appsmith/appsmith-ce:$$core_version","environment":["APPSMITH_MAIL_ENABLED=$$config_appsmith_mail_enabled","APPSMITH_DISABLE_TELEMETRY=$$config_appsmith_disable_telemetry","APPSMITH_DISABLE_INTERCOM=$$config_appsmith_disable_intercom"],"volumes":["$$id-stacks-data:/appsmith-stacks"],"ports":["80"]}},"variables":[{"id":"$$config_appsmith_mail_enabled","name":"APPSMITH_MAIL_ENABLED","label":"Enable Mail","defaultValue":"false","description":""},{"id":"$$config_appsmith_disable_telemetry","name":"APPSMITH_DISABLE_TELEMETRY","label":"Disable Telemetry","defaultValue":"true","description":""},{"id":"$$config_appsmith_disable_intercom","name":"APPSMITH_DISABLE_INTERCOM","label":"Disable Intercom","defaultValue":"true","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.57.4","documentation":"https://hub.docker.com/r/zadam/trilium","description":"A hierarchical note taking application with focus on building large personal knowledge bases.","labels":["personal","knowledge","notes","wiki"],"type":"trilium","name":"Trilium Notes","services":{"$$id":{"image":"zadam/trilium:$$core_version","environment":[],"volumes":["$$id-trilium:/home/node/trilium-data"],"ports":["8080"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.18.5","documentation":"https://hub.docker.com/r/louislam/uptime-kuma","description":"A free & fancy self-hosted monitoring tool.","labels":["uptime"],"type":"uptimekuma","name":"UptimeKuma","services":{"$$id":{"image":"louislam/uptime-kuma:$$core_version","environment":[],"volumes":["$$id-uptimekuma:/app/data"],"ports":["3001"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"5.8","documentation":"https://hub.docker.com/r/silviof/docker-languagetool","description":"A multilingual grammar, style and spell checker.","type":"languagetool","name":"LanguageTool","services":{"$$id":{"image":"silviof/docker-languagetool:$$core_version","environment":[],"volumes":["$$id-ngrams:/ngrams"],"ports":["8010"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.26.0","documentation":"https://hub.docker.com/r/vaultwarden/server","description":"Bitwarden compatible server written in Rust.","type":"vaultwarden","name":"VaultWarden","labels":["bitwarden","password manager"],"services":{"$$id":{"image":"vaultwarden/server:$$core_version","environment":[],"volumes":["$$id-data:/data"],"ports":["80"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"9.3.1","documentation":"https://hub.docker.com/r/grafana/grafana","type":"grafana","name":"Grafana","description":"Grafana allows you to query, visualize, alert on and understand your metrics.","labels":["monitoring","metrics","dashboard"],"services":{"$$id":{"image":"grafana/grafana:$$core_version","environment":[],"volumes":["$$id-config:/etc/grafana","$$id-grafana:/var/lib/grafana"],"ports":["3000"]}},"variables":[]},{"templateVersion":"1.0.0","defaultVersion":"1.1.2","documentation":"https://appwrite.io/docs","type":"appwrite","name":"Appwrite","description":"Secure Backend Server for Web, Mobile & Flutter Developers.","labels":["serverless","backend","storage","api"],"services":{"$$id":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_LOCALE=$$config__app_locale","_APP_CONSOLE_WHITELIST_ROOT=$$config__app_console_whitelist_root","_APP_CONSOLE_WHITELIST_EMAILS=$$config__app_console_whitelist_emails","_APP_CONSOLE_WHITELIST_IPS=$$config__app_console_whitelist_ips","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_SYSTEM_RESPONSE_FORMAT=$$config__app_system_response_format","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPTIONS_FORCE_HTTPS=$$config__app_options_force_https","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_STORAGE_LIMIT=$$config__app_storage_limit","_APP_STORAGE_PREVIEW_LIMIT=$$config__app_storage_preview_limit","_APP_STORAGE_ANTIVIRUS=$$config__app_storage_antivirus_enabled","_APP_STORAGE_ANTIVIRUS_HOST=$$config__app_storage_antivirus_host","_APP_STORAGE_ANTIVIRUS_PORT=$$config__app_storage_antivirus_port","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_FUNCTIONS_SIZE_LIMIT=$$config__app_functions_size_limit","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STATSD_HOST=$$config__app_statsd_host","_APP_STATSD_PORT=$$config__app_statsd_port","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-config:/storage/config","$$id-certificates:/storage/certificates","$$id-functions:/storage/functions"],"ports":["80"],"proxy":[{"port":"80"}]},"$$id-executor":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_FUNCTIONS_BUILD_TIMEOUT=$$config__app_functions_build_timeout","_APP_FUNCTIONS_CONTAINERS=$$config__app_functions_containers","_APP_FUNCTIONS_RUNTIMES=$$config__app_functions_runtimes","_APP_FUNCTIONS_CPUS=$$config__app_functions_cpus","_APP_FUNCTIONS_MEMORY=$$config__app_functions_memory_allocated","_APP_FUNCTIONS_MEMORY_SWAP=$$config__app_functions_memory_swap","_APP_FUNCTIONS_INACTIVE_THRESHOLD=$$config__app_functions_inactive_threshold","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-functions:/storage/functions","$$id-builds:/storage/builds","/var/run/docker.sock:/var/run/docker.sock","/tmp:/tmp:rw"],"entrypoint":"executor"},"$$id-influxdb":{"image":"appwrite/influxdb:1.5.0","environment":[],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-maintenance":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_MAINTENANCE_INTERVAL=$$config__app_maintenance_interval","_APP_MAINTENANCE_RETENTION_EXECUTION=$$config__app_maintenance_retention_execution","_APP_MAINTENANCE_RETENTION_CACHE=$$config__app_maintenance_retention_cache","_APP_MAINTENANCE_RETENTION_ABUSE=$$config__app_maintenance_retention_abuse","_APP_MAINTENANCE_RETENTION_AUDIT=$$config__app_maintenance_retention_audit","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"maintenance"},"$$id-mariadb":{"image":"mariadb:10.7","command":"--innodb-flush-method fsync","environment":["MARIADB_ROOT_PASSWORD=$$secret__app_db_root_pass","MARIADB_DATABASE=$$config__app_db_schema","MARIADB_USER=$$config__app_db_user","MARIADB_PASSWORD=$$secret__app_db_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-mariadb:/var/lib/mysql"]},"$$id-realtime":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_WORKER_PER_CORE=$$config__app_worker_per_core","_APP_OPTIONS_ABUSE=$$config__app_options_abuse","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_USAGE_STATS=$$config__app_usage_stats","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"realtime","proxy":[{"port":"80","pathPrefix":"/v1/realtime"}]},"$$id-redis":{"image":"redis:7.0.4-alpine","command":"--maxmemory 512mb --maxmemory-policy allkeys-lru --maxmemory-samples 5","environment":[],"volumes":["$$id-redis:/data"]},"$$id-schedule":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"schedule"},"$$id-telegraf":{"image":"appwrite/telegraf:1.4.0","environment":["_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-influxdb:/var/lib/influxdb"]},"$$id-usage-database":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type database"},"$$id-usage":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_INFLUXDB_HOST=$$config__app_influxdb_host","_APP_INFLUXDB_PORT=$$config__app_influxdb_port","_APP_USAGE_TIMESERIES_INTERVAL=$$config__app_usage_timeseries_interval","_APP_USAGE_DATABASE_INTERVAL=$$config__app_usage_database_interval","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"usage --type timeseries"},"$$id-worker-audits":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-audits"},"$$id-worker-builds":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-builds"},"$$id-worker-certificates":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_DOMAIN=$$config__app_domain","_APP_DOMAIN_TARGET=$$config__app_domain_target","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-config:/storage/config","$$id-certificates:/storage/certificates"],"entrypoint":"worker-certificates"},"$$id-worker-databases":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-databases"},"$$id-worker-deletes":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_STORAGE_DEVICE=$$config__app_storage_device","_APP_STORAGE_S3_ACCESS_KEY=$$secret__app_storage_s3_access_key","_APP_STORAGE_S3_SECRET=$$secret__app_storage_s3_secret","_APP_STORAGE_S3_REGION=$$config__app_storage_s3_region","_APP_STORAGE_S3_BUCKET=$$config__app_storage_s3_bucket","_APP_STORAGE_DO_SPACES_ACCESS_KEY=$$secret__app_storage_do_spaces_access_key","_APP_STORAGE_DO_SPACES_SECRET=$$secret__app_storage_do_spaces_secret","_APP_STORAGE_DO_SPACES_REGION=$$config__app_storage_do_spaces_region","_APP_STORAGE_DO_SPACES_BUCKET=$$config__app_storage_do_spaces_bucket","_APP_STORAGE_BACKBLAZE_ACCESS_KEY=$$secret__app_storage_backblaze_access_key","_APP_STORAGE_BACKBLAZE_SECRET=$$secret__app_storage_backblaze_secret","_APP_STORAGE_BACKBLAZE_REGION=$$config__app_storage_backblaze_region","_APP_STORAGE_BACKBLAZE_BUCKET=$$config__app_storage_backblaze_bucket","_APP_STORAGE_LINODE_ACCESS_KEY=$$secret__app_storage_linode_access_key","_APP_STORAGE_LINODE_SECRET=$$secret__app_storage_linode_secret","_APP_STORAGE_LINODE_REGION=$$config__app_storage_linode_region","_APP_STORAGE_LINODE_BUCKET=$$config__app_storage_linode_bucket","_APP_STORAGE_WASABI_ACCESS_KEY=$$secret__app_storage_wasabi_access_key","_APP_STORAGE_WASABI_SECRET=$$secret__app_storage_wasabi_secret","_APP_STORAGE_WASABI_REGION=$$config__app_storage_wasabi_region","_APP_STORAGE_WASABI_BUCKET=$$config__app_storage_wasabi_bucket","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":["$$id-uploads:/storage/uploads","$$id-cache:/storage/cache","$$id-functions:/storage/functions","$$id-builds:/storage/builds","$$id-certificates:/storage/certificates"],"entrypoint":"worker-deletes"},"$$id-worker-functions":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_DB_HOST=$$config__app_db_host","_APP_DB_PORT=$$config__app_db_port","_APP_DB_SCHEMA=$$config__app_db_schema","_APP_DB_USER=$$config__app_db_user","_APP_DB_PASS=$$secret__app_db_pass","_APP_FUNCTIONS_TIMEOUT=$$config__app_functions_timeout","_APP_EXECUTOR_SECRET=$$secret__app_executor_secret","_APP_EXECUTOR_HOST=$$config__app_executor_host","_APP_USAGE_STATS=$$config__app_usage_stats","DOCKERHUB_PULL_USERNAME=$$config_dockerhub_pull_username","DOCKERHUB_PULL_PASSWORD=$$secret_dockerhub_pull_password","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-functions"},"$$id-worker-mails":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_EMAIL_NAME=$$config__app_system_email_name","_APP_SYSTEM_EMAIL_ADDRESS=$$config__app_system_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMTP_HOST=$$config__app_smtp_host","_APP_SMTP_PORT=$$config__app_smtp_port","_APP_SMTP_SECURE=$$config__app_smtp_secure","_APP_SMTP_USERNAME=$$config__app_smtp_username","_APP_SMTP_PASSWORD=$$secret__app_smtp_password","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-mails"},"$$id-worker-messaging":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_SMS_PROVIDER=$$config__app_sms_provider","_APP_SMS_FROM=$$config__app_sms_from","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-messaging"},"$$id-worker-webhooks":{"image":"appwrite/appwrite:$$core_version","environment":["_APP_ENV=$$config__app_env","_APP_OPENSSL_KEY_V1=$$secret__app_openssl_key_v1","_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=$$config__app_system_security_email_address","_APP_REDIS_HOST=$$config__app_redis_host","_APP_REDIS_PORT=$$config__app_redis_port","_APP_REDIS_USER=$$config__app_redis_user","_APP_REDIS_PASS=$$secret__app_redis_pass","_APP_LOGGING_PROVIDER=$$config__app_logging_provider","_APP_LOGGING_CONFIG=$$config__app_logging_config","OPEN_RUNTIMES_NETWORK=$$config_open_runtimes_network"],"volumes":[],"entrypoint":"worker-webhooks"}},"variables":[{"id":"$$config__app_influxdb_host","name":"_APP_INFLUXDB_HOST","label":"InfluxDB | _APP_INFLUXDB_HOST","defaultValue":"$$id-influxdb","description":""},{"id":"$$config__app_influxdb_port","name":"_APP_INFLUXDB_PORT","label":"InfluxDB | _APP_INFLUXDB_PORT","defaultValue":"8086","description":"InfluxDB server TCP port."},{"id":"$$config__app_env","name":"_APP_ENV","label":"General | _APP_ENV","defaultValue":"production","description":"Set your server running environment."},{"id":"$$config__app_worker_per_core","name":"_APP_WORKER_PER_CORE","label":"General | _APP_WORKER_PER_CORE","defaultValue":"6","description":"Internal Worker per core for the API, Realtime and Executor containers. Can be configured to optimize performance."},{"id":"$$config__app_locale","name":"_APP_LOCALE","label":"General | _APP_LOCALE","defaultValue":"en","description":"Set your Appwrite's locale. By default, the locale is set to 'en'."},{"id":"$$config__app_console_whitelist_root","name":"_APP_CONSOLE_WHITELIST_ROOT","label":"General | _APP_CONSOLE_WHITELIST_ROOT","defaultValue":"enabled","description":"This option allows you to disable the creation of new users on the Appwrite console. When enabled only 1 user will be able to use the registration form. New users can be added by inviting them to your project. By default this option is enabled."},{"id":"$$config__app_console_whitelist_emails","name":"_APP_CONSOLE_WHITELIST_EMAILS","label":"General | _APP_CONSOLE_WHITELIST_EMAILS","defaultValue":"","description":"This option allows you to limit creation of new users on the Appwrite console. This option is very useful for small teams or sole developers. To enable it, pass a list of allowed email addresses separated by a comma."},{"id":"$$config__app_console_whitelist_ips","name":"_APP_CONSOLE_WHITELIST_IPS","label":"General | _APP_CONSOLE_WHITELIST_IPS","defaultValue":"","description":"This last option allows you to limit creation of users in Appwrite console for users sharing the same set of IP addresses. This option is very useful for team working with a VPN service or a company IP.\\n\\nTo enable/activate this option, pass a list of allowed IP addresses separated by a comma."},{"id":"$$config__app_system_email_name","name":"_APP_SYSTEM_EMAIL_NAME","label":"General | _APP_SYSTEM_EMAIL_NAME","defaultValue":"Appwrite","description":"This is the sender name value that will appear on email messages sent to developers from the Appwrite console. You can use url encoded strings for spaces and special chars."},{"id":"$$config__app_system_email_address","name":"_APP_SYSTEM_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the sender email address that will appear on email messages sent to developers from the Appwrite console. You should choose an email address that is allowed to be used from your SMTP server to avoid the server email ending in the users' SPAM folders."},{"id":"$$config__app_system_security_email_address","name":"_APP_SYSTEM_SECURITY_EMAIL_ADDRESS","label":"General | _APP_SYSTEM_SECURITY_EMAIL_ADDRESS","defaultValue":"[email protected]","description":"This is the email address used to issue SSL certificates for custom domains or the user agent in your webhooks payload."},{"id":"$$config__app_system_response_format","name":"_APP_SYSTEM_RESPONSE_FORMAT","label":"General | _APP_SYSTEM_RESPONSE_FORMAT","defaultValue":"","description":"Use this environment variable to set the default Appwrite HTTP response format to support an older version of Appwrite. This option is useful to overcome breaking changes between versions. You can also use the X-Appwrite-Response-Format HTTP request header to overwrite the response for a specific request. This variable accepts any valid Appwrite version. To use the current version format, leave the value of the variable empty."},{"id":"$$config__app_options_abuse","name":"_APP_OPTIONS_ABUSE","label":"General | _APP_OPTIONS_ABUSE","defaultValue":"enabled","description":"Allows you to disable abuse checks and API rate limiting. By default, set to 'enabled'. To cancel the abuse checking, set to 'disabled'. It is not recommended to disable this check-in a production environment."},{"id":"$$config__app_options_force_https","name":"_APP_OPTIONS_FORCE_HTTPS","label":"General | _APP_OPTIONS_FORCE_HTTPS","defaultValue":"disabled","description":"Allows you to force HTTPS connection to your API. This feature redirects any HTTP call to HTTPS and adds the 'Strict-Transport-Security' header to all HTTP responses."},{"id":"$$secret__app_openssl_key_v1","name":"_APP_OPENSSL_KEY_V1","label":"General | _APP_OPENSSL_KEY_V1","defaultValue":"$$generate_hex(256)","description":"This is your server private secret key that is used to encrypt all sensitive data on your server. Appwrite server encrypts all secret data on your server like webhooks, HTTP passwords, user sessions, and storage files. Keep it a secret and have a backup for it."},{"id":"$$config__app_domain","name":"_APP_DOMAIN","label":"General | _APP_DOMAIN","defaultValue":"$$generate_domain","description":"Your Appwrite domain address. When setting a public suffix domain, Appwrite will attempt to issue a valid SSL certificate automatically. When used with a dev domain, Appwrite will assign a self-signed SSL certificate. The default value is 'localhost'."},{"id":"$$config__app_domain_target","name":"_APP_DOMAIN_TARGET","label":"General | _APP_DOMAIN_TARGET","defaultValue":"$$generate_fqdn","description":"A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite '_APP_DOMAIN' variable. The default value is 'localhost'."},{"id":"$$config__app_redis_host","name":"_APP_REDIS_HOST","label":"Redis | _APP_REDIS_HOST","defaultValue":"$$id-redis","description":""},{"id":"$$config__app_redis_port","name":"_APP_REDIS_PORT","label":"Redis | _APP_REDIS_PORT","defaultValue":"6379","description":"Redis server TCP port."},{"id":"$$config__app_redis_user","name":"_APP_REDIS_USER","label":"Redis | _APP_REDIS_USER","defaultValue":"","description":"Redis server user. This is an optional variable. Default value is an empty string."},{"id":"$$secret__app_redis_pass","name":"_APP_REDIS_PASS","label":"Redis | _APP_REDIS_PASS","defaultValue":"","description":"Redis server password. This is an optional variable. Default value is an empty string."},{"id":"$$config__app_db_host","name":"_APP_DB_HOST","label":"MariaDB | _APP_DB_HOST","defaultValue":"$$id-mariadb","description":""},{"id":"$$config__app_db_port","name":"_APP_DB_PORT","label":"MariaDB | _APP_DB_PORT","defaultValue":"3306","description":"MariaDB server TCP port."},{"id":"$$config__app_db_schema","name":"_APP_DB_SCHEMA","label":"MariaDB | _APP_DB_SCHEMA","defaultValue":"appwrite","description":"MariaDB server database schema."},{"id":"$$config__app_db_user","name":"_APP_DB_USER","label":"MariaDB | _APP_DB_USER","defaultValue":"user","description":"MariaDB server user name."},{"id":"$$secret__app_db_root_pass","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB | MARIADB_ROOT_PASSWORD","defaultValue":"$$generate_hex(16)","description":"MariaDB server root user password."},{"id":"$$secret__app_db_pass","name":"_APP_DB_PASS","label":"MariaDB | _APP_DB_PASS","defaultValue":"$$generate_hex(16)","description":"MariaDB server user password."},{"id":"$$config__app_smtp_host","name":"_APP_SMTP_HOST","label":"SMTP | _APP_SMTP_HOST","defaultValue":"","description":"SMTP server host name address. Use an empty string to disable all mail sending from the server. The default value for this variable is an empty string."},{"id":"$$config__app_smtp_port","name":"_APP_SMTP_PORT","label":"SMTP | _APP_SMTP_PORT","defaultValue":"","description":"SMTP server TCP port. Empty by default."},{"id":"$$config__app_smtp_secure","name":"_APP_SMTP_SECURE","label":"SMTP | _APP_SMTP_SECURE","defaultValue":"","description":"SMTP secure connection protocol. Empty by default, change to 'tls' if running on a secure connection."},{"id":"$$config__app_smtp_username","name":"_APP_SMTP_USERNAME","label":"SMTP | _APP_SMTP_USERNAME","defaultValue":"","description":"SMTP server user name. Empty by default."},{"id":"$$secret__app_smtp_password","name":"_APP_SMTP_PASSWORD","label":"SMTP | _APP_SMTP_PASSWORD","defaultValue":"","description":"SMTP server user password. Empty by default."},{"id":"$$config__app_usage_stats","name":"_APP_USAGE_STATS","label":"General | _APP_USAGE_STATS","defaultValue":"enabled","description":"This variable allows you to disable the collection and displaying of usage stats. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'. When disabled, it's recommended to turn off the Worker Usage, Influxdb and Telegraf containers for better resource usage."},{"id":"$$config__app_storage_limit","name":"_APP_STORAGE_LIMIT","label":"Storage | _APP_STORAGE_LIMIT","defaultValue":"30000000","description":"Maximum file size allowed for file upload. The default value is 30MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_preview_limit","name":"_APP_STORAGE_PREVIEW_LIMIT","label":"Storage | _APP_STORAGE_PREVIEW_LIMIT","defaultValue":"20000000","description":"Maximum file size allowed for file image preview. The default value is 20MB. You should pass your size limit value in bytes."},{"id":"$$config__app_storage_antivirus_enabled","name":"_APP_STORAGE_ANTIVIRUS","label":"Storage | _APP_STORAGE_ANTIVIRUS","defaultValue":"disabled","description":"This variable allows you to disable the internal anti-virus scans. This value is set to 'disabled' by default, to enable the scans set the value to 'enabled'. Before enabling, you must add the ClamAV service and depend on it on main Appwrite service."},{"id":"$$config__app_storage_antivirus_host","name":"_APP_STORAGE_ANTIVIRUS_HOST","label":"Storage | _APP_STORAGE_ANTIVIRUS_HOST","defaultValue":"clamav","description":"ClamAV server host name address."},{"id":"$$config__app_storage_antivirus_port","name":"_APP_STORAGE_ANTIVIRUS_PORT","label":"Storage | _APP_STORAGE_ANTIVIRUS_PORT","defaultValue":"3310","description":"ClamAV server TCP port."},{"id":"$$config__app_storage_device","name":"_APP_STORAGE_DEVICE","label":"Storage | _APP_STORAGE_DEVICE","defaultValue":"Local","description":"Select default storage device. The default value is 'Local'. List of supported adapters are 'Local', 'S3', 'DOSpaces', 'Backblaze', 'Linode' and 'Wasabi'."},{"id":"$$secret__app_storage_s3_access_key","name":"_APP_STORAGE_S3_ACCESS_KEY","label":"Storage | _APP_STORAGE_S3_ACCESS_KEY","defaultValue":"","description":"AWS S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your AWS console."},{"id":"$$secret__app_storage_s3_secret","name":"_APP_STORAGE_S3_SECRET","label":"Storage | _APP_STORAGE_S3_SECRET","defaultValue":"","description":"AWS S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your AWS console."},{"id":"$$config__app_storage_s3_region","name":"_APP_STORAGE_S3_REGION","label":"Storage | _APP_STORAGE_S3_REGION","defaultValue":"us-east-1","description":"AWS S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from AWS console."},{"id":"$$config__app_storage_s3_bucket","name":"_APP_STORAGE_S3_BUCKET","label":"Storage | _APP_STORAGE_S3_BUCKET","defaultValue":"","description":"AWS S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your AWS console."},{"id":"$$secret__app_storage_do_spaces_access_key","name":"_APP_STORAGE_DO_SPACES_ACCESS_KEY","label":"Storage | _APP_STORAGE_DO_SPACES_ACCESS_KEY","defaultValue":"","description":"DigitalOcean spaces access key. Required when the storage adapter is set to DOSpaces. You can get your access key from your DigitalOcean console."},{"id":"$$secret__app_storage_do_spaces_secret","name":"_APP_STORAGE_DO_SPACES_SECRET","label":"Storage | _APP_STORAGE_DO_SPACES_SECRET","defaultValue":"","description":"DigitalOcean spaces secret key. Required when the storage adapter is set to DOSpaces. You can get your secret key from your DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_region","name":"_APP_STORAGE_DO_SPACES_REGION","label":"Storage | _APP_STORAGE_DO_SPACES_REGION","defaultValue":"us-east-1","description":"DigitalOcean spaces region. Required when storage adapter is set to DOSpaces. You can find your region info for your space from DigitalOcean console."},{"id":"$$config__app_storage_do_spaces_bucket","name":"_APP_STORAGE_DO_SPACES_BUCKET","label":"Storage | _APP_STORAGE_DO_SPACES_BUCKET","defaultValue":"","description":"DigitalOcean spaces bucket. Required when storage adapter is set to DOSpaces. You can create spaces in your DigitalOcean console."},{"id":"$$secret__app_storage_backblaze_access_key","name":"_APP_STORAGE_BACKBLAZE_ACCESS_KEY","label":"Storage | _APP_STORAGE_BACKBLAZE_ACCESS_KEY","defaultValue":"","description":"Backblaze access key. Required when the storage adapter is set to Backblaze. Your Backblaze keyID will be your access key. You can get your keyID from your Backblaze console."},{"id":"$$secret__app_storage_backblaze_secret","name":"_APP_STORAGE_BACKBLAZE_SECRET","label":"Storage | _APP_STORAGE_BACKBLAZE_SECRET","defaultValue":"","description":"Backblaze secret key. Required when the storage adapter is set to Backblaze. Your Backblaze applicationKey will be your secret key. You can get your applicationKey from your Backblaze console."},{"id":"$$config__app_storage_backblaze_region","name":"_APP_STORAGE_BACKBLAZE_REGION","label":"Storage | _APP_STORAGE_BACKBLAZE_REGION","defaultValue":"us-west-004","description":"Backblaze region. Required when storage adapter is set to Backblaze. You can find your region info from your Backblaze console."},{"id":"$$config__app_storage_backblaze_bucket","name":"_APP_STORAGE_BACKBLAZE_BUCKET","label":"Storage | _APP_STORAGE_BACKBLAZE_BUCKET","defaultValue":"","description":"Backblaze bucket. Required when storage adapter is set to Backblaze. You can create your bucket from your Backblaze console."},{"id":"$$secret__app_storage_linode_access_key","name":"_APP_STORAGE_LINODE_ACCESS_KEY","label":"Storage | _APP_STORAGE_LINODE_ACCESS_KEY","defaultValue":"","description":"Linode object storage access key. Required when the storage adapter is set to Linode. You can get your access key from your Linode console."},{"id":"$$secret__app_storage_linode_secret","name":"_APP_STORAGE_LINODE_SECRET","label":"Storage | _APP_STORAGE_LINODE_SECRET","defaultValue":"","description":"Linode object storage secret key. Required when the storage adapter is set to Linode. You can get your secret key from your Linode console."},{"id":"$$config__app_storage_linode_region","name":"_APP_STORAGE_LINODE_REGION","label":"Storage | _APP_STORAGE_LINODE_REGION","defaultValue":"eu-central-1","description":"Linode object storage region. Required when storage adapter is set to Linode. You can find your region info from your Linode console."},{"id":"$$config__app_storage_linode_bucket","name":"_APP_STORAGE_LINODE_BUCKET","label":"Storage | _APP_STORAGE_LINODE_BUCKET","defaultValue":"","description":"Linode object storage bucket. Required when storage adapter is set to Linode. You can create buckets in your Linode console."},{"id":"$$secret__app_storage_wasabi_access_key","name":"_APP_STORAGE_WASABI_ACCESS_KEY","label":"Storage | _APP_STORAGE_WASABI_ACCESS_KEY","defaultValue":"","description":"Wasabi access key. Required when the storage adapter is set to Wasabi. You can get your access key from your Wasabi console."},{"id":"$$secret__app_storage_wasabi_secret","name":"_APP_STORAGE_WASABI_SECRET","label":"Storage | _APP_STORAGE_WASABI_SECRET","defaultValue":"","description":"Wasabi secret key. Required when the storage adapter is set to Wasabi. You can get your secret key from your Wasabi console."},{"id":"$$config__app_storage_wasabi_region","name":"_APP_STORAGE_WASABI_REGION","label":"Storage | _APP_STORAGE_WASABI_REGION","defaultValue":"eu-central-1","description":"Wasabi region. Required when storage adapter is set to Wasabi. You can find your region info from your Wasabi console."},{"id":"$$config__app_storage_wasabi_bucket","name":"_APP_STORAGE_WASABI_BUCKET","label":"Storage | _APP_STORAGE_WASABI_BUCKET","defaultValue":"","description":"Wasabi bucket. Required when storage adapter is set to Wasabi. You can create buckets in your Wasabi console."},{"id":"$$config__app_functions_size_limit","name":"_APP_FUNCTIONS_SIZE_LIMIT","label":"Functions | _APP_FUNCTIONS_SIZE_LIMIT","defaultValue":"30000000","description":"The maximum size deployment in bytes. The default value is 30MB."},{"id":"$$config__app_functions_timeout","name":"_APP_FUNCTIONS_TIMEOUT","label":"Functions | _APP_FUNCTIONS_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_build_timeout","name":"_APP_FUNCTIONS_BUILD_TIMEOUT","label":"Functions | _APP_FUNCTIONS_BUILD_TIMEOUT","defaultValue":"900","description":"The maximum number of seconds allowed as a timeout value when building a new function. The default value is 900 seconds."},{"id":"$$config__app_functions_containers","name":"_APP_FUNCTIONS_CONTAINERS","label":"Functions | _APP_FUNCTIONS_CONTAINERS","defaultValue":"10","description":"The maximum number of containers Appwrite is allowed to keep alive in the background for function environments. Running containers allow faster execution time as there is no need to recreate each container every time a function gets executed. The default value is 10."},{"id":"$$config__app_functions_cpus","name":"_APP_FUNCTIONS_CPUS","label":"Functions | _APP_FUNCTIONS_CPUS","defaultValue":"","description":"The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it's empty, CPU limit will be disabled."},{"id":"$$config__app_functions_memory_allocated","name":"_APP_FUNCTIONS_MEMORY","label":"Functions | _APP_FUNCTIONS_MEMORY","defaultValue":"","description":"The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, memory limit will be disabled."},{"id":"$$config__app_functions_memory_swap","name":"_APP_FUNCTIONS_MEMORY_SWAP","label":"Functions | _APP_FUNCTIONS_MEMORY_SWAP","defaultValue":"","description":"The maximum amount of swap memory a single cloud function is allowed to use in megabytes. The default value is empty. When it's empty, swap memory limit will be disabled."},{"id":"$$config__app_functions_runtimes","name":"_APP_FUNCTIONS_RUNTIMES","label":"Functions | _APP_FUNCTIONS_RUNTIMES","defaultValue":"node-18.0","description":"This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\nCurrently, supported environments are: node-14.5, node-16.0, node-18.0, php-8.0, php-8.1, ruby-3.0, ruby-3.1, python-3.8, python-3.9, python-3.10, deno-1.21, deno-1.24, dart-2.15, dart-2.16, dart-2.17, dotnet-3.1, dotnet-6.0, java-8.0, java-11.0, java-17.0, java-18.0, swift-5.5, kotlin-1.6, cpp-17.0"},{"id":"$$secret__app_executor_secret","name":"_APP_EXECUTOR_SECRET","label":"Functions | _APP_EXECUTOR_SECRET","defaultValue":"$$generate_hex(16)","description":"The secret key used by Appwrite to communicate with the function executor."},{"id":"$$config__app_executor_host","name":"_APP_EXECUTOR_HOST","label":"","defaultValue":"http://$$id-executor/v1","description":""},{"id":"$$config__app_logging_provider","name":"_APP_LOGGING_PROVIDER","label":"General | _APP_LOGGING_PROVIDER","defaultValue":"","description":"This variable allows you to enable logging errors to 3rd party providers. This value is empty by default, to enable the logger set the value to one of 'sentry', 'raygun', 'appsignal', 'logowl'"},{"id":"$$config__app_logging_config","name":"_APP_LOGGING_CONFIG","label":"General | _APP_LOGGING_CONFIG","defaultValue":"","description":"This variable configures authentication to 3rd party error logging providers. If using Sentry, this should be 'SENTRY_API_KEY;SENTRY_APP_ID'. If using Raygun, this should be Raygun API key. If using AppSignal, this should be AppSignal API key. If using LogOwl, this should be LogOwl Service Ticket."},{"id":"$$config__app_statsd_host","name":"_APP_STATSD_HOST","label":"","defaultValue":"$$id-telegraf","description":""},{"id":"$$config__app_statsd_port","name":"_APP_STATSD_PORT","label":"StatsD | _APP_STATSD_PORT","defaultValue":"8125","description":"StatsD server TCP port."},{"id":"$$config__app_maintenance_interval","name":"_APP_MAINTENANCE_INTERVAL","label":"Functions | _APP_MAINTENANCE_INTERVAL","defaultValue":"86400","description":"Interval value containing the number of seconds that the Appwrite maintenance process should wait before executing system cleanups and optimizations. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_execution","name":"_APP_MAINTENANCE_RETENTION_EXECUTION","label":"Functions | _APP_MAINTENANCE_RETENTION_EXECUTION","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain execution logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_maintenance_retention_cache","name":"_APP_MAINTENANCE_RETENTION_CACHE","label":"Functions | _APP_MAINTENANCE_RETENTION_CACHE","defaultValue":"2592000","description":"The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days)."},{"id":"$$config__app_maintenance_retention_abuse","name":"_APP_MAINTENANCE_RETENTION_ABUSE","label":"Functions | _APP_MAINTENANCE_RETENTION_ABUSE","defaultValue":"86400","description":"The maximum duration (in seconds) upto which to retain abuse logs. The default value is 86400 seconds (1 day)."},{"id":"$$config__app_maintenance_retention_audit","name":"_APP_MAINTENANCE_RETENTION_AUDIT","label":"Functions | _APP_MAINTENANCE_RETENTION_AUDIT","defaultValue":"1209600","description":"The maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days)."},{"id":"$$config__app_sms_provider","name":"_APP_SMS_PROVIDER","label":"Phone | _APP_SMS_PROVIDER","defaultValue":"","description":"Provider used for delivering SMS for Phone authentication. Use the following format: 'sms://[USER]:[SECRET]@[PROVIDER]'. Available providers are twilio, text-magic, telesign, msg91, and vonage."},{"id":"$$config__app_sms_from","name":"_APP_SMS_FROM","label":"Phone | _APP_SMS_FROM","defaultValue":"","description":"Phone number used for sending out messages. Must start with a leading '+' and maximum of 15 digits without spaces (+123456789)."},{"id":"$$config__app_functions_inactive_threshold","name":"_APP_FUNCTIONS_INACTIVE_THRESHOLD","label":"Functions | _APP_FUNCTIONS_INACTIVE_THRESHOLD","defaultValue":"60","description":"The minimum time a function can be inactive before it's container is shutdown and put to sleep. The default value is 60 seconds"},{"id":"$$config_open_runtimes_network","name":"OPEN_RUNTIMES_NETWORK","label":"","defaultValue":"$$generate_network","description":""},{"id":"$$config_dockerhub_pull_username","name":"DOCKERHUB_PULL_USERNAME","label":"Functions | DOCKERHUB_PULL_USERNAME","defaultValue":"","description":"The username for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$secret_dockerhub_pull_password","name":"DOCKERHUB_PULL_PASSWORD","label":"Functions | DOCKERHUB_PULL_PASSWORD","defaultValue":"","description":"The password for hub.docker.com. This variable is used to pull images from hub.docker.com."},{"id":"$$config__app_usage_timeseries_interval","name":"_APP_USAGE_TIMESERIES_INTERVAL","label":"General | _APP_USAGE_TIMESERIES_INTERVAL","defaultValue":"30","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats and syncing it to mariadb from InfluxDB. The default value is 30 seconds."},{"id":"$$config__app_usage_database_interval","name":"_APP_USAGE_DATABASE_INTERVAL","label":"General | _APP_USAGE_DATABASE_INTERVAL","defaultValue":"900","description":"Interval value containing the number of seconds that the Appwrite usage process should wait before aggregating stats from data in Appwrite Database. The default value is 15 minutes."}]},{"templateVersion":"1.0.0","defaultVersion":"latest","documentation":"https://docs.weblate.org/en/latest/admin/install/docker.html","description":"A copylefted libre software web-based continuous localization system.","type":"weblate","name":"Weblate","labels":["translate","localization"],"services":{"$$id":{"name":"Weblate","depends_on":["$$id-postgresql","$$id-redis"],"image":"weblate/weblate:$$core_version","volumes":["$$id-data:/app/data"],"environment":["WEBLATE_SITE_DOMAIN=$$config_weblate_site_domain","WEBLATE_ADMIN_PASSWORD=$$secret_weblate_admin_password","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_USER=$$config_postgres_user","POSTGRES_DATABASE=$$config_postgres_db","POSTGRES_HOST=$$id-postgresql","POSTGRES_PORT=5432","REDIS_HOST=$$id-redis"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_weblate_site_domain","name":"WEBLATE_SITE_DOMAIN","label":"Weblate Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$secret_weblate_admin_password","name":"WEBLATE_ADMIN_PASSWORD","label":"Weblate Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"weblate","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"2022.12.12-966e9c3c","documentation":"https://docs.searxng.org/","type":"searxng","name":"SearXNG","description":"Free internet metasearch engine which aggregates results from more than 70 search services.","services":{"$$id":{"name":"SearXNG","depends_on":["$$id-redis"],"image":"searxng/searxng:$$core_version","volumes":["$$id-searxng:/etc/searxng"],"environment":["SEARXNG_BASE_URL=$$config_searxng_base_url"],"ports":["8080"],"cap_drop":["ALL"],"cap_add":["CHOWN","SETGID","SETUID","DAC_OVERRIDE"],"files":[{"location":"/etc/searxng/settings.yml","content":"\n # see https://docs.searxng.org/admin/engines/settings.html#use-default-settings\n use_default_settings: true\n server:\n secret_key: $$secret_secret_key\n limiter: true\n image_proxy: true\n ui:\n static_use_hash: true\n redis:\n url: redis://:$$secret_redis_password@$$id-redis:6379/0"}]},"$$id-redis":{"name":"Redis","command":"redis-server --requirepass $$secret_redis_password --save \"\" --appendonly \"no\"","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-redis-data:/data"],"environment":["REDIS_PASSWORD=$$secret_redis_password"],"ports":[],"cap_drop":["ALL"],"cap_add":["SETGID","SETUID","DAC_OVERRIDE"]}},"variables":[{"id":"$$config_searxng_base_url","name":"SEARXNG_BASE_URL","label":"SearXNG Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_secret_key","name":"SECRET_KEY","label":"Secret Key","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$secret_redis_password","name":"REDIS_PASSWORD","label":"Redis Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v3.0.0","documentation":"https://glitchtip.com/documentation","type":"glitchtip","name":"GlitchTip","description":"Simple, open source error tracking.","labels":["sentry","bugsnag"],"services":{"$$id":{"name":"GlitchTip","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","volumes":[],"environment":["PORT=$$config_port","GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","EMAIL_HOST=$$config_email_host","EMAIL_PORT=$$config_email_port","EMAIL_HOST_USER=$$config_email_host_user","EMAIL_HOST_PASSWORD=$$secret_email_host_password","EMAIL_USE_TLS=$$config_email_use_tls","EMAIL_USE_SSL=$$config_email_use_ssl","EMAIL_BACKEND=$$config_email_backend","MAILGUN_API_KEY=$$secret_mailgun_api_key","SENDGRID_API_KEY=$$secret_sendgrid_api_key","ENABLE_OPEN_USER_REGISTRATION=$$config_enable_open_user_registration","DJANGO_SUPERUSER_EMAIL=$$config_django_superuser_email","DJANGO_SUPERUSER_PASSWORD=$$secret_django_superuser_password","DJANGO_SUPERUSER_USERNAME=$$config_django_superuser_username","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":["8000"]},"$$id-worker":{"name":"Celery Worker","command":"./bin/run-celery-with-beat.sh","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url","CELERY_WORKER_CONCURRENCY=$$config_celery_worker_concurrency"],"ports":[]},"$$id-migrate":{"exclude":true,"name":"Migrate","command":"./manage.py migrate","depends_on":["$$id-postgresql","$$id-redis"],"image":"glitchtip/glitchtip:$$core_version","environment":["GLITCHTIP_DOMAIN=$$config_glitchtip_domain","SECRET_KEY=$$secret_secret_key","DATABASE_URL=$$secret_database_url","REDIS_URL=$$secret_redis_url","DEFAULT_FROM_EMAIL=$$config_default_from_email","EMAIL_URL=$$secret_email_url"],"ports":[]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:14-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]},"$$id-redis":{"name":"Redis","depends_on":[],"image":"redis:7-alpine","volumes":["$$id-postgresql-redis-data:/data"],"environment":[],"ports":[]}},"variables":[{"id":"$$config_django_superuser_username","name":"DJANGO_SUPERUSER_USERNAME","label":"Django Superuser Username","defaultValue":"$$generate_username","description":""},{"id":"$$secret_django_superuser_password","name":"DJANGO_SUPERUSER_PASSWORD","label":"Django Superuser Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_port","name":"PORT","label":"GlitchTip Port","defaultValue":"8000","description":""},{"id":"$$config_celery_worker_concurrency","main":"$$id-worker","name":"CELERY_WORKER_CONCURRENCY","label":"Celery Worker Concurrency","defaultValue":"2","description":""},{"id":"$$config_glitchtip_domain","name":"GLITCHTIP_DOMAIN","label":"GlitchTip Domain","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_email_url","name":"EMAIL_URL","label":"SMTP Email URL","defaultValue":"smtp://$$config_email_host_user:$$secret_email_host_password@$$config_email_host:$$config_email_port","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_redis_url","name":"REDIS_URL","label":"Redis URL","defaultValue":"redis://$$id-redis:6379/0","description":""},{"id":"$$config_default_from_email","name":"DEFAULT_FROM_EMAIL","label":"Default Email Address","defaultValue":"[email protected]","description":""},{"id":"$$config_email_host","name":"EMAIL_HOST","label":"Email SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_port","name":"EMAIL_PORT","label":"Email SMTP Port","defaultValue":"25","description":""},{"id":"$$config_email_host_user","name":"EMAIL_HOST_USER","label":"Email SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_host_password","name":"EMAIL_HOST_PASSWORD","label":"Email SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_use_tls","name":"EMAIL_USE_TLS","label":"Email Use TLS","defaultValue":"false","description":""},{"id":"$$config_email_use_ssl","name":"EMAIL_USE_SSL","label":"Email Use SSL","defaultValue":"false","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":""},{"id":"$$config_email_backend","name":"EMAIL_BACKEND","label":"Email Backend","defaultValue":"","description":""},{"id":"$$secret_mailgun_api_key","name":"MAILGUN_API_KEY","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$secret_sendgrid_api_key","name":"SENDGRID_API_KEY","label":"Sendgrid API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_enable_open_user_registration","name":"ENABLE_OPEN_USER_REGISTRATION","label":"Enable Open User Registration","defaultValue":"true","description":""},{"id":"$$config_django_superuser_email","name":"DJANGO_SUPERUSER_EMAIL","label":"Django Superuser Email","defaultValue":"[email protected]","description":""},{"id":"$$config_postgres_user","main":"$$id-postgresql","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","main":"$$id-postgresql","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","main":"$$id-postgresql","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"glitchtip","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"v2.16.0","documentation":"https://hasura.io/docs/latest/index/","type":"hasura","name":"Hasura","description":"Instant realtime GraphQL APIs on any Postgres application, existing or new.","labels":["graphql","database"],"services":{"$$id":{"name":"Hasura","depends_on":["$$id-postgresql"],"image":"hasura/graphql-engine:$$core_version","volumes":[],"environment":["HASURA_GRAPHQL_ENABLE_CONSOLE=$$config_hasura_graphql_enable_console","HASURA_GRAPHQL_METADATA_DATABASE_URL=$$secret_hasura_graphql_metadata_database_url","HASURA_GRAPHQL_ADMIN_SECRET=$$secret_hasura_graphql_admin_secret"],"ports":["8080"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[]}},"variables":[{"id":"$$config_hasura_graphql_enable_console","name":"HASURA_GRAPHQL_ENABLE_CONSOLE","label":"Enable Hasura Console","defaultValue":"true","description":""},{"id":"$$secret_hasura_graphql_metadata_database_url","name":"HASURA_GRAPHQL_METADATA_DATABASE_URL","label":"Hasura Metadata Database URL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hasura_graphql_admin_secret","name":"HASURA_GRAPHQL_ADMIN_SECRET","label":"Hasura Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"hasura","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"postgresql-v1.39.5","documentation":"https://umami.is/docs/getting-started","type":"umami-postgresql","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n\n PRIMARY KEY (\"user_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n\n PRIMARY KEY (\"event_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n\n PRIMARY KEY (\"view_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n\n PRIMARY KEY (\"session_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n\n PRIMARY KEY (\"website_id\")\n );\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n\n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n\n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n\n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n\n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n\n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"postgresql-v1.39.5","documentation":"https://umami.is/docs/getting-started","type":"umami","name":"Umami","subname":"(PostgreSQL)","description":"A simple, easy to use, self-hosted web analytics solution.","services":{"$$id":{"name":"Umami","depends_on":["$$id-postgresql"],"image":"ghcr.io/umami-software/umami:$$core_version","volumes":[],"environment":["ADMIN_PASSWORD=$$secret_admin_password","DATABASE_URL=$$secret_database_url","DATABASE_TYPE=$$config_database_type","HASH_SALT=$$secret_hash_salt"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"],"ports":[],"files":[{"location":"/docker-entrypoint-initdb.d/schema.postgresql.sql","content":"\n -- CreateTable\n CREATE TABLE \"account\" (\n \"user_id\" SERIAL NOT NULL,\n \"username\" VARCHAR(255) NOT NULL,\n \"password\" VARCHAR(60) NOT NULL,\n \"is_admin\" BOOLEAN NOT NULL DEFAULT false,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"updated_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n\n PRIMARY KEY (\"user_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"event\" (\n \"event_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"event_type\" VARCHAR(50) NOT NULL,\n \"event_value\" VARCHAR(50) NOT NULL,\n\n PRIMARY KEY (\"event_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"pageview\" (\n \"view_id\" SERIAL NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"session_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"url\" VARCHAR(500) NOT NULL,\n \"referrer\" VARCHAR(500),\n\n PRIMARY KEY (\"view_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"session\" (\n \"session_id\" SERIAL NOT NULL,\n \"session_uuid\" UUID NOT NULL,\n \"website_id\" INTEGER NOT NULL,\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n \"hostname\" VARCHAR(100),\n \"browser\" VARCHAR(20),\n \"os\" VARCHAR(20),\n \"device\" VARCHAR(20),\n \"screen\" VARCHAR(11),\n \"language\" VARCHAR(35),\n \"country\" CHAR(2),\n\n PRIMARY KEY (\"session_id\")\n );\n\n -- CreateTable\n CREATE TABLE \"website\" (\n \"website_id\" SERIAL NOT NULL,\n \"website_uuid\" UUID NOT NULL,\n \"user_id\" INTEGER NOT NULL,\n \"name\" VARCHAR(100) NOT NULL,\n \"domain\" VARCHAR(500),\n \"share_id\" VARCHAR(64),\n \"created_at\" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,\n\n PRIMARY KEY (\"website_id\")\n );\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"account.username_unique\" ON \"account\"(\"username\");\n\n -- CreateIndex\n CREATE INDEX \"event_created_at_idx\" ON \"event\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"event_session_id_idx\" ON \"event\"(\"session_id\");\n\n -- CreateIndex\n CREATE INDEX \"event_website_id_idx\" ON \"event\"(\"website_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_created_at_idx\" ON \"pageview\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_session_id_idx\" ON \"pageview\"(\"session_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_idx\" ON \"pageview\"(\"website_id\");\n\n -- CreateIndex\n CREATE INDEX \"pageview_website_id_session_id_created_at_idx\" ON \"pageview\"(\"website_id\", \"session_id\", \"created_at\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"session.session_uuid_unique\" ON \"session\"(\"session_uuid\");\n\n -- CreateIndex\n CREATE INDEX \"session_created_at_idx\" ON \"session\"(\"created_at\");\n\n -- CreateIndex\n CREATE INDEX \"session_website_id_idx\" ON \"session\"(\"website_id\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"website.website_uuid_unique\" ON \"website\"(\"website_uuid\");\n\n -- CreateIndex\n CREATE UNIQUE INDEX \"website.share_id_unique\" ON \"website\"(\"share_id\");\n\n -- CreateIndex\n CREATE INDEX \"website_user_id_idx\" ON \"website\"(\"user_id\");\n\n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"event\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"session_id\") REFERENCES \"session\"(\"session_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"pageview\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"session\" ADD FOREIGN KEY (\"website_id\") REFERENCES \"website\"(\"website_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n -- AddForeignKey\n ALTER TABLE \"website\" ADD FOREIGN KEY (\"user_id\") REFERENCES \"account\"(\"user_id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n insert into account (username, password, is_admin) values ('admin', '$$hashed$$secret_admin_password', true);"}]}},"variables":[{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db","description":""},{"id":"$$secret_hash_salt","name":"HASH_SALT","label":"Hash Salt","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_database_type","name":"DATABASE_TYPE","label":"Database Type","defaultValue":"postgresql","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"umami","description":""},{"id":"$$secret_admin_password","name":"ADMIN_PASSWORD","label":"Initial Admin Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"v0.30.1","documentation":"https://docs.meilisearch.com/learn/getting_started/quick_start.html","type":"meilisearch","name":"MeiliSearch","description":"A lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine.","services":{"$$id":{"name":"MeiliSearch","documentation":"https://docs.meilisearch.com/","depends_on":[],"image":"getmeili/meilisearch:$$core_version","volumes":["$$id-datams:/meili_data/data.ms","$$id-data:/meili_data","$$id-snapshot:/snapshot","$$id-dump:/dumps"],"environment":["MEILI_MASTER_KEY=$$secret_meili_master_key"],"ports":["7700"]}},"variables":[{"id":"$$secret_meili_master_key","name":"MEILI_MASTER_KEY","label":"Master Key","defaultValue":"$$generate_hex(64)","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","ignore":true,"defaultVersion":"latest","documentation":"https://docs.ghost.org","arch":"amd64","type":"ghost-mariadb","name":"Ghost","subname":"(MariaDB)","description":"Free and open source blogging platform.","labels":["cms","blog"],"services":{"$$id":{"name":"Ghost","depends_on":["$$id-mariadb"],"image":"bitnami/ghost:$$core_version","volumes":["$$id-ghost:/bitnami/ghost"],"environment":["url=$$config_url","GHOST_HOST=$$config_ghost_host","GHOST_ENABLE_HTTPS=$$config_ghost_enable_https","GHOST_EMAIL=$$config_ghost_email","GHOST_PASSWORD=$$secret_ghost_password","GHOST_DATABASE_HOST=$$config_ghost_database_host","GHOST_DATABASE_USER=$$config_mariadb_user","GHOST_DATABASE_PASSWORD=$$secret_ghost_database_password","GHOST_DATABASE_NAME=$$config_mariadb_database","GHOST_DATABASE_PORT_NUMBER=3306"],"ports":["2368"]},"$$id-mariadb":{"name":"MariaDB","depends_on":[],"image":"bitnami/mariadb:latest","volumes":["$$id-mariadb:/bitnami/mariadb"],"environment":["MARIADB_USER=$$config_mariadb_user","MARIADB_PASSWORD=$$secret_mariadb_password","MARIADB_DATABASE=$$config_mariadb_database","MARIADB_ROOT_USER=$$config_mariadb_root_user","MARIADB_ROOT_PASSWORD=$$secret_mariadb_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_ghost_host","name":"GHOST_HOST","label":"Ghost Host","defaultValue":"$$generate_domain","description":""},{"id":"$$config_ghost_enable_https","name":"GHOST_ENABLE_HTTPS","label":"Ghost Enable HTTPS","defaultValue":"no","description":""},{"id":"$$config_ghost_email","name":"GHOST_EMAIL","label":"Ghost Default Email","defaultValue":"[email protected]","description":""},{"id":"$$secret_ghost_password","name":"GHOST_PASSWORD","label":"Ghost Default Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_ghost_database_host","name":"GHOST_DATABASE_HOST","label":"Ghost Database Host","defaultValue":"$$id-mariadb","description":""},{"id":"$$config_ghost_database_user","name":"GHOST_DATABASE_USER","label":"MariaDB User","defaultValue":"$$config_mariadb_user","description":""},{"id":"$$secret_ghost_database_password","name":"GHOST_DATABASE_PASSWORD","label":"MariaDB Password","defaultValue":"$$secret_mariadb_password","description":""},{"id":"$$config_ghost_database_name","name":"GHOST_DATABASE_NAME","label":"MariaDB Database","defaultValue":"$$config_mariadb_database","description":""},{"id":"$$config_mariadb_user","name":"MARIADB_USER","label":"MariaDB User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_password","name":"MARIADB_PASSWORD","label":"MariaDB Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mariadb_database","name":"MARIADB_DATABASE","label":"MariaDB Database","defaultValue":"ghost","description":""},{"id":"$$config_mariadb_root_user","name":"MARIADB_ROOT_USER","label":"MariaDB Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mariadb_root_password","name":"MARIADB_ROOT_PASSWORD","label":"MariaDB Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"5.25.3","documentation":"https://docs.ghost.org","type":"ghost-only","name":"Ghost","subname":"(without Database)","description":"Free and open source blogging platform.","services":{"$$id":{"name":"Ghost","image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_database__connection__user","database__connection__password=$$secret_database__connection__password","database__connection__database=$$config_database__connection__database"],"ports":["2368"]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","required":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"","description":"","required":true,"placeholder":"db.coolify.io"},{"id":"$$config_database__connection__user","name":"database__connection__user","label":"Database User","defaultValue":"","description":"","placeholder":"ghost","required":true},{"id":"$$secret_database__connection__password","name":"database__connection__password","label":"Database Password","defaultValue":"","description":"","placeholder":"superSecretP4ssword","showOnConfiguration":true,"required":true},{"id":"$$config_database__connection__database","name":"database__connection__database","label":"Database Name","defaultValue":"","description":"","placeholder":"ghost_db","required":true}]},{"templateVersion":"1.0.0","defaultVersion":"5.25.3","documentation":"https://docs.ghost.org","type":"ghost-mysql","name":"Ghost","subname":"(MySQL)","description":"Ghost is a free and open source blogging platform.","services":{"$$id":{"name":"Ghost","depends_on":["$$id-mysql"],"image":"ghost:$$core_version","volumes":["$$id-ghost:/var/lib/ghost/content"],"environment":["url=$$config_url","database__client=$$config_database__client","database__connection__host=$$config_database__connection__host","database__connection__user=$$config_mysql_user","database__connection__password=$$secret_mysql_password","database__connection__database=$$config_mysql_database"],"ports":["2368"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"mysql:8.0","volumes":["$$id-mysql:/var/lib/mysql"],"environment":["MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password","MYSQL_DATABASE=$$config_mysql_database","MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password"],"ports":[]}},"variables":[{"id":"$$config_url","name":"url","label":"URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_database__client","name":"database__client","label":"Database Client","defaultValue":"mysql","description":"","readOnly":true},{"id":"$$config_database__connection__host","name":"database__connection__host","label":"Database Host","defaultValue":"$$id-mysql","description":""},{"id":"$$config_mysql_user","main":"$$id-mysql","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_mysql_password","main":"$$id-mysql","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_mysql_database","main":"$$id-mysql","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"ghost","description":""},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress","name":"WordPress","subname":"(MySQL)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","depends_on":["$$id-mysql"],"image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_USER=$$config_mysql_user","WORDPRESS_DB_PASSWORD=$$secret_mysql_password","WORDPRESS_DB_NAME=$$config_mysql_database","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]},"$$id-mysql":{"name":"MySQL","depends_on":[],"image":"bitnami/mysql:5.7","imageArm":"mysql:8.0","volumes":["$$id-mysql-data:/bitnami/mysql/data"],"volumesArm":["$$id-mysql-data:/var/lib/mysql"],"environment":["MYSQL_ROOT_PASSWORD=$$secret_mysql_root_password","MYSQL_ROOT_USER=$$config_mysql_root_user","MYSQL_DATABASE=$$config_mysql_database","MYSQL_USER=$$config_mysql_user","MYSQL_PASSWORD=$$secret_mysql_password"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"$$id-mysql","description":"","readOnly":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"WordPress Config Extra","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"},{"id":"$$secret_mysql_root_password","name":"MYSQL_ROOT_PASSWORD","label":"MySQL Root Password","defaultValue":"$$generate_password","description":"","readOnly":true},{"id":"$$config_mysql_root_user","name":"MYSQL_ROOT_USER","label":"MySQL Root User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$config_mysql_database","name":"MYSQL_DATABASE","label":"MySQL Database","defaultValue":"wordpress","description":"","readOnly":true},{"id":"$$config_mysql_user","name":"MYSQL_USER","label":"MySQL User","defaultValue":"$$generate_username","description":"","readOnly":true},{"id":"$$secret_mysql_password","name":"MYSQL_PASSWORD","label":"MySQL Password","defaultValue":"$$generate_password","description":"","readOnly":true}]},{"templateVersion":"1.0.0","defaultVersion":"php8.1","documentation":"https://wordpress.org/","type":"wordpress-only","name":"WordPress","subname":"(without DB)","description":"A content management system based on PHP.","labels":["wordpress","php","cms"],"services":{"$$id":{"name":"WordPress","image":"wordpress:$$core_version","volumes":["$$id-wordpress-data:/var/www/html"],"environment":["WORDPRESS_DB_HOST=$$config_wordpress_db_host","WORDPRESS_DB_PORT=$$config_wordpress_db_port","WORDPRESS_DB_USER=$$config_wordpress_db_user","WORDPRESS_DB_PASSWORD=$$secret_wordpress_db_password","WORDPRESS_DB_NAME=$$config_wordpress_db_name","WORDPRESS_CONFIG_EXTRA=$$config_wordpress_config_extra"],"ports":["80"]}},"variables":[{"id":"$$config_wordpress_db_host","name":"WORDPRESS_DB_HOST","label":"Database Host","defaultValue":"","description":"","placeholder":"db.coollabs.io","required":true},{"id":"$$config_wordpress_db_port","name":"WORDPRESS_DB_PORT","label":"Database Port","defaultValue":"","description":"","placeholder":"3306","required":true},{"id":"$$config_wordpress_db_user","name":"WORDPRESS_DB_USER","label":"Database User","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$secret_wordpress_db_password","name":"WORDPRESS_DB_PASSWORD","label":"Database Password","defaultValue":"","description":"","placeholder":"supers3cr3tpassw0rd!","required":true,"showOnConfiguration":true},{"id":"$$config_wordpress_db_name","name":"WORDPRESS_DB_NAME","label":"Database Name","defaultValue":"","description":"","placeholder":"wordpress","required":true},{"id":"$$config_wordpress_config_extra","name":"WORDPRESS_CONFIG_EXTRA","label":"Extra Config","defaultValue":"","description":"","type":"textarea","placeholder":"define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\n@ini_set('display_errors', 0);\n"}]},{"templateVersion":"1.0.0","defaultVersion":"4.9.0","documentation":"https://coder.com/docs/coder-oss/latest","type":"vscodeserver","name":"VSCode Server","description":"Visual Studio Code on a remote server, accessible through the browser.","labels":["vscode","ide"],"services":{"$$id":{"name":"VSCode Server","depends_on":[],"image":"codercom/code-server:$$core_version","volumes":["$$id-config-data:/home/coder/.local/share/code-server","$$id-vscodeserver-data:/home/coder","$$id-keys-directory:/root/.ssh","$$id-theme-and-plugin-directory:/root/.local/share/code-server"],"environment":["PASSWORD=$$secret_password"],"ports":["8080"]}},"variables":[{"id":"$$secret_password","name":"PASSWORD","label":"Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"RELEASE.2022-12-12T19-27-27Z","documentation":"https://min.io/docs/minio","type":"minio","name":"MinIO","description":"A cloud storage server compatible with Amazon S3.","labels":["storage","s3"],"services":{"$$id":{"name":"MinIO","command":"server /data --console-address :9001","depends_on":[],"image":"minio/minio:$$core_version","volumes":["$$id-minio-data:/data","$$id-data-write:/files"],"environment":["MINIO_SERVER_URL=$$config_coolify_fqdn_minio_console","MINIO_BROWSER_REDIRECT_URL=$$config_minio_browser_redirect_url","MINIO_DOMAIN=$$config_minio_domain","MINIO_ROOT_USER=$$config_minio_root_user","MINIO_ROOT_PASSWORD=$$secret_minio_root_password"],"ports":["9000","9001"],"proxy":[{"port":"9000","domain":"$$config_coolify_fqdn_minio_console"},{"port":"9001"}]}},"variables":[{"id":"$$config_coolify_fqdn_minio_console","name":"MINIO_SERVER_URL","label":"MinIO Server URL","defaultValue":"","description":"Specify the URL hostname the MinIO Console should use for connecting to the MinIO Server.","required":true},{"id":"$$config_minio_browser_redirect_url","name":"MINIO_BROWSER_REDIRECT_URL","label":"Browser Redirect URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$config_minio_domain","name":"MINIO_DOMAIN","label":"Domain","defaultValue":"$$generate_domain","description":""},{"id":"$$config_minio_root_user","name":"MINIO_ROOT_USER","label":"Root User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_minio_root_password","name":"MINIO_ROOT_PASSWORD","label":"Root User Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true}]},{"templateVersion":"1.0.0","defaultVersion":"0.21.1","documentation":"https://fider.io/docs","type":"fider","name":"Fider","description":"A platform to collect and organize customer feedback.","labels":["suggestion","feedback"],"services":{"$$id":{"name":"Fider","image":"getfider/fider:$$core_version","depends_on":["$$id-postgresql"],"environment":["BASE_URL=$$config_base_url","DATABASE_URL=$$secret_database_url","JWT_SECRET=$$secret_jwt_secret","EMAIL_NOREPLY=$$config_email_noreply","EMAIL_MAILGUN_API=$$secret_email_mailgun_api","EMAIL_MAILGUN_REGION=$$config_email_mailgun_region","EMAIL_MAILGUN_DOMAIN=$$config_email_mailgun_domain","EMAIL_SMTP_HOST=$$config_email_smtp_host","EMAIL_SMTP_PORT=$$config_email_smtp_port","EMAIL_SMTP_USER=$$config_email_smtp_user","EMAIL_SMTP_PASSWORD=$$secret_email_smtp_password","EMAIL_SMTP_ENABLE_STARTTLS=$$config_email_smtp_enable_starttls"],"ports":["3000"]},"$$id-postgresql":{"name":"PostgreSQL","depends_on":[],"image":"postgres:12-alpine","volumes":["$$id-postgresql-data:/var/lib/postgresql/data"],"environment":["POSTGRES_USER=$$config_postgres_user","POSTGRES_PASSWORD=$$secret_postgres_password","POSTGRES_DB=$$config_postgres_db"]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgres_user:$$secret_postgres_password@$$id-postgresql:5432/$$config_postgres_db?sslmode=disable","description":""},{"id":"$$secret_jwt_secret","name":"JWT_SECRET","label":"JWT Secret","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_email_noreply","name":"EMAIL_NOREPLY","label":"No Reply Email Address","defaultValue":"[email protected]","description":""},{"id":"$$secret_email_mailgun_api","name":"EMAIL_MAILGUN_API","label":"Mailgun API Key","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_mailgun_region","name":"EMAIL_MAILGUN_REGION","label":"Mailgun Region","defaultValue":"EU","description":""},{"id":"$$config_email_mailgun_domain","name":"EMAIL_MAILGUN_DOMAIN","label":"Mailgun Domain","defaultValue":"","description":""},{"id":"$$config_email_smtp_host","name":"EMAIL_SMTP_HOST","label":"SMTP Host","defaultValue":"","description":""},{"id":"$$config_email_smtp_port","name":"EMAIL_SMTP_PORT","label":"SMTP Port","defaultValue":"587","description":""},{"id":"$$config_email_smtp_user","name":"EMAIL_SMTP_USER","label":"SMTP User","defaultValue":"","description":""},{"id":"$$secret_email_smtp_password","name":"EMAIL_SMTP_PASSWORD","label":"SMTP Password","defaultValue":"","description":"","showOnConfiguration":true},{"id":"$$config_email_smtp_enable_starttls","name":"EMAIL_SMTP_ENABLE_STARTTLS","label":"SMTP Enable StartTLS","defaultValue":"false","description":""},{"id":"$$config_postgres_user","name":"POSTGRES_USER","label":"PostgreSQL User","defaultValue":"$$generate_username","description":""},{"id":"$$secret_postgres_password","name":"POSTGRES_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":""},{"id":"$$config_postgres_db","name":"POSTGRES_DB","label":"PostgreSQL Database","defaultValue":"$$generate_username","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"0.207.0","documentation":"https://docs.n8n.io","type":"n8n","name":"n8n.io","description":"A free and open node based Workflow Automation Tool.","labels":["workflow","automation","ifttt","zapier","nodered"],"services":{"$$id":{"name":"N8n","depends_on":[],"image":"n8nio/n8n:$$core_version","volumes":["$$id-data:/root/.n8n","$$id-data-write:/files","/var/run/docker.sock:/var/run/docker.sock"],"environment":["WEBHOOK_URL=$$config_webhook_url"],"ports":["5678"]}},"variables":[{"id":"$$config_webhook_url","name":"WEBHOOK_URL","label":"Webhook URL","defaultValue":"$$generate_fqdn","description":""}]},{"templateVersion":"1.0.0","defaultVersion":"stable","documentation":"https://plausible.io/doc/","arch":"amd64","type":"plausibleanalytics","name":"Plausible Analytics","description":"A lightweight and open-source website analytics tool.","labels":["analytics","statistics","plausible","gdpr","no-cookie","google analytics"],"services":{"$$id":{"name":"Plausible Analytics","command":"sh -c \"sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run\"","depends_on":["$$id-postgresql","$$id-clickhouse"],"image":"plausible/analytics:$$core_version","environment":["ADMIN_USER_EMAIL=$$config_admin_user_email","ADMIN_USER_NAME=$$config_admin_user_name","ADMIN_USER_PWD=$$secret_admin_user_pwd","BASE_URL=$$config_base_url","SECRET_KEY_BASE=$$secret_secret_key_base","DISABLE_AUTH=$$config_disable_auth","DISABLE_REGISTRATION=$$config_disable_registration","DATABASE_URL=$$secret_database_url","CLICKHOUSE_DATABASE_URL=$$secret_clickhouse_database_url"],"ports":["8000"]},"$$id-postgresql":{"name":"PostgreSQL","image":"bitnami/postgresql:13","volumes":["$$id-postgresql-data:/bitnami/postgresql"],"environment":["POSTGRESQL_PASSWORD=$$secret_postgresql_password","POSTGRESQL_USERNAME=$$config_postgresql_username","POSTGRESQL_DATABASE=$$config_postgresql_database"]},"$$id-clickhouse":{"name":"Clickhouse","volumes":["$$id-clickhouse-data:/var/lib/clickhouse"],"image":"clickhouse/clickhouse-server:22.6-alpine","ulimits":{"nofile":{"soft":262144,"hard":262144}},"files":[{"location":"/etc/clickhouse-server/users.d/logging.xml","content":"<yandex><logger><level>warning</level><console>true</console></logger><query_thread_log remove=\"remove\"/><query_log remove=\"remove\"/><text_log remove=\"remove\"/><trace_log remove=\"remove\"/><metric_log remove=\"remove\"/><asynchronous_metric_log remove=\"remove\"/><session_log remove=\"remove\"/><part_log remove=\"remove\"/></yandex>"},{"location":"/etc/clickhouse-server/config.d/logging.xml","content":"<yandex><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></yandex>"},{"location":"/docker-entrypoint-initdb.d/init.query","content":"CREATE DATABASE IF NOT EXISTS plausible;"},{"location":"/docker-entrypoint-initdb.d/init-db.sh","content":"clickhouse client --queries-file /docker-entrypoint-initdb.d/init.query"}]}},"variables":[{"id":"$$config_base_url","name":"BASE_URL","label":"Base URL","defaultValue":"$$generate_fqdn","description":"You must set this to the FQDN of the Plausible Analytics instance. This is used to generate the links to the Plausible Analytics instance."},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL for PostgreSQL","defaultValue":"postgresql://$$config_postgresql_username:$$secret_postgresql_password@$$id-postgresql:5432/$$config_postgresql_database","description":""},{"id":"$$secret_clickhouse_database_url","name":"CLICKHOUSE_DATABASE_URL","label":"Database URL for Clickhouse","defaultValue":"http://$$id-clickhouse:8123/plausible","description":""},{"id":"$$config_admin_user_email","name":"ADMIN_USER_EMAIL","label":"Admin Email Address","defaultValue":"[email protected]","description":"This is the admin email. Please change it."},{"id":"$$config_admin_user_name","name":"ADMIN_USER_NAME","label":"Admin User Name","defaultValue":"$$generate_username","description":"This is the admin username. Please change it."},{"id":"$$secret_admin_user_pwd","name":"ADMIN_USER_PWD","label":"Admin User Password","defaultValue":"$$generate_password","description":"This is the admin password. Please change it.","showOnConfiguration":true},{"id":"$$secret_secret_key_base","name":"SECRET_KEY_BASE","label":"Secret Key Base","defaultValue":"$$generate_hex(64)","description":""},{"id":"$$config_disable_auth","name":"DISABLE_AUTH","label":"Authentication","defaultValue":"false","description":""},{"id":"$$config_disable_registration","name":"DISABLE_REGISTRATION","label":"Registration","defaultValue":"true","description":""},{"id":"$$config_postgresql_username","main":"$$id-postgresql","name":"POSTGRESQL_USERNAME","label":"PostgreSQL Username","defaultValue":"postgresql","description":""},{"id":"$$secret_postgresql_password","main":"$$id-postgresql","name":"POSTGRESQL_PASSWORD","label":"PostgreSQL Password","defaultValue":"$$generate_password","description":"","showOnConfiguration":true},{"id":"$$config_postgresql_database","main":"$$id-postgresql","name":"POSTGRESQL_DATABASE","label":"PostgreSQL Database","defaultValue":"plausible","description":""},{"id":"$$config_scriptName","name":"SCRIPT_NAME","label":"Custom Script Name","defaultValue":"plausible.js","description":"This is the default script name."}]},{"templateVersion":"1.0.0","defaultVersion":"0.99.1","documentation":"https://docs.nocodb.com","type":"nocodb","name":"NocoDB","description":"Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadsheet.","labels":["database","airtable","spreadsheet"],"services":{"$$id":{"name":"NocoDB","image":"nocodb/nocodb:$$core_version","environment":["PORT=$$config_port","NC_DB=$$config_nc_db","DATABASE_URL=$$secret_database_url","NC_PUBLIC_URL=$$config_public_url","NC_AUTH_JWT_SECRET=$$secret_auth_jwt_secret","NC_SENTRY_DSN=$$secret_sentry_dsn","NC_CONNECT_TO_EXTERNAL_DB_DISABLED=$$config_connect_to_external_db_disabled","NC_DISABLE_TELE=$$config_disable_tele"],"volumes":["$$id-data:/usr/app/data"],"ports":["8080"]}},"variables":[{"id":"$$config_nc_db","name":"NC_DB","label":"Database","defaultValue":"","description":"MySQL, PostgreSQL and MSSQL connection urls supported. If absent: A local SQLite will be created in root folder."},{"id":"$$config_port","name":"PORT","label":"Port","defaultValue":"8080","description":""},{"id":"$$secret_database_url","name":"DATABASE_URL","label":"Database URL","defaultValue":"","description":"JDBC URL Format. Can be used instead of NC_DB. Used in 1-Click Heroku deployment."},{"id":"$$config_public_url","name":"NC_PUBLIC_URL","label":"Public URL","defaultValue":"","description":"Used for sending Email invitations. If absent: Best guess from http request params."},{"id":"$$secret_auth_jwt_secret","name":"NC_AUTH_JWT_SECRET","label":"Auth JWT Secret","defaultValue":"$$generate_hex(64)","description":"JWT secret used for auth and storing other secrets. If absent: A Random secret will be generated."},{"id":"$$secret_sentry_dsn","name":"NC_SENTRY_DSN","label":"Sentry DSN","defaultValue":"","description":"For Sentry monitoring."},{"id":"$$config_connect_to_external_db_disabled","name":"NC_CONNECT_TO_EXTERNAL_DB_DISABLED","label":"Disable External Database","defaultValue":"0","description":"Disable Project creation with external database. (Enter \"1\" to disable)."},{"id":"$$config_disable_tele","name":"NC_DISABLE_TELE","label":"NocoDB Disable Telemetry","defaultValue":"1","description":"Disable telemetry (Enter \"1\" to disable)."}]}]\ No newline at end of filediff --git a/apps/trpc-experimental/server/tsconfig.json b/apps/trpc-experimental/server/tsconfig.jsondeleted file mode 100644index c0c231b4ec..0000000000--- a/apps/trpc-experimental/server/tsconfig.json+++ /dev/null@@ -1,43 +0,0 @@-{- "include": ["src", "server/src/config.ts"],- "exclude": ["node_modules"],- "compilerOptions": {- "module": "commonjs",- "target": "esnext",- "outDir": "dist",-- // [ Basics ]- "strict": true,- "checkJs": true,- "sourceMap": true,- "importHelpers": true,- "removeComments": true,- // "rootDir": "./",- // "declaration": true,- // "declarationMap": true,- // "declarationDir": "types",-- // [ Additional Checks ]- "noUnusedLocals": true,- "noImplicitReturns": true,- "noUnusedParameters": true,- "noImplicitOverride": true,- "allowUnreachableCode": false,- "noUncheckedIndexedAccess": true,- "noFallthroughCasesInSwitch": true,- "noPropertyAccessFromIndexSignature": true,-- // [ Module Resolution ]- "esModuleInterop": true,- "resolveJsonModule": true,- "moduleResolution": "node",-- // [ Advanced ]- // "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,-- // [ Build ]- "listFiles": false,- "listEmittedFiles": true- }-}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e19fab50f3..0543634682 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -76,7 +76,7 @@ importers:typescript: 4.9.4unique-names-generator: 4.7.1dependencies:- '@breejs/ts-worker': 2.0.0_tb2zv7uvvsbdrpzpw5lxnvx3z4+ '@breejs/ts-worker': 2.0.0_rcqzk6hu7gtwazvbznfthbptra'@fastify/autoload': 5.7.0'@fastify/cookie': 8.3.0'@fastify/cors': 8.2.0@@ -139,103 +139,6 @@ importers:types-fastify-socket.io: 0.0.1typescript: 4.9.4- apps/backup:- specifiers:- '@aws-sdk/client-s3': ^3.222.0- '@aws-sdk/lib-storage': ^3.222.0- cuid: 2.1.8- dotenv: 16.0.3- zx: 7.1.1- dependencies:- '@aws-sdk/client-s3': 3.222.0- '@aws-sdk/lib-storage': 3.222.0_@[email protected]- cuid: 2.1.8- dotenv: 16.0.3- zx: 7.1.1-- apps/client:- specifiers:- '@playwright/test': 1.28.1- '@sveltejs/adapter-static': 1.0.0-next.48- '@sveltejs/kit': 1.0.0-next.572- '@trpc/client': 10.1.0- '@trpc/server': 10.1.0- '@types/js-cookie': 3.0.2- '@typescript-eslint/eslint-plugin': 5.44.0- '@typescript-eslint/parser': 5.44.0- autoprefixer: 10.4.13- cuid: 2.1.8- daisyui: 2.41.0- dayjs: 1.11.6- eslint: 8.28.0- eslint-config-prettier: 8.5.0- eslint-plugin-svelte3: 4.0.0- flowbite-svelte: 0.28.0- js-cookie: 3.0.1- js-yaml: 4.1.0- p-limit: 4.0.0- postcss: 8.4.19- postcss-load-config: 4.0.1- prettier: 2.8.0- prettier-plugin-svelte: 2.8.1- server: workspace:*- superjson: 1.11.0- svelte: 3.53.1- svelte-check: 2.9.2- svelte-preprocess: ^4.10.7- svelte-select: 4.4.7- tailwindcss: 3.2.4- tslib: 2.4.1- typescript: 4.9.3- vite: 3.2.4- dependencies:- '@trpc/client': 10.1.0_@[email protected]- '@trpc/server': 10.1.0- cuid: 2.1.8- daisyui: 2.41.0_2lwn2upnx27dqeg6hqdu7sq75m- dayjs: 1.11.6- flowbite-svelte: 0.28.0- js-cookie: 3.0.1- js-yaml: 4.1.0- p-limit: 4.0.0- server: link:../server- superjson: 1.11.0- svelte-select: 4.4.7- devDependencies:- '@playwright/test': 1.28.1- '@sveltejs/adapter-static': 1.0.0-next.48- '@sveltejs/kit': [email protected][email protected]- '@types/js-cookie': 3.0.2- '@typescript-eslint/eslint-plugin': 5.44.0_fnsv2sbzcckq65bwfk7a5xwslu- '@typescript-eslint/parser': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- autoprefixer: [email protected]- eslint: 8.28.0- eslint-config-prettier: [email protected]- eslint-plugin-svelte3: 4.0.0_xgu65rlhscpnxffotiaicv6m5i- postcss: 8.4.19- postcss-load-config: [email protected]- prettier: 2.8.0- prettier-plugin-svelte: 2.8.1_3ndnxlh52lolrqe4kgjgbxb3xa- svelte: 3.53.1- svelte-check: 2.9.2_g7z2chviobwh5b53nr2x4mtdq4- svelte-preprocess: 4.10.7_jgeygver3mevbte7srfft5qwby- tailwindcss: [email protected]- tslib: 2.4.1- typescript: 4.9.3- vite: 3.2.4-- apps/i18n:- specifiers:- dotenv: 16.0.2- gettext-parser: 6.0.0- got: 12.3.1- node-gettext: 3.0.0- dependencies:- dotenv: 16.0.2- gettext-parser: 6.0.0- got: 12.3.1- node-gettext: 3.0.0-apps/server:specifiers:'@breejs/ts-worker': 2.0.0@@ -372,1046 +275,69 @@ importers:daisyui: 2.41.0dayjs: 1.11.6eslint: 8.28.0- eslint-config-prettier: 8.5.0- eslint-plugin-svelte3: 4.0.0- flowbite: 1.5.4- flowbite-svelte: 0.28.0- js-cookie: 3.0.1- js-yaml: 4.1.0- p-limit: 4.0.0- postcss: 8.4.19- prettier: 2.7.1- prettier-plugin-svelte: 2.8.1- socket.io-client: 4.5.3- svelte: 3.53.1- svelte-check: 2.9.2- svelte-preprocess: 4.10.7- svelte-select: 4.4.7- sveltekit-i18n: 2.2.2- tailwindcss: 3.2.4- tailwindcss-scrollbar: 0.1.0- tslib: 2.4.1- typescript: 4.9.3- vite: 3.2.4- dependencies:- '@sentry/svelte': [email protected]- '@sentry/tracing': 7.21.1- '@sveltejs/adapter-static': 1.0.0-next.48- '@tailwindcss/typography': [email protected]- cuid: 2.1.8- daisyui: 2.41.0_2lwn2upnx27dqeg6hqdu7sq75m- dayjs: 1.11.6- js-cookie: 3.0.1- js-yaml: 4.1.0- p-limit: 4.0.0- socket.io-client: 4.5.3- svelte-select: 4.4.7- sveltekit-i18n: [email protected]- devDependencies:- '@floating-ui/dom': 1.0.6- '@playwright/test': 1.28.0- '@popperjs/core': 2.11.6- '@sveltejs/kit': [email protected][email protected]- '@types/js-cookie': 3.0.2- '@typescript-eslint/eslint-plugin': 5.44.0_fnsv2sbzcckq65bwfk7a5xwslu- '@typescript-eslint/parser': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a- autoprefixer: [email protected]- classnames: 2.3.2- eslint: 8.28.0- eslint-config-prettier: [email protected]- eslint-plugin-svelte3: 4.0.0_xgu65rlhscpnxffotiaicv6m5i- flowbite: 1.5.4- flowbite-svelte: 0.28.0- postcss: 8.4.19- prettier: 2.7.1- prettier-plugin-svelte: 2.8.1_nryolsexf6k3znhuh4uzpugsem- svelte: 3.53.1- svelte-check: 2.9.2_mocwzvuqzrhb37u7s4hjvvzl3i- svelte-preprocess: 4.10.7_mvbmsfnr3ibpjsbee6imjcb33m- tailwindcss: [email protected]- tailwindcss-scrollbar: [email protected]- tslib: 2.4.1- typescript: 4.9.3- vite: 3.2.4--packages:-- /@aws-crypto/crc32/2.0.0:- resolution: {integrity: sha512-TvE1r2CUueyXOuHdEigYjIZVesInd9KN+K/TFFNfkkxRThiNxO6i4ZqqAVMoEjAamZZ1AA8WXJkjCz7YShHPQA==}- dependencies:- '@aws-crypto/util': 2.0.2- '@aws-sdk/types': 3.222.0- tslib: 1.14.1- dev: false-- /@aws-crypto/crc32c/2.0.0:- resolution: {integrity: sha512-vF0eMdMHx3O3MoOXUfBZry8Y4ZDtcuskjjKgJz8YfIDjLStxTZrYXk+kZqtl6A0uCmmiN/Eb/JbC/CndTV1MHg==}- dependencies:- '@aws-crypto/util': 2.0.2- '@aws-sdk/types': 3.222.0- tslib: 1.14.1- dev: false-- /@aws-crypto/ie11-detection/2.0.2:- resolution: {integrity: sha512-5XDMQY98gMAf/WRTic5G++jfmS/VLM0rwpiOpaainKi4L0nqWMSB1SzsrEG5rjFZGYN6ZAefO+/Yta2dFM0kMw==}- dependencies:- tslib: 1.14.1- dev: false-- /@aws-crypto/sha1-browser/2.0.0:- resolution: {integrity: sha512-3fIVRjPFY8EG5HWXR+ZJZMdWNRpwbxGzJ9IH9q93FpbgCH8u8GHRi46mZXp3cYD7gealmyqpm3ThZwLKJjWJhA==}- dependencies:- '@aws-crypto/ie11-detection': 2.0.2- '@aws-crypto/supports-web-crypto': 2.0.2- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-locate-window': 3.208.0- '@aws-sdk/util-utf8-browser': 3.188.0- tslib: 1.14.1- dev: false-- /@aws-crypto/sha256-browser/2.0.0:- resolution: {integrity: sha512-rYXOQ8BFOaqMEHJrLHul/25ckWH6GTJtdLSajhlqGMx0PmSueAuvboCuZCTqEKlxR8CQOwRarxYMZZSYlhRA1A==}- dependencies:- '@aws-crypto/ie11-detection': 2.0.2- '@aws-crypto/sha256-js': 2.0.0- '@aws-crypto/supports-web-crypto': 2.0.2- '@aws-crypto/util': 2.0.2- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-locate-window': 3.208.0- '@aws-sdk/util-utf8-browser': 3.188.0- tslib: 1.14.1- dev: false-- /@aws-crypto/sha256-js/2.0.0:- resolution: {integrity: sha512-VZY+mCY4Nmrs5WGfitmNqXzaE873fcIZDu54cbaDaaamsaTOP1DBImV9F4pICc3EHjQXujyE8jig+PFCaew9ig==}- dependencies:- '@aws-crypto/util': 2.0.2- '@aws-sdk/types': 3.222.0- tslib: 1.14.1- dev: false-- /@aws-crypto/supports-web-crypto/2.0.2:- resolution: {integrity: sha512-6mbSsLHwZ99CTOOswvCRP3C+VCWnzBf+1SnbWxzzJ9lR0mA0JnY2JEAhp8rqmTE0GPFy88rrM27ffgp62oErMQ==}- dependencies:- tslib: 1.14.1- dev: false-- /@aws-crypto/util/2.0.2:- resolution: {integrity: sha512-Lgu5v/0e/BcrZ5m/IWqzPUf3UYFTy/PpeED+uc9SWUR1iZQL8XXbGQg10UfllwwBryO3hFF5dizK+78aoXC1eA==}- dependencies:- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- tslib: 1.14.1- dev: false-- /@aws-sdk/abort-controller/3.222.0:- resolution: {integrity: sha512-Ric2vJQEWrzz915wBeZlYLWAnIsnywOcZpzroPVTY/TNKRvM0GcSPVuD9vv1lOwybVnDHsipukzwQBAZXkNWVA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/chunked-blob-reader-native/3.208.0:- resolution: {integrity: sha512-JeOZ95PW+fJ6bbuqPySYqLqHk1n4+4ueEEraJsiUrPBV0S1ZtyvOGHcnGztKUjr2PYNaiexmpWuvUve9K12HRA==}- dependencies:- '@aws-sdk/util-base64': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/chunked-blob-reader/3.188.0:- resolution: {integrity: sha512-zkPRFZZPL3eH+kH86LDYYXImiClA1/sW60zYOjse9Pgka+eDJlvBN6hcYxwDEKjcwATYiSRR1aVQHcfCinlGXg==}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/client-s3/3.222.0:- resolution: {integrity: sha512-QHTZ6vt6t0gsX5lM/ylybj2FKtfJsjV9nbx1Q9QhLfAe6e3vb7mOpMS8eTVAs6al+OaweCV0+blgPT8dhEXI3g==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-crypto/sha1-browser': 2.0.0- '@aws-crypto/sha256-browser': 2.0.0- '@aws-crypto/sha256-js': 2.0.0- '@aws-sdk/client-sts': 3.222.0- '@aws-sdk/config-resolver': 3.222.0- '@aws-sdk/credential-provider-node': 3.222.0- '@aws-sdk/eventstream-serde-browser': 3.222.0- '@aws-sdk/eventstream-serde-config-resolver': 3.222.0- '@aws-sdk/eventstream-serde-node': 3.222.0- '@aws-sdk/fetch-http-handler': 3.222.0- '@aws-sdk/hash-blob-browser': 3.222.0- '@aws-sdk/hash-node': 3.222.0- '@aws-sdk/hash-stream-node': 3.222.0- '@aws-sdk/invalid-dependency': 3.222.0- '@aws-sdk/md5-js': 3.222.0- '@aws-sdk/middleware-bucket-endpoint': 3.222.0- '@aws-sdk/middleware-content-length': 3.222.0- '@aws-sdk/middleware-endpoint': 3.222.0- '@aws-sdk/middleware-expect-continue': 3.222.0- '@aws-sdk/middleware-flexible-checksums': 3.222.0- '@aws-sdk/middleware-host-header': 3.222.0- '@aws-sdk/middleware-location-constraint': 3.222.0- '@aws-sdk/middleware-logger': 3.222.0- '@aws-sdk/middleware-recursion-detection': 3.222.0- '@aws-sdk/middleware-retry': 3.222.0- '@aws-sdk/middleware-sdk-s3': 3.222.0- '@aws-sdk/middleware-serde': 3.222.0- '@aws-sdk/middleware-signing': 3.222.0- '@aws-sdk/middleware-ssec': 3.222.0- '@aws-sdk/middleware-stack': 3.222.0- '@aws-sdk/middleware-user-agent': 3.222.0- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/node-http-handler': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/signature-v4-multi-region': 3.222.0- '@aws-sdk/smithy-client': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- '@aws-sdk/util-base64': 3.208.0- '@aws-sdk/util-body-length-browser': 3.188.0- '@aws-sdk/util-body-length-node': 3.208.0- '@aws-sdk/util-defaults-mode-browser': 3.222.0- '@aws-sdk/util-defaults-mode-node': 3.222.0- '@aws-sdk/util-endpoints': 3.222.0- '@aws-sdk/util-retry': 3.222.0- '@aws-sdk/util-stream-browser': 3.222.0- '@aws-sdk/util-stream-node': 3.222.0- '@aws-sdk/util-user-agent-browser': 3.222.0- '@aws-sdk/util-user-agent-node': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- '@aws-sdk/util-utf8-node': 3.208.0- '@aws-sdk/util-waiter': 3.222.0- '@aws-sdk/xml-builder': 3.201.0- fast-xml-parser: 4.0.11- tslib: 2.4.1- transitivePeerDependencies:- - '@aws-sdk/signature-v4-crt'- - aws-crt- dev: false-- /@aws-sdk/client-sso-oidc/3.222.0:- resolution: {integrity: sha512-qC4SOKojOWCixvtma3/pwumRzkqHd19FL17ImR+p3C6J0CsSIzjBsKOxLjQMfaE0usAdqStxjULxJDAvWLElJA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-crypto/sha256-browser': 2.0.0- '@aws-crypto/sha256-js': 2.0.0- '@aws-sdk/config-resolver': 3.222.0- '@aws-sdk/fetch-http-handler': 3.222.0- '@aws-sdk/hash-node': 3.222.0- '@aws-sdk/invalid-dependency': 3.222.0- '@aws-sdk/middleware-content-length': 3.222.0- '@aws-sdk/middleware-endpoint': 3.222.0- '@aws-sdk/middleware-host-header': 3.222.0- '@aws-sdk/middleware-logger': 3.222.0- '@aws-sdk/middleware-recursion-detection': 3.222.0- '@aws-sdk/middleware-retry': 3.222.0- '@aws-sdk/middleware-serde': 3.222.0- '@aws-sdk/middleware-stack': 3.222.0- '@aws-sdk/middleware-user-agent': 3.222.0- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/node-http-handler': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/smithy-client': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- '@aws-sdk/util-base64': 3.208.0- '@aws-sdk/util-body-length-browser': 3.188.0- '@aws-sdk/util-body-length-node': 3.208.0- '@aws-sdk/util-defaults-mode-browser': 3.222.0- '@aws-sdk/util-defaults-mode-node': 3.222.0- '@aws-sdk/util-endpoints': 3.222.0- '@aws-sdk/util-retry': 3.222.0- '@aws-sdk/util-user-agent-browser': 3.222.0- '@aws-sdk/util-user-agent-node': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- '@aws-sdk/util-utf8-node': 3.208.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/client-sso/3.222.0:- resolution: {integrity: sha512-ISJRxT7DLaBwUJSdQoLS/7rWLoYGv6b3C7vTm4hQwDz83+JcdfDODir4iR0REhZfisce8Er6S06WtwAIyokzpQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-crypto/sha256-browser': 2.0.0- '@aws-crypto/sha256-js': 2.0.0- '@aws-sdk/config-resolver': 3.222.0- '@aws-sdk/fetch-http-handler': 3.222.0- '@aws-sdk/hash-node': 3.222.0- '@aws-sdk/invalid-dependency': 3.222.0- '@aws-sdk/middleware-content-length': 3.222.0- '@aws-sdk/middleware-endpoint': 3.222.0- '@aws-sdk/middleware-host-header': 3.222.0- '@aws-sdk/middleware-logger': 3.222.0- '@aws-sdk/middleware-recursion-detection': 3.222.0- '@aws-sdk/middleware-retry': 3.222.0- '@aws-sdk/middleware-serde': 3.222.0- '@aws-sdk/middleware-stack': 3.222.0- '@aws-sdk/middleware-user-agent': 3.222.0- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/node-http-handler': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/smithy-client': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- '@aws-sdk/util-base64': 3.208.0- '@aws-sdk/util-body-length-browser': 3.188.0- '@aws-sdk/util-body-length-node': 3.208.0- '@aws-sdk/util-defaults-mode-browser': 3.222.0- '@aws-sdk/util-defaults-mode-node': 3.222.0- '@aws-sdk/util-endpoints': 3.222.0- '@aws-sdk/util-retry': 3.222.0- '@aws-sdk/util-user-agent-browser': 3.222.0- '@aws-sdk/util-user-agent-node': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- '@aws-sdk/util-utf8-node': 3.208.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/client-sts/3.222.0:- resolution: {integrity: sha512-CZ2eY6aM5YnMzNIvy8t03tr2/iMljkWA4YbMV4lc8HN9qGEh/zUQcNQU2og8nVuo8KjL/4fXXllyUCS8odPnDQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-crypto/sha256-browser': 2.0.0- '@aws-crypto/sha256-js': 2.0.0- '@aws-sdk/config-resolver': 3.222.0- '@aws-sdk/credential-provider-node': 3.222.0- '@aws-sdk/fetch-http-handler': 3.222.0- '@aws-sdk/hash-node': 3.222.0- '@aws-sdk/invalid-dependency': 3.222.0- '@aws-sdk/middleware-content-length': 3.222.0- '@aws-sdk/middleware-endpoint': 3.222.0- '@aws-sdk/middleware-host-header': 3.222.0- '@aws-sdk/middleware-logger': 3.222.0- '@aws-sdk/middleware-recursion-detection': 3.222.0- '@aws-sdk/middleware-retry': 3.222.0- '@aws-sdk/middleware-sdk-sts': 3.222.0- '@aws-sdk/middleware-serde': 3.222.0- '@aws-sdk/middleware-signing': 3.222.0- '@aws-sdk/middleware-stack': 3.222.0- '@aws-sdk/middleware-user-agent': 3.222.0- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/node-http-handler': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/smithy-client': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- '@aws-sdk/util-base64': 3.208.0- '@aws-sdk/util-body-length-browser': 3.188.0- '@aws-sdk/util-body-length-node': 3.208.0- '@aws-sdk/util-defaults-mode-browser': 3.222.0- '@aws-sdk/util-defaults-mode-node': 3.222.0- '@aws-sdk/util-endpoints': 3.222.0- '@aws-sdk/util-retry': 3.222.0- '@aws-sdk/util-user-agent-browser': 3.222.0- '@aws-sdk/util-user-agent-node': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- '@aws-sdk/util-utf8-node': 3.208.0- fast-xml-parser: 4.0.11- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/config-resolver/3.222.0:- resolution: {integrity: sha512-rG/Yh0R+GQe86ofEb24QAjQ19tHb4HMCyCuMZUZCsIdgNmUfcaH21Ug5s7pJrAfEy/F2gwxs+VfBeXKjT0MqSQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/signature-v4': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-config-provider': 3.208.0- '@aws-sdk/util-middleware': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/credential-provider-env/3.222.0:- resolution: {integrity: sha512-xV6cmJ9zMi8nWySqBv1ze/EFlzXEfazu3i/T/5MpOufPvuGpXTQ3/PDEbC6mKBtvomoQ0fonc/cZrix7YcJV0Q==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/credential-provider-imds/3.222.0:- resolution: {integrity: sha512-n090ouw5AFhb0EfzRElUTmqCNOQ1zjlxau30oVM7+qKtXH85hEGMQOoRQAl9ch/pXcbjKLh1mbUhmonR97/Kvw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/credential-provider-ini/3.222.0:- resolution: {integrity: sha512-KtOYx0nGwu8466G7oWtFU2u3uKZziwV14xeoYNysnMn77nPE7PtlC3WOzE2p3tSGwfVnaGlmYqWEN4+QrY1zpQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/credential-provider-env': 3.222.0- '@aws-sdk/credential-provider-imds': 3.222.0- '@aws-sdk/credential-provider-sso': 3.222.0- '@aws-sdk/credential-provider-web-identity': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/credential-provider-node/3.222.0:- resolution: {integrity: sha512-aWolcqDLgxL7ugyF5954/DrqcAl81PzwZ+ik2IMPCHOGWmsIWoecxMmXXbukrhzIegmVc7DwmN1qmT8KsURj0Q==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/credential-provider-env': 3.222.0- '@aws-sdk/credential-provider-imds': 3.222.0- '@aws-sdk/credential-provider-ini': 3.222.0- '@aws-sdk/credential-provider-process': 3.222.0- '@aws-sdk/credential-provider-sso': 3.222.0- '@aws-sdk/credential-provider-web-identity': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/credential-provider-process/3.222.0:- resolution: {integrity: sha512-IgEk8Tne1b2v2k/wVjuddKi+HEAFJWUoEcvLCnYRdlVX5l+Nnatw8vGYb+gTi9X7nKNqEGfMbifKCFoePKjC0Q==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/credential-provider-sso/3.222.0:- resolution: {integrity: sha512-2bl4lapUNDk95tVyTvbaYYSczxpC5WCFW7mmf8HGxTau4a6oELRsFaKeNzyuaL/IQ8hYhaVWR7nUCxIEqVngWw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/client-sso': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/token-providers': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/credential-provider-web-identity/3.222.0:- resolution: {integrity: sha512-dImqTEWt38nVcDe/wQqHWJ+R2zyNqVKwejfslgbH2YilUnDU43xq2KJhNe4s+YhCB6tHOTkbNnpZo7vPV5Zxog==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/eventstream-codec/3.222.0:- resolution: {integrity: sha512-sxLpo3NYrvj8CnTkpLsb2uXvUU8jnAG5q22HIBxBrpeFzgvUA9uIfPD7yPZhe4+/C7v+ER19ysXetKjiAOrQMA==}- dependencies:- '@aws-crypto/crc32': 2.0.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-hex-encoding': 3.201.0- tslib: 2.4.1- dev: false-- /@aws-sdk/eventstream-serde-browser/3.222.0:- resolution: {integrity: sha512-owwgmkpuLM7UtNPRZjvCOp5fo6MKY8avygQA0VMsbQSCq1DJFpmDsk7yTRB+n7jQuoDGn8uVxER3S0oS/Y/xVQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/eventstream-serde-universal': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/eventstream-serde-config-resolver/3.222.0:- resolution: {integrity: sha512-zb8vMSbBEjUrHKpA2bZdAqfYp8oCsWgeBPOt0XJx+y6lzy67zyADs97Grl+lyZAoswao/zc2sxgm9yqcMDt7lQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/eventstream-serde-node/3.222.0:- resolution: {integrity: sha512-rfDrTxcsYL0ZKc5MnoqbDTa0oQFiK7qTJOnQ7sASooexqoKTn3wVq68J7TZddbImmH/ENpkU+O0hcGuiwE9Ucg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/eventstream-serde-universal': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/eventstream-serde-universal/3.222.0:- resolution: {integrity: sha512-+/Fc7+ZPuD6SwphYcuLJ/GU0RmVzG/M0dUYs1JL/JQJ8dkJ0AlH1fH3L5Fhm2RO/ACkE28kXAuyZ40TLeRLRNA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/eventstream-codec': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/fetch-http-handler/3.222.0:- resolution: {integrity: sha512-0PWnOp47mNfwBFEZhuBpz5A+66jbvb2ySidnM5vWHRxu5yN7rCJEdEMSJKDzR6nH3GLZ9dHoOxTzQy21NoDTtA==}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/querystring-builder': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-base64': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/hash-blob-browser/3.222.0:- resolution: {integrity: sha512-Z6y3JZPNp+os9vZdvsNkM6mIjDzeZNr9MYkQslANhGZ9WgQrzuI7xZN6XAyR83OGRCrDCorZdX+nnl5mzY1VwQ==}- dependencies:- '@aws-sdk/chunked-blob-reader': 3.188.0- '@aws-sdk/chunked-blob-reader-native': 3.208.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/hash-node/3.222.0:- resolution: {integrity: sha512-Fw0acblG0LQT9tfD2/4j98QHNq+Crotig/M1/zPDcVoGb8OBHd2442zpeA0fYYjGnGGhy9psRHdJrjZGj1vDUw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-buffer-from': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/hash-stream-node/3.222.0:- resolution: {integrity: sha512-PO/N0PsgJjRiH9WKSOnGjDP9tWNjwSvUezicT8ItWgkk7npd278MAe7G692TLACgf6sJr2jGQbs6xzZHq0/3Zg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/invalid-dependency/3.222.0:- resolution: {integrity: sha512-tWJWWTcL7DrhFiDmPBvLaw2lopHJMsF4Uj52yIQJskwd2IeBOxjl30zLo/oidmk73IFUB7TCObc85zJrtt/KcQ==}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/is-array-buffer/3.201.0:- resolution: {integrity: sha512-UPez5qLh3dNgt0DYnPD/q0mVJY84rA17QE26hVNOW3fAji8W2wrwrxdacWOxyXvlxWsVRcKmr+lay1MDqpAMfg==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/lib-storage/3.222.0_@[email protected]:- resolution: {integrity: sha512-f5bAtkT+FqPrYNAT6ZcVj8yXEFdCY6/Pf9buOz/3xqICn5oJzFotkXel7lrFptKfnzVtbwZvrti38h/tl89Erg==}- engines: {node: '>=14.0.0'}- peerDependencies:- '@aws-sdk/abort-controller': ^3.0.0- '@aws-sdk/client-s3': ^3.0.0- dependencies:- '@aws-sdk/client-s3': 3.222.0- '@aws-sdk/middleware-endpoint': 3.222.0- '@aws-sdk/smithy-client': 3.222.0- buffer: 5.6.0- events: 3.3.0- stream-browserify: 3.0.0- tslib: 2.4.1- dev: false-- /@aws-sdk/md5-js/3.222.0:- resolution: {integrity: sha512-LI44dy+ECCL+vsIYJ/Ot4rNOl3Vpa4Nv8zxireKcQGmn547Cb6i3n/bEi/DkcfgHv6R84qOtOXsxt/ILuWNQ/g==}- dependencies:- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-utf8-browser': 3.188.0- '@aws-sdk/util-utf8-node': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-bucket-endpoint/3.222.0:- resolution: {integrity: sha512-TP4mjEWsQ/JsACAFDUlltl/0sAe5dxqdhBDAPO6LHRHvROz2oYVjZwvcaK4F9x8QLWh09H0Sw501SndFK2+o3w==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-arn-parser': 3.208.0- '@aws-sdk/util-config-provider': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-content-length/3.222.0:- resolution: {integrity: sha512-Wlah+nrPhcq5qcwHiK1ymVRAvcKjV2py2RXhJsNZWgYwphdt5RHaZHPDKoodI27alrDJVyBBQWGzIm/Ag1bypQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-endpoint/3.222.0:- resolution: {integrity: sha512-e1bM+CvuUWmBdydQpV5sF8cxZrXQ++0G5s1M7pLimKdWXQvCQ1ZEwA3LLi2IWomXmS9a3BaH3iKAf87RTWjIXw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/middleware-serde': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/signature-v4': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/url-parser': 3.222.0- '@aws-sdk/util-config-provider': 3.208.0- '@aws-sdk/util-middleware': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-expect-continue/3.222.0:- resolution: {integrity: sha512-/nTCLXrau8jEyehsD7QM49gJQ6kmzQGw7plPDJzdFakfAwb2b/jLJ/Hj/ZSaaLWWEXAtZBiPzVXUJltPDoXv5g==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-flexible-checksums/3.222.0:- resolution: {integrity: sha512-P900+KLMUg0eOf75FK/wH/Gjz3rkNtB6iBfAG2Xg4DY5+78qh40deG0y0ZvtkHQP8YOqjLF3QMbEA90YXo4x9Q==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-crypto/crc32': 2.0.0- '@aws-crypto/crc32c': 2.0.0- '@aws-sdk/is-array-buffer': 3.201.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-host-header/3.222.0:- resolution: {integrity: sha512-R4STwHkWgdxMRqOy6riYfXepsQURR5YhK6psPFZHkBYByIRc9JxJdLA0qZcfLRriQIAGmqEO2WWsqRmr8nkbBw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-location-constraint/3.222.0:- resolution: {integrity: sha512-srrAkOHuvpXeaMG9a6kvfYrhzFFX/plBaZATy8iW6ethgvG1qdPeFj4ZVS9Eisx+13NbGFtydc1WkBZfx2nUWg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-logger/3.222.0:- resolution: {integrity: sha512-eAxGCcNXl1APMOFbkUaAC6pNBPUbajyGqsDf6GLdlrYHrMVAtJdYd988ov6C52h7k6iDZ+OPHwv8dwUz+PRfpw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-recursion-detection/3.222.0:- resolution: {integrity: sha512-4JRVs7y5JDXXjc5fkz0FCZJt/0HTP2vh3QyZsWRbCYesw2cWVqQlp/fUXp8w5KGqm5nYkTF4e5SQ7Ca8powJNA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-retry/3.222.0:- resolution: {integrity: sha512-8FZpGuJDtntjXZ/mfJ9EdP5mYiUunQHEmk6OERk3h4XW3D/e97denwDAcBBIK8iYYGic5PoWF4KgTFJWs1YOcw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/service-error-classification': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-middleware': 3.222.0- tslib: 2.4.1- uuid: 8.3.2- dev: false-- /@aws-sdk/middleware-sdk-s3/3.222.0:- resolution: {integrity: sha512-GCgbzWy3Dn9+dz/ZZjS5OiJ+feighHfMt461r1zjHNUXnb2tEf5kU+P80d3WqG8er4RRQg+Ao49SatOKgPcrlA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/middleware-bucket-endpoint': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-arn-parser': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-sdk-sts/3.222.0:- resolution: {integrity: sha512-YbL4lTBFgqyL2Ob+dMyw/UNd5K9IOnZHHxjpwWlYKMrfT+pp2bvrr7XUbRHnxSoDsOg9bf6IyTSRVnVxP4psJg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/middleware-signing': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/signature-v4': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-serde/3.222.0:- resolution: {integrity: sha512-UoeLbgCJB07dX8tRByR0KzZaOwCoIyXj/SfFTuOhBUjkpKwqFCam/hofDlK3FR6kvl+xiURv57W/FtKV/9TDHg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-signing/3.222.0:- resolution: {integrity: sha512-MwMw2Lz7SBOniAc0slWXt65ocqL+E956bdW+LOvBin6OgkVWaLRbWI9nOzA6B2d8b65fCGEc+N15i0UdrEf+MQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/signature-v4': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-middleware': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-ssec/3.222.0:- resolution: {integrity: sha512-WThCx/+UG4gIyqx0G3QKD1RM71+adh9Jv3Sh/KiS07Jjm+pb71wW+RRzBuNyhdjwB3aoKC/YKW8eFQg6M7eaQg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-stack/3.222.0:- resolution: {integrity: sha512-ASKbstAKbOBUZhFhst6/NCr11x94BDBiQn2zDs2Lvjo89n2efMeb4wEr17VCMZVeKI6ojtPFa1ZVLsH8AOn4Yw==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/middleware-user-agent/3.222.0:- resolution: {integrity: sha512-fjdxCRIAhOTsI9OcEKwJp4lhsvyCSXoeYV49mO/bdG6pFyFRm3Jezx7TNVNeLTGuMHTTTvRrCTF8sgE5t17Pzw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/node-config-provider/3.222.0:- resolution: {integrity: sha512-hrbw90LlVa4xJJc4WiyAfaPMY/sJubSeTwuxTChLsFOavr6hSMCwLASrWmOiKRIj5hKdSfEA87n/q+DnKHlA8A==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/node-http-handler/3.222.0:- resolution: {integrity: sha512-k3WqxUgZzGbiCQt1HyzDGlRzq8muGIOWZs9T3HtCa5LtACvl0qlNmiwCc+C/o7GRLyC9FuWkP3lOW6MiAFQUcA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/abort-controller': 3.222.0- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/querystring-builder': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/property-provider/3.222.0:- resolution: {integrity: sha512-rEqAgQ7itmB7GB+WWLgyT7/YWJkjEBCfggxycccChWAeqg+gjpstIiGX2BjP2K/wnzwE0D91JsozSXcQIDOtNQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/protocol-http/3.222.0:- resolution: {integrity: sha512-Zj+ytEgrOagCE7yczjdDan7W+1a0OL5DPAx69Z00NxGoBI2h0GRZD28dRYb3Pzs5/Ft4KbCedH/RUnyaYjaZxw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/querystring-builder/3.222.0:- resolution: {integrity: sha512-qrNUGDyDp9yVQMnBbz1T5YBQkA/u6D5o0PPzSwfZ9azdAcBLjHOEfsBrKhxP+K92L/nilbnmY89KrjMR8+BNtw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-uri-escape': 3.201.0- tslib: 2.4.1- dev: false-- /@aws-sdk/querystring-parser/3.222.0:- resolution: {integrity: sha512-3KfkCA/753PlF5QqhGuQ7u+NOgLyiBFeV8R8ut/pfBmG8fF6l3RKrkbcu+87QpqXntRzG+RLHDqS7ryT3B2ICg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/service-error-classification/3.222.0:- resolution: {integrity: sha512-Dn/WGtm+v5nney0CaYZjdOtJmdEuI8EQiQ5J3eQ3G0jjT6mr1/tCajsNpq3ZqHXiwLtydwaVvsL3AKXn+oxFVA==}- engines: {node: '>=14.0.0'}- dev: false-- /@aws-sdk/shared-ini-file-loader/3.222.0:- resolution: {integrity: sha512-2dowzMXjvIf5gwX5gNCwpv/TzAbbXxrId3zYJgPdEtApsa7NxyFs5MfnHt1zZI6P3YORGheRnNUK9RUYOPKHgA==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/signature-v4-multi-region/3.222.0:- resolution: {integrity: sha512-SF6Qi0KW69OzgLbA9q6AsZNFQCA+DI66SnAjW774sAE6aQyJmCbUsxETk37XodSymXzDOEDDC6QoY64HUoSoVw==}- engines: {node: '>=14.0.0'}- peerDependencies:- '@aws-sdk/signature-v4-crt': ^3.118.0- peerDependenciesMeta:- '@aws-sdk/signature-v4-crt':- optional: true- dependencies:- '@aws-sdk/protocol-http': 3.222.0- '@aws-sdk/signature-v4': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-arn-parser': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/signature-v4/3.222.0:- resolution: {integrity: sha512-2qQZuKqx56b2uN2rdjdKL6u0Cvk82uTGNtIuetmySY9xPEAljSBdriaxTqNqK9Gs3M4obG22alUK4a85uwqS3g==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/is-array-buffer': 3.201.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-hex-encoding': 3.201.0- '@aws-sdk/util-middleware': 3.222.0- '@aws-sdk/util-uri-escape': 3.201.0- tslib: 2.4.1- dev: false-- /@aws-sdk/smithy-client/3.222.0:- resolution: {integrity: sha512-4dnU7TvwKxVuOWduvFGClYe0EgNov5Ke1ef7O1bdKaj5MmlH6wBDgGJM4NKREBFapC2dUXkoPtwsihtYBci1Bw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/middleware-stack': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/token-providers/3.222.0:- resolution: {integrity: sha512-VlLQDWjwKm6WezheyZ+wxfEw+X05s1NSZLY5N5HYE6+MSPcqllKCp0ArLcK1MUs68s/4TIOVKQrNeeJm/bLEPw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/client-sso-oidc': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/shared-ini-file-loader': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- transitivePeerDependencies:- - aws-crt- dev: false-- /@aws-sdk/types/3.222.0:- resolution: {integrity: sha512-yXRYptInkfEFaOvWFxlRXsRh9jWOmQc1sZeKqjfx2UCtzNJ7ebedN0VfCz4SaDotcw9Q4JWuN66qhRMJjDx7/w==}- engines: {node: '>=14.0.0'}- dev: false-- /@aws-sdk/url-parser/3.222.0:- resolution: {integrity: sha512-1+QbVdT/phYDb5JDQRJWoZeCujkXaI5m8z3bIiPxcRRY3NPuluDGrfX3kfnFen5s9QGByLvJxWKWZS+i+iUFRg==}- dependencies:- '@aws-sdk/querystring-parser': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-arn-parser/3.208.0:- resolution: {integrity: sha512-QV4af+kscova9dv4VuHOgH8wEr/IIYHDGcnyVtkUEqahCejWr1Kuk+SBK0xMwnZY5LSycOtQ8aeqHOn9qOjZtA==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-base64/3.208.0:- resolution: {integrity: sha512-PQniZph5A6N7uuEOQi+1hnMz/FSOK/8kMFyFO+4DgA1dZ5pcKcn5wiFwHkcTb/BsgVqQa3Jx0VHNnvhlS8JyTg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/util-buffer-from': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-body-length-browser/3.188.0:- resolution: {integrity: sha512-8VpnwFWXhnZ/iRSl9mTf+VKOX9wDE8QtN4bj9pBfxwf90H1X7E8T6NkiZD3k+HubYf2J94e7DbeHs7fuCPW5Qg==}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-body-length-node/3.208.0:- resolution: {integrity: sha512-3zj50e5g7t/MQf53SsuuSf0hEELzMtD8RX8C76f12OSRo2Bca4FLLYHe0TZbxcfQHom8/hOaeZEyTyMogMglqg==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-buffer-from/3.208.0:- resolution: {integrity: sha512-7L0XUixNEFcLUGPeBF35enCvB9Xl+K6SQsmbrPk1P3mlV9mguWSDQqbOBwY1Ir0OVbD6H/ZOQU7hI/9RtRI0Zw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/is-array-buffer': 3.201.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-config-provider/3.208.0:- resolution: {integrity: sha512-DSRqwrERUsT34ug+anlMBIFooBEGwM8GejC7q00Y/9IPrQy50KnG5PW2NiTjuLKNi7pdEOlwTSEocJE15eDZIg==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-defaults-mode-browser/3.222.0:- resolution: {integrity: sha512-+dGsp59lrEkDmK7OO5ecMYasrTGIKacFHjqZ6aqmbn1xtcUd/o3Qe7g5YSRXMGwtZ6xhvBD+NJLkEERI7U7cMw==}- engines: {node: '>= 10.0.0'}- dependencies:- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/types': 3.222.0- bowser: 2.11.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-defaults-mode-node/3.222.0:- resolution: {integrity: sha512-W/duYMtmCCWdzHP+yscBB6yrARgAqWpFdxgBvMSlT8TjOTrh/F+aj4NPamiNMeUfqfMFGnboYfyWRr1avkcAGQ==}- engines: {node: '>= 10.0.0'}- dependencies:- '@aws-sdk/config-resolver': 3.222.0- '@aws-sdk/credential-provider-imds': 3.222.0- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/property-provider': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-endpoints/3.222.0:- resolution: {integrity: sha512-qujJQv8lFysAr1lOlBTJhz7949NZyq5cj74Q9dR99AcAMXXeI9CQayPKH7477AnXRGOTMahZ3mV0HZ1bCJoNTw==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-hex-encoding/3.201.0:- resolution: {integrity: sha512-7t1vR1pVxKx0motd3X9rI3m/xNp78p3sHtP5yo4NP4ARpxyJ0fokBomY8ScaH2D/B+U5o9ARxldJUdMqyBlJcA==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-locate-window/3.208.0:- resolution: {integrity: sha512-iua1A2+P7JJEDHVgvXrRJSvsnzG7stYSGQnBVphIUlemwl6nN5D+QrgbjECtrbxRz8asYFHSzhdhECqN+tFiBg==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-middleware/3.222.0:- resolution: {integrity: sha512-Y4BPtSa+6+qvg6OVW6RrdDx0OADfWa2Uxsxqdozpdnx2OQY0q+1diqsNgFMV+FIvdXqffE147KG7roG+/AfPeA==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-retry/3.222.0:- resolution: {integrity: sha512-poiWqhiTjExUYKxgN5tRAvKNN23lGHn9ZJAGOu8sY2GHb6gatMfj46k31om3KrM3YGRuyXAo8YXRhA+QZ5CX0g==}- engines: {node: '>= 14.0.0'}- dependencies:- '@aws-sdk/service-error-classification': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-stream-browser/3.222.0:- resolution: {integrity: sha512-GW9Y1/pLHS7WYHHdswcDd4vaM9mzxDwewcDVujCd/L9MRbG1nA/wfCL7hAAXT1AN2GbGfbfT+jjHQqzexpKBnA==}- dependencies:- '@aws-sdk/fetch-http-handler': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-base64': 3.208.0- '@aws-sdk/util-hex-encoding': 3.201.0- '@aws-sdk/util-utf8-browser': 3.188.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-stream-node/3.222.0:- resolution: {integrity: sha512-iMwKG+RaGVAjzXDuzmMl63SnN6qVc+0VbbfaKW1eIK9Ihr5mko3GuYAFqKaECSQ+XdMNuMSVXzphveKw6t2zwg==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/node-http-handler': 3.222.0- '@aws-sdk/types': 3.222.0- '@aws-sdk/util-buffer-from': 3.208.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-uri-escape/3.201.0:- resolution: {integrity: sha512-TeTWbGx4LU2c5rx0obHeDFeO9HvwYwQtMh1yniBz00pQb6Qt6YVOETVQikRZ+XRQwEyCg/dA375UplIpiy54mA==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-user-agent-browser/3.222.0:- resolution: {integrity: sha512-DREMeL0XHl4QIS2GVSHFwVH4mJZ+Dr04R3U8WfiMktXdA93j5tDMJpU3+PNaCZPeaqz2QNwrVSBWKwbwA357zQ==}- dependencies:- '@aws-sdk/types': 3.222.0- bowser: 2.11.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-user-agent-node/3.222.0:- resolution: {integrity: sha512-BMRMrPXL/HS3dSha9vcABkoANluKjB0pH78bc659EY2WUj9wCZdbUNQpACiYx8bwm7xKSxugCkmPd6NLWXUURw==}- engines: {node: '>=14.0.0'}- peerDependencies:- aws-crt: '>=1.0.0'- peerDependenciesMeta:- aws-crt:- optional: true- dependencies:- '@aws-sdk/node-config-provider': 3.222.0- '@aws-sdk/types': 3.222.0- tslib: 2.4.1- dev: false-- /@aws-sdk/util-utf8-browser/3.188.0:- resolution: {integrity: sha512-jt627x0+jE+Ydr9NwkFstg3cUvgWh56qdaqAMDsqgRlKD21md/6G226z/Qxl7lb1VEW2LlmCx43ai/37Qwcj2Q==}- dependencies:- tslib: 2.4.1- dev: false-- /@aws-sdk/util-utf8-node/3.208.0:- resolution: {integrity: sha512-jKY87Acv0yWBdFxx6bveagy5FYjz+dtV8IPT7ay1E2WPWH1czoIdMAkc8tSInK31T6CRnHWkLZ1qYwCbgRfERQ==}- engines: {node: '>=14.0.0'}- dependencies:- '@aws-sdk/util-buffer-from': 3.208.0+ eslint-config-prettier: 8.5.0+ eslint-plugin-svelte3: 4.0.0+ flowbite: 1.5.4+ flowbite-svelte: 0.28.0+ js-cookie: 3.0.1+ js-yaml: 4.1.0+ p-limit: 4.0.0+ postcss: 8.4.19+ prettier: 2.7.1+ prettier-plugin-svelte: 2.8.1+ socket.io-client: 4.5.3+ svelte: 3.53.1+ svelte-check: 2.9.2+ svelte-preprocess: 4.10.7+ svelte-select: 4.4.7+ sveltekit-i18n: 2.2.2+ tailwindcss: 3.2.4+ tailwindcss-scrollbar: 0.1.0tslib: 2.4.1- dev: false-- /@aws-sdk/util-waiter/3.222.0:- resolution: {integrity: sha512-/07RkfxvDncsMeQ+GhigPdiSRd2v/1FJoCV4a5e9XDI1ZSMvUKm36wFqw5Bzts+AUY8f4HOPpGI9ZQeNb7u27Q==}- engines: {node: '>=14.0.0'}+ typescript: 4.9.3+ vite: 3.2.4dependencies:- '@aws-sdk/abort-controller': 3.222.0- '@aws-sdk/types': 3.222.0+ '@sentry/svelte': [email protected]+ '@sentry/tracing': 7.21.1+ '@sveltejs/adapter-static': 1.0.0-next.48+ '@tailwindcss/typography': [email protected]+ cuid: 2.1.8+ daisyui: 2.41.0_2lwn2upnx27dqeg6hqdu7sq75m+ dayjs: 1.11.6+ js-cookie: 3.0.1+ js-yaml: 4.1.0+ p-limit: 4.0.0+ socket.io-client: 4.5.3+ svelte-select: 4.4.7+ sveltekit-i18n: [email protected]+ devDependencies:+ '@floating-ui/dom': 1.0.6+ '@playwright/test': 1.28.0+ '@popperjs/core': 2.11.6+ '@sveltejs/kit': [email protected][email protected]+ '@types/js-cookie': 3.0.2+ '@typescript-eslint/eslint-plugin': 5.44.0_fnsv2sbzcckq65bwfk7a5xwslu+ '@typescript-eslint/parser': 5.44.0_hsf322ms6xhhd4b5ne6lb74y4a+ autoprefixer: [email protected]+ classnames: 2.3.2+ eslint: 8.28.0+ eslint-config-prettier: [email protected]+ eslint-plugin-svelte3: 4.0.0_xgu65rlhscpnxffotiaicv6m5i+ flowbite: 1.5.4+ flowbite-svelte: 0.28.0+ postcss: 8.4.19+ prettier: 2.7.1+ prettier-plugin-svelte: 2.8.1_nryolsexf6k3znhuh4uzpugsem+ svelte: 3.53.1+ svelte-check: 2.9.2_mocwzvuqzrhb37u7s4hjvvzl3i+ svelte-preprocess: 4.10.7_mvbmsfnr3ibpjsbee6imjcb33m+ tailwindcss: [email protected]+ tailwindcss-scrollbar: [email protected]tslib: 2.4.1- dev: false+ typescript: 4.9.3+ vite: 3.2.4- /@aws-sdk/xml-builder/3.201.0:- resolution: {integrity: sha512-brRdB1wwMgjWEnOQsv7zSUhIQuh7DEicrfslAqHop4S4FtSI3GQAShpQqgOpMTNFYcpaWKmE/Y1MJmNY7xLCnw==}- engines: {node: '>=14.0.0'}- dependencies:- tslib: 2.4.1- dev: false+packages:/@babel/code-frame/7.18.6:resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==}@@ -1466,12 +392,11 @@ packages:- typescriptdev: false- /@breejs/ts-worker/2.0.0_tb2zv7uvvsbdrpzpw5lxnvx3z4:+ /@breejs/ts-worker/2.0.0_rcqzk6hu7gtwazvbznfthbptra:resolution: {integrity: sha512-6anHRcmgYlF7mrm/YVRn6rx2cegLuiY3VBxkkimOTWC/dVQeH336imVSuIKEGKTwiuNTPr2hswVdDSneNuXg3A==}engines: {node: '>= 12.11'}peerDependencies:bree: '>=9.0.0'- tsconfig-paths: '>= 4'dependencies:bree: 9.1.3ts-node: 10.8.2_awa2wsr5thmg3i7jqycphctjfq@@ -1494,7 +419,7 @@ packages:resolution: {integrity: sha512-lhc/XLith28QdW0HpHZvZKkorWgmCNT7sVelMHDj3HFdTfdqkwEKvT+aXVQtNAmCC39VJhunDkWhONWB7335mg==}dependencies:'@esbuild-kit/core-utils': 3.0.0- get-tsconfig: 4.2.0+ get-tsconfig: 4.3.0dev: true/@esbuild-kit/core-utils/3.0.0:@@ -1508,7 +433,7 @@ packages:resolution: {integrity: sha512-afmtLf6uqxD5IgwCzomtqCYIgz/sjHzCWZFvfS5+FzeYxOURPUo4QcHtqJxbxWOMOogKriZanN/1bJQE/ZL93A==}dependencies:'@esbuild-kit/core-utils': 3.0.0- get-tsconfig: 4.2.0+ get-tsconfig: 4.3.0dev: true/@esbuild/android-arm/0.15.15:@@ -1803,7 +728,7 @@ packages:/@fastify/cors/8.2.0:resolution: {integrity: sha512-qDgwpmg6C4D0D3nh8MTMuRXWyEwPnDZDBODaJv90FP2o9ukbahJByW4FtrM5Bpod5KbTf1oIExBmpItbUTQmHg==}dependencies:- fastify-plugin: 4.3.0+ fastify-plugin: 4.4.0mnemonist: 0.39.5dev: false@@ -2006,21 +931,9 @@ packages:playwright-core: 1.28.0dev: true- /@playwright/test/1.28.1:- resolution: {integrity: sha512-xN6spdqrNlwSn9KabIhqfZR7IWjPpFK1835tFNgjrlysaSezuX8PYUwaz38V/yI8TJLG9PkAMEXoHRXYXlpTPQ==}- engines: {node: '>=14'}- hasBin: true- dependencies:- '@types/node': 18.11.18- playwright-core: 1.28.1- dev: true-- /@polka/url/1.0.0-next.21:- resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}- dev: true-/@popperjs/core/2.11.6:resolution: {integrity: sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==}+ dev: true/@prisma/client/[email protected]:resolution: {integrity: sha512-M1+NNrMzqaOIxT7PBGcTs3IZo7d1EW/+gVQd4C4gUgWBDGgD9AcIeZnUSidgWClmpMSgVUdnVORjsWWGUameYA==}@@ -2177,8 +1090,8 @@ packages:'@hapi/hoek': 9.3.0dev: true- /@sideway/formula/3.0.0:- resolution: {integrity: sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==}+ /@sideway/formula/3.0.1:+ resolution: {integrity: sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==}dev: true/@sideway/pinpoint/2.0.0:@@ -2206,6 +1119,7 @@ packages:/@sveltejs/adapter-static/1.0.0-next.48:resolution: {integrity: sha512-Z5Z+QZOav6D0KDeU3ReksGERJg/sX1k5OKWWXyQ11OwGErEEwSXHYRUyjaBmZEPeGzpVVGwwMUK8YWJlG/MKeA==}+ dev: false/@sveltejs/kit/[email protected][email protected]:resolution: {integrity: sha512-jHSa74F7k+hC+0fof75g/xm/+1M5sM66Qt6v8eLLMSgjkp36Lb5xOioBhbl6w0NYoE5xysLsBWuu+yHytfvCBA==}@@ -2227,33 +1141,6 @@ packages:- supports-colordev: true- /@sveltejs/kit/[email protected][email protected]:- resolution: {integrity: sha512-PiKEr55L/uJyMKvDPdyoa5MlAYQwdgs8HLMbr28YcCBmhw/v6V7gutKOKdqeXc3YwKEFVS3z7TvW6c7eDokJdQ==}- engines: {node: '>=16.14'}- hasBin: true- requiresBuild: true- peerDependencies:- svelte: ^3.44.0- vite: ^3.2.0- dependencies:- '@sveltejs/vite-plugin-svelte': [email protected][email protected]- '@types/cookie': 0.5.1- cookie: 0.5.0- devalue: 4.2.0- kleur: 4.1.5- magic-string: 0.27.0- mime: 3.0.0- sade: 1.8.1- set-cookie-parser: 2.5.1- sirv: 2.0.2- svelte: 3.53.1- tiny-glob: 0.2.9- undici: 5.13.0- vite: 3.2.4- transitivePeerDependencies:- - supports-color- dev: true-/@sveltejs/vite-plugin-svelte/[email protected][email protected]:resolution: {integrity: sha512-cFRfEdztubtj1c/rYh7ArK7XCfFJn6wG6+J8/e9amFsKtEJILovoBrK0/mxt1AjPQg0vaX+fHPKvhx+q8mTPaQ==}engines: {node: ^14.18.0 || >= 16}@@ -2276,25 +1163,6 @@ packages:- supports-colordev: true- /@sveltejs/vite-plugin-svelte/[email protected][email protected]:- resolution: {integrity: sha512-6QupI/jemMfK+yI2pMtJcu5iO2gtgTfcBdGwMZZt+lgbFELhszbDl6Qjh000HgAV8+XUA+8EY8DusOFk8WhOIg==}- engines: {node: ^14.18.0 || >= 16}- peerDependencies:- svelte: ^3.44.0- vite: ^3.0.0- dependencies:- debug: 4.3.4- deepmerge: 4.2.2- kleur: 4.1.5- magic-string: 0.26.7- svelte: 3.53.1- svelte-hmr: [email protected]- vite: 3.2.4- vitefu: [email protected]- transitivePeerDependencies:- - supports-color- dev: true-/@sveltekit-i18n/base/[email protected]:resolution: {integrity: sha512-F8gqG2+KAOeT0o2wYlUrW3TRCX7zaD7rBy/1CEVNw0irfw9TgFf/ODmhubkHHT3+6Zk+SMz8RNgeuffBfAMbJw==}peerDependencies:@@ -2360,33 +1228,14 @@ packages:resolution: {integrity: sha512-LiMQ6EOPob/4yUL66SZzu6Yh77cbzJFYll+ZfaPiPPFswtIlA/Fs1MzdKYA7JApHU49zQTbJGX3PDmCpIdDBRQ==}dev: true- /@types/cacheable-request/6.0.2:- resolution: {integrity: sha512-B3xVo+dlKM6nnKTcmm5ZtY/OL8bOAOd2Olee9M1zft65ox50OzjEHW91sDiU9j6cvW8Ejg1/Qkf4xd2kugApUA==}- dependencies:- '@types/http-cache-semantics': 4.0.1- '@types/keyv': 3.1.4- '@types/node': 18.7.15- '@types/responselike': 1.0.0- dev: false-/@types/cookie/0.4.1:resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==}dev: false- /@types/cookie/0.5.1:- resolution: {integrity: sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==}- dev: true-/@types/cors/2.8.12:resolution: {integrity: sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==}dev: false- /@types/fs-extra/9.0.13:- resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}- dependencies:- '@types/node': 18.11.18- dev: false-/@types/http-cache-semantics/4.0.1:resolution: {integrity: sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==}dev: false@@ -2399,10 +1248,6 @@ packages:resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==}dev: true- /@types/json-buffer/3.0.0:- resolution: {integrity: sha512-3YP80IxxFJB4b5tYC2SUPwkg0XQLiu0nWvhRgEatgjf+29IcWO9X1k8xRv5DGssJ/lCrjYTjQPcobJr2yWIVuQ==}- dev: false-/@types/json-schema/7.0.11:resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}dev: true@@ -2413,20 +1258,10 @@ packages:'@types/node': 18.11.18dev: true- /@types/keyv/3.1.4:- resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}- dependencies:- '@types/node': 18.7.15- dev: false-/@types/lodash/4.14.182:resolution: {integrity: sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==}dev: false- /@types/minimist/1.2.2:- resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==}- dev: false-/@types/node-fetch/2.6.2:resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==}dependencies:@@ -2444,28 +1279,14 @@ packages:/@types/node/18.11.9:resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}- /@types/node/18.7.15:- resolution: {integrity: sha512-XnjpaI8Bgc3eBag2Aw4t2Uj/49lLBSStHWfqKvIuXD7FIrZyMLWp8KuAFHAqxMZYTF9l08N1ctUn9YNybZJVmQ==}- dev: false-/@types/normalize-package-data/2.4.1:resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==}dev: false- /@types/ps-tree/1.1.2:- resolution: {integrity: sha512-ZREFYlpUmPQJ0esjxoG1fMvB2HNaD3z+mjqdSosZvd3RalncI9NEur73P8ZJz4YQdL64CmV1w0RuqoRUlhQRBw==}- dev: false-/@types/pug/2.0.6:resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==}dev: true- /@types/responselike/1.0.0:- resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==}- dependencies:- '@types/node': 18.7.15- dev: false-/@types/sass/1.43.1:resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==}dependencies:@@ -2480,10 +1301,6 @@ packages:resolution: {integrity: sha512-SWZ2Nom1pkyXCDohRSrkSKvDh8QOG9RfAsrt5/NsPQC4UQJ55eG0qClA40I+Gkez4KTQ0uDUT8ELRXThf3J5jw==}dev: true- /@types/which/2.0.1:- resolution: {integrity: sha512-Jjakcv8Roqtio6w1gr0D7y6twbhx6gGgFGF5BLwajPpnOIOxFkakFhCq+LmyyeAz7BX6ULrjBOxdKaCDy+4+dQ==}- dev: false-/@types/ws/8.5.3:resolution: {integrity: sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==}dependencies:@@ -3749,10 +2566,6 @@ packages:resolution: {integrity: sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==}dev: false- /bowser/2.11.0:- resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==}- dev: false-/brace-expansion/1.1.11:resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}dependencies:@@ -3834,13 +2647,6 @@ packages:resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}dev: true- /buffer/5.6.0:- resolution: {integrity: sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==}- dependencies:- base64-js: 1.5.1- ieee754: 1.2.1- dev: false-/buffer/5.7.1:resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}dependencies:@@ -3854,13 +2660,6 @@ packages:dev: falseoptional: true- /busboy/1.6.0:- resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}- engines: {node: '>=10.16.0'}- dependencies:- streamsearch: 1.1.0- dev: true-/cabin/[email protected]:resolution: {integrity: sha512-RCnLTeaK3vmrMkgEE2mQLj+zfzotGrV/1BrKvkw7paZLZ/GCodPx+B8kpa0sjHiKRLR0fMfdE+ZvA1Qj+BQXpg==}engines: {node: '>=14'}@@ -3875,7 +2674,7 @@ packages:ms: 2.1.3on-finished: 2.4.1parse-err: 0.0.12- parse-request: 5.0.2+ parse-request: 5.1.0transitivePeerDependencies:- supports-colordev: false@@ -3899,11 +2698,6 @@ packages:- supports-colordev: false- /cacheable-lookup/6.0.4:- resolution: {integrity: sha512-mbcDEZCkv2CZF4G01kr8eBd/5agkt9oCqz75tJMSIsquvRZ2sL6Hi5zGVKi/0OSC9oO1GHfJ2AV0ZIOY9vye0A==}- engines: {node: '>=10.6.0'}- dev: false-/cacheable-lookup/7.0.0:resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==}engines: {node: '>=14.16'}@@ -3922,19 +2716,6 @@ packages:responselike: 3.0.0dev: false- /cacheable-request/7.0.2:- resolution: {integrity: sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==}- engines: {node: '>=8'}- dependencies:- clone-response: 1.0.2- get-stream: 5.2.0- http-cache-semantics: 4.1.0- keyv: 4.3.0- lowercase-keys: 2.0.0- normalize-url: 6.1.0- responselike: 2.0.0- dev: false-/call-bind/1.0.2:resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==}dependencies:@@ -3985,11 +2766,6 @@ packages:supports-color: 7.2.0dev: true- /chalk/5.1.2:- resolution: {integrity: sha512-E5CkT4jWURs1Vy5qGJye+XwCkNj7Od3Af7CP6SujMetSMkLs8Do2RWJK5yx1wamHV/op8Rz+9rltjaTQWDnEFQ==}- engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}- dev: false-/chardet/0.7.0:resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}dev: true@@ -4019,6 +2795,7 @@ packages:/classnames/2.3.2:resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==}+ dev: true/clean-stack/4.2.0:resolution: {integrity: sha512-LYv6XPxoyODi36Dp976riBtSY27VmFo+MKqEU9QCCWyTrdEPDog+RWA7xQWHi6Vbp61j5c4cdzzX1NidnwtUWg==}@@ -4050,12 +2827,6 @@ packages:is-regexp: 3.1.0dev: false- /clone-response/1.0.2:- resolution: {integrity: sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==}- dependencies:- mimic-response: 1.0.1- dev: false-/color-convert/1.9.3:resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}dependencies:@@ -4102,8 +2873,8 @@ packages:delayed-stream: 1.0.0dev: true- /commander/9.4.1:- resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==}+ /commander/9.5.0:+ resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}engines: {node: ^12.20.0 || >=14}dev: true@@ -4111,14 +2882,6 @@ packages:resolution: {integrity: sha512-v8Au3l0b+Nwkp4G142JcgJFh1/TUhdxut7wzD1Nq1dyp5oa3tXaqb03EXOAB6jS4gMlalkjAUPZBMiAfKUixHQ==}dev: false- /compress-brotli/1.3.8:- resolution: {integrity: sha512-lVcQsjhxhIXsuupfy9fmZUFtAIdBmXA7EGY6GBdgZ++qkM9zG4YFT8iU7FoBxzryNDMOpD1HIFHUSX4D87oqhQ==}- engines: {node: '>= 12'}- dependencies:- '@types/json-buffer': 3.0.0- json-buffer: 3.0.1- dev: false-/concat-map/0.0.1:resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}dev: true@@ -4163,6 +2926,7 @@ packages:/cookie/0.5.0:resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}engines: {node: '>= 0.6'}+ dev: false/copy-anything/3.0.3:resolution: {integrity: sha512-fpW2W/BqEzqPp29QS+MwwfisHCQZtiduTe/m8idFo0xbti9fIZ2WVhAsCv4ggFVH3AgCkVdpoOCtQC6gBrdhjw==}@@ -4299,8 +3063,8 @@ packages:- ts-nodedev: false- /data-uri-to-buffer/4.0.0:- resolution: {integrity: sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==}+ /data-uri-to-buffer/4.0.1:+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}engines: {node: '>= 12'}dev: false@@ -4441,10 +3205,6 @@ packages:defined: 1.0.0minimist: 1.2.7- /devalue/4.2.0:- resolution: {integrity: sha512-mbjoAaCL2qogBKgeFxFPOXAUsZchircF+B/79LD4sHH0+NHfYm8gZpQrskKDn5gENGt35+5OI1GUF7hLVnkPDw==}- dev: true-/didyoumean/1.2.2:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}@@ -4458,6 +3218,7 @@ packages:engines: {node: '>=8'}dependencies:path-type: 4.0.0+ dev: true/dlv/1.1.3:resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}@@ -4522,11 +3283,6 @@ packages:dotenv: 8.6.0dev: false- /dotenv/16.0.2:- resolution: {integrity: sha512-JvpYKUmzQhYoIFgK2MOnF3bciIZoItIIoryihy0rIA+H4Jy0FmgyKYAHCTN98P5ybGSJcIFbh6QKeJdtZd1qhA==}- engines: {node: '>=12'}- dev: false-/dotenv/16.0.3:resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}engines: {node: '>=12'}@@ -4545,6 +3301,7 @@ packages:/duplexer/0.1.2:resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==}+ dev: true/ecdsa-sig-formatter/1.0.11:resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}@@ -4568,12 +3325,6 @@ packages:engines: {node: '>= 0.8'}dev: false- /encoding/0.1.13:- resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==}- dependencies:- iconv-lite: 0.6.3- dev: false-/end-of-stream/1.4.4:resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}dependencies:@@ -5176,17 +3927,13 @@ packages:split: 0.3.3stream-combiner: 0.0.4through: 2.3.8+ dev: true/event-target-shim/5.0.1:resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}engines: {node: '>=6'}dev: false- /events/3.3.0:- resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}- engines: {node: '>=0.8.x'}- dev: false-/execa/5.1.1:resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}engines: {node: '>=10'}@@ -5298,13 +4045,6 @@ packages:resolution: {integrity: sha512-qKRta6N7BWEFVlyonVY/V+BMLgFqktCUV0QjT259ekAIlbVrMaFnFLxJ4s/JPl4tou56S1BzPufI60bLe29fHA==}dev: false- /fast-xml-parser/4.0.11:- resolution: {integrity: sha512-4aUg3aNRR/WjQAcpceODG1C3x3lFANXRo8+1biqfieHmg9pyMt7qB4lQV/Ta6sJCTbA5vfD8fnA8S54JATiFUA==}- hasBin: true- dependencies:- strnum: 1.0.5- dev: false-/fastfall/1.5.1:resolution: {integrity: sha512-KH6p+Z8AKPXnmA7+Iz2Lh8ARCMr+8WNPVludm1LGkZoD2MjY6LVnRMtTKhkdzI+jr0RzQWXKzKyBJm1zoHEL4Q==}engines: {node: '>=0.10.0'}@@ -5479,12 +4219,14 @@ packages:'@popperjs/core': 2.11.6classnames: 2.3.2flowbite: 1.5.4+ dev: true/flowbite/1.5.4:resolution: {integrity: sha512-A4VTeJE+aHSbwrMzWvpTADhNgX8Njpb3DqRL26pFkOupklPg8cmNstZK8cXrFnBPxomOiX/OazZnhQM1BIZADQ==}dependencies:'@popperjs/core': 2.11.6mini-svg-data-uri: 1.4.4+ dev: true/follow-redirects/[email protected]:resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}@@ -5498,11 +4240,6 @@ packages:debug: 4.3.2dev: true- /form-data-encoder/2.0.1:- resolution: {integrity: sha512-Oy+P9w5mnO4TWXVgUiQvggNKPI9/ummcSt5usuIV6HkaLKigwzPpoenhEqmGmx3zHqm6ZLJ+CR/99N8JLinaEw==}- engines: {node: '>= 14.17'}- dev: false-/form-data-encoder/2.1.2:resolution: {integrity: sha512-FCaIOVTRA9E0siY6FeXid7D5yrCqpsErplUkE2a1BEiKj1BE9z6FbKB4ntDTwC4NVLie9p+4E9nX4mWwEOT05A==}engines: {node: '>= 14.17'}@@ -5543,20 +4280,12 @@ packages:/from/0.1.7:resolution: {integrity: sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==}+ dev: true/fs-constants/1.0.0:resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}dev: false- /fs-extra/10.1.0:- resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}- engines: {node: '>=12'}- dependencies:- graceful-fs: 4.2.10- jsonfile: 6.1.0- universalify: 2.0.0- dev: false-/fs.realpath/1.0.0:resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}@@ -5606,13 +4335,6 @@ packages:has: 1.0.3has-symbols: 1.0.3- /get-stream/5.2.0:- resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==}- engines: {node: '>=8'}- dependencies:- pump: 3.0.0- dev: false-/get-stream/6.0.1:resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}engines: {node: '>=10'}@@ -5625,8 +4347,8 @@ packages:get-intrinsic: 1.1.1dev: true- /get-tsconfig/4.2.0:- resolution: {integrity: sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==}+ /get-tsconfig/4.3.0:+ resolution: {integrity: sha512-YCcF28IqSay3fqpIu5y3Krg/utCBHBeoflkZyHj/QcqI2nrLPC3ZegS9CmIo+hJb8K7aiGsuUl7PwWVjNG2HQQ==}dev: true/get-value/3.0.1:@@ -5636,15 +4358,6 @@ packages:isobject: 3.0.1dev: false- /gettext-parser/6.0.0:- resolution: {integrity: sha512-eWFsR78gc/eKnzDgc919Us3cbxQbzxK1L8vAIZrKMQqOUgULyeqmczNlBjTlVTk2FaB7nV9C1oobd/PGBOqNmg==}- dependencies:- content-type: 1.0.4- encoding: 0.1.13- readable-stream: 4.1.0- safe-buffer: 5.2.1- dev: false-/glob-parent/5.1.2:resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}engines: {node: '>= 6'}@@ -5714,40 +4427,10 @@ packages:slash: 3.0.0dev: true- /globby/13.1.2:- resolution: {integrity: sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- dependencies:- dir-glob: 3.0.1- fast-glob: 3.2.12- ignore: 5.2.0- merge2: 1.4.1- slash: 4.0.0- dev: false-/globrex/0.1.2:resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}dev: true- /got/12.3.1:- resolution: {integrity: sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw==}- engines: {node: '>=14.16'}- dependencies:- '@sindresorhus/is': 5.3.0- '@szmarczak/http-timer': 5.0.1- '@types/cacheable-request': 6.0.2- '@types/responselike': 1.0.0- cacheable-lookup: 6.0.4- cacheable-request: 7.0.2- decompress-response: 6.0.0- form-data-encoder: 2.0.1- get-stream: 6.0.1- http2-wrapper: 2.1.11- lowercase-keys: 3.0.0- p-cancelable: 3.0.0- responselike: 2.0.0- dev: false-/got/12.5.3:resolution: {integrity: sha512-8wKnb9MGU8IPGRIo+/ukTy9XLJBwDiCpIf5TVzQ9Cpol50eMTpBq2GAuDsuDIz7hTYmZgMgC1e9ydr6kSDWs3w==}engines: {node: '>=14.16'}@@ -5767,6 +4450,7 @@ packages:/graceful-fs/4.2.10:resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}+ dev: true/grapheme-splitter/1.0.4:resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}@@ -5908,13 +4592,6 @@ packages:safer-buffer: 2.1.2dev: true- /iconv-lite/0.6.3:- resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}- engines: {node: '>=0.10.0'}- dependencies:- safer-buffer: 2.1.2- dev: false-/ieee754/1.2.1:resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}dev: false@@ -5926,6 +4603,7 @@ packages:/ignore/5.2.0:resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==}engines: {node: '>= 4'}+ dev: true/import-fresh/3.3.0:resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}@@ -6241,7 +4919,7 @@ packages:'@hapi/hoek': 9.3.0'@hapi/topo': 5.1.0'@sideway/address': 4.1.4- '@sideway/formula': 3.0.0+ '@sideway/formula': 3.0.1'@sideway/pinpoint': 2.0.0dev: true@@ -6311,14 +4989,6 @@ packages:engines: {node: '>=6'}hasBin: true- /jsonfile/6.1.0:- resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}- dependencies:- universalify: 2.0.0- optionalDependencies:- graceful-fs: 4.2.10- dev: false-/jsonwebtoken/9.0.0:resolution: {integrity: sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==}engines: {node: '>=12', npm: '>=6'}@@ -6344,13 +5014,6 @@ packages:safe-buffer: 5.2.1dev: false- /keyv/4.3.0:- resolution: {integrity: sha512-C30Un9+63J0CsR7Wka5quXKqYZsT6dcRQ2aOwGcSc3RiQ4HGWpTAHlCA+puNfw2jA/s11EsxA1nCXgZRuRKMQQ==}- dependencies:- compress-brotli: 1.3.8- json-buffer: 3.0.1- dev: false-/keyv/4.5.0:resolution: {integrity: sha512-2YvuMsA+jnFGtBareKqgANOEKe1mk3HKiXu2fRmAfyxG0MJAywNhi5ttWA3PMjl4NmpyjZNbFifR2vNjW1znfA==}dependencies:@@ -6478,10 +5141,6 @@ packages:resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==}dev: false- /lodash.get/4.4.2:- resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}- dev: false-/lodash.isplainobject/4.0.6:resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}dev: false@@ -6510,11 +5169,6 @@ packages:resolution: {integrity: sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==}dev: false- /lowercase-keys/2.0.0:- resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==}- engines: {node: '>=8'}- dev: false-/lowercase-keys/3.0.0:resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}@@ -6549,19 +5203,13 @@ packages:dependencies:sourcemap-codec: 1.4.8- /magic-string/0.27.0:- resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==}- engines: {node: '>=12'}- dependencies:- '@jridgewell/sourcemap-codec': 1.4.13- dev: true-/make-error/1.3.6:resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}dev: false/map-stream/0.1.0:resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==}+ dev: true/maybe-combine-errors/1.0.0:resolution: {integrity: sha512-eefp6IduNPT6fVdwPp+1NgD0PML1NU5P6j1Mj5nz1nidX8/sWY7119WL8vTAHgqfsY74TzW0w1XPgdYEKkGZ5A==}@@ -6608,13 +5256,7 @@ packages:resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==}engines: {node: '>=4'}hasBin: true- dev: false-- /mime/3.0.0:- resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}- engines: {node: '>=10.0.0'}- hasBin: true- dev: true+ dev: false/mimic-fn/2.1.0:resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}@@ -6626,11 +5268,6 @@ packages:engines: {node: '>=12'}dev: false- /mimic-response/1.0.1:- resolution: {integrity: sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==}- engines: {node: '>=4'}- dev: false-/mimic-response/3.1.0:resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}engines: {node: '>=10'}@@ -6649,6 +5286,7 @@ packages:/mini-svg-data-uri/1.4.4:resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==}hasBin: true+ dev: true/minimalistic-assert/1.0.1:resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==}@@ -6671,10 +5309,6 @@ packages:resolution: {integrity: sha512-7Wl+Jz+IGWuSdgsQEJ4JunV0si/iMhg42MnQQG6h1R6TNeVenp4U9x5CC5v/gYqz/fENLQITAWXidNtVL0NNbw==}dev: true- /minimist/1.2.6:- resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==}- dev: false-/minimist/1.2.7:resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==}@@ -6700,11 +5334,6 @@ packages:engines: {node: '>=4'}dev: true- /mrmime/1.0.1:- resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==}- engines: {node: '>=10'}- dev: true-/ms/2.0.0:resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}@@ -6769,20 +5398,11 @@ packages:engines: {node: 4.x || >=6.0.0}dev: true- /node-fetch/3.2.10:- resolution: {integrity: sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- dependencies:- data-uri-to-buffer: 4.0.0- fetch-blob: 3.2.0- formdata-polyfill: 4.0.10- dev: false-/node-fetch/3.3.0:resolution: {integrity: sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}dependencies:- data-uri-to-buffer: 4.0.0+ data-uri-to-buffer: 4.0.1fetch-blob: 3.2.0formdata-polyfill: 4.0.10dev: false@@ -6792,12 +5412,6 @@ packages:engines: {node: '>= 6.13.0'}dev: false- /node-gettext/3.0.0:- resolution: {integrity: sha512-/VRYibXmVoN6tnSAY2JWhNRhWYJ8Cd844jrZU/DwLVoI4vBI6ceYbd8i42sYZ9uOgDH3S7vslIKOWV/ZrT2YBA==}- dependencies:- lodash.get: 4.4.2- dev: false-/node-os-utils/1.3.7:resolution: {integrity: sha512-fvnX9tZbR7WfCG5BAy3yO/nCLyjVWD6MghEq0z5FDfN+ZXpLWNITBdbifxQkQ25ebr16G0N7eRWJisOcMEHG3Q==}dev: false@@ -6849,11 +5463,6 @@ packages:resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}engines: {node: '>=0.10.0'}- /normalize-url/6.1.0:- resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==}- engines: {node: '>=10'}- dev: false-/normalize-url/7.2.0:resolution: {integrity: sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA==}engines: {node: '>=12.20'}@@ -7132,32 +5741,6 @@ packages:lines-and-columns: 1.2.4dev: false- /parse-request/5.0.2:- resolution: {integrity: sha512-yu4biRHEWW7rydAUcKIbxpVfNTa/i0cTdalQLUb9sYSi287YK2OwWgMwN4Cu8KgjlMiUindR5ZHA32uqqcTeTw==}- engines: {node: '>=14'}- dependencies:- browser-hrtime: 1.1.8- bson-objectid: 2.0.4- convert-hrtime: 3.0.0- cookie: 0.5.0- credit-card-type: 9.1.0- debug: 4.3.4- fast-safe-stringify: 2.1.1- http-headers: 3.0.2- is-array-buffer: 2.0.0- is-buffer: 2.0.5- is-stream: 2.0.1- is-uuid: 1.0.2- ms: 2.1.3- no-case: 2.3.2- qs: 6.11.0- rfdc: 1.3.0- sensitive-fields: 0.0.9- url-parse: 1.5.10- transitivePeerDependencies:- - supports-color- dev: false-/parse-request/5.1.0:resolution: {integrity: sha512-CzdzrgihIpIOwQ12hDBln1qbltwDSTle/JkXKggLqrxFVMygcRPKiR6BnI2Za4opOcQgB6S4pt/bijD8tyrA3Q==}engines: {node: '>=14'}@@ -7225,11 +5808,13 @@ packages:/path-type/4.0.0:resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}+ dev: true/pause-stream/0.0.11:resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==}dependencies:through: 2.3.8+ dev: true/pick-deep/1.0.0:resolution: {integrity: sha512-Uy0VUtabou1sPl/vVClBFrWi4Ae/D3Vqu44FJawmm4lnduu5E16ykw8kh15fiUeLQ6lbmXQ0EMr3YIsqpLZl+A==}@@ -7302,12 +5887,6 @@ packages:hasBin: truedev: true- /playwright-core/1.28.1:- resolution: {integrity: sha512-3PixLnGPno0E8rSBJjtwqTwJe3Yw72QwBBBxNoukIj3lEeBNXwbNiKrNuB1oyQgTBw5QHUhNO3SteEtHaMK6ag==}- engines: {node: '>=14'}- hasBin: true- dev: true-/postcss-import/[email protected]:resolution: {integrity: sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==}engines: {node: '>=10.0.0'}@@ -7344,23 +5923,6 @@ packages:postcss: 8.4.19yaml: 1.10.2- /postcss-load-config/[email protected]:- resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}- engines: {node: '>= 14'}- peerDependencies:- postcss: '>=8.0.9'- ts-node: '>=9.0.0'- peerDependenciesMeta:- postcss:- optional: true- ts-node:- optional: true- dependencies:- lilconfig: 2.0.6- postcss: 8.4.19- yaml: 2.1.3- dev: true-/postcss-nested/[email protected]:resolution: {integrity: sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==}engines: {node: '>=12.0'}@@ -7400,16 +5962,6 @@ packages:fast-diff: 1.2.0dev: true- /prettier-plugin-svelte/2.8.1_3ndnxlh52lolrqe4kgjgbxb3xa:- resolution: {integrity: sha512-KA3K1J3/wKDnCxW7ZDRA/QL2Q67N7Xs3gOERqJ5X1qFjq1DdnN3K1R29scSKwh+kA8FF67pXbYytUpvN/i3iQw==}- peerDependencies:- prettier: ^1.16.4 || ^2.0.0- svelte: ^3.2.0- dependencies:- prettier: 2.8.0- svelte: 3.53.1- dev: true-/prettier-plugin-svelte/2.8.1_nryolsexf6k3znhuh4uzpugsem:resolution: {integrity: sha512-KA3K1J3/wKDnCxW7ZDRA/QL2Q67N7Xs3gOERqJ5X1qFjq1DdnN3K1R29scSKwh+kA8FF67pXbYytUpvN/i3iQw==}peerDependencies:@@ -7426,12 +5978,6 @@ packages:hasBin: truedev: true- /prettier/2.8.0:- resolution: {integrity: sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==}- engines: {node: '>=10.13.0'}- hasBin: true- dev: true-/prettier/2.8.2:resolution: {integrity: sha512-BtRV9BcncDyI2tsuS19zzhzoxD8Dh8LiCx7j7tHzrkz8GFXAexeWFdi22mjE1d16dftH2qNaytVxqiRTGlMfpw==}engines: {node: '>=10.13.0'}@@ -7483,6 +6029,7 @@ packages:hasBin: truedependencies:event-stream: 3.3.4+ dev: true/pseudomap/1.0.2:resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==}@@ -7686,12 +6233,6 @@ packages:path-parse: 1.0.7supports-preserve-symlinks-flag: 1.0.0- /responselike/2.0.0:- resolution: {integrity: sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw==}- dependencies:- lowercase-keys: 2.0.0- dev: false-/responselike/3.0.0:resolution: {integrity: sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==}engines: {node: '>=14.16'}@@ -7759,8 +6300,8 @@ packages:tslib: 1.14.1dev: true- /rxjs/7.6.0:- resolution: {integrity: sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==}+ /rxjs/7.8.0:+ resolution: {integrity: sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==}dependencies:tslib: 2.4.1dev: true@@ -7854,6 +6395,7 @@ packages:/set-cookie-parser/2.5.1:resolution: {integrity: sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==}+ dev: false/setprototypeof/1.2.0:resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}@@ -7907,15 +6449,6 @@ packages:semver: 7.0.0dev: true- /sirv/2.0.2:- resolution: {integrity: sha512-4Qog6aE29nIjAOKe/wowFTxOdmbEZKb+3tsLljaBRzJwtqto0BChD2zzH0LhgCSXiI+V7X+Y45v14wBZQ1TK3w==}- engines: {node: '>= 10'}- dependencies:- '@polka/url': 1.0.0-next.21- mrmime: 1.0.1- totalist: 3.0.0- dev: true-/slash/1.0.0:resolution: {integrity: sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==}engines: {node: '>=0.10.0'}@@ -7926,11 +6459,6 @@ packages:engines: {node: '>=8'}dev: true- /slash/4.0.0:- resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==}- engines: {node: '>=12'}- dev: false-/socket.io-adapter/2.4.0:resolution: {integrity: sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg==}dev: false@@ -8048,6 +6576,7 @@ packages:resolution: {integrity: sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==}dependencies:through: 2.3.8+ dev: true/split2/4.1.0:resolution: {integrity: sha512-VBiJxFkxiXRlUIeyMQi8s4hgvKCSjtknJv/LVYbrgALPwf5zSKmEwV9Lst25AkvMDnvxODugjdl6KZgwKM1WYQ==}@@ -8105,28 +6634,17 @@ packages:reusify: 1.0.4dev: false- /stream-browserify/3.0.0:- resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==}- dependencies:- inherits: 2.0.4- readable-stream: 3.6.0- dev: false-/stream-combiner/0.0.4:resolution: {integrity: sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==}dependencies:duplexer: 0.1.2+ dev: true/stream-wormhole/1.1.0:resolution: {integrity: sha512-gHFfL3px0Kctd6Po0M8TzEvt3De/xu6cnRrjlfYNhwbhLPLwigI2t1nc6jrzNuaYg5C4YF78PPFuQPzRiqn9ew==}engines: {node: '>=4.0.0'}dev: false- /streamsearch/1.1.0:- resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}- engines: {node: '>=10.0.0'}- dev: true-/string-width/4.2.3:resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}engines: {node: '>=8'}@@ -8228,10 +6746,6 @@ packages:engines: {node: '>=8'}dev: true- /strnum/1.0.5:- resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}- dev: false-/super-regex/0.2.0:resolution: {integrity: sha512-WZzIx3rC1CvbMDloLsVw0lkZVKJWbrkJ0k1ghKFmcnPrW1+jWbgTkTEWVtD9lMdmI4jZEz40+naBxl1dCUhXXw==}engines: {node: '>=14.16'}@@ -8270,34 +6784,6 @@ packages:resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}engines: {node: '>= 0.4'}- /svelte-check/2.9.2_g7z2chviobwh5b53nr2x4mtdq4:- resolution: {integrity: sha512-DRi8HhnCiqiGR2YF9ervPGvtoYrheE09cXieCTEqeTPOTJzfoa54Py8rovIBv4bH4n5HgZYIyTQ3DDLHQLl2uQ==}- hasBin: true- peerDependencies:- svelte: ^3.24.0- dependencies:- '@jridgewell/trace-mapping': 0.3.9- chokidar: 3.5.3- fast-glob: 3.2.12- import-fresh: 3.3.0- picocolors: 1.0.0- sade: 1.8.1- svelte: 3.53.1- svelte-preprocess: 4.10.7_m6amlx2endawbdmypezbyercsm- typescript: 4.9.4- transitivePeerDependencies:- - '@babel/core'- - coffeescript- - less- - node-sass- - postcss- - postcss-load-config- - pug- - sass- - stylus- - sugarss- dev: true-/svelte-check/2.9.2_mocwzvuqzrhb37u7s4hjvvzl3i:resolution: {integrity: sha512-DRi8HhnCiqiGR2YF9ervPGvtoYrheE09cXieCTEqeTPOTJzfoa54Py8rovIBv4bH4n5HgZYIyTQ3DDLHQLl2uQ==}hasBin: true@@ -8335,112 +6821,6 @@ packages:svelte: 3.53.1dev: true- /svelte-preprocess/4.10.7_jgeygver3mevbte7srfft5qwby:- resolution: {integrity: sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==}- engines: {node: '>= 9.11.2'}- requiresBuild: true- peerDependencies:- '@babel/core': ^7.10.2- coffeescript: ^2.5.1- less: ^3.11.3 || ^4.0.0- node-sass: '*'- postcss: ^7 || ^8- postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0- pug: ^3.0.0- sass: ^1.26.8- stylus: ^0.55.0- sugarss: ^2.0.0- svelte: ^3.23.0- typescript: ^3.9.5 || ^4.0.0- peerDependenciesMeta:- '@babel/core':- optional: true- coffeescript:- optional: true- less:- optional: true- node-sass:- optional: true- postcss:- optional: true- postcss-load-config:- optional: true- pug:- optional: true- sass:- optional: true- stylus:- optional: true- sugarss:- optional: true- typescript:- optional: true- dependencies:- '@types/pug': 2.0.6- '@types/sass': 1.43.1- detect-indent: 6.1.0- magic-string: 0.25.9- postcss: 8.4.19- postcss-load-config: [email protected]- sorcery: 0.10.0- strip-indent: 3.0.0- svelte: 3.53.1- typescript: 4.9.3- dev: true-- /svelte-preprocess/4.10.7_m6amlx2endawbdmypezbyercsm:- resolution: {integrity: sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==}- engines: {node: '>= 9.11.2'}- requiresBuild: true- peerDependencies:- '@babel/core': ^7.10.2- coffeescript: ^2.5.1- less: ^3.11.3 || ^4.0.0- node-sass: '*'- postcss: ^7 || ^8- postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0- pug: ^3.0.0- sass: ^1.26.8- stylus: ^0.55.0- sugarss: ^2.0.0- svelte: ^3.23.0- typescript: ^3.9.5 || ^4.0.0- peerDependenciesMeta:- '@babel/core':- optional: true- coffeescript:- optional: true- less:- optional: true- node-sass:- optional: true- postcss:- optional: true- postcss-load-config:- optional: true- pug:- optional: true- sass:- optional: true- stylus:- optional: true- sugarss:- optional: true- typescript:- optional: true- dependencies:- '@types/pug': 2.0.6- '@types/sass': 1.43.1- detect-indent: 6.1.0- magic-string: 0.25.9- postcss: 8.4.19- postcss-load-config: [email protected]- sorcery: 0.10.0- strip-indent: 3.0.0- svelte: 3.53.1- typescript: 4.9.4- dev: true-/svelte-preprocess/4.10.7_mvbmsfnr3ibpjsbee6imjcb33m:resolution: {integrity: sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==}engines: {node: '>= 9.11.2'}@@ -8640,6 +7020,7 @@ packages:/through/2.3.8:resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}+ dev: true/time-span/5.1.0:resolution: {integrity: sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==}@@ -8687,11 +7068,6 @@ packages:resolution: {integrity: sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==}dev: false- /totalist/3.0.0:- resolution: {integrity: sha512-eM+pCBxXO/njtF7vdFsHuqb+ElbxqtI4r5EAvk6grfAFyJ6IvWlSkfZ5T9ozC6xWw3Fj1fGoSmrl0gUs46JVIw==}- engines: {node: '>=6'}- dev: true-/touch/3.1.0:resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==}hasBin: true@@ -8875,23 +7251,11 @@ packages:resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==}dev: true- /undici/5.13.0:- resolution: {integrity: sha512-UDZKtwb2k7KRsK4SdXWG7ErXiL7yTGgLWvk2AXO1JMjgjh404nFo6tWSCM2xMpJwMPx3J8i/vfqEh1zOqvj82Q==}- engines: {node: '>=12.18'}- dependencies:- busboy: 1.6.0- dev: true-/unique-names-generator/4.7.1:resolution: {integrity: sha512-lMx9dX+KRmG8sq6gulYYpKWZc9RlGsgBR6aoO8Qsm3qvkSJ+3rAymr+TnV8EDMrIrwuFJ4kruzMWM/OpYzPoow==}engines: {node: '>=8'}dev: false- /universalify/2.0.0:- resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}- engines: {node: '>= 10.0.0'}- dev: false-/unset-value/2.0.1:resolution: {integrity: sha512-2hvrBfjUE00PkqN+q0XP6yRAOGrR06uSiUoIQGZkc7GxvQ9H7v8quUPNtZjMg4uux69i8HWpIjLPUKwCuRGyNg==}engines: {node: '>=10'}@@ -8925,11 +7289,6 @@ packages:/util-deprecate/1.0.2:resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}- /uuid/8.3.2:- resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}- hasBin: true- dev: false-/v8-compile-cache-lib/3.0.1:resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}dev: false@@ -8978,17 +7337,6 @@ packages:fsevents: 2.3.2dev: true- /vitefu/[email protected]:- resolution: {integrity: sha512-75l7TTuU8isAhz1QFtNKjDkqjxvndfMC1AfIMjJ0ZQ59ZD0Ow9QOIsJJX16Wv9PS8f+zMzp6fHy5cCbKG/yVUQ==}- peerDependencies:- vite: ^3.0.0 || ^4.0.0- peerDependenciesMeta:- vite:- optional: true- dependencies:- vite: 3.2.4- dev: true-/wait-on/[email protected]:resolution: {integrity: sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw==}engines: {node: '>=10.0.0'}@@ -8998,7 +7346,7 @@ packages:joi: 17.7.0lodash: 4.17.21minimist: 1.2.7- rxjs: 7.6.0+ rxjs: 7.8.0transitivePeerDependencies:- debugdev: true@@ -9009,7 +7357,7 @@ packages:hasBin: truedependencies:chalk: 4.1.2- commander: 9.4.1+ commander: 9.5.0debug: 4.3.4transitivePeerDependencies:- supports-color@@ -9098,10 +7446,6 @@ packages:resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}engines: {node: '>= 6'}- /yaml/2.1.3:- resolution: {integrity: sha512-AacA8nRULjKMX2DvWvOAdBZMOfQlypSFkjcOcu9FalllIDJ1kvlREzcdIZmidQUqqeMv7jorHjq2HlLv/+c2lg==}- engines: {node: '>= 14'}-/yn/3.1.1:resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==}engines: {node: '>=6'}@@ -9132,23 +7476,3 @@ packages:/zod/3.19.1:resolution: {integrity: sha512-LYjZsEDhCdYET9ikFu6dVPGp2YH9DegXjdJToSzD9rO6fy4qiRYFoyEYwps88OseJlPyl2NOe2iJuhEhL7IpEA==}dev: false-- /zx/7.1.1:- resolution: {integrity: sha512-5YlTO2AJ+Ku2YuZKSSSqnUKuagcM/f/j4LmHs15O84Ch80Z9gzR09ZK3gR7GV+rc8IFpz2H/XNFtFVmj31yrZA==}- engines: {node: '>= 16.0.0'}- hasBin: true- dependencies:- '@types/fs-extra': 9.0.13- '@types/minimist': 1.2.2- '@types/node': 18.11.18- '@types/ps-tree': 1.1.2- '@types/which': 2.0.1- chalk: 5.1.2- fs-extra: 10.1.0- globby: 13.1.2- minimist: 1.2.6- node-fetch: 3.2.10- ps-tree: 1.2.0- which: 2.0.2- yaml: 2.1.3- dev: false