Skip to content

Commit

Permalink
Minor corrections and enhancements on blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
simosathan9 committed Sep 17, 2024
1 parent a89e3a2 commit c9a6ee9
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 93 deletions.
1 change: 0 additions & 1 deletion public/blocks/fileEndStartBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ var fileEndStartBlock = {

output: 'fileWildcard',
style: 'File inputs',
nextStatement: 'Action',
tooltip: '%{BKY_FILE_END_START_WILDCHARS_TOOLTIP}',
helpUrl: '%{BKY_FILE_END_START_WILDCHARS_HELPURL} ' // URL to further information or documentation.
};
Expand Down
1 change: 0 additions & 1 deletion public/blocks/filenameBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ var filenameBlock = {
],
output: 'filename',
style: 'File inputs',
nextStatement: 'Action',
tooltip: '%{BKY_FILENAME_TOOLTIP}',
helpUrl: '%{BKY_FILENAME_HELPURL}' // URL to further information or documentation.
};
Expand Down
11 changes: 1 addition & 10 deletions public/blocks/gzipBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ var gzipBlock = {
five: '-5',
seven: '-7',
eight: '-8',
suffix: '-S str',
verbose: '-v'
suffix: '-S str'
}
],
message0: '%{BKY_GZIP_FILE}',
Expand Down Expand Up @@ -63,14 +62,6 @@ var gzipBlock = {
text: '' // empty text for user to define path
}
],
message4: '%{BKY_GZIP_VERBOSE}',
args4: [
{
type: 'field_checkbox',
name: 'verbose',
checked: false // by default it's disabled
}
],
style: 'File Operations',
extensions: ['integer_validation'],
previousStatement: 'Action',
Expand Down
13 changes: 1 addition & 12 deletions public/blocks/lnBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var lnBlock = {
symbolic: '-s',
force: '-f',
interactive: '-i',
verbose: '-v',
follow_symlink: '-L',
no_symlink_follow: '-P'
}
Expand Down Expand Up @@ -37,17 +36,8 @@ var lnBlock = {
checked: false // by default it's disabled
}
],
message4: '%{BKY_LN_VERBOSE}',
message4: '%{BKY_LN_SOURCE}: %1 %{BKY_LN_TARGET}: %2',
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: 'SOURCE',
Expand All @@ -60,7 +50,6 @@ var lnBlock = {
}
],
style: 'File Operations',
previousStatement: 'Action',
nextStatement: 'Action',
tooltip: '%{BKY_LN_TOOLTIP}',
helpUrl: 'https://linux.die.net/man/1/ln'
Expand Down
1 change: 0 additions & 1 deletion public/blocks/lsBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var lsBlock = {
}
],
style: 'Directory Operations',
previousStatement: 'Action',
nextStatement: 'Action',
tooltip: '%{BKY_LS_TOOLTIP}',
helpUrl: '' // URL to further information or documentation.
Expand Down
21 changes: 5 additions & 16 deletions public/blocks/mkdirBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,20 @@ var mkdirBlock = {
category: 'Directory Operations',
unix_description: [
{
parents: '-p',
verbose: '-v'
parents: '-p'
}
],
message0: '%{BKY_MKDIR_MESSAGE}',
message1: '%{BKY_MKDIR_MULTIPLE_DIRECTORIES}',
message2: '%{BKY_MKDIR_CREATE_SUBDIRECTORIES}',
args2: [
{
type: 'field_checkbox',
name: 'parents',
checked: false // by default it's disabled
}
],
message3: '%{BKY_MKDIR_LIST_DIRECTORIES}',
message1: '%{BKY_MKDIR_SAME_LEVEL_DIRECTORIES}',
message2: '%{BKY_MKDIR_MULTIPLE_DIRECTORIES}',
message3: '%{BKY_MKDIR_CREATE_SUBDIRECTORIES}',
args3: [
{
type: 'field_checkbox',
name: 'verbose',
name: 'parents',
checked: false // by default it's disabled
}
],

message4: '%{BKY_MKDIR_WRITE_DIRECTORY}',
args4: [
{
Expand All @@ -34,9 +25,7 @@ var mkdirBlock = {
text: '............'
}
],

style: 'Directory Operations',
previousStatement: 'Action',
nextStatement: 'Action',
tooltip: '%{BKY_MKDIR_TOOLTIP}',
helpUrl: '' // URL to further information or documentation.
Expand Down
16 changes: 3 additions & 13 deletions public/blocks/mvBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var mvBlock = {
{
not_prompt_confirmation: '-f',
prompt_confirmation: '-i',
verbose: '-v',
not_overwrite: '-n'
}
],
Expand All @@ -26,24 +25,16 @@ var mvBlock = {
checked: false
}
],
message3: '%{BKY_MV_VERBOSE}',
message3: '%{BKY_MV_NOT_OVERWRITE}',
args3: [
{
type: 'field_checkbox',
name: 'verbose',
checked: false
}
],
message4: '%{BKY_MV_NOT_OVERWRITE}',
args4: [
{
type: 'field_checkbox',
name: 'not_overwrite',
checked: false
}
],
message5: '%{BKY_MV_SOURCE}: %1 %{BKY_MV_DEST}: %2',
args5: [
message4: '%{BKY_MV_SOURCE}: %1 %{BKY_MV_DEST}: %2',
args4: [
{
type: 'field_input',
name: 'SOURCE',
Expand All @@ -56,7 +47,6 @@ var mvBlock = {
}
],
style: 'File Operations',
previousStatement: 'Action',
nextStatement: 'Action',
tooltip: 'Μετακινεί ή μετονομάζει αρχεία.',
helpUrl: 'https://linux.die.net/man/1/mv'
Expand Down
20 changes: 1 addition & 19 deletions public/blocks/rmBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ var rmBlock = {
request_confirmation: '-i',
remove_directory: '-d',
recursive: '-R',
verbose: '-v',
undelete: '-W',
no_cross_mount: '-x'
undelete: '-W'
}
],
message1: '%{BKY_RM_FORCE}',
Expand Down Expand Up @@ -45,22 +43,6 @@ var rmBlock = {
checked: false
}
],
message5: '%{BKY_RM_VERBOSE}',
args5: [
{
type: 'field_checkbox',
name: 'verbose',
checked: false
}
],
message6: '%{BKY_RM_NO_CROSS_MOUNT}',
args6: [
{
type: 'field_checkbox',
name: 'no_cross_mount',
checked: false
}
],
extensions: [],
style: 'File Operations',
previousStatement: 'Action',
Expand Down
15 changes: 5 additions & 10 deletions public/js/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ Blockly.Msg['GZIP_FILE'] = '%1 Αρχείο';
Blockly.Msg['GZIP_KEEP_ORIGINAL_FILE'] = 'Διατήρηση αρχικού αρχείου %1';
Blockly.Msg['GZIP_LEVEL_OF_COMPRESSION'] = 'Επίπεδο συμπίεσης %1';
Blockly.Msg['GZIP_CHANGE_SUFFIX'] = 'Aλλαγή κατάληξης απο .gz σε';
Blockly.Msg['GZIP_VERBOSE'] = 'Εμφάνισε πληροφορίες %1';
Blockly.Msg['GZIP_TOOLTIP'] = 'Συμπίεση/αποσυμπίεση αρχείου';
Blockly.Msg['GZIP_HELPURL'] = 'https://www.google.com/';
Blockly.Msg['HEAD_MESSAGE'] = 'Πρώτα στοιχεία αρχείου';
Expand All @@ -136,23 +135,22 @@ Blockly.Msg['LN_SOURCE'] = 'Αρχείο προέλευσης';
Blockly.Msg['LN_TARGET'] = 'Αρχείο προορισμού';
Blockly.Msg['LN_FORCE'] = 'Επιβολή αντικατάστασης %1';
Blockly.Msg['LN_INTERACTIVE'] = 'Προτροπή πριν από την αντικατάσταση %1';
Blockly.Msg['LN_VERBOSE'] = 'Εμφάνιση των αρχείων κατά την επεξεργασία %1';
Blockly.Msg['LN_TOOLTIP'] =
'Δημιουργεί συνδέσμους αρχείων. Υποστηρίζει συμβολικούς συνδέσμους, αναγκαστική αντικατάσταση και λεπτομερή έξοδο.';
Blockly.Msg['MKDIR_MESSAGE'] = 'Δημιουργία καταλόγου';
Blockly.Msg['MKDIR_MULTIPLE_DIRECTORIES'] =
'Για πολλαπλούς καταλόγους χωρίστε με κενό';
'Διαχωρίστε τους υποκαταλόγους με κάθετους (/)';
Blockly.Msg['MKDIR_SAME_LEVEL_DIRECTORIES'] =
'Διαχωρίστε τους καταλόγους στο ίδιο επίπεδο με κενά';
Blockly.Msg['MKDIR_CREATE_SUBDIRECTORIES'] =
'Δημιουργήστε επίσης καταλόγους γονέων %1';
Blockly.Msg['MKDIR_LIST_DIRECTORIES'] = 'Λίστα δημιουργημένων καταλόγων %1';
Blockly.Msg['MKDIR_WRITE_DIRECTORY'] = 'Γράψτε όνομα καταλόγου ή διαδρομή %1';
Blockly.Msg['MKDIR_TOOLTIP'] = 'Δημιουργία καταλόγου';
Blockly.Msg['MKDIR_HELPURL'] = 'https://www.google.com/';
Blockly.Msg['MV_MESSAGE'] = 'Μετακίνηση αρχείων';
Blockly.Msg['MV_NOT_PROMPT_CONFIRMATION'] = 'Μην ζητήσεις επιβεβαίωση %1';
Blockly.Msg['MV_PROMPT_CONFIRMATION'] =
'Ζήτα επιβεβαίωση προτού εκτελεστεί η εντολή %1';
Blockly.Msg['MV_VERBOSE'] = 'Λεπτομερής αναφορά %1';
Blockly.Msg['MV_NOT_OVERWRITE'] = 'Μη αντικατάσταση αρχείου %1';
Blockly.Msg['MV_SOURCE'] = 'Αρχείο προέλευσης';
Blockly.Msg['MV_DEST'] = 'Τοποθεσία προορισμού';
Expand Down Expand Up @@ -618,9 +616,6 @@ Blockly.Msg['RM_REQUEST_CONFIRMATION'] =
'Ζητήστε επιβεβαίωση πριν την αφαίρεση αρχείου(ων) %1';
Blockly.Msg['RM_REMOVE_DIRECTORIES'] = 'Αφαίρεση καταλόγων %1';
Blockly.Msg['RM_RECURSIVE'] = 'Αφαίρεση αναδρομικά %1';
Blockly.Msg['RM_VERBOSE'] =
'Λειτουργία αναλυτικών πληροφοριών (εμφάνιση αφαιρεθέντων αρχείων) %1';
Blockly.Msg['RM_NO_CROSS_MOUNT'] = 'Μην διασχίσετε σημεία σύνδεσης %1';
Blockly.Msg['RM_TOOLTIP'] =
'Αφαιρεί αρχεία και καταλόγους με βάση τις καθορισμένες επιλογές.';

Expand Down Expand Up @@ -876,7 +871,7 @@ Blockly.Msg['TAIL_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['TEE'] = 'Αποθήκευση σε αρχείο &\n και συνέχιση επεξεργασίας\n';
Blockly.Msg['TEE_APPEND'] = 'Προσθήκη στο αρχείο %1\n';
Blockly.Msg['TEE_NAME'] = 'Δώστε όνομα αρχείου %1';
Blockly.Msg['TEE_NAME'] = 'Όνομα αρχείου %1';
Blockly.Msg['TEE_TOOLTIP'] =
'Το εργαλείο tee αντιγράφει την τυπική είσοδο στην τυπική έξοδο, κάνοντας ένα αντίγραφο σε ένα ή περισσότερα αρχεία.';
Blockly.Msg['TEE_HELPURL'] = 'https://www.google.com/';
Expand Down Expand Up @@ -917,7 +912,7 @@ Blockly.Msg['TOUCH_TOOLTIP'] =
'\nΠαράδειγμα: Για 12 Ιανουαρίου 2024, ώρα 14:30 UTC, η μορφή θα είναι: 2024-01-12T14:30:00Z.';
Blockly.Msg['TOUCH_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['UNIQ'] = 'Αφαίρεση διπλότυπων γραμμών στο αρχείο\n';
Blockly.Msg['UNIQ'] = 'Αναγνώριση διπλότυπων γραμμών στο αρχείο\n';
Blockly.Msg['UNIQ_COUNT'] =
'Μέτρηση των εμφανίσεων των \n γραμμών που αφαιρέθηκαν %1';
Blockly.Msg['UNIQ_CASE'] = ' Χωρίς διάκριση πεζών-κεφαλαίων %1';
Expand Down
16 changes: 6 additions & 10 deletions public/js/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ Blockly.Msg['GZIP_FILE'] = '%1 file';
Blockly.Msg['GZIP_KEEP_ORIGINAL_FILE'] = 'Keep original file %1';
Blockly.Msg['GZIP_LEVEL_OF_COMPRESSION'] = 'Level of compression %1';
Blockly.Msg['GZIP_CHANGE_SUFFIX'] = 'Change suffix from .gz to';
Blockly.Msg['GZIP_VERBOSE'] = 'Τurn on verbose mode %1';
Blockly.Msg['GZIP_TOOLTIP'] = 'File compress/decompress';
Blockly.Msg['GZIP_HELPURL'] = 'https://www.google.com/';
Blockly.Msg['HEAD_MESSAGE'] = 'First elements of file';
Expand All @@ -131,24 +130,23 @@ Blockly.Msg['LN_MESSAGE'] = 'Link files';
Blockly.Msg['LN_SYMBOLIC_LINK'] = 'Create symbolic link %1';
Blockly.Msg['LN_FORCE'] = 'Force overwrite %1';
Blockly.Msg['LN_INTERACTIVE'] = 'Prompt before overwrite %1';
Blockly.Msg['LN_VERBOSE'] = 'Show files as they are processed %1';
Blockly.Msg['LN_SOURCE'] = 'Source';
Blockly.Msg['LN_TARGET'] = 'Target';
Blockly.Msg['LN_TOOLTIP'] =
'Creates file links. Supports symbolic links, force overwrite, and verbose output.';
Blockly.Msg['MKDIR_MESSAGE'] = 'Create directory';
Blockly.Msg['MKDIR_MULTIPLE_DIRECTORIES'] =
'For multiple directories separate with space';
'Separate nested directories with forward slashes (/)';
Blockly.Msg['MKDIR_SAME_LEVEL_DIRECTORIES'] =
'Separate directories at the same level with spaces';
Blockly.Msg['MKDIR_CREATE_SUBDIRECTORIES'] =
'Create also parent directories %1';
Blockly.Msg['MKDIR_LIST_DIRECTORIES'] = 'List directories created %1';
Blockly.Msg['MKDIR_WRITE_DIRECTORY'] = 'Write directory or path %1';
Blockly.Msg['MKDIR_TOOLTIP'] = 'Create directory';
Blockly.Msg['MKDIR_HELPURL'] = 'https://www.google.com/';
Blockly.Msg['MV_MESSAGE'] = 'Move files';
Blockly.Msg['MV_NOT_PROMPT_CONFIRMATION'] = 'Do not prompt for confirmation %1';
Blockly.Msg['MV_PROMPT_CONFIRMATION'] = 'Prompt for confirmation %1';
Blockly.Msg['MV_VERBOSE'] = 'Verbose mode %1';
Blockly.Msg['MV_NOT_OVERWRITE'] = 'Do not overwrite %1';
Blockly.Msg['MV_SOURCE'] = 'Source';
Blockly.Msg['MV_DEST'] = 'Destination';
Expand Down Expand Up @@ -605,8 +603,6 @@ Blockly.Msg['RM_REQUEST_CONFIRMATION'] =
'Request confirmation before removing file(s) %1';
Blockly.Msg['RM_REMOVE_DIRECTORIES'] = 'Remove directories %1';
Blockly.Msg['RM_RECURSIVE'] = 'Remove recursively %1';
Blockly.Msg['RM_VERBOSE'] = 'Verbose mode (show removed files) %1';
Blockly.Msg['RM_NO_CROSS_MOUNT'] = 'Do not cross mount points %1';
Blockly.Msg['RM_TOOLTIP'] =
'Removes files and directories based on specified options.';
Blockly.Msg['TEXT_APPEND_HELPURL'] =
Expand Down Expand Up @@ -847,9 +843,9 @@ Blockly.Msg['TAIL_DESC'] = 'Descending order %1';
Blockly.Msg['TAIL_TOOLTIP'] = 'Output the last parts of files';
Blockly.Msg['TAIL_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['TEE'] = 'Save to file &\n and continue processing\n';
Blockly.Msg['TEE'] = 'Save to file &\n pass through for further processing\n';
Blockly.Msg['TEE_APPEND'] = 'Append to file %1\n';
Blockly.Msg['TEE_NAME'] = 'Give file name %1';
Blockly.Msg['TEE_NAME'] = 'File name %1';
Blockly.Msg['TEE_TOOLTIP'] =
'The tee utility copies standard input to standard output, making a copy in zero or more files.';
Blockly.Msg['TEE_HELPURL'] = 'https://www.google.com/';
Expand Down Expand Up @@ -888,7 +884,7 @@ Blockly.Msg['TOUCH_TOOLTIP'] =
'\nExample: For January 12, 2024, at 14:30 UTC, the format would be: 2024-01-12T14:30:00Z.';
Blockly.Msg['TOUCH_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['UNIQ'] = 'Find duplicate lines in file\n';
Blockly.Msg['UNIQ'] = 'Identify duplicate lines in file\n';
Blockly.Msg['UNIQ_COUNT'] =
'Count the occurencies of \n duplicates lines removed %1';
Blockly.Msg['UNIQ_CASE'] = 'Case sensitive %1';
Expand Down

0 comments on commit c9a6ee9

Please sign in to comment.