parent
e86954dafd
commit
3455f44cf7
@ -1,47 +0,0 @@ |
||||
import { ElectronPlugin } from '@remixproject/engine-electron' |
||||
import * as packageJson from '../../../../../../package.json' |
||||
import { ViewPlugin } from '@remixproject/engine-web' |
||||
import { Plugin } from '@remixproject/engine'; |
||||
import { RemixAITab } from '@remix-ui/remix-ai' |
||||
import React from 'react'; |
||||
|
||||
const profile = { |
||||
name: 'remixAI', |
||||
displayName: 'Remix AI', |
||||
methods: [''], |
||||
events: [], |
||||
icon: 'assets/img/remix-logo-blue.png', |
||||
description: 'Remix AI provides AI services to Remix IDE.', |
||||
kind: '', |
||||
location: 'sidePanel', |
||||
documentation: 'https://remix-ide.readthedocs.io/en/latest/remixai.html', |
||||
version: packageJson.version, |
||||
maintainedBy: 'Remix' |
||||
} |
||||
|
||||
export class remixAIDesktopPlugin extends ElectronPlugin { |
||||
constructor() { |
||||
console.log('remixAIDesktopPlugin') |
||||
super(profile) |
||||
} |
||||
|
||||
onActivation(): void { |
||||
this.on('remixAI', 'enabled', () => {console.log('someone enable the remixAI desktop plugin')} ) |
||||
} |
||||
} |
||||
|
||||
export class RemixAIPlugin extends ViewPlugin { |
||||
constructor() { |
||||
console.log('remixAIPlugin') |
||||
super(profile) |
||||
} |
||||
|
||||
render() { |
||||
return ( |
||||
<div id="remixAITab"> |
||||
<RemixAITab plugin={this}></RemixAITab> |
||||
</div> |
||||
) |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue