1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Plugin Generator release v2.13.2

This commit is contained in:
Laurent Cozic 2023-11-12 15:40:37 +00:00
parent 5d4259d064
commit 21e5f88cb2
4 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@ import { ModelType } from '../../../BaseModel';
import Plugin from '../Plugin'; import Plugin from '../Plugin';
import { Path } from './types'; import { Path } from './types';
/** /**
* This module provides access to the Joplin data API: https://joplinapp.org/api/references/rest_api/ * This module provides access to the Joplin data API: https://joplinapp.org/help/api/references/rest_api
* This is the main way to retrieve data, such as notes, notebooks, tags, etc. * This is the main way to retrieve data, such as notes, notebooks, tags, etc.
* or to update them or delete them. * or to update them or delete them.
* *
@ -18,7 +18,7 @@ import { Path } from './types';
* * `data`: (Optional) Applies to PUT and POST calls only. The request body contains the data you want to create or modify, for example the content of a note or folder. * * `data`: (Optional) Applies to PUT and POST calls only. The request body contains the data you want to create or modify, for example the content of a note or folder.
* * `files`: (Optional) Used to create new resources and associate them with files. * * `files`: (Optional) Used to create new resources and associate them with files.
* *
* Please refer to the [Joplin API documentation](https://joplinapp.org/api/references/rest_api/) for complete details about each call. As the plugin runs within the Joplin application **you do not need an authorisation token** to use this API. * Please refer to the [Joplin API documentation](https://joplinapp.org/help/api/references/rest_api) for complete details about each call. As the plugin runs within the Joplin application **you do not need an authorisation token** to use this API.
* *
* For example: * For example:
* *

View File

@ -9,7 +9,7 @@ import { ExportModule, ImportModule } from './types';
* *
* See the documentation of the [[ExportModule]] and [[ImportModule]] for more information. * See the documentation of the [[ExportModule]] and [[ImportModule]] for more information.
* *
* You may also want to refer to the Joplin API documentation to see the list of properties for each item (note, notebook, etc.) - https://joplinapp.org/api/references/rest_api/ * You may also want to refer to the Joplin API documentation to see the list of properties for each item (note, notebook, etc.) - https://joplinapp.org/help/api/references/rest_api
*/ */
export default class JoplinInterop { export default class JoplinInterop {
registerExportModule(module: ExportModule): Promise<void>; registerExportModule(module: ExportModule): Promise<void>;

View File

@ -524,13 +524,13 @@ export interface ContentScriptModuleLoadedEvent {
} }
export interface ContentScriptModule { export interface ContentScriptModule {
onLoaded?: (event:ContentScriptModuleLoadedEvent) => void; onLoaded?: (event: ContentScriptModuleLoadedEvent)=> void;
plugin: () => any; plugin: ()=> any;
assets?: () => void; assets?: ()=> void;
} }
export interface MarkdownItContentScriptModule extends Omit<ContentScriptModule, 'plugin'> { export interface MarkdownItContentScriptModule extends Omit<ContentScriptModule, 'plugin'> {
plugin: (markdownIt:any, options:any) => any; plugin: (markdownIt: any, options: any)=> any;
} }
export enum ContentScriptType { export enum ContentScriptType {
@ -552,7 +552,7 @@ export enum ContentScriptType {
* } * }
* } * }
* ``` * ```
* *
* See [the * See [the
* demo](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/content_script) * demo](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/content_script)
* for a simple Markdown-it plugin example. * for a simple Markdown-it plugin example.

View File

@ -1,6 +1,6 @@
{ {
"name": "generator-joplin", "name": "generator-joplin",
"version": "2.13.1", "version": "2.13.2",
"description": "Scaffolds out a new Joplin plugin", "description": "Scaffolds out a new Joplin plugin",
"homepage": "https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin", "homepage": "https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin",
"author": { "author": {
@ -34,4 +34,4 @@
"repository": "https://github.com/laurent22/generator-joplin", "repository": "https://github.com/laurent22/generator-joplin",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"private": true "private": true
} }