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
9d194e19
Commit
9d194e19
authored
Jun 24, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update searcher in tournament
parent
7f023636
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
51 deletions
+75
-51
src/pages/matchTree.vue
src/pages/matchTree.vue
+6
-6
src/pages/tournament.vue
src/pages/tournament.vue
+47
-35
src/script/match.ts
src/script/match.ts
+21
-9
src/script/participant.ts
src/script/participant.ts
+1
-1
No files found.
src/pages/matchTree.vue
View file @
9d194e19
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
id
:
i
.
id
,
id
:
i
.
id
,
next
:
i
.
childMatchId
,
next
:
i
.
childMatchId
,
player1
:
{
player1
:
{
id
:
i
.
player1
Id
?
i
.
player1I
d
.
toString
()
:
''
,
id
:
i
.
player1
.
id
?
i
.
player1
.
i
d
.
toString
()
:
''
,
name
:
i
.
player1
Id
?
getName
(
i
.
player1I
d
)
:
''
,
name
:
i
.
player1
.
id
?
getName
(
i
.
player1
.
i
d
)
:
''
,
winner
:
i
.
winnerId
?
i
.
player1
I
d
==
i
.
winnerId
:
undefined
winner
:
i
.
winnerId
?
i
.
player1
.
i
d
==
i
.
winnerId
:
undefined
},
},
player2
:
{
player2
:
{
id
:
i
.
player2
Id
?
i
.
player2I
d
.
toString
()
:
''
,
id
:
i
.
player2
.
id
?
i
.
player2
.
i
d
.
toString
()
:
''
,
name
:
i
.
player2
Id
?
getName
(
i
.
player2I
d
)
:
''
,
name
:
i
.
player2
.
id
?
getName
(
i
.
player2
.
i
d
)
:
''
,
winner
:
i
.
winnerId
?
i
.
player2
I
d
==
i
.
winnerId
:
undefined
winner
:
i
.
winnerId
?
i
.
player2
.
i
d
==
i
.
winnerId
:
undefined
}
}
});
});
});
});
...
...
src/pages/tournament.vue
View file @
9d194e19
This diff is collapsed.
Click to expand it.
src/script/match.ts
View file @
9d194e19
import
{
MatchObject
}
from
'
./type.ts
'
;
import
{
MatchObject
}
from
'
./type.ts
'
;
import
Participant
from
'
./participant.ts
'
import
Participant
from
'
./participant.ts
'
;
interface
player
{
id
:
number
;
score
:
number
;
name
:
string
;
}
class
Match
{
class
Match
{
id
:
number
;
id
:
number
;
...
@@ -7,10 +13,8 @@ class Match {
...
@@ -7,10 +13,8 @@ class Match {
round
:
number
;
round
:
number
;
isThirdPlaceMatch
:
boolean
;
isThirdPlaceMatch
:
boolean
;
status
:
string
;
status
:
string
;
player1Score
:
number
;
player1
:
player
;
player2Score
:
number
;
player2
:
player
;
player1Id
:
number
;
player2Id
:
number
;
winnerId
:
number
|
null
;
winnerId
:
number
|
null
;
childMatchId
:
number
;
childMatchId
:
number
;
...
@@ -20,10 +24,18 @@ class Match {
...
@@ -20,10 +24,18 @@ 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
;
this
.
player1Id
=
obj
.
player1Id
;
const
name1
=
obj
.
player1
?.
name
.
split
(
'
+
'
)
??
[];
this
.
player2Id
=
obj
.
player2Id
;
this
.
player1
=
{
this
.
player1Score
=
obj
.
player1Score
;
id
:
obj
.
player1Id
,
this
.
player2Score
=
obj
.
player2Score
;
name
:
(
name1
.
length
==
2
&&
!
Number
.
isNaN
(
name1
[
0
])
&&
name1
[
0
].
length
>
3
)
?
name1
[
1
]
:
obj
.
player1
?.
name
??
''
,
score
:
obj
.
player1Score
};
const
name2
=
obj
.
player2
?.
name
.
split
(
'
+
'
)
??
[];
this
.
player2
=
{
id
:
obj
.
player2Id
,
name
:
(
name2
.
length
==
2
&&
!
Number
.
isNaN
(
name2
[
0
])
&&
name2
[
0
].
length
>
3
)
?
name2
[
1
]
:
obj
.
player2
?.
name
??
''
,
score
:
obj
.
player2Score
};
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
this
.
winnerId
=
obj
.
winnerId
as
number
|
null
;
this
.
childMatchId
=
obj
.
childMatchId
;
this
.
childMatchId
=
obj
.
childMatchId
;
}
}
...
...
src/script/participant.ts
View file @
9d194e19
...
@@ -12,7 +12,7 @@ class Participant {
...
@@ -12,7 +12,7 @@ class Participant {
deck
:
YGOProDeck
|
undefined
;
deck
:
YGOProDeck
|
undefined
;
constructor
(
obj
:
ParticipantObject
)
{
constructor
(
obj
:
ParticipantObject
)
{
const
name
=
obj
.
name
.
split
(
'
+
'
)
const
name
=
obj
.
name
.
split
(
'
+
'
)
;
this
.
name
=
(
name
.
length
==
2
&&
!
Number
.
isNaN
(
name
[
0
])
&&
name
[
0
].
length
>
3
)
?
name
[
1
]
:
obj
.
name
;
this
.
name
=
(
name
.
length
==
2
&&
!
Number
.
isNaN
(
name
[
0
])
&&
name
[
0
].
length
>
3
)
?
name
[
1
]
:
obj
.
name
;
this
.
tournamentId
=
obj
.
tournamentId
;
this
.
tournamentId
=
obj
.
tournamentId
;
this
.
id
=
obj
.
id
;
this
.
id
=
obj
.
id
;
...
...
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