Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Commit 8e473d6

Browse files
committed
update gitignore, fix live-reload and add enter event to signin inputs
1 parent 59fc8f8 commit 8e473d6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules/**
22
/dist/
33
src/aws-exports.js
4+
.awsmobilejs
45
npm-debug.log*
56
yarn-debug.log*
67
yarn-error.log*

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "Richard Zhang <richardzcode@gmail.com>",
77
"private": true,
88
"scripts": {
9-
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9+
"dev": "webpack-dev-server --progress --config build/webpack.dev.conf.js",
1010
"start": "npm run dev",
1111
"test": "npm run unit",
1212
"lint": "eslint --ext .js,.vue src test/unit/specs",
@@ -72,4 +72,4 @@
7272
"last 2 versions",
7373
"not ie <= 8"
7474
]
75-
}
75+
}

src/amplify/components/auth/SignIn.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
<h1 :style="theme.header" v-if="confirmView">Confirm Sign In</h1>
1818
<div v-if="!confirmView">
1919
<div :style="theme.inputRow">
20-
<input :style="theme.input" v-model="username" placeholder="Username" autofocus />
20+
<input :style="theme.input" v-model="username" placeholder="Username" autofocus v-on:keyup.enter="signIn" />
2121
</div>
2222
<div :style="theme.inputRow">
23-
<input :style="theme.input" v-model="password" type="password" placeholder="Password" />
23+
<input :style="theme.input" v-model="password" type="password" placeholder="Password" v-on:keyup.enter="signIn" />
2424
</div>
2525
<div :style="theme.actionRow">
2626
<button :style="theme.action" v-on:click="signIn" :disabled="!username || !password">Sign In</button>
2727
</div>
2828
</div>
2929
<div v-if="confirmView">
3030
<div :style="theme.inputRow">
31-
<input :style="theme.input" v-model="code" placeholder="Code" />
31+
<input :style="theme.input" v-model="code" placeholder="Code" v-on:keyup.enter="confirm" />
3232
</div>
3333
<div :style="theme.actionRow">
3434
<button :style="theme.action" v-on:click="confirm" :disabled="!code">Confirm</button>

0 commit comments

Comments
 (0)