From 7df22fecdb2061301c119fafa19f90aae16d95a8 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Tue, 20 Oct 2020 21:21:23 -0700 Subject: [PATCH] Text and image blocks --- webapp/src/blocks/imageBlock.ts | 9 +-------- webapp/src/blocks/textBlock.ts | 7 ------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/webapp/src/blocks/imageBlock.ts b/webapp/src/blocks/imageBlock.ts index 0296621fe..41b989632 100644 --- a/webapp/src/blocks/imageBlock.ts +++ b/webapp/src/blocks/imageBlock.ts @@ -3,17 +3,10 @@ import { IOrderedBlock, MutableOrderedBlock } from './orderedBlock' interface ImageBlock extends IOrderedBlock { - + readonly url: string } class MutableImageBlock extends MutableOrderedBlock implements IOrderedBlock { - get order(): number { - return this.fields.order as number - } - set order(value: number) { - this.fields.order = value - } - get url(): string { return this.fields.url as string } diff --git a/webapp/src/blocks/textBlock.ts b/webapp/src/blocks/textBlock.ts index ced37a6a1..a1a671788 100644 --- a/webapp/src/blocks/textBlock.ts +++ b/webapp/src/blocks/textBlock.ts @@ -7,13 +7,6 @@ interface TextBlock extends IOrderedBlock { } class MutableTextBlock extends MutableOrderedBlock { - get order(): number { - return this.fields.order as number - } - set order(value: number) { - this.fields.order = value - } - constructor(block: any = {}) { super(block) this.type = 'text'