+
+
+
+
+
@@ -16,26 +18,22 @@
-
+
+
-
-
-
-
-
-
-
+
+
-
+ import('./default.widgets.vue')),
- XSide, // NOTE: dynamic importするとAsyncComponentWrapperが間に入るせいでref取得できなくて面倒になる
- },
-
- provide() {
- return {
- sideViewHook: this.isDesktop ? (url) => {
- this.$refs.side.navigate(url);
- } : null
- };
},
data() {
return {
pageInfo: null,
- isDesktop: window.innerWidth >= DESKTOP_THRESHOLD,
menuDef: sidebarDef,
- navHidden: false,
+ isMobile: window.innerWidth <= MOBILE_THRESHOLD,
+ isDesktop: window.innerWidth >= DESKTOP_THRESHOLD,
widgetsShowing: false,
wallpaper: localStorage.getItem('wallpaper') != null,
faLayerGroup, faBars, faBell, faHome, faCircle, faPencilAlt,
@@ -125,21 +116,10 @@ export default defineComponent({
},
mounted() {
- this.adjustUI();
-
- const ro = new ResizeObserver((entries, observer) => {
- this.adjustUI();
- });
-
- ro.observe(this.$refs.contents);
-
- window.addEventListener('resize', this.adjustUI, { passive: true });
-
- if (!this.isDesktop) {
- window.addEventListener('resize', () => {
- if (window.innerWidth >= DESKTOP_THRESHOLD) this.isDesktop = true;
- }, { passive: true });
- }
+ window.addEventListener('resize', () => {
+ this.isMobile = (window.innerWidth <= MOBILE_THRESHOLD);
+ this.isDesktop = (window.innerWidth >= DESKTOP_THRESHOLD);
+ }, { passive: true });
},
methods: {
@@ -151,20 +131,8 @@ export default defineComponent({
}
},
- adjustUI() {
- const navWidth = this.$refs.nav.$el.offsetWidth;
- this.navHidden = navWidth === 0;
- if (this.$refs.contents == null) return;
- const width = this.$refs.contents.offsetWidth;
- if (this.$refs.header) this.$refs.header.style.width = `${width}px`;
- },
-
- showNav() {
- this.$refs.nav.show();
- },
-
- attachSticky(el) {
- const sticky = new StickySidebar(el, this.$refs.widgetsSpacer);
+ attachSticky() {
+ const sticky = new StickySidebar(this.$refs.widgets, 16);
window.addEventListener('scroll', () => {
sticky.calc(window.scrollY);
}, { passive: true });
@@ -178,6 +146,10 @@ export default defineComponent({
window.scroll({ top: 0, behavior: 'smooth' });
},
+ showDrawerNav() {
+ this.$refs.drawerNav.show();
+ },
+
onTransition() {
if (window._scroll) window._scroll();
},
@@ -200,12 +172,6 @@ export default defineComponent({
os.contextMenu([{
type: 'label',
text: path,
- }, {
- icon: faColumns,
- text: this.$ts.openInSideView,
- action: () => {
- this.$refs.side.navigate(path);
- }
}, {
icon: faWindowMaximize,
text: this.$ts.openInWindow,
@@ -242,99 +208,98 @@ export default defineComponent({
}
.mk-app {
- $header-height: 58px; // TODO: どこかに集約したい
- $ui-font-size: 1em; // TODO: どこかに集約したい
- $widgets-hide-threshold: 1090px;
+ $header-height: 50px;
+ $ui-font-size: 1em;
+ $widgets-hide-threshold: 1200px;
+ $nav-icon-only-width: 78px; // TODO: どこかに集約したい
// ほんとは単に 100vh と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
min-height: calc(var(--vh, 1vh) * 100);
box-sizing: border-box;
- display: flex;
&.wallpaper {
background: var(--wallpaperOverlay);
//backdrop-filter: blur(4px);
}
- > .contents {
- width: 100%;
- min-width: 0;
+ &.isMobile {
+ > .columns {
+ display: block;
+ margin: 0;
- &.withHeader {
- padding-top: $header-height;
+ > .main {
+ margin: 0;
+ border: none;
+ width: 100%;
+ border-radius: 0;
+
+ > .header {
+ width: 100%;
+ }
+ }
}
+ }
- > .header {
- position: fixed;
- z-index: 1000;
- top: 0;
- height: $header-height;
- width: 100%;
- line-height: $header-height;
- text-align: center;
- font-weight: bold;
- //background-color: var(--panel);
- -webkit-backdrop-filter: blur(32px);
- backdrop-filter: blur(32px);
- background-color: var(--header);
- //border-bottom: solid 1px var(--divider);
- user-select: none;
- }
+ > .columns {
+ display: flex;
+ justify-content: center;
+ max-width: 100%;
+ margin: 32px 0;
- > main {
- min-width: 0;
+ > .main {
+ width: 750px;
+ margin: 0 16px 0 0;
+ background: var(--bg);
+ --margin: 12px;
+
+ > .header {
+ position: sticky;
+ z-index: 1000;
+ top: 0;
+ height: $header-height;
+ line-height: $header-height;
+ -webkit-backdrop-filter: blur(32px);
+ backdrop-filter: blur(32px);
+ background-color: var(--header);
+ border-bottom: solid 0.5px var(--divider);
+ }
> .content {
- > * {
- // ほんとは単に calc(100vh - #{$header-height}) と書きたいところだが... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
- min-height: calc((var(--vh, 1vh) * 100) - #{$header-height});
- }
+ background: var(--bg);
+ --stickyTop: #{$header-height};
}
- > .spacer {
- height: 82px;
+ @media (max-width: 850px) {
+ padding-top: $header-height;
- @media (min-width: ($widgets-hide-threshold + 1px)) {
- display: none;
+ > .header {
+ position: fixed;
+ width: calc(100% - #{$nav-icon-only-width});
}
}
}
- }
- > .side {
- min-width: 370px;
- max-width: 370px;
- border-left: solid 1px var(--divider);
- }
+ > .widgets {
+ //--panelShadow: none;
- > .widgets {
- padding: 0 var(--margin);
- border-left: solid 1px var(--divider);
-
- @media (max-width: $widgets-hide-threshold) {
- display: none;
- }
- }
-
- > .widgetButton {
- display: block;
- position: fixed;
- z-index: 1000;
- bottom: 32px;
- right: 32px;
- width: 64px;
- height: 64px;
- border-radius: 100%;
- box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
- font-size: 22px;
- background: var(--panel);
-
- &.navHidden {
- display: none;
+ @media (max-width: $widgets-hide-threshold) {
+ display: none;
+ }
}
- @media (min-width: ($widgets-hide-threshold + 1px)) {
- display: none;
+ @media (max-width: 850px) {
+ margin: 0;
+
+ > .sidebar {
+ border-right: solid 0.5px var(--divider);
+ }
+
+ > .main {
+ margin: 0;
+ border-radius: 0;
+ box-shadow: none;
+ width: 100%;
+ }
}
}
@@ -349,10 +314,7 @@ export default defineComponent({
-webkit-backdrop-filter: blur(32px);
backdrop-filter: blur(32px);
background-color: var(--header);
-
- &:not(.navHidden) {
- display: none;
- }
+ border-top: solid 0.5px var(--divider);
> .button {
position: relative;
@@ -429,6 +391,3 @@ export default defineComponent({
}
}
-
-
diff --git a/src/client/ui/default.widgets.vue b/src/client/ui/default.widgets.vue
index 35d3442bb2..b12de841a7 100644
--- a/src/client/ui/default.widgets.vue
+++ b/src/client/ui/default.widgets.vue
@@ -61,8 +61,6 @@ export default defineComponent({
.efzpzdvf {
position: sticky;
height: min-content;
- min-height: 100vh;
- padding: var(--margin) 0;
box-sizing: border-box;
> * {
diff --git a/src/client/ui/desktop.vue b/src/client/ui/desktop.vue
index 1480fd1840..a60aed6841 100644
--- a/src/client/ui/desktop.vue
+++ b/src/client/ui/desktop.vue
@@ -12,7 +12,7 @@ import { host } from '@client/config';
import { search } from '@client/scripts/search';
import XCommon from './_common_/common.vue';
import * as os from '@client/os';
-import XSidebar from '@client/components/sidebar.vue';
+import XSidebar from '@client/ui/_common_/sidebar.vue';
import { sidebarDef } from '@client/sidebar';
import { ColdDeviceStorage } from '@client/store';
diff --git a/src/client/ui/universal.vue b/src/client/ui/universal.vue
new file mode 100644
index 0000000000..e1b368c25a
--- /dev/null
+++ b/src/client/ui/universal.vue
@@ -0,0 +1,433 @@
+
+
Date: Sat, 10 Apr 2021 12:54:12 +0900
Subject: [PATCH 03/29] refactor(client): Use symbol
---
src/client/components/page-window.vue | 5 +++--
src/client/pages/_error_.vue | 3 ++-
src/client/pages/about-misskey.vue | 3 ++-
src/client/pages/about.vue | 3 ++-
src/client/pages/advanced-theme-editor.vue | 3 ++-
src/client/pages/announcements.vue | 3 ++-
src/client/pages/api-console.vue | 3 ++-
src/client/pages/channel-editor.vue | 3 ++-
src/client/pages/channel.vue | 3 ++-
src/client/pages/channels.vue | 3 ++-
src/client/pages/clip.vue | 3 ++-
src/client/pages/doc.vue | 3 ++-
src/client/pages/docs.vue | 3 ++-
src/client/pages/drive.vue | 3 ++-
src/client/pages/explore.vue | 3 ++-
src/client/pages/favorites.vue | 3 ++-
src/client/pages/featured.vue | 3 ++-
src/client/pages/follow-requests.vue | 3 ++-
src/client/pages/instance/abuses.vue | 3 ++-
src/client/pages/instance/announcements.vue | 3 ++-
src/client/pages/instance/emojis.vue | 3 ++-
src/client/pages/instance/federation.vue | 3 ++-
src/client/pages/instance/files.vue | 3 ++-
src/client/pages/instance/index.vue | 3 ++-
src/client/pages/instance/logs.vue | 3 ++-
src/client/pages/instance/queue.vue | 3 ++-
src/client/pages/instance/relays.vue | 3 ++-
src/client/pages/instance/settings.vue | 3 ++-
src/client/pages/instance/users.vue | 3 ++-
src/client/pages/mentions.vue | 3 ++-
src/client/pages/messages.vue | 3 ++-
src/client/pages/messaging/index.vue | 3 ++-
src/client/pages/messaging/messaging-room.vue | 3 ++-
src/client/pages/mfm-cheat-sheet.vue | 3 ++-
src/client/pages/my-antennas/index.vue | 3 ++-
src/client/pages/my-clips/index.vue | 3 ++-
src/client/pages/my-groups/group.vue | 3 ++-
src/client/pages/my-groups/index.vue | 3 ++-
src/client/pages/my-lists/index.vue | 3 ++-
src/client/pages/my-lists/list.vue | 3 ++-
src/client/pages/not-found.vue | 3 ++-
src/client/pages/note.vue | 3 ++-
src/client/pages/notifications.vue | 3 ++-
src/client/pages/page-editor/page-editor.vue | 3 ++-
src/client/pages/page.vue | 3 ++-
src/client/pages/pages.vue | 3 ++-
src/client/pages/preview.vue | 3 ++-
src/client/pages/reversi/game.vue | 3 ++-
src/client/pages/reversi/index.vue | 3 ++-
src/client/pages/room/room.vue | 3 ++-
src/client/pages/scratchpad.vue | 3 ++-
src/client/pages/search.vue | 3 ++-
src/client/pages/settings/2fa.vue | 3 ++-
src/client/pages/settings/account-info.vue | 5 +++--
src/client/pages/settings/api.vue | 5 +++--
src/client/pages/settings/apps.vue | 5 +++--
src/client/pages/settings/deck.vue | 5 +++--
src/client/pages/settings/drive.vue | 5 +++--
src/client/pages/settings/email-address.vue | 5 +++--
src/client/pages/settings/email-notification.vue | 6 ++++--
src/client/pages/settings/email.vue | 5 +++--
src/client/pages/settings/experimental-features.vue | 5 +++--
src/client/pages/settings/general.vue | 5 +++--
src/client/pages/settings/import-export.vue | 5 +++--
src/client/pages/settings/index.vue | 3 ++-
src/client/pages/settings/integration.vue | 5 +++--
src/client/pages/settings/mute-block.vue | 5 +++--
src/client/pages/settings/notifications.vue | 5 +++--
src/client/pages/settings/other.vue | 5 +++--
src/client/pages/settings/plugin.install.vue | 5 +++--
src/client/pages/settings/plugin.manage.vue | 5 +++--
src/client/pages/settings/plugin.vue | 5 +++--
src/client/pages/settings/privacy.vue | 5 +++--
src/client/pages/settings/profile.vue | 5 +++--
src/client/pages/settings/reaction.vue | 5 +++--
src/client/pages/settings/registry.keys.vue | 5 +++--
src/client/pages/settings/registry.value.vue | 5 +++--
src/client/pages/settings/registry.vue | 5 +++--
src/client/pages/settings/security.vue | 5 +++--
src/client/pages/settings/sidebar.vue | 5 +++--
src/client/pages/settings/sounds.vue | 5 +++--
src/client/pages/settings/theme.install.vue | 5 +++--
src/client/pages/settings/theme.manage.vue | 5 +++--
src/client/pages/settings/theme.vue | 3 ++-
src/client/pages/settings/update.vue | 5 +++--
src/client/pages/settings/word-mute.vue | 5 +++--
src/client/pages/share.vue | 3 ++-
src/client/pages/tag.vue | 3 ++-
src/client/pages/test.vue | 3 ++-
src/client/pages/theme-editor.vue | 3 ++-
src/client/pages/timeline.vue | 3 ++-
src/client/pages/user/index.vue | 3 ++-
src/client/pages/v.vue | 3 ++-
src/client/pages/welcome.vue | 3 ++-
src/client/symbols.ts | 1 +
src/client/ui/chat/side.vue | 5 +++--
src/client/ui/deck/main-column.vue | 5 +++--
src/client/ui/default.side.vue | 5 +++--
src/client/ui/default.vue | 5 +++--
src/client/ui/universal.vue | 5 +++--
src/client/ui/visitor/a.vue | 5 +++--
src/client/ui/visitor/b.vue | 5 +++--
src/client/ui/zen.vue | 5 +++--
103 files changed, 246 insertions(+), 142 deletions(-)
create mode 100644 src/client/symbols.ts
diff --git a/src/client/components/page-window.vue b/src/client/components/page-window.vue
index e423757e0c..1afde25501 100644
--- a/src/client/components/page-window.vue
+++ b/src/client/components/page-window.vue
@@ -29,6 +29,7 @@ import { popout } from '@client/scripts/popout';
import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { resolve } from '@client/router';
import { url } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -123,8 +124,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/pages/_error_.vue b/src/client/pages/_error_.vue
index b317915589..67c1a1991c 100644
--- a/src/client/pages/_error_.vue
+++ b/src/client/pages/_error_.vue
@@ -14,6 +14,7 @@
import { defineComponent } from 'vue';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import MkButton from '@client/components/ui/button.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -21,7 +22,7 @@ export default defineComponent({
},
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.error,
icon: faExclamationTriangle
},
diff --git a/src/client/pages/about-misskey.vue b/src/client/pages/about-misskey.vue
index 72b94968df..cfffc7db51 100644
--- a/src/client/pages/about-misskey.vue
+++ b/src/client/pages/about-misskey.vue
@@ -64,6 +64,7 @@ import FormKeyValueView from '@client/components/form/key-value-view.vue';
import MkLink from '@client/components/link.vue';
import { physics } from '@client/scripts/physics.ts';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
const patrons = [
'Satsuki Yanagi',
@@ -115,7 +116,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.aboutMisskey,
icon: null
},
diff --git a/src/client/pages/about.vue b/src/client/pages/about.vue
index 911fc0bc62..4084256cf4 100644
--- a/src/client/pages/about.vue
+++ b/src/client/pages/about.vue
@@ -48,6 +48,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
import number from '@client/filters/number';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -59,7 +60,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.instanceInfo,
icon: faInfoCircle
},
diff --git a/src/client/pages/advanced-theme-editor.vue b/src/client/pages/advanced-theme-editor.vue
index e1bd0ebc00..3808c8abbe 100644
--- a/src/client/pages/advanced-theme-editor.vue
+++ b/src/client/pages/advanced-theme-editor.vue
@@ -109,6 +109,7 @@ import { host } from '@client/config';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { addTheme } from '@client/theme-store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -122,7 +123,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.themeEditor,
icon: faPalette,
},
diff --git a/src/client/pages/announcements.vue b/src/client/pages/announcements.vue
index 7c8ab28d8e..041f513f99 100644
--- a/src/client/pages/announcements.vue
+++ b/src/client/pages/announcements.vue
@@ -21,6 +21,7 @@ import { faCheck, faBroadcastTower } from '@fortawesome/free-solid-svg-icons';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -30,7 +31,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.announcements,
icon: faBroadcastTower
},
diff --git a/src/client/pages/api-console.vue b/src/client/pages/api-console.vue
index f5b4dceb26..5321f8e7ce 100644
--- a/src/client/pages/api-console.vue
+++ b/src/client/pages/api-console.vue
@@ -32,6 +32,7 @@ import MkInput from '@client/components/ui/input.vue';
import MkTextarea from '@client/components/ui/textarea.vue';
import MkSwitch from '@client/components/ui/switch.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -40,7 +41,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: 'API console',
icon: faTerminal
},
diff --git a/src/client/pages/channel-editor.vue b/src/client/pages/channel-editor.vue
index f5b8a66a6f..7216aaec4a 100644
--- a/src/client/pages/channel-editor.vue
+++ b/src/client/pages/channel-editor.vue
@@ -30,6 +30,7 @@ import MkButton from '@client/components/ui/button.vue';
import MkInput from '@client/components/ui/input.vue';
import { selectFile } from '@client/scripts/select-file';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -45,7 +46,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.channelId ? {
+ [symbols.PAGE_INFO]: computed(() => this.channelId ? {
title: this.$ts._channel.edit,
icon: faSatelliteDish,
} : {
diff --git a/src/client/pages/channel.vue b/src/client/pages/channel.vue
index d2ddebb4a8..4302f963e4 100644
--- a/src/client/pages/channel.vue
+++ b/src/client/pages/channel.vue
@@ -35,6 +35,7 @@ import XPostForm from '@client/components/post-form.vue';
import XTimeline from '@client/components/timeline.vue';
import XChannelFollowButton from '@client/components/channel-follow-button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -53,7 +54,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.channel ? {
+ [symbols.PAGE_INFO]: computed(() => this.channel ? {
title: this.channel.name,
icon: faSatelliteDish,
} : null),
diff --git a/src/client/pages/channels.vue b/src/client/pages/channels.vue
index d75c4e5ba6..530af7a4a7 100644
--- a/src/client/pages/channels.vue
+++ b/src/client/pages/channels.vue
@@ -39,6 +39,7 @@ import MkChannelPreview from '@client/components/channel-preview.vue';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import MkTab from '@client/components/tab.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -46,7 +47,7 @@ export default defineComponent({
},
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.channel,
icon: faSatelliteDish,
action: {
diff --git a/src/client/pages/clip.vue b/src/client/pages/clip.vue
index 9ae41c72f2..e0f5868a15 100644
--- a/src/client/pages/clip.vue
+++ b/src/client/pages/clip.vue
@@ -20,6 +20,7 @@ import MkContainer from '@client/components/ui/container.vue';
import XPostForm from '@client/components/post-form.vue';
import XNotes from '@client/components/notes.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -37,7 +38,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.clip ? {
+ [symbols.PAGE_INFO]: computed(() => this.clip ? {
title: this.clip.name,
icon: faPaperclip,
action: {
diff --git a/src/client/pages/doc.vue b/src/client/pages/doc.vue
index 8b8a89efc6..cf3628dafb 100644
--- a/src/client/pages/doc.vue
+++ b/src/client/pages/doc.vue
@@ -15,6 +15,7 @@ import MarkdownIt from 'markdown-it';
import MarkdownItAnchor from 'markdown-it-anchor';
import { url, lang } from '@client/config';
import MkLink from '@client/components/link.vue';
+import * as symbols from '@client/symbols';
const markdown = MarkdownIt({
html: true
@@ -38,7 +39,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.title ? {
+ [symbols.PAGE_INFO]: computed(() => this.title ? {
title: this.title,
icon: faQuestionCircle,
} : null),
diff --git a/src/client/pages/docs.vue b/src/client/pages/docs.vue
index f57be3d323..92eab86716 100644
--- a/src/client/pages/docs.vue
+++ b/src/client/pages/docs.vue
@@ -16,11 +16,12 @@
import { defineComponent } from 'vue';
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'
import { url, lang } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.help,
icon: faQuestionCircle
},
diff --git a/src/client/pages/drive.vue b/src/client/pages/drive.vue
index 3ca7f60099..33bbfbc50f 100644
--- a/src/client/pages/drive.vue
+++ b/src/client/pages/drive.vue
@@ -9,6 +9,7 @@ import { computed, defineComponent } from 'vue';
import { faCloud } from '@fortawesome/free-solid-svg-icons';
import XDrive from '@client/components/drive.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -17,7 +18,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: computed(() => this.folder ? this.folder.name : this.$ts.drive),
icon: faCloud,
menu: () => this.$refs.drive.getMenu()
diff --git a/src/client/pages/explore.vue b/src/client/pages/explore.vue
index dc3d424ba4..07989f8442 100644
--- a/src/client/pages/explore.vue
+++ b/src/client/pages/explore.vue
@@ -75,6 +75,7 @@ import MkFolder from '@client/components/ui/folder.vue';
import MkInput from '@client/components/ui/input.vue';
import number from '@client/filters/number';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -92,7 +93,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.explore,
icon: faHashtag
},
diff --git a/src/client/pages/favorites.vue b/src/client/pages/favorites.vue
index c87855484d..7ecd327137 100644
--- a/src/client/pages/favorites.vue
+++ b/src/client/pages/favorites.vue
@@ -10,6 +10,7 @@ import { faStar } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -18,7 +19,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.favorites,
icon: faStar
},
diff --git a/src/client/pages/featured.vue b/src/client/pages/featured.vue
index 3866c4b489..cd7343f583 100644
--- a/src/client/pages/featured.vue
+++ b/src/client/pages/featured.vue
@@ -9,6 +9,7 @@ import { defineComponent } from 'vue';
import { faFireAlt } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -17,7 +18,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.featured,
icon: faFireAlt
},
diff --git a/src/client/pages/follow-requests.vue b/src/client/pages/follow-requests.vue
index 64e6fa03e6..309c5b4fdf 100644
--- a/src/client/pages/follow-requests.vue
+++ b/src/client/pages/follow-requests.vue
@@ -35,6 +35,7 @@ import { faUserClock, faCheck, faTimes } from '@fortawesome/free-solid-svg-icons
import MkPagination from '@client/components/ui/pagination.vue';
import { userPage, acct } from '../filters/user';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -43,7 +44,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.followRequests,
icon: faUserClock,
},
diff --git a/src/client/pages/instance/abuses.vue b/src/client/pages/instance/abuses.vue
index d7d7697ebd..9727c160ba 100644
--- a/src/client/pages/instance/abuses.vue
+++ b/src/client/pages/instance/abuses.vue
@@ -72,6 +72,7 @@ import MkSelect from '@client/components/ui/select.vue';
import MkPagination from '@client/components/ui/pagination.vue';
import { acct } from '../../filters/user';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -83,7 +84,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.abuseReports,
icon: faExclamationCircle
},
diff --git a/src/client/pages/instance/announcements.vue b/src/client/pages/instance/announcements.vue
index 15e5f389bc..426199c163 100644
--- a/src/client/pages/instance/announcements.vue
+++ b/src/client/pages/instance/announcements.vue
@@ -34,6 +34,7 @@ import MkButton from '@client/components/ui/button.vue';
import MkInput from '@client/components/ui/input.vue';
import MkTextarea from '@client/components/ui/textarea.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -44,7 +45,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.announcements,
icon: faBroadcastTower
},
diff --git a/src/client/pages/instance/emojis.vue b/src/client/pages/instance/emojis.vue
index 01e207f491..722ed0063f 100644
--- a/src/client/pages/instance/emojis.vue
+++ b/src/client/pages/instance/emojis.vue
@@ -59,6 +59,7 @@ import MkPagination from '@client/components/ui/pagination.vue';
import MkTab from '@client/components/tab.vue';
import { selectFile } from '@client/scripts/select-file';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -70,7 +71,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.customEmojis,
icon: faLaugh,
action: {
diff --git a/src/client/pages/instance/federation.vue b/src/client/pages/instance/federation.vue
index ba452c5458..2a820e5baf 100644
--- a/src/client/pages/instance/federation.vue
+++ b/src/client/pages/instance/federation.vue
@@ -67,6 +67,7 @@ import MkSelect from '@client/components/ui/select.vue';
import MkPagination from '@client/components/ui/pagination.vue';
import MkInstanceInfo from './instance.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -78,7 +79,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.federation,
icon: faGlobe
},
diff --git a/src/client/pages/instance/files.vue b/src/client/pages/instance/files.vue
index aa66713789..a1f134f558 100644
--- a/src/client/pages/instance/files.vue
+++ b/src/client/pages/instance/files.vue
@@ -71,6 +71,7 @@ import MkPagination from '@client/components/ui/pagination.vue';
import MkDriveFileThumbnail from '@client/components/drive-file-thumbnail.vue';
import bytes from '@client/filters/bytes';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -83,7 +84,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.files,
icon: faCloud
},
diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue
index 5a35309ed4..7e34976938 100644
--- a/src/client/pages/instance/index.vue
+++ b/src/client/pages/instance/index.vue
@@ -70,6 +70,7 @@ import number from '../../filters/number';
import MkInstanceInfo from './instance.vue';
import XMetrics from './index.metrics.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -85,7 +86,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
tabs: [{
id: 'index',
title: null,
diff --git a/src/client/pages/instance/logs.vue b/src/client/pages/instance/logs.vue
index de1e81750f..f27546a401 100644
--- a/src/client/pages/instance/logs.vue
+++ b/src/client/pages/instance/logs.vue
@@ -37,6 +37,7 @@ import MkInput from '@client/components/ui/input.vue';
import MkSelect from '@client/components/ui/select.vue';
import MkTextarea from '@client/components/ui/textarea.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -48,7 +49,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.serverLogs,
icon: faStream
},
diff --git a/src/client/pages/instance/queue.vue b/src/client/pages/instance/queue.vue
index 17c8430a01..249babcf41 100644
--- a/src/client/pages/instance/queue.vue
+++ b/src/client/pages/instance/queue.vue
@@ -21,6 +21,7 @@ import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
import MkButton from '@client/components/ui/button.vue';
import XQueue from './queue.chart.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -30,7 +31,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.jobQueue,
icon: faExchangeAlt,
},
diff --git a/src/client/pages/instance/relays.vue b/src/client/pages/instance/relays.vue
index ef11366a14..d97a07cbb2 100644
--- a/src/client/pages/instance/relays.vue
+++ b/src/client/pages/instance/relays.vue
@@ -28,6 +28,7 @@ import { faSave, faTrashAlt } from '@fortawesome/free-regular-svg-icons';
import MkButton from '@client/components/ui/button.vue';
import MkInput from '@client/components/ui/input.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -37,7 +38,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.relays,
icon: faProjectDiagram,
},
diff --git a/src/client/pages/instance/settings.vue b/src/client/pages/instance/settings.vue
index 891eba3cf0..660a3d4fe3 100644
--- a/src/client/pages/instance/settings.vue
+++ b/src/client/pages/instance/settings.vue
@@ -261,6 +261,7 @@ import { url } from '@client/config';
import getAcct from '@/misc/acct/render';
import * as os from '@client/os';
import { fetchInstance } from '@client/instance';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -274,7 +275,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.instance,
icon: faCog,
},
diff --git a/src/client/pages/instance/users.vue b/src/client/pages/instance/users.vue
index 013eed3971..9452a91eae 100644
--- a/src/client/pages/instance/users.vue
+++ b/src/client/pages/instance/users.vue
@@ -89,6 +89,7 @@ import MkSelect from '@client/components/ui/select.vue';
import MkPagination from '@client/components/ui/pagination.vue';
import { acct } from '../../filters/user';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -100,7 +101,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.users,
icon: faUsers,
action: {
diff --git a/src/client/pages/mentions.vue b/src/client/pages/mentions.vue
index 5bd051453a..042c3a498b 100644
--- a/src/client/pages/mentions.vue
+++ b/src/client/pages/mentions.vue
@@ -9,6 +9,7 @@ import { defineComponent } from 'vue';
import { faAt } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -17,7 +18,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.mentions,
icon: faAt
},
diff --git a/src/client/pages/messages.vue b/src/client/pages/messages.vue
index 02aa9c6fd3..09d92e51ba 100644
--- a/src/client/pages/messages.vue
+++ b/src/client/pages/messages.vue
@@ -9,6 +9,7 @@ import { defineComponent } from 'vue';
import { faEnvelope } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -17,7 +18,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.directNotes,
icon: faEnvelope
},
diff --git a/src/client/pages/messaging/index.vue b/src/client/pages/messaging/index.vue
index 114a01ec3c..9510349d5c 100644
--- a/src/client/pages/messaging/index.vue
+++ b/src/client/pages/messaging/index.vue
@@ -43,6 +43,7 @@ import getAcct from '@/misc/acct/render';
import MkButton from '@client/components/ui/button.vue';
import { acct } from '../../filters/user';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -51,7 +52,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.messaging,
icon: faComments
},
diff --git a/src/client/pages/messaging/messaging-room.vue b/src/client/pages/messaging/messaging-room.vue
index 8473bb36c2..dae4590213 100644
--- a/src/client/pages/messaging/messaging-room.vue
+++ b/src/client/pages/messaging/messaging-room.vue
@@ -47,6 +47,7 @@ import { isBottom, onScrollBottom, scroll } from '@client/scripts/scroll';
import * as os from '@client/os';
import { popout } from '@client/scripts/popout';
import * as sound from '@client/scripts/sound';
+import * as symbols from '@client/symbols';
const Component = defineComponent({
components: {
@@ -70,7 +71,7 @@ const Component = defineComponent({
data() {
return {
- INFO: computed(() => !this.fetching ? this.user ? {
+ [symbols.PAGE_INFO]: computed(() => !this.fetching ? this.user ? {
userName: this.user,
avatar: this.user,
action: {
diff --git a/src/client/pages/mfm-cheat-sheet.vue b/src/client/pages/mfm-cheat-sheet.vue
index 4452604e4e..b30c3414e2 100644
--- a/src/client/pages/mfm-cheat-sheet.vue
+++ b/src/client/pages/mfm-cheat-sheet.vue
@@ -272,6 +272,7 @@
import { defineComponent } from 'vue';
import { faQuestionCircle } from '@fortawesome/free-regular-svg-icons';
import MkTextarea from '@client/components/ui/textarea.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -280,7 +281,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._mfm.cheatSheet,
icon: faQuestionCircle,
},
diff --git a/src/client/pages/my-antennas/index.vue b/src/client/pages/my-antennas/index.vue
index f4d5f4aad6..dfb752b831 100644
--- a/src/client/pages/my-antennas/index.vue
+++ b/src/client/pages/my-antennas/index.vue
@@ -18,6 +18,7 @@ import { faSatellite, faPlus } from '@fortawesome/free-solid-svg-icons';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import XAntenna from './index.antenna.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -28,7 +29,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.manageAntennas,
icon: faSatellite,
action: {
diff --git a/src/client/pages/my-clips/index.vue b/src/client/pages/my-clips/index.vue
index d29d147e87..be69e523a0 100644
--- a/src/client/pages/my-clips/index.vue
+++ b/src/client/pages/my-clips/index.vue
@@ -19,6 +19,7 @@ import { faPlus, faPaperclip } from '@fortawesome/free-solid-svg-icons';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -28,7 +29,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.clip,
icon: faPaperclip,
action: {
diff --git a/src/client/pages/my-groups/group.vue b/src/client/pages/my-groups/group.vue
index 8d0d8716c7..878d14cec4 100644
--- a/src/client/pages/my-groups/group.vue
+++ b/src/client/pages/my-groups/group.vue
@@ -39,6 +39,7 @@ import { faTimes, faUsers } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -54,7 +55,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.group ? {
+ [symbols.PAGE_INFO]: computed(() => this.group ? {
title: this.group.name,
icon: faUsers,
} : null),
diff --git a/src/client/pages/my-groups/index.vue b/src/client/pages/my-groups/index.vue
index 2bc0d36b98..5125ce3f4f 100644
--- a/src/client/pages/my-groups/index.vue
+++ b/src/client/pages/my-groups/index.vue
@@ -54,6 +54,7 @@ import MkContainer from '@client/components/ui/container.vue';
import MkAvatars from '@client/components/avatars.vue';
import MkTab from '@client/components/tab.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -66,7 +67,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.groups,
icon: faUsers
},
diff --git a/src/client/pages/my-lists/index.vue b/src/client/pages/my-lists/index.vue
index bbb2192aa1..e680b90d1a 100644
--- a/src/client/pages/my-lists/index.vue
+++ b/src/client/pages/my-lists/index.vue
@@ -16,6 +16,7 @@ import { faListUl, faPlus } from '@fortawesome/free-solid-svg-icons';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -25,7 +26,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.manageLists,
icon: faListUl,
action: {
diff --git a/src/client/pages/my-lists/list.vue b/src/client/pages/my-lists/list.vue
index dcaae222cc..285c48695a 100644
--- a/src/client/pages/my-lists/list.vue
+++ b/src/client/pages/my-lists/list.vue
@@ -38,6 +38,7 @@ import { faTimes, faListUl } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -46,7 +47,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.list ? {
+ [symbols.PAGE_INFO]: computed(() => this.list ? {
title: this.list.name,
icon: faListUl,
} : null),
diff --git a/src/client/pages/not-found.vue b/src/client/pages/not-found.vue
index 61ca3870c5..b13bdac2b8 100644
--- a/src/client/pages/not-found.vue
+++ b/src/client/pages/not-found.vue
@@ -11,11 +11,12 @@
import { defineComponent } from 'vue';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.notFound,
icon: faExclamationTriangle
},
diff --git a/src/client/pages/note.vue b/src/client/pages/note.vue
index 6debb611fd..921e73c0bc 100644
--- a/src/client/pages/note.vue
+++ b/src/client/pages/note.vue
@@ -44,6 +44,7 @@ import XNotes from '@client/components/notes.vue';
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';
export default defineComponent({
components: {
@@ -61,7 +62,7 @@ export default defineComponent({
},
data() {
return {
- INFO: computed(() => this.note ? {
+ [symbols.PAGE_INFO]: computed(() => this.note ? {
title: this.$ts.note,
avatar: this.note.user,
} : null),
diff --git a/src/client/pages/notifications.vue b/src/client/pages/notifications.vue
index 19b1726759..6f38d7739f 100644
--- a/src/client/pages/notifications.vue
+++ b/src/client/pages/notifications.vue
@@ -10,6 +10,7 @@ import { faBell } 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';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -18,7 +19,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.notifications,
icon: faBell
},
diff --git a/src/client/pages/page-editor/page-editor.vue b/src/client/pages/page-editor/page-editor.vue
index 79e3bfdf9a..148f5f8c4d 100644
--- a/src/client/pages/page-editor/page-editor.vue
+++ b/src/client/pages/page-editor/page-editor.vue
@@ -108,6 +108,7 @@ import { url } from '@client/config';
import { collectPageVars } from '@client/scripts/collect-page-vars';
import * as os from '@client/os';
import { selectFile } from '@client/scripts/select-file';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -132,7 +133,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => {
+ [symbols.PAGE_INFO]: computed(() => {
let title = this.$ts._pages.newPage;
if (this.initPageId) {
title = this.$ts._pages.editPage;
diff --git a/src/client/pages/page.vue b/src/client/pages/page.vue
index 121383a7a6..6dda65f50f 100644
--- a/src/client/pages/page.vue
+++ b/src/client/pages/page.vue
@@ -37,6 +37,7 @@ import { faHeart as faHeartS } from '@fortawesome/free-solid-svg-icons';
import { faHeart as faHeartR } from '@fortawesome/free-regular-svg-icons';
import XPage from '@client/components/page/page.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -56,7 +57,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.page ? {
+ [symbols.PAGE_INFO]: computed(() => this.page ? {
title: computed(() => this.page.title || this.page.name),
avatar: this.page.user,
} : null),
diff --git a/src/client/pages/pages.vue b/src/client/pages/pages.vue
index 9bedda04ef..d7e5f9a1df 100644
--- a/src/client/pages/pages.vue
+++ b/src/client/pages/pages.vue
@@ -37,6 +37,7 @@ import MkPagePreview from '@client/components/page-preview.vue';
import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import MkTab from '@client/components/tab.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -44,7 +45,7 @@ export default defineComponent({
},
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.pages,
icon: faStickyNote,
action: {
diff --git a/src/client/pages/preview.vue b/src/client/pages/preview.vue
index 0b0293f69a..bd4e08db62 100644
--- a/src/client/pages/preview.vue
+++ b/src/client/pages/preview.vue
@@ -8,6 +8,7 @@
import { defineComponent } from 'vue';
import { faEye } from '@fortawesome/free-solid-svg-icons';
import MkSample from '@client/components/sample.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -16,7 +17,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.preview,
icon: faEye,
},
diff --git a/src/client/pages/reversi/game.vue b/src/client/pages/reversi/game.vue
index 3a88b02583..896dbc39cc 100644
--- a/src/client/pages/reversi/game.vue
+++ b/src/client/pages/reversi/game.vue
@@ -10,6 +10,7 @@ import GameSetting from './game.setting.vue';
import GameBoard from './game.board.vue';
import * as os from '@client/os';
import { faGamepad } from '@fortawesome/free-solid-svg-icons';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -26,7 +27,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._reversi.reversi,
icon: faGamepad
},
diff --git a/src/client/pages/reversi/index.vue b/src/client/pages/reversi/index.vue
index b6a1db1161..d590bbeb9f 100644
--- a/src/client/pages/reversi/index.vue
+++ b/src/client/pages/reversi/index.vue
@@ -65,6 +65,7 @@ import * as os from '@client/os';
import MkButton from '@client/components/ui/button.vue';
import MkFolder from '@client/components/ui/folder.vue';
import { faGamepad } from '@fortawesome/free-solid-svg-icons';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -75,7 +76,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._reversi.reversi,
icon: faGamepad
},
diff --git a/src/client/pages/room/room.vue b/src/client/pages/room/room.vue
index e6e2809725..e1de52b8f1 100644
--- a/src/client/pages/room/room.vue
+++ b/src/client/pages/room/room.vue
@@ -63,6 +63,7 @@ import MkSelect from '@client/components/ui/select.vue';
import { selectFile } from '@client/scripts/select-file';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
+import * as symbols from '@client/symbols';
let room: Room;
@@ -82,7 +83,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.user ? {
+ [symbols.PAGE_INFO]: computed(() => this.user ? {
title: this.$ts.room,
avatar: this.user,
} : null),
diff --git a/src/client/pages/scratchpad.vue b/src/client/pages/scratchpad.vue
index febc9c5016..a5107bd526 100644
--- a/src/client/pages/scratchpad.vue
+++ b/src/client/pages/scratchpad.vue
@@ -33,6 +33,7 @@ import MkContainer from '@client/components/ui/container.vue';
import MkButton from '@client/components/ui/button.vue';
import { createAiScriptEnv } from '@client/scripts/aiscript/api';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -43,7 +44,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.scratchpad,
icon: faTerminal,
},
diff --git a/src/client/pages/search.vue b/src/client/pages/search.vue
index 28d2aec992..b670714730 100644
--- a/src/client/pages/search.vue
+++ b/src/client/pages/search.vue
@@ -11,6 +11,7 @@ import { computed, defineComponent } from 'vue';
import { faSearch } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -19,7 +20,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: computed(() => this.$t('searchWith', { q: this.$route.query.q })),
icon: faSearch
},
diff --git a/src/client/pages/settings/2fa.vue b/src/client/pages/settings/2fa.vue
index 48f1bc6e7b..361611bcb2 100644
--- a/src/client/pages/settings/2fa.vue
+++ b/src/client/pages/settings/2fa.vue
@@ -79,6 +79,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -90,7 +91,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.twoStepAuthentication,
icon: faLock
},
diff --git a/src/client/pages/settings/account-info.vue b/src/client/pages/settings/account-info.vue
index 1b8baadf44..955a0f7845 100644
--- a/src/client/pages/settings/account-info.vue
+++ b/src/client/pages/settings/account-info.vue
@@ -143,6 +143,7 @@ import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
import number from '@client/filters/number';
import bytes from '@client/filters/bytes';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -159,7 +160,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.accountInfo,
icon: faInfoCircle
},
@@ -168,7 +169,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
os.api('users/stats', {
userId: this.$i.id
diff --git a/src/client/pages/settings/api.vue b/src/client/pages/settings/api.vue
index da9ed88b55..9b53399870 100644
--- a/src/client/pages/settings/api.vue
+++ b/src/client/pages/settings/api.vue
@@ -16,6 +16,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -28,7 +29,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: 'API',
icon: faKey
},
@@ -37,7 +38,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/apps.vue b/src/client/pages/settings/apps.vue
index d0fcacfaed..82bf9b7f8f 100644
--- a/src/client/pages/settings/apps.vue
+++ b/src/client/pages/settings/apps.vue
@@ -47,6 +47,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -58,7 +59,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.installedApps,
icon: faPlug,
},
@@ -74,7 +75,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/deck.vue b/src/client/pages/settings/deck.vue
index ce4099db2e..84992adc09 100644
--- a/src/client/pages/settings/deck.vue
+++ b/src/client/pages/settings/deck.vue
@@ -41,6 +41,7 @@ import FormGroup from '@client/components/form/group.vue';
import { deckStore } from '@client/ui/deck/deck-store';
import * as os from '@client/os';
import { unisonReload } from '@client/scripts/unison-reload';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -56,7 +57,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.deck,
icon: faColumns
},
@@ -87,7 +88,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/drive.vue b/src/client/pages/settings/drive.vue
index 4684d3b554..675b025ab8 100644
--- a/src/client/pages/settings/drive.vue
+++ b/src/client/pages/settings/drive.vue
@@ -44,6 +44,7 @@ import FormKeyValueView from '@client/components/form/key-value-view.vue';
import FormBase from '@client/components/form/base.vue';
import * as os from '@client/os';
import bytes from '@client/filters/bytes';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -57,7 +58,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.drive,
icon: faCloud
},
@@ -100,7 +101,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/email-address.vue b/src/client/pages/settings/email-address.vue
index 56e9973aeb..97c5d396ce 100644
--- a/src/client/pages/settings/email-address.vue
+++ b/src/client/pages/settings/email-address.vue
@@ -20,6 +20,7 @@ import FormInput from '@client/components/form/input.vue';
import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -33,7 +34,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.emailAddress,
icon: faEnvelope
},
@@ -48,7 +49,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/email-notification.vue b/src/client/pages/settings/email-notification.vue
index 5894b8475c..cc28bac4b0 100644
--- a/src/client/pages/settings/email-notification.vue
+++ b/src/client/pages/settings/email-notification.vue
@@ -32,6 +32,8 @@ import FormSwitch from '@client/components/form/switch.vue';
import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -45,7 +47,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.emailNotification,
icon: faEnvelope
},
@@ -69,7 +71,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/email.vue b/src/client/pages/settings/email.vue
index bd2e4634d1..04f433f9ae 100644
--- a/src/client/pages/settings/email.vue
+++ b/src/client/pages/settings/email.vue
@@ -30,6 +30,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormSwitch from '@client/components/form/switch.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -44,7 +45,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.email,
icon: faEnvelope
},
@@ -53,7 +54,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/experimental-features.vue b/src/client/pages/settings/experimental-features.vue
index 1cbda219d7..25453b7e10 100644
--- a/src/client/pages/settings/experimental-features.vue
+++ b/src/client/pages/settings/experimental-features.vue
@@ -15,6 +15,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -31,7 +32,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.experimentalFeatures,
icon: faFlask
},
@@ -40,7 +41,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/general.vue b/src/client/pages/settings/general.vue
index 6612fc0ca2..7e80e2249f 100644
--- a/src/client/pages/settings/general.vue
+++ b/src/client/pages/settings/general.vue
@@ -98,6 +98,7 @@ import { defaultStore } from '@client/store';
import { ColdDeviceStorage } from '@client/store';
import * as os from '@client/os';
import { unisonReload } from '@client/scripts/unison-reload';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -115,7 +116,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.general,
icon: faCogs
},
@@ -191,7 +192,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/import-export.vue b/src/client/pages/settings/import-export.vue
index 2f80ef0c6d..1591a9d548 100644
--- a/src/client/pages/settings/import-export.vue
+++ b/src/client/pages/settings/import-export.vue
@@ -34,6 +34,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
import { selectFile } from '@client/scripts/select-file';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -46,7 +47,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.importAndExport,
icon: faBoxes
},
@@ -55,7 +56,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 3000356713..a7ec086bb5 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -53,6 +53,7 @@ import FormButton from '@client/components/form/button.vue';
import { scroll } from '@client/scripts/scroll';
import { signout } from '@client/account';
import { unisonReload } from '@client/scripts/unison-reload';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -148,7 +149,7 @@ export default defineComponent({
});
return {
- INFO,
+ [symbols.PAGE_INFO]: INFO,
narrow,
view,
el,
diff --git a/src/client/pages/settings/integration.vue b/src/client/pages/settings/integration.vue
index e2ab11841e..49f955bc35 100644
--- a/src/client/pages/settings/integration.vue
+++ b/src/client/pages/settings/integration.vue
@@ -37,6 +37,7 @@ import { apiUrl } from '@client/config';
import FormBase from '@client/components/form/base.vue';
import MkButton from '@client/components/ui/button.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -48,7 +49,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.integration,
icon: faShareAlt
},
@@ -80,7 +81,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
document.cookie = `igi=${this.$i.token}; path=/;` +
` max-age=31536000;` +
diff --git a/src/client/pages/settings/mute-block.vue b/src/client/pages/settings/mute-block.vue
index f7eebbb9cc..d1c3d5f29e 100644
--- a/src/client/pages/settings/mute-block.vue
+++ b/src/client/pages/settings/mute-block.vue
@@ -42,6 +42,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import { userPage } from '@client/filters/user';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -57,7 +58,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.muteAndBlock,
icon: faBan
},
@@ -74,7 +75,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/notifications.vue b/src/client/pages/settings/notifications.vue
index b26c2805ad..ea72bcfee8 100644
--- a/src/client/pages/settings/notifications.vue
+++ b/src/client/pages/settings/notifications.vue
@@ -19,6 +19,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import { notificationTypes } from '../../../types';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -32,7 +33,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.notifications,
icon: faBell
},
@@ -41,7 +42,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/other.vue b/src/client/pages/settings/other.vue
index e5cfc5ee1e..2bd9c2476c 100644
--- a/src/client/pages/settings/other.vue
+++ b/src/client/pages/settings/other.vue
@@ -44,6 +44,7 @@ import { debug } from '@client/config';
import { defaultStore } from '@client/store';
import { signout } from '@client/account';
import { unisonReload } from '@client/scripts/unison-reload';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -59,7 +60,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.other,
icon: faEllipsisH
},
@@ -73,7 +74,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/plugin.install.vue b/src/client/pages/settings/plugin.install.vue
index 70c302b36e..ecda0a4e0c 100644
--- a/src/client/pages/settings/plugin.install.vue
+++ b/src/client/pages/settings/plugin.install.vue
@@ -29,6 +29,7 @@ import MkInfo from '@client/components/ui/info.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { unisonReload } from '@client/scripts/unison-reload';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -46,7 +47,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._plugin.install,
icon: faDownload
},
@@ -56,7 +57,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/plugin.manage.vue b/src/client/pages/settings/plugin.manage.vue
index 0bc04493a7..16d2225d0b 100644
--- a/src/client/pages/settings/plugin.manage.vue
+++ b/src/client/pages/settings/plugin.manage.vue
@@ -42,6 +42,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -58,7 +59,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._plugin.manage,
icon: faPlug
},
@@ -68,7 +69,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/plugin.vue b/src/client/pages/settings/plugin.vue
index b101420d0d..bee4e57ec3 100644
--- a/src/client/pages/settings/plugin.vue
+++ b/src/client/pages/settings/plugin.vue
@@ -13,6 +13,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormLink from '@client/components/form/link.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -24,7 +25,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.plugins,
icon: faPlug
},
@@ -34,7 +35,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
});
diff --git a/src/client/pages/settings/privacy.vue b/src/client/pages/settings/privacy.vue
index f58faab0b5..0542c527f9 100644
--- a/src/client/pages/settings/privacy.vue
+++ b/src/client/pages/settings/privacy.vue
@@ -36,6 +36,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
import { defaultStore } from '@client/store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -49,7 +50,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.privacy,
icon: faLockOpen
},
@@ -74,7 +75,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/profile.vue b/src/client/pages/settings/profile.vue
index 61f0a8e198..5ec580a206 100644
--- a/src/client/pages/settings/profile.vue
+++ b/src/client/pages/settings/profile.vue
@@ -59,6 +59,7 @@ import FormGroup from '@client/components/form/group.vue';
import { host, langs } from '@client/config';
import { selectFile } from '@client/scripts/select-file';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -75,7 +76,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.profile,
icon: faUser
},
@@ -136,7 +137,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/reaction.vue b/src/client/pages/settings/reaction.vue
index 170f8c9a0a..0293f53fa8 100644
--- a/src/client/pages/settings/reaction.vue
+++ b/src/client/pages/settings/reaction.vue
@@ -45,6 +45,7 @@ import FormBase from '@client/components/form/base.vue';
import FormButton from '@client/components/form/button.vue';
import * as os from '@client/os';
import { defaultStore } from '@client/store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -59,7 +60,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.reaction,
icon: faLaugh,
action: {
@@ -87,7 +88,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/registry.keys.vue b/src/client/pages/settings/registry.keys.vue
index 243672000b..d2fd75aca1 100644
--- a/src/client/pages/settings/registry.keys.vue
+++ b/src/client/pages/settings/registry.keys.vue
@@ -33,6 +33,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -56,7 +57,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.registry,
icon: faCogs
},
@@ -71,7 +72,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
this.fetch();
},
diff --git a/src/client/pages/settings/registry.value.vue b/src/client/pages/settings/registry.value.vue
index e760e4b1e5..bba92bb746 100644
--- a/src/client/pages/settings/registry.value.vue
+++ b/src/client/pages/settings/registry.value.vue
@@ -48,6 +48,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -74,7 +75,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.registry,
icon: faCogs
},
@@ -91,7 +92,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
this.fetch();
},
diff --git a/src/client/pages/settings/registry.vue b/src/client/pages/settings/registry.vue
index 5e061f95f8..a09c309d33 100644
--- a/src/client/pages/settings/registry.vue
+++ b/src/client/pages/settings/registry.vue
@@ -21,6 +21,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -38,7 +39,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.registry,
icon: faCogs
},
@@ -51,7 +52,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/security.vue b/src/client/pages/settings/security.vue
index 7d6aaa652f..64733c55a2 100644
--- a/src/client/pages/settings/security.vue
+++ b/src/client/pages/settings/security.vue
@@ -32,6 +32,7 @@ import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormPagination from '@client/components/form/pagination.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -46,7 +47,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.security,
icon: faLock
},
@@ -59,7 +60,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/sidebar.vue b/src/client/pages/settings/sidebar.vue
index bbb1b43afb..adeec2f636 100644
--- a/src/client/pages/settings/sidebar.vue
+++ b/src/client/pages/settings/sidebar.vue
@@ -29,6 +29,7 @@ import FormButton from '@client/components/form/button.vue';
import * as os from '@client/os';
import { sidebarDef } from '@client/sidebar';
import { defaultStore } from '@client/store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -42,7 +43,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.sidebar,
icon: faListUl
},
@@ -65,7 +66,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/sounds.vue b/src/client/pages/settings/sounds.vue
index 8305744109..54be003115 100644
--- a/src/client/pages/settings/sounds.vue
+++ b/src/client/pages/settings/sounds.vue
@@ -28,6 +28,7 @@ import FormGroup from '@client/components/form/group.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { playFile } from '@client/scripts/sound';
+import * as symbols from '@client/symbols';
const soundsTypes = [
null,
@@ -68,7 +69,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.sounds,
icon: faMusic
},
@@ -100,7 +101,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/theme.install.vue b/src/client/pages/settings/theme.install.vue
index 6184383657..744d1aba44 100644
--- a/src/client/pages/settings/theme.install.vue
+++ b/src/client/pages/settings/theme.install.vue
@@ -26,6 +26,7 @@ import { applyTheme, validateTheme } from '@client/scripts/theme';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { addTheme, getThemes } from '@client/theme-store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -42,7 +43,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._theme.install,
icon: faDownload
},
@@ -52,7 +53,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/theme.manage.vue b/src/client/pages/settings/theme.manage.vue
index da7bb27030..c05576b276 100644
--- a/src/client/pages/settings/theme.manage.vue
+++ b/src/client/pages/settings/theme.manage.vue
@@ -38,6 +38,7 @@ import copyToClipboard from '@client/scripts/copy-to-clipboard';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { getThemes, removeTheme } from '@client/theme-store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -54,7 +55,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts._theme.manage,
icon: faFolderOpen
},
@@ -82,7 +83,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/settings/theme.vue b/src/client/pages/settings/theme.vue
index 14cdb533ac..4aba6ea4de 100644
--- a/src/client/pages/settings/theme.vue
+++ b/src/client/pages/settings/theme.vue
@@ -78,6 +78,7 @@ import { ColdDeviceStorage } from '@client/store';
import { i18n } from '@client/i18n';
import { defaultStore } from '@client/store';
import { fetchThemes, getThemes } from '@client/theme-store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -144,7 +145,7 @@ export default defineComponent({
});
return {
- INFO,
+ [symbols.PAGE_INFO]: INFO,
darkThemes,
lightThemes,
darkTheme,
diff --git a/src/client/pages/settings/update.vue b/src/client/pages/settings/update.vue
index bc26af4211..fb1458da81 100644
--- a/src/client/pages/settings/update.vue
+++ b/src/client/pages/settings/update.vue
@@ -41,6 +41,7 @@ import FormKeyValueView from '@client/components/form/key-value-view.vue';
import MkInfo from '@client/components/ui/info.vue';
import * as os from '@client/os';
import { version, instanceName } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -58,7 +59,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: 'Misskey Update',
icon: faSyncAlt
},
@@ -70,7 +71,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
os.api('meta', {
detail: false
diff --git a/src/client/pages/settings/word-mute.vue b/src/client/pages/settings/word-mute.vue
index 26cc7a3d85..029eb5d415 100644
--- a/src/client/pages/settings/word-mute.vue
+++ b/src/client/pages/settings/word-mute.vue
@@ -41,6 +41,7 @@ import MkTab from '@client/components/tab.vue';
import MkInfo from '@client/components/ui/info.vue';
import * as os from '@client/os';
import number from '@client/filters/number';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -56,7 +57,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.wordMute,
icon: faCommentSlash
},
@@ -92,7 +93,7 @@ export default defineComponent({
},
mounted() {
- this.$emit('info', this.INFO);
+ this.$emit('info', this[symbols.PAGE_INFO]);
},
methods: {
diff --git a/src/client/pages/share.vue b/src/client/pages/share.vue
index 41ce4d21f7..313b73b9cb 100644
--- a/src/client/pages/share.vue
+++ b/src/client/pages/share.vue
@@ -17,6 +17,7 @@ import { faShareAlt } from '@fortawesome/free-solid-svg-icons';
import MkButton from '@client/components/ui/button.vue';
import XPostForm from '@client/components/post-form.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -26,7 +27,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.share,
icon: faShareAlt
},
diff --git a/src/client/pages/tag.vue b/src/client/pages/tag.vue
index 7561eba2ed..813181dd1f 100644
--- a/src/client/pages/tag.vue
+++ b/src/client/pages/tag.vue
@@ -9,6 +9,7 @@ import { defineComponent } from 'vue';
import { faHashtag } from '@fortawesome/free-solid-svg-icons';
import Progress from '@client/scripts/loading';
import XNotes from '@client/components/notes.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -24,7 +25,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.tag,
icon: faHashtag
},
diff --git a/src/client/pages/test.vue b/src/client/pages/test.vue
index af8395b2c3..cbfdd16c80 100644
--- a/src/client/pages/test.vue
+++ b/src/client/pages/test.vue
@@ -139,6 +139,7 @@ import MkSwitch from '@client/components/ui/switch.vue';
import MkTextarea from '@client/components/ui/textarea.vue';
import MkRadio from '@client/components/ui/radio.vue';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -151,7 +152,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: 'TEST',
icon: faExclamationTriangle
},
diff --git a/src/client/pages/theme-editor.vue b/src/client/pages/theme-editor.vue
index a28510dcde..8d0ba3e18c 100644
--- a/src/client/pages/theme-editor.vue
+++ b/src/client/pages/theme-editor.vue
@@ -67,6 +67,7 @@ import { host } from '@client/config';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { addTheme } from '@client/theme-store';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -78,7 +79,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: this.$ts.themeEditor,
icon: faPalette,
},
diff --git a/src/client/pages/timeline.vue b/src/client/pages/timeline.vue
index 0d8e5b0ec3..da81627122 100644
--- a/src/client/pages/timeline.vue
+++ b/src/client/pages/timeline.vue
@@ -44,6 +44,7 @@ import XTimeline from '@client/components/timeline.vue';
import XPostForm from '@client/components/post-form.vue';
import { scroll } from '@client/scripts/scroll';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
name: 'timeline',
@@ -63,7 +64,7 @@ export default defineComponent({
menuOpened: false,
queue: 0,
width: 0,
- INFO: computed(() => ({
+ [symbols.PAGE_INFO]: computed(() => ({
title: this.$ts.timeline,
icon: this.src === 'local' ? faComments : this.src === 'social' ? faShareAlt : this.src === 'global' ? faGlobe : faHome,
action: {
diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue
index 18f78d270a..1adf57f600 100644
--- a/src/client/pages/user/index.vue
+++ b/src/client/pages/user/index.vue
@@ -237,6 +237,7 @@ import number from '../../filters/number';
import { userPage, acct as getAcct } from '../../filters/user';
import * as os from '@client/os';
import { url } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -268,7 +269,7 @@ export default defineComponent({
data() {
return {
- INFO: computed(() => this.user ? {
+ [symbols.PAGE_INFO]: computed(() => this.user ? {
userName: this.user,
avatar: this.user,
share: {
diff --git a/src/client/pages/v.vue b/src/client/pages/v.vue
index a9deea24b4..37a850b625 100644
--- a/src/client/pages/v.vue
+++ b/src/client/pages/v.vue
@@ -14,11 +14,12 @@
import { defineComponent } from 'vue';
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
import { version } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: 'Misskey',
icon: null
},
diff --git a/src/client/pages/welcome.vue b/src/client/pages/welcome.vue
index 845a304854..b6a715830d 100644
--- a/src/client/pages/welcome.vue
+++ b/src/client/pages/welcome.vue
@@ -11,6 +11,7 @@ import XSetup from './welcome.setup.vue';
import XEntrance from './welcome.entrance.a.vue';
import { instanceName } from '@client/config';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -20,7 +21,7 @@ export default defineComponent({
data() {
return {
- INFO: {
+ [symbols.PAGE_INFO]: {
title: instanceName,
icon: null
},
diff --git a/src/client/symbols.ts b/src/client/symbols.ts
new file mode 100644
index 0000000000..6913f29c28
--- /dev/null
+++ b/src/client/symbols.ts
@@ -0,0 +1 @@
+export const PAGE_INFO = Symbol('Page info');
diff --git a/src/client/ui/chat/side.vue b/src/client/ui/chat/side.vue
index a3c03b6d06..2f182175ba 100644
--- a/src/client/ui/chat/side.vue
+++ b/src/client/ui/chat/side.vue
@@ -17,6 +17,7 @@ import * as os from '@client/os';
import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { resolve } from '@client/router';
import { url } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -51,8 +52,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/ui/deck/main-column.vue b/src/client/ui/deck/main-column.vue
index 5a8c72d871..2206fa5e13 100644
--- a/src/client/ui/deck/main-column.vue
+++ b/src/client/ui/deck/main-column.vue
@@ -22,6 +22,7 @@ import XNotes from '@client/components/notes.vue';
import XHeader from '@client/ui/_common_/header.vue';
import { deckStore } from '@client/ui/deck/deck-store';
import * as os from '@client/os';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -51,8 +52,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/ui/default.side.vue b/src/client/ui/default.side.vue
index 3a32cb4e13..89b648244f 100644
--- a/src/client/ui/default.side.vue
+++ b/src/client/ui/default.side.vue
@@ -20,6 +20,7 @@ import * as os from '@client/os';
import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { resolve } from '@client/router';
import { url } from '@client/config';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -54,8 +55,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue
index 84d6c01094..78f754184b 100644
--- a/src/client/ui/default.vue
+++ b/src/client/ui/default.vue
@@ -63,6 +63,7 @@ import XCommon from './_common_/common.vue';
import XHeader from './_common_/header.vue';
import * as os from '@client/os';
import { sidebarDef } from '@client/sidebar';
+import * as symbols from '@client/symbols';
const DESKTOP_THRESHOLD = 1100;
const MOBILE_THRESHOLD = 600;
@@ -125,8 +126,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
document.title = `${this.pageInfo.title} | ${instanceName}`;
}
},
diff --git a/src/client/ui/universal.vue b/src/client/ui/universal.vue
index e1b368c25a..1387b02b2c 100644
--- a/src/client/ui/universal.vue
+++ b/src/client/ui/universal.vue
@@ -64,6 +64,7 @@ import XHeader from './_common_/header.vue';
import XSide from './default.side.vue';
import * as os from '@client/os';
import { sidebarDef } from '@client/sidebar';
+import * as symbols from '@client/symbols';
const DESKTOP_THRESHOLD = 1100;
@@ -144,8 +145,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
document.title = `${this.pageInfo.title} | ${instanceName}`;
}
},
diff --git a/src/client/ui/visitor/a.vue b/src/client/ui/visitor/a.vue
index ba4506ec56..1b080c9e82 100644
--- a/src/client/ui/visitor/a.vue
+++ b/src/client/ui/visitor/a.vue
@@ -49,6 +49,7 @@ import MkPagination from '@client/components/ui/pagination.vue';
import MkButton from '@client/components/ui/button.vue';
import XHeader from './header.vue';
import { ColdDeviceStorage } from '@client/store';
+import * as symbols from '@client/symbols';
const DESKTOP_THRESHOLD = 1100;
@@ -110,8 +111,8 @@ export default defineComponent({
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/ui/visitor/b.vue b/src/client/ui/visitor/b.vue
index 34690ec643..da2ae45180 100644
--- a/src/client/ui/visitor/b.vue
+++ b/src/client/ui/visitor/b.vue
@@ -61,6 +61,7 @@ import MkButton from '@client/components/ui/button.vue';
import XHeader from './header.vue';
import XKanban from './kanban.vue';
import { ColdDeviceStorage } from '@client/store';
+import * as symbols from '@client/symbols';
const DESKTOP_THRESHOLD = 1100;
@@ -124,8 +125,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
diff --git a/src/client/ui/zen.vue b/src/client/ui/zen.vue
index 321eb1a025..af3e53225e 100644
--- a/src/client/ui/zen.vue
+++ b/src/client/ui/zen.vue
@@ -28,6 +28,7 @@ import { faBell } from '@fortawesome/free-regular-svg-icons';
import { host } from '@client/config';
import XHeader from './_common_/header.vue';
import XCommon from './_common_/common.vue';
+import * as symbols from '@client/symbols';
export default defineComponent({
components: {
@@ -50,8 +51,8 @@ export default defineComponent({
methods: {
changePage(page) {
if (page == null) return;
- if (page.INFO) {
- this.pageInfo = page.INFO;
+ if (page[symbols.PAGE_INFO]) {
+ this.pageInfo = page[symbols.PAGE_INFO];
}
},
From fb8ed718cec074bb021bf7d594bbd42dba558ef0 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Sat, 10 Apr 2021 13:38:24 +0900
Subject: [PATCH 04/29] Improve UI
---
src/client/components/timeline.vue | 8 ++++++-
src/client/pages/note.vue | 6 +++++
src/client/pages/notifications.vue | 11 +++++++--
src/client/pages/timeline.vue | 11 +++++----
src/client/pages/user/index.vue | 4 ----
src/client/ui/_common_/header.vue | 38 +++++++++++++++++++++++-------
6 files changed, 57 insertions(+), 21 deletions(-)
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue
index c2ab0b005d..faa3984638 100644
--- a/src/client/components/timeline.vue
+++ b/src/client/components/timeline.vue
@@ -56,6 +56,7 @@ export default defineComponent({
includeLocalRenotes: this.$store.state.showLocalRenotes
},
query: {},
+ date: null
};
},
@@ -157,7 +158,7 @@ export default defineComponent({
endpoint: endpoint,
limit: 10,
params: init => ({
- untilDate: init ? undefined : (this.date ? this.date.getTime() : undefined),
+ untilDate: this.date?.getTime(),
...this.baseQuery, ...this.query
})
};
@@ -171,6 +172,11 @@ export default defineComponent({
methods: {
focus() {
this.$refs.tl.focus();
+ },
+
+ timetravel(date?: Date) {
+ this.date = date;
+ this.$refs.tl.reload();
}
}
});
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 @@
+
+
diff --git a/src/client/components/ui/modal-window.vue b/src/client/components/ui/modal-window.vue
index ca17ae6093..90b803801d 100644
--- a/src/client/components/ui/modal-window.vue
+++ b/src/client/components/ui/modal-window.vue
@@ -1,6 +1,6 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/client/ui/universal.widgets.vue b/src/client/ui/universal.widgets.vue
new file mode 100644
index 0000000000..35d3442bb2
--- /dev/null
+++ b/src/client/ui/universal.widgets.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/client/ui/zen.vue b/src/client/ui/zen.vue
index 9215a639b0..321eb1a025 100644
--- a/src/client/ui/zen.vue
+++ b/src/client/ui/zen.vue
@@ -94,7 +94,7 @@ export default defineComponent({
-webkit-backdrop-filter: blur(32px);
backdrop-filter: blur(32px);
background-color: var(--header);
- border-bottom: solid 1px var(--divider);
+ border-bottom: solid 0.5px var(--divider);
}
> main {
diff --git a/src/client/widgets/aiscript.vue b/src/client/widgets/aiscript.vue
index 84390866bd..f24e033593 100644
--- a/src/client/widgets/aiscript.vue
+++ b/src/client/widgets/aiscript.vue
@@ -122,7 +122,7 @@ export default defineComponent({
color: var(--fg);
background: transparent;
border: none;
- border-bottom: solid 1px var(--divider);
+ border-bottom: solid 0.5px var(--divider);
border-radius: 0;
box-sizing: border-box;
font: inherit;
@@ -147,7 +147,7 @@ export default defineComponent({
}
> .logs {
- border-top: solid 1px var(--divider);
+ border-top: solid 0.5px var(--divider);
text-align: left;
padding: 16px;
diff --git a/src/client/widgets/federation.vue b/src/client/widgets/federation.vue
index 6eb656ce05..f0a79a31a6 100644
--- a/src/client/widgets/federation.vue
+++ b/src/client/widgets/federation.vue
@@ -100,7 +100,7 @@ export default defineComponent({
display: flex;
align-items: center;
padding: 14px 16px;
- border-bottom: solid 1px var(--divider);
+ border-bottom: solid 0.5px var(--divider);
> img {
display: block;
diff --git a/src/client/widgets/job-queue.vue b/src/client/widgets/job-queue.vue
index aaf2b2fc8f..0b560ca56e 100644
--- a/src/client/widgets/job-queue.vue
+++ b/src/client/widgets/job-queue.vue
@@ -136,7 +136,7 @@ export default defineComponent({
padding: 16px;
&:not(:first-child) {
- border-top: solid 1px var(--divider);
+ border-top: solid 0.5px var(--divider);
}
> .label {
diff --git a/src/client/widgets/memo.vue b/src/client/widgets/memo.vue
index 4a7786312a..c3ab2934a8 100644
--- a/src/client/widgets/memo.vue
+++ b/src/client/widgets/memo.vue
@@ -77,7 +77,7 @@ export default defineComponent({
color: var(--fg);
background: transparent;
border: none;
- border-bottom: solid 1px var(--divider);
+ border-bottom: solid 0.5px var(--divider);
border-radius: 0;
box-sizing: border-box;
font: inherit;
diff --git a/src/client/widgets/trends.vue b/src/client/widgets/trends.vue
index 300e3b31de..cd7202f1f8 100644
--- a/src/client/widgets/trends.vue
+++ b/src/client/widgets/trends.vue
@@ -79,7 +79,7 @@ export default defineComponent({
display: flex;
align-items: center;
padding: 14px 16px;
- border-bottom: solid 1px var(--divider);
+ border-bottom: solid 0.5px var(--divider);
> .tag {
flex: 1;
From 45e5d8935362dc19d61ede2cfccadd2f4be42003 Mon Sep 17 00:00:00 2001
From: syuilo
+
diff --git a/src/client/components/ui/window.vue b/src/client/components/ui/window.vue
index 1613644c87..70676cdaf5 100644
--- a/src/client/components/ui/window.vue
+++ b/src/client/components/ui/window.vue
@@ -395,7 +395,7 @@ export default defineComponent({
position: fixed;
top: 0;
left: 0;
- z-index: 5000;
+ z-index: 10000; // mk-modalのと同じでなければならない
&.front {
z-index: 11000; // front指定の時は、mk-modalのよりも大きくなければならない
diff --git a/src/client/pages/api-console.vue b/src/client/pages/api-console.vue
index 5321f8e7ce..7deb18afa2 100644
--- a/src/client/pages/api-console.vue
+++ b/src/client/pages/api-console.vue
@@ -1,25 +1,29 @@
Date: Sun, 11 Apr 2021 23:49:13 +0900
Subject: [PATCH 15/29] Tweak UI
---
src/client/components/modal-page-window.vue | 4 ++--
src/client/pages/settings/index.vue | 8 ++++++--
src/client/style.scss | 1 -
src/client/ui/default.vue | 1 +
4 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/client/components/modal-page-window.vue b/src/client/components/modal-page-window.vue
index 6079c08f05..24511215da 100644
--- a/src/client/components/modal-page-window.vue
+++ b/src/client/components/modal-page-window.vue
@@ -69,8 +69,8 @@ export default defineComponent({
data() {
return {
- width: 850,
- height: 650,
+ width: 860,
+ height: 660,
pageInfo: null,
path: this.initialPath,
component: this.initialComponent,
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 5a21cf2ff3..eb7469c861 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -73,10 +73,11 @@ export default defineComponent({
},
setup(props, context) {
- const INFO = ref({
+ const indexInfo = {
title: i18n.locale.settings,
icon: faCog
- });
+ };
+ const INFO = ref(indexInfo);
const page = ref(props.initialPage);
const narrow = ref(false);
const view = ref(null);
@@ -152,6 +153,9 @@ export default defineComponent({
page.value = 'profile';
} else {
page.value = props.initialPage;
+ if (props.initialPage == null) {
+ INFO.value = indexInfo;
+ }
}
});
diff --git a/src/client/style.scss b/src/client/style.scss
index 62e3e3c93e..6768e21663 100644
--- a/src/client/style.scss
+++ b/src/client/style.scss
@@ -241,7 +241,6 @@ hr {
border-radius: var(--radius);
//border: var(--panelBorder);
box-shadow: var(--panelShadow);
- overflow: hidden;
overflow: clip;
}
diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue
index 78f754184b..1e5b52de8b 100644
--- a/src/client/ui/default.vue
+++ b/src/client/ui/default.vue
@@ -230,6 +230,7 @@ export default defineComponent({
> .main {
margin: 0;
+ padding-bottom: 92px;
border: none;
width: 100%;
border-radius: 0;
From 0265c85ba315c7a00d72c87de562335ba20ec4c9 Mon Sep 17 00:00:00 2001
From: syuilo
Date: Mon, 12 Apr 2021 00:05:13 +0900
Subject: [PATCH 16/29] full view
---
locales/ja-JP.yml | 2 ++
src/client/ui/default.vue | 32 +++++++++++++++++++++++++++++---
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 4c0dd2bc24..5eb3d736f2 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -714,6 +714,8 @@ clear: "クリア"
markAllAsRead: "全て既読にする"
goBack: "戻る"
unlikeConfirm: "いいね解除しますか?"
+fullView: "フルビュー"
+quitFullView: "フルビュー解除"
_email:
_follow:
diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue
index 1e5b52de8b..51d4c783ae 100644
--- a/src/client/ui/default.vue
+++ b/src/client/ui/default.vue
@@ -1,6 +1,6 @@
@@ -61,6 +61,11 @@ export default defineComponent({
required: false,
default: true,
},
+ scroll: {
+ type: Boolean,
+ required: false,
+ default: true,
+ },
},
emits: ['click', 'close', 'closed', 'ok'],
diff --git a/src/client/os.ts b/src/client/os.ts
index e1707531de..b159cf509d 100644
--- a/src/client/os.ts
+++ b/src/client/os.ts
@@ -203,6 +203,15 @@ export function pageWindow(path: string) {
}, {}, 'closed');
}
+export function modalPageWindow(path: string) {
+ const { component, props } = resolve(path);
+ popup(import('@client/components/modal-page-window.vue'), {
+ initialPath: path,
+ initialComponent: markRaw(component),
+ initialProps: props,
+ }, {}, 'closed');
+}
+
export function dialog(props: Record) {
return new Promise((resolve, reject) => {
popup(import('@client/components/dialog.vue'), props, {
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index a7ec086bb5..0387d66ae8 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -1,40 +1,42 @@
Date: Sun, 11 Apr 2021 21:31:38 +0900
Subject: [PATCH 14/29] Tweak UI
---
src/client/components/modal-page-window.vue | 4 +-
src/client/components/ui/window.vue | 2 +-
src/client/pages/api-console.vue | 44 +++++++++++----------
src/client/pages/settings/index.vue | 6 ++-
4 files changed, 33 insertions(+), 23 deletions(-)
diff --git a/src/client/components/modal-page-window.vue b/src/client/components/modal-page-window.vue
index a9a5c0ce57..6079c08f05 100644
--- a/src/client/components/modal-page-window.vue
+++ b/src/client/components/modal-page-window.vue
@@ -10,7 +10,9 @@
-
-
- {{ $ts.basicSettings }}
- {{ $ts.profile }}
- {{ $ts.privacy }}
- {{ $ts.reaction }}
- {{ $ts.drive }}
- {{ $ts.notifications }}
- {{ $ts.email }}
- {{ $ts.integration }}
- {{ $ts.security }}
-
-
- {{ $ts.clientSettings }}
- {{ $ts.general }}
- {{ $ts.theme }}
- {{ $ts.sidebar }}
- {{ $ts.sounds }}
- {{ $ts.plugins }}
-
-
- {{ $ts.otherSettings }}
- {{ $ts.importAndExport }}
- {{ $ts.muteAndBlock }}
- {{ $ts.wordMute }}
- API
- {{ $ts.other }}
-
-
- {{ $ts.clearCache }}
-
-
- {{ $ts.logout }}
-
-
+
@@ -64,7 +66,7 @@ export default defineComponent({
},
props: {
- page: {
+ initialPage: {
type: String,
required: false
}
@@ -75,6 +77,7 @@ export default defineComponent({
title: i18n.locale.settings,
icon: faCog
});
+ const page = ref(props.initialPage);
const narrow = ref(false);
const view = ref(null);
const el = ref(null);
@@ -83,8 +86,8 @@ export default defineComponent({
};
const pageProps = ref({});
const component = computed(() => {
- if (props.page == null) return null;
- switch (props.page) {
+ if (page.value == null) return null;
+ switch (page.value) {
case 'profile': return defineAsyncComponent(() => import('./profile.vue'));
case 'privacy': return defineAsyncComponent(() => import('./privacy.vue'));
case 'reaction': return defineAsyncComponent(() => import('./reaction.vue'));
@@ -117,10 +120,10 @@ export default defineComponent({
case 'registry': return defineAsyncComponent(() => import('./registry.vue'));
case 'experimental-features': return defineAsyncComponent(() => import('./experimental-features.vue'));
}
- if (props.page.startsWith('registry/keys/system/')) {
+ if (page.value.startsWith('registry/keys/system/')) {
return defineAsyncComponent(() => import('./registry.keys.vue'));
}
- if (props.page.startsWith('registry/value/system/')) {
+ if (page.value.startsWith('registry/value/system/')) {
return defineAsyncComponent(() => import('./registry.value.vue'));
}
});
@@ -128,12 +131,12 @@ export default defineComponent({
watch(component, () => {
pageProps.value = {};
- if (props.page) {
- if (props.page.startsWith('registry/keys/system/')) {
- pageProps.value.scope = props.page.replace('registry/keys/system/', '').split('/');
+ if (page.value) {
+ if (page.value.startsWith('registry/keys/system/')) {
+ pageProps.value.scope = page.value.replace('registry/keys/system/', '').split('/');
}
- if (props.page.startsWith('registry/value/system/')) {
- const path = props.page.replace('registry/value/system/', '').split('/');
+ if (page.value.startsWith('registry/value/system/')) {
+ const path = page.value.replace('registry/value/system/', '').split('/');
pageProps.value.xKey = path.pop();
pageProps.value.scope = path;
}
@@ -144,12 +147,20 @@ export default defineComponent({
});
}, { immediate: true });
+ watch(() => props.initialPage, () => {
+ page.value = props.initialPage;
+ });
+
onMounted(() => {
- narrow.value = el.value.offsetWidth < 1025;
+ narrow.value = el.value.offsetWidth < 800;
+ if (!narrow.value) {
+ page.value = 'profile';
+ }
});
return {
[symbols.PAGE_INFO]: INFO,
+ page,
narrow,
view,
el,
@@ -176,25 +187,20 @@ export default defineComponent({
display: flex;
max-width: 1100px;
margin: 0 auto;
+ height: 100%;
> .nav {
width: 32%;
box-sizing: border-box;
border-right: solid 0.5px var(--divider);
+ overflow: auto;
}
> .main {
flex: 1;
min-width: 0;
+ overflow: auto;
--baseContentWidth: 100%;
-
- ::v-deep(._section) {
- padding: 0 0 32px 0;
-
- & + ._section {
- padding-top: 32px;
- }
- }
}
}
}
diff --git a/src/client/router.ts b/src/client/router.ts
index 53516db97b..3effb2edbe 100644
--- a/src/client/router.ts
+++ b/src/client/router.ts
@@ -22,7 +22,7 @@ export const router = createRouter({
{ path: '/@:user/pages/:page', component: page('page'), props: route => ({ pageName: route.params.page, username: route.params.user }) },
{ path: '/@:user/pages/:pageName/view-source', component: page('page-editor/page-editor'), props: route => ({ initUser: route.params.user, initPageName: route.params.pageName }) },
{ path: '/@:acct/room', props: true, component: page('room/room') },
- { path: '/settings/:page(.*)?', name: 'settings', component: page('settings/index'), props: route => ({ page: route.params.page || null }) },
+ { path: '/settings/:page(.*)?', name: 'settings', component: page('settings/index'), props: route => ({ initialPage: route.params.page || null }) },
{ path: '/announcements', component: page('announcements') },
{ path: '/about', component: page('about') },
{ path: '/about-misskey', component: page('about-misskey') },
diff --git a/src/client/ui/default.sidebar.vue b/src/client/ui/default.sidebar.vue
index 710a9b1f85..6323393f22 100644
--- a/src/client/ui/default.sidebar.vue
+++ b/src/client/ui/default.sidebar.vue
@@ -27,7 +27,7 @@
{{ $ts.more }}
-
+
{{ $ts.settings }}
@@ -57,6 +57,7 @@ export default defineComponent({
connection: null,
menuDef: sidebarDef,
iconOnly: false,
+ settingsWindowed: false,
faGripVertical, faChevronLeft, faComments, faHashtag, faBroadcastTower, faFireAlt, faEllipsisH, faPencilAlt, faBars, faTimes, faBell, faSearch, faUserCog, faCog, faUser, faHome, faStar, faCircle, faAt, faEnvelope, faListUl, faPlus, faUserClock, faLaugh, faUsers, faTachometerAlt, faExchangeAlt, faGlobe, faChartBar, faCloud, faServer, faProjectDiagram
};
},
@@ -102,6 +103,7 @@ export default defineComponent({
methods: {
calcViewState() {
this.iconOnly = (window.innerWidth <= 1400) || (this.$store.state.sidebarDisplay === 'icon');
+ this.settingsWindowed = (window.innerWidth > 1400);
},
post() {
From d06517265f3657e100903e1f92c3d81ab978713c Mon Sep 17 00:00:00 2001
From: syuilo
+
+
+ {{ $ts.basicSettings }}
+ {{ $ts.profile }}
+ {{ $ts.privacy }}
+ {{ $ts.reaction }}
+ {{ $ts.drive }}
+ {{ $ts.notifications }}
+ {{ $ts.email }}
+ {{ $ts.integration }}
+ {{ $ts.security }}
+
+
+ {{ $ts.clientSettings }}
+ {{ $ts.general }}
+ {{ $ts.theme }}
+ {{ $ts.sidebar }}
+ {{ $ts.sounds }}
+ {{ $ts.plugins }}
+
+
+ {{ $ts.otherSettings }}
+ {{ $ts.importAndExport }}
+ {{ $ts.muteAndBlock }}
+ {{ $ts.wordMute }}
+ API
+ {{ $ts.other }}
+
+
+ {{ $ts.clearCache }}
+
+
+ {{ $ts.logout }}
+
+
+
-
+
+
+
-
-
- Endpoint
-
-
- Params (JSON or JSON5)
-
-
- With credential
-
-
-
- Send
-
-
-
-
- Response
-
-
+
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 0387d66ae8..5a21cf2ff3 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -148,7 +148,11 @@ export default defineComponent({
}, { immediate: true });
watch(() => props.initialPage, () => {
- page.value = props.initialPage;
+ if (props.initialPage == null && !narrow.value) {
+ page.value = 'profile';
+ } else {
+ page.value = props.initialPage;
+ }
});
onMounted(() => {
From 7ec06707485ec47615b1b7189f2cde542b83ead1 Mon Sep 17 00:00:00 2001
From: syuilo
+
+
+
+ Endpoint
+
+
+ Params (JSON or JSON5)
+
+
+ With credential
+
+
+
+ Send
+
+
+
+
+
+ Response
+
+
+
-
+
@@ -9,7 +9,7 @@
-
+
@@ -53,7 +53,7 @@
+
+
diff --git a/src/client/components/form/link.vue b/src/client/components/form/link.vue
index 2efc6b58c9..af36bcf22c 100644
--- a/src/client/components/form/link.vue
+++ b/src/client/components/form/link.vue
@@ -66,6 +66,7 @@ export default defineComponent({
&.active {
color: var(--accent);
+ background: var(--panelHighlight);
}
> .icon {
diff --git a/src/client/components/modal-page-window.vue b/src/client/components/modal-page-window.vue
index 24511215da..474a67f985 100644
--- a/src/client/components/modal-page-window.vue
+++ b/src/client/components/modal-page-window.vue
@@ -168,7 +168,7 @@ export default defineComponent({
}
> .header {
- $height: 54px;
+ $height: 52px;
$height-narrow: 42px;
display: flex;
flex-shrink: 0;
diff --git a/src/client/pages/settings/mute-block.vue b/src/client/pages/settings/mute-block.vue
index d1c3d5f29e..11450e049b 100644
--- a/src/client/pages/settings/mute-block.vue
+++ b/src/client/pages/settings/mute-block.vue
@@ -6,7 +6,7 @@
- {{ $ts.noUsers }}
+ {{ $ts.noUsers }}
@@ -18,7 +18,7 @@
- {{ $ts.noUsers }}
+ {{ $ts.noUsers }}
@@ -36,7 +36,7 @@ import { defineComponent } from 'vue';
import { faBan } from '@fortawesome/free-solid-svg-icons';
import MkPagination from '@client/components/ui/pagination.vue';
import MkTab from '@client/components/tab.vue';
-import MkInfo from '@client/components/ui/info.vue';
+import FormInfo from '@client/components/form/info.vue';
import FormLink from '@client/components/form/link.vue';
import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
@@ -48,7 +48,7 @@ export default defineComponent({
components: {
MkPagination,
MkTab,
- MkInfo,
+ FormInfo,
FormBase,
FormGroup,
FormLink,
diff --git a/src/client/pages/settings/plugin.install.vue b/src/client/pages/settings/plugin.install.vue
index ecda0a4e0c..bc80188fc6 100644
--- a/src/client/pages/settings/plugin.install.vue
+++ b/src/client/pages/settings/plugin.install.vue
@@ -1,6 +1,6 @@
- {{ $ts._plugin.installWarn }}
+ {{ $ts._plugin.installWarn }}
@@ -25,7 +25,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormLink from '@client/components/form/link.vue';
import FormButton from '@client/components/form/button.vue';
-import MkInfo from '@client/components/ui/info.vue';
+import FormInfo from '@client/components/form/info.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
import { unisonReload } from '@client/scripts/unison-reload';
@@ -40,7 +40,7 @@ export default defineComponent({
FormGroup,
FormLink,
FormButton,
- MkInfo,
+ FormInfo,
},
emits: ['info'],
diff --git a/src/client/pages/settings/plugin.manage.vue b/src/client/pages/settings/plugin.manage.vue
index 16d2225d0b..d7aabe560e 100644
--- a/src/client/pages/settings/plugin.manage.vue
+++ b/src/client/pages/settings/plugin.manage.vue
@@ -36,7 +36,6 @@ import { faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog } from '@fo
import MkButton from '@client/components/ui/button.vue';
import MkTextarea from '@client/components/ui/textarea.vue';
import MkSelect from '@client/components/ui/select.vue';
-import MkInfo from '@client/components/ui/info.vue';
import FormSwitch from '@client/components/form/switch.vue';
import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
@@ -49,7 +48,6 @@ export default defineComponent({
MkButton,
MkTextarea,
MkSelect,
- MkInfo,
FormSwitch,
FormBase,
FormGroup,
diff --git a/src/client/pages/settings/registry.keys.vue b/src/client/pages/settings/registry.keys.vue
index d2fd75aca1..5cdfdc1332 100644
--- a/src/client/pages/settings/registry.keys.vue
+++ b/src/client/pages/settings/registry.keys.vue
@@ -24,7 +24,6 @@
import { defineAsyncComponent, defineComponent } from 'vue';
import { faCogs } from '@fortawesome/free-solid-svg-icons';
import * as JSON5 from 'json5';
-import MkInfo from '@client/components/ui/info.vue';
import FormSwitch from '@client/components/form/switch.vue';
import FormSelect from '@client/components/form/select.vue';
import FormLink from '@client/components/form/link.vue';
@@ -37,7 +36,6 @@ import * as symbols from '@client/symbols';
export default defineComponent({
components: {
- MkInfo,
FormBase,
FormSelect,
FormSwitch,
diff --git a/src/client/pages/settings/registry.value.vue b/src/client/pages/settings/registry.value.vue
index bba92bb746..7d5756af99 100644
--- a/src/client/pages/settings/registry.value.vue
+++ b/src/client/pages/settings/registry.value.vue
@@ -1,6 +1,6 @@
- {{ $ts.editTheseSettingsMayBreakAccount }}
+ {{ $ts.editTheseSettingsMayBreakAccount }}
@@ -39,7 +39,7 @@
import { defineAsyncComponent, defineComponent } from 'vue';
import { faCogs, faSave, faTrash } from '@fortawesome/free-solid-svg-icons';
import * as JSON5 from 'json5';
-import MkInfo from '@client/components/ui/info.vue';
+import FormInfo from '@client/components/form/info.vue';
import FormSwitch from '@client/components/form/switch.vue';
import FormSelect from '@client/components/form/select.vue';
import FormTextarea from '@client/components/form/textarea.vue';
@@ -52,7 +52,7 @@ import * as symbols from '@client/symbols';
export default defineComponent({
components: {
- MkInfo,
+ FormInfo,
FormBase,
FormSelect,
FormSwitch,
diff --git a/src/client/pages/settings/registry.vue b/src/client/pages/settings/registry.vue
index a09c309d33..085389fc95 100644
--- a/src/client/pages/settings/registry.vue
+++ b/src/client/pages/settings/registry.vue
@@ -12,7 +12,6 @@
import { defineAsyncComponent, defineComponent } from 'vue';
import { faCogs } from '@fortawesome/free-solid-svg-icons';
import * as JSON5 from 'json5';
-import MkInfo from '@client/components/ui/info.vue';
import FormSwitch from '@client/components/form/switch.vue';
import FormSelect from '@client/components/form/select.vue';
import FormLink from '@client/components/form/link.vue';
@@ -25,7 +24,6 @@ import * as symbols from '@client/symbols';
export default defineComponent({
components: {
- MkInfo,
FormBase,
FormSelect,
FormSwitch,
diff --git a/src/client/pages/settings/update.vue b/src/client/pages/settings/update.vue
index fb1458da81..d7b2adae56 100644
--- a/src/client/pages/settings/update.vue
+++ b/src/client/pages/settings/update.vue
@@ -1,8 +1,8 @@
- {{ $ts.youAreRunningUpToDateClient }}
- {{ $ts.newVersionOfClientAvailable }}
+ {{ $ts.youAreRunningUpToDateClient }}
+ {{ $ts.newVersionOfClientAvailable }}
{{ instanceName }}
@@ -38,7 +38,7 @@ import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormButton from '@client/components/form/button.vue';
import FormKeyValueView from '@client/components/form/key-value-view.vue';
-import MkInfo from '@client/components/ui/info.vue';
+import FormInfo from '@client/components/form/info.vue';
import * as os from '@client/os';
import { version, instanceName } from '@client/config';
import * as symbols from '@client/symbols';
@@ -52,7 +52,7 @@ export default defineComponent({
FormLink,
FormGroup,
FormKeyValueView,
- MkInfo,
+ FormInfo,
},
emits: ['info'],
diff --git a/src/client/pages/settings/word-mute.vue b/src/client/pages/settings/word-mute.vue
index 029eb5d415..79de2ebbdf 100644
--- a/src/client/pages/settings/word-mute.vue
+++ b/src/client/pages/settings/word-mute.vue
@@ -7,14 +7,14 @@
- {{ $ts._wordMute.softDescription }}
+ {{ $ts._wordMute.softDescription }}
{{ $ts._wordMute.muteWords }}
{{ $ts._wordMute.muteWordsDescription }}
{{ $ts._wordMute.muteWordsDescription2 }}
{{ $ts._wordMute.muteWordsDescription2 }}
- {{ $ts._wordMute.hardDescription }}
+ {{ $ts._wordMute.hardDescription }}
{{ $ts._wordMute.muteWords }}
{{ $ts._wordMute.muteWordsDescription }}
{{ $ts._wordMute.muteWordsDescription2 }} @@ -37,8 +37,8 @@ import FormTextarea from '@client/components/form/textarea.vue'; import FormBase from '@client/components/form/base.vue'; import FormKeyValueView from '@client/components/form/key-value-view.vue'; import FormButton from '@client/components/form/button.vue'; +import FormInfo from '@client/components/form/info.vue'; import MkTab from '@client/components/tab.vue'; -import MkInfo from '@client/components/ui/info.vue'; import * as os from '@client/os'; import number from '@client/filters/number'; import * as symbols from '@client/symbols'; @@ -50,7 +50,7 @@ export default defineComponent({ FormTextarea, FormKeyValueView, MkTab, - MkInfo, + FormInfo, }, emits: ['info'], diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue index 58f800d186..52b2725964 100644 --- a/src/client/pages/user/index.vue +++ b/src/client/pages/user/index.vue @@ -545,7 +545,6 @@ export default defineComponent({ .ftskorzw.narrow { box-sizing: border-box; - overflow: hidden; overflow: clip; > .punished { From 3db37e1d52e7253c02ccc1608196d067edf96bf0 Mon Sep 17 00:00:00 2001 From: syuilo
Date: Wed, 14 Apr 2021 02:12:46 +0900
Subject: [PATCH 29/29] Tweak UI
---
src/client/components/note.vue | 11 -----------
src/client/pages/page.vue | 4 +++-
src/client/style.scss | 8 ++++----
3 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index e51085307a..0e153033ca 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -863,7 +863,6 @@ export default defineComponent({
.tkcbzcuz {
position: relative;
transition: box-shadow 0.1s ease;
- overflow: hidden;
overflow: clip;
contain: content;
@@ -1001,11 +1000,6 @@ export default defineComponent({
position: sticky;
top: calc(22px + var(--stickyTop, 0px));
left: 0;
-
- /* iOSはoverflow: clipをサポートしていない影響でposition: stickyが動作しない */
- @supports (-webkit-touch-callout: none) {
- top: 0;
- }
}
> .main {
@@ -1150,11 +1144,6 @@ export default defineComponent({
width: 50px;
height: 50px;
top: calc(14px + var(--stickyTop, 0px));
-
- /* iOSはoverflow: clipをサポートしていない影響でposition: stickyが動作しない */
- @supports (-webkit-touch-callout: none) {
- top: 0;
- }
}
}
}
diff --git a/src/client/pages/page.vue b/src/client/pages/page.vue
index bae72c0539..57bbeba6b2 100644
--- a/src/client/pages/page.vue
+++ b/src/client/pages/page.vue
@@ -1,5 +1,7 @@
{{ $ts._wordMute.muteWordsDescription2 }} @@ -37,8 +37,8 @@ import FormTextarea from '@client/components/form/textarea.vue'; import FormBase from '@client/components/form/base.vue'; import FormKeyValueView from '@client/components/form/key-value-view.vue'; import FormButton from '@client/components/form/button.vue'; +import FormInfo from '@client/components/form/info.vue'; import MkTab from '@client/components/tab.vue'; -import MkInfo from '@client/components/ui/info.vue'; import * as os from '@client/os'; import number from '@client/filters/number'; import * as symbols from '@client/symbols'; @@ -50,7 +50,7 @@ export default defineComponent({ FormTextarea, FormKeyValueView, MkTab, - MkInfo, + FormInfo, }, emits: ['info'], diff --git a/src/client/pages/user/index.vue b/src/client/pages/user/index.vue index 58f800d186..52b2725964 100644 --- a/src/client/pages/user/index.vue +++ b/src/client/pages/user/index.vue @@ -545,7 +545,6 @@ export default defineComponent({ .ftskorzw.narrow { box-sizing: border-box; - overflow: hidden; overflow: clip; > .punished { From 3db37e1d52e7253c02ccc1608196d067edf96bf0 Mon Sep 17 00:00:00 2001 From: syuilo
+
+