Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
b734ec0f
Commit
b734ec0f
authored
Mar 08, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
246bf10e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
filters.ts
src/utils/filters.ts
+0
-23
No files found.
src/utils/filters.ts
View file @
b734ec0f
...
@@ -155,29 +155,6 @@ export default {
...
@@ -155,29 +155,6 @@ export default {
}
}
return
res
;
return
res
;
},
},
filterNum
:
(
num
:
number
|
string
|
null
)
=>
{
if
(
!
num
||
num
===
null
||
num
===
""
)
return
;
const
n
=
String
(
num
).
split
(
"."
);
const
b
=
parseInt
(
n
[
0
]).
toString
();
const
len
=
b
.
length
;
let
result
=
""
;
if
(
len
<=
3
)
{
result
=
b
;
}
else
{
const
r
=
len
%
3
;
result
=
r
>
0
?
b
.
slice
(
0
,
r
)
+
","
+
(
b
.
slice
(
r
,
len
).
match
(
/
\d{3}
/g
)
||
[]).
join
(
","
)
:
(
b
.
slice
(
r
,
len
).
match
(
/
\d{3}
/g
)
||
[]).
join
(
","
);
}
if
(
n
[
1
])
{
return
result
+
`.
${
n
[
1
]}
`
;
}
else
{
return
result
;
}
},
filterBlockReward
(
num
:
string
):
string
{
filterBlockReward
(
num
:
string
):
string
{
return
Number
(
num
)
>
yccDifferenceBlockRewardHeight
?
`15 YCC`
:
`30 YCC`
;
return
Number
(
num
)
>
yccDifferenceBlockRewardHeight
?
`15 YCC`
:
`30 YCC`
;
},
},
...
...
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