From 69d9aa71f25ab06d8024b04ce341909425d053d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Aug 2020 15:51:02 +0900 Subject: [PATCH] Full view mode (#6636) * wuip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update folder.vue * wip * Update size.ts * wip * wip * Update index.vue * wip --- locales/ja-JP.yml | 3 + src/client/app.vue | 14 +- src/client/components/instance-stats.vue | 95 +++-- src/client/components/note.sub.vue | 2 +- src/client/components/note.vue | 2 +- src/client/components/notification.vue | 2 +- src/client/components/tab.vue | 2 +- src/client/components/ui/container.vue | 27 +- src/client/components/ui/folder.vue | 126 ++++++ src/client/components/url-preview.vue | 2 +- src/client/directives/size.ts | 32 +- src/client/pages/instance/emojis.vue | 4 +- .../pages/instance/federation.instance.vue | 117 ++--- .../pages/instance/index.queue-chart.vue | 183 ++++++++ src/client/pages/instance/index.vue | 398 ++++++++++++------ .../{queue.queue.vue => queue.chart.vue} | 43 +- src/client/pages/instance/queue.vue | 2 +- src/client/pages/instance/relays.vue | 4 +- src/client/pages/instance/settings.vue | 29 +- src/client/pages/instance/users.vue | 4 +- src/client/pages/messaging/index.vue | 2 +- src/client/pages/miauth.vue | 8 +- src/client/pages/my-groups/group.vue | 4 +- src/client/pages/my-lists/list.vue | 4 +- src/client/pages/preferences/index.vue | 8 +- src/client/pages/room/room.vue | 4 +- src/client/pages/user/index.timeline.vue | 2 +- src/client/pages/user/index.vue | 2 +- src/client/store.ts | 5 + src/client/style.scss | 40 +- src/client/widgets/define.ts | 17 +- 31 files changed, 853 insertions(+), 334 deletions(-) create mode 100644 src/client/components/ui/folder.vue create mode 100644 src/client/pages/instance/index.queue-chart.vue rename src/client/pages/instance/{queue.queue.vue => queue.chart.vue} (83%) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 11752d15b..1f727056a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -558,6 +558,9 @@ userSaysSomething: "{name}が何かを言いました" makeActive: "アクティブにする" display: "表示" copy: "コピー" +metrics: "メトリクス" +overview: "概要" +logs: "ログ" _sidebar: full: "フル" diff --git a/src/client/app.vue b/src/client/app.vue index 32777e21b..f81e7e44a 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -33,7 +33,7 @@ -
+
@@ -547,6 +547,18 @@ export default Vue.extend({ backdrop-filter: blur(4px); } + &.full { + width: 100%; + + > main { + width: 100%; + } + + > .widgets { + display: none; + } + } + > main { width: $main-width; min-width: 0; diff --git a/src/client/components/instance-stats.vue b/src/client/components/instance-stats.vue index 552e3523f..f863dfd95 100644 --- a/src/client/components/instance-stats.vue +++ b/src/client/components/instance-stats.vue @@ -1,5 +1,5 @@