From f812299696ce3955ae2ca2a3dd9a40ba7b82a832 Mon Sep 17 00:00:00 2001 From: butschster Date: Sat, 25 Nov 2023 01:29:56 +0400 Subject: [PATCH] Fixes problem with desktop preview of SMTP mail fixes #66 --- assets/mixins.scss | 2 +- src/screens/smtp/ui/smtp-page/smtp-page.vue | 2 +- .../icon-svg/icon-svg-originals/discord.svg | 1 + src/shared/ui/icon-svg/icon-svg.vue | 48 +++++++++++-------- .../page-placeholder-item.vue | 4 +- .../ui/page-placeholder/page-placeholder.vue | 43 +++-------------- 6 files changed, 39 insertions(+), 61 deletions(-) create mode 100644 src/shared/ui/icon-svg/icon-svg-originals/discord.svg diff --git a/assets/mixins.scss b/assets/mixins.scss index ac624609..9df4e65d 100644 --- a/assets/mixins.scss +++ b/assets/mixins.scss @@ -16,7 +16,7 @@ } @mixin layout-body { - @apply flex flex-col flex-1 pt-12; + @apply flex flex-col flex-1 pt-12 h-full; } @mixin text-muted { diff --git a/src/screens/smtp/ui/smtp-page/smtp-page.vue b/src/screens/smtp/ui/smtp-page/smtp-page.vue index 656751aa..be8a8ae4 100644 --- a/src/screens/smtp/ui/smtp-page/smtp-page.vue +++ b/src/screens/smtp/ui/smtp-page/smtp-page.vue @@ -187,7 +187,7 @@ const attachments = computed(() => @import "assets/mixins"; .smtp-page { - @apply relative flex-1 flex flex-col; + @apply relative flex-1 flex flex-col h-full; } .smtp-page__main { diff --git a/src/shared/ui/icon-svg/icon-svg-originals/discord.svg b/src/shared/ui/icon-svg/icon-svg-originals/discord.svg new file mode 100644 index 00000000..7465c7e1 --- /dev/null +++ b/src/shared/ui/icon-svg/icon-svg-originals/discord.svg @@ -0,0 +1 @@ + diff --git a/src/shared/ui/icon-svg/icon-svg.vue b/src/shared/ui/icon-svg/icon-svg.vue index 5d4dcda0..1a7466c3 100644 --- a/src/shared/ui/icon-svg/icon-svg.vue +++ b/src/shared/ui/icon-svg/icon-svg.vue @@ -56,6 +56,14 @@ const props = defineProps(); /> + + + + + (); xmlns="http://www.w3.org/2000/svg" viewBox="0 0 489.8 489.8" > - - - + + + - - + + - - + + @@ -151,7 +159,7 @@ const props = defineProps(); xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" > - + (); xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" > - - + + (); y2="30" gradientUnits="userSpaceOnUse" > - + (); - + (); - + (); stroke-linecap="round" stroke-linejoin="round" > - + - - + + (); stroke-linecap="round" stroke-linejoin="round" > - + - - - + + + diff --git a/src/widgets/ui/page-placeholder/page-placeholder-item.vue b/src/widgets/ui/page-placeholder/page-placeholder-item.vue index 1ca3098c..c8e1fa8c 100644 --- a/src/widgets/ui/page-placeholder/page-placeholder-item.vue +++ b/src/widgets/ui/page-placeholder/page-placeholder-item.vue @@ -4,7 +4,6 @@ import { IconSvg } from "~/src/shared/ui"; type Props = { iconName: string; title: string; - linkName: string; linkUrl: string; }; @@ -15,9 +14,8 @@ defineProps();
  • - {{ title }} - {{ linkName }} + {{ title }}
  • diff --git a/src/widgets/ui/page-placeholder/page-placeholder.vue b/src/widgets/ui/page-placeholder/page-placeholder.vue index 70307b99..d578a85f 100644 --- a/src/widgets/ui/page-placeholder/page-placeholder.vue +++ b/src/widgets/ui/page-placeholder/page-placeholder.vue @@ -7,48 +7,19 @@ const getHostName = () => window?.location?.hostname || "localhost"; const items = [ { iconName: "github", - title: "Buggregator", - linkName: "Github", + title: "Github repository", linkUrl: "https://github.com/buggregator", }, - { - iconName: "sentry", - title: "Sentry DSN", - linkName: `http://sentry@${getHost()}/1`, - linkUrl: "https://docs.sentry.io/product/sentry-basics/dsn-explainer/", - }, - { - iconName: "inspector", - title: "Inspector URL", - linkName: `http://${getHost()}/api/inspector`, - linkUrl: "https://docs.inspector.dev/raw-php", - }, - { - iconName: "docs", - title: "Var Dumper URL", - linkName: `tcp://${getHostName()}:9912`, - linkUrl: - "https://symfony.com/doc/current/components/var_dumper.html#the-dump-server", - }, { iconName: "docs", - title: "Monolog", - linkName: `tcp://${getHostName()}:9913`, - linkUrl: "https://github.com/Seldaek/monolog/blob/main/doc/sockets.md", + title: "Documentation", + linkUrl: "https://docs.buggregator.dev", }, { - iconName: "profiler", - title: "XHProf URL", - linkName: `http://${getHost()}/api/profiler/store`, - linkUrl: "https://github.com/spiral/profiler/tree/3.0", - }, - { - iconName: "smtp", - title: "SMTP URL", - linkName: `smtp://${getHostName()}:1025`, - linkUrl: - "https://github.com/buggregator/spiral-app#3-fake-smtp-server-for-catching-mail", - }, + iconName: "discord", + title: "Join our discord", + linkUrl: "https://discord.gg/vDsCD3EKUB", + } ];