Skip to content

Commit

Permalink
Minor fixes in main.js and improvements on touch block
Browse files Browse the repository at this point in the history
  • Loading branch information
simosathan9 committed Sep 19, 2024
1 parent c9a6ee9 commit 81b57b4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,11 @@

<label for="languageDropdown"></label>
<select id="languageMenu" class="icon-dropdown">
<option value="en">English</option>
<option value="el">Ελληνικά</option>
<option value="en">🇬🇧 English</option>
<option value="el">🇬🇷 Ελληνικά</option>
</select>


<label for="savedWorkspaces"></label>
<select
id="savedWorkspaces"
Expand Down
13 changes: 7 additions & 6 deletions public/blocks/touchBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ var touchBlock = {
checked: false
}
],

message4: '%{BKY_TOUCH_SPECIFY_TIME_FORMAT_T}',
args4: [
message4: '%{BKY_TOUCH_SPECIFY_TIME_T}',
message5: '%{BKY_TOUCH_SPECIFY_TIME_FORMAT_T}',
args5: [
{
type: 'field_input',
name: 'change_time_t',
text: '',
check: 'String'
}
],
message5: '%{BKY_TOUCH_PROPOSE_OTHER_FORMAT}',
message6: '%{BKY_TOUCH_SPECIFY_TIME_FORMAT_D}',
args6: [
message6: '%{BKY_TOUCH_PROPOSE_OTHER_FORMAT}',
message7: '%{BKY_TOUCH_SPECIFY_TIME_D}',
message8: '%{BKY_TOUCH_SPECIFY_TIME_FORMAT_D}',
args8: [
{
type: 'field_input',
name: 'change_time_d',
Expand Down
20 changes: 10 additions & 10 deletions public/js/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,18 +876,18 @@ Blockly.Msg['TEE_TOOLTIP'] =
'Το εργαλείο tee αντιγράφει την τυπική είσοδο στην τυπική έξοδο, κάνοντας ένα αντίγραφο σε ένα ή περισσότερα αρχεία.';
Blockly.Msg['TEE_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['TOUCH'] = 'Τροποποίηση χρονικών στιγμών αρχείου';
Blockly.Msg['TOUCH'] = 'Τροποποίηση χρονικών στιγμών αρχείου \n';
Blockly.Msg['TOUCH_NOT_CREATE_FILE'] =
'Μη δημιουργία αρχείου αν δεν υπάρχει %1';
Blockly.Msg['TOUCH_CHANGE_ACCESS_TIME'] =
'Αλλαγή χρόνου τελευταίας πρόσβασης %1';
Blockly.Msg['TOUCH_CHANGE_MODIFICATION_TIME'] =
'Αλλαγή χρόνου τελευταίας τροποποίησης %1';
Blockly.Msg['TOUCH_SPECIFY_TIME_FORMAT_T'] =
'με προσθήκη ημερομηνίας στη μορφή [[CC]YY]MMDDhhmm[.SS] %1';
Blockly.Msg['TOUCH_PROPOSE_OTHER_FORMAT'] = 'ή';
'Μη δημιουργία αρχείου αν δεν υπάρχει %1 \n';
Blockly.Msg['TOUCH_CHANGE_ACCESS_TIME'] = 'Αλλαγή της χρονικής σήμανσης πρόσβασης στην τρέχουσα ώρα %1 \n';
Blockly.Msg['TOUCH_CHANGE_MODIFICATION_TIME'] = 'Αλλαγή της χρονικής σήμανσης τροποποίησης στην τρέχουσα ώρα %1 \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_T'] = 'Αλλαγή χρόνου πρόσβασης και τελευταίας τροποποίησης \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_FORMAT_T'] =
'Προσθήκη ημερομηνίας στη μορφή [[CC]YY]MMDDhhmm[.SS] %1 \n';
Blockly.Msg['TOUCH_PROPOSE_OTHER_FORMAT'] = 'ή \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_D'] = 'Αλλαγή χρόνου πρόσβασης και τελευταίας τροποποίησης \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_FORMAT_D'] =
'με προσθήκη ημερομηνίας στη μορφή YYYY-MM-DDThh:mm:SS[.frac][Z (για UTC)] %1';
'Προσθήκη ημερομηνίας στη μορφή YYYY-MM-DDThh:mm:SS[.frac][Z (για UTC)] %1';
Blockly.Msg['TOUCH_TOOLTIP'] =
'Ορίστε την ημερομηνία και ώρα πρόσβασης και τροποποίησης ενός αρχείου. Εάν το αρχείο δεν υπάρχει, δημιουργεί ένα κενό αρχείο.' +
' Οι χρονικές στιγμές μπορούν να δοθούν σε δύο μορφές. Η πρώτη είναι η μορφή [[CC]YY]MMDDhhmm[.SS], όπου:' +
Expand Down
14 changes: 8 additions & 6 deletions public/js/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,16 @@ Blockly.Msg['TEE_HELPURL'] = 'https://www.google.com/';

Blockly.Msg['TOUCH'] = 'Modify file timestamps';
Blockly.Msg['TOUCH_NOT_CREATE_FILE'] =
'Do not create file if it does not exist %1';
Blockly.Msg['TOUCH_CHANGE_ACCESS_TIME'] = 'Change access time %1';
Blockly.Msg['TOUCH_CHANGE_MODIFICATION_TIME'] = 'Change modification time %1';
'Do not create file if it does not exist %1 \n';
Blockly.Msg['TOUCH_CHANGE_ACCESS_TIME'] = 'Change access timestamp to current time %1 \n';
Blockly.Msg['TOUCH_CHANGE_MODIFICATION_TIME'] = 'Change modification timestamp to current time %1 \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_T'] = 'Change the access and modification times to the specified time \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_FORMAT_T'] =
'with date in [[CC]YY]MMDDhhmm[.SS] %1';
Blockly.Msg['TOUCH_PROPOSE_OTHER_FORMAT'] = 'or';
'Add date in [[CC]YY]MMDDhhmm[.SS] %1 \n';
Blockly.Msg['TOUCH_PROPOSE_OTHER_FORMAT'] = 'or \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_D'] = 'Change the access and modification times to the specified time \n';
Blockly.Msg['TOUCH_SPECIFY_TIME_FORMAT_D'] =
'with date in YYYY-MM-DDThh:mm:SS[.frac][Z (UTC)] %1';
'Add date in YYYY-MM-DDThh:mm:SS[.frac][Z (UTC)] %1';
Blockly.Msg['TOUCH_TOOLTIP'] =
'Set the access and modification time of a file. If the file does not exist, it creates an empty file.' +
' Time stamps can be given in two formats. The first format is [[CC]YY]MMDDhhmm[.SS], where:' +
Expand Down
2 changes: 1 addition & 1 deletion public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ document.addEventListener('DOMContentLoaded', () => {

// Populate dropdown with the user's saved workspaces
workspaces.forEach((workspace) => {
if (workspace.workspaceName !== '__autosave__') {
if (workspace.workspaceName !== '__autosave__' && workspace.workspaceName !== 'executedWorkspace') {
const option = document.createElement('option');
option.value = workspace.id; // use the ID as the option value
option.text = workspace.workspaceName; // display the workspace name
Expand Down

0 comments on commit 81b57b4

Please sign in to comment.