From 9ac3ce3275c9e1e65a449b879a1cd0e25cabfdf4 Mon Sep 17 00:00:00 2001 From: dima-safin-2025 Date: Fri, 9 Aug 2024 15:18:35 +0800 Subject: [PATCH 1/5] fix: a broken document link and a typo in this document. --- book/book/ch03-00-domain-modeling.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/book/ch03-00-domain-modeling.html b/book/book/ch03-00-domain-modeling.html index 5f304ed..2c63e2b 100644 --- a/book/book/ch03-00-domain-modeling.html +++ b/book/book/ch03-00-domain-modeling.html @@ -185,9 +185,9 @@

Understanding principles of domain modeling +
  • Understanding principles of domain modeling
  • Writing the user journey for your project
  • -
  • Creating an archictual diagram to model your project's domain
  • +
  • Creating an architectural diagram to model your project's domain
  • From df0877ad8a6b8f7c8c5e7675ef5e44238dcc6133 Mon Sep 17 00:00:00 2001 From: dima-safin-2025 Date: Fri, 9 Aug 2024 16:21:21 +0800 Subject: [PATCH 2/5] fix: a broken document link in this document. --- book/src/ch05-00-custom-types-and-generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/ch05-00-custom-types-and-generics.md b/book/src/ch05-00-custom-types-and-generics.md index 289a3f4..b87337d 100644 --- a/book/src/ch05-00-custom-types-and-generics.md +++ b/book/src/ch05-00-custom-types-and-generics.md @@ -10,4 +10,4 @@ Through real-world examples, you'll develop a solid foundation in programming wi - [Getter and Setter Functions](ch05-02-getter-functions.md) - [Generics Introduction](ch05-03-generics-intro.md) - [Generics to Constrain Abilities](ch05-04-generics-abilities.md) -- [Generics with Multiple Type Parameters](ch05-05-generics-with-multiple-types.md) +- [Generics with Multiple Type Parameters](ch05-04-generics-with-multiple-types.md) From a740ef81c806ff73da7b78546bf2f8da9348a421 Mon Sep 17 00:00:00 2001 From: dima-safin-2025 Date: Fri, 9 Aug 2024 16:40:28 +0800 Subject: [PATCH 3/5] style: add semicolons to js code for consistency --- book/book/ch00-00-introduction.html | 4 ++-- book/book/ch01-00-history-of-move.html | 4 ++-- book/book/ch01-01-the-language.html | 4 ++-- book/book/ch01-02-dispersion-of-move.html | 4 ++-- book/book/ch01-03-enter-movement.html | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/book/book/ch00-00-introduction.html b/book/book/ch00-00-introduction.html index 2e16bf9..3f95dd1 100644 --- a/book/book/ch00-00-introduction.html +++ b/book/book/ch00-00-introduction.html @@ -63,10 +63,10 @@ try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } if (theme === null || theme === undefined) { theme = default_theme; } var html = document.querySelector('html'); - html.classList.remove('light') + html.classList.remove('light'); html.classList.add(theme); var body = document.querySelector('body'); - body.classList.remove('no-js') + body.classList.remove('no-js'); body.classList.add('js'); diff --git a/book/book/ch01-00-history-of-move.html b/book/book/ch01-00-history-of-move.html index d688e65..af96e2e 100644 --- a/book/book/ch01-00-history-of-move.html +++ b/book/book/ch01-00-history-of-move.html @@ -63,10 +63,10 @@ try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } if (theme === null || theme === undefined) { theme = default_theme; } var html = document.querySelector('html'); - html.classList.remove('light') + html.classList.remove('light'); html.classList.add(theme); var body = document.querySelector('body'); - body.classList.remove('no-js') + body.classList.remove('no-js'); body.classList.add('js'); diff --git a/book/book/ch01-01-the-language.html b/book/book/ch01-01-the-language.html index ea9c10b..9616169 100644 --- a/book/book/ch01-01-the-language.html +++ b/book/book/ch01-01-the-language.html @@ -63,10 +63,10 @@ try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } if (theme === null || theme === undefined) { theme = default_theme; } var html = document.querySelector('html'); - html.classList.remove('light') + html.classList.remove('light'); html.classList.add(theme); var body = document.querySelector('body'); - body.classList.remove('no-js') + body.classList.remove('no-js'); body.classList.add('js'); diff --git a/book/book/ch01-02-dispersion-of-move.html b/book/book/ch01-02-dispersion-of-move.html index 67ead08..24707b0 100644 --- a/book/book/ch01-02-dispersion-of-move.html +++ b/book/book/ch01-02-dispersion-of-move.html @@ -63,10 +63,10 @@ try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } if (theme === null || theme === undefined) { theme = default_theme; } var html = document.querySelector('html'); - html.classList.remove('light') + html.classList.remove('light'); html.classList.add(theme); var body = document.querySelector('body'); - body.classList.remove('no-js') + body.classList.remove('no-js'); body.classList.add('js'); diff --git a/book/book/ch01-03-enter-movement.html b/book/book/ch01-03-enter-movement.html index 1c1dd78..68ea2d4 100644 --- a/book/book/ch01-03-enter-movement.html +++ b/book/book/ch01-03-enter-movement.html @@ -63,10 +63,10 @@ try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } if (theme === null || theme === undefined) { theme = default_theme; } var html = document.querySelector('html'); - html.classList.remove('light') + html.classList.remove('light'); html.classList.add(theme); var body = document.querySelector('body'); - body.classList.remove('no-js') + body.classList.remove('no-js'); body.classList.add('js'); From a06247ed13fa2143d9910f503dc4745f25b8c7c3 Mon Sep 17 00:00:00 2001 From: dima-safin-2025 Date: Fri, 9 Aug 2024 16:51:24 +0800 Subject: [PATCH 4/5] fix: a broken document link in ch05-00-custom-types-and-generics.html --- book/book/ch05-00-custom-types-and-generics.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/book/ch05-00-custom-types-and-generics.html b/book/book/ch05-00-custom-types-and-generics.html index df57962..7afd2b2 100644 --- a/book/book/ch05-00-custom-types-and-generics.html +++ b/book/book/ch05-00-custom-types-and-generics.html @@ -190,7 +190,7 @@

    Getter and Setter Functions
  • Generics Introduction
  • Generics to Constrain Abilities
  • -
  • Generics with Multiple Type Parameters
  • +
  • Generics with Multiple Type Parameters
  • From 434d098b4f753c982581f7915d34e7c6a0ce4b77 Mon Sep 17 00:00:00 2001 From: dima-safin-2025 Date: Fri, 9 Aug 2024 17:01:52 +0800 Subject: [PATCH 5/5] refactor: move 'li' variable declaration outside of switch cases --- book/book/book.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/book/book/book.js b/book/book/book.js index aa12e7e..0737a08 100644 --- a/book/book/book.js +++ b/book/book/book.js @@ -408,7 +408,7 @@ function playground_text(playground, hidden = true) { document.addEventListener('keydown', function (e) { if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) { return; } if (!themePopup.contains(e.target)) { return; } - + var li = document.activeElement.parentElement; switch (e.key) { case 'Escape': e.preventDefault(); @@ -416,14 +416,12 @@ function playground_text(playground, hidden = true) { break; case 'ArrowUp': e.preventDefault(); - var li = document.activeElement.parentElement; if (li && li.previousElementSibling) { li.previousElementSibling.querySelector('button').focus(); } break; case 'ArrowDown': e.preventDefault(); - var li = document.activeElement.parentElement; if (li && li.nextElementSibling) { li.nextElementSibling.querySelector('button').focus(); }