Update style, use freshcoat
This commit is contained in:
parent
f4660b4366
commit
440dbbe82a
@ -1,4 +1,37 @@
|
|||||||
{
|
{
|
||||||
|
"Array": "Add, remove, and replace items in lists.\n\nAdd, remove, and replace items in lists.",
|
||||||
|
"Array.filter": "Returns the elements of an array that meet the condition specified in a callback function.",
|
||||||
|
"Array.filter|param|callbackfn": "A function that accepts up to two arguments. The filter method calls the callbackfn function one time for each element in the array.",
|
||||||
|
"Array.get": "Gets the value at a particular index",
|
||||||
|
"Array.get|param|index": "the zero-based position in the list of the item, eg: 0",
|
||||||
|
"Array.indexOf": "Returns the index of the first occurrence of a value in an array.",
|
||||||
|
"Array.indexOf|param|fromIndex": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",
|
||||||
|
"Array.indexOf|param|item": "The value to locate in the array.",
|
||||||
|
"Array.insertAt": "Insert the value at a particular index, increases length by 1",
|
||||||
|
"Array.insertAt|param|index": "the zero-based position in the list to insert the value, eg: 0",
|
||||||
|
"Array.length": "Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.",
|
||||||
|
"Array.map": "Calls a defined callback function on each element of an array, and returns an array that contains the results.",
|
||||||
|
"Array.map|param|callbackfn": "A function that accepts up to two arguments. The map method calls the callbackfn function one time for each element in the array.",
|
||||||
|
"Array.pop": "Removes the last element from an array and returns it.",
|
||||||
|
"Array.push": "Appends new elements to an array.",
|
||||||
|
"Array.reduce": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
|
||||||
|
"Array.reduce|param|callbackfn": "A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the array.",
|
||||||
|
"Array.reduce|param|initialValue": "Initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
|
||||||
|
"Array.removeAt": "Removes the object at position index.",
|
||||||
|
"Array.removeElement": "Removes the first occurence of an object. Returns true if removed.",
|
||||||
|
"Array.reverse": "Reverses the elements in an Array. The first array element becomes the last, and the last array element becomes the first.",
|
||||||
|
"Array.set": "Stores the value at a particular index",
|
||||||
|
"Array.set|param|index": "the zero-based position in the list to store the value, eg: 0",
|
||||||
|
"Array.shift": "Removes the first element from an array and returns that element. This method changes the length of the array.",
|
||||||
|
"Array.slice": "Returns a section of an array.",
|
||||||
|
"Array.slice|param|end": "The end of the specified portion of the array. eg: 0",
|
||||||
|
"Array.slice|param|start": "The beginning of the specified portion of the array. eg: 0",
|
||||||
|
"Array.sort": "Sorts the elements of an array in place and returns the array. The sort is not necessarily stable.",
|
||||||
|
"Array.splice": "Removes elements from an array.",
|
||||||
|
"Array.splice|param|deleteCount": "The number of elements to remove. eg: 0",
|
||||||
|
"Array.splice|param|start": "The zero-based location in the array from which to start removing elements. eg: 0",
|
||||||
|
"Array.unshift": "Adds one element to the beginning of an array and returns the new length of the array.",
|
||||||
|
"Math": "More complex operations with numbers.",
|
||||||
"Math.abs": "Returns the absolute value of a number (the value without regard to whether it is positive or negative).\nFor example, the absolute value of -5 is the same as the absolute value of 5.",
|
"Math.abs": "Returns the absolute value of a number (the value without regard to whether it is positive or negative).\nFor example, the absolute value of -5 is the same as the absolute value of 5.",
|
||||||
"Math.abs|param|x": "A numeric expression for which the absolute value is needed.",
|
"Math.abs|param|x": "A numeric expression for which the absolute value is needed.",
|
||||||
"Math.acos": "Returns the arccosine (in radians) of a number",
|
"Math.acos": "Returns the arccosine (in radians) of a number",
|
||||||
@ -58,6 +91,7 @@
|
|||||||
"Math.tan|param|x": "An angle in radians",
|
"Math.tan|param|x": "An angle in radians",
|
||||||
"Math.trunc": "Returns the number with the decimal part truncated.",
|
"Math.trunc": "Returns the number with the decimal part truncated.",
|
||||||
"Math.trunc|param|x": "A numeric expression.",
|
"Math.trunc|param|x": "A numeric expression.",
|
||||||
|
"String": "Combine, split, and search text strings.\n\nCombine, split, and search text strings.",
|
||||||
"String.charAt": "Returns the character at the specified index.",
|
"String.charAt": "Returns the character at the specified index.",
|
||||||
"String.charAt|param|index": "The zero-based index of the desired character.",
|
"String.charAt|param|index": "The zero-based index of the desired character.",
|
||||||
"String.charCodeAt": "Returns the Unicode value of the character at the specified location.",
|
"String.charCodeAt": "Returns the Unicode value of the character at the specified location.",
|
||||||
|
@ -1,4 +1,14 @@
|
|||||||
{
|
{
|
||||||
|
"Array.indexOf|block": "%list| find index of %value",
|
||||||
|
"Array.insertAt|block": "%list| insert at %index| value %value",
|
||||||
|
"Array.length|block": "length of %VALUE",
|
||||||
|
"Array.pop|block": "get and remove last value from %list",
|
||||||
|
"Array.push|block": "%list| add value %value| to end",
|
||||||
|
"Array.removeAt|block": "%list| remove value at %index",
|
||||||
|
"Array.reverse|block": "reverse %list",
|
||||||
|
"Array.shift|block": "get and remove first value from %list",
|
||||||
|
"Array.unshift|block": "%list| insert %value| at beginning",
|
||||||
|
"Array|block": "Array",
|
||||||
"Math.constrain|block": "constrain %value|between %low|and %high",
|
"Math.constrain|block": "constrain %value|between %low|and %high",
|
||||||
"Math.map|block": "map %value|from low %fromLow|from high %fromHigh|to low %toLow|to high %toHigh",
|
"Math.map|block": "map %value|from low %fromLow|from high %fromHigh|to low %toLow|to high %toHigh",
|
||||||
"Math.randomRange|block": "pick random %min|to %limit",
|
"Math.randomRange|block": "pick random %min|to %limit",
|
||||||
@ -27,6 +37,8 @@
|
|||||||
"serial.writeString|block": "serial|write string %text",
|
"serial.writeString|block": "serial|write string %text",
|
||||||
"serial.writeValue|block": "serial|write value %name|= %value",
|
"serial.writeValue|block": "serial|write value %name|= %value",
|
||||||
"serial|block": "serial",
|
"serial|block": "serial",
|
||||||
|
"{id:category}Array": "Array",
|
||||||
|
"{id:category}Arrays": "Arrays",
|
||||||
"{id:category}Control": "Control",
|
"{id:category}Control": "Control",
|
||||||
"{id:category}Loops": "Loops",
|
"{id:category}Loops": "Loops",
|
||||||
"{id:category}Math": "Math",
|
"{id:category}Math": "Math",
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.9.1",
|
"pxt-common-packages": "0.9.1",
|
||||||
"pxt-core": "1.8.10"
|
"pxt-core": "2.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||||
|
@ -73,10 +73,6 @@ div.blocklyTreeRow {
|
|||||||
box-shadow: inset 0px 0px 0px 3px rgba(0,0,0,0.1);
|
box-shadow: inset 0px 0px 0px 3px rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
div.blocklyTreeRoot div div div div div.blocklyTreeRow {
|
|
||||||
padding-top: 0.5rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Remove shadow around blockly blocks */
|
/* Remove shadow around blockly blocks */
|
||||||
.blocklyPathDark, .blocklyPathLight {
|
.blocklyPathDark, .blocklyPathLight {
|
||||||
display: none;
|
display: none;
|
||||||
@ -102,6 +98,10 @@ span.blocklyTreeLabel {
|
|||||||
background: @blue !important;
|
background: @blue !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menubar .ui.menu.fixed .ui.item.editor-menuitem .item:not(.active) {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
/* Search box */
|
/* Search box */
|
||||||
#blocklySearchArea {
|
#blocklySearchArea {
|
||||||
margin: 0.5rem;
|
margin: 0.5rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user