Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #7

Merged
merged 49 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ca61d8c
fix: Fix errors in injected CSS (#5587)
moniika Oct 7, 2021
2b1f33c
feat: add Blockly.Extensions.isRegistered function (#5500)
aaimio Oct 7, 2021
b25e24f
chore: Run clang-format on core/*.js (#5589)
rachel-fenichel Oct 7, 2021
246927a
fix: Make update_metadata.sh work on macOS (#5590)
gonfunko Oct 7, 2021
abee92c
fix: clear dropdown div before rendering content (#5429)
hpnrep6 Oct 14, 2021
ec9092f
Changes Css.register API to accept string param (#5472)
DubeySandeep Oct 14, 2021
7ac1e27
Add Croatian to Code demo (#5583)
NeilFraser Oct 15, 2021
c929b30
chore: Convert == to === and != to !== where possible. (#5599)
NeilFraser Oct 15, 2021
90b3f75
Remove @author tags (#5601)
NeilFraser Oct 15, 2021
56d4fbb
fix: Don't kludge accessors in compiled mode (#5591)
cpcallen Oct 15, 2021
063c8ad
chore: Bump google-closure-compiler from 20210601.0.0 to 20211006.0.0…
dependabot[bot] Oct 15, 2021
d71b9c6
fix: group context menu collapse blocks events (#5501)
aaimio Oct 18, 2021
30eb4d4
fix: Positioning of pasted/duplicated blocks in LTR workspaces (#5613)
gonfunko Oct 18, 2021
7bfbaac
Bump yargs from 16.2.0 to 17.2.1 (#5603)
dependabot[bot] Oct 18, 2021
21a1ec3
Bump webdriverio from 7.13.0 to 7.14.1 (#5594)
dependabot[bot] Oct 18, 2021
f578051
Bump mocha from 9.1.2 to 9.1.3 (#5616)
dependabot[bot] Oct 18, 2021
817a797
chore: update dependabot messages and labels (#5618)
rachel-fenichel Oct 19, 2021
246c5f9
Bump concurrently from 6.2.0 to 6.3.0 (#5581)
dependabot[bot] Oct 19, 2021
3189f01
chore(deps): Bump google-closure-deps from 20210601.0.0 to 20210808.0…
dependabot[bot] Oct 19, 2021
abe1ffe
Bump typescript from 4.3.2 to 4.4.4 (#5617)
dependabot[bot] Oct 19, 2021
3851b14
refactor: Migrate to named exports (#5623)
gonfunko Oct 20, 2021
e8d6f7f
chore: auto-fix violations of comma-dangle rule (#5625)
rachel-fenichel Oct 21, 2021
6dc0f90
chore: replace var with const and let in blocks directory (#5626)
rachel-fenichel Oct 21, 2021
0f3c063
chore: runs clang format on all files (#5627)
alschmiedt Oct 21, 2021
feef8fe
Bump selenium-standalone from 7.1.0 to 8.0.3 (#5632)
dependabot[bot] Oct 25, 2021
5cdc5f5
chore: Update deps.js with modified lang values (#5636)
cpcallen Oct 25, 2021
f70032a
chore: replace more uses of var with const and let (#5628)
rachel-fenichel Oct 25, 2021
52c0427
chore: run eslint--fix for no-var rule in tests/mocha (#5637)
rachel-fenichel Oct 25, 2021
8a89e08
chore: adds a check for properly formatted files (#5624)
alschmiedt Oct 25, 2021
4452575
fix: Change Marker in blockly.js becuase of the usage of the Marker …
Devesh21700Kumar Oct 26, 2021
0ae10fe
chore: replace var with let and const in mocha tests (#5638)
rachel-fenichel Oct 26, 2021
36fe365
fix: Fix mutators when compiled with renames. (#5644)
NeilFraser Oct 27, 2021
a366daa
chore: update generators/dart.js to const and let (#5646)
rachel-fenichel Oct 27, 2021
b66154f
Add feedback on expiry page. (#5648)
NeilFraser Oct 28, 2021
f0a874c
Bump @wdio/selenium-standalone-service from 7.13.2 to 7.16.1 (#5635)
dependabot[bot] Oct 28, 2021
db78d9f
chore: replace var with const and let in python block generators (#5650)
rachel-fenichel Oct 29, 2021
6c49d6c
chore: update language generators to const and let (#5647)
rachel-fenichel Oct 29, 2021
f4e7249
chore: update var to const and let in dart block generators (#5654)
rachel-fenichel Oct 29, 2021
cfb995c
chore: adds an action to assign reviewers from requested reviewers(#5…
alschmiedt Oct 29, 2021
bc7329f
fix(zelos): typo (#5649)
Nov 1, 2021
a452add
Bump selenium-standalone from 8.0.3 to 8.0.4 (#5651)
dependabot[bot] Nov 1, 2021
7ff6b93
chore: Fix permissions for Assign requested reviewers workflow (#5666)
cpcallen Nov 2, 2021
fa47c3c
Normalize ++x to x++. (#5660)
NeilFraser Nov 2, 2021
8a60734
chore: Update dependabot labelling config (#5664)
cpcallen Nov 2, 2021
f4381bb
fix: Don't crash when unable to post comment to PR (#5669)
cpcallen Nov 2, 2021
6c0c81d
docs: Fix a few typos (#5655)
timgates42 Nov 3, 2021
de95ffd
chore: update javascript block generators to const and let (#5661)
rachel-fenichel Nov 3, 2021
1b29a00
chore: update php block generators to const and let (#5663)
rachel-fenichel Nov 3, 2021
3e706ac
Bump webdriverio from 7.14.1 to 7.16.3 (#5652)
dependabot[bot] Nov 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ updates:
# We should test that this does not cause issue
# google/blockly-samples#665 when version 17 is released.
versions: "16.x"
commit-message:
prefix: "chore(deps)"
labels:
- "PR: dependencies"
41 changes: 41 additions & 0 deletions .github/workflows/assign_reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Assign requested reviewers

# This workflow adds requested reviewers as assignees. If you remove a
# requested reviewer, it will not remove them as an assignee.
#
# See https://github.com/google/blockly/issues/5643 for more
# information on why this was added.
#
# N.B.: Runs with a read-write repo token. Do not check out the
# submitted branch!
on:
pull_request_target:
types: [review_requested]

jobs:
requested-reviewer:
runs-on: ubuntu-latest
steps:
- name: Assign requested reviewer
uses: actions/github-script@v5
with:
script: |
try {
if (context.payload.pull_request === undefined) {
throw new Error("Can't get pull_request payload. " +
'Check a request reviewer event was triggered.');
}
const reviewers = context.payload.pull_request.requested_reviewers;
// Assignees takes in a list of logins rather than the
// reviewer object.
const reviewerNames = reviewers.map(reviewer => reviewer.login);
const {number:issue_number} = context.payload.pull_request;
github.rest.issues.addAssignees({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
assignees: reviewerNames
});
} catch (error) {
core.setFailed(error.message);
}
23 changes: 23 additions & 0 deletions .github/workflows/check_clang_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check clang format

# N.B.: Runs with a read-only repo token. Safe(ish) to check out the
# submitted branch.
on: [pull_request]

jobs:
clang-formatter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: DoozyX/clang-format-lint-action@v0.12
with:
source: 'core'
extensions: 'js'
clangFormatVersion: 12
style: Google

# The Report clang format workflow (report_clang_format.yml) will
# run (if required) after this one to post a comment to the PR.
# (Note that the version of that workflow run will be the one on
# the master (default) branch, not the PR target branch.)
5 changes: 3 additions & 2 deletions appengine/expiration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ def delete_expired():
results = query.fetch(limit=QUERY_LIMIT, keys_only=True)
for x in results:
x.delete()
return len(results)


def app(environ, start_response):
out = ""
headers = [
("Content-Type", "text/plain")
]
start_response("200 OK", headers)
delete_expired()
n = delete_expired()
out = "%d records deleted." % n
return [out.encode("utf-8")]
13 changes: 6 additions & 7 deletions appengine/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @fileoverview Loading and saving blocks with localStorage and cloud storage.
* @author q.neutron@gmail.com (Quynh Neutron)
*/
'use strict';

Expand Down Expand Up @@ -59,7 +58,7 @@ BlocklyStorage.link = function(opt_workspace) {
var xml = Blockly.Xml.workspaceToDom(workspace, true);
// Remove x/y coordinates from XML if there's only one block stack.
// There's no reason to store this, removing it helps with anonymity.
if (workspace.getTopBlocks(false).length == 1 && xml.querySelector) {
if (workspace.getTopBlocks(false).length === 1 && xml.querySelector) {
var block = xml.querySelector('block');
if (block) {
block.removeAttribute('x');
Expand Down Expand Up @@ -116,17 +115,17 @@ BlocklyStorage.makeRequest_ = function(url, name, content, workspace) {
* @private
*/
BlocklyStorage.handleRequest_ = function() {
if (BlocklyStorage.httpRequest_.readyState == 4) {
if (BlocklyStorage.httpRequest_.status != 200) {
if (BlocklyStorage.httpRequest_.readyState === 4) {
if (BlocklyStorage.httpRequest_.status !== 200) {
BlocklyStorage.alert(BlocklyStorage.HTTPREQUEST_ERROR + '\n' +
'httpRequest_.status: ' + BlocklyStorage.httpRequest_.status);
} else {
var data = BlocklyStorage.httpRequest_.responseText.trim();
if (BlocklyStorage.httpRequest_.name == 'xml') {
if (BlocklyStorage.httpRequest_.name === 'xml') {
window.location.hash = data;
BlocklyStorage.alert(BlocklyStorage.LINK_ALERT.replace('%1',
window.location.href));
} else if (BlocklyStorage.httpRequest_.name == 'key') {
} else if (BlocklyStorage.httpRequest_.name === 'key') {
if (!data.length) {
BlocklyStorage.alert(BlocklyStorage.HASH_ERROR.replace('%1',
window.location.hash));
Expand All @@ -153,7 +152,7 @@ BlocklyStorage.monitorChanges_ = function(workspace) {
function change() {
var xmlDom = Blockly.Xml.workspaceToDom(workspace);
var xmlText = Blockly.Xml.domToText(xmlDom);
if (startXmlText != xmlText) {
if (startXmlText !== xmlText) {
window.location.hash = '';
workspace.removeChangeListener(change);
}
Expand Down
1 change: 0 additions & 1 deletion blockly_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @fileoverview Bootstrap code to load Blockly in uncompiled mode.
* @author cpcallen@google.com (Christopher Allen)
*/
'use strict';

Expand Down
31 changes: 15 additions & 16 deletions blocks/colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* passed to defineBlocksWithJsonArray(..) must be strict JSON: double quotes
* only, no outside references, no functions, no trailing commas, etc. The one
* exception is end-of-line comments, which the scraper will remove.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';

Expand All @@ -38,14 +37,14 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
{
"type": "field_colour",
"name": "COLOUR",
"colour": "#ff0000"
}
"colour": "#ff0000",
},
],
"output": "Colour",
"helpUrl": "%{BKY_COLOUR_PICKER_HELPURL}",
"style": "colour_blocks",
"tooltip": "%{BKY_COLOUR_PICKER_TOOLTIP}",
"extensions": ["parent_tooltip_when_inline"]
"extensions": ["parent_tooltip_when_inline"],
},

// Block for random colour.
Expand All @@ -55,7 +54,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"output": "Colour",
"helpUrl": "%{BKY_COLOUR_RANDOM_HELPURL}",
"style": "colour_blocks",
"tooltip": "%{BKY_COLOUR_RANDOM_TOOLTIP}"
"tooltip": "%{BKY_COLOUR_RANDOM_TOOLTIP}",
},

// Block for composing a colour from RGB components.
Expand All @@ -67,25 +66,25 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"type": "input_value",
"name": "RED",
"check": "Number",
"align": "RIGHT"
"align": "RIGHT",
},
{
"type": "input_value",
"name": "GREEN",
"check": "Number",
"align": "RIGHT"
"align": "RIGHT",
},
{
"type": "input_value",
"name": "BLUE",
"check": "Number",
"align": "RIGHT"
}
"align": "RIGHT",
},
],
"output": "Colour",
"helpUrl": "%{BKY_COLOUR_RGB_HELPURL}",
"style": "colour_blocks",
"tooltip": "%{BKY_COLOUR_RGB_TOOLTIP}"
"tooltip": "%{BKY_COLOUR_RGB_TOOLTIP}",
},

// Block for blending two colours together.
Expand All @@ -98,24 +97,24 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
"type": "input_value",
"name": "COLOUR1",
"check": "Colour",
"align": "RIGHT"
"align": "RIGHT",
},
{
"type": "input_value",
"name": "COLOUR2",
"check": "Colour",
"align": "RIGHT"
"align": "RIGHT",
},
{
"type": "input_value",
"name": "RATIO",
"check": "Number",
"align": "RIGHT"
}
"align": "RIGHT",
},
],
"output": "Colour",
"helpUrl": "%{BKY_COLOUR_BLEND_HELPURL}",
"style": "colour_blocks",
"tooltip": "%{BKY_COLOUR_BLEND_TOOLTIP}"
}
"tooltip": "%{BKY_COLOUR_BLEND_TOOLTIP}",
},
]); // END JSON EXTRACT (Do not delete this comment.)
Loading