parent
93973004e9
commit
eae0a0f696
@ -1,13 +1,15 @@ |
||||
export interface IElectronAPI { |
||||
activatePlugin: (name: string) => Promise<boolean> |
||||
receiveFromFS: (cb: any) => void |
||||
sendToFS: (message: Partial<Message>) => void |
||||
receiveFromGit: (cb: any) => void |
||||
sendToGit: (message: Partial<Message>) => void |
||||
plugins: { |
||||
name: string |
||||
activate: () => Promise<boolean> |
||||
on: (cb: any) => void |
||||
send: (message: Partial<Message>) => void |
||||
}[] |
||||
} |
||||
|
||||
declare global { |
||||
interface Window { |
||||
api: IElectronAPI |
||||
electronAPI: IElectronAPI |
||||
} |
||||
} |
@ -1,12 +1,7 @@ |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<meta charset="UTF-8" /> |
||||
<title>Hello World!</title> |
||||
|
||||
</head> |
||||
<body> |
||||
<h1>💖 Hello World!</h1> |
||||
<p>Welcome to your Electron application.</p> |
||||
</body> |
||||
</html> |
||||
|
@ -1,16 +1,11 @@ |
||||
import { Engine, PluginManager, Plugin, PluginConnector } from '@remixproject/engine'; |
||||
import { Message, Profile } from '@remixproject/plugin-utils'; |
||||
import { ElectronPluginConnector } from './lib/electronPluginConnector'; |
||||
import { ElectronPlugin } from './lib/electronPlugin'; |
||||
|
||||
export class gitPlugin extends ElectronPluginConnector { |
||||
export class gitPlugin extends ElectronPlugin { |
||||
constructor(){ |
||||
super({ |
||||
displayName: 'git', |
||||
name: 'git', |
||||
description: 'git', |
||||
},{ |
||||
sendAPI: window.api.sendToGit, |
||||
receiveAPI: window.api.receiveFromGit |
||||
}) |
||||
this.methods = ['log', 'status', 'add', 'commit', 'push', 'pull', 'clone', 'checkout', 'branch', 'merge', 'reset', 'revert', 'diff', 'stash', 'apply', 'cherryPick', 'rebase', 'tag', 'fetch', 'remote', 'config', 'show', 'init', 'help', 'version'] |
||||
} |
||||
|
Loading…
Reference in new issue