You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
All: Add support for application plugins (#3257)
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
import AsyncActionQueue from '../../AsyncActionQueue';
|
||||
const { Logger } = require('lib/logger.js');
|
||||
const Setting = require('lib/models/Setting');
|
||||
import shim from 'lib/shim';
|
||||
import { _ } from 'lib/locale';
|
||||
const Logger = require('lib/Logger').default;
|
||||
const Setting = require('lib/models/Setting').default;
|
||||
const Resource = require('lib/models/Resource');
|
||||
const { shim } = require('lib/shim');
|
||||
const EventEmitter = require('events');
|
||||
const chokidar = require('chokidar');
|
||||
const { bridge } = require('electron').remote.require('./bridge');
|
||||
const { _ } = require('lib/locale');
|
||||
const bridge = require('electron').remote.require('./bridge').default;
|
||||
|
||||
interface WatchedItem {
|
||||
resourceId: string,
|
||||
|
@ -1,11 +1,9 @@
|
||||
import produce, { Draft, setAutoFreeze } from 'immer';
|
||||
import produce, { Draft } from 'immer';
|
||||
|
||||
export const defaultState = {
|
||||
watchedResources: {},
|
||||
};
|
||||
|
||||
setAutoFreeze(false); // TODO: REMOVE ONCE PLUGIN BRANCH HAS BEEN MERGED!!
|
||||
|
||||
const reducer = produce((draft: Draft<any>, action:any) => {
|
||||
if (action.type.indexOf('RESOURCE_EDIT_WATCHER_') !== 0) return;
|
||||
|
||||
|
Reference in New Issue
Block a user