// https://github.com/rexxars/react-markdown
// https://github.com/GregRos/typed-react-markdown
import * as ReactMarkdown from 'react-markdown';<ReactMarkdown linkTarget="_blank">
{intl.formatMessage(translations.message_with_links)}| import * as React from 'react'; | |
| export interface IClickOutsideProps { | |
| onClick: () => void; | |
| /** element to add the click event listener, default selector is body */ | |
| parentTargetQuerySelector?: string; | |
| } | |
| /** | |
| * Function Component to re-use the behavior of click outside |
| import * as React from 'react'; | |
| /** | |
| * extend the React.useState to have the state referente, so it will be possible to use its value | |
| * inside of other callbacks | |
| * | |
| * @param {T} initialValue | |
| * | |
| * @return {[T, React.MutableRefObject<T>, React.Dispatch<React.SetStateAction<T>>]} array | |
| */ |
| type TJSObject = { [key: string]: any }; | |
| type TJSValue = TJSObject | any; | |
| type TArrayFilter<T> = (x: T) => boolean; | |
| const TO_STRING = {}.toString; | |
| const isObjectBasicCheck = <T extends object>(value: any): value is T => value !== null && typeof value === 'object'; |
| 'use strict'; | |
| var _ = require('lodash'), | |
| hash = require('./utils_hash') | |
| ; | |
| //----------------------------------------------------------------------------// | |
| var SERVER_DATE_FORMAT = 'YYYY-MM-DD'; | |
| module.exports.SERVER_DATE_FORMAT = SERVER_DATE_FORMAT; |
| 'use strict'; | |
| var _ = require('lodash'), | |
| toHash = {} | |
| ; | |
| //============================================================================// | |
| // hash ids with mininum length = 8 | |
| var hashids = (function(){ |
| const readImageAsDataURL = async (imageBlob: Blob): Promise<string> => { | |
| // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL | |
| const imageReader = new FileReader(); | |
| return new Promise<string>(resolve => { | |
| const load = () => { | |
| imageReader.removeEventListener('load', load); | |
| resolve(imageReader.result as string); | |
| }; | |
| imageReader.addEventListener('load', load, false); | |
| imageReader.readAsDataURL(imageBlob); |
// https://github.com/rexxars/react-markdown
// https://github.com/GregRos/typed-react-markdown
import * as ReactMarkdown from 'react-markdown';<ReactMarkdown linkTarget="_blank">
{intl.formatMessage(translations.message_with_links)}| /* | |
| useful references: | |
| String.prototype.replace() | |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace | |
| https://alligator.io/js/string-replace/ | |
| Encode and Decode HTML entities using pure Javascript | |
| https://ourcodeworld.com/articles/read/188/encode-and-decode-html-entities-using-pure-javascript |
I hereby claim:
To claim this, I am signing this object:
--
Learn AngularJS | Codecademy - Learn to build web apps using AngularJS 1.x. By the end of the course, you'll be able to use AngularJS to create your own apps.
Egghead - AngularJS - curso online