2018-08-11 07:47:10 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-four-fifths has-text-centered-mobile">
|
2021-05-13 16:03:10 +02:00
|
|
|
<p class="heading"><b>OwnTone</b> - version {{ config.version }}</p>
|
2022-02-19 06:39:14 +01:00
|
|
|
<h1 class="title is-4">
|
|
|
|
{{ config.library_name }}
|
|
|
|
</h1>
|
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">
|
|
|
|
<h2 class="title is-5">Library</h2>
|
|
|
|
</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">
|
|
|
|
<a class="button is-small is-loading">Update</a>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
|
|
|
<a class="button is-small" @click="showUpdateDialog()"
|
|
|
|
>Update</a
|
|
|
|
>
|
|
|
|
</div>
|
2018-08-11 07:47:10 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Artists</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
|
|
|
{{ $filters.number(library.artists) }}
|
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Albums</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
|
|
|
{{ $filters.number(library.albums) }}
|
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Tracks</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
|
|
|
{{ $filters.number(library.songs) }}
|
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Total playtime</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
2022-04-15 19:47:36 +02:00
|
|
|
{{ $filters.durationInDays(library.db_playtime * 1000) }}
|
2022-02-19 06:39:14 +01:00
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Library updated</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
2022-04-15 19:47:36 +02:00
|
|
|
{{ $filters.timeFromNow(library.updated_at) }} ago
|
2022-02-19 06:39:14 +01:00
|
|
|
<span class="has-text-grey"
|
2022-04-15 19:47:36 +02:00
|
|
|
>({{ $filters.datetime(library.updated_at) }})</span
|
2022-02-19 06:39:14 +01:00
|
|
|
>
|
|
|
|
</td>
|
2018-08-11 07:47:10 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Uptime</th>
|
2022-02-19 06:39:14 +01:00
|
|
|
<td class="has-text-right">
|
|
|
|
{{ $filters.timeFromNow(library.started_at, true) }}
|
|
|
|
<span class="has-text-grey"
|
2022-04-15 19:47:36 +02:00
|
|
|
>({{ $filters.datetime(library.started_at) }})</span
|
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-02-19 06:39:14 +01:00
|
|
|
<p class="is-size-7">
|
|
|
|
Compiled with support for {{ config.buildoptions.join(', ') }}.
|
|
|
|
</p>
|
|
|
|
<p class="is-size-7">
|
|
|
|
Web interface built with <a href="http://bulma.io">Bulma</a>,
|
|
|
|
<a href="https://materialdesignicons.com/"
|
|
|
|
>Material Design Icons</a
|
|
|
|
>, <a href="https://vuejs.org/">Vue.js</a>,
|
|
|
|
<a href="https://github.com/mzabriskie/axios">axios</a> and
|
|
|
|
<a
|
|
|
|
href="https://github.com/owntone/owntone-server/network/dependencies"
|
|
|
|
>more</a
|
|
|
|
>.
|
|
|
|
</p>
|
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',
|
|
|
|
|
2022-02-19 06:39:14 +01:00
|
|
|
data() {
|
2019-08-25 08:17:44 +02:00
|
|
|
return {
|
2022-01-09 18:29:24 +01:00
|
|
|
show_update_dropdown: false,
|
|
|
|
show_update_library: false
|
2019-08-25 08:17:44 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-08-11 07:47:10 +02:00
|
|
|
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
|
|
|
onClickOutside(event) {
|
2020-10-17 07:50:37 +02:00
|
|
|
this.show_update_dropdown = false
|
|
|
|
},
|
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>
|