Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init-things
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
nanahira
init-things
Commits
1c1a8404
Commit
1c1a8404
authored
Oct 17, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5682074d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
things/koishi-plugin-init/.gitlab-ci.yml
things/koishi-plugin-init/.gitlab-ci.yml
+1
-1
things/koishi-plugin-init/src/index.ts
things/koishi-plugin-init/src/index.ts
+1
-1
things/koishi-plugin-init/src/plugin.ts
things/koishi-plugin-init/src/plugin.ts
+1
-1
No files found.
things/koishi-plugin-init/.gitlab-ci.yml
View file @
1c1a8404
...
...
@@ -23,7 +23,7 @@ upload_to_minio:
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/
hisoutensoku-jammer
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://nanahira/koishi-plugin/
myplugin
only
:
-
master
...
...
things/koishi-plugin-init/src/index.ts
View file @
1c1a8404
...
...
@@ -4,7 +4,7 @@ import { MyPlugin } from './plugin';
import
{
Config
}
from
'
./config
'
;
export
{
Config
}
from
'
./config
'
;
export
const
name
=
'
my
-
plugin
'
;
export
const
name
=
'
myplugin
'
;
const
plugin
=
new
MyPlugin
();
export
const
schema
=
plugin
.
schema
;
export
function
apply
(
ctx
:
Context
,
config
:
Partial
<
Config
>
)
{
...
...
things/koishi-plugin-init/src/plugin.ts
View file @
1c1a8404
...
...
@@ -6,7 +6,7 @@ import { schemaFromClass, schemaTransform } from 'koishi-utils-schemagen';
export
class
MyPlugin
{
private
config
:
Config
;
private
ctx
:
Context
;
name
=
'
my
-
plugin-main
'
;
name
=
'
myplugin-main
'
;
schema
:
Schema
<
Config
>
=
schemaFromClass
(
Config
);
apply
(
ctx
:
Context
,
config
:
Partial
<
Config
>
)
{
this
.
ctx
=
ctx
;
...
...
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