From ef86eb50f3122ea160f554a63a5073d149745bc1 Mon Sep 17 00:00:00 2001 From: mayar osama Date: Thu, 6 Jun 2024 15:51:59 +0300 Subject: [PATCH] Adding planetry ip to all solutions --- packages/playground/src/weblets/tf_algorand.vue | 7 +++---- packages/playground/src/weblets/tf_casperlabs.vue | 4 +++- packages/playground/src/weblets/tf_discourse.vue | 5 +++-- packages/playground/src/weblets/tf_funkwhale.vue | 4 +++- packages/playground/src/weblets/tf_mattermost.vue | 5 +++-- packages/playground/src/weblets/tf_nextcloud.vue | 4 +++- packages/playground/src/weblets/tf_peertube.vue | 5 +++-- packages/playground/src/weblets/tf_staticwebsite.vue | 4 +++- packages/playground/src/weblets/tf_subsquid.vue | 4 +++- packages/playground/src/weblets/tf_taiga.vue | 5 +++-- packages/playground/src/weblets/tf_wordpress.vue | 4 +++- 11 files changed, 33 insertions(+), 18 deletions(-) diff --git a/packages/playground/src/weblets/tf_algorand.vue b/packages/playground/src/weblets/tf_algorand.vue index 3f0cf97b2f..50440698b0 100644 --- a/packages/playground/src/weblets/tf_algorand.vue +++ b/packages/playground/src/weblets/tf_algorand.vue @@ -28,9 +28,7 @@ - - - + ; const memory = ref() as Ref; @@ -173,7 +172,7 @@ async function deploy() { rootFilesystemSize: rootFilesystemSize.value, publicIpv4: ipv4.value, mycelium: mycelium.value, - planetary: true, + planetary: planetary.value, nodeId: selectionDetails.value!.node!.nodeId, rentedBy: dedicated.value ? grid!.twinId : undefined, certified: certified.value, diff --git a/packages/playground/src/weblets/tf_casperlabs.vue b/packages/playground/src/weblets/tf_casperlabs.vue index ad4d996449..bedba6134c 100644 --- a/packages/playground/src/weblets/tf_casperlabs.vue +++ b/packages/playground/src/weblets/tf_casperlabs.vue @@ -37,7 +37,7 @@ :large="{ cpu: 8, memory: 32, disk: 1000 }" /> - + @@ -98,6 +98,7 @@ const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(false); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); const selectedSSHKeys = ref(""); @@ -149,6 +150,7 @@ async function deploy() { entryPoint: flist.entryPoint, publicIpv4: ipv4.value, mycelium: mycelium.value, + planetary: planetary.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, { key: "CASPERLABS_HOSTNAME", value: domain }, diff --git a/packages/playground/src/weblets/tf_discourse.vue b/packages/playground/src/weblets/tf_discourse.vue index 731433179f..444d8899ca 100644 --- a/packages/playground/src/weblets/tf_discourse.vue +++ b/packages/playground/src/weblets/tf_discourse.vue @@ -58,7 +58,7 @@ :medium="{ cpu: 2, memory: 4, disk: 50 }" :large="{ cpu: 4, memory: 16, disk: 100 }" /> - + @@ -124,6 +124,7 @@ const email = ref(profileManager.profile?.email || ""); const solution = ref() as Ref; const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(true); const smtp = ref(createSMTPServer()); const dedicated = ref(false); const certified = ref(false); @@ -181,7 +182,7 @@ async function deploy() { entryPoint: flist.entryPoint, rootFilesystemSize: rootFilesystemSize.value, publicIpv4: ipv4.value, - planetary: true, + planetary: planetary.value, mycelium: mycelium.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, diff --git a/packages/playground/src/weblets/tf_funkwhale.vue b/packages/playground/src/weblets/tf_funkwhale.vue index 8d6d62120d..f27fbd36bf 100644 --- a/packages/playground/src/weblets/tf_funkwhale.vue +++ b/packages/playground/src/weblets/tf_funkwhale.vue @@ -89,7 +89,7 @@ :small="{ cpu: 1, memory: 2, disk: 50 }" :medium="{ cpu: 2, memory: 4, disk: 100 }" /> - + @@ -153,6 +153,7 @@ const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(false); const selectionDetails = ref(); const gridStore = useGrid(); const grid = gridStore.client as GridClient; @@ -207,6 +208,7 @@ async function deploy() { entryPoint: flist.entryPoint, publicIpv4: ipv4.value, mycelium: mycelium.value, + planetary: planetary.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, { key: "FUNKWHALE_HOSTNAME", value: domain }, diff --git a/packages/playground/src/weblets/tf_mattermost.vue b/packages/playground/src/weblets/tf_mattermost.vue index 0a8a805d7d..0fb205e970 100644 --- a/packages/playground/src/weblets/tf_mattermost.vue +++ b/packages/playground/src/weblets/tf_mattermost.vue @@ -42,7 +42,7 @@ :medium="{ cpu: 2, memory: 4, disk: 50 }" :large="{ cpu: 4, memory: 16, disk: 100 }" /> - + @@ -106,6 +106,7 @@ const flist: Flist = { const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); +const planetary = ref(true); const smtp = ref(createSMTPServer()); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); @@ -164,7 +165,7 @@ async function deploy() { entryPoint: flist.entryPoint, rootFilesystemSize: rootFilesystemSize.value, publicIpv4: ipv4.value, - planetary: true, + planetary: planetary.value, mycelium: mycelium.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, diff --git a/packages/playground/src/weblets/tf_nextcloud.vue b/packages/playground/src/weblets/tf_nextcloud.vue index ac56cd57c1..fe1d29f655 100644 --- a/packages/playground/src/weblets/tf_nextcloud.vue +++ b/packages/playground/src/weblets/tf_nextcloud.vue @@ -36,7 +36,7 @@ :large="{ cpu: 4, memory: 16, disk: 1000 }" v-model="solution" /> - + @@ -97,6 +97,7 @@ const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(false); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); const selectedSSHKeys = ref(""); @@ -158,6 +159,7 @@ async function deploy() { flist: flist.value, entryPoint: flist.entryPoint, publicIpv4: ipv4.value, + planetary: planetary.value, mycelium: mycelium.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, diff --git a/packages/playground/src/weblets/tf_peertube.vue b/packages/playground/src/weblets/tf_peertube.vue index d891978123..755c91abcc 100644 --- a/packages/playground/src/weblets/tf_peertube.vue +++ b/packages/playground/src/weblets/tf_peertube.vue @@ -63,7 +63,7 @@ - + @@ -126,6 +126,7 @@ const ipv4 = ref(false); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); const mycelium = ref(true); +const planetary = ref(true); const selectedSSHKeys = ref(""); const gridStore = useGrid(); const grid = gridStore.client as GridClient; @@ -177,7 +178,7 @@ async function deploy() { flist: flist.value, entryPoint: flist.entryPoint, publicIpv4: ipv4.value, - planetary: true, + planetary: planetary.value, mycelium: mycelium.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, diff --git a/packages/playground/src/weblets/tf_staticwebsite.vue b/packages/playground/src/weblets/tf_staticwebsite.vue index 2430344b85..5e9afa0b9d 100644 --- a/packages/playground/src/weblets/tf_staticwebsite.vue +++ b/packages/playground/src/weblets/tf_staticwebsite.vue @@ -62,7 +62,7 @@ :medium="{ cpu: 2, memory: 4, disk: 100 }" /> - + ; const flist: Flist = { // Should be upgraded to an oficial Flist @@ -193,6 +194,7 @@ async function deploy() { entryPoint: flist.entryPoint, publicIpv4: ipv4.value, mycelium: mycelium.value, + planetary: planetary.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, { key: "GITHUB_URL", value: gitUrl.value }, diff --git a/packages/playground/src/weblets/tf_subsquid.vue b/packages/playground/src/weblets/tf_subsquid.vue index 5fc458e08a..d332b63104 100644 --- a/packages/playground/src/weblets/tf_subsquid.vue +++ b/packages/playground/src/weblets/tf_subsquid.vue @@ -51,7 +51,7 @@ :medium="{ cpu: 2, memory: 4, disk: 100 }" /> - + @@ -104,6 +104,7 @@ const profileManager = useProfileManager(); const name = ref(generateName({ prefix: "ss" })); const endpoint = ref(""); const ipv4 = ref(false); +const planetary = ref(false); const mycelium = ref(true); const solution = ref() as Ref; const flist: Flist = { @@ -168,6 +169,7 @@ async function deploy() { entryPoint: flist.entryPoint, publicIpv4: ipv4.value, mycelium: mycelium.value, + planetary: planetary.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, { key: "CHAIN_ENDPOINT", value: endpoint.value }, diff --git a/packages/playground/src/weblets/tf_taiga.vue b/packages/playground/src/weblets/tf_taiga.vue index e85d812a75..f3821870e5 100644 --- a/packages/playground/src/weblets/tf_taiga.vue +++ b/packages/playground/src/weblets/tf_taiga.vue @@ -90,7 +90,7 @@ :small="{ cpu: 2, memory: 4, disk: 100 }" :medium="{ cpu: 4, memory: 8, disk: 150 }" /> - + @@ -161,6 +161,7 @@ const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(true); const smtp = ref(createSMTPServer()); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); @@ -218,7 +219,7 @@ async function deploy() { entryPoint: flist.entryPoint, rootFilesystemSize: rootFilesystemSize.value, publicIpv4: ipv4.value, - planetary: true, + planetary: planetary.value, mycelium: mycelium.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, diff --git a/packages/playground/src/weblets/tf_wordpress.vue b/packages/playground/src/weblets/tf_wordpress.vue index 8d2ea73c51..6d6e46626f 100644 --- a/packages/playground/src/weblets/tf_wordpress.vue +++ b/packages/playground/src/weblets/tf_wordpress.vue @@ -90,7 +90,7 @@ :large="{ cpu: 4, memory: 16, disk: 100 }" /> - + @@ -154,6 +154,7 @@ const dedicated = ref(false); const certified = ref(false); const ipv4 = ref(false); const mycelium = ref(true); +const planetary = ref(false); const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0)); const selectionDetails = ref(); const selectedSSHKeys = ref(""); @@ -206,6 +207,7 @@ async function deploy() { entryPoint: flist.entryPoint, publicIpv4: ipv4.value, mycelium: mycelium.value, + planetary: planetary.value, envs: [ { key: "SSH_KEY", value: selectedSSHKeys.value }, { key: "MYSQL_USER", value: username.value },