Skip to content

Commit e9b15cc

Browse files
authored
Merge pull request #62 from hbcarlos/typo
Fixes typo
2 parents 59142a3 + 25292f3 commit e9b15cc

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/other_extensions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ Firstly you need to install and add `jupyterlab-blockly` as a dependency for you
2020
jlpm add jupyterlab-blockly
2121
```
2222

23-
Once it is part of your project, all you need to do is import `IBlocklyRegisty`, as it follows:
23+
Once it is part of your project, all you need to do is import `IBlocklyRegistry`, as it follows:
2424
```typescript
2525
// src/index.ts
2626

27-
import { IBlocklyRegisty } from 'jupyterlab-blockly';
27+
import { IBlocklyRegistry } from 'jupyterlab-blockly';
2828
```
2929

3030
The `BlocklyRegistry` is the class that the JupyterLab-Blockly extension exposes to other plugins. This registry allows other plugins to register new Toolboxes, Blocks and Generators that users can use in the Blockly editor.
3131

3232
### Registering new Blocks
33-
The `IBlocklyRegisty` offers a function `registerBlocks`, which allows you to include new Blocks in your project. Blockly offers a [tool](https://blockly-demo.appspot.com/static/demos/blockfactory/index.html) which helps you easily create new Blocks and get their JSON definition and generator code in all supported programming languages.
33+
The `IBlocklyRegistry` offers a function `registerBlocks`, which allows you to include new Blocks in your project. Blockly offers a [tool](https://blockly-demo.appspot.com/static/demos/blockfactory/index.html) which helps you easily create new Blocks and get their JSON definition and generator code in all supported programming languages.
3434

3535
**NOTE** : Once you create a new block, it won't appear into your Blockly editor, unless you add it to a Toolbox.
3636

@@ -46,7 +46,7 @@ The `IBlocklyRegisty` offers a function `registerBlocks`, which allows you to in
4646
```
4747

