summaryrefslogtreecommitdiff
path: root/src/client/pages
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-10 13:38:24 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-04-10 13:38:24 +0900
commitfb8ed718cec074bb021bf7d594bbd42dba558ef0 (patch)
tree163727de8634593bded7524fe5a72e71bcd6bca4 /src/client/pages
parentrefactor(client): Use symbol (diff)
downloadmisskey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.tar.gz
misskey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.tar.bz2
misskey-fb8ed718cec074bb021bf7d594bbd42dba558ef0.zip
Improve UI
Diffstat (limited to 'src/client/pages')
-rw-r--r--src/client/pages/note.vue6
-rw-r--r--src/client/pages/notifications.vue11
-rw-r--r--src/client/pages/timeline.vue11
-rw-r--r--src/client/pages/user/index.vue4
4 files changed, 21 insertions, 11 deletions
diff --git a/src/client/pages/note.vue b/src/client/pages/note.vue
index 921e73c0bc..90cb98c40e 100644
--- a/src/client/pages/note.vue
+++ b/src/client/pages/note.vue
@@ -45,6 +45,7 @@ import MkRemoteCaution from '@client/components/remote-caution.vue';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
import * as symbols from '@client/symbols';
+import { url } from '@client/config';
export default defineComponent({
components: {
@@ -65,6 +66,11 @@ export default defineComponent({
[symbols.PAGE_INFO]: computed(() => this.note ? {
title: this.$ts.note,
avatar: this.note.user,
+ share: {
+ title: this.$t('noteOf', { user: this.note.user.name }),
+ text: this.note.text,
+ url: `${url}/notes/${this.note.id}`
+ },
} : null),
note: null,
clips: null,
diff --git a/src/client/pages/notifications.vue b/src/client/pages/notifications.vue
index 6f38d7739f..25605988ed 100644
--- a/src/client/pages/notifications.vue
+++ b/src/client/pages/notifications.vue
@@ -6,7 +6,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
-import { faBell } from '@fortawesome/free-solid-svg-icons';
+import { faBell, faCheck } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotifications from '@client/components/notifications.vue';
import * as os from '@client/os';
@@ -21,7 +21,14 @@ export default defineComponent({
return {
[symbols.PAGE_INFO]: {
title: this.$ts.notifications,
- icon: faBell
+ icon: faBell,
+ actions: [{
+ text: this.$ts.markAllAsRead,
+ icon: faCheck,
+ handler: () => {
+ os.apiWithDialog('notifications/mark-all-as-read');
+ }
+ }]
},
};
},
diff --git a/src/client/pages/timeline.vue b/src/client/pages/timeline.vue
index da81627122..947efad2b7 100644
--- a/src/client/pages/timeline.vue
+++ b/src/client/pages/timeline.vue
@@ -38,7 +38,7 @@
<script lang="ts">
import { defineComponent, defineAsyncComponent, computed } from 'vue';
import { faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faListUl, faSatellite, faSatelliteDish, faCircle, faEllipsisH, faPencilAlt, faAt } from '@fortawesome/free-solid-svg-icons';
-import { faComments, faEnvelope } from '@fortawesome/free-regular-svg-icons';
+import { faComments, faEnvelope, faCalendarAlt } from '@fortawesome/free-regular-svg-icons';
import Progress from '@client/scripts/loading';
import XTimeline from '@client/components/timeline.vue';
import XPostForm from '@client/components/post-form.vue';
@@ -67,10 +67,11 @@ export default defineComponent({
[symbols.PAGE_INFO]: computed(() => ({
title: this.$ts.timeline,
icon: this.src === 'local' ? faComments : this.src === 'social' ? faShareAlt : this.src === 'global' ? faGlobe : faHome,
- action: {
- icon: faPencilAlt,
- handler: () => os.post()
- }
+ actions: [{
+ icon: faCalendarAlt,
+ text: this.$ts.jumpToSpecifiedDate,
+ handler: this.timetravel
+ }]
})),
faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faComments, faListUl, faSatellite, faSatelliteDish, faCircle, faEllipsisH, faAt, faEnvelope,
};
diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue
index 1adf57f600..6351014956 100644
--- a/src/client/pages/user/index.vue
+++ b/src/client/pages/user/index.vue
@@ -276,10 +276,6 @@ export default defineComponent({
title: this.user.name,
url: `${url}/@${this.user.username}`
},
- action: {
- icon: faEllipsisH,
- handler: this.menu
- }
} : null),
user: null,
error: null,