From 3c317f1e6076c7a0b36fb70836b686f2e87c41d7 Mon Sep 17 00:00:00 2001 From: mayar osama Date: Wed, 20 Mar 2024 12:39:10 +0200 Subject: [PATCH 01/14] Adding caddy application --- packages/playground/public/config.js | 12 +- packages/playground/public/info/caddy.md | 5 + .../src/constants/deployment_list.ts | 6 + packages/playground/src/router/index.ts | 23 ++ packages/playground/src/router/routes.ts | 1 + packages/playground/src/types/index.ts | 3 + packages/playground/src/views/caddy_view.vue | 27 ++ .../playground/src/views/solutions_view.vue | 6 + packages/playground/src/weblets/tf_caddy.vue | 248 ++++++++++++++++++ .../src/weblets/tf_deployment_list.vue | 15 ++ 10 files changed, 340 insertions(+), 6 deletions(-) create mode 100644 packages/playground/public/info/caddy.md create mode 100644 packages/playground/src/views/caddy_view.vue create mode 100644 packages/playground/src/weblets/tf_caddy.vue diff --git a/packages/playground/public/config.js b/packages/playground/public/config.js index 25629e8b8c..861f8db055 100644 --- a/packages/playground/public/config.js +++ b/packages/playground/public/config.js @@ -1,10 +1,10 @@ window.env = { - NETWORK: "dev", - GRAPHQL_URL: "https://graphql.dev.grid.tf/graphql", - GRIDPROXY_URL: "https://gridproxy.dev.grid.tf", - SUBSTRATE_URL: "wss://tfchain.dev.grid.tf/ws", - ACTIVATION_SERVICE_URL: "https://activation.dev.grid.tf/activation/activate", - RELAY_DOMAIN: "wss://relay.dev.grid.tf", + NETWORK: "qa", + GRAPHQL_URL: "https://graphql.qa.grid.tf/graphql", + GRIDPROXY_URL: "https://gridproxy.qa.grid.tf", + SUBSTRATE_URL: "wss://tfchain.qa.grid.tf/ws", + ACTIVATION_SERVICE_URL: "https://activation.qa.grid.tf/activation/activate", + RELAY_DOMAIN: "wss://relay.qa.grid.tf", BRIDGE_TFT_ADDRESS: "GDHJP6TF3UXYXTNEZ2P36J5FH7W4BJJQ4AYYAXC66I2Q2AH5B6O6BCFG", STELLAR_NETWORK: "test", STELLAR_HORIZON_URL: "https://horizon-testnet.stellar.org", diff --git a/packages/playground/public/info/caddy.md b/packages/playground/public/info/caddy.md new file mode 100644 index 0000000000..3e226c3c26 --- /dev/null +++ b/packages/playground/public/info/caddy.md @@ -0,0 +1,5 @@ +--- +title: Caddy +--- + +Caddy is a server where you can provide a static github repo and it serves its files. For more details, check [Caddy documentation](https://www.manual.grid.tf/documentation/dashboard/solutions/caddy.html). diff --git a/packages/playground/src/constants/deployment_list.ts b/packages/playground/src/constants/deployment_list.ts index 9c75e48c0c..a64f174634 100644 --- a/packages/playground/src/constants/deployment_list.ts +++ b/packages/playground/src/constants/deployment_list.ts @@ -124,6 +124,12 @@ export const deploymentListEnvironments = { CHAIN_ENDPOINT: "Chain Endpoint", }, + caddy: { + SSH_KEY: _ssh, + GITHUB_URL: "Clonned Repository URL", + ROOT: "Root of clonned Repository ", + }, + taiga: { SSH_KEY: _ssh, DOMAIN_NAME: "Domain Name", diff --git a/packages/playground/src/router/index.ts b/packages/playground/src/router/index.ts index 2240b9ad65..843f4eec93 100644 --- a/packages/playground/src/router/index.ts +++ b/packages/playground/src/router/index.ts @@ -339,6 +339,29 @@ function createApplicationsRoutes(): RouteRecordRaw[] { }, }, }, + + { + path: DashboardRoutes.Applications.Caddy, + component: () => import("../views/caddy_view.vue"), + meta: { + title: "Caddy", + info: { page: "info/umbrel.md" }, + navbarConfig: { + back: true, + path: [ + { title: "Deploy" }, + { + title: "Applications", + disabled: false, + to: DashboardRoutes.Deploy.Applications, + }, + { + title: "Caddy", + }, + ], + }, + }, + }, // Commented for now and will be user later. // { // path: DashboardRoutes.Applications.Freeflow, diff --git a/packages/playground/src/router/routes.ts b/packages/playground/src/router/routes.ts index fd3c59b182..d0ae014c1d 100644 --- a/packages/playground/src/router/routes.ts +++ b/packages/playground/src/router/routes.ts @@ -53,6 +53,7 @@ enum OtherRoutes { enum ApplicationRoutes { BaseRoute = "/deploy/applications/", Peertube = "/deploy/applications/peertube/", + Caddy = "/deploy/applications/caddy/", Funkwhale = "/deploy/applications/funkwhale/", Mattermost = "/deploy/applications/mattermost/", Discourse = "/deploy/applications/discourse/", diff --git a/packages/playground/src/types/index.ts b/packages/playground/src/types/index.ts index e321b42784..06c47343d0 100644 --- a/packages/playground/src/types/index.ts +++ b/packages/playground/src/types/index.ts @@ -114,6 +114,7 @@ export enum ProjectName { Qvm = "Qvm", Umbrel = "Umbrel", FreeFlow = "Freeflow", + Caddy = "Caddy", } export enum SolutionCode { @@ -139,6 +140,7 @@ export enum SolutionCode { qvm = "qvm", umbrel = "um", wordpress = "wp", + caddy = "ca", } export const solutionType: { [key: string]: string } = { @@ -161,6 +163,7 @@ export const solutionType: { [key: string]: string } = { umbrel: "Umbrel", vm: "Micro Virtual Machine", wordpress: "Wordpress", + caddy: "Caddy", }; export interface solutionFlavor { diff --git a/packages/playground/src/views/caddy_view.vue b/packages/playground/src/views/caddy_view.vue new file mode 100644 index 0000000000..bd7b4f873e --- /dev/null +++ b/packages/playground/src/views/caddy_view.vue @@ -0,0 +1,27 @@ + + + diff --git a/packages/playground/src/views/solutions_view.vue b/packages/playground/src/views/solutions_view.vue index 585af1abba..2f246e0404 100644 --- a/packages/playground/src/views/solutions_view.vue +++ b/packages/playground/src/views/solutions_view.vue @@ -93,6 +93,12 @@ export default { icon: "taiga.png", route: DashboardRoutes.Applications.Taiga, }, + { + title: "Caddy", + excerpt: "Caddy is a server where you can provide a static github repo and it serves its files.", + icon: "taiga.png", + route: DashboardRoutes.Applications.Caddy, + }, // { // title: "Owncloud", // excerpt: diff --git a/packages/playground/src/weblets/tf_caddy.vue b/packages/playground/src/weblets/tf_caddy.vue new file mode 100644 index 0000000000..10fc848b47 --- /dev/null +++ b/packages/playground/src/weblets/tf_caddy.vue @@ -0,0 +1,248 @@ + + + + + diff --git a/packages/playground/src/weblets/tf_deployment_list.vue b/packages/playground/src/weblets/tf_deployment_list.vue index cbb7c51eb3..a77de38c0a 100644 --- a/packages/playground/src/weblets/tf_deployment_list.vue +++ b/packages/playground/src/weblets/tf_deployment_list.vue @@ -235,6 +235,20 @@ /> + + -