\\n
\\n
\\n Welcome to Kube-ArangoDB
\\n \\n
\\n There are no operators available yet.\\n
\\n {this.props.podInfoView}\\n {(this.props.error) ?
: null}\\n \\n );\\n }\\n}\\n\\nexport default NoOperator;\\n\\n\\n\\n// WEBPACK FOOTER //\\n// ./src/NoOperator.js\",\"module.exports = __webpack_public_path__ + \\\"static/media/logo.5d5d9eef.svg\\\";\\n\\n\\n//////////////////\\n// WEBPACK FOOTER\\n// ./src/logo.svg\\n// module id = 838\\n// module chunks = 0\",\"import React, { Component } from 'react';\\nimport api from '../api/api.js';\\nimport Login from './Login.js';\\nimport Loading from '../util/Loading.js';\\nimport LogoutContext from './LogoutContext.js';\\nimport { getSessionItem, setSessionItem } from \\\"../util/Storage.js\\\";\\n\\nconst tokenSessionKey = \\\"auth-token\\\";\\n\\nclass Auth extends Component {\\n state = {\\n authenticated: false,\\n showLoading: true,\\n token: getSessionItem(tokenSessionKey) || \\\"\\\"\\n };\\n\\n async componentDidMount() {\\n try {\\n api.token = this.state.token;\\n await api.get('/api/operators');\\n this.setState({\\n authenticated: true,\\n showLoading: false,\\n token: api.token\\n });\\n } catch (e) {\\n this.setState({\\n authenticated: false,\\n showLoading: false,\\n token: ''\\n });\\n }\\n }\\n\\n handleLogin = async (username, password) => {\\n try {\\n this.setState({error:undefined});\\n const res = await api.post('/login', { username, password });\\n api.token = res.token;\\n setSessionItem(tokenSessionKey, res.token);\\n this.setState({\\n authenticated: true,\\n token: res.token\\n });\\n return true;\\n } catch (e) {\\n this.setState({\\n authenticated: false,\\n token: '',\\n error: e.message\\n });\\n return false;\\n }\\n };\\n\\n handleLogout = () => {\\n api.token = '';\\n setSessionItem(tokenSessionKey, '');\\n this.setState({\\n authenticated: false,\\n token: '',\\n error: undefined\\n });\\n };\\n\\n componentWillUnmount() {\\n }\\n\\n render() {\\n return (\\n