Skip to content

Commit 0c65958

Browse files
author
Jovert Lota Palonpon
committed
wip
1 parent de67328 commit 0c65958

26 files changed

+108
-80
lines changed

public/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"js/backoffice.js": "js/backoffice.bundle.d6fa66824614d8eea736.js",
2+
"js/backoffice.js": "js/backoffice.bundle.997a6e48e5aeafd35415.js",
33
"js/vendor.js": "js/vendor.bundle.60bab7ed0c4b898e6cd4.js"
44
}

public/js/backoffice.bundle.d6fa66824614d8eea736.js renamed to public/js/backoffice.bundle.997a6e48e5aeafd35415.js

Lines changed: 69 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/Backoffice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { HashRouter as Router } from 'react-router-dom';
33
import { withWidth, CssBaseline, MuiThemeProvider } from '@material-ui/core';
44

55
import { Navigator } from './core';
6-
import { ROUTES } from './config/routes';
6+
import { ROUTES } from './config';
77
import { _route } from './utils/Navigation';
88
import { _queryString } from './utils/URL';
9-
import { theme } from './themes/backoffice';
9+
import { backofficeTheme as theme } from './themes';
1010
import { Loading } from './views';
1111

1212
class Backoffice extends Component {

resources/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from 'axios';
22
import moment from 'moment';
33
import Lang from 'lang.js';
44

5-
import { LOCALE } from './config/locale';
5+
import { LOCALE } from './config';
66

77
/**
88
* We registered axios so that we don't have to import it all the time.

resources/js/config/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const APP = {
1+
export default {
22
name: 'LaReact',
33
};

resources/js/config/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { APP } from './app';
2-
export { LOCALE } from './locale';
3-
export { ROUTES } from './routes';
1+
export { default as APP } from './app';
2+
export { default as LOCALE } from './locale';
3+
export { default as ROUTES } from './routes';

resources/js/config/locale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const LOCALE = {
1+
export default {
22
// English
33
'en.navigation': require('../../lang/en/navigation.php'),
44
'en.resources': require('../../lang/en/resources.php'),

resources/js/config/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Views from '../views';
2-
import { BACKOFFICE_ROUTES } from '../routers/backoffice';
2+
import { BACKOFFICE_ROUTES } from '../routers';
33

4-
export const ROUTES = [
4+
export default [
55
{
66
name: 'auth.signin',
77
path: '/signin',

resources/js/core/Navigator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { withRouter, Route, Switch, Redirect } from 'react-router-dom';
55
import { _route } from '../utils/Navigation';
66
import { _queryString } from '../utils/URL';
77

8-
const WrappableNavigator = props => {
8+
const Navigator = props => {
99
const { authenticated, username, environment, routes } = props.pageProps;
1010

1111
return (
@@ -53,8 +53,8 @@ const WrappableNavigator = props => {
5353
);
5454
};
5555

56-
WrappableNavigator.propTypes = {
56+
Navigator.propTypes = {
5757
pageProps: PropTypes.object,
5858
};
5959

60-
export const Navigator = withRouter(WrappableNavigator);
60+
export default withRouter(Navigator);

resources/js/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Navigator } from './Navigator';
1+
export { default as Navigator } from './Navigator';

0 commit comments

Comments
 (0)