From 7a3b6b1cfb22dfc404ad1d14bd661e4b80afd8d7 Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Sun, 3 Dec 2023 01:40:51 +0800 Subject: [PATCH 01/13] - Add auto-complete quest command - Change spec name - Add spec complete all quests - Add Icon (totem version) - Add some id for tests - Add answer.sh for all quests --- app/index.html | 2 +- app/public/icon_totem.svg | 66 +++++++++++++++++++ app/src/components/AuthForm.vue | 5 +- app/src/components/GameHeaderPart.vue | 4 +- quests/cast/answer.sh | 3 + quests/copy/answer.sh | 12 ++++ quests/create/answer.sh | 11 ++++ quests/explore/answer.sh | 8 +++ quests/get-started/answer.sh | 3 + quests/helloworld/answer.sh | 8 +-- quests/move/answer.sh | 12 ++++ quests/path/answer.sh | 8 +++ quests/read/answer.sh | 5 ++ quests/remove/answer.sh | 13 ++++ .../e2e/{helloworld.cy.js => UItests.cy.js} | 46 ++++++------- tests/cypress/e2e/completeQuests.cy.js | 36 ++++++++++ tests/cypress/support/commands.js | 36 ++++++++-- 17 files changed, 241 insertions(+), 37 deletions(-) create mode 100644 app/public/icon_totem.svg create mode 100644 quests/cast/answer.sh create mode 100644 quests/copy/answer.sh create mode 100644 quests/create/answer.sh create mode 100644 quests/explore/answer.sh create mode 100644 quests/get-started/answer.sh create mode 100644 quests/move/answer.sh create mode 100644 quests/path/answer.sh create mode 100644 quests/read/answer.sh create mode 100644 quests/remove/answer.sh rename tests/cypress/e2e/{helloworld.cy.js => UItests.cy.js} (80%) create mode 100644 tests/cypress/e2e/completeQuests.cy.js diff --git a/app/index.html b/app/index.html index 413a207..5cc968a 100644 --- a/app/index.html +++ b/app/index.html @@ -2,7 +2,7 @@ - + Linux Odyssey diff --git a/app/public/icon_totem.svg b/app/public/icon_totem.svg new file mode 100644 index 0000000..ec92301 --- /dev/null +++ b/app/public/icon_totem.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + diff --git a/app/src/components/AuthForm.vue b/app/src/components/AuthForm.vue index 9bc0865..93a9759 100644 --- a/app/src/components/AuthForm.vue +++ b/app/src/components/AuthForm.vue @@ -89,7 +89,9 @@ const handleChange = () => {
-

{{ title }}

+

+ {{ title }} +

{ />