deemix-webui/src/components/pages/About.vue

262 lines
5.3 KiB
Vue
Raw Normal View History

<template>
<div id="about_tab">
<h1 class="mb-8 text-5xl capitalize">{{ $t('sidebar.about') }}</h1>
2020-09-07 09:36:26 +00:00
<ul>
<li>
{{ $t('about.updates.currentWebuiVersion') }}:
<span>{{ __VER__ || $t('about.updates.versionNotAvailable') }}</span>
</li>
<li>
2020-09-15 16:11:29 +00:00
{{ $t('about.updates.currentVersion') }}:
<span>{{ current || $t('about.updates.versionNotAvailable') }}</span>
</li>
<li>{{ $t('about.updates.deemixVersion') }}: {{ deemixVersion }}</li>
<li v-if="updateAvailable && latest">{{ $t('about.updates.updateAvailable', { version: latest }) }}</li>
2020-09-07 09:36:26 +00:00
</ul>
<ul>
2020-07-27 17:30:51 +00:00
<li v-html="$t('about.usesLibrary')"></li>
<li v-html="$t('about.thanks')"></li>
<i18n path="about.upToDate.text" tag="li">
2020-11-07 12:32:59 +00:00
<a place="newsChannel" href="https://t.me/RemixDevNews" target="_blank">{{
$t('about.upToDate.newsChannel')
}}</a>
</i18n>
</ul>
2020-07-27 17:30:51 +00:00
<h2>{{ $t('about.titles.usefulLinks') }}</h2>
<ul class="no-dots">
<!-- <li>
2020-07-27 17:30:51 +00:00
<a href="https://deemix.app" target="_blank">🌍 {{ $t('about.officialWebsite') }}</a>
</li> -->
2020-11-07 12:32:59 +00:00
<!-- <li>
<a href="" target="_blank">🚀 {{ $t('about.officialRepo') }}</a>
</li> -->
<!-- <li>
<a href="" target="_blank">
2020-11-02 21:50:19 +00:00
💻 {{ $t('about.officialWebuiRepo') }}
</a>
2020-11-07 12:32:59 +00:00
</li> -->
<li>
2020-07-27 17:30:51 +00:00
<a href="https://www.reddit.com/r/deemix" target="_blank">🤖 {{ $t('about.officialSubreddit') }}</a>
</li>
<li>
2020-07-27 17:30:51 +00:00
<a href="https://t.me/RemixDevNews" target="_blank">📰 {{ $t('about.newsChannel') }}</a>
</li>
</ul>
<h2>
2020-07-27 17:30:51 +00:00
{{ $t('about.titles.bugReports') }}
<span class="subheading">
2020-07-27 17:30:51 +00:00
{{ $t('about.subtitles.bugReports') }}
</span>
</h2>
<ul>
<i18n path="about.questions.text" tag="li">
2020-11-07 12:32:59 +00:00
<a place="subreddit" href="https://www.reddit.com/r/deemix" target="_blank">{{
$t('about.questions.subreddit')
}}</a>
</i18n>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.beforeReporting') }}
</li>
2020-07-27 17:30:51 +00:00
<li v-html="$t('about.beSure')"></li>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.duplicateReports') }}
</li>
2020-07-27 17:30:51 +00:00
<li v-html="$t('about.dontOpenIssues')"></li>
</ul>
<h2>
2020-07-27 17:30:51 +00:00
{{ $t('about.titles.contributing') }}
<span class="subheading">
2020-07-27 17:30:51 +00:00
{{ $t('about.subtitles.contributing') }}
</span>
</h2>
<ul>
<i18n path="about.newUI.text" tag="li">
2020-11-07 12:32:59 +00:00
<span place="repo">{{ $t('about.newUI.repo') }}</span>
</i18n>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.acceptFeatures') }}
</li>
<i18n path="about.contributeWebUI.text" tag="li">
2020-11-07 12:32:59 +00:00
<span place="webui">{{ $t('about.contributeWebUI.webui') }}</span>
</i18n>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.otherLanguages') }}
</li>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.understandingCode') }}
</li>
</ul>
<h2>
2020-07-27 17:30:51 +00:00
{{ $t('about.titles.donations') }}
<span class="subheading">
2020-07-27 17:30:51 +00:00
{{ $t('about.subtitles.donations') }}
</span>
</h2>
<ul>
2020-07-27 17:30:51 +00:00
<li v-html="$t('about.itsFree')"></li>
<li>
2020-07-27 17:30:51 +00:00
{{ $t('about.notObligated') }}
</li>
</ul>
<ul>
<li>
<i v-html="paypal" />
<strong>PayPal:</strong>
<a href="https://paypal.me/RemixDev" target="_blank">PayPal.me/RemixDev</a>
</li>
<li>
2020-07-28 13:41:30 +00:00
<i class="ethereum" v-html="ethereum" />
<strong>Ethereum:</strong> 0x1d2aa67e671485CD4062289772B662e0A6Ff976c
</li>
</ul>
2020-07-27 17:30:51 +00:00
<h2>{{ $t('about.titles.license') }}</h2>
<p>
<a rel="license" href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank">
<img
alt="GNU General Public License"
style="border-width: 0"
src="https://www.gnu.org/graphics/gplv3-127x51.png"
/>
</a>
</p>
<i18n path="about.lincensedUnder.text" tag="p">
2020-11-07 12:32:59 +00:00
<a place="gpl3" rel="license" href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank">{{
$t('about.lincensedUnder.gpl3')
}}</a>
</i18n>
</div>
</template>
<style lang="scss" scoped>
li,
p,
a {
letter-spacing: 0.4px;
font-size: 20px;
line-height: 1.2;
}
i {
vertical-align: middle;
}
i::v-deep svg {
fill: white;
width: 20px;
2020-07-27 17:30:51 +00:00
}
.ethereum::v-deep svg {
2020-07-28 13:41:30 +00:00
fill: var(--foreground);
}
:link {
text-decoration: none;
}
#about_tab {
margin-bottom: 40px;
}
h2 {
text-transform: capitalize;
&:not(.page_heading) {
font-size: 2rem;
border-bottom: 1px solid hsla(0, 0%, 20%, 0.25);
padding: {
top: 2rem;
bottom: 1rem;
}
}
.subheading {
display: block;
font-size: 0.5em;
margin-top: 0.5em;
font-weight: normal;
opacity: 0.8;
text-transform: none;
}
}
p {
margin: 0 !important;
}
ul {
li {
margin-bottom: 7px;
}
h2 + & {
margin-top: 1rem;
}
ul + & {
margin-top: 1.25rem;
}
&.no-dots {
list-style-type: none;
}
&:not(.no-dots) {
list-style-type: none;
li {
position: relative;
&::before {
content: '—';
position: absolute;
left: -30px;
opacity: 0.25;
}
}
}
}
</style>
<script>
2020-09-07 09:36:26 +00:00
import { socket } from '@/utils/socket'
import paypal from '@/assets/paypal.svg'
import ethereum from '@/assets/ethereum.svg'
2020-09-15 16:11:29 +00:00
import { mapGetters } from 'vuex'
export default {
data() {
return {
paypal,
ethereum,
current: null,
latest: null,
updateAvailable: false,
deemixVersion: null
}
},
2020-09-15 16:11:29 +00:00
computed: {
...mapGetters(['getAboutInfo'])
},
2020-09-07 09:36:26 +00:00
methods: {
initUpdate(data) {
const { currentCommit, latestCommit, updateAvailable, deemixVersion } = data
2020-09-07 09:36:26 +00:00
this.current = currentCommit
this.latest = latestCommit
this.updateAvailable = updateAvailable
this.deemixVersion = deemixVersion
2020-09-07 09:36:26 +00:00
}
},
2020-09-07 09:36:26 +00:00
mounted() {
2020-09-15 16:11:29 +00:00
this.initUpdate(this.getAboutInfo)
}
}
2020-07-28 13:41:30 +00:00
</script>