Skip to content

Commit e8bec6c

Browse files
committed
refactor: remove semicolon
1 parent 95f0a4b commit e8bec6c

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

src/database/site-cate-database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function migrate(exist: Items, toMigrate: any) {
2828
if (!n || existLabels.has(n)) return
2929

3030
const id = idBase
31-
idBase++;
31+
idBase++
3232
exist[id] = { n }
3333
})
3434
}

src/pages/app/components/About/Description.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { t } from "@app/locale"
22
import { useMediaSize } from "@hooks"
33
import { MediaSize } from "@hooks/useMediaSize"
44
import { locale } from "@i18n"
5+
import Flex from "@pages/components/Flex"
56
import metaService from "@service/meta-service"
67
import packageInfo, { AUTHOR_EMAIL } from "@src/package"
78
import {
@@ -16,12 +17,11 @@ import {
1617
REVIEW_PAGE,
1718
SOURCE_CODE_PAGE,
1819
} from "@util/constant/url"
19-
import { type ComponentSize, ElCard, ElDescriptions, ElDescriptionsItem, ElDivider, ElSpace, ElText } from "element-plus"
20+
import { type ComponentSize, ElCard, ElDescriptions, ElDescriptionsItem, ElDivider, ElText } from "element-plus"
2021
import { computed, defineComponent } from "vue"
2122
import DescLink from "./DescLink"
2223
import "./description.sass"
2324
import InstallationLink from "./InstallationLink"
24-
import Flex from "@pages/components/Flex"
2525

2626
const computeSize = (mediaSize: MediaSize): ComponentSize => {
2727
if (mediaSize <= MediaSize.sm) {

src/pages/app/components/Dashboard/components/TopKVisit/BarChart/Wrapper.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { getStepColors, tooltipDot } from "@app/util/echarts";
2-
import { EchartsWrapper } from "@hooks/useEcharts";
3-
import { generateSiteLabel } from "@util/site";
4-
import type { BarSeriesOption } from "echarts/charts";
5-
import type { GridComponentOption, TooltipComponentOption } from "echarts/components";
6-
import type { ComposeOption } from "echarts/core";
7-
import { BizOption } from "../context";
1+
import { getStepColors, tooltipDot } from "@app/util/echarts"
2+
import { EchartsWrapper } from "@hooks/useEcharts"
3+
import { generateSiteLabel } from "@util/site"
4+
import type { BarSeriesOption } from "echarts/charts"
5+
import type { GridComponentOption, TooltipComponentOption } from "echarts/components"
6+
import type { ComposeOption } from "echarts/core"
7+
import { BizOption } from "../context"
88

99
type EcOption = ComposeOption<
1010
| BarSeriesOption

src/pages/app/components/DataManage/Migration/ImportOtherButton/processor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ function parseHistoryTrendsUnlimitedLine(line: string, data: { [dateAndHost: str
119119
const tsMaybe = cells?.[1]?.trim?.()
120120
if (/^U\d{13,}(\.\d*)?$/.test(tsMaybe)) {
121121
// Backup data
122-
let date: string;
122+
let date: string
123123
try {
124124
date = formatTimeYMD(parseFloat(tsMaybe.substring(1)))
125125
} catch {
126126
console.error("Invalid line: " + line)
127-
return;
127+
return
128128
}
129129
const host = extractHostname(url)?.host
130130
if (!host) return

src/service/site-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class SiteService {
9393

9494
async selectByPage(param?: SiteQueryParam, page?: timer.common.PageQuery): Promise<timer.common.PageResult<timer.site.SiteInfo>> {
9595
const origin: timer.site.SiteInfo[] = await siteDatabase.select(param)
96-
const result: timer.common.PageResult<timer.site.SiteInfo> = slicePageResult(origin, page);
96+
const result: timer.common.PageResult<timer.site.SiteInfo> = slicePageResult(origin, page)
9797
return result
9898
}
9999

test-e2e/limit/daily-time.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('Daily time limit', () => {
99
afterEach(() => context.close())
1010

1111
test('basic', async () => {
12-
const limitTime = 2;
12+
const limitTime = 2
1313
const limitPage = await context.openAppPage('/behavior/limit')
1414
const demoRule: timer.limit.Rule = {
1515
id: 1, name: 'TEST DAILY LIMIT',

types/common.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare type EmbeddedPartial<T> = {
44
? Array<EmbeddedPartial<U>>
55
: T[P] extends ReadonlyArray<infer U>
66
? ReadonlyArray<EmbeddedPartial<U>>
7-
: EmbeddedPartial<T[P]>;
7+
: EmbeddedPartial<T[P]>
88
}
99

1010
/**

0 commit comments

Comments
 (0)