Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/55f67f58807aec5b886aca73a0b...

1 line
37 KiB
JSON
Raw Permalink Normal View History

2020-12-22 10:59:14 -04:00
{"ast":null,"code":"import _regeneratorRuntime from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator\";\nimport _asyncToGenerator from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _classCallCheck from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _assertThisInitialized from \"/home/riddhi/simulation/Gazebo_simulation-Frontend/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nvar _jsxFileName = \"/home/riddhi/simulation/Gazebo_simulation-Frontend/src/components/App.js\";\nimport React, { Component } from 'react';\nimport Navigationbar from './Navigationbar';\nimport Comp_image from './Comp_image';\nimport { Redirect, withRouter, Route, NavLink, Navbar, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport './App.css';\nimport header from '../images/spiri_logo.jpg';\nimport logo from '../images/spiri.png'; // Tell Webpack this JS file uses this image\n\nimport { withCookies } from 'react-cookie';\nimport { confirmAlert } from 'react-confirm-alert'; // Import\n\nimport 'react-confirm-alert/src/react-confirm-alert.css'; // Import css\n\nimport axios from 'axios';\nimport LoadingOverlay from 'react-loading-overlay';\nimport { thisExpression } from '@babel/types'; //import { withAuth } from '@okta/okta-react';\n\nvar App = /*#__PURE__*/function (_Component) {\n _inherits(App, _Component);\n\n function App(props) {\n var _this;\n\n _classCallCheck(this, App);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, props));\n _this.state = {\n isLoading: false,\n isAuthenticated: false,\n user: undefined,\n launch: false,\n isNavbar: false\n };\n var cookies = props.cookies;\n console.log(cookies);\n _this.state.csrfToken = cookies.get('XSRF-TOKEN');\n console.log(_this.state.csrfToken);\n _this.local = \"localhost:8080\";\n _this.prod = \"174.138.41.124:8080\";\n _this.status = \"local\";\n\n if (_this.status === \"local\") {\n _this.ip = _this.local;\n }\n\n _this.yourOktaDomain = \"dev-125890.okta.com\";\n _this.simulatorWindow = null;\n _this.shellWindow = null;\n _this.routeLogin = _this.routeLogin.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.login = _this.login.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.logout = _this.logout.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.routeMain = _this.routeMain.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.submit = _this.submit.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.getSimulator = _this.settingsSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.launchSimulator = _this.launchSimulator.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.attach = _this.attach.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.heartbeat = _this.heartbeat.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.wait = _this.w