mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-15 13:32:28 +00:00
removed whiteboard entry from add widget db file and added in a new db file specific for whiteboard
This commit is contained in:
parent
4a524777a9
commit
d62956fb8d
@ -32,14 +32,6 @@ export default {
|
|||||||
description: "Collaborate on documents with members of your room.",
|
description: "Collaborate on documents with members of your room.",
|
||||||
optionsJson: '{"defaultUrl":"https://scalar.vector.im/etherpad/p/$roomId_$padName"}',
|
optionsJson: '{"defaultUrl":"https://scalar.vector.im/etherpad/p/$roomId_$padName"}',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "whiteboard",
|
|
||||||
name: "Whiteboard",
|
|
||||||
avatarUrl: "/img/avatars/whiteboard.png",
|
|
||||||
isEnabled: true,
|
|
||||||
isPublic: true,
|
|
||||||
description: "A whiteboard app embedded in the room.",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "googlecalendar",
|
type: "googlecalendar",
|
||||||
name: "Google Calendar",
|
name: "Google Calendar",
|
||||||
|
24
src/db/migrations/20201204142645-AddWhiteboardWidget.ts
Normal file
24
src/db/migrations/20201204142645-AddWhiteboardWidget.ts
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import { QueryInterface } from "sequelize";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
up: (queryInterface: QueryInterface) => {
|
||||||
|
return Promise.resolve()
|
||||||
|
.then(() => queryInterface.bulkInsert("dimension_widgets", [
|
||||||
|
{
|
||||||
|
type: "whiteboard",
|
||||||
|
name: "Whiteboard",
|
||||||
|
avatarUrl: "/img/avatars/whiteboard.png",
|
||||||
|
isEnabled: true,
|
||||||
|
isPublic: true,
|
||||||
|
description: "A whiteboard app embedded in the room.",
|
||||||
|
optionsJson: '{"defaultUrl":"https://cloud13.de/testwhiteboard/?whiteboardid=$roomId_$boardName"}',
|
||||||
|
}
|
||||||
|
]));
|
||||||
|
},
|
||||||
|
down: (queryInterface: QueryInterface) => {
|
||||||
|
return Promise.resolve()
|
||||||
|
.then(() => queryInterface.bulkDelete("dimension_widgets", {
|
||||||
|
type: "whiteboard",
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user