Skip to content

Commit 2db7d3d

Browse files
author
Jovert Lota Palonpon
authored
1 parent ffbc1f1 commit 2db7d3d

20 files changed

+27
-27
lines changed

resources/js/core/Navigator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useContext } from 'react';
22
import { withRouter, Route, Switch, Redirect } from 'react-router-dom';
33

4-
import * as NavigationUtils from '../utils/Navigation';
5-
import * as UrlUtils from '../utils/URL';
4+
import * as NavigationUtils from '../helpers/Navigation';
5+
import * as UrlUtils from '../helpers/URL';
66
import { AppContext } from '../AppContext';
77

88
const Navigator = props => {

resources/js/utils/Navigation.js renamed to resources/js/helpers/Navigation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ROUTES } from '../config';
2-
import * as UrlUtils from '../utils/URL';
2+
import * as UrlUtils from '../helpers/URL';
33

44
/**
55
* Find the route by its name.

resources/js/utils/Random.js renamed to resources/js/helpers/Random.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @return {string}
77
*/
8-
export const color = key => {
8+
export function color(key) {
99
const colors = [
1010
'red',
1111
'pink',
@@ -29,4 +29,4 @@ export const color = key => {
2929
];
3030

3131
return colors[key > colors.length - 1 ? 2 : key];
32-
};
32+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

resources/js/index.backoffice.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import './bootstrap';
33
import React from 'react';
44
import ReactDOM from 'react-dom';
55

6-
import { register as registerServiceWorker } from './utils/ServiceWorker';
6+
import { register as registerServiceWorker } from './helpers/ServiceWorker';
77
import App from './App';
88
import { dark as darkTheme, light as lightTheme } from './themes/backoffice';
99

resources/js/ui/Breadcrumbs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { Breadcrumbs as MuiBreadcrumbs } from '@material-ui/lab';
88

99
import { Home as HomeIcon } from '@material-ui/icons';
1010

11-
import * as NavigationUtils from '../utils/Navigation';
12-
import * as StringUtils from '../utils/String';
11+
import * as NavigationUtils from '../helpers/Navigation';
12+
import * as StringUtils from '../helpers/String';
1313

1414
function Breadcrumbs(props) {
1515
const { classes, segments, blacklistedSegments, ...other } = props;

resources/js/ui/Dropzone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
Queue as QueueIcon,
2121
} from '@material-ui/icons';
2222

23-
import * as StringUtils from '../utils/String';
23+
import * as StringUtils from '../helpers/String';
2424
import { LinearDeterminate } from './Loaders';
2525

2626
const getFileStatusClass = status => {

resources/js/views/__backoffice/partials/Header.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ import {
3939
Update as UpdateIcon,
4040
} from '@material-ui/icons';
4141

42-
import * as NavigationUtils from '../../../utils/Navigation';
43-
import * as RandomUtils from '../../../utils/Random';
42+
import * as NavigationUtils from '../../../helpers/Navigation';
43+
import * as RandomUtils from '../../../helpers/Random';
4444
import {
4545
GitHub as GitHubIcon,
4646
LightbulbOff as LightbulbOffIcon,

resources/js/views/__backoffice/partials/Sidebar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import {
2727
} from '@material-ui/icons';
2828

2929
import { APP } from '../../../config';
30-
import * as NavigationUtils from '../../../utils/Navigation';
31-
import * as StringUtils from '../../../utils/String';
30+
import * as NavigationUtils from '../../../helpers/Navigation';
31+
import * as StringUtils from '../../../helpers/String';
3232

3333
import brandLogoLight from '../../../../img/logos/short-light.svg';
3434
import brandLogoDark from '../../../../img/logos/short-dark.svg';

resources/js/views/__backoffice/settings/Account.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
VisibilityOff as VisibilityOffIcon,
2121
} from '@material-ui/icons';
2222

23-
import * as UrlUtils from '../../../utils/URL';
23+
import * as UrlUtils from '../../../helpers/URL';
2424
import {
2525
Clean as CleanLayout,
2626
Settings as SettingsLayout,

resources/js/views/__backoffice/settings/Profile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { MuiPickersUtilsProvider, DatePicker } from 'material-ui-pickers';
2323
import MomentUtils from '@date-io/moment';
2424

25-
import * as UrlUtils from '../../../utils/URL';
25+
import * as UrlUtils from '../../../helpers/URL';
2626
import {
2727
Clean as CleanLayout,
2828
Settings as SettingsLayout,

resources/js/views/__backoffice/users/Create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
withStyles,
1010
} from '@material-ui/core';
1111

12-
import * as NavigationUtils from '../../../utils/Navigation';
12+
import * as NavigationUtils from '../../../helpers/Navigation';
1313
import { User } from '../../../models';
1414
import { LinearIndeterminate } from '../../../ui/Loaders';
1515
import { Master as MasterLayout } from '../layouts';

resources/js/views/__backoffice/users/Edit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
withStyles,
1212
} from '@material-ui/core';
1313

14-
import * as UrlUtils from '../../../utils/URL';
15-
import * as NavigationUtils from '../../../utils/Navigation';
14+
import * as UrlUtils from '../../../helpers/URL';
15+
import * as NavigationUtils from '../../../helpers/Navigation';
1616
import { User } from '../../../models';
1717
import { LinearIndeterminate } from '../../../ui/Loaders';
1818
import { Master as MasterLayout } from '../layouts';

resources/js/views/__backoffice/users/List.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import {
1414
Image as ImageIcon,
1515
} from '@material-ui/icons';
1616

17-
import * as RandomUtils from '../../../utils/Random';
18-
import * as NavigationUtils from '../../../utils/Navigation';
19-
import * as UrlUtils from '../../../utils/URL';
17+
import * as RandomUtils from '../../../helpers/Random';
18+
import * as NavigationUtils from '../../../helpers/Navigation';
19+
import * as UrlUtils from '../../../helpers/URL';
2020
import { Table } from '../../../ui';
2121
import { Master as MasterLayout } from '../layouts';
2222
import { User } from '../../../models';

resources/js/views/auth/SignIn.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import {
2121
VisibilityOff as VisibilityOffIcon,
2222
} from '@material-ui/icons';
2323

24-
import * as UrlUtils from '../../utils/URL';
25-
import * as NavigationUtils from '../../utils/Navigation';
24+
import * as UrlUtils from '../../helpers/URL';
25+
import * as NavigationUtils from '../../helpers/Navigation';
2626
import { Auth as AuthLayout } from '../layouts';
2727
import { AppContext } from '../../AppContext';
2828

resources/js/views/auth/passwords/Request.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import * as Yup from 'yup';
55

66
import { Button, Grid, Link, TextField, withStyles } from '@material-ui/core';
77

8-
import * as NavigationUtils from '../../../utils/Navigation';
9-
import * as UrlUtils from '../../../utils/URL';
8+
import * as NavigationUtils from '../../../helpers/Navigation';
9+
import * as UrlUtils from '../../../helpers/URL';
1010
import { Auth as AuthLayout } from '../../layouts';
1111

1212
function PasswordRequest(props) {

resources/js/views/auth/passwords/Reset.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import {
1818
VisibilityOff as VisibilityOffIcon,
1919
} from '@material-ui/icons';
2020

21-
import * as NavigationUtils from '../../../utils/Navigation';
22-
import * as UrlUtils from '../../../utils/URL';
21+
import * as NavigationUtils from '../../../helpers/Navigation';
22+
import * as UrlUtils from '../../../helpers/URL';
2323
import { Auth as AuthLayout } from '../../layouts';
2424
import { AppContext } from '../../../AppContext';
2525

0 commit comments

Comments
 (0)