mirror of https://github.com/laurent22/joplin.git
Merge branch 'dev' of https://github.com/laurent22/joplin into dev
commit
96ac3e53e8
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -208,13 +208,6 @@ export enum MenuItemLocation {
|
||||||
* @deprecated Do not use - same as NoteListContextMenu
|
* @deprecated Do not use - same as NoteListContextMenu
|
||||||
*/
|
*/
|
||||||
Context = 'context',
|
Context = 'context',
|
||||||
|
|
||||||
/**
|
|
||||||
* The context menu that appears when right-clicking on the note
|
|
||||||
* list, or when multiple notes are selected. Any command triggered from
|
|
||||||
* this location will receive a `noteIds` array with the list of notes that
|
|
||||||
* were right-clicked or selected.
|
|
||||||
*/
|
|
||||||
NoteListContextMenu = 'noteListContextMenu',
|
NoteListContextMenu = 'noteListContextMenu',
|
||||||
EditorContextMenu = 'editorContextMenu',
|
EditorContextMenu = 'editorContextMenu',
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -23,4 +23,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"uslug": "^1.0.4"
|
"uslug": "^1.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"dist": "webpack",
|
"dist": "webpack",
|
||||||
"postinstall": "npm run dist"
|
"postinstall": "npm run dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.14",
|
||||||
|
@ -23,4 +23,4 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"left-pad": "^1.3.0"
|
"left-pad": "^1.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,13 @@ function createPluginArchive(sourceDir, destPath) {
|
||||||
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
const distFiles = glob.sync(`${sourceDir}/**/*`)
|
||||||
.map(f => f.substr(sourceDir.length + 1));
|
.map(f => f.substr(sourceDir.length + 1));
|
||||||
|
|
||||||
|
if (!distFiles.length) {
|
||||||
|
// Usually means there's an error, which is going to be printed by
|
||||||
|
// webpack
|
||||||
|
console.info('Plugin archive was not created because the "dist" directory is empty');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fs.removeSync(destPath);
|
fs.removeSync(destPath);
|
||||||
|
|
||||||
tar.create(
|
tar.create(
|
||||||
|
@ -38,6 +45,8 @@ const manifestPath = `${srcDir}/manifest.json`;
|
||||||
const manifest = readManifest(manifestPath);
|
const manifest = readManifest(manifestPath);
|
||||||
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
const archiveFilePath = path.resolve(__dirname, `${manifest.id}.jpl`);
|
||||||
|
|
||||||
|
fs.removeSync(distDir);
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@joplin/app-desktop",
|
"name": "@joplin/app-desktop",
|
||||||
"version": "1.4.11",
|
"version": "1.4.12",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@joplin/app-desktop",
|
"name": "@joplin/app-desktop",
|
||||||
"version": "1.4.11",
|
"version": "1.4.12",
|
||||||
"description": "Joplin for Desktop",
|
"description": "Joplin for Desktop",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Joplin from './Joplin';
|
import Joplin from './Joplin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
export default class Global {
|
export default class Global {
|
||||||
private joplin_;
|
private joplin_;
|
||||||
private requireWhiteList_;
|
private requireWhiteList_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get joplin(): Joplin;
|
get joplin(): Joplin;
|
||||||
private requireWhiteList;
|
private requireWhiteList;
|
||||||
require(filePath: string): any;
|
require(filePath: string): any;
|
||||||
|
|
|
@ -7,7 +7,6 @@ import JoplinCommands from './JoplinCommands';
|
||||||
import JoplinViews from './JoplinViews';
|
import JoplinViews from './JoplinViews';
|
||||||
import JoplinInterop from './JoplinInterop';
|
import JoplinInterop from './JoplinInterop';
|
||||||
import JoplinSettings from './JoplinSettings';
|
import JoplinSettings from './JoplinSettings';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
|
||||||
*
|
*
|
||||||
|
@ -32,7 +31,7 @@ export default class Joplin {
|
||||||
private views_;
|
private views_;
|
||||||
private interop_;
|
private interop_;
|
||||||
private settings_;
|
private settings_;
|
||||||
constructor(logger: Logger, implementation: any, plugin: Plugin, store: any);
|
constructor(implementation: any, plugin: Plugin, store: any);
|
||||||
get data(): JoplinData;
|
get data(): JoplinData;
|
||||||
get plugins(): JoplinPlugins;
|
get plugins(): JoplinPlugins;
|
||||||
get workspace(): JoplinWorkspace;
|
get workspace(): JoplinWorkspace;
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import Plugin from '../Plugin';
|
import Plugin from '../Plugin';
|
||||||
import Logger from '../../../Logger';
|
|
||||||
import { ContentScriptType, Script } from './types';
|
import { ContentScriptType, Script } from './types';
|
||||||
/**
|
/**
|
||||||
* This class provides access to plugin-related features.
|
* This class provides access to plugin-related features.
|
||||||
*/
|
*/
|
||||||
export default class JoplinPlugins {
|
export default class JoplinPlugins {
|
||||||
private logger;
|
|
||||||
private plugin;
|
private plugin;
|
||||||
constructor(logger: Logger, plugin: Plugin);
|
constructor(plugin: Plugin);
|
||||||
/**
|
/**
|
||||||
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
* Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an `onStart` method to it.
|
||||||
* That `onStart` method will be executed as soon as the plugin is loaded.
|
* That `onStart` method will be executed as soon as the plugin is loaded.
|
||||||
|
|
|
@ -2,28 +2,19 @@
|
||||||
|
|
||||||
Donations to Joplin support the development of the project. Developing quality applications mostly takes time, but there are also some expenses, such as digital certificates to sign the applications, app store fees, hosting, etc. Most of all, your donation will make it possible to keep up the current development standards.
|
Donations to Joplin support the development of the project. Developing quality applications mostly takes time, but there are also some expenses, such as digital certificates to sign the applications, app store fees, hosting, etc. Most of all, your donation will make it possible to keep up the current development standards.
|
||||||
|
|
||||||
## PayPal
|
## Donations
|
||||||
|
|
||||||
To donate via PayPal, please follow this link:
|
Platform | Link
|
||||||
|
--- | ---
|
||||||
[![Donate on PayPal](https://joplinapp.org/images/badges/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=E8JMYD2LQ8MMA&lc=GB&item_name=Joplin+Development¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
|
Paypal | [![Donate on PayPal](https://joplinapp.org/images/badges/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=E8JMYD2LQ8MMA&lc=GB&item_name=Joplin+Development¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) |
|
||||||
|
GitHub Sponsor | [![Sponsor on GitHub](https://joplinapp.org/images/badges/GitHub-Badge.svg)](https://github.com/sponsors/laurent22/)
|
||||||
## GitHub Sponsor
|
Patreon | [![Become a patron](https://joplinapp.org/images/badges/Patreon-Badge.svg)](https://www.patreon.com/joplin)
|
||||||
|
Bank Transfer | **IBAN:** FR76 4061 8803 5200 0400 7415 938<br>**BIC/SWIFT:** BOUS FRPP XXX
|
||||||
Or follow this link to become a GitHub Sponsor:
|
|
||||||
|
|
||||||
[![Sponsor on GitHub](https://joplinapp.org/images/badges/GitHub-Badge.svg)](https://github.com/sponsors/laurent22/)
|
|
||||||
|
|
||||||
## Patreon
|
|
||||||
|
|
||||||
Alternatively you may support the project on Patreon:
|
|
||||||
|
|
||||||
[![Become a patron](https://joplinapp.org/images/badges/Patreon-Badge.svg)](https://www.patreon.com/joplin)
|
|
||||||
|
|
||||||
## Other way to support the development
|
## Other way to support the development
|
||||||
|
|
||||||
Finally, there are other ways to support the development of Joplin:
|
Finally, there are other ways to support the development of Joplin:
|
||||||
|
|
||||||
- Consider rating the app on [Google Play](https://play.google.com/store/apps/details?id=net.cozic.joplin&utm_source=GitHub&utm_campaign=README&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1) or [App Store](https://itunes.apple.com/us/app/joplin/id1315599797).
|
- Consider rating the app on [Google Play](https://play.google.com/store/apps/details?id=net.cozic.joplin&utm_source=GitHub&utm_campaign=README&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1) or [App Store](https://itunes.apple.com/us/app/joplin/id1315599797).
|
||||||
- [Create or update a translation](https://joplinapp.org/#localisation).
|
|
||||||
- Vote for or review the app on [alternativeTo](https://alternativeto.net/software/joplin/) or [Product Hunt](https://www.producthunt.com/posts/joplin).
|
- Vote for or review the app on [alternativeTo](https://alternativeto.net/software/joplin/) or [Product Hunt](https://www.producthunt.com/posts/joplin).
|
||||||
|
- [Create or update a translation](https://joplinapp.org/#localisation).
|
||||||
|
|
Loading…
Reference in New Issue