Skip to content

Commit 3c49ad6

Browse files
committed
Make eslink happy + Prettier on every theme :p
1 parent bc87084 commit 3c49ad6

24 files changed

Lines changed: 36601 additions & 5163 deletions

plugins/theme-dark/package-lock.json

Lines changed: 6965 additions & 837 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/theme-dark/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@
5151
},
5252
"engines": {
5353
"node": ">=8.17.0"
54+
},
55+
"dependencies": {
56+
"@blockly/theme-dark": "file:"
5457
}
5558
}

plugins/theme-dark/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ export default Blockly.Theme.defineTheme('dark', {
2727
insertionMarkerColour: '#fff',
2828
insertionMarkerOpacity: 0.3,
2929
scrollbarOpacity: 0.4,
30-
cursorColour: '#d0d0d0'
31-
}
30+
cursorColour: '#d0d0d0',
31+
},
3232
});

plugins/theme-dark/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// NOTE: `test/**/*` is automatically included in `blockly-scripts start`.
1414
// Only src matters for production builds.
1515
"include": ["src"]
16-
}
16+
}

plugins/theme-deuteranopia/package-lock.json

Lines changed: 6965 additions & 837 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/theme-deuteranopia/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@
5151
},
5252
"engines": {
5353
"node": ">=8.17.0"
54+
},
55+
"dependencies": {
56+
"@blockly/theme-deuteranopia": "file:"
5457
}
5558
}

plugins/theme-deuteranopia/src/index.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,79 +11,79 @@
1111
import * as Blockly from 'blockly/core';
1212

1313
const defaultBlockStyles = {
14-
colour_blocks: {
14+
colourBlocks: {
1515
colourPrimary: '#f2a72c',
1616
colourSecondary: '#f1c172',
1717
colourTertiary: '#da921c',
1818
},
19-
list_blocks: {
19+
listBlocks: {
2020
colourPrimary: '#7d65ab',
2121
colourSecondary: '#a88be0',
2222
colourTertiary: '#66518e',
2323
},
24-
logic_blocks: {
24+
logicBlocks: {
2525
colourPrimary: '#9fd2f1',
2626
colourSecondary: '#c0e0f4',
2727
colourTertiary: '#74bae5',
2828
},
29-
loop_blocks: {
29+
loopBlocks: {
3030
colourPrimary: '#795a07',
3131
colourSecondary: '#ac8726',
3232
colourTertiary: '#c4a03f',
3333
},
34-
math_blocks: {
34+
mathBlocks: {
3535
colourPrimary: '#e6da39',
3636
colourSecondary: '#f3ec8e',
3737
colourTertiary: '#f2eeb7',
3838
},
39-
procedure_blocks: {
39+
procedureBlocks: {
4040
colourPrimary: '#590721',
4141
colourSecondary: '#8c475d',
4242
colourTertiary: '#885464',
4343
},
44-
text_blocks: {
44+
textBlocks: {
4545
colourPrimary: '#058863',
4646
colourSecondary: '#5ecfaf',
4747
colourTertiary: '#04684c',
4848
},
49-
variable_blocks: {
49+
variableBlocks: {
5050
colourPrimary: '#47025a',
5151
colourSecondary: '#820fa1',
5252
colourTertiary: '#8e579d',
5353
},
54-
variable_dynamic_blocks: {
54+
variableDynamicBlocks: {
5555
colourPrimary: '#47025a',
5656
colourSecondary: '#820fa1',
5757
colourTertiary: '#8e579d',
5858
},
5959
};
6060

6161
const categoryStyles = {
62-
colour_category: {
62+
colourCategory: {
6363
colour: '#f2a72c',
6464
},
65-
list_category: {
65+
listCategory: {
6666
colour: '#7d65ab',
6767
},
68-
logic_category: {
68+
logicCategory: {
6969
colour: '#9fd2f1',
7070
},
71-
loop_category: {
71+
loopCategory: {
7272
colour: '#795a07',
7373
},
74-
math_category: {
74+
mathCategory: {
7575
colour: '#e6da39',
7676
},
77-
procedure_category: {
77+
procedureCategory: {
7878
colour: '#590721',
7979
},
80-
text_category: {
80+
textCategory: {
8181
colour: '#058863',
8282
},
83-
variable_category: {
83+
variableCategory: {
8484
colour: '#47025a',
8585
},
86-
variable_dynamic_category: {
86+
variableDynamicCategory: {
8787
colour: '#47025a',
8888
},
8989
};

plugins/theme-deuteranopia/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
// NOTE: `test/**/*` is automatically included in `blockly-scripts start`.
1414
// Only src matters for production builds.
1515
"include": ["src"]
16-
}
16+
}

0 commit comments

Comments
 (0)