Skip to content

Commit

Permalink
update media endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
StefonSimmons committed Oct 4, 2024
1 parent 59c088d commit 2997904
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ <h1 x-text="'{{ $title }}'"></h1>
x-cloak x-show="shouldShowActiveHorizontalSlide({{ $idx }})"
x-transition.opacity.duration.500ms>
{{ if eq $elm.media_type "image"}}
<img class="h-100 w-100 rounded-1" src="https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }}" alt="{{ $elm.caption }}" >
<img class="h-100 w-100 rounded-1" src="https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }}" alt="{{ $elm.caption }}" >
{{ else }}
<iframe x-ref="iframe" class="d-none" src="https://player.vimeo.com/video/{{ $elm.vimeo_id }}" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:3;"></iframe>
<img
@click="$store.integrationsModal.playVideo($refs)"
x-ref="playOverlay"
class="play-overlay position-relative h-100 w-100 rounded-1"
src="https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }}"
src="https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }}"
alt="{{ $elm.caption }}">
<button
@click="$store.integrationsModal.playVideo($refs)"
Expand Down Expand Up @@ -92,7 +92,7 @@ <h1 x-text="'{{ $title }}'"></h1>
class="modal-item-btn p-0"
:class="shouldShowActiveHorizontalSlide({{ $idx }}) && 'active'"
@click="selectCarouselItem({{ $idx }})"
:style="{backgroundImage: 'url(https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
:style="{backgroundImage: 'url(https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
>
</button>
{{ end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
x-cloak x-show="shouldShowActiveHorizontalSlide({{ $idx }})"
x-transition.opacity.duration.500ms>
{{ if eq $elm.media_type "image"}}
<img class="h-100 w-100 rounded-1" src="https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }}" alt="{{ $elm.caption }}" >
<img class="h-100 w-100 rounded-1" src="https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }}" alt="{{ $elm.caption }}" >
{{ else }}
<iframe x-ref="iframe" class="d-none" src="https://player.vimeo.com/video/{{ $elm.vimeo_id }}" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:3"></iframe>
<img
x-ref="playOverlay"
class="play-overlay position-relative h-100 w-100 rounded-1"
src="https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }}"
src="https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }}"
alt="{{ $elm.caption }}">
<button
@click="$store.integrationsModal.playVideo($refs)"
Expand Down Expand Up @@ -161,7 +161,7 @@
class="carousel-item__vertical row g-0 p-0 w-100 mx-auto rounded-1"
:class="isActiveVertical({{$idx}}, $el)"
@click="navigateCarousel(chooseVerticalDirection($el))"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
>
</button>
{{ end }}
Expand All @@ -174,7 +174,7 @@
class="carousel-item__vertical row g-0 p-0 w-100 mx-auto rounded-1"
:class="isActiveVertical({{$idx}}, $el)"
@click="navigateCarousel(chooseVerticalDirection($el, {{ $idx }}))"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
>
</button>
{{ end }}
Expand All @@ -187,7 +187,7 @@
class="carousel-item__vertical row g-0 p-0 w-100 mx-auto rounded-1"
:class="isActiveVertical({{$idx}}, $el)"
@click="navigateCarousel(chooseVerticalDirection($el))"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-integrations/{{ $app_id }}/media_gallery/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
:style="{transform: `translateY(-${scrollByHeight * 2}px)`, backgroundImage: 'url(https://s3.amazonaws.com/dd-app-listings/{{ $app_id }}/media/{{ replaceRE `(./)?images/` "" $elm.image_url }})'}"
>
</button>
{{ end }}
Expand Down

0 comments on commit 2997904

Please sign in to comment.