fix: typo for storage unit Go > GB #126

This commit is contained in:
Ravinou 2024-01-07 15:38:11 +01:00
parent 0c7d6f9290
commit c3271c33e6
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7
4 changed files with 6 additions and 6 deletions

View file

@ -116,7 +116,7 @@ export default function Repo(props) {
<tbody> <tbody>
<tr> <tr>
<th>{props.repositoryName}</th> <th>{props.repositoryName}</th>
<th>{props.storageSize}Go</th> <th>{props.storageSize} GB</th>
<th style={{ padding: '0 4% 0 4%' }}> <th style={{ padding: '0 4% 0 4%' }}>
<StorageBar <StorageBar
storageUsed={props.storageUsed} storageUsed={props.storageUsed}

View file

@ -3,7 +3,7 @@ import classes from './StorageBar.module.css';
export default function StorageBar(props) { export default function StorageBar(props) {
//Var //Var
//storageUsed is in octet, storageSize is in Go. Round to 1 decimal for %. //storageUsed is in octet, storageSize is in GB. Round to 1 decimal for %.
const storageUsedPercent = ( const storageUsedPercent = (
((props.storageUsed / 1000000) * 100) / ((props.storageUsed / 1000000) * 100) /
props.storageSize props.storageSize
@ -23,8 +23,8 @@ export default function StorageBar(props) {
</div> </div>
<div className={classes.tooltip}> <div className={classes.tooltip}>
{storageUsedPercent}% ( {storageUsedPercent}% (
{(props.storageUsed / 1000000).toFixed(1)}Go/ {(props.storageUsed / 1000000).toFixed(1)} GB /{' '}
{props.storageSize}Go) {props.storageSize} GB)
</div> </div>
</div> </div>
</div> </div>

View file

@ -78,7 +78,7 @@ export default function StorageUsedChartBar() {
datasets: [ datasets: [
{ {
label: 'Storage used (%)', label: 'Storage used (%)',
//storageUsed is in octet, storageSize is in Go. Round to 1 decimal for %. //storageUsed is in octet, storageSize is in GB. Round to 1 decimal for %.
data: data.map((repo) => data: data.map((repo) =>
( (
((repo.storageUsed / 1000000) * 100) / ((repo.storageUsed / 1000000) * 100) /

View file

@ -384,7 +384,7 @@ export default function RepoManage(props) {
</span> </span>
)} )}
{/* SIZE */} {/* SIZE */}
<label htmlFor='size'>Storage Size (Go)</label> <label htmlFor='size'>Storage Size (GB)</label>
<input <input
type='number' type='number'
min='1' min='1'