Commit 81f10fe3 authored by Florent Chehab's avatar Florent Chehab

Reorganized all js files, everything should be broken now :D

parent 137f3e7a
import React, { Component } from "react"; import React, { Component } from "react";
import Loading from "./other/Loading"; import Loading from "./other/Loading";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { successActionsWithReads, getLatestRead } from "../api/utils"; import { successActionsWithReads, getLatestRead } from "../../api/utils";
class CustomComponentForAPI extends Component { class CustomComponentForAPI extends Component {
customErrorHandlers = {} customErrorHandlers = {}
......
...@@ -9,11 +9,11 @@ import { BrowserRouter as Router } from "react-router-dom"; ...@@ -9,11 +9,11 @@ import { BrowserRouter as Router } from "react-router-dom";
import CustomComponentForAPI from "./CustomComponentForAPI"; import CustomComponentForAPI from "./CustomComponentForAPI";
import "typeface-roboto"; import "typeface-roboto";
import areSameThemes from "../utils/areSameThemes"; import areSameThemes from "../../utils/areSameThemes";
import getActions from "../api/getActions"; import getActions from "../../api/getActions";
import { saveAppTheme } from "../actions/theme"; import { saveAppTheme } from "../../actions/theme";
/** /**
......
import { Component } from "react"; import { Component } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import areSameObjects from "../../../utils/areSameObjects"; import areSameObjects from "../../utils/areSameObjects";
import renderFieldsMixIn from "./renderFieldsMixIn"; import renderFieldsMixIn from "./renderFieldsMixIn";
import CustomError from "../../../utils/CustomError"; import CustomError from "../../utils/CustomError";
/** /**
* React component that should contain `Field` instances. * React component that should contain `Field` instances.
......
import React from "react"; import React from "react";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
import getObjModerationLevel from "../../../utils/getObjModerationLevels"; import getObjModerationLevel from "../../utils/getObjModerationLevels";
import SelectField from "./fields/SelectField"; import SelectField from "./fields/SelectField";
import UsefulLinksField from "./fields/UsefulLinksField"; import UsefulLinksField from "./fields/UsefulLinksField";
import MarkdownField from "./fields/MarkdownField"; import MarkdownField from "./fields/MarkdownField";
...@@ -8,8 +8,8 @@ import TextField from "./fields/TextField"; ...@@ -8,8 +8,8 @@ import TextField from "./fields/TextField";
import MultiSelectField from "./fields/MultiSelectField"; import MultiSelectField from "./fields/MultiSelectField";
import NumberField from "./fields/NumberField"; import NumberField from "./fields/NumberField";
import store from "../../../store/index"; import store from "../../store/index";
import { getLatestRead } from "../../../api/utils"; import { getLatestRead } from "../../api/utils";
export default { export default {
/** /**
......
...@@ -7,11 +7,11 @@ import Toolbar from "@material-ui/core/Toolbar"; ...@@ -7,11 +7,11 @@ import Toolbar from "@material-ui/core/Toolbar";
import IconButton from "@material-ui/core/IconButton"; import IconButton from "@material-ui/core/IconButton";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
import CloseIcon from "@material-ui/icons/Close"; import CloseIcon from "@material-ui/icons/Close";
import Alert from "./Alert"; import Alert from "../../shared/Alert";
// Form is imported only for type hints // Form is imported only for type hints
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import Form from "./Form"; import Form from "../../shared/Form";
/** /**
......
...@@ -2,7 +2,7 @@ import React from "react"; ...@@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import Form from "./Form"; import Form from "./Form";
import CustomError from "../../../utils/CustomError"; import CustomError from "../../../../utils/CustomError";
const frequencyOptions = [ const frequencyOptions = [
{ value: "w", label: "Il s'agit du montant hebdomadaire" }, { value: "w", label: "Il s'agit du montant hebdomadaire" },
......
import React, { Component } from "react"; import React, { Component } from "react";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../actions/fullScreenDialog"; import { openFullScreenDialog, closeFullScreenDialog } from "../../../../actions/fullScreenDialog";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles"; import withStyles from "@material-ui/core/styles/withStyles";
...@@ -18,12 +18,12 @@ import MobileStepper from "@material-ui/core/MobileStepper"; ...@@ -18,12 +18,12 @@ import MobileStepper from "@material-ui/core/MobileStepper";
import KeyboardArrowLeft from "@material-ui/icons/KeyboardArrowLeft"; import KeyboardArrowLeft from "@material-ui/icons/KeyboardArrowLeft";
import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"; import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight";
import Loading from "../../other/Loading"; import Loading from "../../../other/Loading";
import dateTimeStrToStr from "../../../utils/dateTimeStrToStr"; import dateTimeStrToStr from "../../../../utils/dateTimeStrToStr";
import editorStyle from "./editorStyle"; import editorStyle from "../../editors/utils/editorStyle";
import getActions from "../../../api/getActions"; import getActions from "../../../../api/getActions";
......
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import CustomComponentForAPI from "../../CustomComponentForAPI"; import CustomComponentForAPI from "../../../common/CustomComponentForAPI";
/** /**
* @class Module * @class Module
......
...@@ -14,10 +14,10 @@ import Divider from "@material-ui/core/Divider"; ...@@ -14,10 +14,10 @@ import Divider from "@material-ui/core/Divider";
import AddIcon from "@material-ui/icons/Add"; import AddIcon from "@material-ui/icons/Add";
import getActions from "../../../api/getActions"; import getActions from "../../../../api/getActions";
import green from "@material-ui/core/colors/green"; import green from "@material-ui/core/colors/green";
import CustomComponentForAPI from "../../CustomComponentForAPI"; import CustomComponentForAPI from "../../../CustomComponentForAPI";
const styles = theme => ({ const styles = theme => ({
root: { root: {
......
...@@ -10,11 +10,11 @@ import red from "@material-ui/core/colors/red"; ...@@ -10,11 +10,11 @@ import red from "@material-ui/core/colors/red";
import orange from "@material-ui/core/colors/orange"; import orange from "@material-ui/core/colors/orange";
import green from "@material-ui/core/colors/green"; import green from "@material-ui/core/colors/green";
import CustomComponentForAPI from "../../CustomComponentForAPI"; import CustomComponentForAPI from "../../../common/CustomComponentForAPI";
import isModerationRequired from "../../../utils/isModerationRequired"; import isModerationRequired from "../../../../utils/isModerationRequired";
import Alert from "./Alert"; import Alert from "../../utils/Alert";
import getActions from "../../../api/getActions"; import getActions from "../../../../api/getActions";
import renderUsefulLinks from "./moduleWrapperFunctions/renderUsefulLinks"; import renderUsefulLinks from "./moduleWrapperFunctions/renderUsefulLinks";
......
import React, { Component } from "react"; import React, { Component } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../actions/fullScreenDialog"; import { openFullScreenDialog, closeFullScreenDialog } from "../../../../actions/fullScreenDialog";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles"; import withStyles from "@material-ui/core/styles/withStyles";
...@@ -14,7 +14,7 @@ import Typography from "@material-ui/core/Typography"; ...@@ -14,7 +14,7 @@ import Typography from "@material-ui/core/Typography";
import CloseIcon from "@material-ui/icons/Close"; import CloseIcon from "@material-ui/icons/Close";
import Divider from "@material-ui/core/Divider"; import Divider from "@material-ui/core/Divider";
import editorStyle from "./editorStyle"; import editorStyle from "../../editors/utils/editorStyle";
const styles = theme => ({ const styles = theme => ({
...editorStyle(theme), ...editorStyle(theme),
......
...@@ -2,8 +2,8 @@ import React from "react"; ...@@ -2,8 +2,8 @@ import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles"; import withStyles from "@material-ui/core/styles/withStyles";
import Markdown from "../../shared/Markdown"; import Markdown from "../../../shared/Markdown";
import moneyConversion from "../../../utils/convertAmountToEur"; import moneyConversion from "../../../../utils/convertAmountToEur";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
const styles = theme => { const styles = theme => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment