mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Changes:
- Added support for unauthenticated feeds #42 - Added support for Romanian - Closes #66 - Closes #81 - Closes #82 - Closes #84
This commit is contained in:
parent
599e024afa
commit
29eb3d0c35
9 changed files with 92 additions and 29 deletions
|
@ -67,7 +67,10 @@ export const useResults = defineStore('results', () => {
|
|||
useRoute(e);
|
||||
useNav().state.page = 'home';
|
||||
|
||||
next.value = hash + '?nextpage=' + encodeURIComponent(json.nextpage);
|
||||
next.value =
|
||||
json.nextpage || json.nextpage != 'null'
|
||||
? hash + '?nextpage=' + encodeURIComponent(json.nextpage)
|
||||
: null;
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -88,6 +91,7 @@ export const useArtist = defineStore('artist', () => {
|
|||
title: null,
|
||||
description: null,
|
||||
subscriberCount: 0,
|
||||
hash: null,
|
||||
thumbnails: [],
|
||||
});
|
||||
|
||||
|
@ -99,7 +103,7 @@ export const useArtist = defineStore('artist', () => {
|
|||
|
||||
function set(obj) {
|
||||
for (let i in obj) {
|
||||
state[i] = obj[i];
|
||||
if (i in state) state[i] = obj[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,6 +126,7 @@ export const useArtist = defineStore('artist', () => {
|
|||
console.log(results.items);
|
||||
|
||||
json.items = undefined;
|
||||
json.hash = e;
|
||||
|
||||
reset();
|
||||
set(json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue