Finish plugin updater

This commit is contained in:
Alex Ling
2022-01-22 13:11:58 +00:00
parent 5fac8c6a60
commit 031df3a2bc
7 changed files with 120 additions and 22 deletions

View File

@@ -100,14 +100,14 @@ const component = () => {
this.mangaTitle = data.title;
}
data.chapters.forEach((c) => {
c.array = ["hello", "world", "haha", "wtf"]
.sort(() => 0.5 - Math.random())
.slice(0, 2);
c.date = [612892800000, "1625068800000"].sort(
() => 0.5 - Math.random()
)[0];
});
//data.chapters.forEach((c) => {
//c.array = ["hello", "world", "haha", "wtf"]
//.sort(() => 0.5 - Math.random())
//.slice(0, 2);
//c.date = [612892800000, "1625068800000"].sort(
//() => 0.5 - Math.random()
//)[0];
//});
this.allChapters = data.chapters;
this.chapters = data.chapters;
@@ -387,7 +387,8 @@ const component = () => {
filters: this.filterSettings,
plugin: this.pid,
name: this.subscriptionName.trim(),
manga: this.mid,
manga: this.mangaTitle,
manga_id: this.mid,
}),
headers: {
"Content-Type": "application/json",