forked from AUEB-BALab/blockly_unix
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
182 additions
and
199 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var argumentBlock = { | ||
type: 'argument', | ||
category: 'Function inputs', | ||
message0: '%{BKY_ARGUMENT} %1', | ||
args0: [ | ||
{ | ||
type: 'field_input', | ||
name: 'argument', | ||
text: 'argument' // default text for the input | ||
} | ||
], | ||
|
||
output: 'String', | ||
style: 'Function inputs', | ||
tooltip: '%{BKY_ARGUMENT_TOOLTIP}', | ||
helpUrl: '%{BKY_ARGUMENT_HELPURL}' // URL για περαιτέρω πληροφορίες ή τεκμηρίωση. | ||
}; | ||
|
||
Blockly.defineBlocksWithJsonArray([argumentBlock]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
var cdBlock = { | ||
type: 'cd', | ||
category: 'Filesystem Operations', | ||
unix_description: [ | ||
{ | ||
directory: './str' | ||
} | ||
], | ||
unix_description: [{}], | ||
message0: '%{BKY_CD} %1', | ||
args0: [ | ||
{ | ||
type: 'field_input', | ||
name: 'directory', | ||
text: '' // αρχικό κενό text για να ορίσει ο χρήστης το path | ||
text: '............' // empty text for user to define path | ||
} | ||
], | ||
style: 'File and Directory Operations', | ||
style: 'Filesystem Operations', | ||
tooltip: '%{BKY_CD_TOOLTIP}', | ||
helpUrl: '%{BKY_CD_HELPURL}' // Σύνδεσμος για περισσότερες πληροφορίες ή τεκμηρίωση. | ||
helpUrl: '%{BKY_CD_HELPURL}' // URL to further information or documentation. | ||
}; | ||
|
||
// Εισάγουμε το block στο Blockly | ||
Blockly.defineBlocksWithJsonArray([cdBlock]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.