From 7501af4c6b80e29b8cf8fe6f6f7e72f0f50365fe Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Fri, 24 May 2019 11:26:54 -0400 Subject: [PATCH] Revert "lightplay extension stub" This reverts commit 1ee3cea144bf2169f4956985cfe2c1c55a3f4aa5. --- src/extensions/scratch3_lightplay/index.js | 107 --------------------- 1 file changed, 107 deletions(-) delete mode 100644 src/extensions/scratch3_lightplay/index.js diff --git a/src/extensions/scratch3_lightplay/index.js b/src/extensions/scratch3_lightplay/index.js deleted file mode 100644 index 1063748c8..000000000 --- a/src/extensions/scratch3_lightplay/index.js +++ /dev/null @@ -1,107 +0,0 @@ -const ArgumentType = require('../../extension-support/argument-type'); -const BlockType = require('../../extension-support/block-type'); -const log = require('../../util/log'); -const formatMessage = require('format-message'); -const Cast = require('../../util/cast'); -const Timer = require('../../util/timer'); - - -/** - * Enum for light specification. - * @readonly - * @enum {string} - */ -const LightLabel = { - ONE: 'light 1', - TWO: 'light 2', - THREE: 'light 3', - ALL: 'all lights' -}; - -/** - * Class for the translate block in Scratch 3.0. - * @constructor - */ -class Scratch3LightplayBlocks { - - constructor (runtime) { - /** - * The runtime instantiating this block package. - * @type {Runtime} - */ - this.runtime = runtime; - } - - /** - * @returns {object} metadata for this extension and its blocks. - */ - getInfo () { - return { - id: 'lightplay', - name: 'Lightplay', - menuIconURI: '', // TODO: Add the final icons. - blockIconURI: '', - blocks: [ - { - opcode: 'lightOn', - blockType: BlockType.COMMAND, - text: formatMessage({ - id: 'lightplay.lightOn', - default: 'turn [LIGHT_ID] on', - description: 'turn a light on' - }), - arguments: { - LIGHT_ID: { - type: ArgumentType.STRING, - menu: 'LIGHT_ID', - defaultValue: LightLabel.ALL - } - } - }, - ], - menus: { - LIGHT_ID: [ - { - text: formatMessage({ - id: 'lightplay.lightId.one', - default: 'light 1', - description: 'label for light 1 element in light menu for Lightplay extension' - }), - value: LightLabel.ONE - }, - { - text: formatMessage({ - id: 'lightplay.lightId.two', - default: 'light 2', - description: 'label for light 2 element in light menu for Lightplay extension' - }), - value: LightLabel.TWO - }, - { - text: formatMessage({ - id: 'lightplay.lightId.three', - default: 'light 3', - description: 'label for light 3 element in light menu for Lightplay extension' - }), - value: LightLabel.THREE - }, - { - text: formatMessage({ - id: 'lightplay.lightId.all', - default: 'all lights', - description: 'label for all lights element in light menu for Lightplay extension' - }), - value: LightLabel.ALL - }, - ], - - } - }; - } - - lightOn (args) { - // TODO - } - -} -module.exports = Scratch3LightplayBlocks;