From 21e5f88cb2ae831b21ec71b6fce5ea1cf1dea9a6 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 12 Nov 2023 15:40:37 +0000 Subject: [PATCH] Plugin Generator release v2.13.2 --- .../generators/app/templates/api/JoplinData.d.ts | 4 ++-- .../generators/app/templates/api/JoplinInterop.d.ts | 2 +- .../generators/app/templates/api/types.ts | 10 +++++----- packages/generator-joplin/package.json | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/generator-joplin/generators/app/templates/api/JoplinData.d.ts b/packages/generator-joplin/generators/app/templates/api/JoplinData.d.ts index aba4b21c7..78d2ca5f1 100644 --- a/packages/generator-joplin/generators/app/templates/api/JoplinData.d.ts +++ b/packages/generator-joplin/generators/app/templates/api/JoplinData.d.ts @@ -2,7 +2,7 @@ import { ModelType } from '../../../BaseModel'; import Plugin from '../Plugin'; 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. * 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. * * `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: * diff --git a/packages/generator-joplin/generators/app/templates/api/JoplinInterop.d.ts b/packages/generator-joplin/generators/app/templates/api/JoplinInterop.d.ts index 8de655c83..60cf1f498 100644 --- a/packages/generator-joplin/generators/app/templates/api/JoplinInterop.d.ts +++ b/packages/generator-joplin/generators/app/templates/api/JoplinInterop.d.ts @@ -9,7 +9,7 @@ import { ExportModule, ImportModule } from './types'; * * 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 { registerExportModule(module: ExportModule): Promise; diff --git a/packages/generator-joplin/generators/app/templates/api/types.ts b/packages/generator-joplin/generators/app/templates/api/types.ts index 70f15940c..e439b5246 100644 --- a/packages/generator-joplin/generators/app/templates/api/types.ts +++ b/packages/generator-joplin/generators/app/templates/api/types.ts @@ -524,13 +524,13 @@ export interface ContentScriptModuleLoadedEvent { } export interface ContentScriptModule { - onLoaded?: (event:ContentScriptModuleLoadedEvent) => void; - plugin: () => any; - assets?: () => void; + onLoaded?: (event: ContentScriptModuleLoadedEvent)=> void; + plugin: ()=> any; + assets?: ()=> void; } export interface MarkdownItContentScriptModule extends Omit { - plugin: (markdownIt:any, options:any) => any; + plugin: (markdownIt: any, options: any)=> any; } export enum ContentScriptType { @@ -552,7 +552,7 @@ export enum ContentScriptType { * } * } * ``` - * + * * See [the * demo](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/content_script) * for a simple Markdown-it plugin example. diff --git a/packages/generator-joplin/package.json b/packages/generator-joplin/package.json index 6e96eb488..2e70561ec 100644 --- a/packages/generator-joplin/package.json +++ b/packages/generator-joplin/package.json @@ -1,6 +1,6 @@ { "name": "generator-joplin", - "version": "2.13.1", + "version": "2.13.2", "description": "Scaffolds out a new Joplin plugin", "homepage": "https://github.com/laurent22/joplin/tree/dev/packages/generator-joplin", "author": { @@ -34,4 +34,4 @@ "repository": "https://github.com/laurent22/generator-joplin", "license": "AGPL-3.0-or-later", "private": true -} +} \ No newline at end of file