From 937f7cbd60e2d75bf7a534a8586ad8806f78c728 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 15 Feb 2019 15:35:52 +0900 Subject: [PATCH] :art: --- .../app/common/views/widgets/analog-clock.vue | 4 +- .../app/common/views/widgets/broadcast.vue | 4 +- .../app/common/views/widgets/calendar.vue | 4 +- .../app/common/views/widgets/hashtags.vue | 4 +- .../app/common/views/widgets/instance.vue | 4 +- src/client/app/common/views/widgets/memo.vue | 4 +- src/client/app/common/views/widgets/nav.vue | 4 +- .../app/common/views/widgets/photo-stream.vue | 4 +- .../common/views/widgets/posts-monitor.vue | 4 +- src/client/app/common/views/widgets/rss.vue | 4 +- .../app/common/views/widgets/server.vue | 4 +- src/client/app/desktop/script.ts | 5 +- .../app/desktop/views/components/activity.vue | 4 +- .../app/desktop/views/components/index.ts | 4 +- ...{widget-container.vue => ui-container.vue} | 23 +++++-- .../desktop/views/home/user/user.photos.vue | 63 ++++++++----------- .../app/desktop/views/home/user/user.vue | 6 +- .../app/desktop/views/widgets/messaging.vue | 4 +- .../desktop/views/widgets/notifications.vue | 4 +- .../app/desktop/views/widgets/polls.vue | 4 +- .../app/desktop/views/widgets/post-form.vue | 4 +- .../app/desktop/views/widgets/profile.vue | 4 +- .../app/desktop/views/widgets/trends.vue | 4 +- .../app/desktop/views/widgets/users.vue | 4 +- .../app/mobile/views/components/index.ts | 4 +- ...{widget-container.vue => ui-container.vue} | 8 ++- .../app/mobile/views/widgets/activity.vue | 4 +- .../app/mobile/views/widgets/profile.vue | 4 +- 28 files changed, 103 insertions(+), 94 deletions(-) rename src/client/app/desktop/views/components/{widget-container.vue => ui-container.vue} (73%) rename src/client/app/mobile/views/components/{widget-container.vue => ui-container.vue} (88%) diff --git a/src/client/app/common/views/widgets/analog-clock.vue b/src/client/app/common/views/widgets/analog-clock.vue index cfcdd5a1b..bff01f89b 100644 --- a/src/client/app/common/views/widgets/analog-clock.vue +++ b/src/client/app/common/views/widgets/analog-clock.vue @@ -1,10 +1,10 @@ diff --git a/src/client/app/common/views/widgets/broadcast.vue b/src/client/app/common/views/widgets/broadcast.vue index 7bb8ee70b..1222c3956 100644 --- a/src/client/app/common/views/widgets/broadcast.vue +++ b/src/client/app/common/views/widgets/broadcast.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/common/views/widgets/calendar.vue b/src/client/app/common/views/widgets/calendar.vue index f47696834..32ce1efeb 100644 --- a/src/client/app/common/views/widgets/calendar.vue +++ b/src/client/app/common/views/widgets/calendar.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/common/views/widgets/hashtags.vue b/src/client/app/common/views/widgets/hashtags.vue index dd3933465..10425abae 100644 --- a/src/client/app/common/views/widgets/hashtags.vue +++ b/src/client/app/common/views/widgets/hashtags.vue @@ -1,12 +1,12 @@ diff --git a/src/client/app/common/views/widgets/instance.vue b/src/client/app/common/views/widgets/instance.vue index 105323561..96d6184d1 100644 --- a/src/client/app/common/views/widgets/instance.vue +++ b/src/client/app/common/views/widgets/instance.vue @@ -1,8 +1,8 @@ diff --git a/src/client/app/common/views/widgets/memo.vue b/src/client/app/common/views/widgets/memo.vue index 75a775d77..8e25d2589 100644 --- a/src/client/app/common/views/widgets/memo.vue +++ b/src/client/app/common/views/widgets/memo.vue @@ -1,13 +1,13 @@ diff --git a/src/client/app/common/views/widgets/nav.vue b/src/client/app/common/views/widgets/nav.vue index 12003db3f..2b8caa7be 100644 --- a/src/client/app/common/views/widgets/nav.vue +++ b/src/client/app/common/views/widgets/nav.vue @@ -1,10 +1,10 @@ diff --git a/src/client/app/common/views/widgets/photo-stream.vue b/src/client/app/common/views/widgets/photo-stream.vue index 362d7fba5..621f3c545 100644 --- a/src/client/app/common/views/widgets/photo-stream.vue +++ b/src/client/app/common/views/widgets/photo-stream.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/common/views/widgets/posts-monitor.vue b/src/client/app/common/views/widgets/posts-monitor.vue index 1af306b88..0c921e9e4 100644 --- a/src/client/app/common/views/widgets/posts-monitor.vue +++ b/src/client/app/common/views/widgets/posts-monitor.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/common/views/widgets/rss.vue b/src/client/app/common/views/widgets/rss.vue index 37ea32073..25f0638b9 100644 --- a/src/client/app/common/views/widgets/rss.vue +++ b/src/client/app/common/views/widgets/rss.vue @@ -1,6 +1,6 @@ diff --git a/src/client/app/common/views/widgets/server.vue b/src/client/app/common/views/widgets/server.vue index fc1b0c513..dbc4050b2 100644 --- a/src/client/app/common/views/widgets/server.vue +++ b/src/client/app/common/views/widgets/server.vue @@ -1,6 +1,6 @@ - + diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index 138cf6e63..fe1315115 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -158,7 +158,10 @@ init(async (launch, os) => { { path: '/authorize-follow', component: MkFollow }, { path: '/deck', redirect: '/' }, { path: '*', component: MkNotFound } - ] + ], + scrollBehavior(to, from, savedPosition) { + return { x: 0, y: 0 }; + } }); // Launch the app diff --git a/src/client/app/desktop/views/components/activity.vue b/src/client/app/desktop/views/components/activity.vue index 8c79e213a..d258f7eae 100644 --- a/src/client/app/desktop/views/components/activity.vue +++ b/src/client/app/desktop/views/components/activity.vue @@ -1,6 +1,6 @@ - + diff --git a/src/client/app/desktop/views/components/index.ts b/src/client/app/desktop/views/components/index.ts index 0bc6fa9af..c31690028 100644 --- a/src/client/app/desktop/views/components/index.ts +++ b/src/client/app/desktop/views/components/index.ts @@ -18,7 +18,7 @@ import activity from './activity.vue'; import friendsMaker from './friends-maker.vue'; import userCard from './user-card.vue'; import userListTimeline from './user-list-timeline.vue'; -import widgetContainer from './widget-container.vue'; +import uiContainer from './ui-container.vue'; Vue.component('mk-ui', ui); Vue.component('mk-ui-notification', uiNotification); @@ -38,4 +38,4 @@ Vue.component('mk-activity', activity); Vue.component('mk-friends-maker', friendsMaker); Vue.component('mk-user-card', userCard); Vue.component('mk-user-list-timeline', userListTimeline); -Vue.component('mk-widget-container', widgetContainer); +Vue.component('ui-container', uiContainer); diff --git a/src/client/app/desktop/views/components/widget-container.vue b/src/client/app/desktop/views/components/ui-container.vue similarity index 73% rename from src/client/app/desktop/views/components/widget-container.vue rename to src/client/app/desktop/views/components/ui-container.vue index 13a460c92..b4f7744d4 100644 --- a/src/client/app/desktop/views/components/widget-container.vue +++ b/src/client/app/desktop/views/components/ui-container.vue @@ -1,10 +1,16 @@ @@ -19,13 +25,22 @@ export default Vue.extend({ naked: { type: Boolean, default: false - } + }, + bodyTogglable: { + type: Boolean, + default: false + }, + }, + data() { + return { + showBody: true + }; } });