Minor Fixes

This commit is contained in:
Shiny Nematoda 2022-06-27 18:57:50 +00:00
parent 44ee558509
commit 2b55ff908f
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
6 changed files with 21 additions and 14 deletions

View file

@ -1,12 +1,20 @@
<script setup>
import { ref, onUpdated } from 'vue';
import PlayBtn from './PlayBtn.vue';
defineProps(['title', 'desc', 'subs', 'thumbs', 'play']);
defineEmits(['playall']);
const show = ref(-1);
show.value = location.pathname.indexOf('/channel/UC');
onUpdated(() => {
show.value = location.pathname.indexOf('/channel/UC');
});
</script>
<template>
<div v-if="title" class="us-wrap">
<div v-if="show == 0 && title" class="us-wrap">
<div class="bg-imgfill" :style="'--art: url(' + thumbs[1].url + ');'"></div>
<div class="us-main">
<h2>{{ title }}</h2>

View file

@ -15,11 +15,13 @@ getJson('https://piped-instances.kavin.rocks').then(i => {
console.log(i);
});
/*getJson('https://hyperpipe.codeberg.page/api/backend.json').then(i => {
hypInstances.value = i
getJson('https://raw.codeberg.page/Hyperpipe/pages/api/backend.json').then(
i => {
hypInstances.value = i;
console.log(i);
});*/
console.log(i);
},
);
function getBool(val) {
return 'bi ' + (val ? 'bi-check2' : 'bi-x-lg');

View file

@ -67,6 +67,8 @@ watch(
() => props.search,
n => {
if (n) {
Reset();
n = n.replace(location.search || '', '');
console.log(n);

View file

@ -57,7 +57,7 @@ onMounted(() => {
<h4>{{ title }}</h4>
<a
:href="channel"
@click.prevent="$emit('get-artist', channel.replace('/channel', ''))"
@click.prevent="$emit('get-artist', channel.replace('/channel/', ''))"
class="ign">
<i class="ign">{{ author.replaceAll(' - Topic', '') }}</i>
</a>