Plug format now changed to YAML
This commit is contained in:
@@ -1,95 +0,0 @@
|
||||
{
|
||||
"hooks": {
|
||||
"commands": {
|
||||
"Navigate To page": {
|
||||
"invoke": "linkNavigate",
|
||||
"key": "Ctrl-Enter",
|
||||
"mac": "Cmd-Enter"
|
||||
},
|
||||
"Insert Current Date": {
|
||||
"invoke": "insertToday",
|
||||
"slashCommand": "today"
|
||||
},
|
||||
"Toggle : Heading 1": {
|
||||
"invoke": "toggle_h1",
|
||||
"mac": "Cmd-1",
|
||||
"key": "Ctrl-1"
|
||||
},
|
||||
"Toggle : Heading 2": {
|
||||
"invoke": "toggle_h2",
|
||||
"mac": "Cmd-2",
|
||||
"key": "Ctrl-2"
|
||||
},
|
||||
"Page: Delete": {
|
||||
"invoke": "deletePage"
|
||||
},
|
||||
"Page: Rename": {
|
||||
"invoke": "renamePage"
|
||||
},
|
||||
"Pages: Reindex": {
|
||||
"invoke": "reindexPages"
|
||||
},
|
||||
"Pages: Back Links": {
|
||||
"invoke": "showBackLinks"
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"page:click": ["taskToggle", "clickNavigate"],
|
||||
"editor:complete": ["pageComplete"],
|
||||
"page:index": ["indexLinks"],
|
||||
"load": ["welcome"]
|
||||
},
|
||||
"endpoints": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/",
|
||||
"handler": "endpointTest"
|
||||
}
|
||||
]
|
||||
},
|
||||
"functions": {
|
||||
"indexLinks": {
|
||||
"path": "./page.ts:indexLinks"
|
||||
},
|
||||
"deletePage": {
|
||||
"path": "./page.ts:deletePage"
|
||||
},
|
||||
"showBackLinks": {
|
||||
"path": "./page.ts:showBackLinks"
|
||||
},
|
||||
"renamePage": {
|
||||
"path": "./page.ts:renamePage"
|
||||
},
|
||||
"reindexPages": {
|
||||
"path": "./page.ts:reindex"
|
||||
},
|
||||
"pageComplete": {
|
||||
"path": "./navigate.ts:pageComplete"
|
||||
},
|
||||
"linkNavigate": {
|
||||
"path": "./navigate.ts:linkNavigate"
|
||||
},
|
||||
"clickNavigate": {
|
||||
"path": "./navigate.ts:clickNavigate"
|
||||
},
|
||||
"taskToggle": {
|
||||
"path": "./task.ts:taskToggle"
|
||||
},
|
||||
"insertToday": {
|
||||
"path": "./dates.ts:insertToday"
|
||||
},
|
||||
"toggle_h1": {
|
||||
"path": "./markup.ts:toggleH1"
|
||||
},
|
||||
"toggle_h2": {
|
||||
"path": "./markup.ts:toggleH2"
|
||||
},
|
||||
"endpointTest": {
|
||||
"path": "./server.ts:endpointTest"
|
||||
},
|
||||
"welcome": {
|
||||
"path": "./server.ts:welcome",
|
||||
"env": "server"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
functions:
|
||||
indexLinks:
|
||||
path: "./page.ts:indexLinks"
|
||||
events:
|
||||
- page:index
|
||||
deletePage:
|
||||
path: "./page.ts:deletePage"
|
||||
command:
|
||||
name: "Page: Delete"
|
||||
showBackLinks:
|
||||
path: "./page.ts:showBackLinks"
|
||||
command:
|
||||
name: "Page: Back Links"
|
||||
renamePage:
|
||||
path: "./page.ts:renamePage"
|
||||
command:
|
||||
name: "Page: Rename"
|
||||
pageComplete:
|
||||
path: "./navigate.ts:pageComplete"
|
||||
events:
|
||||
- editor:complete
|
||||
linkNavigate:
|
||||
path: "./navigate.ts:linkNavigate"
|
||||
command:
|
||||
name: Navigate To page
|
||||
key: Ctrl-Enter
|
||||
mac: Cmd-Enter
|
||||
clickNavigate:
|
||||
path: "./navigate.ts:clickNavigate"
|
||||
events:
|
||||
- page:click
|
||||
taskToggle:
|
||||
path: "./task.ts:taskToggle"
|
||||
events:
|
||||
- page:click
|
||||
insertToday:
|
||||
path: "./dates.ts:insertToday"
|
||||
command:
|
||||
name: Insert Current Date
|
||||
slashCommand: today
|
||||
welcome:
|
||||
path: "./server.ts:welcome"
|
||||
events:
|
||||
- load
|
||||
env: server
|
||||
|
||||
Reference in New Issue
Block a user