4848
### Registering a new Toolbox
49-
Using the `registerToolbox` function, provided by `IBlocklyRegisty`, you can register a new toolbox. Once registered, the toolbox will appear automatically in your Blockly editor. You can find more information about switching to another toolbox [here](https://jupyterlab-blockly.readthedocs.io/en/latest/toolbox.html).
49+
Using the `registerToolbox` function, provided by `IBlocklyRegistry`, you can register a new toolbox. Once registered, the toolbox will appear automatically in your Blockly editor. You can find more information about switching to another toolbox [here](https://jupyterlab-blockly.readthedocs.io/en/latest/toolbox.html).
5050

5151
```typescript
5252
/**
@@ -62,7 +62,7 @@ Using the `registerToolbox` function, provided by `IBlocklyRegisty`, you can reg
6262
```
6363

6464
### Registering a new Generator
65-
Lastly, `IBlocklyRegisty` offers the function `registerGenerator` which lets you register a new Generator. You can read more about switching kernels [here](https://jupyterlab-blockly.readthedocs.io/en/latest/kernels.html).
65+
Lastly, `IBlocklyRegistry` offers the function `registerGenerator` which lets you register a new Generator. You can read more about switching kernels [here](https://jupyterlab-blockly.readthedocs.io/en/latest/kernels.html).
6666

6767
```typescript
6868

@@ -98,8 +98,8 @@ The following code snippet showcases how to register a new toolbox, `BlocklyNiry
9898
const plugin: JupyterFrontEndPlugin<void> = {
9999
id: 'jupyterlab-niryo-one:plugin',
100100
autoStart: true,
101-
requires: [IBlocklyRegisty],
102-
activate: (app: JupyterFrontEnd, blockly: IBlocklyRegisty) => {
101+
requires: [IBlocklyRegistry],
102+
activate: (app: JupyterFrontEnd, blockly: IBlocklyRegistry) => {
103103
console.log('JupyterLab extension jupyterlab-niryo-one is activated!');
104104

105105
//Registering the new toolbox containing all Niryo One blocks.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"eslint:check": "eslint . --ext .ts,.tsx",
1717
"install": "lerna bootstrap",
1818
"install:extension": "lerna run install:extension",
19-
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
20-
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
19+
"lint": "jlpm prettier && jlpm eslint",
20+
"lint:check": "jlpm prettier:check && jlpm eslint:check",
2121
"prettier": "jlpm prettier:base --write --list-different",
2222
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css}\"",
2323
"prettier:check": "jlpm prettier:base --check",

packages/blockly-extension/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ITranslator } from '@jupyterlab/translation';
1313
import { ISettingRegistry } from '@jupyterlab/settingregistry';
1414

1515
import { BlocklyEditorFactory } from 'jupyterlab-blockly';
16-
import { IBlocklyRegisty } from 'jupyterlab-blockly';
16+
import { IBlocklyRegistry } from 'jupyterlab-blockly';
1717
import { BlocklyEditor } from 'jupyterlab-blockly';
1818

1919
import { blockly_icon } from './icons';
@@ -37,7 +37,7 @@ const PLUGIN_ID = '@jupyterlab/translation-extension:plugin';
3737
/**
3838
* Initialization data for the jupyterlab-blocky extension.
3939
*/
40-
const plugin: JupyterFrontEndPlugin<IBlocklyRegisty> = {
40+
const plugin: JupyterFrontEndPlugin<IBlocklyRegistry> = {
4141
id: 'jupyterlab-blocky:plugin',
4242
autoStart: true,
4343
requires: [
@@ -49,7 +49,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegisty> = {
4949
ITranslator
5050
],
5151
optional: [ILauncher, ICommandPalette],
52-
provides: IBlocklyRegisty,
52+
provides: IBlocklyRegistry,
5353
activate: (
5454
app: JupyterFrontEnd,
5555
restorer: ILayoutRestorer,
@@ -60,7 +60,7 @@ const plugin: JupyterFrontEndPlugin<IBlocklyRegisty> = {
6060
translator: ITranslator,
6161
launcher: ILauncher | null,
6262
palette: ICommandPalette | null
63-
): IBlocklyRegisty => {
63+
): IBlocklyRegistry => {
6464
console.log('JupyterLab extension jupyterlab-blocky is activated!');
6565

6666
// Namespace for the tracker

packages/blockly/src/registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import BlocklyLua from 'blockly/lua';
88

99
import En from 'blockly/msg/en';
1010

11-
import { IBlocklyRegisty } from './token';
11+
import { IBlocklyRegistry } from './token';
1212
import { TOOLBOX } from './utils';
1313

1414
/**
@@ -17,7 +17,7 @@ import { TOOLBOX } from './utils';
1717
* new Toolboxes, Blocks and Generators that users can use in the
1818
* Blockly editor.
1919
*/
20-
export class BlocklyRegistry implements IBlocklyRegisty {
20+
export class BlocklyRegistry implements IBlocklyRegistry {
2121
private _toolboxes: Map<string, JSONObject>;
2222
private _generators: Map<string, Blockly.Generator>;
2323

packages/blockly/src/token.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as Blockly from 'blockly';
55
/**
66
* The registry token.
77
*/
8-
export const IBlocklyRegisty = new Token<IBlocklyRegisty>(
8+
export const IBlocklyRegistry = new Token<IBlocklyRegistry>(
99
'jupyterlab-blockly/registry'
1010
);
1111

@@ -15,7 +15,7 @@ export const IBlocklyRegisty = new Token<IBlocklyRegisty>(
1515
* new Toolboxes, Blocks and Generators that users can use in the
1616
* Blockly editor.
1717
*/
18-
export interface IBlocklyRegisty {
18+
export interface IBlocklyRegistry {
1919
/**
2020
* Register a toolbox for the editor.
2121
*

0 commit comments

Comments
 (0)