Editor embeds (#680)

- [x] Make deleting an embed easier
- [x] Add document level ability to disable embeds
- [x] Add team level ability to disable embeds
- [x] GitHub
- [x] Numeracy
- [x] Mode Analytics
- [x] Figma
- [x] Airtable
- [x] Vimeo
- [x] RealtimeBoard
- [x] Loom
- [x] Lucidcharts
- [x] Framer
- [x] InVision
- [x] Typeform
- [x] Marvel
- [x] Spotify
- [x] Codepen
- [x] Trello
This commit is contained in:
Tom Moor
2018-12-15 14:06:29 -08:00
committed by GitHub
parent 836f9a88a2
commit 044b4f16bc
50 changed files with 1121 additions and 18 deletions

View File

@ -11,7 +11,7 @@ const { authorize } = policy;
const router = new Router();
router.post('team.update', auth(), async ctx => {
const { name, avatarUrl, subdomain, sharing } = ctx.body;
const { name, avatarUrl, subdomain, sharing, documentEmbeds } = ctx.body;
const endpoint = publicS3Endpoint();
const user = ctx.state.user;
@ -24,6 +24,7 @@ router.post('team.update', auth(), async ctx => {
if (name) team.name = name;
if (sharing !== undefined) team.sharing = sharing;
if (documentEmbeds !== undefined) team.documentEmbeds = documentEmbeds;
if (avatarUrl && avatarUrl.startsWith(`${endpoint}/uploads/${user.id}`)) {
team.avatarUrl = avatarUrl;
}