diff --git a/db/blockly_unix_database.db b/db/blockly_unix_database.db index 679e523..be81991 100644 Binary files a/db/blockly_unix_database.db and b/db/blockly_unix_database.db differ diff --git a/public/blocks/chmodBlock.js b/public/blocks/chmodBlock.js index a4ad901..807b38d 100644 --- a/public/blocks/chmodBlock.js +++ b/public/blocks/chmodBlock.js @@ -27,4 +27,3 @@ var chmodBlock = { }; Blockly.defineBlocksWithJsonArray([chmodBlock]); -// diff --git a/public/blocks/chownBlock.js b/public/blocks/chownBlock.js index fb1530a..8ba7060 100644 --- a/public/blocks/chownBlock.js +++ b/public/blocks/chownBlock.js @@ -27,4 +27,3 @@ var chownBlock = { }; Blockly.defineBlocksWithJsonArray([chownBlock]); -// diff --git a/public/blocks/grepBlock.js b/public/blocks/grepBlock.js index b8029d3..b8c2240 100644 --- a/public/blocks/grepBlock.js +++ b/public/blocks/grepBlock.js @@ -24,7 +24,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'regex', - checked: false // by default it's disabled + checked: false } ], message2: '%{BKY_GREP_CASE_INSENSITIVE}', @@ -32,7 +32,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'case_ins', - checked: false // by default it's disabled + checked: false } ], message3: '%{BKY_GREP_WHOLE_WORD_SEARCH}', @@ -40,7 +40,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'whole_word', - checked: false // by default it's disabled + checked: false } ], message4: '%{BKY_GREP_COUNT_MATCHES}', @@ -48,7 +48,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'count_lines', - checked: false // by default it's disabled + checked: false } ], message5: '%{BKY_GREP_PATTERN_NEGATION}', @@ -56,7 +56,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'inverted', - checked: false // by default it's disabled + checked: false } ], message6: '%{BKY_GREP_RECURSIVE_SEARCH}', @@ -64,7 +64,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'recursive', - checked: false // by default it's disabled + checked: false } ], message7: '%{BKY_GREP_DISPLAY_LINE_NUMBERS}', @@ -72,7 +72,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'show_line_nums', - checked: false // by default it's disabled + checked: false } ], message8: '%{BKY_GREP_STOP_AFTER_NUM_MATCHES}', @@ -88,7 +88,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'show_line_nums', - checked: false // by default it's disabled + checked: false } ], message10: '%{BKY_GREP_SHOW_FILENAME}', @@ -96,7 +96,7 @@ var grepBlock = { { type: 'field_checkbox', name: 'showFiles', - checked: false // by default it's disabled + checked: false } ], message11: '%{BKY_GREP_PATTERN_DEFINE}', @@ -116,7 +116,7 @@ var grepBlock = { }, { type: 'field_checkbox', - checked: false // by default it's disabled + checked: false } ], message13: '%{BKY_GREP_PRINT_CONTEXT_AFTER_MATCH}', @@ -128,14 +128,14 @@ var grepBlock = { }, { type: 'field_checkbox', - checked: false // by default it's disabled + checked: false } ], style: 'Text Processing', previousStatement: 'Action', nextStatement: 'Action', tooltip: 'search in a file with a pattern', - helpUrl: '' // URL to further information or documentation. + helpUrl: '' }; Blockly.defineBlocksWithJsonArray([grepBlock]); diff --git a/public/blocks/gzipBlock.js b/public/blocks/gzipBlock.js index b0f7b61..a2e3072 100644 --- a/public/blocks/gzipBlock.js +++ b/public/blocks/gzipBlock.js @@ -33,7 +33,7 @@ var gzipBlock = { { type: 'field_checkbox', name: 'keep', - checked: true // by default it's disabled + checked: true } ], message2: '%{BKY_GZIP_LEVEL_OF_COMPRESSION}', @@ -59,7 +59,7 @@ var gzipBlock = { { type: 'field_input', name: 'suffix', - text: '' // empty text for user to define path + text: '' } ], style: 'Other Commands', @@ -67,7 +67,7 @@ var gzipBlock = { previousStatement: 'Action', nextStatement: 'Action', tooltip: '%{BKY_GZIP_TOOLTIP}', - helpUrl: '' // URL to further information or documentation. + helpUrl: '' }; Blockly.defineBlocksWithJsonArray([gzipBlock]); diff --git a/public/blocks/journalBlock.js b/public/blocks/journalBlock.js deleted file mode 100644 index e69de29..0000000 diff --git a/public/blocks/killBlock.js b/public/blocks/killBlock.js index 5acda62..e6e4abc 100644 --- a/public/blocks/killBlock.js +++ b/public/blocks/killBlock.js @@ -20,4 +20,3 @@ var killBlock = { }; Blockly.defineBlocksWithJsonArray([killBlock]); -// diff --git a/public/blocks/touchBlock.js b/public/blocks/touchBlock.js index 596cb55..d09233f 100644 --- a/public/blocks/touchBlock.js +++ b/public/blocks/touchBlock.js @@ -58,29 +58,7 @@ var touchBlock = { extensions: ['validate_touch_time_d', 'restrict_touch_to_argumentsCreate'], style: 'Filesystem Operations', tooltip: '%{BKY_TOUCH_TOOLTIP}', - helpUrl: '%{BKY_TOUCH_HELPURL}', // URL to further information or documentation. - generateCommand: function (block) { - let touchCommand = 'touch'; // Start with the basic touch command - - // Check each option and append to the command if selected - const notCreateFile = block.getFieldValue('not_create_file') === 'TRUE'; - const changeAccessTime = block.getFieldValue('access_time') === 'TRUE'; - const changeModificationTime = - block.getFieldValue('modification_time') === 'TRUE'; - const rawTimestamp = block.getFieldValue('change_time_d'); - const argumentBlock = block.getInputTargetBlock('argument'); - - if (notCreateFile) touchCommand += ' -c'; - if (changeAccessTime) touchCommand += ' -a'; - if (changeModificationTime) touchCommand += ' -m'; - if (rawTimestamp) { - const formattedTimestamp = rawTimestamp.replace(' ', 'T'); - touchCommand += ` -d ${formattedTimestamp}`; - } - generatedCommand = - touchCommand + ' ' + handleArgumentsBlocks(argumentBlock); - return generatedCommand; - } + helpUrl: '%{BKY_TOUCH_HELPURL}' // URL to further information or documentation. }; Blockly.defineBlocksWithJsonArray([touchBlock]); diff --git a/public/css/homePage.css b/public/css/homePage.css index 5136496..8c93439 100644 --- a/public/css/homePage.css +++ b/public/css/homePage.css @@ -81,18 +81,6 @@ body { font-family: 'Roboto', Arial, sans-serif; } -.d-flex { - display: flex; -} - -.flex-column { - flex-direction: column; -} - -.min-vh-100 { - min-height: 100vh; -} - .flex-fill { flex: 1; } diff --git a/public/css/login.css b/public/css/login.css index e0c0057..e7dc055 100644 --- a/public/css/login.css +++ b/public/css/login.css @@ -2,11 +2,7 @@ /* General styling */ body { - margin: 0; padding: 0; - font-family: 'Raleway', sans-serif; - color: #fff; - background-color: #f2f2f2; } /* Animations for smooth transitions */