TwicPics / components

A Web component library that brings the power of TwicPics to your favorite web framework.
MIT License
54 stars 2 forks source link

Provide dev placeholders #5

Closed YannDuv closed 2 years ago

YannDuv commented 2 years ago

For the moment, when we develop we need to have the pictures hosted in order to see them. But in our process, the images are not hosted somewhere reachable by twicpic Proxy until the developpment is done and deployed. It would be nice to have one of the two solution available:

mbgspcii commented 2 years ago

Hi @YannDuv.

Version 0.7.0 should meet your requirements : https://github.com/TwicPics/components/blob/main/documentation/angular.md#setup-options

For non-networked usage choose

installTwicPics( { "domain": <your-domain>, "env": offline, } );

You can also try installTwicPics( { "domain": <your-domain>, "env": debug, } );

but I think you will still get 403's.

Hope it helps.

Best regards.