2018-08-11 07:47:10 +02:00
|
|
|
<template>
|
2023-06-23 22:23:32 +02:00
|
|
|
<div class="fd-page">
|
|
|
|
<section class="section">
|
2018-08-11 07:47:10 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths has-text-centered-mobile">
|
2022-05-20 13:44:22 +02:00
|
|
|
<h1 class="title is-4" v-text="config.library_name" />
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths">
|
|
|
|
<div class="content">
|
|
|
|
<nav class="level is-mobile">
|
|
|
|
<!-- Left side -->
|
|
|
|
<div class="level-left">
|
|
|
|
<div class="level-item">
|
2022-05-20 13:44:22 +02:00
|
|
|
<h2 class="title is-5" v-text="$t('page.about.library')" />
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Right side -->
|
2019-08-25 08:17:44 +02:00
|
|
|
<div class="level-right">
|
2022-02-19 06:39:14 +01:00
|
|
|
<div v-if="library.updating">
|
2022-05-29 18:49:00 +02:00
|
|
|
<a
|
|
|
|
class="button is-small is-loading"
|
|
|
|
v-text="$t('page.about.update')"
|
|
|
|
/>
|
2022-02-19 06:39:14 +01:00
|
|
|
</div>
|
|
|
|
<div v-else>
|
2022-05-29 18:49:00 +02:00
|
|
|
<a
|
|
|
|
class="button is-small"
|
|
|
|
@click="showUpdateDialog()"
|
|
|
|
v-text="$t('page.about.update')"
|
|
|
|
/>
|
2022-02-19 06:39:14 +01:00
|
|
|
</div>
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.artists')"
|
|
|
|
/>
|
2022-05-29 18:49:00 +02:00
|
|
|
<td
|
|
|
|
class="has-text-right"
|
|
|
|
v-text="$filters.number(library.artists)"
|
|
|
|
/>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.albums')"
|
|
|
|
/>
|
2022-05-29 18:49:00 +02:00
|
|
|
<td
|
|
|
|
class="has-text-right"
|
|
|
|
v-text="$filters.number(library.albums)"
|
|
|
|
/>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.tracks')"
|
|
|
|
/>
|
2022-05-29 18:49:00 +02:00
|
|
|
<td
|
|
|
|
class="has-text-right"
|
|
|
|
v-text="$filters.number(library.songs)"
|
|
|
|
/>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.total-playtime')"
|
|
|
|
/>
|
2022-05-29 18:49:00 +02:00
|
|
|
<td
|
|
|
|
class="has-text-right"
|
|
|
|
v-text="
|
|
|
|
$filters.durationInDays(library.db_playtime * 1000)
|
|
|
|
"
|
|
|
|
/>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.updated')"
|
|
|
|
/>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
2022-05-29 18:49:00 +02:00
|
|
|
<span
|
|
|
|
v-text="
|
|
|
|
$t('page.about.updated-on', {
|
|
|
|
time: $filters.timeFromNow(library.updated_at)
|
|
|
|
})
|
|
|
|
"
|
|
|
|
/>
|
|
|
|
(<span
|
|
|
|
class="has-text-grey"
|
|
|
|
v-text="$filters.datetime(library.updated_at)"
|
|
|
|
/>)
|
2022-02-19 06:39:14 +01:00
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-05 19:19:00 +02:00
|
|
|
<th
|
|
|
|
class="has-text-left"
|
|
|
|
v-text="$t('page.about.uptime')"
|
|
|
|
/>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
2022-05-29 18:49:00 +02:00
|
|
|
<span
|
|
|
|
v-text="$filters.timeFromNow(library.started_at, true)"
|
|
|
|
/>
|
|
|
|
(<span
|
|
|
|
class="has-text-grey"
|
|
|
|
v-text="$filters.datetime(library.started_at)"
|
|
|
|
/>)
|
2022-02-19 06:39:14 +01:00
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths">
|
|
|
|
<div class="content has-text-centered-mobile">
|
2022-06-05 19:19:00 +02:00
|
|
|
<p
|
|
|
|
class="is-size-7"
|
|
|
|
v-text="$t('page.about.version', { version: config.version })"
|
|
|
|
/>
|
2022-05-29 18:49:00 +02:00
|
|
|
<p
|
|
|
|
class="is-size-7"
|
|
|
|
v-text="
|
|
|
|
$t('page.about.compiled-with', {
|
|
|
|
options: config.buildoptions.join(', ')
|
|
|
|
})
|
|
|
|
"
|
|
|
|
/>
|
2023-07-02 20:21:39 +02:00
|
|
|
<i18n-t
|
|
|
|
tag="p"
|
|
|
|
class="is-size-7"
|
|
|
|
keypath="page.about.built-with"
|
|
|
|
scope="global"
|
|
|
|
>
|
2023-07-02 18:11:41 +02:00
|
|
|
<template #bulma><a href="https://bulma.io">Bulma</a></template>
|
|
|
|
<template #mdi
|
|
|
|
><a href="https://pictogrammers.com/library/mdi/"
|
|
|
|
>Material Design Icons</a
|
|
|
|
></template
|
|
|
|
>
|
|
|
|
<template #vuejs
|
|
|
|
><a href="https://vuejs.org/">Vue.js</a></template
|
|
|
|
>
|
|
|
|
<template #axios
|
|
|
|
><a href="https://github.com/mzabriskie/axios"
|
|
|
|
>axios</a
|
|
|
|
></template
|
|
|
|
>
|
|
|
|
<template #others
|
|
|
|
><a
|
|
|
|
href="https://github.com/owntone/owntone-server/network/dependencies"
|
|
|
|
v-text="$t('page.about.more')"
|
|
|
|
/></template>
|
|
|
|
</i18n-t>
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-01-09 18:29:24 +01:00
|
|
|
import * as types from '@/store/mutation_types'
|
2018-08-11 07:47:10 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'PageAbout',
|
|
|
|
|
|
|
|
computed: {
|
2022-02-19 06:39:14 +01:00
|
|
|
config() {
|
2018-08-11 07:47:10 +02:00
|
|
|
return this.$store.state.config
|
|
|
|
},
|
2022-02-19 06:39:14 +01:00
|
|
|
library() {
|
2018-08-11 07:47:10 +02:00
|
|
|
return this.$store.state.library
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2022-02-19 06:39:14 +01:00
|
|
|
showUpdateDialog() {
|
2022-01-09 18:29:24 +01:00
|
|
|
this.$store.commit(types.SHOW_UPDATE_DIALOG, true)
|
2018-08-11 07:47:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-19 06:39:14 +01:00
|
|
|
<style></style>
|