diff --git a/.vscode/settings.json b/.vscode/settings.json index 3cc41b10..f441a626 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,20 +12,13 @@ "i18n-ally.keystyle": "flat", "i18n-ally.localesPaths": ["src/i18n", "src/i18n/messages"], "i18n-ally.extract.ignoredByFiles": { - "src/components/BrtPlayer.vue": [ - "Space", - "Space" - ], - "src/pages/[_type-normal]/[value].vue": [ - " • " - ], + "src/components/BrtPlayer.vue": ["Space", "Space"], + "src/pages/[_type-normal]/[value].vue": [" • "], "src/pages/phim/_season.vue": [ "${nameSeason} (${chaps[0].name} - ${\n chaps[chaps.length - 1].name\n })", "${name} - ${currentMetaSeason.name} Tập ${currentMetaChap.name}(${seasonId}/${currentMetaChap.id})" ], - "src/pages/tai-khoan/index.vue": [ - "bg-dark text-light-9" - ], + "src/pages/tai-khoan/index.vue": ["bg-dark text-light-9"], "src/pages/lich-chieu-phim.vue": [ "\n T{{ dayTextToNum(item.day) }}\n ", "/{{ item.month }}" @@ -33,9 +26,7 @@ "src/pages/news.vue": [ "•\n {{ dayjs(item.time).locale(\"vi\").fromNow() }}\n " ], - "src/pages/tai-khoan/edit-profile.vue": [ - "bg-dark text-light-9" - ], + "src/pages/tai-khoan/edit-profile.vue": ["bg-dark text-light-9"], "src/layouts/MainLayout.vue": [ "mailto:ogmo2r3q@duck.com?subject=Phản hồi ứng dụng web AnimeVsub", "bg-dark text-light-9", @@ -49,12 +40,8 @@ "• {{ t('_maxPage-trang', [data?.maxPage]) }}\n ", "• {{ t('_maxPage-trang', [data?.maxPage]) }}\n " ], - "src/apis/runs/ajax/rate.ts": [ - "${token_name}=${token_value}" - ], - "src/components/errors/cloudflare.vue": [ - ")\n " - ], + "src/apis/runs/ajax/rate.ts": ["${token_name}=${token_value}"], + "src/components/errors/cloudflare.vue": [")\n "], "src/components/errors/domain-strange.vue": [ "\n {{ extensionVersion ?? \"" ], diff --git a/README.md b/README.md index 957d2004..b846b411 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ If you find this project useful please support me through: ## News ### 1.1.47 + - Fix regexp `/^\w+0+/` to `/^[^0-9.+_-]+/` ### 1.1.46 @@ -60,7 +61,6 @@ If you find this project useful please support me through: - shallow reactive ![image](https://github.com/user-attachments/assets/e1c3bbb9-2add-4e26-af8a-22f1b2dee4c9) - ### 1.0.5 - Support skip `opening` and `ending` diff --git a/database.d.ts b/database.d.ts index f009198b..0ce64e3d 100644 --- a/database.d.ts +++ b/database.d.ts @@ -47,7 +47,7 @@ export type Database = { isOneToOne: false referencedRelation: "history" referencedColumns: ["id"] - }, + } ] } history: { @@ -105,7 +105,7 @@ export type Database = { isOneToOne: false referencedRelation: "chaps" referencedColumns: ["id"] - }, + } ] } movies: { @@ -149,7 +149,7 @@ export type Database = { isOneToOne: false referencedRelation: "playlist" referencedColumns: ["id"] - }, + } ] } notify: { @@ -184,7 +184,7 @@ export type Database = { isOneToOne: false referencedRelation: "users" referencedColumns: ["id"] - }, + } ] } notify_chap: { @@ -219,7 +219,7 @@ export type Database = { isOneToOne: false referencedRelation: "notify" referencedColumns: ["id"] - }, + } ] } playlist: { @@ -257,7 +257,7 @@ export type Database = { isOneToOne: false referencedRelation: "users" referencedColumns: ["id"] - }, + } ] } users: { @@ -617,7 +617,7 @@ export type Tables< TableName extends PublicTableNameOrOptions extends { schema: keyof Database } ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) - : never = never, + : never = never > = PublicTableNameOrOptions extends { schema: keyof Database } ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends { @@ -641,7 +641,7 @@ export type TablesInsert< | { schema: keyof Database }, TableName extends PublicTableNameOrOptions extends { schema: keyof Database } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] - : never = never, + : never = never > = PublicTableNameOrOptions extends { schema: keyof Database } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { Insert: infer I @@ -662,7 +662,7 @@ export type TablesUpdate< | { schema: keyof Database }, TableName extends PublicTableNameOrOptions extends { schema: keyof Database } ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] - : never = never, + : never = never > = PublicTableNameOrOptions extends { schema: keyof Database } ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { Update: infer U @@ -683,7 +683,7 @@ export type Enums< | { schema: keyof Database }, EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database } ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] - : never = never, + : never = never > = PublicEnumNameOrOptions extends { schema: keyof Database } ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] diff --git a/scripts/filter-vchap.ts b/scripts/filter-vchap.ts index 07c573b6..38757ac4 100644 --- a/scripts/filter-vchap.ts +++ b/scripts/filter-vchap.ts @@ -43,8 +43,11 @@ while (true) { console.log("Done %i / %i (%s)", i, rows?.length, row.season) allFailure = false } catch (err) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if ((err as unknown as any)?.message === "Can't find chap" && REMOVE_ROW_LOSS) { + + if ( + (err as unknown as any)?.message === "Can't find chap" && + REMOVE_ROW_LOSS + ) { await supabase .from("history") .delete() diff --git a/src/apis/parser/__helpers__/getInfoTPost.ts b/src/apis/parser/__helpers__/getInfoTPost.ts index 3483a484..d6df5119 100644 --- a/src/apis/parser/__helpers__/getInfoTPost.ts +++ b/src/apis/parser/__helpers__/getInfoTPost.ts @@ -64,9 +64,9 @@ export function getInfoTPost(cheerio: Cheerio, now: number) { genre, time_release: timeschedule.length > 0 - ? (countdown === undefined + ? ((countdown === undefined ? undefined - : Math.round(now / 1e3 + countdown) * 1e3) ?? null + : Math.round(now / 1e3 + countdown) * 1e3) ?? null) : undefined } } diff --git a/src/apis/runs/ajax/player-link.ts b/src/apis/runs/ajax/player-link.ts index c9ae19b2..b8186091 100644 --- a/src/apis/runs/ajax/player-link.ts +++ b/src/apis/runs/ajax/player-link.ts @@ -68,9 +68,9 @@ export function PlayerLink(config: { item.file = addProtocolUrl(item.file) } else { await init() - item.file = `data:application/vnd.apple.mpegurl;base64,${btoa(( - ( await decryptM3u8(item.file) ) - ))}`; + item.file = `data:application/vnd.apple.mpegurl;base64,${btoa( + await decryptM3u8(item.file) + )}` item.label = "HD" item.preload = "auto"