mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-29 13:55:08 +00:00
Add name
function to plugin adapter (#463)
Summary: This presents a human-readable name for a plugin. It’s not yet used anywhere. Paired with @decentralion. Test Plan: Flow passes. wchargin-branch: plugin-name
This commit is contained in:
parent
dd063f5203
commit
728a3cdf37
@ -7,6 +7,7 @@ export interface Renderer {
|
||||
}
|
||||
|
||||
export interface PluginAdapter {
|
||||
name(): string;
|
||||
graph(): Graph;
|
||||
renderer(): Renderer;
|
||||
nodePrefix(): NodeAddressT;
|
||||
|
@ -26,6 +26,9 @@ class PluginAdapter implements IPluginAdapter {
|
||||
constructor(graph: Graph) {
|
||||
this._graph = graph;
|
||||
}
|
||||
name() {
|
||||
return "Git";
|
||||
}
|
||||
graph() {
|
||||
return this._graph;
|
||||
}
|
||||
|
@ -31,6 +31,9 @@ class PluginAdapter implements IPluginAdapter {
|
||||
this._view = view;
|
||||
this._graph = graph;
|
||||
}
|
||||
name() {
|
||||
return "GitHub";
|
||||
}
|
||||
graph() {
|
||||
return this._graph;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user