Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another-web
Commits
f91d0f06
Commit
f91d0f06
authored
Aug 17, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update match.ts
parent
6d18e1ab
Pipeline
#40245
passed with stages
in 2 minutes and 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/script/match.ts
src/script/match.ts
+4
-8
No files found.
src/script/match.ts
View file @
f91d0f06
...
@@ -25,20 +25,16 @@ class Match {
...
@@ -25,20 +25,16 @@ class Match {
this
.
round
=
obj
.
round
;
this
.
round
=
obj
.
round
;
this
.
isThirdPlaceMatch
=
obj
.
isThirdPlaceMatch
;
this
.
isThirdPlaceMatch
=
obj
.
isThirdPlaceMatch
;
this
.
status
=
obj
.
status
;
this
.
status
=
obj
.
status
;
const
name1_str
=
p
.
find
(
i
=>
i
.
id
==
obj
.
player1Id
)?.
name
??
''
;
const
name1
=
name1_str
.
split
(
/
[\+\u
FF0B
]
/
)
??
[];
this
.
player1
=
{
this
.
player1
=
{
id
:
obj
.
player1Id
,
id
:
obj
.
player1Id
,
name
:
(
name1
.
length
==
2
&&
!
Number
.
isNaN
(
name1
[
0
])
&&
name1
[
0
].
length
>
3
)
?
name1
[
1
]
:
name1_str
,
name
:
p
.
find
(
i
=>
i
.
id
==
obj
.
player1Id
)?.
name
??
''
,
qq
:
(
name1
.
length
==
2
&&
!
Number
.
isNaN
(
name1
[
0
])
&&
name1
[
0
].
length
>
3
)
?
name1
[
0
]
:
undefined
,
qq
:
p
.
find
(
i
=>
i
.
id
==
obj
.
player1Id
)?.
qq
??
undefined
,
score
:
obj
.
player1Score
score
:
obj
.
player1Score
};
};
const
name2_str
=
p
.
find
(
i
=>
i
.
id
==
obj
.
player2Id
)?.
name
??
''
;
const
name2
=
name2_str
?.
split
(
/
[\+\u
FF0B
]
/
)
??
[];
this
.
player2
=
{
this
.
player2
=
{
id
:
obj
.
player2Id
,
id
:
obj
.
player2Id
,
name
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name2
[
1
]
:
name2_str
,
name
:
p
.
find
(
i
=>
i
.
id
==
obj
.
player2Id
)?.
name
??
''
,
qq
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name2
[
0
]
:
undefined
,
qq
:
p
.
find
(
i
=>
i
.
id
==
obj
.
player2Id
)?.
qq
??
undefined
,
score
:
obj
.
player2Score
score
:
obj
.
player2Score
};
};
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
...
...
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