From 76a39add29ff203e0e8ca5050659954fd7e2a362 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Fri, 24 Nov 2023 11:54:30 +0800 Subject: [PATCH 1/4] fix: error in quest `read` --- quests/read/game.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quests/read/game.yml b/quests/read/game.yml index 439914f..ad317bc 100644 --- a/quests/read/game.yml +++ b/quests/read/game.yml @@ -68,7 +68,7 @@ stages: - id: ls-folder task: 查看 `folder` 資料夾 requirements: - - cat-file + - cat-file1 condition: pwd: - ^/home/commander$ From f008fb9f6082577b4f38fe802f245d722ccad295 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Fri, 24 Nov 2023 12:49:17 +0800 Subject: [PATCH 2/4] modify quest map --- app/src/components/AuthForm.vue | 2 +- app/src/components/QuestMap.vue | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/components/AuthForm.vue b/app/src/components/AuthForm.vue index ad3d1a6..9bc0865 100644 --- a/app/src/components/AuthForm.vue +++ b/app/src/components/AuthForm.vue @@ -90,7 +90,7 @@ const handleChange = () => { class="bg-bg border-8 border-bg-primary flex flex-1 flex-col items-center justify-center rounded-3xl p-10" >

{{ title }}

-
+
({ symbol: () => { return NodeImage }, - symbolSize: [fullwidth / 10, fullwidth / 25], + symbolSize: [fullwidth / 13, fullwidth / 30], roam: 'move', - zoom: 1, + zoom: 1.5, + center: ['150%', '50%'], label: { show: true, fontSize: fullwidth / 90, @@ -103,7 +104,7 @@ const genOption = (nodes, edges) => ({ if (unlocked) { return '#ADADB5' } - return '454552' + return '#505050' }, }, }, From d712925d0f45962446ec148bf67c4cf2bb78d126 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Fri, 24 Nov 2023 12:56:57 +0800 Subject: [PATCH 3/4] modify path --- quests/path/game.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quests/path/game.yml b/quests/path/game.yml index b01937f..0aedf6c 100644 --- a/quests/path/game.yml +++ b/quests/path/game.yml @@ -64,14 +64,12 @@ stages: - ➤ 請輸入 `cd ../folder2` 來進入 `folder2` 資料夾。 - id: cd-folder2 - task: 用指定方式進入 `folder2` 資料夾 + task: 進入 `folder2` 資料夾 requirements: - cd-folder1 condition: pwd: - ^/home/commander/folder2$ - command: - - ^cd \.\./folder2$ exceptions: - condition: not: @@ -95,10 +93,8 @@ stages: requirements: - cd-folder2 condition: - pwd: - - ^/home/commander/folder2$ - command: - - ^ls \.\.\/folder1$ + output: + - file1.txt exceptions: - condition: not: @@ -107,7 +103,7 @@ stages: responses: - type: narrative content: - - 請先回到 `folder2` 資料夾,並用指定的方式查看 `folder1` 資料夾的內容。 + - 進到 `folder1` 資料夾並用 `ls` 查看內容。 responses: - content: - 很好,你現在知道如何運用相對路徑了。 From 50a0bbbab1eec2da275517f2f276d76f6c8d0abf Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Fri, 24 Nov 2023 12:59:09 +0800 Subject: [PATCH 4/4] add warning --- quests/get-started/game.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quests/get-started/game.yml b/quests/get-started/game.yml index edf623d..3d09d66 100644 --- a/quests/get-started/game.yml +++ b/quests/get-started/game.yml @@ -17,6 +17,14 @@ stages: hints: - '!! 請勿使用全形空格 !!' + - id: warning-02 + repeatable: true + condition: + command: + - '`' + hints: + - '!! 不需要輸入上下引號 !!' + - id: start task: 輸入 `echo start` 來開始教程 condition: