Skip to content

Instantly share code, notes, and snippets.

private addScriptPromise(src: string) {
let scriptResolve: () => void;
let scriptReject: () => void;
const scriptPromise = new Promise((resolve, reject) => {
scriptResolve = resolve;
scriptReject = reject;
});
const scriptComponent = (
<Script
url={src}
<link rel="stylesheet" type="text/css" href="http://localhost:3000/assets/widget.css" media="all">
<div id="content">
</div>
<script
src="http://localhost:3000/assets/widget.js"
data-host="build-1970.backend-content.dev2.cian.ru"
data-protocol="http"
data-render-element="content"
data-user-id="1624631"></script>
<script src="//surviocdn.com/s1/static/survey/js/easyXDM-2.4.16.3/easyXDM.min.js"></script><div id="survey-63301b91" style="height:600px;padding:0;margin:0;"></div><iframe src="https://www.survio.com/survey/i/U6N6G1F8Q8A4J3L4U?shim=1" style="width:100%; height:30px;" frameborder="0" id="survey-prev-63301b91"></iframe><noscript><iframe src="https://www.survio.com/survey/i/U6N6G1F8Q8A4J3L4U" style="width:100%; height:600px; margin-top:-35px;" frameborder="0"></iframe></noscript><script type="text/javascript">new easyXDM.Socket({remote: "https://www.survio.com/survey/i/U6N6G1F8Q8A4J3L4U?embed=1", container:document.getElementById("survey-63301b91"), swf:'//surviocdn.com/s1/static/survey/js/easyXDM-2.4.16.3/easyxdm.swf', onReady: function(){ var shim = document.getElementById("survey-prev-63301b91"); shim.parentNode.removeChild(shim); this.container.getElementsByTagName("iframe")[0].style.width="100%"}, onMessage: function(message, origin){var h=message+"px";this.container.style.height=h;this.container.getElemen
response { requestConfig:
{ method: 'GET',
uri:
{ scheme: 'https',
host: 'beta1.stage.cian.ru',
path: '/api/geo/get-regions/',
basePath: '' },
body: undefined,
headers: [ [Object] ] },
requestURI:
const createCategorizedList = (routeCategory?: string) => {
return asyncConnect(
[{
promise: (props: AsyncProps) => {
const page = props.location.query.page || 1;
const ordering = props.location.query.ordering || '-date_publish';
const tag = props.location.query.tag || '';
const category = routeCategory ? routeCategory : categoryFromProps(props);
const params = { page, ordering, tag, category };
const requests = [
source 'https://rubygems.org'
gem 'jenkins_api_client', :git => 'https://github.com/arangamani/jenkins_api_client'
gem 'telegram-bot-ruby'
gem 'daemons'
ERROR in /Users/sk_/projects/frontend-mainpage/src/server/index.tsx
(188,23): error TS2345: Argument of type 'RequestLogger' is not assignable to parameter of type 'void | Client'.
Type 'RequestLogger' is not assignable to type 'Client'.
Property 'captureException' is missing in type 'RequestLogger'.
ERROR in /Users/sk_/projects/frontend-mainpage/src/server/cache.tsx
(23,30): error TS2345: Argument of type 'ServerLogger' is not assignable to parameter of type 'void | Client'.
Type 'ServerLogger' is not assignable to type 'Client'.
Property 'captureException' is missing in type 'ServerLogger'.
source 'https://rubygems.org'
gem 'jenkins_api_client', :git => 'https://github.com/arangamani/jenkins_api_client'
gem 'telegram-bot-ruby'
root = true
[*]
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
{
"status": "ok",
"data": {
"idsNotFound": [],
"items": [
{
"linkUserTrustDescription": "http://www.master.dev.cian.ru/help/quality/37630/",
"userTrust": false,
"userIdentifications": true,
"isProfi": false,