Skip to content

Commit

Permalink
Add the middle level of Entry book to the Help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongJun-Lee committed Jul 18, 2022
1 parent dcfac2c commit bda6965
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
Binary file not shown.
Binary file removed src/main/static/guide/Entry_dasturlash_1-qadami.pdf
Binary file not shown.
Binary file not shown.
5 changes: 4 additions & 1 deletion src/renderer/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Header extends Component<IProps, IState> {
return [
[RendererUtils.getLang('Workspace.block_helper'), 'help_block'],
[RendererUtils.getLang('Workspace.entry_basic_book'), 'help_basic_book'],
[RendererUtils.getLang('Workspace.entry_arduino_book'), 'help_ardu_book'],
[RendererUtils.getLang('Workspace.entry_advance_book'), 'help_advance_book'],
];
} else {
return [
Expand Down Expand Up @@ -223,6 +223,9 @@ class Header extends Component<IProps, IState> {
case 'help_basic_book':
RendererUtils.downloadEntryBasic();
break;
case 'help_advance_book':
RendererUtils.downloadEntryAdvance();
break;
case 'help_ardu_book':
RendererUtils.downloadEntryArduino();
break;
Expand Down
18 changes: 16 additions & 2 deletions src/renderer/helper/rendererUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,26 @@ export default class {

static downloadEntryBasic() {
this.showSaveDialog({
defaultPath: "Entry_dasturlash_1-qadami.pdf",
defaultPath: "Entry_dasturlash_1-qadam.pdf",
filters: [{ name: '*.pdf', extensions: ['pdf'] }],
}, (filePath) => {
if (filePath) {
IpcRendererHelper.staticDownload(
['guide', "Entry_dasturlash_1-qadami.pdf"],
['guide', "Entry_dasturlash_1-qadam.pdf"],
filePath,
);
}
});
}

static downloadEntryAdvance() {
this.showSaveDialog({
defaultPath: "Entry_dasturlash_2-qadam.pdf",
filters: [{ name: '*.pdf', extensions: ['pdf'] }],
}, (filePath) => {
if (filePath) {
IpcRendererHelper.staticDownload(
['guide', "Entry_dasturlash_2-qadam.pdf"],
filePath,
);
}
Expand Down
9 changes: 5 additions & 4 deletions src/renderer/resources/lang/uz.json
Original file line number Diff line number Diff line change
Expand Up @@ -6529,14 +6529,14 @@
"check_browser_error": "This block is not compatible to IE/Safari/iOS",
"check_browser_error_video": "This block is not compatible to IE / iOS.",
"check_microphone_error": "There is no microphone connected to the computer",
"check_webcam_error": "There is no camera connected to the computer",
"context_download": "Komputerga yuklab qo'yish",
"check_webcam_error": "Kompyuterda ulanadigan kamera yo'q",
"context_download": "Kompyuterga yuklab qo'yish",
"context_duplicate": "Nusxalash",
"context_remove": "O'chirish",
"context_rename": "Nomi tahrirlash",
"coordinate": "Coord",
"create_function": "Create Function",
"direction": "Harakat yo'nalish ",
"direction": "Harakat yo'nalish(°)",
"drawing": "Paint",
"enter_list_name": "",
"enter_name": "Enter a new name",
Expand Down Expand Up @@ -6609,7 +6609,7 @@
"remove_object_msg": "o'chirildi",
"removed_msg": "was successfully removed",
"rotate_method": "Aylanish uslubi",
"rotation": "Aylanish",
"rotation": "Aylanish(°)",
"run": "Boshlash",
"saved": "Saqlash",
"saved_msg": "yaxshi saqlash bo'lgan",
Expand Down Expand Up @@ -6750,6 +6750,7 @@
"robot_guide": "Robot Guide",
"python_guide": "Entry Python qo'llanmasi",
"entry_basic_book": "Entry boshlang'ich kitobi",
"entry_advance_book": "Entry o'rtancha kitobi",
"entry_arduino_book": "Entry Arduino kitobi",
"show_list_workspace": "Ro'yxati ko'rsatish",
"list_create_normal": "Umumiy ro'yxati sifatidan foydalanish\n(Loyihada saqlanadi)",
Expand Down

0 comments on commit bda6965

Please sign in to comment.