summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-03 14:25:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-03 14:25:36 +0900
commit12f472b3fc8d0cef17e87785a84e49b96409637b (patch)
tree0622e41a826fa43db889b129520eb8884b5acb52 /src
parent:v: (diff)
downloadsharkey-12f472b3fc8d0cef17e87785a84e49b96409637b.tar.gz
sharkey-12f472b3fc8d0cef17e87785a84e49b96409637b.tar.bz2
sharkey-12f472b3fc8d0cef17e87785a84e49b96409637b.zip
:v:
Diffstat (limited to 'src')
-rw-r--r--src/web/app/auth/views/form.vue1
-rw-r--r--src/web/app/common/views/components/switch.vue2
-rw-r--r--src/web/app/desktop/views/components/settings.profile.vue2
-rw-r--r--src/web/app/desktop/views/components/settings.vue2
-rw-r--r--src/web/app/init.ts22
-rw-r--r--src/web/app/reset.styl1
6 files changed, 19 insertions, 11 deletions
diff --git a/src/web/app/auth/views/form.vue b/src/web/app/auth/views/form.vue
index 30ad64ed2d..d86ed58b38 100644
--- a/src/web/app/auth/views/form.vue
+++ b/src/web/app/auth/views/form.vue
@@ -123,6 +123,7 @@ export default Vue.extend({
> button
margin 0 8px
+ padding 0
@media (max-width 600px)
> header
diff --git a/src/web/app/common/views/components/switch.vue b/src/web/app/common/views/components/switch.vue
index 2ac57be6fc..ffbab843ea 100644
--- a/src/web/app/common/views/components/switch.vue
+++ b/src/web/app/common/views/components/switch.vue
@@ -88,7 +88,7 @@ export default Vue.extend({
.mk-switch
display flex
- margin 8px 0
+ margin 12px 0
cursor pointer
transition all 0.3s
diff --git a/src/web/app/desktop/views/components/settings.profile.vue b/src/web/app/desktop/views/components/settings.profile.vue
index b57ac10287..23a1663768 100644
--- a/src/web/app/desktop/views/components/settings.profile.vue
+++ b/src/web/app/desktop/views/components/settings.profile.vue
@@ -19,7 +19,7 @@
</label>
<label class="ui from group">
<p>%i18n:desktop.tags.mk-profile-setting.birthday%</p>
- <input v-model="birthday" type="date" class="ui"/>
+ <el-date-picker v-model="birthday" type="date" value-format="yyyy-MM-dd"/>
</label>
<button class="ui primary" @click="save">%i18n:desktop.tags.mk-profile-setting.save%</button>
<section>
diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue
index 04004d2ff6..182a9a1d5e 100644
--- a/src/web/app/desktop/views/components/settings.vue
+++ b/src/web/app/desktop/views/components/settings.vue
@@ -38,7 +38,7 @@
</el-option-group>
</el-select>
<div class="none ui info">
- <p>%fa:inffo-circle%変更はページの再度読み込み後に反映されます。</p>
+ <p>%fa:info-circle%変更はページの再度読み込み後に反映されます。</p>
</div>
</section>
diff --git a/src/web/app/init.ts b/src/web/app/init.ts
index dc3057935f..716fe45e7a 100644
--- a/src/web/app/init.ts
+++ b/src/web/app/init.ts
@@ -6,10 +6,24 @@ import Vue from 'vue';
import VueRouter from 'vue-router';
import VModal from 'vue-js-modal';
import Element from 'element-ui';
+import ElementLocaleEn from 'element-ui/lib/locale/lang/en';
+import ElementLocaleJa from 'element-ui/lib/locale/lang/ja';
+
+import App from './app.vue';
+import checkForUpdate from './common/scripts/check-for-update';
+import MiOS, { API } from './common/mios';
+import { version, host, lang } from './config';
+
+let elementLocale;
+switch (lang) {
+ case 'ja': elementLocale = ElementLocaleJa; break;
+ case 'en': elementLocale = ElementLocaleEn; break;
+ default: elementLocale = ElementLocaleEn; break;
+}
Vue.use(VueRouter);
Vue.use(VModal);
-Vue.use(Element);
+Vue.use(Element, { locale: elementLocale });
// Register global directives
require('./common/views/directives');
@@ -29,12 +43,6 @@ Vue.mixin({
}
});
-import App from './app.vue';
-
-import checkForUpdate from './common/scripts/check-for-update';
-import MiOS, { API } from './common/mios';
-import { version, host, lang } from './config';
-
/**
* APP ENTRY POINT!
*/
diff --git a/src/web/app/reset.styl b/src/web/app/reset.styl
index db4d874861..10bd3113a2 100644
--- a/src/web/app/reset.styl
+++ b/src/web/app/reset.styl
@@ -16,7 +16,6 @@ textarea
button
margin 0
- padding 0
background transparent
border none
cursor pointer