Clean imports in all the javascript files
This commit is contained in:
parent
c4ce39f353
commit
f1e206db0b
|
|
@ -1,6 +1,11 @@
|
|||
import { createStore, applyMiddleware, combineReducers } from 'redux';
|
||||
import {
|
||||
createStore,
|
||||
applyMiddleware,
|
||||
combineReducers
|
||||
} from 'redux';
|
||||
import { composeWithDevTools } from 'redux-devtools-extension';
|
||||
import thunkMiddleware from 'redux-thunk';
|
||||
|
||||
import { errorMessages } from './constants';
|
||||
|
||||
const axios = require('axios');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
import React from 'react';
|
||||
import { Alert, Button, Input, InputGroup, InputGroupAddon } from 'reactstrap';
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Input,
|
||||
InputGroup,
|
||||
InputGroupAddon
|
||||
} from 'reactstrap';
|
||||
|
||||
export default class EditableStringList extends React.Component {
|
||||
constructor(props) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import { Container } from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from './Navigation';
|
||||
import { Footer } from './Footer'
|
||||
import { Footer } from './Footer';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import {Container} from 'reactstrap';
|
||||
|
||||
import '../../static/everypage.css';
|
||||
import '../../static/css/error.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import {
|
|||
} from 'reactstrap';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { login } from '../api';
|
||||
|
||||
export function Login(props) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import {
|
|||
} from 'reactstrap';
|
||||
import { connect } from 'react-redux';
|
||||
import React from 'react';
|
||||
import { login, logout } from '../api';
|
||||
|
||||
import { logout } from '../api';
|
||||
|
||||
export class TurniereNavigation extends React.Component {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import App, {Container} from 'next/app';
|
||||
import { App, Container } from 'next/app';
|
||||
import React from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
import withReduxStore from '../js/redux/reduxStoreBinder';
|
||||
import Notifications from 'react-notify-toast';
|
||||
|
||||
import withReduxStore from '../js/redux/reduxStoreBinder';
|
||||
|
||||
class TurniereApp extends App {
|
||||
|
||||
render () {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import { ErrorPageComponent } from '../js/components/ErrorComponents.js';
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
import { ErrorPageComponent } from '../js/components/ErrorComponents';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
export default class Error extends React.Component {
|
||||
static getInitialProps({ res, err }) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
import Head from 'next/head';
|
||||
import '../static/everypage.css';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import { UserRestrictor, Option } from '../js/components/UserRestrictor';
|
||||
import { Login } from '../js/components/Login.js';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
|
|
@ -20,12 +15,15 @@ import {
|
|||
Label
|
||||
} from 'reactstrap';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { UserRestrictor, Option } from '../js/components/UserRestrictor';
|
||||
import { Login } from '../js/components/Login';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
import EditableStringList from '../js/components/EditableStringList';
|
||||
|
||||
import '../static/everypage.css';
|
||||
|
||||
class PrivateCreatePage extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
|
|
|
|||
14
pages/faq.js
14
pages/faq.js
|
|
@ -1,15 +1,15 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import {Col, Container, Row} from 'reactstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { Col, Container, Row } from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import '../static/everypage.css';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import '../static/everypage.css';
|
||||
|
||||
function Main() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import {Container} from 'reactstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { Container } from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import '../static/everypage.css';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import '../static/everypage.css';
|
||||
|
||||
function Main() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,23 +1,25 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
|
||||
import { Alert, Button, Card, CardBody } from 'reactstrap';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Card,
|
||||
CardBody
|
||||
} from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
|
||||
import '../static/everypage.css';
|
||||
import '../static/css/index.css';
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import '../static/everypage.css';
|
||||
import '../static/css/index.css';
|
||||
|
||||
function Main() {
|
||||
return (
|
||||
<div className="main">
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import { Card, CardBody, Container } from 'reactstrap';
|
||||
import {
|
||||
Card,
|
||||
CardBody,
|
||||
Container
|
||||
} from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import {
|
||||
getRequest,
|
||||
getState,
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
import Head from 'next/head';
|
||||
import '../static/everypage.css';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import { Login } from '../js/components/Login.js';
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { Login } from '../js/components/Login';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
import '../static/everypage.css';
|
||||
|
||||
export default class LoginPage extends React.Component {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import {Container} from 'reactstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { Container } from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import '../static/everypage.css';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import '../static/everypage.css';
|
||||
|
||||
function Main() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,15 +1,24 @@
|
|||
import Head from 'next/head';
|
||||
import '../static/everypage.css';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import React from 'react';
|
||||
import { Button, Card, CardBody, Container, Form, FormGroup, FormText, Input, Label } from 'reactstrap';
|
||||
import { register } from '../js/api';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import {
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
Button,
|
||||
Card,
|
||||
CardBody,
|
||||
Container,
|
||||
Form,
|
||||
FormGroup,
|
||||
FormText,
|
||||
Input,
|
||||
Label
|
||||
} from 'reactstrap';
|
||||
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { register } from '../js/api';
|
||||
import { verifyCredentials } from '../js/api';
|
||||
|
||||
import '../static/everypage.css';
|
||||
|
||||
export default class RegisterPage extends React.Component {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,7 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { connect } from 'react-redux';
|
||||
import { notify } from 'react-notify-toast';
|
||||
|
||||
import { requestTournament } from '../js/api';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { UserRestrictor, Option } from '../js/components/UserRestrictor.js';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import { Login } from '../js/components/Login.js';
|
||||
import { ErrorPageComponent } from '../js/components/ErrorComponents.js';
|
||||
|
||||
import {
|
||||
Container,
|
||||
Button,
|
||||
|
|
@ -20,11 +10,20 @@ import {
|
|||
Table
|
||||
} from 'reactstrap';
|
||||
|
||||
import { requestTournament } from '../js/api';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import { UserRestrictor, Option } from '../js/components/UserRestrictor';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { Login } from '../js/components/Login';
|
||||
import { ErrorPageComponent } from '../js/components/ErrorComponents';
|
||||
import {
|
||||
verifyCredentials,
|
||||
updateTeamName
|
||||
} from '../js/api';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import '../static/everypage.css';
|
||||
import '../static/css/index.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
|
|
@ -18,21 +19,22 @@ import {
|
|||
Row,
|
||||
Table
|
||||
} from 'reactstrap';
|
||||
import { ErrorPageComponent } from '../js/components/ErrorComponents.js';
|
||||
import { Footer } from '../js/components/Footer.js';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import { ErrorPageComponent } from '../js/components/ErrorComponents';
|
||||
import { Footer } from '../js/components/Footer';
|
||||
import { TurniereNavigation } from '../js/components/Navigation';
|
||||
import { BigImage } from '../js/components/BigImage';
|
||||
import '../static/everypage.css';
|
||||
import '../static/css/tournament.css';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import {
|
||||
getRequest,
|
||||
getState,
|
||||
verifyCredentials
|
||||
} from '../js/api';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import '../static/everypage.css';
|
||||
import '../static/css/tournament.css';
|
||||
|
||||
class TournamentPage extends React.Component {
|
||||
|
||||
render() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue