Skip to content

Commit fe0bdf2

Browse files
authored
fix: Remove all uses of @blockly/field-colour from src/** (#174)
* refactor: Move test blocks and toolbox to test/ AFAICT these are not supposed to be part of the actual plugin, so it makes sense to move them to test/. * fix: Remove unused import of @blockly/field-colour This import should have been removed in PR #129 when the code that uses it was rewritten. Fixes #133.
1 parent 6ee4938 commit fe0bdf2

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

src/line_cursor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* @author [email protected] (Abby Schmiedt)
1414
*/
1515

16-
import {FieldColour} from '@blockly/field-colour';
1716
import * as Blockly from 'blockly/core';
1817
import {ASTNode, Marker} from 'blockly/core';
1918

File renamed without changes.
File renamed without changes.
File renamed without changes.

test/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import * as libraryBlocks from 'blockly/blocks';
1010
import {installAllBlocks as installColourBlocks} from '@blockly/field-colour';
1111
import {KeyboardNavigation} from '../src/index';
1212
// @ts-expect-error No types in js file
13-
import {forBlock} from '../src/blocks/p5_generators';
13+
import {forBlock} from './blocks/p5_generators';
1414
// @ts-expect-error No types in js file
15-
import {blocks} from '../src/blocks/p5_blocks';
15+
import {blocks} from './blocks/p5_blocks';
1616
// @ts-expect-error No types in js file
17-
import {toolbox} from '../src/blocks/toolbox.js';
17+
import {toolbox} from './blocks/toolbox.js';
1818
// @ts-expect-error No types in js file
1919
import toolboxCategories from './toolboxCategories.js';
2020

test/toolboxCategories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {p5CategoryContents} from '../src/blocks/toolbox.js';
7+
import {p5CategoryContents} from './blocks/toolbox.js';
88

99
export default {
1010
kind: 'categoryToolbox',

0 commit comments

Comments
 (0)