mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-02 06:52:13 +01:00
update dependencies
This commit is contained in:
parent
070924b707
commit
02a406b821
@ -1,4 +1,5 @@
|
|||||||
import {app, dialog} from 'electron';
|
import {app, dialog} from 'electron';
|
||||||
|
import * as contextMenu from 'electron-context-menu';
|
||||||
import log from './log';
|
import log from './log';
|
||||||
import startApp from './app';
|
import startApp from './app';
|
||||||
import loadConfig from './config';
|
import loadConfig from './config';
|
||||||
@ -7,7 +8,7 @@ import loadConfig from './config';
|
|||||||
// loading this application. We need to disable the callback.
|
// loading this application. We need to disable the callback.
|
||||||
app.removeAllListeners();
|
app.removeAllListeners();
|
||||||
|
|
||||||
require('electron-context-menu')({});
|
contextMenu();
|
||||||
|
|
||||||
const appReady = new Promise<void>(resolve => app.once('ready', resolve));
|
const appReady = new Promise<void>(resolve => app.once('ready', resolve));
|
||||||
|
|
||||||
|
@ -42,12 +42,12 @@
|
|||||||
"@types/loglevel": "^1.4.29",
|
"@types/loglevel": "^1.4.29",
|
||||||
"@types/menubar": "^5.1.3",
|
"@types/menubar": "^5.1.3",
|
||||||
"@types/mousetrap": "^1.5.33",
|
"@types/mousetrap": "^1.5.33",
|
||||||
"@types/node": "^7.0.13",
|
"@types/node": "^7.0.18",
|
||||||
"browserify": "^14.3.0",
|
"browserify": "^14.3.0",
|
||||||
"electron-packager": "^8.6.0",
|
"electron-packager": "^8.7.0",
|
||||||
"npm-run-all": "^4.0.2",
|
"npm-run-all": "^4.0.2",
|
||||||
"tslint": "^5.1.0",
|
"tslint": "^5.2.0",
|
||||||
"typescript": "^2.2.2"
|
"typescript": "^2.3.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron": "^1.6.8-beta",
|
"electron": "^1.6.8-beta",
|
||||||
|
21
typings/electron-context-menu.d.ts
vendored
Normal file
21
typings/electron-context-menu.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
declare namespace ElectronContextMenu {
|
||||||
|
interface Options {
|
||||||
|
window?: Electron.BrowserWindow | Electron.WebViewElement;
|
||||||
|
prepend?: (params: any, win: Electron.BrowserWindow) => Electron.MenuItem[];
|
||||||
|
append?: (...args: any[]) => any;
|
||||||
|
showInspectElement?: boolean;
|
||||||
|
labels?: {
|
||||||
|
cut: string;
|
||||||
|
copy: string;
|
||||||
|
paste: string;
|
||||||
|
save: string;
|
||||||
|
copyLink: string;
|
||||||
|
inspect: string;
|
||||||
|
};
|
||||||
|
shouldShowMenu?: (event: Event, params: any) => boolean;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
declare module 'electron-context-menu' {
|
||||||
|
const create: (options?: ElectronContextMenu.Options) => void;
|
||||||
|
export = create;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user