Helpers module is a set of utilities
Members
-
innerCryptor
-
Encryption and decryption library that works in node.js, browser and native(react-native)
- See:
- TODO
-
- Build helper functions out of this
Methods
-
inneraddHistory(newHistoryItem, historyItems){array}
-
Name Type Description newHistoryItemstring The new history item to add
historyItemsarray Existing history items
- See:
-
historySizefor default history size
Returns:
Type Description array returns history items trimmed to their max size with the new item appended -
innerclient(){object}
-
Wrapper for two
axioslibrary methods:client.get(url)andclient.post(url, params)- See:
-
- https://www.npmjs.com/package/axios for usage
Returns:
Type Description object returns object from network request -
innerfiler(name, prefix){string}
-
Name Type Description namestring Path to prefix
prefixstring Prefix
Returns:
Type Description string returns path with prefix applied -
innerinitialsAvatar(name, colors, size){object}
-
Name Type Description namestring full name or username to generate avatar initials from
colorsarray color palette to use. See
defaultAvatarColorsfor defaultsizestring size of avatar. See
avatarSizefor defaultReturns:
Type Description object returns {content, style}, where content is string of initials and style is style of avatar