From 363cd2a66bdf8d5eeac3da569ea3398d0494d212 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 19 Feb 2018 16:08:41 +0900 Subject: [PATCH] wip --- .../desktop/-tags/home-widgets/broadcast.tag | 143 ---------------- src/web/app/desktop/views/components/index.ts | 2 + .../views/components/widgets/broadcast.vue | 153 ++++++++++++++++++ .../views/components/widgets/donation.vue | 2 +- .../desktop/views/components/widgets/nav.vue | 2 +- 5 files changed, 157 insertions(+), 145 deletions(-) delete mode 100644 src/web/app/desktop/-tags/home-widgets/broadcast.tag create mode 100644 src/web/app/desktop/views/components/widgets/broadcast.vue diff --git a/src/web/app/desktop/-tags/home-widgets/broadcast.tag b/src/web/app/desktop/-tags/home-widgets/broadcast.tag deleted file mode 100644 index 91ddbb4ab..000000000 --- a/src/web/app/desktop/-tags/home-widgets/broadcast.tag +++ /dev/null @@ -1,143 +0,0 @@ - -
- - - - - - - -
-

%i18n:desktop.tags.mk-broadcast-home-widget.fetching%

-

{ - broadcasts.length == 0 ? '%i18n:desktop.tags.mk-broadcast-home-widget.no-broadcasts%' : broadcasts[i].title - }

-

- %i18n:desktop.tags.mk-broadcast-home-widget.next% >> - - -
diff --git a/src/web/app/desktop/views/components/index.ts b/src/web/app/desktop/views/components/index.ts index b8d167f22..1f28613d2 100644 --- a/src/web/app/desktop/views/components/index.ts +++ b/src/web/app/desktop/views/components/index.ts @@ -40,6 +40,7 @@ import wSlideshow from './widgets/slideshow.vue'; import wTips from './widgets/tips.vue'; import wDonation from './widgets/donation.vue'; import wNotifications from './widgets/notifications.vue'; +import wBroadcast from './widgets/broadcast.vue'; Vue.component('mk-ui', ui); Vue.component('mk-ui-header', uiHeader); @@ -81,3 +82,4 @@ Vue.component('mkw-slideshoe', wSlideshow); Vue.component('mkw-tips', wTips); Vue.component('mkw-donation', wDonation); Vue.component('mkw-notifications', wNotifications); +Vue.component('mkw-broadcast', wBroadcast); diff --git a/src/web/app/desktop/views/components/widgets/broadcast.vue b/src/web/app/desktop/views/components/widgets/broadcast.vue new file mode 100644 index 000000000..cdc65a2a7 --- /dev/null +++ b/src/web/app/desktop/views/components/widgets/broadcast.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/web/app/desktop/views/components/widgets/donation.vue b/src/web/app/desktop/views/components/widgets/donation.vue index 8eb1706c6..fbab0fca6 100644 --- a/src/web/app/desktop/views/components/widgets/donation.vue +++ b/src/web/app/desktop/views/components/widgets/donation.vue @@ -4,7 +4,7 @@

%fa:heart%%i18n:desktop.tags.mk-donation-home-widget.title%

{{ '%i18n:desktop.tags.mk-donation-home-widget.text%'.substr(0, '%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('{')) }} - @syuilo + @syuilo {{ '%i18n:desktop.tags.mk-donation-home-widget.text%'.substr('%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('}') + 1) }}

diff --git a/src/web/app/desktop/views/components/widgets/nav.vue b/src/web/app/desktop/views/components/widgets/nav.vue index a782ad62b..5e04c266c 100644 --- a/src/web/app/desktop/views/components/widgets/nav.vue +++ b/src/web/app/desktop/views/components/widgets/nav.vue @@ -1,6 +1,6 @@