https://github.com/unlabeled/moscowJS39
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
/* @flow */ | |
import { action, computed, observable } from "mobx" | |
import { setUserContext } from "utils/errors" | |
import { myJetStorage, routingStore } from "stores" | |
import Api from "utils/api" | |
import { Aircraft, User } from "types" | |
/* eslint-disable */ | |
declare var __MORDA__: boolean | |
const morda = Boolean(__MORDA__) |
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 request from "axios" | |
import { getQuery } from "../entities/utils" | |
import { getCookie } from "utils/cookie" | |
import { sendError } from "utils/errors" | |
const parseQuery = new RegExp("^([a-z]*)-(.*)-({.*})-({.*})$") | |
function addDataFromJson(obj, json, key) { | |
const params = JSON.parse(json) | |
if (Object.keys(params).length) { |
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 Raven from "raven-js" | |
import { sentry, release } from "../../config" | |
import Api from "utils/api" | |
const immediately = false | |
const errors = [] | |
/* eslint-disable */ | |
const dev = Boolean(__DEV__) | |
/* eslint-enable */ |
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
const cached = new WeakMap() | |
/** | |
* Check two arrays to equal | |
* | |
* @param {Array} firstParams | |
* @param {Array} secondParams | |
* @returns {boolean} | |
*/ | |
function isEqual(firstParams, secondParams) { |
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 { | |
cutFileName, | |
formatDate, | |
formatDateTime, | |
getUTCDate, | |
formatDateTimeForApi, | |
formatDateForApi, | |
formatMonthYear, | |
objectToQuery, | |
queryToObject, |