Commit 9ff42d01 authored by Matija Obreza's avatar Matija Obreza
Browse files

Moved assets/utilities to src/utilities

- import X from 'utilities';
- import Y from 'utilities/Y';
parent fc95998b
import {push} from 'react-router-redux';
import {SubmissionError} from 'redux-form';
import {dereferenceReferences} from '../utilities';
import {dereferenceReferences} from 'utilities';
import {Dataset, AccessionIdentifier} from '../model/dataset.model';
import {Page} from '../model/common.model';
import {Creator} from '../model/creator.model';
......
import {push} from 'react-router-redux';
import {SubmissionError} from 'redux-form';
import {dereferenceReferences} from '../utilities';
import {dereferenceReferences} from 'utilities';
import {DescriptorService} from '../service/DescriptorService';
import {RECEIVE_DESCRIPTOR, RECEIVE_DESCRIPTOR_PAGE } from '../constants/descriptors';
import {Descriptor} from '../model/descriptors.model';
......
import axios from 'axios';
import {LOGIN_URL, LOGOUT_URL, CHECK_TOKEN_URL, VERIFY_GOOGLE_TOKEN_URL} from '../constants/apiURLS';
import * as Constants from '../constants/login';
import {clearCookies, saveCookies} from '../utilities';
import {clearCookies, saveCookies} from 'utilities';
import {ROLE_CLIENT} from '../constants/userRoles';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
function loginRequest(username, password) {
return (dispatch) => {
......
......@@ -7,7 +7,7 @@ import {MuiThemeProvider} from 'material-ui/styles';
import Header from './header';
import Footer from './footer/index';
import {checkTokenRequest, logoutRequest, loginAppRequest, loginUser} from '../actions/login';
import {clearCookies, saveCookies} from '../utilities';
import {clearCookies, saveCookies} from 'utilities';
import {ROLE_CLIENT} from '../constants/userRoles';
import {serverInfoRequest} from '../actions/serverInfo';
import {setAppMounted} from '../actions/appMounted';
......
import * as React from 'react';
import GoogleLogin from 'react-google-login';
import {Form, FormGroup, Col, FormControl, ControlLabel, Button} from 'react-bootstrap';
import {saveCookies} from '../../../utilities';
import {saveCookies} from 'utilities';
const googleClientId: string = process.env.GOOGLE_CLIENT_ID;
......
......@@ -9,7 +9,7 @@ import LeftMenu from './leftMenu';
import { Link } from 'react-router';
import {ROLE_ADMINISTRATOR, ROLE_CLIENT, ROLE_USER} from '../../constants/userRoles';
import {saveCookies} from '../../utilities';
import {saveCookies} from 'utilities';
import UserMenuComponent from './UserMenuComponent';
const styleSheet = {
......
......@@ -11,7 +11,7 @@ import Grid from 'material-ui/Grid';
import {DATASET_LIST_OF_ACCESSION_FORM} from '../../../../../../constants/datasets';
import {AccessionIdentifier} from '../../../../../../model/dataset.model';
import AccessionIdentifiersList from '../../../../../common/dataset/AccessionIdentifiersList';
import {CSV, ICsvConfiguration} from '../../../../../../utilities/CSV';
import {CSV, ICsvConfiguration} from 'utilities/CSV';
interface IListOfAccession extends React.ClassAttributes<any> {
classes: any;
......
import * as React from 'react';
import {withStyles} from 'material-ui/styles';
import {isNumeric} from '../../../../../../utilities';
import {isNumeric} from 'utilities';
let Map;
let Marker;
......
import { fixDate, arraysEqual } from '../utilities';
import { fixDate, arraysEqual } from 'utilities';
export interface IVersionedEntity {
id: number;
......
import {Creator, CreatorRole} from '../model/creator.model';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {MAIN_URL_PART_CREATOR_URL, CREATE_CREATOR_URL, DELETE_CREATOR_URL, UPDTATE_CREATOR_URL} from '../constants/apiURLS';
export class CreatorService {
......
import {Dataset, AccessionIdentifier} from '../model/dataset.model';
import {Page} from '../model/common.model';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {MY_DATASETS_LIST_URL, LIST_DATASET_URL, GET_DATASET_URL, CREATE_DATASET_URL, UPDATE_DATASET_URL, PUBLISH_DATASET_URL, UPDATE_DATASET_ACCESSIONS_URL} from '../constants/apiURLS';
import {IDatasetFilter} from '../model/filter.model';
......
import {Descriptor} from '../model/descriptors.model';
import {Page} from '../model/common.model';
import {MY_DESCRIPTORS_LIST_URL, GET_DESCRIPTOR_URL, CREATE_DESCRIPTOR_URL, UPDATE_DESCRIPTOR_URL, PUBLISH_DESCRIPTOR_URL, GET_DESCRIPTORS_WITH_FILTER_URL, GET_DESCRIPTOR_CATEGORIES_URL} from '../constants/apiURLS';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {IDescriptorFilter} from '../model/filter.model';
// class ApiError {
......
import {ServerInfo} from '../model/serverinfo.model';
import {SERVER_INFO_URL} from '../constants/apiURLS';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
export class InfoService {
......
import {Location} from '../model/location.model';
import {Page} from '../model/common.model';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {
LIST_LOCATION_URL,
GET_LOCATION_URL,
......
import {Partner} from '../model/partner.model';
import {Page} from '../model/common.model';
import {MY_PARTNERS_LIST_URL, GET_PARTNER_URL, LIST_PARTNER_URL, CREATE_PARTNER_URL, UPDATE_PARTNER_URL } from '../constants/apiURLS';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {IPartnerFilter} from '../model/filter.model';
// class ApiError {
......
import {RepositoryFile} from '../model/repositoryFile.model';
import {Dataset} from '../model/dataset.model';
import {Page} from '../model/common.model';
import authenticatedRequest from '../utilities/requestUtils';
import authenticatedRequest from 'utilities/requestUtils';
import {
LIST_REPOSITORY_FILE_URL,
SAVE_REPOSITORY_FILE_URL,
......
Supports Markdown
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