Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Aug 9, 2023
1 parent 9ffcb94 commit e09940d
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 20 deletions.
4 changes: 3 additions & 1 deletion src/apis/__helpers__/parseItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function parseItem($: CheerioAPI, $li: Cheerio<Element>, now: number) {
// eslint-disable-next-line camelcase, @typescript-eslint/no-non-null-assertion
const last_chapter = parseAnchor($li.find(".last_chapter > a"))!
// eslint-disable-next-line camelcase
last_chapter.name = normalizeChName(last_chapter.name).replace("Đọc Tiếp", '').trim()
last_chapter.name = normalizeChName(last_chapter.name)
.replace("Đọc Tiếp", "")
.trim()
const $updated = $li.find(".time-ago").text().trim()
const updated = $updated ? parseTimeAgo($updated, now) : null
const label = $li.find(".type-label").text().trim() // "Hot" // "Label"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/nettruyen/parsers/__helpers__/parseComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function parseComment(
.match(/width:\s*(\d+)/)![1]
),
},
chapter: normalizeChName($item.find(".cmchapter").text().trim())
chapter: normalizeChName($item.find(".cmchapter").text().trim()),
}
// patch content
$item.find(".comment-content img").each((i, item) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"name": "Hôn Nhân Hạnh Phúc Của Tôi",
"uid": 25737,
"key": "c24e25e7-355f-6f2c-39ec-e5bad0bfb7bb",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"name": "Hôn Nhân Hạnh Phúc Của Tôi",
"othername": "",
"uid": 25737,
Expand Down
2 changes: 1 addition & 1 deletion src/apis/nettruyen/parsers/truyen-tranh/[slug].spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import slug from "./[slug]"
describe("[slug]", () => {
test("works", () => {
const result = slug(html, 1690510234674)

expect(result).toEqual(json)
})
})
3 changes: 1 addition & 2 deletions src/apis/nettruyen/runs/truyen-tranh/[auth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export default async function (
),
canMarkReadAll: !!markAsReadHtml,
readContinueId: pathEpCont
?
parseInt(
? parseInt(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
parsePath(pathEpCont).split("/").slice(-2).filter(Boolean).at(-1)!
)
Expand Down
8 changes: 6 additions & 2 deletions src/components/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@

<slot name="inside-image" />
</q-img>
<span class="a line-clamp-2 min-h-10 mt-1 text-1.2em">{{ data.name }}</span>
<span class="a line-clamp-2 min-h-10 mt-1 text-1.2em">{{
data.name
}}</span>
</q-card>
</router-link>

Expand Down Expand Up @@ -101,7 +103,9 @@
<!-- <div class="text-gray-400 mt-2">{{ t("cap-nhat-toi-tap-_duration", [data.process]) }}</div> -->

<div class="mt-2 text-[#eee] font-weight-medium">Giới thiệu</div>
<p class="text-gray-400 text-0.95em">{{ data.description ?? "Không có mô tả" }}</p>
<p class="text-gray-400 text-0.95em">
{{ data.description ?? "Không có mô tả" }}
</p>

<div class="tags mt-2">
<span
Expand Down
7 changes: 5 additions & 2 deletions src/components/CardVertical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:src="data.image"
referrerpolicy="no-referrer"
:ratio="190 / 247"
:width='imgWidth ?? "120px"'
:width="imgWidth ?? '120px'"
class="rounded-lg"
>
<BottomBlur>
Expand Down Expand Up @@ -60,7 +60,10 @@
</router-link>
</div>
<p v-if="data.description" class="text-grey mt-3 line-clamp-2 text-0.95em">
<p
v-if="data.description"
class="text-grey mt-3 line-clamp-2 text-0.95em"
>
{{ data.description }}
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/components/app/AppHeaderSearchMB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const route = useRoute()
const keyword = ref("")
const query = ref((route.query.query ?? "") + "")
const { data,run } = useRequest(() => PreSearch(query.value, 1), {
const { data, run } = useRequest(() => PreSearch(query.value, 1), {
manual: true,
})
watch(query, debounce(run, 300))
Expand Down
6 changes: 5 additions & 1 deletion src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
</q-page>
</q-page-container>
<q-footer v-if="isCapacitor" v-show='!route.meta?.hiddenFooter' class="bg-dark-page">
<q-footer
v-if="isCapacitor"
v-show="!route.meta?.hiddenFooter"
class="bg-dark-page"
>
<q-tabs
indicator-color="transparent"
active-color="white"
Expand Down
5 changes: 3 additions & 2 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,9 @@ const sliderIndex = ref(0)
z-index: 0;
width: 100%;
height: 48vw; //56vw
&, & .slide {
min-height: 48vw;
&,
& .slide {
min-height: 48vw;
}
max-height: 1012px;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/truyen-tranh/[zlug]/[epName]/[epId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@ import { useFullscreen } from "@vueuse/core"
import { useClamp } from "@vueuse/math"
import ReaderHorizontal from "components/truyen-tranh/readers/ReaderHorizontal.vue"
import type { QDialog, QMenu } from "quasar"
import { isCapacitor } from "src/constants"
// import data from "src/apis/parsers/__test__/assets/truyen-tranh/kanojo-mo-kanojo-9164-chap-140.json"
import { SERVERS } from "src/apis/nettruyen/parsers/truyen-tranh/[slug]/[ep-id]"
import SlugChapChap from "src/apis/nettruyen/runs/truyen-tranh/[slug]-chap-[chap]"
import { isCapacitor } from "src/constants"

const props = defineProps<{
zlug: string
Expand Down
2 changes: 1 addition & 1 deletion src/pages/truyen-tranh/[zlug]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ import { useShare } from "@vueuse/core"
// import Like from "src/apis/runs/frontend/regiter-like"
// import Subscribe from "src/apis/runs/frontend/subscribe"w2jk
import Manga from "src/apis/nettruyen/runs/truyen-tranh/[slug]"
import { isCapacitor } from "src/constants"
import dayjs from "src/logic/dayjs"
import { formatView } from "src/logic/formatView"
import { isCapacitor } from 'src/constants'

const props = defineProps<{
zlug: string
Expand Down
2 changes: 1 addition & 1 deletion src/vue-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ declare module "vue-router" {
hiddenHeader?: boolean
hiddenFooter?: boolean
}
|
}
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable n/no-extraneous-import */
import { quasar, transformAssetUrls } from "@quasar/vite-plugin"
import vue from "@vitejs/plugin-vue"
import UnoCSS from "unocss/vite"
import AutoImport from "unplugin-auto-import/vite"
import DefineOptions from "unplugin-vue-define-options/vite"
import tsconfigPaths from "vite-tsconfig-paths"
import { defineConfig } from "vitest/config"
import UnoCSS from "unocss/vite"
// vite.config.ts

// https://vitejs.dev/config/
Expand Down Expand Up @@ -63,6 +63,6 @@ export default defineConfig({
DefineOptions(),
UnoCSS({
configFile: "./uno.config.ts",
})
}),
],
})

0 comments on commit e09940d

Please sign in to comment.