-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add creating blueprint out of a project
Signed-off-by: Jan Lauber <jan.lauber@protonmail.ch>
- Loading branch information
Showing
31 changed files
with
1,071 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<script lang="ts"> | ||
import { Label, Radio } from "flowbite-svelte"; | ||
import { Cpu } from "lucide-svelte"; | ||
export let cpuRequestsFloat = 0.1; | ||
</script> | ||
|
||
<Label for="tag" class="block mb-1"> | ||
<Cpu class="inline-block mr-1" size="1rem" /> | ||
CPU | ||
</Label> | ||
<form> | ||
<ul | ||
class="items-center w-full rounded-lg border border-gray-200 sm:flex dark:bg-gray-800 dark:border-gray-600 divide-x rtl:divide-x-reverse divide-gray-200 dark:divide-gray-600" | ||
> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={0.1}> | ||
<div class="block"> | ||
<p class="">Nano</p> | ||
<p class="text-xs font-light">(0.1 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={0.25}> | ||
<div class="block"> | ||
<p class="">Micro</p> | ||
<p class="text-xs font-light">(0.25 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={0.5}> | ||
<div class="block"> | ||
<p class="">Small</p> | ||
<p class="text-xs font-light">(0.5 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={1}> | ||
<div class="block"> | ||
<p class="">Medium</p> | ||
<p class="text-xs font-light">(1 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={2}> | ||
<div class="block"> | ||
<p class="">Large</p> | ||
<p class="text-xs font-light">(2 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={cpuRequestsFloat} value={4}> | ||
<div class="block"> | ||
<p class="">X-Large</p> | ||
<p class="text-xs font-light">(4 vCPU)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
</ul> | ||
</form> |
65 changes: 65 additions & 0 deletions
65
ui/frontend/src/lib/components/scale/MemorySettings.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<script lang="ts"> | ||
import { Label, Radio } from "flowbite-svelte"; | ||
import { MemoryStick } from "lucide-svelte"; | ||
export let memoryRequestsInt = 128; | ||
</script> | ||
|
||
<Label for="tag" class="block mb-1"> | ||
<MemoryStick class="inline-block mr-1" size="1rem" /> | ||
Memory | ||
</Label> | ||
<form> | ||
<ul | ||
class="items-center w-full rounded-lg border border-gray-200 sm:flex dark:bg-gray-800 dark:border-gray-600 divide-x rtl:divide-x-reverse divide-gray-200 dark:divide-gray-600" | ||
> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={128}> | ||
<div class="block"> | ||
<p class="">Nano</p> | ||
<p class="text-xs font-light">(128 MB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={256}> | ||
<div class="block"> | ||
<p class="">Micro</p> | ||
<p class="text-xs font-light">(256 MB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={512}> | ||
<div class="block"> | ||
<p class="">Small</p> | ||
<p class="text-xs font-light">(512 MB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={1024}> | ||
<div class="block"> | ||
<p class="">Medium</p> | ||
<p class="text-xs font-light">(1 GB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={2048}> | ||
<div class="block"> | ||
<p class="">Large</p> | ||
<p class="text-xs font-light">(2 GB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
<li class="w-full"> | ||
<Radio name="hor-list" class="p-3" bind:group={memoryRequestsInt} value={4096}> | ||
<div class="block"> | ||
<p class="">X-Large</p> | ||
<p class="text-xs font-light">(4 GB)</p> | ||
</div> | ||
</Radio> | ||
</li> | ||
</ul> | ||
</form> |
Oops, something went wrong.