Skip to content

simonwanggggggg/github-scout

Repository files navigation

github_scout

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VS Code + Vue (Official) (and disable Vetur).

Recommended Browser Setup

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
npm run test:e2e
# Runs the tests only on Chromium
npm run test:e2e -- --project=chromium
# Runs the tests of a specific file
npm run test:e2e -- tests/example.spec.ts
# Runs the tests in debug mode
npm run test:e2e -- --debug

Lint with ESLint

npm run lint

Homework Submission - Q&A

問題1:你問了AI哪個問題來搞懂他的程式碼? 回答: 我問了「哪一行程式碼負責記住我打的文字?」這個問題來理解程式碼如何追蹤使用者輸入。

問題2:AI給了你什麼比喻讓你聽懂了 回答: AI給我了「盒子」的比喻 - 說明Vue的響應式系統就像一個盒子,當你把東西放進盒子時,畫面會自動更新顯示盒子裡的內容。

問題3:你是用哪一行指令來控制這行字『什麼時該出現』的? 回答: 我用了第42行的程式碼來控制「查無此人」什麼時候該出現:<div v-else-if="searchText && !userFound" class="not-found"> 這行意思是只有當輸入框有值且找不到使用者時才會顯示這個訊息。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors