From ff66c17940cc26cf36d02b066224332a669f69bb Mon Sep 17 00:00:00 2001
From: Philipp Stadler <hello@phstadler.com>
Date: Wed, 24 Jul 2024 17:45:22 +0200
Subject: [PATCH] feat!: make all cards except speak in moloashi optional

BREAKING CHANGE: need to set the new card feature flags if needed
---
 src/templates/molaoshi/.template-spec.yaml                 | 7 +++++--
 src/templates/molaoshi/hear/back.html                      | 2 +-
 src/templates/molaoshi/hear/front.html                     | 4 ++--
 src/templates/molaoshi/identify_radical/back.html          | 2 +-
 .../molaoshi/identify_radical_traditional/back.html        | 2 +-
 src/templates/molaoshi/read_hanzi/back.html                | 2 +-
 src/templates/molaoshi/read_hanzi/front.html               | 4 ++--
 src/templates/molaoshi/read_hanzi_traditional/back.html    | 2 +-
 src/templates/molaoshi/read_pinyin/back.html               | 2 +-
 src/templates/molaoshi/read_pinyin/front.html              | 4 ++--
 src/templates/molaoshi/speak/back.html                     | 2 +-
 src/templates/molaoshi/write/back.html                     | 2 +-
 src/templates/molaoshi/write_traditional/back.html         | 2 +-
 13 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/src/templates/molaoshi/.template-spec.yaml b/src/templates/molaoshi/.template-spec.yaml
index bea2a30..5412d4c 100644
--- a/src/templates/molaoshi/.template-spec.yaml
+++ b/src/templates/molaoshi/.template-spec.yaml
@@ -1,4 +1,4 @@
-template_version: 2024-07-22 10:00:00+00:00
+template_version: 2024-07-24 17:00:00+00:00
 
 note_type:
   id: 2024-02-20 12:00:00+00:00
@@ -24,6 +24,9 @@ note_type:
   - Lesen (繁體字) anlegen
   - Credits
   - Schreiben (繁體字) anlegen
+  - Lesen (Pīnyīn) anlegen
+  - Lesen (简体字) anlegen
+  - Hören anlegen
 
 card_types:
 - name: Hören
@@ -47,4 +50,4 @@ card_types:
 
 resource_paths:
 - '{{BUILD_PREFIX}}hanzi-data'
-- '{{BUILD_PREFIX}}KA_TEMPLATES_NOTICE.js'
+- '{{BUILD_PREFIX}}KA_TEMPLATES_NOTICE_DE.js'
diff --git a/src/templates/molaoshi/hear/back.html b/src/templates/molaoshi/hear/back.html
index fe25e69..1bee9f5 100644
--- a/src/templates/molaoshi/hear/back.html
+++ b/src/templates/molaoshi/hear/back.html
@@ -61,7 +61,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/hear/front.html b/src/templates/molaoshi/hear/front.html
index 6d7b05d..f0d0a5a 100644
--- a/src/templates/molaoshi/hear/front.html
+++ b/src/templates/molaoshi/hear/front.html
@@ -1,4 +1,4 @@
-{{#Standardaussprache}}
+{{#Hören anlegen}}{{#Standardaussprache}}
 <style>
   @import url(../../../components/global.css);
 </style>
@@ -42,4 +42,4 @@
 <script type="module">
   import '../../../components/front'
 </script>
-{{/Standardaussprache}}
\ No newline at end of file
+{{/Standardaussprache}}{{/Hören anlegen}}
\ No newline at end of file
diff --git a/src/templates/molaoshi/identify_radical/back.html b/src/templates/molaoshi/identify_radical/back.html
index f9830e1..62482d5 100644
--- a/src/templates/molaoshi/identify_radical/back.html
+++ b/src/templates/molaoshi/identify_radical/back.html
@@ -28,7 +28,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/identify_radical_traditional/back.html b/src/templates/molaoshi/identify_radical_traditional/back.html
index 315c6ec..d8fd777 100644
--- a/src/templates/molaoshi/identify_radical_traditional/back.html
+++ b/src/templates/molaoshi/identify_radical_traditional/back.html
@@ -28,7 +28,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/read_hanzi/back.html b/src/templates/molaoshi/read_hanzi/back.html
index 4039302..2a0dc05 100644
--- a/src/templates/molaoshi/read_hanzi/back.html
+++ b/src/templates/molaoshi/read_hanzi/back.html
@@ -72,7 +72,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/read_hanzi/front.html b/src/templates/molaoshi/read_hanzi/front.html
index 2238436..41f58e5 100644
--- a/src/templates/molaoshi/read_hanzi/front.html
+++ b/src/templates/molaoshi/read_hanzi/front.html
@@ -1,4 +1,4 @@
-{{#简体字}}
+{{#Lesen (简体字) anlegen}}{{#简体字}}
 <style>
   @import url(../../../components/global.css);
 </style>
@@ -36,4 +36,4 @@
 <script type="module">
   import '../../../components/front'
 </script>
-{{/简体字}}
\ No newline at end of file
+{{/简体字}}{{/Lesen (简体字) anlegen}}
\ No newline at end of file
diff --git a/src/templates/molaoshi/read_hanzi_traditional/back.html b/src/templates/molaoshi/read_hanzi_traditional/back.html
index ad1accf..f1d8e57 100644
--- a/src/templates/molaoshi/read_hanzi_traditional/back.html
+++ b/src/templates/molaoshi/read_hanzi_traditional/back.html
@@ -72,7 +72,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/read_pinyin/back.html b/src/templates/molaoshi/read_pinyin/back.html
index c892d71..ea3b594 100644
--- a/src/templates/molaoshi/read_pinyin/back.html
+++ b/src/templates/molaoshi/read_pinyin/back.html
@@ -77,7 +77,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/read_pinyin/front.html b/src/templates/molaoshi/read_pinyin/front.html
index 7674257..c0fd305 100644
--- a/src/templates/molaoshi/read_pinyin/front.html
+++ b/src/templates/molaoshi/read_pinyin/front.html
@@ -1,4 +1,4 @@
-{{#Pīnyīn}}
+{{#Lesen (Pīnyīn) anlegen}}{{#Pīnyīn}}
 <style>
   @import url(../../../components/global.css);
 </style>
@@ -31,4 +31,4 @@
 <script type="module">
   import '../../../components/front'
 </script>
-{{/Pīnyīn}}
\ No newline at end of file
+{{/Pīnyīn}}{{/Lesen (Pīnyīn) anlegen}}
\ No newline at end of file
diff --git a/src/templates/molaoshi/speak/back.html b/src/templates/molaoshi/speak/back.html
index 5fc56e8..32d29dd 100644
--- a/src/templates/molaoshi/speak/back.html
+++ b/src/templates/molaoshi/speak/back.html
@@ -77,7 +77,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/write/back.html b/src/templates/molaoshi/write/back.html
index 66e7c23..cfb2777 100644
--- a/src/templates/molaoshi/write/back.html
+++ b/src/templates/molaoshi/write/back.html
@@ -77,7 +77,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
diff --git a/src/templates/molaoshi/write_traditional/back.html b/src/templates/molaoshi/write_traditional/back.html
index adcbcd2..051d11c 100644
--- a/src/templates/molaoshi/write_traditional/back.html
+++ b/src/templates/molaoshi/write_traditional/back.html
@@ -77,7 +77,7 @@
     </summary>
 
     {{Credits}}
-    <div notice-file="KA_TEMPLATES_NOTICE"></div>
+    <div notice-file="KA_TEMPLATES_NOTICE_DE"></div>
   </details>
 </div>
 
-- 
GitLab