From 31448493b4159d7c8d11dfdf59ae55039034997b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 27 Dec 2020 23:13:01 +0900 Subject: [PATCH] Add button widget --- locales/ja-JP.yml | 1 + src/client/widgets/button.vue | 94 +++++++++++++++++++++++++++++++++++ src/client/widgets/index.ts | 2 + 3 files changed, 97 insertions(+) create mode 100644 src/client/widgets/button.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index c14f2b4e6..767708bae 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1011,6 +1011,7 @@ _widgets: federation: "連合" postForm: "投稿フォーム" slideshow: "スライドショー" + button: "ボタン" _cw: hide: "隠す" diff --git a/src/client/widgets/button.vue b/src/client/widgets/button.vue new file mode 100644 index 000000000..db247d36b --- /dev/null +++ b/src/client/widgets/button.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/src/client/widgets/index.ts b/src/client/widgets/index.ts index c8bee90e4..2095a5be1 100644 --- a/src/client/widgets/index.ts +++ b/src/client/widgets/index.ts @@ -14,6 +14,7 @@ export default function(app: App) { app.component('MkwFederation', defineAsyncComponent(() => import('./federation.vue'))); app.component('MkwPostForm', defineAsyncComponent(() => import('./post-form.vue'))); app.component('MkwSlideshow', defineAsyncComponent(() => import('./slideshow.vue'))); + app.component('MkwButton', defineAsyncComponent(() => import('./button.vue'))); } export const widgets = [ @@ -30,4 +31,5 @@ export const widgets = [ 'federation', 'postForm', 'slideshow', + 'button', ];