GET /api/get-followings
response -
[
{ "follow_to": 24, "follow_to_username": "takkar" },
{ "follow_to": 11, "follow_to_username": "nobita" },| const features = { | |
| SUPPORT_PAGE: 1, | |
| OTHER_PAGE: 2, | |
| EXTRACT: 4, | |
| }; | |
| const permission = { | |
| 1: { | |
| forbidden: '*', | |
| allowed: [4], |
| function addBlocker() { | |
| let html = document.querySelector("html") | |
| html.style.pointerEvents = "none" | |
| const handleClick = e => { | |
| html.style.pointerEvents = "auto" | |
| console.log({ | |
| target: document.elementFromPoint(e.clientX, e.clientY), | |
| x: e.clientX, | |
| y: e.clientY, |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <div> | |
| <div class="title">title1</div> |
| import React from 'react'; | |
| import {Link} from 'react-router-dom'; | |
| export const renderText = text => { | |
| let parts = text.split(/#(\S*)/g); | |
| for (let i = 1; i < parts.length; i += 2) { | |
| parts[i] = ( | |
| <Link key={"link" + i} to={`/hashed/${parts[i]}`}> | |
| #{parts[i]} |
| var linked = textToReplace.replace(/#(\S*)/g,'<a href="http://twitter.com/#!/search/$1">$1</a>'); |
api/post-it POST
body ->
{
desc: "hello asiq😵😵😵",
image: "(binary)",
filter: "filter-aden",
location: "Unnamed Road, Bangladesh",| const obj1 = {name: "miki", age: 32, gf: 32}; | |
| const obj2 = {fbId: "omgwhatanId", fbAge: 21, fbGf: 124}; | |
| // gf and fbGf are the properties we don't want | |
| const {gf, ...obj1Properties} = obj1; | |
| const {fbGf, ...obj2Properties} = obj2; | |