From 834dc4903806cfb13156538a1784c1d766f3df67 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Tue, 27 Mar 2018 12:53:56 +0900 Subject: Replace /:user endpoints with /@:user --- src/web/app/mobile/script.ts | 8 ++++---- .../app/mobile/views/components/notification.vue | 22 +++++++++++----------- src/web/app/mobile/views/components/post-card.vue | 2 +- .../mobile/views/components/post-detail.sub.vue | 6 +++--- .../app/mobile/views/components/post-detail.vue | 10 +++++----- .../app/mobile/views/components/post-preview.vue | 6 +++--- src/web/app/mobile/views/components/post.sub.vue | 6 +++--- src/web/app/mobile/views/components/post.vue | 10 +++++----- src/web/app/mobile/views/components/ui.nav.vue | 2 +- src/web/app/mobile/views/components/user-card.vue | 4 ++-- .../app/mobile/views/components/user-preview.vue | 4 ++-- src/web/app/mobile/views/pages/user.vue | 4 ++-- .../views/pages/user/home.followers-you-know.vue | 2 +- .../app/mobile/views/pages/user/home.photos.vue | 2 +- src/web/app/mobile/views/pages/welcome.vue | 2 +- src/web/app/mobile/views/widgets/profile.vue | 2 +- 16 files changed, 46 insertions(+), 46 deletions(-) (limited to 'src/web/app/mobile') diff --git a/src/web/app/mobile/script.ts b/src/web/app/mobile/script.ts index 2b57b78ada..2fcb085aca 100644 --- a/src/web/app/mobile/script.ts +++ b/src/web/app/mobile/script.ts @@ -71,9 +71,9 @@ init((launch) => { { path: '/search', component: MkSearch }, { path: '/othello', component: MkOthello }, { path: '/othello/:game', component: MkOthello }, - { path: '/:user', component: MkUser }, - { path: '/:user/followers', component: MkFollowers }, - { path: '/:user/following', component: MkFollowing }, - { path: '/:user/:post', component: MkPost } + { path: '/@:user', component: MkUser }, + { path: '/@:user/followers', component: MkFollowers }, + { path: '/@:user/following', component: MkFollowing }, + { path: '/@:user/:post', component: MkPost } ]); }, true); diff --git a/src/web/app/mobile/views/components/notification.vue b/src/web/app/mobile/views/components/notification.vue index 506ce3493b..301fb81ddb 100644 --- a/src/web/app/mobile/views/components/notification.vue +++ b/src/web/app/mobile/views/components/notification.vue @@ -2,15 +2,15 @@
- + avatar

- {{ notification.user.name }} + {{ notification.user.name }}

- + %fa:quote-left%{{ getPostSummary(notification.post) }} %fa:quote-right% @@ -19,15 +19,15 @@
- + avatar

%fa:retweet% - {{ notification.post.user.name }} + {{ notification.post.user.name }}

- + %fa:quote-left%{{ getPostSummary(notification.post.repost) }}%fa:quote-right%
@@ -39,13 +39,13 @@ @@ -60,15 +60,15 @@
- + avatar

%fa:chart-pie% - {{ notification.user.name }} + {{ notification.user.name }}

- + %fa:quote-left%{{ getPostSummary(notification.post) }}%fa:quote-right%
diff --git a/src/web/app/mobile/views/components/post-card.vue b/src/web/app/mobile/views/components/post-card.vue index 08a2bebfce..1b3b20d88f 100644 --- a/src/web/app/mobile/views/components/post-card.vue +++ b/src/web/app/mobile/views/components/post-card.vue @@ -1,6 +1,6 @@