Skip to content

Commit

Permalink
Remove use of @ember/render-modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Sep 8, 2024
1 parent 9d55efe commit 83557a0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 139 deletions.
1 change: 0 additions & 1 deletion packages/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"prepack": "pnpm turbo build"
},
"dependencies": {
"@ember/render-modifiers": "^2.0.0",
"@embroider/addon-shim": "^1.8.7",
"@embroider/macros": "^1.0.0",
"@responsive-image/cdn": "workspace:^",
Expand Down
20 changes: 10 additions & 10 deletions packages/ember/src/components/responsive-image.hbs
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<picture>
{{#each this.sourcesSorted as |s|}}
<source
srcset={{s.srcset}}
type={{s.mimeType}}
sizes={{s.sizes}}
/>
<source srcset={{s.srcset}} type={{s.mimeType}} sizes={{s.sizes}} />
{{/each}}
<img
src={{this.src}}
width={{this.width}}
height={{this.height}}
class={{this.classNames}}
loading="lazy"
decoding="async"
loading='lazy'
decoding='async'
...attributes
data-eri-bh={{this.blurhashMeta.hash}}
data-eri-bh-w={{this.blurhashMeta.width}}
data-eri-bh-h={{this.blurhashMeta.height}}
{{style
(if this.showLqipBlurhash (hash background-image=this.lqipBlurhash background-size="cover"))
(if
this.showLqipBlurhash
(hash background-image=this.lqipBlurhash background-size='cover')
)
}}
{{on "load" this.onLoad}}
{{did-insert this.setRendered}}
{{on 'load' this.onLoad}}
{{! @glint-expect-error }}
{{(this.setRendered)}}
/>
</picture>
141 changes: 13 additions & 128 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83557a0

Please sign in to comment.