From 86aed9dc5c028b1a994b112e7fb7791540cbd5a2 Mon Sep 17 00:00:00 2001 From: BFlorian91 Date: Sun, 10 Dec 2023 01:12:34 +0100 Subject: [PATCH 1/8] Fix: createSnippet and Profileview in progress --- src/views/CreateSnippetView.vue | 1 + src/views/ProfileView.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/CreateSnippetView.vue b/src/views/CreateSnippetView.vue index e9b44d2..2138ecb 100644 --- a/src/views/CreateSnippetView.vue +++ b/src/views/CreateSnippetView.vue @@ -69,6 +69,7 @@ const handleSubmit = (event: Event) => { diff --git a/src/views/ProfileView.vue b/src/views/ProfileView.vue index 62d5791..d5b5abf 100644 --- a/src/views/ProfileView.vue +++ b/src/views/ProfileView.vue @@ -1,4 +1,4 @@ - diff --git a/src/Layouts/LayoutGlobalSlot.vue b/src/Layouts/LayoutGlobalSlot.vue index d4fe063..fef4b47 100644 --- a/src/Layouts/LayoutGlobalSlot.vue +++ b/src/Layouts/LayoutGlobalSlot.vue @@ -10,29 +10,29 @@ import NotificationToast from "../components/NotificationToast.vue"; diff --git a/src/assets/LogoIcons/Media/GithubIcon.vue b/src/assets/LogoIcons/Media/GithubIcon.vue index c4b5d40..2205178 100644 --- a/src/assets/LogoIcons/Media/GithubIcon.vue +++ b/src/assets/LogoIcons/Media/GithubIcon.vue @@ -1,73 +1,73 @@ diff --git a/src/assets/LogoIcons/Media/InstagramIcon.vue b/src/assets/LogoIcons/Media/InstagramIcon.vue index 67604b3..4864b48 100644 --- a/src/assets/LogoIcons/Media/InstagramIcon.vue +++ b/src/assets/LogoIcons/Media/InstagramIcon.vue @@ -1,43 +1,43 @@ diff --git a/src/assets/LogoIcons/Media/LinkedinIcon.vue b/src/assets/LogoIcons/Media/LinkedinIcon.vue index 5dc3172..df48608 100644 --- a/src/assets/LogoIcons/Media/LinkedinIcon.vue +++ b/src/assets/LogoIcons/Media/LinkedinIcon.vue @@ -1,31 +1,31 @@ diff --git a/src/assets/LogoIcons/StarIcon.vue b/src/assets/LogoIcons/StarIcon.vue index 77fe45d..f6974f8 100644 --- a/src/assets/LogoIcons/StarIcon.vue +++ b/src/assets/LogoIcons/StarIcon.vue @@ -1,17 +1,17 @@ diff --git a/src/assets/icons/AddIcon.vue b/src/assets/icons/AddIcon.vue index 2c07f80..7cc4c89 100644 --- a/src/assets/icons/AddIcon.vue +++ b/src/assets/icons/AddIcon.vue @@ -1,18 +1,18 @@ diff --git a/src/assets/icons/CopyIcon.vue b/src/assets/icons/CopyIcon.vue index dc494df..aa82e4c 100644 --- a/src/assets/icons/CopyIcon.vue +++ b/src/assets/icons/CopyIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/CrossIcon.vue b/src/assets/icons/CrossIcon.vue index 0b22727..6c7cf66 100644 --- a/src/assets/icons/CrossIcon.vue +++ b/src/assets/icons/CrossIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/EyeIcon.vue b/src/assets/icons/EyeIcon.vue index ddd647d..bec098f 100644 --- a/src/assets/icons/EyeIcon.vue +++ b/src/assets/icons/EyeIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/EyeIconClosed.vue b/src/assets/icons/EyeIconClosed.vue index 5049da1..4b03b56 100644 --- a/src/assets/icons/EyeIconClosed.vue +++ b/src/assets/icons/EyeIconClosed.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/GearIcon.vue b/src/assets/icons/GearIcon.vue index fdd371e..5a8c31f 100644 --- a/src/assets/icons/GearIcon.vue +++ b/src/assets/icons/GearIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/HomeIcon.vue b/src/assets/icons/HomeIcon.vue index 93d1a54..6532ab7 100644 --- a/src/assets/icons/HomeIcon.vue +++ b/src/assets/icons/HomeIcon.vue @@ -1,18 +1,18 @@ diff --git a/src/assets/icons/PencilIcon.vue b/src/assets/icons/PencilIcon.vue index e622d76..e1e6405 100644 --- a/src/assets/icons/PencilIcon.vue +++ b/src/assets/icons/PencilIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/PersonIcon.vue b/src/assets/icons/PersonIcon.vue index a73e7fa..e24a261 100644 --- a/src/assets/icons/PersonIcon.vue +++ b/src/assets/icons/PersonIcon.vue @@ -1,18 +1,18 @@ diff --git a/src/assets/icons/TrashIcon.vue b/src/assets/icons/TrashIcon.vue index f4e4f94..d577f61 100644 --- a/src/assets/icons/TrashIcon.vue +++ b/src/assets/icons/TrashIcon.vue @@ -1,16 +1,16 @@ diff --git a/src/assets/icons/TriangleDownIcon.vue b/src/assets/icons/TriangleDownIcon.vue index 099a99a..9406111 100644 --- a/src/assets/icons/TriangleDownIcon.vue +++ b/src/assets/icons/TriangleDownIcon.vue @@ -1,11 +1,11 @@ diff --git a/src/components/ButtonCustom.vue b/src/components/ButtonCustom.vue index 6ae0927..86c58d3 100644 --- a/src/components/ButtonCustom.vue +++ b/src/components/ButtonCustom.vue @@ -2,34 +2,34 @@ import { PropType } from "vue"; defineProps({ - label: { - type: String, - default: "", - }, - type: { - type: String as PropType<"button" | "submit" | "reset">, - default: "button", - }, - btnStyle: { - type: String, - default: "primary", - validator: (value: string): boolean => - ["primary", "secondary"].includes(value), - }, + label: { + type: String, + default: "", + }, + type: { + type: String as PropType<"button" | "submit" | "reset">, + default: "button", + }, + btnStyle: { + type: String, + default: "primary", + validator: (value: string): boolean => + ["primary", "secondary"].includes(value), + }, }); diff --git a/src/components/ButtonSocial.vue b/src/components/ButtonSocial.vue index 8866e85..3e8e060 100644 --- a/src/components/ButtonSocial.vue +++ b/src/components/ButtonSocial.vue @@ -1,27 +1,27 @@ diff --git a/src/components/CardSnippet.vue b/src/components/CardSnippet.vue index dff8540..0f866ad 100644 --- a/src/components/CardSnippet.vue +++ b/src/components/CardSnippet.vue @@ -11,38 +11,38 @@ import Prism from "prismjs"; import "../assets/highlight-syntax.css"; const props = defineProps({ - id: { - type: String, - default: "", - }, - title: { - type: String, - default: "", - }, - description: { - type: String, - default: "", - }, - code: { - type: String, - default: "", - }, - language: { - type: String, - default: "", - }, - tags: { - type: String, - default: "", - }, - createdAt: { - type: String, - default: "", - }, - updatedAt: { - type: String, - default: "", - }, + id: { + type: String, + default: "", + }, + title: { + type: String, + default: "", + }, + description: { + type: String, + default: "", + }, + code: { + type: String, + default: "", + }, + language: { + type: String, + default: "", + }, + tags: { + type: String, + default: "", + }, + createdAt: { + type: String, + default: "", + }, + updatedAt: { + type: String, + default: "", + }, }); const authorId = "Florian"; @@ -53,198 +53,198 @@ const { deleteSnippet } = useDeleteSnippet(); const readMore = ref(false); const splitTags = (tags: string) => { - return tags.split(","); + return tags.split(","); }; const handleEdit = (id: string) => { - router.push(`/edit/${id}`); + router.push(`/edit/${id}`); }; const { elapsedTime } = useElapsedTime(props.updatedAt); onMounted(async () => { - await nextTick(); - Prism.highlightAll(); + await nextTick(); + Prism.highlightAll(); }); watch(readMore, async (newValue) => { - if (newValue) { - await nextTick(); - Prism.highlightAll(); - } + if (newValue) { + await nextTick(); + Prism.highlightAll(); + } }); diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index 62e2574..3d44c4c 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -8,40 +8,40 @@ const secondary = ref("#81A1C1"); diff --git a/src/components/GithubButtonForSignIn.vue b/src/components/GithubButtonForSignIn.vue index 8acb1c3..e138a26 100644 --- a/src/components/GithubButtonForSignIn.vue +++ b/src/components/GithubButtonForSignIn.vue @@ -1,22 +1,22 @@ diff --git a/src/components/InputForRichText.vue b/src/components/InputForRichText.vue index 43113a9..e34f06b 100644 --- a/src/components/InputForRichText.vue +++ b/src/components/InputForRichText.vue @@ -5,89 +5,90 @@ import EyeIcon from "../assets/icons/EyeIcon.vue"; import EyeIconClosed from "../assets/icons/EyeIconClosed.vue"; import "../assets/highlight-syntax.css"; defineProps({ - label: { - type: String, - default: "", - }, - type: { - type: String, - default: "text", - }, - required: { - type: Boolean, - default: false, - }, - modelValue: { - type: String, - default: "", - }, - preview: { - type: Boolean, - default: false, - }, + label: { + type: String, + default: "", + }, + type: { + type: String, + default: "text", + }, + required: { + type: Boolean, + default: false, + }, + modelValue: { + type: String, + default: "", + }, + preview: { + type: Boolean, + default: false, + }, }); const showPreview = ref(false); const emit = defineEmits(["update:modelValue"]); function handleInput(event: Event): void { - const target = event.target as HTMLInputElement; - if (target) { - emit("update:modelValue", target.value); - } + const target = event.target as HTMLInputElement; + if (target) { + emit("update:modelValue", target.value); + } } const handlePreview = () => { - showPreview.value = !showPreview.value; + showPreview.value = !showPreview.value; }; watch(showPreview, async () => { - if (showPreview.value) { - await nextTick(); - Prism.highlightAll(); - } + if (showPreview.value) { + await nextTick(); + Prism.highlightAll(); + } });