owntone-server/htdocs/assets/PageAbout.js
2023-12-14 20:00:28 +00:00

2 lines
4.2 KiB
JavaScript

import{_ as d,S as h,r as _,o as i,c as l,a as t,t as s,b as a,d as u,w as o}from"./index.js";const b={name:"PageAbout",computed:{config(){return this.$store.state.config},library(){return this.$store.state.library}},methods:{showUpdateDialog(){this.$store.commit(h,!0)}}},m={class:"section"},x={class:"container"},C={class:"columns is-centered"},p={class:"column is-four-fifths has-text-centered-mobile"},g=["textContent"],f={class:"section"},v={class:"container"},y={class:"columns is-centered"},$={class:"column is-four-fifths"},w={class:"content"},k={class:"level is-mobile"},D={class:"level-left"},N={class:"level-item"},j=["textContent"],z={class:"level-right"},A={key:0},B=["textContent"],V={key:1},I=["textContent"],P={class:"table"},S=["textContent"],U=["textContent"],E=["textContent"],F=["textContent"],O=["textContent"],T=["textContent"],G=["textContent"],H=["textContent"],L=["textContent"],M={class:"has-text-right"},W=["textContent"],q=["textContent"],J=["textContent"],K={class:"has-text-right"},Q=["textContent"],R=["textContent"],X={class:"section"},Y={class:"container"},Z={class:"columns is-centered"},tt={class:"column is-four-fifths"},et={class:"content has-text-centered-mobile"},st=["textContent"],nt=["textContent"],ot=t("a",{href:"https://bulma.io"},"Bulma",-1),at=t("a",{href:"https://pictogrammers.com/library/mdi/"},"Material Design Icons",-1),it=t("a",{href:"https://vuejs.org/"},"Vue.js",-1),lt=t("a",{href:"https://github.com/mzabriskie/axios"},"axios",-1),ct=["textContent"];function rt(e,c,dt,ht,_t,n){const r=_("i18n-t");return i(),l("div",null,[t("section",m,[t("div",x,[t("div",C,[t("div",p,[t("h1",{class:"title is-4",textContent:s(n.config.library_name)},null,8,g)])])])]),t("section",f,[t("div",v,[t("div",y,[t("div",$,[t("div",w,[t("nav",k,[t("div",D,[t("div",N,[t("h2",{class:"title is-5",textContent:s(e.$t("page.about.library"))},null,8,j)])]),t("div",z,[n.library.updating?(i(),l("div",A,[t("a",{class:"button is-small is-loading",textContent:s(e.$t("page.about.update"))},null,8,B)])):(i(),l("div",V,[t("a",{class:"button is-small",onClick:c[0]||(c[0]=ut=>n.showUpdateDialog()),textContent:s(e.$t("page.about.update"))},null,8,I)]))])]),t("table",P,[t("tbody",null,[t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.artists"))},null,8,S),t("td",{class:"has-text-right",textContent:s(e.$filters.number(n.library.artists))},null,8,U)]),t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.albums"))},null,8,E),t("td",{class:"has-text-right",textContent:s(e.$filters.number(n.library.albums))},null,8,F)]),t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.tracks"))},null,8,O),t("td",{class:"has-text-right",textContent:s(e.$filters.number(n.library.songs))},null,8,T)]),t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.total-playtime"))},null,8,G),t("td",{class:"has-text-right",textContent:s(e.$filters.durationInDays(n.library.db_playtime*1e3))},null,8,H)]),t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.updated"))},null,8,L),t("td",M,[t("span",{textContent:s(e.$t("page.about.updated-on",{time:e.$filters.timeFromNow(n.library.updated_at)}))},null,8,W),a(" ("),t("span",{class:"has-text-grey",textContent:s(e.$filters.datetime(n.library.updated_at))},null,8,q),a(") ")])]),t("tr",null,[t("th",{class:"has-text-left",textContent:s(e.$t("page.about.uptime"))},null,8,J),t("td",K,[t("span",{textContent:s(e.$filters.timeFromNow(n.library.started_at,!0))},null,8,Q),a(" ("),t("span",{class:"has-text-grey",textContent:s(e.$filters.datetime(n.library.started_at))},null,8,R),a(") ")])])])])])])])])]),t("section",X,[t("div",Y,[t("div",Z,[t("div",tt,[t("div",et,[t("p",{class:"is-size-7",textContent:s(e.$t("page.about.version",{version:n.config.version}))},null,8,st),t("p",{class:"is-size-7",textContent:s(e.$t("page.about.compiled-with",{options:n.config.buildoptions.join(", ")}))},null,8,nt),u(r,{tag:"p",class:"is-size-7",keypath:"page.about.built-with",scope:"global"},{bulma:o(()=>[ot]),mdi:o(()=>[at]),vuejs:o(()=>[it]),axios:o(()=>[lt]),others:o(()=>[t("a",{href:"https://github.com/owntone/owntone-server/network/dependencies",textContent:s(e.$t("page.about.more"))},null,8,ct)]),_:1})])])])])])])}const mt=d(b,[["render",rt]]);export{mt as default};