Skip to content
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

Updated with embed tag for non image-video #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

realanmup
Copy link

I need this feature so i've updated this one. It doesn't break any thing else.

},
{
thumb: 'https://i-kinhdoanh.vnecdn.net/2018/06/18/1-1529296929_680x0.jpg',
src: 'https://i-kinhdoanh.vnecdn.net/2018/06/18/1-1529296929_680x0.jpg',
src: 'https://sandbox.anmup.online/storage/post/f7177163c833dff4b38fc8d2872f1ec6/qfxcinemas-ticket.pdf',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link asks me for a password.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a public link

@@ -29,15 +29,15 @@
name="fade"
>
<img
v-if="media[select].type !== 'video'"
v-if="/image/.test(media[select].type)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
v-if="/image/.test(media[select].type)"
v-if="media[select].type === "image""

:key="media[select].src"
:src="media[select].src"
:srcset="media[select].srcset || ''"
class="vue-lb-modal-image"
:alt="media[select].caption"
>
<video
v-else
v-else-if="media[select].type == 'video'"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
v-else-if="media[select].type == 'video'"
v-else-if="media[select].type === 'video'"

@@ -105,7 +114,7 @@
@click.stop="showImage(index)"
>
<slot
v-if="image.type"
v-if="image.type=='video'"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
v-if="image.type=='video'"
v-if="image.type === 'video'"

},
{
thumb: 'https://i-kinhdoanh.vnecdn.net/2018/06/18/1-1529296929_680x0.jpg',
src: 'https://i-kinhdoanh.vnecdn.net/2018/06/18/1-1529296929_680x0.jpg',
src: 'https://sandbox.anmup.online/storage/post/f7177163c833dff4b38fc8d2872f1ec6/qfxcinemas-ticket.pdf',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a public link

@@ -17,10 +17,11 @@ const media = [
thumb: 'https://s3-us-west-1.amazonaws.com/powr/defaults/image-slider2.jpg',
src: 'https://s3-us-west-1.amazonaws.com/powr/defaults/image-slider2.jpg',
caption: '<h4>Elephant</h4>',
type: 'image/jpg'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: 'image/jpg'
type: 'image'

Is jpg really need?

Copy link

@janosrusiczki janosrusiczki Jul 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's not, this is not mime type, type is used by the lightbox to determine how to show the media.

@imcvampire
Copy link
Collaborator

@realanmup Please update the documentation on README.md too

@imcvampire imcvampire changed the title Updated with embed tag for non image-video Updated with embed tag for non image-video (close #95) Jul 7, 2020
@imcvampire imcvampire changed the title Updated with embed tag for non image-video (close #95) Updated with embed tag for non image-video Jul 7, 2020
@imcvampire imcvampire linked an issue Jul 7, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pdf support
3 participants