From 853ee415ae4c102708c71bc409fafc5a7b5fc359 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 20 May 2018 14:01:47 +0900 Subject: [PATCH] Better mobile setting --- locales/ja.yml | 4 + src/client/app/mobile/script.ts | 4 +- .../app/mobile/views/pages/settings.vue | 60 ++----------- .../views/pages/settings/settings.profile.vue | 87 +++++++++++++++++-- 4 files changed, 95 insertions(+), 60 deletions(-) diff --git a/locales/ja.yml b/locales/ja.yml index 2d50fbbaf7..3f3d3b6d7e 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -813,9 +813,13 @@ mobile/views/pages/settings/settings.profile.vue: location: "場所" description: "自己紹介" birthday: "誕生日" + avatar: "アイコン" + banner: "バナー" is-bot: "このアカウントはBotです" save: "保存" saved: "プロフィールを保存しました" + uploading: "アップロード中" + upload-failed: "アップロードに失敗しました" mobile/views/pages/search.vue: search: "検索" diff --git a/src/client/app/mobile/script.ts b/src/client/app/mobile/script.ts index ac7f29686f..bb02f8bb05 100644 --- a/src/client/app/mobile/script.ts +++ b/src/client/app/mobile/script.ts @@ -5,7 +5,7 @@ import Vue from 'vue'; import VueRouter from 'vue-router'; -import { MdCard, MdButton, MdField, MdMenu, MdList, MdSwitch, MdSubheader } from 'vue-material/dist/components'; +import { MdCard, MdButton, MdField, MdMenu, MdList, MdSwitch, MdSubheader, MdDialog, MdDialogAlert } from 'vue-material/dist/components'; import 'vue-material/dist/vue-material.min.css'; import 'vue-material/dist/theme/default.css'; @@ -47,6 +47,8 @@ Vue.use(MdMenu); Vue.use(MdList); Vue.use(MdSwitch); Vue.use(MdSubheader); +Vue.use(MdDialog); +Vue.use(MdDialogAlert); /** * init diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 2e4ae5ce36..4ebbcbcc2f 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -229,8 +229,11 @@ export default Vue.extend({ diff --git a/src/client/app/mobile/views/pages/settings/settings.profile.vue b/src/client/app/mobile/views/pages/settings/settings.profile.vue index b81f9a8075..0315fc56bc 100644 --- a/src/client/app/mobile/views/pages/settings/settings.profile.vue +++ b/src/client/app/mobile/views/pages/settings/settings.profile.vue @@ -10,11 +10,6 @@ - - - - - %fa:map-marker-alt% @@ -27,6 +22,25 @@ + + + + + + + + + + + + + + + + +
%i18n:@is-bot%
@@ -40,6 +54,7 @@