([]);
const vListOriginalIndex = ref<{ s: IVoc; k: number }[]>([]);
const vIndex = ref(-1);
@@ -137,6 +141,7 @@ const isEdit = ref(false);
const vEditContent = ref("");
const quizState = reactive({
+ vChosenCats: [] as string[],
isAutoplayAudio: true,
isKoFirst: true,
});
@@ -202,7 +207,9 @@ if (category) {
}
}
-vChosenCats.value = [...vCats.value];
+if (!quizState.vChosenCats.some((c) => vCats.value.includes(c))) {
+ quizState.vChosenCats = [...vCats.value];
+}
watch(
() => quizState.isKoFirst,
@@ -234,7 +241,7 @@ function makeVList() {
});
const newVList = Object.entries(vocabulary)
- .filter(([k]) => vChosenCats.value.includes(k))
+ .filter(([k]) => quizState.vChosenCats.includes(k))
.flatMap(([, vs]) => vs);
vListOriginalIndex.value = newVList.map((s) => ({
@@ -309,14 +316,18 @@ function mark(isRight: boolean) {
}
function updateCats(cat: string) {
- const i = vChosenCats.value.indexOf(cat);
+ const i = quizState.vChosenCats.indexOf(cat);
if (i === -1) {
- vChosenCats.value = [...vChosenCats.value, cat];
+ quizState.vChosenCats = [...quizState.vChosenCats, cat];
} else {
- vChosenCats.value = [...vChosenCats.value.filter((_, j) => j !== i)];
+ quizState.vChosenCats = [
+ ...quizState.vChosenCats.filter((_, j) => j !== i),
+ ];
}
makeVList();
+
+ saveQuizState();
}
async function onVContentSave() {
diff --git a/docs/howtostudykorean/unit-1/14-passive.md b/docs/howtostudykorean/unit-1/14-passive.md
index 9ac8e34..6c1ce98 100644
--- a/docs/howtostudykorean/unit-1/14-passive.md
+++ b/docs/howtostudykorean/unit-1/14-passive.md
@@ -332,7 +332,7 @@ vocabulary:
notes: |
To indicate that you went from the sitting/lying down position to standing, the word "์ผ์ด๋๋ค" (to get up) should be used.
examples:
- - ko: ์ฐ๋ฆฌ๋ ํ ์๊ฐ ๋์ ์ค์ **์** **์์์ด์**
+ - ko: ์ฐ๋ฆฌ๋ ํ ์๊ฐ ๋์ ์ค์ **์ ์์์ด์**
en: We were **standing** in the line for an hour
- ko: ์ ๋ ์ค์ **์**์ ์์๋ฅผ ๊ธฐ๋ค๋ ธ์ด์
en: I **stood** in line and waited for my turn
@@ -351,7 +351,7 @@ vocabulary:
en: to be turned on
notes: The active form of this word is "์ผ๋ค" (to turn on)
examples:
- - ko: ์ปดํจํฐ๊ฐ **์ผ์ ธ** **์์ด์**
+ - ko: ์ปดํจํฐ๊ฐ **์ผ์ ธ ์์ด์**
en: The computer is **(in the state of being) on**
- ko: ๊บผ์ง๋ค
@@ -359,8 +359,8 @@ vocabulary:
en: to be turned off
notes: The active form of this word is "๋๋ค" (to turn off)
examples:
- - ko: TV๊ฐ **๊บผ์ ธ** **์์ด์**
- en: The TV is **(in the state of being)** **off**
+ - ko: TV๊ฐ **๊บผ์ ธ ์์ด์**
+ en: The TV is **(in the state of being) off**
- ko: ๋๋ค
audio: https://www.howtostudykorean.com/wp-content/uploads/2015/11/Lesson14v30.mp3
@@ -388,7 +388,7 @@ vocabulary:
examples:
- ko: ์ ์ ์ฌ์ ์น๊ตฌ๋ ์ ํํ
**ํ(๊ฐ) ๋ฌ์ด์**
en: My girlfriend was **mad** at me
- - ko: ์ ์๋์ ์กด๊ฒฝํ์ง ์์ผ๋ฉด ๋๋ **ํ๊ฐ** **๋ ** **๊ฑฐ์ผ**
+ - ko: ์ ์๋์ ์กด๊ฒฝํ์ง ์์ผ๋ฉด ๋๋ **ํ๊ฐ ๋ ๊ฑฐ์ผ**
en: If you don't respect your teacher, I will be **mad**
- ko: ์ง์ฆ๋๋ค
@@ -407,9 +407,9 @@ vocabulary:
The pronunciation of this word is closer to "๋
ธ์ด๋ค"
The active form of this word is "๋๋ค" (to put down)
examples:
- - ko: ํ์ด ํ์์ **๋์ฌ** **์์ด์**
- en: The pen is **on** the table (**lying** **on** the table)
- - ko: ์ฑ
์์ ์ฑ
๋ช ๊ถ์ด **๋์ฌ** **์์ด์**
+ - ko: ํ์ด ํ์์ **๋์ฌ ์์ด์**
+ en: The pen is **on** the table (**lying on** the table)
+ - ko: ์ฑ
์์ ์ฑ
๋ช ๊ถ์ด **๋์ฌ ์์ด์**
en: There are some books **on** the desk
- ko: ์ด๋ฆฌ๋ค
@@ -417,7 +417,7 @@ vocabulary:
en: to be open
notes: The active form of this word is "์ด๋ค" (to open)
examples:
- - ko: ๋ฌธ์ด **์ด๋ ค** **์์ด์**
+ - ko: ๋ฌธ์ด **์ด๋ ค ์์ด์**
en: The door is **open(ed)**
- ko: ๋ฌธ์ด **์ด๋ ค** ์์ ๊ฒ ๊ฐ์์
en: The door will probably be **open**
@@ -1166,7 +1166,7 @@ To indicate that you went from the sitting/lying down p
Examples:
-- ์ฐ๋ฆฌ๋ ํ ์๊ฐ ๋์ ์ค์ **์** **์์์ด์** = We were **standing** in the line for an hour
+- ์ฐ๋ฆฌ๋ ํ ์๊ฐ ๋์ ์ค์ **์ ์์์ด์** = We were **standing** in the line for an hour
- ์ ๋ ์ค์ **์**์ ์์๋ฅผ ๊ธฐ๋ค๋ ธ์ด์ = I **stood** in line and waited for my turn
@@ -1193,7 +1193,7 @@ The active form of this word is โ์ผ๋คโ (The computer is **(in the state of being) on**
+- ์ปดํจํฐ๊ฐ **์ผ์ ธ ์์ด์** = The computer is **(in the state of being) on**
@@ -1205,7 +1205,7 @@ The active form of this word is โ๋๋คโ (The TV is **(in the state of being)** **off**
+- TV๊ฐ **๊บผ์ ธ ์์ด์** = The TV is **(in the state of being) off**
@@ -1252,7 +1252,7 @@ Example:
Example:
- ์ ์ ์ฌ์ ์น๊ตฌ๋ ์ ํํ
**ํ(๊ฐ) ๋ฌ์ด์** = My girlfriend was **mad** at me
-- ์ ์๋์ ์กด๊ฒฝํ์ง ์์ผ๋ฉด ๋๋ **ํ๊ฐ** **๋ ** **๊ฑฐ์ผ** = If you donโt respect your teacher, I will be **mad**
+- ์ ์๋์ ์กด๊ฒฝํ์ง ์์ผ๋ฉด ๋๋ **ํ๊ฐ ๋ ๊ฑฐ์ผ** = If you donโt respect your teacher, I will be **mad**
@@ -1263,8 +1263,7 @@ Example:
Example:
- ์ ๋ ๊ทธ๊ฐ ๋๋ฌด **์ง์ฆ๋์** = I am **annoyed** at him
-- ์์์ด ๋๋ฌด ๋ฎ์์ ์ฐ๋ฆฌ ์ง์์ ์ค์๋ฅผ ํ๋ฉด **์ง์ฆ์ด ๋์**
- - It is **annoying** showering at my house because the water pressure is too low
+- ์์์ด ๋๋ฌด ๋ฎ์์ ์ฐ๋ฆฌ ์ง์์ ์ค์๋ฅผ ํ๋ฉด **์ง์ฆ์ด ๋์** = It is **annoying** showering at my house because the water pressure is too low
@@ -1282,8 +1281,8 @@ Common Usages:
Examples:
-- ํ์ด ํ์์ **๋์ฌ** **์์ด์** = The pen is **on** the table (**lying** **on** the table)
-- ์ฑ
์์ ์ฑ
๋ช ๊ถ์ด **๋์ฌ** **์์ด์** = There are some books **on** the desk
+- ํ์ด ํ์์ **๋์ฌ ์์ด์** = The pen is **on** the table (**lying on** the table)
+- ์ฑ
์์ ์ฑ
๋ช ๊ถ์ด **๋์ฌ ์์ด์** = There are some books **on** the desk
@@ -1299,7 +1298,7 @@ Common Usages:
Examples:
-- ๋ฌธ์ด **์ด๋ ค** **์์ด์** = The door is **open(ed)**
+- ๋ฌธ์ด **์ด๋ ค ์์ด์** = The door is **open(ed)**
- ๋ฌธ์ด **์ด๋ ค** ์์ ๊ฒ ๊ฐ์์ = The door will probably be **open**