Skip to content

Commit 3ec8246

Browse files
committed
cleanup
1 parent f38906a commit 3ec8246

File tree

3 files changed

+1
-46
lines changed

3 files changed

+1
-46
lines changed

src/lib/types.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -345,49 +345,6 @@ export type CostLeaderboardData = Pick<
345345
langs: string[]
346346
}
347347

348-
// TODO: Deprecate AllTimeData
349-
export type AllTimeData = {
350-
name: string
351-
url: string
352-
unit: string
353-
dateRange: {
354-
from: string
355-
to: string
356-
}
357-
currency: string
358-
mode: string
359-
totalCosts: number
360-
totalTMSavings: number
361-
totalPreTranslated: number
362-
data: Array<{
363-
user: {
364-
id: number
365-
username: string
366-
fullName: string
367-
userRole: string
368-
avatarUrl: string
369-
preTranslated: number
370-
totalCosts: number
371-
}
372-
languages: Array<{
373-
language: {
374-
id: string
375-
name: string
376-
userRole: string
377-
tmSavings: number
378-
preTranslate: number
379-
totalCosts: number
380-
}
381-
translated: TranslatedStats
382-
targetTranslated: TranslatedStats
383-
translatedByMt: TranslatedStats
384-
approved: TranslatedStats
385-
translationCosts: TranslatedStats
386-
approvalCosts: TranslatedStats
387-
}>
388-
}>
389-
}
390-
391348
// GitHub contributors
392349
export type Commit = {
393350
commit: {

src/pages/contributing/translation-program/contributors.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ import {
1313
} from "@chakra-ui/react"
1414

1515
import {
16-
AllTimeData,
1716
BasePageProps,
1817
CostLeaderboardData,
19-
Unpacked,
2018
} from "@/lib/types"
2119

2220
import Breadcrumbs from "@/components/Breadcrumbs"

src/scripts/crowdin/leaderboard/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const getLastQuarter = (): { from: string; to: string } => {
88
const now = new Date()
99

1010
// Months per quarter
11-
const MPQ = 12 / 4
11+
const MPQ = 3
1212

1313
// Get current quarter
1414
const currentQ = Math.floor(now.getUTCMonth() / MPQ)

0 commit comments

Comments
 (0)