Skip to content

Commit

Permalink
Merge pull request #3 from gdsc-ncku/yeeway
Browse files Browse the repository at this point in the history
Set up vue-router and add some data
  • Loading branch information
jason810496 committed Jan 13, 2024
2 parents dcb1a12 + 989ba4a commit e45acc3
Show file tree
Hide file tree
Showing 23 changed files with 559 additions and 86 deletions.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# BikeFestival17th-Frontend

## 開發流程
### branch
- `main`: 主要分支,用來部署
- `xxx`: 各自開發分支,開發完成後合併到 `main`
> 例如:`jason` , `jimmy` , `jerry` ... ( 自己的代號 )<br>
> **請勿直接在 `main` 上開發**
### dependencies
- `npm` or `yarn`

Expand All @@ -17,16 +11,19 @@ cd BikeFestival17th-Frontend
yarn install
yarn dev
```
### 開 branch

### branch
- `main`: 主要分支,用來部署
- `xxx`: 各自開發分支,開發完成後合併到 `main`
> 例如:`jason` , `jimmy` , `jerry` ... ( 自己的代號 ),**請勿直接在 `main` 上開發**
- 開 branch
```bash
git checkout -b <branch-name> # 這邊 <branch-name> 就直接用自己的名字
```
> 目前有設好 Github Action,會自動部署 `main` 的內容到 `gh-pages` 分支
## 合併流程
看習慣使用 :
- pull request
- 在 local merge 完 push 回 origin
- 在自己的 branch 開發完 push 回 origin
- 開一個 Pull Request,如果只是一些小小的改動可以自己直接 merge 到 main。如果是較大的改動要給其他成員 code review 的話就在 discord 通知一聲,沒問題的話就再 merge。


> 看自己習慣使用哪種方式 <br>
> 目前有設好 Github Action ~ <br>
> 會自動部署 `main` 的內容到 `gh-pages` 分支
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/bike.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
<title>成大單車節 2024</title>
</head>
<body>
<div id="app"></div>
Expand Down
22 changes: 21 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"dependencies": {
"autoprefixer": "^10.4.16",
"postcss": "^8.4.33",
"vue": "^3.3.8"
"vue": "^3.3.8",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.0",
Expand Down
3 changes: 3 additions & 0 deletions public/bike.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

28 changes: 12 additions & 16 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<script setup>
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://vuejs.org/" target="_blank">
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
</a>
</div>
<HelloWorld msg="Vite + Vue" />
<nav>
<ol>
<li><router-link to="/">首頁</router-link></li>
<li><router-link to="/about">關於單車節</router-link></li>
<li><router-link to="/info">參加資訊</router-link></li>
<li><router-link to="/activities">主題活動</router-link></li>
<li><router-link to="/forum">知識論壇</router-link></li>
<li><router-link to="/partners">合作夥伴</router-link></li>
<li><router-link to="/souvenir">紀念品預購</router-link></li>
</ol>
</nav>
<router-view></router-view>
</template>

<style>
@import './style.css';
</style>
1 change: 0 additions & 1 deletion src/assets/vue.svg

This file was deleted.

46 changes: 0 additions & 46 deletions src/components/HelloWorld.vue

This file was deleted.

Loading

0 comments on commit e45acc3

Please sign in to comment.