Giter VIP home page Giter VIP logo

ember-lazy-image's People

Contributors

bmfay avatar djvoa12 avatar ember-tomster avatar fsmanuel avatar kategengler avatar kidgodzilla avatar poteto avatar twokul avatar yankeeinlondon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-lazy-image's Issues

Model changed - Lazy Image didn't changed

I've got a list of products and when i change a query-param like sort-order form ascending to descending the products change expect the lazy-image-component which displays the image of the product before on that place. What needs to be done to get this to work.

Release 0.0.13

Hi!
When you are planning your next release with commit e90dfe1? Uncomfortable work with Ember 1.13.

Thanks for work!

Images not loading on first page load

Using Ember 2.5.0. Could not get this component to work on the initial page load. Worked beautifully on each subsequent page.

In each case, the image spinner would go away and no error was thrown. The src attribute for the image was simply blank.

package.json not updated

Hello, when trying to install via ember install ember-lazy-image or npm install the package.json is still pointing to ~1.2.5 of the ember-in-viewport ... comes down as v0.0.14.

Any chance of fixing that?

Is this add-on abandoned?

Is this add-on abandoned? I'm seeing a few PRs submitted a while ago and nothing happened. I was about to submit one, but not sure since there's no activity on the repo.

add alt attribute support

I've tried to add alt attributes and it doesn't seem posible, it's something that can be done easily? I could look at the code to make a PR if neccesary.

Thanks!

move to adopted-ember-addons โ™ฅ

@twokul has added me as a contributor to the repo, and I have an open PR to update some deps and fix tests. Thanks @twokul !

I haven't gotten much feedback on my PR or seen much other activity recently though.

I propose moving the repo to ember-adopted-addons to increase visibility and perhaps attract more contributors.

What do @twokul and any of the other maintainers think?

Hocks vs. viewportEntered

@poteto What is the recommended way to catch the viewportEntered changes. We are using both and that breaks the addon:
https://github.com/twokul/ember-lazy-image/blob/master/addon/components/lazy-image.js#L36-L47

You first trigger the event and than set viewportEntered:
https://github.com/dockyard/ember-in-viewport/blob/76cc70431d025cff28fd2f775490e8fc36cc5535/addon/mixins/in-viewport.js#L145-L147

In our case the set seems to be too late and the image will never be visible.

As I understand it we no longer need to check if (viewportEntered && lazyUrl === "//:0") { is that correct?

Uncaught TypeError: classArray.join is not a function

When class is specified like this

{{lazy-image class="v-grid-item__img" url=mainImage errorText=""}}

check which suppose that class is an array fails, because now class is clearly a string.


After I wrote a tests, it seems like test is passing, but its failing in the application, hm

js error

Update ember-in-viewport to 1.2.0, use hooks instead of observer

With [email protected], you no longer need to use an observer to observe viewportEntered changing. Instead, we can now handle it like any other hook:

export default Ember.Component.extend(InViewportMixin, {

  // with prototype extensions disabled
  handleDidEnterViewport: Ember.on('didEnterViewport', function() {
    console.log('entered');
  }),

  handleDidExitViewport: Ember.on('didExitViewport', function() {
    console.log('exited');
  }),

  // with prototype extensions enabled
  handleDidEnterViewport: (function() {
    console.log('entered');
  }).on('didEnterViewport'),

  handleDidExitViewport: (function() {
    console.log('exited');
  }).on('didExitViewport'),

  // method override 
  didEnterViewport() {
    console.log('entered');
  },

  didExitViewport() {
    console.log('exited');
  }
});

This would be a good issue for new contributors to work on!

  • Update ember-in-viewport to 1.2.0
  • Remove observer
  • Use Ember.on instead

Showing error message when not in 100% in viewport

Hi,
I am using ember 1.11.2 with cli 0.2.3 and the component is showing an error message when the image is not fully inside a view port. when I try to override ember-in-viewport options the component crashes. is this compatibility issue?

Cannot read property 'forEach' of undefined

I am attempting to use this inside a component that is being rendered inside an each loop

// ITEMS ROUTE
{{#each model key="id" as |item|}}
    {{event-item item=item}}
{{/each}}

// EVENT-ITEM COMPONENT
{{#link-to "item" item}}
    {{lazy-image url='https://s3.amazonaws.com/bidr-uploads/item-images/{{localStorage.user.active_auction}}/{{cropped-image item.item_image}}' class="item-image" alt="{{item.item_name}}"}}
    ...
{{/link-to}}

Any idea as to what is happening here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.