-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link on image in ItemsCard and FeedItem #39
base: master
Are you sure you want to change the base?
Conversation
Lidiya-prog
commented
Nov 2, 2021
src/components/ImageButton.vue
Outdated
}) | ||
export default class ImageButton extends Vue { | ||
@Prop() | ||
name!: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем эта проперти?
src/components/ImageButton.vue
Outdated
@Component<ImageButton>({ | ||
name: "ImageButton" | ||
}) | ||
export default class ImageButton extends Vue { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Название компонента выглядит как будто это кнопка, на которой есть картинка.
@@ -64,14 +65,15 @@ | |||
<script lang="ts"> | |||
import TagBadge from "@/components/TagBadge.vue"; | |||
import ItemCardOpenButton from "@/components/UserWishlist/ItemCardOpenButton.vue"; | |||
import OpenImageButton from "@/components/OpenImageButton.vue"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Изменения в этом файле кажутся ненужными. Тут только импорт и упоминание компонента,, но реально он нигде не юзается
@@ -139,6 +148,7 @@ export default { | |||
isMoneyCollectingEnabled: false, | |||
link: "", | |||
donatelink: "", | |||
imagelink: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пожалуйста, пользуйся camelCase для именования. imagelink -> imageLink
src/components/OpenImageButton.vue
Outdated
@@ -0,0 +1,34 @@ | |||
<template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Этот компонент где то используется? Если нет - удали
@@ -71,7 +71,7 @@ import ProgressBar from "@/components/ProgressBar.vue"; | |||
|
|||
@Component<ItemCard>({ | |||
name: "ItemCard", | |||
components: {ProgressBar, TagBadge, ItemCardOpenButton} | |||
components: { ProgressBar, TagBadge, ItemCardOpenButton } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В этом файле ничего не изменилось по сути. Откати плз форматирование