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.
Merge branch 'main' of https://github.com/simosathan9/blockly_unix
- Loading branch information
Showing
7 changed files
with
171 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,69 @@ | ||
var lnBlock = { | ||
type: 'ln', | ||
category: 'File and Directory Operations', | ||
message0: 'ln %1 %2', | ||
message0: '%{BKY_LN_MESSAGE}', | ||
unix_description: [ | ||
{ | ||
command: 'ln %TARGET %LINK' | ||
command: 'ln', | ||
symbolic: '-s', | ||
force: '-f', | ||
interactive: '-i', | ||
verbose: '-v', | ||
follow_symlink: '-L', | ||
no_symlink_follow: '-P' | ||
} | ||
], | ||
args0: [ | ||
message1: '%{BKY_LN_SYMBOLIC_LINK}', | ||
args1: [ | ||
{ | ||
type: 'field_checkbox', | ||
name: 'symbolic', | ||
checked: false // by default it's disabled | ||
} | ||
], | ||
message2: '%{BKY_LN_FORCE}', | ||
args2: [ | ||
{ | ||
type: 'field_checkbox', | ||
name: 'force', | ||
checked: false // by default it's disabled | ||
} | ||
], | ||
message3: '%{BKY_LN_INTERACTIVE}', | ||
args3: [ | ||
{ | ||
type: 'field_checkbox', | ||
name: 'interactive', | ||
checked: false // by default it's disabled | ||
} | ||
], | ||
message4: '%{BKY_LN_VERBOSE}', | ||
args4: [ | ||
{ | ||
type: 'field_checkbox', | ||
name: 'verbose', | ||
checked: false // by default it's disabled | ||
} | ||
], | ||
|
||
message5: '%{BKY_LN_SOURCE}: %1 %{BKY_LN_TARGET}: %2', | ||
args5: [ | ||
{ | ||
type: 'field_input', | ||
name: 'TARGET', | ||
text: 'target' // default target | ||
name: 'SOURCE', | ||
text: 'source' // default source | ||
}, | ||
{ | ||
type: 'field_input', | ||
name: 'LINK', | ||
text: 'link' // default link | ||
name: 'TARGET', | ||
text: 'target' // default target | ||
} | ||
], | ||
style: 'File and Directory Operations', | ||
previousStatement: 'Action', | ||
nextStatement: 'Action', | ||
tooltip: 'Δημιουργεί συνδέσμους (links) μεταξύ αρχείων.', | ||
tooltip: '%{BKY_LN_TOOLTIP}', | ||
helpUrl: 'https://linux.die.net/man/1/ln' | ||
}; | ||
|
||
Blockly.defineBlocksWithJsonArray([lnBlock]); | ||
// |
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