Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding planetry ip to all solutions #2901

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions packages/playground/src/weblets/tf_algorand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
<v-text-field label="Name" v-model="name" v-bind="props" />
</input-tooltip>
</input-validator>
<Networks v-model:mycelium="mycelium" />
<v-switch color="primary" inset label="IPv4" v-model="ipv4" hide-details />

<Networks v-model:mycelium="mycelium" v-model:planetary="planetary" v-model:ipv4="ipv4" />
<AlgorandCapacity
:network="network"
:type="type"
Expand Down Expand Up @@ -123,6 +121,7 @@ const flist: Flist = {
};
const name = ref(generateName({ prefix: "al" }));
const ipv4 = ref(false);
const planetary = ref(true);
const mycelium = ref(true);
const cpu = ref() as Ref<number>;
const memory = ref() as Ref<number>;
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_casperlabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
:large="{ cpu: 8, memory: 32, disk: 1000 }"
/>

<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" />
<Networks v-model:ipv4="ipv4" v-model:planetary="planetary" v-model:mycelium="mycelium" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
const selectedSSHKeys = ref("");
Expand Down Expand Up @@ -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 },
Expand Down
5 changes: 3 additions & 2 deletions packages/playground/src/weblets/tf_discourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
:medium="{ cpu: 2, memory: 4, disk: 50 }"
:large="{ cpu: 4, memory: 16, disk: 100 }"
/>
<Networks v-model:mycelium="mycelium" v-model:ipv4="ipv4" />
<Networks v-model:mycelium="mycelium" v-model:planetary="planetary" v-model:ipv4="ipv4" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -124,6 +124,7 @@ const email = ref(profileManager.profile?.email || "");
const solution = ref() as Ref<SolutionFlavor>;
const ipv4 = ref(false);
const mycelium = ref(true);
const planetary = ref(true);
const smtp = ref(createSMTPServer());
const dedicated = ref(false);
const certified = ref(false);
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
:small="{ cpu: 1, memory: 2, disk: 50 }"
:medium="{ cpu: 2, memory: 4, disk: 100 }"
/>
<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" />
<Networks v-model:ipv4="ipv4" v-model:planetary="planetary" v-model:mycelium="mycelium" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
const gridStore = useGrid();
const grid = gridStore.client as GridClient;
Expand Down Expand Up @@ -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 },
Expand Down
5 changes: 3 additions & 2 deletions packages/playground/src/weblets/tf_mattermost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
:medium="{ cpu: 2, memory: 4, disk: 50 }"
:large="{ cpu: 4, memory: 16, disk: 100 }"
/>
<Networks v-model:mycelium="mycelium" v-model:ipv4="ipv4" />
<Networks v-model:mycelium="mycelium" v-model:planetary="planetary" v-model:ipv4="ipv4" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_nextcloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
:large="{ cpu: 4, memory: 16, disk: 1000 }"
v-model="solution"
/>
<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" />
<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" v-model:planetary="planetary" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
const selectedSSHKeys = ref("");
Expand Down Expand Up @@ -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 },
Expand Down
5 changes: 3 additions & 2 deletions packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</password-input-wrapper>

<SelectSolutionFlavor v-model="solution" />
<Networks v-model:mycelium="mycelium" />
<Networks v-model:mycelium="mycelium" v-model:planetary="planetary" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -126,6 +126,7 @@ const ipv4 = ref(false);
const rootFilesystemSize = computed(() => rootFs(solution.value?.cpu ?? 0, solution.value?.memory ?? 0));
const selectionDetails = ref<SelectionDetails>();
const mycelium = ref(true);
const planetary = ref(true);
const selectedSSHKeys = ref("");
const gridStore = useGrid();
const grid = gridStore.client as GridClient;
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_staticwebsite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
:medium="{ cpu: 2, memory: 4, disk: 100 }"
/>

<Networks ref="network" v-model:ipv4="ipv4" v-model:mycelium="mycelium" />
<Networks ref="network" v-model:ipv4="ipv4" v-model:mycelium="mycelium" v-model:planetary="planetary" />

<input-tooltip
inline
Expand Down Expand Up @@ -122,6 +122,7 @@ const domain = ref();

const ipv4 = ref(false);
const mycelium = ref(true);
const planetary = ref(false);
const solution = ref() as Ref<SolutionFlavor>;
const flist: Flist = {
// Should be upgraded to an oficial Flist
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_subsquid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
:medium="{ cpu: 2, memory: 4, disk: 100 }"
/>

<Networks v-model:mycelium="mycelium" />
<Networks v-model:mycelium="mycelium" v-model:planetary="planetary" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SolutionFlavor>;
const flist: Flist = {
Expand Down Expand Up @@ -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 },
Expand Down
5 changes: 3 additions & 2 deletions packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
:small="{ cpu: 2, memory: 4, disk: 100 }"
:medium="{ cpu: 4, memory: 8, disk: 150 }"
/>
<Networks v-model:mycelium="mycelium" v-model:ipv4="ipv4" />
<Networks v-model:mycelium="mycelium" v-model:ipv4="ipv4" v-model:planetary="planetary" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
Expand Down Expand Up @@ -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 },
Expand Down
4 changes: 3 additions & 1 deletion packages/playground/src/weblets/tf_wordpress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
:large="{ cpu: 4, memory: 16, disk: 100 }"
/>

<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" />
<Networks v-model:ipv4="ipv4" v-model:mycelium="mycelium" v-model:planetary="planetary" />

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Dedicated" v-model="dedicated" hide-details />
Expand Down Expand Up @@ -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<SelectionDetails>();
const selectedSSHKeys = ref("");
Expand Down Expand Up @@ -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 },
Expand Down