Skip to content

Commit cee3d28

Browse files
first commit
1 parent 9f775bd commit cee3d28

File tree

9 files changed

+608
-44
lines changed

9 files changed

+608
-44
lines changed

.nuxt/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import NuxtError from './components/nuxt-error.vue'
66
import NuxtLoading from './components/nuxt-loading.vue'
77
import NuxtBuildIndicator from './components/nuxt-build-indicator'
88

9-
import '../node_modules/@nuxtjs/tailwindcss/dist/runtime/tailwind.css'
9+
import '..\\node_modules\\@nuxtjs\\tailwindcss\\dist\\runtime\\tailwind.css'
1010

1111
import _6f6c098b from './layouts/default.vue'
1212

.nuxt/components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { default as TodoButton } from '../../components/TodoButton.vue'
1+
export { default as TodoButton } from '../..\\components\\TodoButton.vue'
22

33
// nuxt/nuxt.js#8607
44
function wrapFunctional(options) {

.nuxt/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { setContext, getLocation, getRouteData, normalizeError } from './utils'
1212

1313
/* Plugins */
1414

15-
import nuxt_plugin_plugin_c1c57276 from 'nuxt_plugin_plugin_c1c57276' // Source: ./components/plugin.js (mode: 'all')
15+
import nuxt_plugin_plugin_d762bd46 from 'nuxt_plugin_plugin_d762bd46' // Source: .\\components\\plugin.js (mode: 'all')
1616

1717
// Component: <ClientOnly>
1818
Vue.component(ClientOnly.name, ClientOnly)
@@ -178,8 +178,8 @@ async function createApp(ssrContext, config = {}) {
178178
}
179179
// Plugin execution
180180

181-
if (typeof nuxt_plugin_plugin_c1c57276 === 'function') {
182-
await nuxt_plugin_plugin_c1c57276(app.context, inject)
181+
if (typeof nuxt_plugin_plugin_d762bd46 === 'function') {
182+
await nuxt_plugin_plugin_d762bd46(app.context, inject)
183183
}
184184

185185
// Lock enablePreview in context

.nuxt/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { normalizeURL, decode } from 'ufo'
44
import { interopDefault } from './utils'
55
import scrollBehavior from './router.scrollBehavior.js'
66

7-
const _27e5ec3a = () => interopDefault(import('../pages/index.vue' /* webpackChunkName: "pages/index" */))
7+
const _3e038bec = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages/index" */))
88

99
const emptyFn = () => {}
1010

@@ -19,7 +19,7 @@ export const routerOptions = {
1919

2020
routes: [{
2121
path: "/",
22-
component: _27e5ec3a,
22+
component: _3e038bec,
2323
name: "index"
2424
}],
2525

.nuxt/routes.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
{
33
"name": "index",
44
"path": "/",
5-
"component": "/Users/minato/designium/dezban-frontend-skill-check/skill-test/sample/pages/index.vue",
6-
"chunkName": "pages/index",
7-
"_name": "_27e5ec3a"
5+
"component": "C:\\\\Users\\\\AU-Univ\\\\dezban-frontend-skill-check\\\\pages\\\\index.vue",
6+
"chunkName": "pages/index"
87
}
98
]

README.md

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
# TODOアプリ
1+
# TODO アプリ
2+
23
## 概要
3-
Nuxt.jsとTypeScriptを用いてでTODOアプリを実装する。
4+
5+
Nuxt.js と TypeScript を用いてで TODO アプリを実装する。
46

57
<img src="./static/sample.png" width="80%">
68

79
## 機能一覧
10+
811
- ヘッダー
912
- タイトルを中央寄せで表示
1013
- 入力フォーム
@@ -17,92 +20,112 @@ Nuxt.jsとTypeScriptを用いてでTODOアプリを実装する。
1720
- 削除ボタンクリックでタスクを削除
1821

1922
## 補足
23+
2024
- ボタンはコンポーネント化してください
21-
- データ管理はvuexを用いても、propsによる受け渡しでもどちらでも構いません
22-
- vueファイル内の変数等は型をつけてください
23-
- UIに関しては自由です
25+
- データ管理は vuex を用いても、props による受け渡しでもどちらでも構いません
26+
- vue ファイル内の変数等は型をつけてください
27+
- UI に関しては自由です
2428
- コミットの粒度やコミットメッセージはチーム開発を意識したものにしてください。
2529
- PC/スマートフォンの両方でデザインが崩れないようにしてください(検証ツールにて確認)
2630
- 技術的な面でわからないものがあれば[こちら](https://github.com/TheDesignium/dezban-frontend-skill-check/wiki/%E5%8F%82%E8%80%83%E8%A8%98%E4%BA%8B)に目を通してみてください。
2731

2832
## 技術スタック
29-
- フレームワーク: Nuxt.js 2系
30-
- 言語: TypeScript
31-
- CSSフレームワーク: TailwindCSS
3233

34+
- フレームワーク: Nuxt.js 2 系
35+
- 言語: TypeScript
36+
- CSS フレームワーク: TailwindCSS
3337

3438
## 実行手順
39+
3540
### 1.環境構築をする
41+
3642
- [こちら](#環境構築)を参考に行ってください
43+
3744
### 2.作業ブランチを作成
38-
branch名は`intern/github名/年月/todo-list`としてください。
45+
46+
branch 名は`intern/github名/年月/todo-list`としてください。
3947

4048
ex) `intern/mnt3710/202401/todo-list`
49+
4150
```bash
4251
$ git checkout -b ブランチ名
4352
```
53+
4454
### 3.作業着手
45-
[機能一覧](#機能一覧)を参考にtodoアプリを作成してください。
4655

47-
### 4.PR作成
48-
PullRequestを作成する際は以下の項目を確認してください。
56+
[機能一覧](#機能一覧)を参考に todo アプリを作成してください。
57+
58+
### 4.PR 作成
59+
60+
PullRequest を作成する際は以下の項目を確認してください。
4961

5062
- [ ] コンポーネントファイルやイメージファイルを参照するときは@ではなく~になっているか。
5163
- [ ] `console.log()`がコード内に残っていないか。
5264
- [ ] `yarn lintfix`を実行し、フォーマットが整っているか。
5365
- [ ] PR に正常に動作していることが確認できる画像、または動画を入れているか。
5466

55-
5667
## 環境構築
68+
5769
既にインストールされているものは飛ばしてください。
5870

59-
また、macOSの場合の環境構築のため、windowsを使っている方は参考にして適宜調べてください
71+
また、macOS の場合の環境構築のため、windows を使っている方は参考にして適宜調べてください
6072

61-
### 1. vscodeのインストール
62-
[こちら](https://chigusa-web.com/blog/vs-code-install/)からvscodeのインストールをする
73+
### 1. vscode のインストール
74+
75+
[こちら](https://chigusa-web.com/blog/vs-code-install/)から vscode のインストールをする
6376

6477
### 2. リポジトリをローカルに持ってくる
65-
github上にあるスキルチェックのテンプレートを自分のpcに持ってくる。
78+
79+
github 上にあるスキルチェックのテンプレートを自分の pc に持ってくる。
6680

6781
```bash
6882
$ git clone https://github.com/TheDesignium/dezban-frontend-skill-check.git
6983

7084
$ cd dezban-frontend-skill-check
7185
```
72-
### 3. nvmのインストール
86+
87+
### 3. nvm のインストール
88+
7389
```bash
7490
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
7591
```
7692

77-
### 4. nodeのインストール
93+
### 4. node のインストール
94+
7895
```bash
7996
$ nvm install v16.14.1
8097
```
98+
8199
正常にインストールされていたら以下のようにバージョンが表示される。
100+
82101
```bash
83102
$ node --version
84103
v16.19.0
85104
$ npm --version
86105
8.19.3
87106
```
88-
※ vscode上のターミナルで作業していて、versionが出てこない場合はvscodeを再起動する
89107

90-
### 5. yarnのインストール
108+
※ vscode 上のターミナルで作業していて、version が出てこない場合は vscode を再起動する
109+
110+
### 5. yarn のインストール
111+
91112
```bash
92113
$ npm install -g yarn
93114
$ yarn -v
94115
```
95116

96-
### 6. localhostを立ち上げる
117+
### 6. localhost を立ち上げる
118+
97119
```bash
98120
$ yarn
99121
$ yarn dev
100122
```
123+
101124
<img src="./static/localhost.png" width="80%">
102125

103126
http://localhost:3000 を開く。
104127

105-
## vscodeの推奨拡張機能
128+
## vscode の推奨拡張機能
106129

107130
- Vetur
108131
- ESlint
@@ -113,9 +136,9 @@ http://localhost:3000 を開く。
113136

114137
### nuxt not found
115138

116-
package.jsonを確認(github上と同じであることを確認)
139+
package.json を確認(github 上と同じであることを確認)
117140

118-
githubと違う内容であれば`git pull origin main`を実行
141+
github と違う内容であれば`git pull origin main`を実行
119142

120143
再度`yarn`を実行
121144

components/TodoButton.vue

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
<template>
2-
<div></div>
2+
<div>
3+
<button class="text-700 border-2 border-500" @click="clickAction(todo)">
4+
{{ title }}
5+
</button>
6+
</div>
37
</template>
48

59
<script lang="ts">
610
import Vue from 'vue'
7-
export default Vue.extend({})
11+
export default Vue.extend({
12+
props: {
13+
title: {
14+
type: String,
15+
default: '',
16+
},
17+
clickAction: {
18+
type: Function,
19+
},
20+
todo: {
21+
type: String,
22+
default: '',
23+
},
24+
},
25+
})
826
</script>

0 commit comments

Comments
 (0)