599fb80112
The frontend is still broken and doesn't use these endpoints at all. A migration tool still needs to be written to pull in existing widget configurations.
21 lines
No EOL
609 B
TypeScript
21 lines
No EOL
609 B
TypeScript
import { Integration } from "./Integration";
|
|
import WidgetRecord from "../db/models/WidgetRecord";
|
|
|
|
export interface EtherpadWidgetOptions {
|
|
defaultUrl: string;
|
|
}
|
|
|
|
export class Widget extends Integration {
|
|
public options: any;
|
|
|
|
constructor(widgetRecord: WidgetRecord) {
|
|
super(widgetRecord);
|
|
this.category = "widget";
|
|
this.options = widgetRecord.optionsJson ? JSON.parse(widgetRecord.optionsJson) : {};
|
|
this.requirements = [{
|
|
condition: "canSendEventTypes",
|
|
argument: ["im.vector.widget"],
|
|
expectedValue: true,
|
|
}];
|
|
}
|
|
} |