Commit Graph

143 Commits

Author SHA1 Message Date
Rachel Fenichel
f70032aaa6 chore: replace more uses of var with const and let (#5628)
* chore: fix uses of var in core/block_dragger

* chore: fix uses of var in core/extensions.js

* chore: fix uses of var in core/field_multilineinput.js

* chore: fix uses of var in assorted core files

* chore: fix uses of var in node test runner and playground screenshot code

* fix: undefined return from measureFontMetrics

* fix: violations of no-const-assign

* chore: only one variable declaration per line
2021-10-25 09:28:31 -07:00
Rachel Fenichel
e8d6f7f408 chore: auto-fix violations of comma-dangle rule (#5625) 2021-10-21 09:01:51 -07:00
Aaron Dodson
3851b14627 refactor: Migrate to named exports (#5623)
* refactor: Migrate to named exports

* fix: Sort requires

* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00
Neil Fraser
90b3f75d82 Remove @author tags (#5601)
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning.

Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
2021-10-15 09:50:46 -07:00
Neil Fraser
c929b3015b chore: Convert == to === and != to !== where possible. (#5599) 2021-10-15 09:17:04 -07:00
Monica Kozbial
49bc2b1ae4 Replace namespace annotation with class annotation in files that define a class (#5566) 2021-09-28 15:57:09 -07:00
Monica Kozbial
d8fbe1b05b Add namespace and alias annotations to jsdoc (#5550)
* Add annotations to files under core/events

* Add annotations to files under core/interfaces

* Add annotations to files under core/keyboard_nav

* Add annotations to files under core/renderers

* Add annotations to files under core/serialization

* Add annotations to files under core/theme

* Add annotations to files under core/toolbox

* Add annotations to files under core/utils

* Add annotations to files under core
2021-09-27 14:42:54 -07:00
Christopher Allen
8ab8536739 refactor: Migrate Blockly.ConnectionType to named exports (#5533)
* refactor: Migrate Blockly.ConnectionType to named exports
* Add corresponding information to renamings.js
2021-09-24 17:38:08 +01:00
Himanshu
3629ed5f65 refactor: Rename Blockly.connectionTypes to Blockly.ConnectionType (#5407)
* Renamed Blockly.connectionTypes to Blockly.ConnectionType
* Renamed core/connection_types.js to connection_type.js
* Add entry to renamings.js for renaming of Blockly.connectionTypes

Co-authored-by: Christopher Allen <cpcallen+git@google.com>
2021-09-24 12:45:10 +01:00
alschmiedt
73580b0ddb chore: named exports for keyboard_nav* files (#5517) 2021-09-22 11:25:38 -07:00
Rachel Fenichel
3adfaaf6d9 chore: named exports for block* files (#5512)
* chore: named export for block.js

* chore: named export for block_drag_surface.js

* chore: named export for block_dragger.js

* chore: named export for block_svg.js

* Fix import ordering

* chore: fix imports using requireType

* Remove extra require
2021-09-22 08:46:19 -07:00
alschmiedt
cf091351d8 chore: remove deprecateLegacyNamespace from keyboard nav files
* chore: Remove deprecateLegacyNamespace & fix tests

* chore: export from the blockly file
2021-09-21 17:18:34 -07:00
Monica Kozbial
bec82da358 Remove require destructuring (#5294) 2021-08-03 15:07:14 -07:00
kozbial
667048b3f5 Add eslint disable and make ASTNode a requireType 2021-07-28 10:52:20 -07:00
kozbial
1a83b75846 clang-format core/keyboard_nav/marker.js 2021-07-28 10:52:20 -07:00
kozbial
50f7293f2d Migrate core/keyboard_nav/marker.js named requires 2021-07-28 10:52:20 -07:00
kozbial
014316431e Migrate core/keyboard_nav/marker.js to goog.module 2021-07-28 10:52:20 -07:00
kozbial
3837440564 Migrate core/keyboard_nav/marker.js to ES6 const/let 2021-07-28 10:52:20 -07:00
kozbial
fabba95beb Adding blocks to case statements in core/keyboard_nav/ast_node.js 2021-07-27 15:34:50 -07:00
kozbial
d9edeca432 Update for loop syntax in core/keyboard_nav/ast_node.js 2021-07-27 15:34:50 -07:00
kozbial
02f1055c44 Add eslint disable lines to core/keyboard_nav/ast_node.js 2021-07-27 15:34:50 -07:00
kozbial
c19ce37a4a clang-format core/keyboard_nav/ast_node.js 2021-07-27 15:34:50 -07:00
kozbial
e79faf4147 Migrate core/keyboard_nav/ast_node.js named requires 2021-07-27 15:34:50 -07:00
kozbial
ec06ea6586 Migrate core/keyboard_nav/ast_node.js to goog.module 2021-07-27 15:34:50 -07:00
kozbial
e6bd6cabb1 Migrate core/keyboard_nav/ast_node.js to ES6 const/let 2021-07-27 15:34:50 -07:00
Aaron Dodson
ee565f16d6 Silence unused variable warnings for requires used in JSDoc 2021-07-22 10:41:55 -07:00
Monica Kozbial
c6650f0b83 Remove need for require instead of requireType for Block in ASTNode (#5157) 2021-07-21 16:53:08 -07:00
Rachel Fenichel
cf7a8b95b8 Remove extra requires of Blockly.constants 2021-07-21 15:35:19 -07:00
kozbial
ecec6daf80 clang-format core/keyboard_nav/tab_navigate_cursor.js 2021-07-21 10:26:15 -07:00
kozbial
9a6a92bf52 Migrate core/keyboard_nav/tab_navigate_cursor.js named requires 2021-07-21 10:26:15 -07:00
kozbial
f282c57323 Migrate core/keyboard_nav/tab_navigate_cursor.js to goog.module 2021-07-21 10:26:15 -07:00
kozbial
9d6cbe96d3 Migrate core/keyboard_nav/tab_navigate_cursor.js to ES6 const/let 2021-07-21 10:26:15 -07:00
kozbial
c9f2a92ace Migrate core/keyboard_nav/cursor.js named requires 2021-07-20 10:58:08 -07:00
kozbial
e50c60bfdb Migrate core/keyboard_nav/cursor.js to goog.module 2021-07-20 10:58:08 -07:00
kozbial
317a2e6f53 Migrate core/keyboard_nav/cursor.js to ES6 const/let 2021-07-20 10:58:08 -07:00
kozbial
2ef8b2c86b clang-format core/keyboard_nav/basic_cursor.js 2021-07-20 10:42:03 -07:00
kozbial
4a3d67abeb Migrate core/keyboard_nav/basic_cursor.js named requires 2021-07-20 10:42:03 -07:00
kozbial
29cfb470aa Migrate core/keyboard_nav/basic_cursor.js to goog.module 2021-07-20 10:42:03 -07:00
kozbial
09b020e62f Migrate core/keyboard_nav/basic_cursor.js to ES6 const/let 2021-07-20 10:42:03 -07:00
Sam El-Husseini
63d26dc186 Add extra requires check (#4677)
* Add extra requires check
2021-03-05 09:50:51 -08:00
Rachel Fenichel
1c372188de Fix tests 2021-03-04 10:23:20 -08:00
Rachel Fenichel
7f8c875b29 Fix lint 2021-03-04 10:23:20 -08:00
Rachel Fenichel
750b62030b First pass at creating connectionTypes and inputTYpes 2021-03-04 10:22:24 -08:00
Sam El-Husseini
ab8a11784d Fix event related missing requires (#4656)
* Fix event related missing requires
2021-02-25 14:28:11 -08:00
Rachel Fenichel
9c5521122c Fix keyboard nav requireTypes 2021-02-17 11:45:33 -08:00
alschmiedt
efdcb89b5c Register cursors (#4599) 2021-01-21 16:01:31 -08:00
alschmiedt
a3adc42e8a Remove keyboard navigation from core (#4593) 2021-01-19 11:50:51 -08:00
alschmiedt
f1498e7f07 Keyboard shortcuts (#4421)
* Adds shortcut registry and removes action and key map (#4398)

* Adds Shortcut tests and refactored navigation tests (#4412)

* Adds shortcut items (#4408)

* Add shortcuts for navigation (#4409)

* Add final keyboard shortcut cleanup (#4413)
2020-11-02 13:30:05 -08:00
alschmiedt
edbd6991b4 Small fixes to the toolbox (#4380) 2020-10-19 09:43:41 -07:00
Sam El-Husseini
fba35d342c Add missing require Blockly.constants (#4366) 2020-10-12 17:56:42 -04:00