1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||||||
|
import jdenticon from 'jdenticon'; |
||||||
|
import Ember from 'ember'; |
||||||
|
import { helper } from '@ember/component/helper'; |
||||||
|
|
||||||
|
export function identicon([value, size]) { |
||||||
|
|
||||||
|
var icon = jdenticon.toSvg(value, size, "0");
|
||||||
|
|
||||||
|
return Ember.String.htmlSafe(icon); |
||||||
|
} |
||||||
|
|
||||||
|
export default helper(identicon); |
||||||
Loading…
Reference in new issue