Removed local path from default config. Added count fallback in stash tile.
This commit is contained in:
parent
d9a7e3cd04
commit
be5eac1194
|
@ -381,7 +381,7 @@ module.exports = {
|
||||||
snapshotIntervals: [],
|
snapshotIntervals: [],
|
||||||
},
|
},
|
||||||
media: {
|
media: {
|
||||||
path: '/home/niels/Projects/traxxx/media',
|
path: './media',
|
||||||
transferSources: {
|
transferSources: {
|
||||||
local: 'http://localhost:5000/media',
|
local: 'http://localhost:5000/media',
|
||||||
s3: 'https://cdn.traxxx.me',
|
s3: 'https://cdn.traxxx.me',
|
||||||
|
|
|
@ -47,7 +47,7 @@ const pageContext = inject('pageContext');
|
||||||
const profile = pageContext.pageProps.profile;
|
const profile = pageContext.pageProps.profile;
|
||||||
|
|
||||||
function abbreviateNumber(number) {
|
function abbreviateNumber(number) {
|
||||||
return number.toLocaleString('en-US', { notation: 'compact' });
|
return number?.toLocaleString('en-US', { notation: 'compact' }) || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(profile.stashes);
|
console.log(profile.stashes);
|
||||||
|
|
Loading…
Reference in New Issue