Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Plugin Ygocard
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
3rdeye
Koishi Plugin Ygocard
Commits
b178346e
Commit
b178346e
authored
Dec 05, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate schema to Config
parent
a26ee7d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/index.ts
src/index.ts
+1
-1
src/plugin.ts
src/plugin.ts
+1
-1
No files found.
src/index.ts
View file @
b178346e
...
...
@@ -7,7 +7,7 @@ export * from './config';
export
const
name
=
'
ygocard
'
;
const
plugin
=
new
MyPlugin
();
export
const
schema
=
plugin
.
schema
;
export
const
Config
=
plugin
.
schema
;
export
function
apply
(
ctx
:
Context
,
config
:
YGOCardConfig
)
{
ctx
.
plugin
(
plugin
,
config
);
}
src/plugin.ts
View file @
b178346e
...
...
@@ -8,7 +8,7 @@ import { YGOProCard } from './YGOProCard';
import
{
plainToClass
}
from
'
class-transformer
'
;
import
path
from
'
path
'
;
export
type
Config
=
Partial
<
YGOCardConfig
>
;
export
type
Plugin
Config
=
Partial
<
YGOCardConfig
>
;
export
class
MyPlugin
{
private
config
:
YGOCardConfig
;
...
...
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