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

Enhance Node selector toggles #3952

Merged
merged 2 commits into from
Feb 27, 2025
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
10 changes: 2 additions & 8 deletions packages/playground/src/components/caprover_worker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,10 @@
v-model:wireguard="$props.modelValue.wireguard"
/>
<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch
color="primary"
inset
label="Nodes rented by me (only)"
v-model="$props.modelValue.rentedByMe"
hide-details
/>
<v-switch color="primary" inset label="Rented By Me" v-model="$props.modelValue.rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="$props.modelValue.dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="$props.modelValue.dedicated" hide-details />
</input-tooltip>
<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
<v-switch color="primary" inset label="Certified" v-model="$props.modelValue.certified" hide-details />
Expand Down
10 changes: 2 additions & 8 deletions packages/playground/src/components/k8s_worker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch
color="primary"
inset
label="Nodes rented by me (only)"
v-model="$props.modelValue.rentedByMe"
hide-details
/>
<v-switch color="primary" inset label="Rented By Me" v-model="$props.modelValue.rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="$props.modelValue.dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="$props.modelValue.dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/freeflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
require-domain
/>
<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
11 changes: 6 additions & 5 deletions packages/playground/src/weblets/full_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
<v-switch color="primary" inset label="GPU" v-model="hasGPU" hide-details />
</input-tooltip>
<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down Expand Up @@ -222,9 +222,9 @@ function addDisk() {
}

watch(
dedicated,
dedicated => {
if (dedicated === false) {
[dedicated, rentedByMe],
([dedicated, rentedByMe]) => {
if (dedicated === false && rentedByMe === false) {
hasGPU.value = dedicated;
}
},
Expand All @@ -236,6 +236,7 @@ watch(
hasGPU => {
if (hasGPU) {
dedicated.value = true;
rentedByMe.value = true;
}
},
{ immediate: true },
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/jenkins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/micro_vm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->

<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_algorand.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
</AlgorandCapacity>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_casperlabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_discourse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_gitea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_jitsi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_mattermost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_nextcloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_node_pilot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_nostr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
require-domain
/>
<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_owncloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
:has-smtp="smtp.enabled"
/>
<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_presearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>
<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
<v-switch color="primary" inset label="Certified" v-model="certified" hide-details />
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_staticwebsite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_subsquid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_umbrel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/src/weblets/tf_wordpress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@
/>

<!-- <input-tooltip inline tooltip="" :href="manual"> -->
<v-switch color="primary" inset label="Nodes rented by me (only)" v-model="rentedByMe" hide-details />
<v-switch color="primary" inset label="Rented By Me" v-model="rentedByMe" hide-details />
<!-- </input-tooltip> -->
<input-tooltip inline tooltip="Click to know more about dedicated machines." :href="manual.dedicated_machines">
<v-switch color="primary" inset label="Rentable nodes" v-model="dedicated" hide-details />
<v-switch color="primary" inset label="Rentable" v-model="dedicated" hide-details />
</input-tooltip>

<input-tooltip inline tooltip="Renting capacity on certified nodes is charged 25% extra.">
Expand Down
Loading
Loading