This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IdentityProps } from '@polkadot/react-identicon/types' | |
import Avatar from 'antd/lib/avatar/avatar' | |
import React, {useEffect, useRef} from 'react' | |
import { DEFAULT_AVATAR_SIZE } from 'src/config/Size.config' | |
import * as jdenticon from 'jdenticon'; | |
type JdenticonProps = { | |
value: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spaces: | |
getSpaces | |
getSpacesByIds | |
getSpaceIds(maybe useless?) | |
getPublicSpaces | |
getUnlistedSpaces | |
Posts: | |
getPosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api { | |
_res; | |
constructor (_baseUrl) { | |
this._baseUrl = _baseUrl; | |
this._xhr = new XMLHttpRequest(); | |
this._xhr.onload = this._onload; | |
this._xhr.addEventListener( 'load', this._onSuccess ); | |
} |