You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Started using this addon last week. Been a great help to get Sanitize wired up and working in our app. As I've been using it I found a few places where it's a little difficult to navigate and I was wondering if you'd be interested in (a) feedback and (b) changes in the form of pull requests.
For feedback (a):
testing: I would like to unit test my sanitizers but the need for a container makes it cumbersome in tests. I have a little fake container I inject but it's quite a bit of set up for a little test. Which brings me to -
sanitizers: I was a little surprised that it's the sanitizer config that is stored in the container rather than a sanitizer [Object] I could call and pass in the HTML. I did make the built-in sanitizer configs of [BASIC, RELAXED, and RESTRICTED] available using the container as well, which was nice!
Not coincidentally, the changes I would recommend would be related to these two items:
sanitizers: I think it would be neat to create an Ember Sanitizer Object that could get registered in the store and used throughout the codebase. Something like:
testing: this change would mean that sanitizers could be tested without the container and would be self contained, it would be trivial to use this setup in the mixin as well.
blueprints: once you have objects like that you could create some blueprints to allow the creation of new serializers
I'll stop now. 😄 If you're interested in any of this I can put together a pull request or two and get moving.
Thanks for the project and for your time!
The text was updated successfully, but these errors were encountered:
Hi there @rlivsey,
Started using this addon last week. Been a great help to get Sanitize wired up and working in our app. As I've been using it I found a few places where it's a little difficult to navigate and I was wondering if you'd be interested in (a) feedback and (b) changes in the form of pull requests.
For feedback (a):
Not coincidentally, the changes I would recommend would be related to these two items:
I'll stop now. 😄 If you're interested in any of this I can put together a pull request or two and get moving.
Thanks for the project and for your time!
The text was updated successfully, but these errors were encountered: