diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 19:37:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 19:37:32 +0900 |
| commit | 611e4f34dcb90666f2bc3da699dc965e30f7cba6 (patch) | |
| tree | 4a37539090b4c90ee4dfe5b08d8aae0682678032 /src/client | |
| parent | Merge branch 'develop' (diff) | |
| parent | 11.1.5 (diff) | |
| download | misskey-611e4f34dcb90666f2bc3da699dc965e30f7cba6.tar.gz misskey-611e4f34dcb90666f2bc3da699dc965e30f7cba6.tar.bz2 misskey-611e4f34dcb90666f2bc3da699dc965e30f7cba6.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/client')
9 files changed, 10 insertions, 17 deletions
diff --git a/src/client/app/common/scripts/note-subscriber.ts b/src/client/app/common/scripts/note-subscriber.ts index 02d810ded9..d881fe01ce 100644 --- a/src/client/app/common/scripts/note-subscriber.ts +++ b/src/client/app/common/scripts/note-subscriber.ts @@ -137,7 +137,6 @@ export default prop => ({ Vue.set(this.$_ns_target, 'deletedAt', body.deletedAt); Vue.set(this.$_ns_target, 'renote', null); this.$_ns_target.text = null; - this.$_ns_target.tags = []; this.$_ns_target.fileIds = []; this.$_ns_target.poll = null; this.$_ns_target.geo = null; diff --git a/src/client/app/common/views/components/drive-file-thumbnail.vue b/src/client/app/common/views/components/drive-file-thumbnail.vue index 1a3ef37193..d6b0092ca2 100644 --- a/src/client/app/common/views/components/drive-file-thumbnail.vue +++ b/src/client/app/common/views/components/drive-file-thumbnail.vue @@ -121,7 +121,7 @@ export default Vue.extend({ if (this.file.properties.avgColor) { anime({ targets: this.$refs.thumbnail, - backgroundColor: this.file.properties.avgColor.replace('255)', '0)'), + backgroundColor: 'transparent', // TODO fade duration: 100, easing: 'linear' }); diff --git a/src/client/app/common/views/components/post-form-attaches.vue b/src/client/app/common/views/components/post-form-attaches.vue index 1fe476be77..37422ba108 100644 --- a/src/client/app/common/views/components/post-form-attaches.vue +++ b/src/client/app/common/views/components/post-form-attaches.vue @@ -32,7 +32,7 @@ export default Vue.extend({ props: { files: { - type: Object, + type: Array, required: true }, detachMediaFn: { diff --git a/src/client/app/common/views/components/settings/settings.vue b/src/client/app/common/views/components/settings/settings.vue index 001b692551..be2d7fce85 100644 --- a/src/client/app/common/views/components/settings/settings.vue +++ b/src/client/app/common/views/components/settings/settings.vue @@ -525,15 +525,11 @@ export default Vue.extend({ this.$chooseDriveFile({ multiple: false }).then(file => { - this.$root.api('i/update', { - wallpaperId: file.id - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: file.url }); }); }, deleteWallpaper() { - this.$root.api('i/update', { - wallpaperId: null - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: null }); }, checkForUpdate() { this.checkingForUpdate = true; diff --git a/src/client/app/common/views/widgets/post-form.vue b/src/client/app/common/views/widgets/post-form.vue index 120de0f17b..d8617bea58 100644 --- a/src/client/app/common/views/widgets/post-form.vue +++ b/src/client/app/common/views/widgets/post-form.vue @@ -21,7 +21,7 @@ <fa :icon="['far', 'laugh']"/> </button> </div> - <x-post-form-attaches class="files" :files="files" :detachMediaFn="detachMedia"/> + <x-post-form-attaches class="files" :files="files" :detach-media-fn="detachMedia"/> <input ref="file" type="file" multiple="multiple" tabindex="-1" @change="onChangeFile"/> <mk-uploader ref="uploader" @uploaded="attachMedia"/> <footer> diff --git a/src/client/app/desktop/views/components/drive.file.vue b/src/client/app/desktop/views/components/drive.file.vue index 46aae9ad2b..efc534ee70 100644 --- a/src/client/app/desktop/views/components/drive.file.vue +++ b/src/client/app/desktop/views/components/drive.file.vue @@ -142,7 +142,7 @@ export default Vue.extend({ if (this.file.properties.avgColor) { anime({ targets: this.$refs.thumbnail, - backgroundColor: this.file.properties.avgColor.replace('255)', '0)'), + backgroundColor: 'transparent', // TODO fade duration: 100, easing: 'linear' }); diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index ace967b973..76b4214553 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -87,6 +87,5 @@ export default Vue.extend({ height 100% flex auto overflow auto - background var(--bg) </style> diff --git a/src/client/app/desktop/views/components/ui.vue b/src/client/app/desktop/views/components/ui.vue index fa5efbc93e..f7961d5083 100644 --- a/src/client/app/desktop/views/components/ui.vue +++ b/src/client/app/desktop/views/components/ui.vue @@ -1,6 +1,6 @@ <template> <div class="mk-ui" v-hotkey.global="keymap"> - <div class="bg" v-if="$store.getters.isSignedIn && $store.state.i.wallpaperUrl" :style="style"></div> + <div class="bg" v-if="$store.getters.isSignedIn && $store.state.settings.wallpaper" :style="style"></div> <x-header class="header" v-if="navbar == 'top'" v-show="!zenMode" ref="header"/> <x-sidebar class="sidebar" v-if="navbar != 'top'" v-show="!zenMode" ref="sidebar"/> <div class="content" :class="[{ sidebar: navbar != 'top', zen: zenMode }, navbar]"> @@ -33,10 +33,9 @@ export default Vue.extend({ }, style(): any { - if (!this.$store.getters.isSignedIn || this.$store.state.i.wallpaperUrl == null) return {}; + if (!this.$store.getters.isSignedIn || this.$store.state.settings.wallpaper == null) return {}; return { - backgroundColor: this.$store.state.i.wallpaperColor && this.$store.state.i.wallpaperColor.length == 3 ? `rgb(${ this.$store.state.i.wallpaperColor.join(',') })` : null, - backgroundImage: `url(${ this.$store.state.i.wallpaperUrl })` + backgroundImage: `url(${ this.$store.state.settings.wallpaper })` }; }, @@ -96,7 +95,6 @@ export default Vue.extend({ background-size cover background-position center background-attachment fixed - opacity 0.3 > .content.sidebar.left padding-left 68px diff --git a/src/client/app/store.ts b/src/client/app/store.ts index c82981ad24..44b893835c 100644 --- a/src/client/app/store.ts +++ b/src/client/app/store.ts @@ -28,6 +28,7 @@ const defaultSettings = { iLikeSushi: false, rememberNoteVisibility: false, defaultNoteVisibility: 'public', + wallpaper: null, webSearchEngine: 'https://www.google.com/?#q={{query}}', mutedWords: [], games: { |