and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

...
 
Commits (3)
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -113,23 +113,20 @@ ...@@ -113,23 +113,20 @@
import { computed, defineComponent, reactive, toRefs } from '@vue/composition-api' import { computed, defineComponent, reactive, toRefs } from '@vue/composition-api'
import { links } from '@/data/sidebar' import { links } from '@/data/sidebar'
import { socket } from '@/utils/socket'
import { useTheme } from '@/use/theme' import { useTheme } from '@/use/theme'
import deemixIcon from '@/assets/deemix-icon.svg' import deemixIcon from '@/assets/deemix-icon.svg'
export default defineComponent({ export default defineComponent({
setup(props, ctx) { setup(props, ctx) {
const state = reactive({ const state = reactive({
activeTablink: 'home', activeTablink: 'home',
updateAvailable: false,
links links
}) })
const { THEMES, currentTheme } = useTheme() const { THEMES, currentTheme } = useTheme()
/* === Add update notification near info === */ /* === Add update notification near info === */
socket.on('updateAvailable', () => { const updateAvailable = computed(() => ctx.root.$store.state.appInfo.updateAvailable)
state.updateAvailable = true
})
ctx.root.$router.afterEach((to, from) => { ctx.root.$router.afterEach((to, from) => {
const linkInSidebar = state.links.find(link => link.routerName === to.name) const linkInSidebar = state.links.find(link => link.routerName === to.name)
...@@ -141,6 +138,7 @@ export default defineComponent({ ...@@ -141,6 +138,7 @@ export default defineComponent({
return { return {
...toRefs(state), ...toRefs(state),
updateAvailable,
THEMES, THEMES,
currentTheme, currentTheme,
isSlim: computed(() => ctx.root.$store.getters.getSlimSidebar), isSlim: computed(() => ctx.root.$store.getters.getSlimSidebar),
......
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
<li v-html="$t('about.thanks')"></li> <li v-html="$t('about.thanks')"></li>
<i18n path="about.upToDate.text" tag="li"> <i18n path="about.upToDate.text" tag="li">
<template #newsChannel> <template #newsChannel>
<a href="https://t.me/RemixDevNews" target="_blank">{{ <a href="https://t.me/RemixDevNews" target="_blank">{{ $t('about.upToDate.newsChannel') }}</a>
$t('about.upToDate.newsChannel')
}}</a>
</template> </template>
</i18n> </i18n>
</ul> </ul>
...@@ -42,9 +40,7 @@ ...@@ -42,9 +40,7 @@
<a href="https://git.rip/RemixDev/deemix" target="_blank">🚀 {{ $t('about.officialRepo') }}</a> <a href="https://git.rip/RemixDev/deemix" target="_blank">🚀 {{ $t('about.officialRepo') }}</a>
</li> </li>
<li> <li>
<a href="https://git.rip/RemixDev/deemix-webui" target="_blank"> <a href="https://git.rip/RemixDev/deemix-webui" target="_blank"> 💻 {{ $t('about.officialWebuiRepo') }} </a>
💻 {{ $t('about.officialWebuiRepo') }}
</a>
</li> </li>
<li> <li>
<a href="https://www.reddit.com/r/deemix" target="_blank">🤖 {{ $t('about.officialSubreddit') }}</a> <a href="https://www.reddit.com/r/deemix" target="_blank">🤖 {{ $t('about.officialSubreddit') }}</a>
...@@ -63,9 +59,7 @@ ...@@ -63,9 +59,7 @@
<ul> <ul>
<i18n path="about.questions.text" tag="li"> <i18n path="about.questions.text" tag="li">
<template #subreddit> <template #subreddit>
<a href="https://www.reddit.com/r/deemix" target="_blank">{{ <a href="https://www.reddit.com/r/deemix" target="_blank">{{ $t('about.questions.subreddit') }}</a>
$t('about.questions.subreddit')
}}</a>
</template> </template>
</i18n> </i18n>
<li> <li>
...@@ -241,7 +235,7 @@ ul { ...@@ -241,7 +235,7 @@ ul {
</style> </style>
<script> <script>
import { defineComponent, ref, reactive, toRefs, onMounted, computed } from '@vue/composition-api' import { computed, defineComponent, onMounted, reactive, toRefs } from '@vue/composition-api'
import { useOnline } from '@/use/online' import { useOnline } from '@/use/online'
......
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
// Pages // Pages
//import About from '@components/pages/About.vue' import About from '@components/pages/About.vue'
import InfoArl from '@components/pages/InfoArl.vue' import InfoArl from '@components/pages/InfoArl.vue'
import InfoSpotifyFeatures from '@components/pages/InfoSpotifyFeatures.vue' import InfoSpotifyFeatures from '@components/pages/InfoSpotifyFeatures.vue'
import Artist from '@components/pages/Artist.vue' import Artist from '@components/pages/Artist.vue'
...@@ -82,11 +82,11 @@ const routes = [ ...@@ -82,11 +82,11 @@ const routes = [
name: 'Link Analyzer', name: 'Link Analyzer',
component: LinkAnalyzer component: LinkAnalyzer
}, },
/*{ {
path: '/about', path: '/about',
name: 'About', name: 'About',
component: About component: About
},*/ },
{ {
path: '/info-arl', path: '/info-arl',
name: 'ARL', name: 'ARL',
......