Creates a separate IdUI component, modeled after the public-key-card component.
I didn't implement a doWork method because it wasn't needed for this component (and I actually don't think it needs to exist in any components). In the functional paradigm, which I am a big supporter of, the data is passed down into the components, and the component fires actions up to its parents. The component modifies itself via its internal state. doWork in this context is vague and seems to imply a pattern of side effects, where a function/component modifies something outside of itself.
Really, then, to be completely functional, the components should simply be returning html, not actually doing the DOM update. I'm thinking something like choo would make sense here. Anyways, that's out of scope for this PR, just noting these thoughts while I'm at it.
Made a couple minor tweaks as well:
fixed typo
made avatar function reusable by making it a util
added a .gitignore file
committed the package-lock files (see commit message for justification)
Creates a separate IdUI component, modeled after the
public-key-card
component.I didn't implement a
doWork
method because it wasn't needed for this component (and I actually don't think it needs to exist in any components). In the functional paradigm, which I am a big supporter of, the data is passed down into the components, and the component fires actions up to its parents. The component modifies itself via its internalstate
.doWork
in this context is vague and seems to imply a pattern of side effects, where a function/component modifies something outside of itself.Really, then, to be completely functional, the components should simply be returning html, not actually doing the DOM update. I'm thinking something like choo would make sense here. Anyways, that's out of scope for this PR, just noting these thoughts while I'm at it.
Made a couple minor tweaks as well:
util