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