Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-deckform-filler
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
ygopro-deckform-filler
Commits
6db538d8
Commit
6db538d8
authored
Oct 23, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support no date
parent
4b81e975
Pipeline
#41224
passed with stages
in 1 minute and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
src/app.service.ts
src/app.service.ts
+23
-21
src/dto/fill-options.dto.ts
src/dto/fill-options.dto.ts
+2
-1
No files found.
src/app.service.ts
View file @
6db538d8
...
...
@@ -43,28 +43,30 @@ export class AppService extends ConsoleLogger {
this
.
log
(
`Filled direct draw fields.`
);
if
(
dto
.
date
)
{
const
date
=
moment
(
dto
.
date
);
// we need a dd-mm-yy format
const
dateStr
=
date
.
format
(
'
DDMMYYYY
'
);
const
dateChars
=
dateStr
.
split
(
''
);
// dd-mm-yy
const
datePrintStr
=
[
dateChars
[
0
],
dateChars
[
1
],
'
-
'
,
dateChars
[
2
],
dateChars
[
3
],
'
-
'
,
dateChars
[
6
],
dateChars
[
7
],
];
for
(
let
i
=
0
;
i
<
datePrintStr
.
length
;
i
++
)
{
await
this
.
drawTextService
.
drawTextInBox
(
doc
,
datePrintStr
[
i
],
moveRight
(
Coordinates
.
dateFirst
,
i
),
);
if
(
date
.
isValid
())
{
// we need a dd-mm-yy format
const
dateStr
=
date
.
format
(
'
DDMMYYYY
'
);
const
dateChars
=
dateStr
.
split
(
''
);
// dd-mm-yy
const
datePrintStr
=
[
dateChars
[
0
],
dateChars
[
1
],
'
-
'
,
dateChars
[
2
],
dateChars
[
3
],
'
-
'
,
dateChars
[
6
],
dateChars
[
7
],
];
for
(
let
i
=
0
;
i
<
datePrintStr
.
length
;
i
++
)
{
await
this
.
drawTextService
.
drawTextInBox
(
doc
,
datePrintStr
[
i
],
moveRight
(
Coordinates
.
dateFirst
,
i
),
);
}
this
.
log
(
`Filled date field.`
);
}
this
.
log
(
`Filled date field.`
);
}
const
totalCounts
=
[
ydk
.
main
.
length
,
ydk
.
extra
.
length
,
ydk
.
side
.
length
];
...
...
src/dto/fill-options.dto.ts
View file @
6db538d8
...
...
@@ -10,7 +10,8 @@ export class FillOptionsDto {
})
name
?:
string
;
@
IsDateString
()
// @IsDateString()
@
IsString
()
@
IsOptional
()
@
ApiProperty
({
type
:
String
,
...
...
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