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

updated fixes in nostr and gitea vue #3192

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/micro_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async function deploy() {
});
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a micro virtual machine.");
layout.value.setStatus("success", "Successfully deployed a micro virtual machine instance.");
layout.value.openDialog(vm, deploymentListEnvironments.vm);
} catch (e) {
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy micro virtual machine instance."));
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_algorand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:valid-filters="selectionDetails?.validFilters"
title-image="images/icons/algorand.png"
>
<template #title>Deploy a Algorand Instance </template>
<template #title>Deploy an Algorand Instance</template>
<d-tabs :tabs="[{ title: 'Config', value: 'config' }]">
<input-validator
:value="name"
Expand Down Expand Up @@ -189,10 +189,10 @@ async function deploy() {
});
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed an alogrand node.");
layout.value.setStatus("success", "Successfully deployed an Algorand instance.");
layout.value.openDialog(vm, deploymentListEnvironments.algorand);
} catch (e) {
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy an alogrand node."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy an Algorand instance."));
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_caprover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ async function deploy() {
});
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a caprover instance.");
layout.value.setStatus("success", "Successfully deployed a Caprover instance.");
layout.value.openDialog(vm, deploymentListEnvironments.caprover);
} catch (e) {
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a caprover instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Caprover instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_discourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const grid = gridStore.client as GridClient;
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a discourse instance.");
layout.value.setStatus("success", "Successfully deployed a Discourse instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.discourse);
}
Expand Down Expand Up @@ -206,7 +206,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a discourse instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Discourse instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -229,7 +229,7 @@ async function deploy() {
} catch (e) {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a discourse instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Discourse instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const selectedSSHKeys = ref("");
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a funkwhale instance.");
layout.value.setStatus("success", "Successfully deployed a Funkwhale instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.funkwhale);
}
async function deploy() {
Expand Down Expand Up @@ -228,7 +228,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a funkwhale instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Funkwhale instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -252,7 +252,7 @@ async function deploy() {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a funkwhale instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Funkwhale instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_gitea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:valid-filters="selectionDetails?.validFilters"
title-image="images/icons/gitea.png"
>
<template #title>Deploy a Gitea Machine </template>
<template #title>Deploy a Gitea Instance</template>

<d-tabs
:tabs="[
Expand Down Expand Up @@ -126,8 +126,8 @@ const profileManager = useProfileManager();

function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a Node Pilot instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.nodepilot);
layout.value.setStatus("success", "Successfully deployed a Gitea instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.gitea);
}

async function deploy() {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_kubernetes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function deploy() {
layout.value.setStatus("success", "Successfully deployed a Kubernetes cluster.");
layout.value.openDialog(k8s, deploymentListEnvironments.k8s);
} catch (e) {
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy kubernetes cluster."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy Kubernetes cluster."));
zaelgohary marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_mattermost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const grid = gridStore.client as GridClient;
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a mattermost instance.");
layout.value.setStatus("success", "Successfully deployed a Mattermost instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.mattermost);
}
Expand Down Expand Up @@ -192,7 +192,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a mattermost instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Mattermost instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -215,7 +215,7 @@ async function deploy() {
} catch (e) {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a mattermost instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Mattermost instance."));
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tf_node_pilot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:valid-filters="selectionDetails?.validFilters"
title-image="images/icons/vm.png"
>
<template #title>Deploy a Node Pilot</template>
<template #title>Deploy a Node Pilot Instance</template>
<d-tabs :tabs="[{ title: 'Config', value: 'config' }]">
<input-validator
:value="name"
Expand Down
10 changes: 5 additions & 5 deletions packages/playground/src/weblets/tf_nostr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:valid-filters="selectionDetails?.validFilters"
title-image="images/icons/nostr.png"
>
<template #title>Deploy a Nostr Machine </template>
<template #title>Deploy a Nostr Instance </template>

<d-tabs :tabs="[{ title: 'Config', value: 'config' }]" ref="tabs">
<template #config>
Expand Down Expand Up @@ -113,8 +113,8 @@ const profileManager = useProfileManager();
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a Node Pilot instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.nodepilot);
layout.value.setStatus("success", "Successfully deployed a Nostr instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.nostr);
}
async function deploy() {
Expand Down Expand Up @@ -191,10 +191,10 @@ async function deploy() {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Nostr macine instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Nostr instance."));
}
} catch (e) {
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy Nostr machine instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy Nostr instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_owncloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const grid = gridStore.client as GridClient;
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a owncloud instance.");
layout.value.setStatus("success", "Successfully deployed an Owncloud instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.owncloud);
}
Expand Down Expand Up @@ -237,7 +237,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a owncloud instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy an Owncloud instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -260,7 +260,7 @@ async function deploy() {
} catch (e) {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a owncloud instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy an Owncloud instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const grid = gridStore.client as GridClient;
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a peertube instance.");
layout.value.setStatus("success", "Successfully deployed a Peertube instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.peertube);
}
async function deploy() {
Expand Down Expand Up @@ -198,7 +198,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a peertube instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Peertube instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -222,7 +222,7 @@ async function deploy() {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a peertube instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Peertube instance."));
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const grid = gridStore.client as GridClient;
function finalize(deployment: any) {
layout.value.reloadDeploymentsList();
layout.value.setStatus("success", "Successfully deployed a taiga instance.");
layout.value.setStatus("success", "Successfully deployed a Taiga instance.");
layout.value.openDialog(deployment, deploymentListEnvironments.taiga);
}
Expand Down Expand Up @@ -250,7 +250,7 @@ async function deploy() {
],
});
} catch (e) {
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a taiga instance."));
return layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Taiga instance."));
}
if (!selectionDetails.value?.domain?.enableSelectedDomain) {
Expand All @@ -273,7 +273,7 @@ async function deploy() {
} catch (e) {
layout.value.setStatus("deploy", "Rollbacking back due to fail to deploy gateway...");
await rollbackDeployment(grid!, name.value);
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a taiga instance."));
layout.value.setStatus("failed", normalizeError(e, "Failed to deploy a Taiga instance."));
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/weblets/tfrobot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:valid-filters="selectionDetails?.validFilters"
title-image="images/icons/tfrobot.png"
>
<template #title>Deploy a TFRobot Machine </template>
<template #title>Deploy a TFRobot Instance </template>

<d-tabs
:tabs="[
Expand Down
Loading