From 6288003174d3e3c4681fd05343639e1d2162b7f6 Mon Sep 17 00:00:00 2001 From: Omar Kassem Date: Thu, 27 Feb 2025 14:08:33 +0200 Subject: [PATCH 1/2] Feature[nodSelector]: toggle rented by me on GPU --- packages/playground/src/weblets/full_vm.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/playground/src/weblets/full_vm.vue b/packages/playground/src/weblets/full_vm.vue index 8e4a3d2c6f..f5b95ff9d3 100644 --- a/packages/playground/src/weblets/full_vm.vue +++ b/packages/playground/src/weblets/full_vm.vue @@ -222,9 +222,9 @@ function addDisk() { } watch( - dedicated, - dedicated => { - if (dedicated === false) { + [dedicated, rentedByMe], + ([dedicated, rentedByMe]) => { + if (dedicated === false && rentedByMe === false) { hasGPU.value = dedicated; } }, @@ -236,6 +236,7 @@ watch( hasGPU => { if (hasGPU) { dedicated.value = true; + rentedByMe.value = true; } }, { immediate: true }, From ec7355dde768f989e63e968ddbfedd7f44b4938e Mon Sep 17 00:00:00 2001 From: Omar Kassem Date: Thu, 27 Feb 2025 14:10:04 +0200 Subject: [PATCH 2/2] chore[nodeSelector]: rename retned by me and rentable nodes --- packages/playground/src/components/caprover_worker.vue | 10 ++-------- packages/playground/src/components/k8s_worker.vue | 10 ++-------- packages/playground/src/weblets/freeflow.vue | 4 ++-- packages/playground/src/weblets/full_vm.vue | 4 ++-- packages/playground/src/weblets/jenkins.vue | 4 ++-- packages/playground/src/weblets/micro_vm.vue | 4 ++-- packages/playground/src/weblets/tf_algorand.vue | 4 ++-- packages/playground/src/weblets/tf_casperlabs.vue | 4 ++-- packages/playground/src/weblets/tf_discourse.vue | 4 ++-- packages/playground/src/weblets/tf_funkwhale.vue | 4 ++-- packages/playground/src/weblets/tf_gitea.vue | 4 ++-- packages/playground/src/weblets/tf_jitsi.vue | 4 ++-- packages/playground/src/weblets/tf_mattermost.vue | 4 ++-- packages/playground/src/weblets/tf_nextcloud.vue | 4 ++-- packages/playground/src/weblets/tf_node_pilot.vue | 4 ++-- packages/playground/src/weblets/tf_nostr.vue | 4 ++-- packages/playground/src/weblets/tf_owncloud.vue | 4 ++-- packages/playground/src/weblets/tf_peertube.vue | 4 ++-- packages/playground/src/weblets/tf_presearch.vue | 4 ++-- packages/playground/src/weblets/tf_staticwebsite.vue | 4 ++-- packages/playground/src/weblets/tf_subsquid.vue | 4 ++-- packages/playground/src/weblets/tf_taiga.vue | 4 ++-- packages/playground/src/weblets/tf_umbrel.vue | 4 ++-- packages/playground/src/weblets/tf_wordpress.vue | 4 ++-- packages/playground/src/weblets/tfrobot.vue | 4 ++-- 25 files changed, 50 insertions(+), 62 deletions(-) diff --git a/packages/playground/src/components/caprover_worker.vue b/packages/playground/src/components/caprover_worker.vue index a9ea18a59a..3c05c5dde7 100644 --- a/packages/playground/src/components/caprover_worker.vue +++ b/packages/playground/src/components/caprover_worker.vue @@ -32,16 +32,10 @@ v-model:wireguard="$props.modelValue.wireguard" /> - + - + diff --git a/packages/playground/src/components/k8s_worker.vue b/packages/playground/src/components/k8s_worker.vue index fee207abfe..c164317464 100644 --- a/packages/playground/src/components/k8s_worker.vue +++ b/packages/playground/src/components/k8s_worker.vue @@ -77,16 +77,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/freeflow.vue b/packages/playground/src/weblets/freeflow.vue index 4e3308e57d..b1ebe37769 100644 --- a/packages/playground/src/weblets/freeflow.vue +++ b/packages/playground/src/weblets/freeflow.vue @@ -58,10 +58,10 @@ require-domain /> - + - + diff --git a/packages/playground/src/weblets/full_vm.vue b/packages/playground/src/weblets/full_vm.vue index f5b95ff9d3..88abd81ca6 100644 --- a/packages/playground/src/weblets/full_vm.vue +++ b/packages/playground/src/weblets/full_vm.vue @@ -63,10 +63,10 @@ - + - + diff --git a/packages/playground/src/weblets/jenkins.vue b/packages/playground/src/weblets/jenkins.vue index 5b973877d1..d365093402 100644 --- a/packages/playground/src/weblets/jenkins.vue +++ b/packages/playground/src/weblets/jenkins.vue @@ -80,10 +80,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/micro_vm.vue b/packages/playground/src/weblets/micro_vm.vue index 401497d88b..077b7b82c1 100644 --- a/packages/playground/src/weblets/micro_vm.vue +++ b/packages/playground/src/weblets/micro_vm.vue @@ -57,11 +57,11 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_algorand.vue b/packages/playground/src/weblets/tf_algorand.vue index 308294ade1..5c67260bc6 100644 --- a/packages/playground/src/weblets/tf_algorand.vue +++ b/packages/playground/src/weblets/tf_algorand.vue @@ -69,10 +69,10 @@ - + - + diff --git a/packages/playground/src/weblets/tf_casperlabs.vue b/packages/playground/src/weblets/tf_casperlabs.vue index beb8092b1d..e0b2896ca1 100644 --- a/packages/playground/src/weblets/tf_casperlabs.vue +++ b/packages/playground/src/weblets/tf_casperlabs.vue @@ -48,10 +48,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_discourse.vue b/packages/playground/src/weblets/tf_discourse.vue index 3169e9e161..84fdceb9bf 100644 --- a/packages/playground/src/weblets/tf_discourse.vue +++ b/packages/playground/src/weblets/tf_discourse.vue @@ -70,10 +70,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_funkwhale.vue b/packages/playground/src/weblets/tf_funkwhale.vue index 1f57b486fc..7d657246de 100644 --- a/packages/playground/src/weblets/tf_funkwhale.vue +++ b/packages/playground/src/weblets/tf_funkwhale.vue @@ -100,10 +100,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_gitea.vue b/packages/playground/src/weblets/tf_gitea.vue index 123fa4f5df..9789641b15 100644 --- a/packages/playground/src/weblets/tf_gitea.vue +++ b/packages/playground/src/weblets/tf_gitea.vue @@ -58,10 +58,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_jitsi.vue b/packages/playground/src/weblets/tf_jitsi.vue index ce5f28b115..ee6b93e31c 100644 --- a/packages/playground/src/weblets/tf_jitsi.vue +++ b/packages/playground/src/weblets/tf_jitsi.vue @@ -49,10 +49,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_mattermost.vue b/packages/playground/src/weblets/tf_mattermost.vue index 66c0408939..7a23cc1942 100644 --- a/packages/playground/src/weblets/tf_mattermost.vue +++ b/packages/playground/src/weblets/tf_mattermost.vue @@ -54,10 +54,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_nextcloud.vue b/packages/playground/src/weblets/tf_nextcloud.vue index f1681870e5..010468ffc6 100644 --- a/packages/playground/src/weblets/tf_nextcloud.vue +++ b/packages/playground/src/weblets/tf_nextcloud.vue @@ -47,10 +47,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_node_pilot.vue b/packages/playground/src/weblets/tf_node_pilot.vue index b83eb53307..32852254ab 100644 --- a/packages/playground/src/weblets/tf_node_pilot.vue +++ b/packages/playground/src/weblets/tf_node_pilot.vue @@ -48,10 +48,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_nostr.vue b/packages/playground/src/weblets/tf_nostr.vue index 144cb41a6c..eddde98c61 100644 --- a/packages/playground/src/weblets/tf_nostr.vue +++ b/packages/playground/src/weblets/tf_nostr.vue @@ -49,10 +49,10 @@ require-domain /> - + - + diff --git a/packages/playground/src/weblets/tf_owncloud.vue b/packages/playground/src/weblets/tf_owncloud.vue index 3e01e4bcf6..3515e3dbce 100644 --- a/packages/playground/src/weblets/tf_owncloud.vue +++ b/packages/playground/src/weblets/tf_owncloud.vue @@ -90,10 +90,10 @@ :has-smtp="smtp.enabled" /> - + - + diff --git a/packages/playground/src/weblets/tf_peertube.vue b/packages/playground/src/weblets/tf_peertube.vue index 9767ac3df0..2595d8e890 100644 --- a/packages/playground/src/weblets/tf_peertube.vue +++ b/packages/playground/src/weblets/tf_peertube.vue @@ -74,10 +74,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_presearch.vue b/packages/playground/src/weblets/tf_presearch.vue index 97fdaf1dce..3e2a82403d 100644 --- a/packages/playground/src/weblets/tf_presearch.vue +++ b/packages/playground/src/weblets/tf_presearch.vue @@ -67,10 +67,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_staticwebsite.vue b/packages/playground/src/weblets/tf_staticwebsite.vue index 453dc32d54..fc326398d1 100644 --- a/packages/playground/src/weblets/tf_staticwebsite.vue +++ b/packages/playground/src/weblets/tf_staticwebsite.vue @@ -73,10 +73,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_subsquid.vue b/packages/playground/src/weblets/tf_subsquid.vue index ee4a91d25b..d1aee402ec 100644 --- a/packages/playground/src/weblets/tf_subsquid.vue +++ b/packages/playground/src/weblets/tf_subsquid.vue @@ -62,10 +62,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_taiga.vue b/packages/playground/src/weblets/tf_taiga.vue index 562bee81cd..45d8edcfee 100644 --- a/packages/playground/src/weblets/tf_taiga.vue +++ b/packages/playground/src/weblets/tf_taiga.vue @@ -103,10 +103,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_umbrel.vue b/packages/playground/src/weblets/tf_umbrel.vue index 0802133a3c..312ccd9520 100644 --- a/packages/playground/src/weblets/tf_umbrel.vue +++ b/packages/playground/src/weblets/tf_umbrel.vue @@ -84,10 +84,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tf_wordpress.vue b/packages/playground/src/weblets/tf_wordpress.vue index fff0b6cbbc..dbb8c19718 100644 --- a/packages/playground/src/weblets/tf_wordpress.vue +++ b/packages/playground/src/weblets/tf_wordpress.vue @@ -101,10 +101,10 @@ /> - + - + diff --git a/packages/playground/src/weblets/tfrobot.vue b/packages/playground/src/weblets/tfrobot.vue index 5ddb25a4b2..f21246bf4e 100644 --- a/packages/playground/src/weblets/tfrobot.vue +++ b/packages/playground/src/weblets/tfrobot.vue @@ -55,10 +55,10 @@ v-model:wireguard="wireguard" /> - + - +