From 482c86a25a68a20ca950d0dc5fa8a1e00bde6783 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 24 Feb 2018 06:29:21 +0900 Subject: :v: --- src/web/app/common/define-widget.ts | 5 +- src/web/app/common/views/components/index.ts | 2 - .../common/views/components/widgets/profile.vue | 125 --------------------- 3 files changed, 3 insertions(+), 129 deletions(-) delete mode 100644 src/web/app/common/views/components/widgets/profile.vue (limited to 'src/web/app/common') diff --git a/src/web/app/common/define-widget.ts b/src/web/app/common/define-widget.ts index 826f9cc636..21821629ad 100644 --- a/src/web/app/common/define-widget.ts +++ b/src/web/app/common/define-widget.ts @@ -34,19 +34,20 @@ export default function(data: { } this.$watch('props', newProps => { + const w = (this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id); if (this.isMobile) { (this as any).api('i/update_mobile_home', { id: this.id, data: newProps }).then(() => { - (this as any).os.i.client_settings.mobile_home.find(w => w.id == this.id).data = newProps; + w.data = newProps; }); } else { (this as any).api('i/update_home', { id: this.id, data: newProps }).then(() => { - (this as any).os.i.client_settings.home.find(w => w.id == this.id).data = newProps; + w.data = newProps; }); } }, { diff --git a/src/web/app/common/views/components/index.ts b/src/web/app/common/views/components/index.ts index e66a323266..5460d75779 100644 --- a/src/web/app/common/views/components/index.ts +++ b/src/web/app/common/views/components/index.ts @@ -25,7 +25,6 @@ import fileTypeIcon from './file-type-icon.vue'; import wAccessLog from './widgets/access-log.vue'; import wVersion from './widgets/version.vue'; import wRss from './widgets/rss.vue'; -import wProfile from './widgets/profile.vue'; import wServer from './widgets/server.vue'; import wBroadcast from './widgets/broadcast.vue'; import wCalendar from './widgets/calendar.vue'; @@ -65,7 +64,6 @@ Vue.component('mkw-slideshow', wSlideshow); Vue.component('mkw-tips', wTips); Vue.component('mkw-donation', wDonation); Vue.component('mkw-broadcast', wBroadcast); -Vue.component('mkw-profile', wProfile); Vue.component('mkw-server', wServer); Vue.component('mkw-rss', wRss); Vue.component('mkw-version', wVersion); diff --git a/src/web/app/common/views/components/widgets/profile.vue b/src/web/app/common/views/components/widgets/profile.vue deleted file mode 100644 index 68cf469788..0000000000 --- a/src/web/app/common/views/components/widgets/profile.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - -- cgit v1.2.3-freya