fix: error in quest read (#81)

This commit is contained in:
Lin, Hung-Shin authored and GitHub committed 2023-11-24 12:59:46 +08:00
commit b41e67ee0b
5 files changed
+20 -15

No files matched your search

+1 -1
View File
@@ -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"
>
<h1 class="text-text-primary text-3xl font-black mb-2">{{ title }}</h1>
<div class="text-error inline-flex justify-center items-center xl:hidden">
<div class="text-error inline-flex justify-center items-center md:hidden">
<font-awesome-icon
:icon="['fas', 'circle-exclamation']"
class="px-1 text-sm"
+6 -5
View File
@@ -15,8 +15,8 @@ import { DAG } from '@linux-odyssey/utils'
import api from '../utils/api'
import { NodeImage } from '../img/svg.js'
const marginX = 200
const marginY = 65
const marginX = 500
const marginY = 300
const chartContainer = ref(null)
let chartInstance = null
const fullwidth = window.screen.width
@@ -71,9 +71,10 @@ const genOption = (nodes, edges) => ({
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'
},
},
},
+8
View File
@@ -17,6 +17,14 @@ stages:
hints:
- '!! 請勿使用全形空格 !!'
- id: warning-02
repeatable: true
condition:
command:
- '`'
hints:
- '!! 不需要輸入上下引號 !!'
- id: start
task: 輸入 `echo start` 來開始教程
condition:
+4 -8
View File
@@ -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:
- 很好,你現在知道如何運用相對路徑了。
+1 -1
View File
@@ -68,7 +68,7 @@ stages:
- id: ls-folder
task: 查看 `folder` 資料夾
requirements:
- cat-file
- cat-file1
condition:
pwd:
- ^/home/commander$