Skip to content

Renamed utils directory to helpers #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/js/core/Navigator.js
Original file line number Diff line number Diff line change
@@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @return {string}
*/
export const color = key => {
export function color(key) {
const colors = [
'red',
'pink',
Expand All @@ -29,4 +29,4 @@ export const color = key => {
];

return colors[key > colors.length - 1 ? 2 : key];
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion resources/js/index.backoffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions resources/js/ui/Breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/ui/Dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/__backoffice/partials/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/__backoffice/partials/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/__backoffice/settings/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/__backoffice/settings/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/__backoffice/users/Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/__backoffice/users/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions resources/js/views/__backoffice/users/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/auth/SignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/auth/passwords/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/auth/passwords/Reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down