-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: Ram widget to the new control page
- Loading branch information
Showing
6 changed files
with
54 additions
and
127 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
2 changes: 1 addition & 1 deletion
2
launcher/src/components/UI/control-page/components/widgets/TheNetwork.vue
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
29 changes: 29 additions & 0 deletions
29
launcher/src/components/UI/control-page/components/widgets/TheRam.vue
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,29 @@ | ||
<template> | ||
<div class="theRamParent flex w-full h-full justify-center items-center"> | ||
<div class="ramIco w-1/3 h-full flex flex-col justify-center items-center"> | ||
<div class="ramIco-container flex justify-center items-center w-full h-4/5"> | ||
<img class="w-3/4" src="/img/icon/control-page-icons/ramStick.svg" /> | ||
</div> | ||
<span class="w-full h-1/5 flex justify-center items-center text-gray-200 text-2xs font-semibold uppercase">{{ | ||
$t("controlPage.ram") | ||
}}</span> | ||
</div> | ||
<div class="ramValue w-2/3 h-full flex flex-col justify-center items-center"> | ||
<div class="valDigits w-full h-2/3 flex justify-center items-center"> | ||
<div class="digits flex h-full w-2/3 justify-center items-center"> | ||
<span class="text-[100%] text-gray-200 font-semibold">{{ controlStore.usedRam }} / {{ controlStore.totalRam }}</span> | ||
</div> | ||
<span class="flex w-1/3 justify-center items-center text-gray-200 font-semibold h-full">MB</span> | ||
</div> | ||
<div class="valLbl h-1/3 w-full flex justify-start items-center text-2xs font-thin text-gray-200"> | ||
<span class="w-1/3 flex justify-center items-center">{{ $t("controlPage.used") }}</span | ||
><span class="w-1/3 flex justify-center items-center">{{ $t("controlPage.totalram") }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { useControlStore } from "@/store/theControl"; | ||
const controlStore = useControlStore(); | ||
</script> |
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 was deleted.
Oops, something went wrong.