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 Loading from "./other/Loading";
import PropTypes from "prop-types";
import { successActionsWithReads, getLatestRead } from "../api/utils";
import { successActionsWithReads, getLatestRead } from "../../api/utils";
class CustomComponentForAPI extends Component {
customErrorHandlers = {}
......
......@@ -9,11 +9,11 @@ import { BrowserRouter as Router } from "react-router-dom";
import CustomComponentForAPI from "./CustomComponentForAPI";
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 PropTypes from "prop-types";
import areSameObjects from "../../../utils/areSameObjects";
import areSameObjects from "../../utils/areSameObjects";
import renderFieldsMixIn from "./renderFieldsMixIn";
import CustomError from "../../../utils/CustomError";
import CustomError from "../../utils/CustomError";
/**
* React component that should contain `Field` instances.
......
import React from "react";
import Typography from "@material-ui/core/Typography";
import getObjModerationLevel from "../../../utils/getObjModerationLevels";
import getObjModerationLevel from "../../utils/getObjModerationLevels";
import SelectField from "./fields/SelectField";
import UsefulLinksField from "./fields/UsefulLinksField";
import MarkdownField from "./fields/MarkdownField";
......@@ -8,8 +8,8 @@ import TextField from "./fields/TextField";
import MultiSelectField from "./fields/MultiSelectField";
import NumberField from "./fields/NumberField";
import store from "../../../store/index";
import { getLatestRead } from "../../../api/utils";
import store from "../../store/index";
import { getLatestRead } from "../../api/utils";
export default {
/**
......
......@@ -7,11 +7,11 @@ import Toolbar from "@material-ui/core/Toolbar";
import IconButton from "@material-ui/core/IconButton";
import Typography from "@material-ui/core/Typography";
import CloseIcon from "@material-ui/icons/Close";
import Alert from "./Alert";
import Alert from "../../shared/Alert";
// Form is imported only for type hints
// eslint-disable-next-line no-unused-vars
import Form from "./Form";
import Form from "../../shared/Form";
/**
......
......@@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types";
import Form from "./Form";
import CustomError from "../../../utils/CustomError";
import CustomError from "../../../../utils/CustomError";
const frequencyOptions = [
{ value: "w", label: "Il s'agit du montant hebdomadaire" },
......
import React, { Component } from "react";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../actions/fullScreenDialog";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../../actions/fullScreenDialog";
import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles";
......@@ -18,12 +18,12 @@ import MobileStepper from "@material-ui/core/MobileStepper";
import KeyboardArrowLeft from "@material-ui/icons/KeyboardArrowLeft";
import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight";
import Loading from "../../other/Loading";
import dateTimeStrToStr from "../../../utils/dateTimeStrToStr";
import Loading from "../../../other/Loading";
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 CustomComponentForAPI from "../../CustomComponentForAPI";
import CustomComponentForAPI from "../../../common/CustomComponentForAPI";
/**
* @class Module
......
......@@ -14,10 +14,10 @@ import Divider from "@material-ui/core/Divider";
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 CustomComponentForAPI from "../../CustomComponentForAPI";
import CustomComponentForAPI from "../../../CustomComponentForAPI";
const styles = theme => ({
root: {
......
......@@ -10,11 +10,11 @@ import red from "@material-ui/core/colors/red";
import orange from "@material-ui/core/colors/orange";
import green from "@material-ui/core/colors/green";
import CustomComponentForAPI from "../../CustomComponentForAPI";
import isModerationRequired from "../../../utils/isModerationRequired";
import Alert from "./Alert";
import CustomComponentForAPI from "../../../common/CustomComponentForAPI";
import isModerationRequired from "../../../../utils/isModerationRequired";
import Alert from "../../utils/Alert";
import getActions from "../../../api/getActions";
import getActions from "../../../../api/getActions";
import renderUsefulLinks from "./moduleWrapperFunctions/renderUsefulLinks";
......
import React, { Component } from "react";
import { connect } from "react-redux";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../actions/fullScreenDialog";
import { openFullScreenDialog, closeFullScreenDialog } from "../../../../actions/fullScreenDialog";
import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles";
......@@ -14,7 +14,7 @@ import Typography from "@material-ui/core/Typography";
import CloseIcon from "@material-ui/icons/Close";
import Divider from "@material-ui/core/Divider";
import editorStyle from "./editorStyle";
import editorStyle from "../../editors/utils/editorStyle";
const styles = theme => ({
...editorStyle(theme),
......
......@@ -2,8 +2,8 @@ import React from "react";
import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles";
import Markdown from "../../shared/Markdown";
import moneyConversion from "../../../utils/convertAmountToEur";
import Markdown from "../../../shared/Markdown";
import moneyConversion from "../../../../utils/convertAmountToEur";
import Typography from "@material-ui/core/Typography";
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