* Updated base packages and regenerated package-lock * Added babel plugin to eslint, cleaned up webpack config * Version requirements for node/npm in README * Readded compass and css, removed by mistake * Fixed jest testing * Fixing lint issues. * Moved import to use webapp redux package * Fixed final jest issue * Modified packages and rebuild packagelock for node 16.14 * Add src and mattermost-redux alias * Update README.md Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com> * Adding nvm and removing the default type from the package * Delete root package-lock.json * Pinned to webapp v7, rebuild package log * fixed imports with TS * change tsconfig location pointer * updates for vscode-eslint to work with tsconfig subpath * don't import webapp for tests * remove "v" from .nvmrc --------- Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com> Co-authored-by: Mattermost Build <build@mattermost.com>
22 lines
697 B
TypeScript
22 lines
697 B
TypeScript
import {Store, Action} from 'redux';
|
|
|
|
import {GlobalState} from '@mattermost/types/lib/store';
|
|
|
|
import {manifest} from '@/manifest';
|
|
|
|
import {PluginRegistry} from '@/types/mattermost-webapp';
|
|
|
|
export default class Plugin {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
|
|
public async initialize(registry: PluginRegistry, store: Store<GlobalState, Action<Record<string, unknown>>>) {
|
|
// @see https://developers.mattermost.com/extend/plugins/webapp/reference/
|
|
}
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
registerPlugin(pluginId: string, plugin: Plugin): void
|
|
}
|
|
}
|
|
|
|
window.registerPlugin(manifest.id, new Plugin());
|