mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
chore(repo): prune dead code and duplicate abstractions (#3413)
This commit is contained in:
1 parent
c17091768c
commit
c9fdf8fead
2937 files changed
+42233
-176793
No files matched your search
@@ -3,7 +3,7 @@
|
||||
import {getDateFormatter} from '@fluxer/date_utils/src/DateFormatterCache';
|
||||
import {localeUses12Hour} from '@fluxer/date_utils/src/DateHourCycle';
|
||||
|
||||
const TimestampStyle = {
|
||||
export const TimestampStyle = {
|
||||
ShortTime: 'ShortTime',
|
||||
LongTime: 'LongTime',
|
||||
ShortDate: 'ShortDate',
|
||||
@@ -14,7 +14,7 @@ const TimestampStyle = {
|
||||
ShortDateMediumTime: 'ShortDateMediumTime',
|
||||
RelativeTime: 'RelativeTime',
|
||||
} as const;
|
||||
type TimestampStyle = (typeof TimestampStyle)[keyof typeof TimestampStyle];
|
||||
export type TimestampStyle = (typeof TimestampStyle)[keyof typeof TimestampStyle];
|
||||
|
||||
const TIMESTAMP_STYLE_OPTIONS: Record<string, Intl.DateTimeFormatOptions> = {
|
||||
[TimestampStyle.ShortTime]: {hour: 'numeric', minute: 'numeric'},
|
||||
|
||||
Reference in new issue
Block a user