Skip to content

Commit

Permalink
update depends
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Dec 4, 2023
1 parent 5e7c57a commit 44bc65f
Show file tree
Hide file tree
Showing 5 changed files with 511 additions and 350 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@
"keywords": [],
"license": "LGPL-3.0-or-later",
"dependencies": {
"raiku-pgs": "0.1.3"
"raiku-pgs": "0.1.10"
},
"devDependencies": {
"@tachibana-shin/eslint-config": "^1.1.1",
"@types/node": "^20.9.0",
"@typescript-eslint/parser": "^6.11.0",
"@types/node": "^20.10.3",
"@typescript-eslint/parser": "^6.13.2",
"bumpp": "^9.2.0",
"cheerio": "1.0.0-rc.12",
"client-ext-animevsub-helper": "^1.0.24",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"esbuild": "^0.19.8",
"eslint": "^8.55.0",
"happy-dom": "^12.10.3",
"node-fetch": "^3.3.2",
"prettier": "^3.1.0",
"tsx": "^4.1.2",
"typescript": "^5.2.2",
"unplugin-auto-import": "^0.16.7",
"vite": "^4.5.0",
"vitest": "^0.34.6"
"tsx": "^4.6.2",
"typescript": "^5.3.2",
"unplugin-auto-import": "^0.17.2",
"vite": "^5.0.5",
"vitest": "^1.0.1"
}
}
1 change: 1 addition & 0 deletions package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ export const meta = definePackage({
get support() {
return AppInfo.extension || AppInfo.mode === "capacitor"
},
supportGetMode: true,
updatedAt: import.meta.env.DEV ? Date.now() : __NOW__
})
19 changes: 16 additions & 3 deletions plugin.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { defineApi } from "raiku-pgs/plugin"
import type { API, Comments, ID } from "raiku-pgs/plugin"
import { Rankings, Servers } from "src/constants"
import type { API, Comic, Comments, ID } from "raiku-pgs/plugin"
import { Rankings, Servers, TAGS_IS_MANGA } from "src/constants"
import { index } from "src/fetch"
import { getComic } from "src/fetch/get-comic"
import { getComicChapter } from "src/fetch/get-comic-chapter"
import { getListChapters } from "src/fetch/get-list-chapters"
import { search } from "src/fetch/search"
import { searchQuickly } from "src/fetch/search-quickly"

class Plugin implements API {
class Plugin implements API<false> {
public readonly Rankings = Rankings
public readonly Servers = Servers

public readonly autoFetchComicIsManga = false

async setup() {
if (AppInfo.extension) {
await setReferrers({
Expand All @@ -28,6 +30,17 @@ class Plugin implements API {
return getComic(zlug)
}

async getModeReader(_: string, __: string) {
// if (comicData.genres.some(item => TAGS_IS_MANGA.includes(item.name.toLowerCase()))) {
return {
scrollingMode: false,
rightToLeft: true
}
// }

// return {}
}

async getComicChapter<Fast extends boolean>(zlug: ID, chap: ID, fast: Fast) {
return getComicChapter(zlug, chap, fast)
}
Expand Down
Loading

0 comments on commit 44bc65f

Please sign in to comment.