0.11.0 • Published 4 months ago

ember-cli-cloudinary-light v0.11.0

Weekly downloads
1,020
License
MIT
Repository
github
Last release
4 months ago

ember-cli-cloudinary-light

Ember addon for Cloudinary without jquery. Works good for fastboot.

Compatibility

  • Ember.js v4.8 or above
  • Ember CLI v4.8 or above
  • Node.js v18 or above

From version 0.6.0 there is no positional parameters, publicId and options are arguments!

Installation

ember install ember-cli-cloudinary-light

Add your cloud name to config/environment.js ENV:

cloudinary: {
  cloudName: 'some_cloud_name',
},

Components

cloudinary-image

This component will render an <img> built from a cloudinary url and options.

<CloudinaryImage @publicId={{this.myImageId}} @options={{hash width='60' height='60' crop='fill' quality='auto'}} />

Width and height attributes are set on the img tag as well as passed to cloudinary, allowing you to specify the resolution via the "dpr" attribute.

<CloudinaryImage @publicId={{this.myImageId}} @options={{hash width='60' height='60' dpr='2.0'}} />

cloudinary-video

This will render a <source> for use in a <video>

<video controls>
  <CloudinaryVideo @publicId='dog.mp4'/>
</video>

cloudinary-resource-list

Cloudinary's Client Side Resource Lists allow you to list cloudinary resources for a given tag.

<CloudinaryResourceList @cloudinaryTag='logo' as |resourceList|>
  {{#each resourceList.items as |item|}}
    <span>{{item.public_id}}</span>
  {{/each}}
</CloudinaryResourceList>

safe-cloudinary-url helper

This helper can be used in styles when you want to have dynamic url:s to cloudinary. It will return "background-image: url(..)" ready to use in a style element.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

0.11.0

4 months ago

0.10.1

8 months ago

0.10.0

10 months ago

0.9.3

1 year ago

0.9.2

1 year ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.8-beta

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago