Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
40f8f7c6
Commit
40f8f7c6
authored
Oct 04, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete short locale
parent
c33bf627
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
32 deletions
+11
-32
dayjs.ts
lib/date/dayjs.ts
+9
-30
BlocksListItem.tsx
ui/blocks/BlocksListItem.tsx
+1
-1
BlocksTableItem.tsx
ui/blocks/BlocksTableItem.tsx
+1
-1
No files found.
lib/date/dayjs.ts
View file @
40f8f7c6
...
@@ -36,37 +36,16 @@ dayjs.updateLocale('en', {
...
@@ -36,37 +36,16 @@ dayjs.updateLocale('en', {
ss
:
'
%d secs
'
,
ss
:
'
%d secs
'
,
future
:
'
in %s
'
,
future
:
'
in %s
'
,
past
:
'
%s ago
'
,
past
:
'
%s ago
'
,
m
:
'
a
min
'
,
m
:
'
1
min
'
,
mm
:
'
%d mins
'
,
mm
:
'
%d mins
'
,
h
:
'
an hour
'
,
h
:
'
1 h
'
,
hh
:
'
%d hours
'
,
hh
:
'
%d h
'
,
d
:
'
a day
'
,
d
:
'
1 d
'
,
dd
:
'
%d days
'
,
dd
:
'
%d d
'
,
M
:
'
a month
'
,
M
:
'
1 mo
'
,
MM
:
'
%d months
'
,
MM
:
'
%d mo
'
,
y
:
'
a year
'
,
y
:
'
1 y
'
,
yy
:
'
%d years
'
,
yy
:
'
%d y
'
,
},
});
dayjs
.
locale
(
'
en-short
'
,
{
name
:
'
en-short
'
,
relativeTime
:
{
s
:
'
1s
'
,
future
:
'
in %s
'
,
past
:
'
%s ago
'
,
m
:
'
1m
'
,
mm
:
'
%dm
'
,
h
:
'
1h
'
,
hh
:
'
%dh
'
,
d
:
'
1d
'
,
dd
:
'
%dd
'
,
M
:
'
1mo
'
,
MM
:
'
%dmo
'
,
y
:
'
1y
'
,
yy
:
'
%dy
'
,
// have to trick typescript 🎩 🐇
...{
ss
:
'
%ds
'
},
},
},
});
});
...
...
ui/blocks/BlocksListItem.tsx
View file @
40f8f7c6
...
@@ -35,7 +35,7 @@ const BlocksListItem = ({ data, isPending }: Props) => {
...
@@ -35,7 +35,7 @@ const BlocksListItem = ({ data, isPending }: Props) => {
{
data
.
height
}
{
data
.
height
}
</
Link
>
</
Link
>
</
Flex
>
</
Flex
>
<
Text
variant=
"secondary"
fontWeight=
{
400
}
>
{
dayjs
(
data
.
timestamp
).
locale
(
'
en-short
'
).
fromNow
()
}
</
Text
>
<
Text
variant=
"secondary"
fontWeight=
{
400
}
>
{
dayjs
(
data
.
timestamp
).
fromNow
()
}
</
Text
>
</
Flex
>
</
Flex
>
<
Flex
columnGap=
{
2
}
>
<
Flex
columnGap=
{
2
}
>
<
Text
fontWeight=
{
500
}
>
Size
</
Text
>
<
Text
fontWeight=
{
500
}
>
Size
</
Text
>
...
...
ui/blocks/BlocksTableItem.tsx
View file @
40f8f7c6
...
@@ -33,7 +33,7 @@ const BlocksTableItem = ({ data, isPending }: Props) => {
...
@@ -33,7 +33,7 @@ const BlocksTableItem = ({ data, isPending }: Props) => {
{
data
.
height
}
{
data
.
height
}
</
Link
>
</
Link
>
</
Flex
>
</
Flex
>
<
Text
variant=
"secondary"
mt=
{
2
}
fontWeight=
{
400
}
>
{
dayjs
(
data
.
timestamp
).
locale
(
'
en-short
'
).
fromNow
()
}
</
Text
>
<
Text
variant=
"secondary"
mt=
{
2
}
fontWeight=
{
400
}
>
{
dayjs
(
data
.
timestamp
).
fromNow
()
}
</
Text
>
</
Td
>
</
Td
>
<
Td
fontSize=
"sm"
>
{
data
.
size
.
toLocaleString
(
'
en
'
)
}
bytes
</
Td
>
<
Td
fontSize=
"sm"
>
{
data
.
size
.
toLocaleString
(
'
en
'
)
}
bytes
</
Td
>
<
Td
fontSize=
"sm"
>
<
Td
fontSize=
"sm"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment