diff --git a/resources/js/core/Navigator.js b/resources/js/core/Navigator.js index f9d5554..35fbe4a 100755 --- a/resources/js/core/Navigator.js +++ b/resources/js/core/Navigator.js @@ -1,8 +1,8 @@ import React, { useContext } from 'react'; import { withRouter, Route, Switch, Redirect } from 'react-router-dom'; -import * as NavigationUtils from '../utils/Navigation'; -import * as UrlUtils from '../utils/URL'; +import * as NavigationUtils from '../helpers/Navigation'; +import * as UrlUtils from '../helpers/URL'; import { AppContext } from '../AppContext'; const Navigator = props => { diff --git a/resources/js/utils/Navigation.js b/resources/js/helpers/Navigation.js similarity index 96% rename from resources/js/utils/Navigation.js rename to resources/js/helpers/Navigation.js index 5c9ad12..d880631 100755 --- a/resources/js/utils/Navigation.js +++ b/resources/js/helpers/Navigation.js @@ -1,5 +1,5 @@ import { ROUTES } from '../config'; -import * as UrlUtils from '../utils/URL'; +import * as UrlUtils from '../helpers/URL'; /** * Find the route by its name. diff --git a/resources/js/utils/Random.js b/resources/js/helpers/Random.js similarity index 93% rename from resources/js/utils/Random.js rename to resources/js/helpers/Random.js index 062ff48..0709a6c 100755 --- a/resources/js/utils/Random.js +++ b/resources/js/helpers/Random.js @@ -5,7 +5,7 @@ * * @return {string} */ -export const color = key => { +export function color(key) { const colors = [ 'red', 'pink', @@ -29,4 +29,4 @@ export const color = key => { ]; return colors[key > colors.length - 1 ? 2 : key]; -}; +} diff --git a/resources/js/utils/ServiceWorker.js b/resources/js/helpers/ServiceWorker.js similarity index 100% rename from resources/js/utils/ServiceWorker.js rename to resources/js/helpers/ServiceWorker.js diff --git a/resources/js/utils/String.js b/resources/js/helpers/String.js similarity index 100% rename from resources/js/utils/String.js rename to resources/js/helpers/String.js diff --git a/resources/js/utils/URL.js b/resources/js/helpers/URL.js similarity index 100% rename from resources/js/utils/URL.js rename to resources/js/helpers/URL.js diff --git a/resources/js/utils/index.js b/resources/js/helpers/index.js similarity index 100% rename from resources/js/utils/index.js rename to resources/js/helpers/index.js diff --git a/resources/js/index.backoffice.js b/resources/js/index.backoffice.js index 4f62bd5..a325158 100755 --- a/resources/js/index.backoffice.js +++ b/resources/js/index.backoffice.js @@ -3,7 +3,7 @@ import './bootstrap'; import React from 'react'; import ReactDOM from 'react-dom'; -import { register as registerServiceWorker } from './utils/ServiceWorker'; +import { register as registerServiceWorker } from './helpers/ServiceWorker'; import App from './App'; import { dark as darkTheme, light as lightTheme } from './themes/backoffice'; diff --git a/resources/js/ui/Breadcrumbs.js b/resources/js/ui/Breadcrumbs.js index 55bde6c..935c0f9 100644 --- a/resources/js/ui/Breadcrumbs.js +++ b/resources/js/ui/Breadcrumbs.js @@ -8,8 +8,8 @@ import { Breadcrumbs as MuiBreadcrumbs } from '@material-ui/lab'; import { Home as HomeIcon } from '@material-ui/icons'; -import * as NavigationUtils from '../utils/Navigation'; -import * as StringUtils from '../utils/String'; +import * as NavigationUtils from '../helpers/Navigation'; +import * as StringUtils from '../helpers/String'; function Breadcrumbs(props) { const { classes, segments, blacklistedSegments, ...other } = props; diff --git a/resources/js/ui/Dropzone.js b/resources/js/ui/Dropzone.js index 2deca14..a67ae1f 100644 --- a/resources/js/ui/Dropzone.js +++ b/resources/js/ui/Dropzone.js @@ -20,7 +20,7 @@ import { Queue as QueueIcon, } from '@material-ui/icons'; -import * as StringUtils from '../utils/String'; +import * as StringUtils from '../helpers/String'; import { LinearDeterminate } from './Loaders'; const getFileStatusClass = status => { diff --git a/resources/js/views/__backoffice/partials/Header.js b/resources/js/views/__backoffice/partials/Header.js index 219159d..1981542 100644 --- a/resources/js/views/__backoffice/partials/Header.js +++ b/resources/js/views/__backoffice/partials/Header.js @@ -39,8 +39,8 @@ import { Update as UpdateIcon, } from '@material-ui/icons'; -import * as NavigationUtils from '../../../utils/Navigation'; -import * as RandomUtils from '../../../utils/Random'; +import * as NavigationUtils from '../../../helpers/Navigation'; +import * as RandomUtils from '../../../helpers/Random'; import { GitHub as GitHubIcon, LightbulbOff as LightbulbOffIcon, diff --git a/resources/js/views/__backoffice/partials/Sidebar.js b/resources/js/views/__backoffice/partials/Sidebar.js index 7ed3041..47ccc26 100644 --- a/resources/js/views/__backoffice/partials/Sidebar.js +++ b/resources/js/views/__backoffice/partials/Sidebar.js @@ -27,8 +27,8 @@ import { } from '@material-ui/icons'; import { APP } from '../../../config'; -import * as NavigationUtils from '../../../utils/Navigation'; -import * as StringUtils from '../../../utils/String'; +import * as NavigationUtils from '../../../helpers/Navigation'; +import * as StringUtils from '../../../helpers/String'; import brandLogoLight from '../../../../img/logos/short-light.svg'; import brandLogoDark from '../../../../img/logos/short-dark.svg'; diff --git a/resources/js/views/__backoffice/settings/Account.js b/resources/js/views/__backoffice/settings/Account.js index 45372d2..16ddccc 100644 --- a/resources/js/views/__backoffice/settings/Account.js +++ b/resources/js/views/__backoffice/settings/Account.js @@ -20,7 +20,7 @@ import { VisibilityOff as VisibilityOffIcon, } from '@material-ui/icons'; -import * as UrlUtils from '../../../utils/URL'; +import * as UrlUtils from '../../../helpers/URL'; import { Clean as CleanLayout, Settings as SettingsLayout, diff --git a/resources/js/views/__backoffice/settings/Profile.js b/resources/js/views/__backoffice/settings/Profile.js index 96efd6f..e516552 100644 --- a/resources/js/views/__backoffice/settings/Profile.js +++ b/resources/js/views/__backoffice/settings/Profile.js @@ -22,7 +22,7 @@ import { import { MuiPickersUtilsProvider, DatePicker } from 'material-ui-pickers'; import MomentUtils from '@date-io/moment'; -import * as UrlUtils from '../../../utils/URL'; +import * as UrlUtils from '../../../helpers/URL'; import { Clean as CleanLayout, Settings as SettingsLayout, diff --git a/resources/js/views/__backoffice/users/Create.js b/resources/js/views/__backoffice/users/Create.js index dd56441..16a2b2c 100755 --- a/resources/js/views/__backoffice/users/Create.js +++ b/resources/js/views/__backoffice/users/Create.js @@ -9,7 +9,7 @@ import { withStyles, } from '@material-ui/core'; -import * as NavigationUtils from '../../../utils/Navigation'; +import * as NavigationUtils from '../../../helpers/Navigation'; import { User } from '../../../models'; import { LinearIndeterminate } from '../../../ui/Loaders'; import { Master as MasterLayout } from '../layouts'; diff --git a/resources/js/views/__backoffice/users/Edit.js b/resources/js/views/__backoffice/users/Edit.js index e139c2e..08fc97c 100755 --- a/resources/js/views/__backoffice/users/Edit.js +++ b/resources/js/views/__backoffice/users/Edit.js @@ -11,8 +11,8 @@ import { withStyles, } from '@material-ui/core'; -import * as UrlUtils from '../../../utils/URL'; -import * as NavigationUtils from '../../../utils/Navigation'; +import * as UrlUtils from '../../../helpers/URL'; +import * as NavigationUtils from '../../../helpers/Navigation'; import { User } from '../../../models'; import { LinearIndeterminate } from '../../../ui/Loaders'; import { Master as MasterLayout } from '../layouts'; diff --git a/resources/js/views/__backoffice/users/List.js b/resources/js/views/__backoffice/users/List.js index d1d7191..8ad8f89 100755 --- a/resources/js/views/__backoffice/users/List.js +++ b/resources/js/views/__backoffice/users/List.js @@ -14,9 +14,9 @@ import { Image as ImageIcon, } from '@material-ui/icons'; -import * as RandomUtils from '../../../utils/Random'; -import * as NavigationUtils from '../../../utils/Navigation'; -import * as UrlUtils from '../../../utils/URL'; +import * as RandomUtils from '../../../helpers/Random'; +import * as NavigationUtils from '../../../helpers/Navigation'; +import * as UrlUtils from '../../../helpers/URL'; import { Table } from '../../../ui'; import { Master as MasterLayout } from '../layouts'; import { User } from '../../../models'; diff --git a/resources/js/views/auth/SignIn.js b/resources/js/views/auth/SignIn.js index b9e67a2..e4a1740 100755 --- a/resources/js/views/auth/SignIn.js +++ b/resources/js/views/auth/SignIn.js @@ -21,8 +21,8 @@ import { VisibilityOff as VisibilityOffIcon, } from '@material-ui/icons'; -import * as UrlUtils from '../../utils/URL'; -import * as NavigationUtils from '../../utils/Navigation'; +import * as UrlUtils from '../../helpers/URL'; +import * as NavigationUtils from '../../helpers/Navigation'; import { Auth as AuthLayout } from '../layouts'; import { AppContext } from '../../AppContext'; diff --git a/resources/js/views/auth/passwords/Request.js b/resources/js/views/auth/passwords/Request.js index 8c57280..497270e 100755 --- a/resources/js/views/auth/passwords/Request.js +++ b/resources/js/views/auth/passwords/Request.js @@ -5,8 +5,8 @@ import * as Yup from 'yup'; import { Button, Grid, Link, TextField, withStyles } from '@material-ui/core'; -import * as NavigationUtils from '../../../utils/Navigation'; -import * as UrlUtils from '../../../utils/URL'; +import * as NavigationUtils from '../../../helpers/Navigation'; +import * as UrlUtils from '../../../helpers/URL'; import { Auth as AuthLayout } from '../../layouts'; function PasswordRequest(props) { diff --git a/resources/js/views/auth/passwords/Reset.js b/resources/js/views/auth/passwords/Reset.js index f8f37ac..6da9b34 100755 --- a/resources/js/views/auth/passwords/Reset.js +++ b/resources/js/views/auth/passwords/Reset.js @@ -18,8 +18,8 @@ import { VisibilityOff as VisibilityOffIcon, } from '@material-ui/icons'; -import * as NavigationUtils from '../../../utils/Navigation'; -import * as UrlUtils from '../../../utils/URL'; +import * as NavigationUtils from '../../../helpers/Navigation'; +import * as UrlUtils from '../../../helpers/URL'; import { Auth as AuthLayout } from '../../layouts'; import { AppContext } from '../../../AppContext';