From 078b31ad807ce9c78071bc11cb8af7435a60256f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 5 Dec 2020 22:29:55 +0900 Subject: [PATCH] Add slideshow widget --- locales/ja-JP.yml | 1 + src/client/widgets/index.ts | 2 + src/client/widgets/slideshow.vue | 168 +++++++++++++++++++++++++++++++ 3 files changed, 171 insertions(+) create mode 100644 src/client/widgets/slideshow.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 013a85dff..aa8e2bd16 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -995,6 +995,7 @@ _widgets: digitalClock: "デジタル時計" federation: "連合" postForm: "投稿フォーム" + slideshow: "スライドショー" _cw: hide: "隠す" diff --git a/src/client/widgets/index.ts b/src/client/widgets/index.ts index ee76bd97d..c8bee90e4 100644 --- a/src/client/widgets/index.ts +++ b/src/client/widgets/index.ts @@ -13,6 +13,7 @@ export default function(app: App) { app.component('MkwDigitalClock', defineAsyncComponent(() => import('./digital-clock.vue'))); app.component('MkwFederation', defineAsyncComponent(() => import('./federation.vue'))); app.component('MkwPostForm', defineAsyncComponent(() => import('./post-form.vue'))); + app.component('MkwSlideshow', defineAsyncComponent(() => import('./slideshow.vue'))); } export const widgets = [ @@ -28,4 +29,5 @@ export const widgets = [ 'digitalClock', 'federation', 'postForm', + 'slideshow', ]; diff --git a/src/client/widgets/slideshow.vue b/src/client/widgets/slideshow.vue new file mode 100644 index 000000000..0c1a2dc86 --- /dev/null +++ b/src/client/widgets/slideshow.vue @@ -0,0 +1,168 @@ + + + + +