mirror of
https://github.com/romancm/gamebrary
synced 2025-03-07 16:17:22 +00:00
clean up
This commit is contained in:
parent
41aba39f59
commit
63d640c7cc
5 changed files with 12 additions and 11 deletions
|
@ -76,14 +76,14 @@
|
|||
<icon :name="nightMode ? 'moon' : 'sun'" />
|
||||
</b-button>
|
||||
|
||||
<b-button
|
||||
<!-- <b-button
|
||||
:title="$t('navMenu.upgrade')"
|
||||
:to="{ name: 'upgrade' }"
|
||||
variant="link"
|
||||
v-b-tooltip.hover.right
|
||||
>
|
||||
<icon name="star-fill" />
|
||||
</b-button>
|
||||
</b-button> -->
|
||||
|
||||
<router-link
|
||||
:title="$t('settings.account')"
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
},
|
||||
"upgrade": {
|
||||
"title": "Upgrade to Gamebrary Pro",
|
||||
"subtitle": "Give me your money"
|
||||
"subtitle": "..."
|
||||
},
|
||||
"notes": {
|
||||
"title": "Notes",
|
||||
|
|
|
@ -12,13 +12,14 @@
|
|||
|
||||
<b-container>
|
||||
<!-- TODO: add skeleton -->
|
||||
<b-row class="mb-3">
|
||||
<!-- TODO: finish search, include game title? -->
|
||||
<!-- <b-row class="mb-3">
|
||||
<b-form-input
|
||||
type="search"
|
||||
placeholder="Search notes"
|
||||
v-model="search"
|
||||
/>
|
||||
</b-row>
|
||||
</b-row> -->
|
||||
|
||||
<b-row>
|
||||
<template v-if="loaded && games && notes">
|
||||
|
@ -35,12 +36,12 @@
|
|||
<h5>{{ games[gameId] && games[gameId].name ? games[gameId].name : '' }}</h5>
|
||||
|
||||
<b-alert show variant="warning" class="mt-2">
|
||||
<vue-markdown :source="note && note.text ? note.text : note" />
|
||||
<vue-markdown :source="note.text ? note.text : note" />
|
||||
</b-alert>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
no tiene
|
||||
...
|
||||
</div>
|
||||
</b-card>
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
</b-button>
|
||||
|
||||
<div class="text-center mt-4">
|
||||
<h2>GamePro enhances your all-in-one Discord voice, video, and text chat.</h2>
|
||||
<h2>Title here</h2>
|
||||
<p class="lead">Check out the perks you'll get.</p>
|
||||
|
||||
|
||||
|
|
|
@ -100,11 +100,11 @@ export default {
|
|||
bytesToSize(bytes) {
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
||||
|
||||
if (bytes == 0) return '0 Byte';
|
||||
if (bytes === 0) return '0 Byte';
|
||||
|
||||
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
|
||||
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 0);
|
||||
|
||||
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i];
|
||||
return `${Math.round(bytes / (1024 ** i), 2)} ${sizes[i]}`;
|
||||
},
|
||||
|
||||
uploadWallpaper() {
|
||||
|
|
Loading…
Add table
Reference in a new issue