diff --git a/src/client/app/common/views/components/signin.vue b/src/client/app/common/views/components/signin.vue index 3473d313c..58241cef0 100644 --- a/src/client/app/common/views/components/signin.vue +++ b/src/client/app/common/views/components/signin.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/mobile/views/pages/welcome.vue b/src/client/app/mobile/views/pages/welcome.vue index 79648ac42..cd8f5841e 100644 --- a/src/client/app/mobile/views/pages/welcome.vue +++ b/src/client/app/mobile/views/pages/welcome.vue @@ -9,26 +9,15 @@ 新規登録
-
- - ユーザー名 - @ - @{{ host }} - - - パスワード - %fa:lock% - - - {{ signing ? 'ログインしています' : 'ログイン' }} - -
- Twitterでログイン -
+
+
+ %fa:user% {{ stats.originalUsersCount | number }} + %fa:pencil-alt% {{ stats.originalNotesCount | number }} +
@@ -43,49 +32,18 @@ import { apiUrl, copyright, host, name, description } from '../../../config'; export default Vue.extend({ data() { return { - signing: false, - user: null, - username: '', - password: '', - token: '', apiUrl, copyright, - users: [], + stats: null, host, name, description }; }, - mounted() { - (this as any).api('users', { - sort: '+follower', - limit: 20 - }).then(users => { - this.users = users; + created() { + (this as any).api('stats').then(stats => { + this.stats = stats; }); - }, - methods: { - onUsernameChange() { - (this as any).api('users/show', { - username: this.username - }).then(user => { - this.user = user; - }); - }, - onSubmit() { - this.signing = true; - - (this as any).api('signin', { - username: this.username, - password: this.password, - token: this.user && this.user.twoFactorEnabled ? this.token : undefined - }).then(() => { - location.reload(); - }).catch(() => { - alert('something happened'); - this.signing = false; - }); - } } }); @@ -164,6 +122,17 @@ export default Vue.extend({ overflow auto -webkit-overflow-scrolling touch + > .stats + margin 16px 0 + padding 8px + font-size 14px + color #444 + background rgba(#000, 0.1) + border-radius 6px + + > * + margin 0 8px + > footer text-align center color #444