From 64036cae1abbf24379e336df93e4ccf6c3bfb341 Mon Sep 17 00:00:00 2001 From: reslear Date: Tue, 17 Oct 2023 10:39:48 +0200 Subject: [PATCH] feat: add `telegram` social preview tab (#473) --- .../components/social/SocialPreviewGroup.vue | 6 +- .../components/social/SocialTelegram.vue | 60 +++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 packages/devtools/client/components/social/SocialTelegram.vue diff --git a/packages/devtools/client/components/social/SocialPreviewGroup.vue b/packages/devtools/client/components/social/SocialPreviewGroup.vue index 7ea43aa91e..be7d01a24b 100644 --- a/packages/devtools/client/components/social/SocialPreviewGroup.vue +++ b/packages/devtools/client/components/social/SocialPreviewGroup.vue @@ -9,9 +9,10 @@ const types = [ 'twitter', 'facebook', 'linkedin', + 'telegram', ] -const selected = ref(types[0]) +const selected = useLocalStorage('nuxt-devtools-social-preview-tab', types[0]) const card = computed(() => getSocialPreviewCard(props.tags, { title: [{ tag: 'title' }], @@ -49,6 +50,9 @@ const card = computed(() => getSocialPreviewCard(props.tags, {
+
+ +
diff --git a/packages/devtools/client/components/social/SocialTelegram.vue b/packages/devtools/client/components/social/SocialTelegram.vue new file mode 100644 index 0000000000..8ef6ff4762 --- /dev/null +++ b/packages/devtools/client/components/social/SocialTelegram.vue @@ -0,0 +1,60 @@ + + + + +