Skip to content

Commit 45bc4ac

Browse files
committed
Add fileter item of 2 hours
1 parent 3efba24 commit 45bc4ac

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/app/components/period/filter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const trenderSearchingRef: Ref<boolean> = ref(false)
2424
const options: { [size: string]: keyof PeriodMessage['sizes'] } = {
2525
1: 'fifteen',
2626
2: 'halfHour',
27-
4: 'hour'
27+
4: 'hour',
28+
8: 'twoHour'
2829
}
2930

3031
// Period size select

src/app/locale/components/period.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type PeriodMessage = {
55
fifteen: string
66
halfHour: string
77
hour: string
8+
twoHour: string
89
},
910
average: {
1011
label: string
@@ -29,7 +30,8 @@ const _default: Messages<PeriodMessage> = {
2930
sizes: {
3031
fifteen: '按十五分钟统计',
3132
halfHour: '按半小时统计',
32-
hour: '按一小时统计'
33+
hour: '按一小时统计',
34+
twoHour: '按两小时统计'
3335
},
3436
average: {
3537
label: '平均每天'
@@ -52,7 +54,8 @@ const _default: Messages<PeriodMessage> = {
5254
sizes: {
5355
fifteen: 'By 15 minute',
5456
halfHour: 'By half hour',
55-
hour: 'By one hour'
57+
hour: 'By one hour',
58+
twoHour: 'By two hours'
5659
},
5760
average: {
5861
label: 'Daily average'
@@ -75,7 +78,8 @@ const _default: Messages<PeriodMessage> = {
7578
sizes: {
7679
fifteen: '15分で統計',
7780
halfHour: '30分で統計',
78-
hour: '1時間ごとの統計'
81+
hour: '1時間ごとの統計',
82+
twoHour: '2時間ごとの統計'
7983
},
8084
average: {
8185
label: '1日平均'

0 commit comments

Comments
 (0)