125 comments found.
Hi. I need the boxed layout for the desktop app (i.e. I need max width for the main area + menu). What is the best way to achieve this in your theme?
Hello,
Boxed layout is a great feature, we will add it as a setting in our next release.
We are planning to release new version 1.9 in a day, so we will let you know when ready.
wow, I’m looking forward to it ))
Hello,
New version 1.9 is ready for download.
You will find the setting in containers/App/reducer.js
For fortress-react-admin-clean project just set isBoxedLayout: true
For the complete project, the option is included in the drawer settings, take a look here: http://preview.themeforest.net/item/fortress-react-admin-template/full_screen_preview/19568479
Wow, thank you very much !!!!
Where do I have to change the defaul theme? I was trying to change it here: /app/containers/App/index.js
this.state = { navDrawerOpen: false, transitionDirection: ‘right’, currentTheme: theme.get(props.appStore.currentTheme), themeSelected: ‘dark’,
themeSelected to ‘light’ or something but I can’t see the changes applied
Hello,
Look for the state currentTheme in containers/App/reducer.js
You can change its value to: darkTheme, lightTheme, blueTheme, grayTheme, darkBlueTheme
Thanks, I have to make the habit to see in the reducers. Redux is new to me. It works now, but in the “Settings” Drawwer it still the Dark Theme the default one. I’ll look how to change it, anyway, I will deactivate that Drawer.
You can use the fortress-react-admin-clean project which is a clean version of the template without the demo components and it does not show the settings drawer.
Hola. Hablas español?
There’s a mistake on the docs:
In Overview, Quickstart, 2 Open localhost:300 to see it in action. “Edit the file at ./app/containers/HomePage/index.js” That files comes with react-boilerplate but not in your template.
Yes, I speak Spanish, but conversations in Envanto should be in English so other customers can understand.
You are seeing the docs for react-boilerplate, and of course it will help you to get start. You can also download the boilerplate and follow the documentation.
We also include an userguide for this template.
Hello, I want to buy this template because I read that is based on “react-boilerplate”. Have you changed the structure? are you using styled-components? (beside Material-UI). I need that structure be the same than react-boilerplate because I already have a Symfony app running with it.
Hello,
Yes, it is the same structure as react-bolierplate.You won’t have problems integrating this theme to your needs.
HI
Really a great theme!! Thank you very much. I’m really impressed. It is really good that you used react-boilerplate – it is easy to understand where each part of the app placed, how they interact, it is self-documented
For my previous app I used another theme from envato (Material Design ReactJS Admin Web App with Bootstrap 4). I feel like I moved from the hell to the heaven ))
Thank you for your work.
Glad you like it 
We will keep improving this template.
Hello. I’m considering to buy this template. I have a question, I’ve been testing around with react-boilerplate for a while, I love it’s structure (containers, components, with saga, messages, reducers). In the description of your template it says that it’s based on react-boilerplate. Are using the same structure? Or have you made changes and what changes. Besides the material-ui components, are you using more css for specific containers, and how, ala react-boilerplate style? (css in styled-components)
Hello,
Yes, we are using the same react boilerplate (latest version) and we use material-ui for react as css framework. We have a style file for a few custom styles and use clases for containers.
For containers we use flexboxgrid:
http://flexboxgrid.com/I have 3 routes (Login , Recover, ResetPassword) This routers are independent and are not a child of App . What i have to change to make this modification. I know how to do that but with static routes .
Hello,
You can use a state to hide/show drawer and toolbar when navigating to those routes.
In App.js there is nextProps.location.pathname in componentWillReceiveProps, maybe that can help.
Hi, I have a question . How can I redirect to a path after the user was logged in with success ? I am trying to figure out without any success so far. Thank you
Hello,
As a demo we are using this.props.appStore.userIsAuthenticated property in order to hide or show the login container page, check Line 194 of containers/App/index.js
You can use browserHistory to navigate programatically:
import { browserHistory } from ‘react-router’;
browserHistory.push(’/somepath’);
Check the documentation:
https://github.com/reactjs/react-router-tutorial/tree/master/lessons/12-navigatingThank you for your response. I tried with browserHistory.push and I received an error:
uncaught at SignInRequest Invariant Violation: Objects are not valid as a React child (found: TypeError: Cannot read property ‘import’ of undefined). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. at invariant (webpack:///.//fbjs/lib/invariant.js?:44:15) at traverseAllChildrenImpl (webpack:///.//react-dom/lib/traverseAllChildren.js?:144:44) at traverseAllChildren (webpack:///.//react-dom/lib/traverseAllChildren.js?:172:10) at flattenChildren (webpack:///.//react-dom/lib/flattenChildren.js?:66:5) at ReactDOMComponent._reconcilerUpdateChildren (webpack:///.//react-dom/lib/ReactMultiChild.js?:204:28) at ReactDOMComponent._updateChildren (webpack:///.//react-dom/lib/ReactMultiChild.js?:312:31) at ReactDOMComponent.updateChildren (webpack:///.//react-dom/lib/ReactMultiChild.js?:299:12) at ReactDOMComponent._updateDOMChildren (webpack:///.//react-dom/lib/ReactDOMComponent.js?:930:12) at ReactDOMComponent.updateComponent (webpack:///.//react-dom/lib/ReactDOMComponent.js?:748:10) at ReactDOMComponent.receiveComponent (webpack:///.//react-dom/lib/ReactDOMComponent.js?:710:10)
We tested from a container, from where are you executing browserHistory?
You can also try with requiring react-router:
const router = require(‘react-router’);
router.browserHistory.push(‘somePath’);
I call from a reducer.js file. I know about appStore.isUserAuthentificated but the app don’t have a recover as a reset password page. I build a new component called Auth that include all 3 parts that is needed for a complete Auth module.
I have same issue with car router = ...
Var**
We tried to place browserHistory into a reducer, but it is not a good practice.
Uncaught Error: Reducers may not dispatch actions.
Reducer should be used to change states only.
You can use a Saga instead.
We did a test in the ComponentDemos/ApidemoPage/sagas.js
import { browserHistory } from ‘react-router’; ...
export function* updatePost(action) { ... yield put(updatedPost(result)); browserHistory.push(’/’); ...
So after we update a post we navigate to dashboard.
I use fortress 1.7 .. I put in the my saga and i have same issue. I saw in Components / LeftDrawer browser history it works without any issue .. I don’t have any explanation why i have this issue. Do you think in 1.8 you update something that correct this issue ?
I figure out what is the issue . Webpack serve wrong files or chrome catch the old files. Even the cod is functional the result was wrong due to the issue above. I figure out when I run fortress theme and the chrome browser serve my app and the mozilla serve fortress app… Very, very strange I think the issue is in the webpack .. Did you see similar issue?
We haven’t seen that behavior for a while to be honest. Sometimes generated files remains in cache. Using incognito window is a good option during development also you can use empty cache and hard reload in chrome.
Just press and hold the refresh icon with dev tools open:
http://www.code-pal.com/wp-content/uploads/2013/03/clear-cache-and-reload.pngIn version 1.8 we updated webpack to version 2.5.1
First try: I update webpack to 2.6.0, webpack-dev-middleware 1.10.2 and webpack-hot-middleware at 2.18.0 (lastest versions) . The APP work in chrome when I start the app with “npm run start” command. If i clear cache i receive this error “Uncaught (in promise) TypeError: Cannot read property ‘toJS’ of undefined”... This error i have had in the pas and you tell me to check it the of the store in selector is the same with the mane of the reducers. I check twice and everything is ok. If i stop and start the app again the app works. Mention : The app doesn’t work in mozilla.
Hello,
We did a test with the same libraries you are using, and also ran the app in firefox and it worked ok.
Check your selector by console log state.get to see what you get:
const selectApidemoPageDomain = () => (state) => { console.log(state.get(‘apidemo’));
return state.get('apidemo');
...
Than you for your response. I figure out what is the problem. Chrome , sometimes server the files from cache even so it not have the right to do that due “disable cache” option.
Good afternoon,
I have the need to set up the menu dynamically, displaying or hiding items according to the logged-in user.
I made the logic to display or hide menu items in the containder constructor of LeftDrawer.
In this constructor I generate a json containing the value of the variable:
This.props.appStore.menus
And then on top of this created variable I see what needs to be removed or displayed. And then where I replace in the code below all occurrence of this.props.appStore.menus by the created variable.
<ListItem Value = {- 1} ClassName = “menu-text-color” PrimaryText = “MENU” Style = {styles.headerItem} Open = {this.state.menusHasItems} OnNestedListToggle = {this.handleMenusNestedListToggle} PrimaryTogglesNestedList NestedItems = {this.props.appStore.menus.length> 0? This.props.appStore.menus.map ((menu) => <ListItem ClassName = {`list-item $ {this.animateRootMenu ({open: this.state.menusHasItems}, menu)}`} Value = {menu.index} Style = {this.props.appStore.selectedMenuIndex === menu.index? Styles.selectedMenuListItem: styles.menuItem} PrimaryText = {menu.text} LeftIcon = {menu.icon} PrimaryTogglesNestedList = {menu.children && menu.children.length> 0} OnClick = {this.handleClickMenu} OnNestedListToggle = {this.handleMenuItemsNestedListToggle} Open = {menu.open} Data-id = {menu.id} Data-url = {menu.url} NestedItems = {menu.children && menu.children.length> 0? Menu.children.map ((child) => <ListItem ClassName = {`list-item $ {this.animateMenu (menu, child)}`} Value = {child.index} Style = {this.props.appStore.selectedMenuIndex === child.index? Styles.selectedMenuListItem: styles.menuItem} PrimaryText = {child.text} OnClick = {this.handleClickMenu} Data-id = {child.id} Data-url = {child.url} /> ): []} /> ): []} />
The first point is that I think I’m dealing with this menu logic (what to display and what to hide in the wrong place), is it wrong to do this treatment here?
And the second point is that by doing the way I did, whenever a menu has children, it does not display the children despite displaying the icon to open or close children.
I found that the error mentioned above happens in the line below:
ClassName = {`list-item $ {this.animateMenu (menu, child)}`}
If you leave the line above the menu items with children do not display their children. If you hide this line, the child menu items correctly display and hide your children, but they lose the animation effect in the display and menu selection.
Can you help me?
Hello
I think you don’t have to change anything in the LeftDrawer component.
The reducer in the containers/App/reducer.js is the one that adds the elements to the this.props.appStore.menus array
There is an API that loads data.js json menu called app/api/mockMenuApi.js
Just change the getMenu() method content to get the data from an API. Check the ApidemoPage.
Hello
Thanks for the quick response!
I’ve located an action called LOAD_MENU in the app / containers / App / actions.js file
However I did not find any reducer for LOAD_MENU only LOAD_MENU_SUCCESS in the app / containers / App / reducer.js file
It is in this reducer (LOAD-MENU_SUCCESS) that the values for the menu are assigned, based on values that the action sent.
Actually the LOAD_MENU_ACCESS action sends a variable with the menu values for your reducer.
But here I am confused, its I called the action LOAD_MENU I hope to execute the code of reducer LOAD_MENU.
So at some point that was executed LOAD_MENU and that had success should be called the LOAD_MENU_SUCCESS however I did not find this place.
There is still an app / containers / App / saga.js file that listens to calls to the LOAD_MENU action and automatically calls a function, which by what I understand calls the LOAD_MENU_SUCCESS action passing the menu items.
So if I understood, in this case the LOAD_MENU action will not have a reduer to produce a response. It exists and only serves to be called and using the Saga, trigger another action (LOAD_MENU_SUCCESS), but before the call retrieves the menu items.
So I should change the menu items here in this Saga file, before the LOAD_MENU_SUCCESS action call, passing the treated menu, or should I handle the menu items in the LOAD_MENU_SUCCESS reducer?
I think the right answer is to reduce, correct?
It was exactly the first place I tried to treat the menu, the difference being that I made the treatment in the SIGN_IN action.
Well doing the treatment in SIGN_IN even worked, the problem is that when I did SIGN_OUT and then did SIGN_IN, without closing the browser or without refreshing the page, it would not work because it would apply the menu treatment in the previously discussed menu because This is how the last state of the application was.
I had a way to recover the initial state of the menu but without success. I tried to save the initial value of the menu in an auxiliary variable because later I could use to restart the default menu items but I could not since whenever I changed the menu items in one variable the other was affected (I tried Object.assign. ..origens)), I tried to let menu2 = {... menu1} more did not work).
I feel like I’m pretty close to fully understanding how the menu is initialized, but I still do not understand which menu launch point to set up and what the whole flow is until the menu is set up.
Can you help me finalize the understanding of the menu assembly?
Thank you.
Hello,
Sagas and Reducers are mapped to the store, this means that when you dispatch an action both are listening the type of the action. In the case of LOAD_MENU, in containers/App/sagas.js you will find a function call appSaga that watches LOAD_MENU.
Once fetchMenu is executed LOAD_MENU_SUCCESS is dispatched and containers/App/reducer.js watches for that action.
You will find the initial menu dispatch in app.js line 85, it can be changed to be called in the containers/App/index.js in the componentWillMount function for example.
Hello,
Only the store.dispatch (loadMenu ()) call starts menu loading, or is it necessary to also load the sagas?
loadMenu() is an action in containers/App/actions.js that will call the saga appSaga() and then saga will call the reducer.
You can also call it as this.props.actions.loadMenu() from the App container.
Hello,
I made two attempts for the dynamic menu without success
First: In app / containner / App / reduce in the case of SIGN_IN I retrieve the menu through state.get (‘menus’), save result to a variable and retreat which I do not want to be displayed as per user and this works!
Only I need to perform the logout back with the menu to the initial state.
So I took advantage of the existing mm app / containner / App / reducer saga and added one more listener, listening to the actions of SIGN_OUT to call fetchMenu and return with the menu to the initial state.
The problem is that this is not working and anything else that I try also does not work. I think you’re using immutable and there’s the problem, because once the menu value set I will not be able to change.
Do you have an idea how I can solve this problem? Its I shot the immutable used in reduer the application to stop working, because in other places the toJS () function is used over state that is with immutable …
Thank you.
Hello,
Try something like this if you are having issues updating your state array:
const arr = Object.assign([], state.get(‘your_array’));
Take a look of the ApidemoPage reducer.
Hello good day,
Would you like to know if there is any documentation of the components of IU material?
From the topic with the examples, I am able to find out the existing materia-ui components and some parameters that it accepts.
Do all existing components already have their use examples exposed?
And do these examples of the exposed I-material components already inform you of all possible parameter that it can receive?
I need just that, for each component of existing ui material, what possible parameters can I pass and what url to import it?
Thanks in advance!
Hello,
You will find material-ui documentation in their website with examples and components props.
http://www.material-ui.com/#/components/app-barThanks
I have tried and tried and tried to get this to work and nothing works. The webpack is missing the DLL manifest. I have looked in the support questions and nothing there I can find. Can you point me in the direction of this fix? Otherwise, I’d like a refund please. Thanks
Purchase code 741a8c6d-86a6-4e3a-be76-53737545f5d2
Hello,
We will help you to get the template working in your environment.
Can you describe us what you are trying to do? Is it npm install or npm start where you get the error?
I ran npm install wiht no problems. Then npm start and received the ERROR The DLL manifest is missing. Please run `npm run build:dll`. I did that as suggested in the error and nothing happens. I checked the react-boilerplate docs and ran npm run setup and it didn’t fix it. I checked the [path]/webpack.dev.babel.js and it is searching for dllPath in ‘node_modules/react-boilerplate-dlls’ and the manifestPath in reactBoilerplateDeps.json. Neither files are present in the root. Nor can I run “npm i react-boilerplate-dlls -S` because react-boilerplate-dlls is not an npm package so it doesn’t make sense that it would be found there.
const dllPath = path.resolve(process.cwd(), dllPlugin.path || ‘node_modules/react-boilerplate-dlls’);
if (!dllPlugin.dlls) {
const manifestPath = path.resolve(dllPath, 'reactBoilerplateDeps.json');
if (!fs.existsSync(manifestPath)) {
logger.error('The DLL manifest is missing. Please run `npm run build:dll`');
process.exit(0);
}
}
return [
new webpack.DllReferencePlugin({
context: process.cwd(),
manifest: require(manifestPath), // eslint-disable-line global-require
}),
];
const dllManifests = Object.keys(dllPlugin.dlls).map((name) => path.join(dllPath, `/${name}.json`));
return dllManifests.map((manifestPath) => {
if (!fs.existsSync(path)) {
if (!fs.existsSync(manifestPath)) {
logger.error(`The following Webpack DLL manifest is missing: ${path.basename(manifestPath)}`);
logger.error(`Expected to find it in ${dllPath}`);
logger.error('Please run: npm run build:dll');
});
process.exit(0);
}
}
return new webpack.DllReferencePlugin({
context: process.cwd(),
manifest: require(manifestPath), // eslint-disable-line global-require
});
Thanks,
What version of node and npm are you using?
We will try to reproduce this error.
C:\Users\lotus\Desktop\fortress-react-admin> node -v
v7.9.0
C:\Users\lotus\Desktop\fortress-react-admin> npm -v
4.2.0
Hello,
Check the below link to see if is related with your issue:
https://github.com/react-boilerplate/react-boilerplate/issues/774We installed node 7.9, but we are not able to reproduce the error yet.
I didn’t rename any DLL. All I did was exactly the steps I mentioned above
May I request a refund. I can’t run it and I’ve been at it for a week
Hello,
Sure no problem.
Review your global packages, looks like there is some kind of conflict when you start the server. We believe is something in your environment since we have tested this template in different computers (macs, windows).
We do our best to give support to our clients and we will continue improving this template to make it the best.
Thanks!
Trust me, I want it to work. I checked the global packages. Nothing wrong. I’m already running other apps in a similar system (react/materialUI/webpack, etc) and they run fine.
Ok,
We are going to release a new version today, in case you want to give a last try.
Basically and update for webpack library to 2.5.1 And also we added a new library called recompose 0.23.4 to fix a material-ui issue.
Sounds good. How do I download the update?
The new version It is not in envato yet. We will let you know when ready later today.
Great! I will wait. I hope it works. To be honest, I am only insterested on one aspect of your template which I am hoping to gut out and use it in my actual app. If your template ends up not working, as long as I can get the part I need I will be fine and won’t need a refund. I noticed you are saving the pages visited as bookmarks and keeping them as a history of pages visited. I want to implement something similar and I think I can use this as a foundation to build my own.
Hello,
You can download version 1.8 of this template.
I’ll give it a try. Thanks. I imagine the setup didn’t change? npm install and npm start? right?
Yes, that’s correct.
Didn’t work. Unfortunately the same error “The DLL manifest is missing. Please run `npm run build:dll`”
There are two projects in the fortress-react-admin – v1.8.zip,
Have you tried installing fortress-react-admin-clean?
Hi!
I just downloaded the FortressTheme and run:
npm install Npm run build npm start:prod
But I just got a blank page and the error below in my browser’s console:
main.1e1fb91dba94d803afeb.js:60461 Uncaught (in promise) Error: Minified React error #105; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=105&args[]=NavigationMenu for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at reactProdInvariant (main.1e1fb91dba94d803afeb.js:60461) at ReactCompositeComponentWrapper.mountComponent (main.1e1fb91dba94d803afeb.js:50264) at Object.mountComponent (main.1e1fb91dba94d803afeb.js:56112) at ReactDOMComponent.mountChildren (main.1e1fb91dba94d803afeb.js:55495) at ReactDOMComponent._createInitialChildren (main.1e1fb91dba94d803afeb.js:51785) at ReactDOMComponent.mountComponent (main.1e1fb91dba94d803afeb.js:51610) at Object.mountComponent (main.1e1fb91dba94d803afeb.js:56112) at ReactCompositeComponentWrapper.performInitialMount (main.1e1fb91dba94d803afeb.js:50440) at ReactCompositeComponentWrapper.mountComponent (main.1e1fb91dba94d803afeb.js:50327) at Object.mountComponent (main.1e1fb91dba94d803afeb.js:56112)
I followed the link to the react error decoder page to get the details and got this error message:
NavigationMenu(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
When running the application in development mode, the page shows correctly and no error is displayed in the browser or shell console.
Here are the versions I’m using:
node 6.9.1 npm 2.15.9 react 15.4.1 webpack 2.5.1
What can be the problem?
Thank you!
Hello, thanks for your message.
Yeah, we were able to reproduce the error with the versions you are using for node, npm, react and webpack.
The error is cause by the webpack version you are using, you should use the version that comes in the template to avoid this error.
I went back to use webpack 2.2.0 and then got this error when running npm run build:
ERROR in ./app/img/logo_small.png Module build failed: TypeError: pPipe(...) is not a function at Function.module.exports.buffer (/Users/fraggi/Downloads/themeforest-19568479-fortress-react-admin-template/fortress-react-admin-clean/node_modules/imagemin/index.js:64:60) at Object.module.exports (/Users/fraggi/Downloads/themeforest-19568479-fortress-react-admin-template/fortress-react-admin-clean/node_modules/image-webpack-loader/index.js:37:8) @ ./app/containers/LoginPage/index.js 31:11-46 @ ./app/containers/App/index.js @ ./app/app.js @ multi ./app/app.js
After a quick google search, I found the issue was with the imagemin package. I found this link with a fix: https://github.com/imagemin/imagemin/issues/244.
The fix just goes back to an older version of imagemin:
npm install imagemin@5.2.2—save-dev
That fixed the pPipe is not a function error and can run npm run build without erros.
Unfortunately, I’m back to the previous error. When I run npm run start:prod:
I get this error in the browser:
11:04:31.838 main.85d8834….js:74626 uncaught at fetchMenu Invariant Violation: Minified React error #136; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=136&args[]=NavigationMenu for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at reactProdInvariant (http://localhost:3000/main.85d8834d8967b5c3717c.js:60454:15) at ReactCompositeComponentWrapper.updateComponent (http://localhost:3000/main.85d8834d8967b5c3717c.js:50646:188) at ReactCompositeComponentWrapper.receiveComponent (http://localhost:3000/main.85d8834d8967b5c3717c.js:50609:10) at Object.receiveComponent (http://localhost:3000/main.85d8834d8967b5c3717c.js:56184:22) at Object.updateChildren (http://localhost:3000/main.85d8834d8967b5c3717c.js:49922:25) at ReactDOMComponent._reconcilerUpdateChildren (http://localhost:3000/main.85d8834d8967b5c3717c.js:55463:28) at ReactDOMComponent._updateChildren (http://localhost:3000/main.85d8834d8967b5c3717c.js:55562:31) at ReactDOMComponent.updateChildren (http://localhost:3000/main.85d8834d8967b5c3717c.js:55549:12) at ReactDOMComponent._updateDOMChildren (http://localhost:3000/main.85d8834d8967b5c3717c.js:52017:12) at ReactDOMComponent.updateComponent (http://localhost:3000/main.85d8834d8967b5c3717c.js:51835:10)
I confirmed my webpack version is 2.2.0
Hello,
The issue is with SVG icons from material-ui and webpack.
import menu from ‘material-ui/svg-icons/navigation/menu’;
We will fix it and release a new version of this template. Probably switch from using svg icons to font icons.
If you build the fortress-react-admin-clean project and run npm run start:prod you won’t receive this error.
Hello,
I just found the error.
https://github.com/callemall/material-ui/blob/master/package.json#L57Is a package in material-ui, called recompose.
we are using material-ui 0.18.0 and recomponse 0.23.0
In the next material-ui 0.18.1 version the error is fixed, basically update recomponse to 0.23.4
We will update this library as soon as possible and release a new version of our template.
A workaround is to uninstall recompose and install it again with npm install recompose@0.23.4
Let me know if you have any question.
The new version 1.8 of this template fixes this error.
Hello,
When running the command:
Npm run build
You get the error below:
ERROR in main.6247d1e22d2e2dfc0137.js from UglifyJs Unexpected token: name (styles) [main.6247d1e22d2e2dfc0137.js: 70724,6]
The line quoted in the error, is as follows:
Let styles;
When running the application in development mode, no error is displayed in the browser or shell console.
What can be this error?
Thank you!
Hello,
Thanks for your comment.
I wasn’t able to reproduce the error you mention.
I’m using node 7.9.0 and npm 3.10.6
After running npm run build npm run start:prod
I can see the app working.
Can you describe a little bit more about your error?
Hello Friend!
The error is really this one I passed and yes it does not say much …
Although your environment is different from mine, this is not the problem. Because I downloaded the theme, and everything worked here.
So I was putting step by step the insights that I made here and discovered what it is generating.
On the login screen and fuz a request for a REST service and stored the error result (this when api returns error) in an attribute of my state and then displayed the error.
But at the time of viewing I used ReactHtmlParser to display my error message that already came with html tags (a br, or p, or
So I used this ReactHtmlParser to leave the message formatted correctly on the screen (the message is displayed inside a Dialog). When running the application everything works and receives no error in the console or shell.
But when I run the build, I get that error …..
Do you have any suggestions for substituting ReactHtmlParser?
Thank you!
Hello,
I did a test and now I was able to reproduce the same error. That ReactHtmlParser library has issues when building to production.
Use this syntax instead:
dangerouslySetInnerHTML={{ __html: ‘your html’ }}
I tested and it works ok when running npm run build.
Check this url: http://stackoverflow.com/a/19277723
Obrigado pelo retorno!
Thanks for the answer
There is a new version you can download for this template
v 1.8
I receive an error after i create a component : selectors.js?1ea5:19 Uncaught (in promise) TypeError: Cannot read property ‘toJS’ of undefined
Ignore my last past. I will look on your API example. Very nice update.
No problem.
Make sure the name you inject in your routes matches the name in your selector:
Routes: injectReducer(‘apidemo’, reducer.default);
Selectors: const selectApidemoPageDomain = () => (state) => state.get(‘apidemo’);
Hi. It is somewhere a issue. I start a new project from seed, i create a container. I delete the files created from new container and i paste the files form API examples. Also, i modified the path to files and the project don’t have any issue, but when i press on new route i receive same error (cannot read property ‘toJS’ of undefined.
Indeed. That was the problem. The “npm run generator route” inject a reducer name like component. The “npm run generator container” create a saga with other name. Not it’s work. Thank you
Hello good day!
Sorry for my English, my native language is Portuguese and I’m using a translator ….
I bought the theme Fortress – React Admin Template and I would like to understand some things.
Speaking about the CLI commands generators, in the documentation it just says to run npm run generate container or npm run generate router. Would you like to understand what happens when running this command?
What file will it write in? What will he write? I want to know the details.
I would like to know the same information for the other CLI commands generators: components, containers.
Another thing I would like to know is if you have an example code where a request is made for an API. What is the recommended flow of this API call, until it receives the response, save in redux when appropriate and display on the screen. In addition to treatment success or error, when sending a form for example.
Thanks in advance for the support and congratulations for the work is great!
Hello, thanks for your comment!
We created a new page called API Demo where you can see a complete demo on how to get, post, put and delete to a restful API endpoints.
Please download the latest version of the template.
Check it out online: http://preview.themeforest.net/item/fortress-react-admin-template/full_screen_preview/19568479
Basically, when you run the CLI command generator to create a container, for example, you will notice that actions, sagas, constants and reducers files are created. When you dispatch an action, sagas and reducers that are mapped to the type of the action (constant) will executed.
Also, in your routes, you have to import the sagas and reducers you will use in your page container.
Review the full API demo example and let me know if you have more questions.
That’s ok. Thanks
Local incorrect, sorry
Hi, I just bought this theme. Very nice theme. I have one questions. Do you have “seed” version of this theme? When i run “Npm run clean” all examples gone and i see a white page with a message. I saw a lot of themes that have “seed” version. The seed helps a lot because the developers what to build very easy without making the “App” container from scratched. Thank you.
Hello, thanks for your comment. We just included a seed version of the template, please download the latest version.
Thank you very much.
Another question. I started from seed and i wanted to remove “Opens view”. I almost succeed but I have a little issue. The routes are not opened when i click on a menu item. It is an option or an easy way to run the theme without having open views ?( In Left drawer and Header component)
Nte: I think the folders dashboard ans searc can be removing from App/components without destroy the seed ? I didn’t find any reference in the seed on this 2 components.
Hello, thanks for the feedback it helps us a lot to improve our template. We created new settings in order to show/hide the open views and header tabs and also removed the no needed components in the seed template. Change the App reducer.js initial values to set the settings you want ”/app/containers/App/reducer.js” Download our latest version, take a look: http://preview.themeforest.net/item/fortress-react-admin-template/full_screen_preview/19568479
Hi. Thank you for response. I have few suggestions for improving the template . This modifications will help us, the developers to build faster their apps.
Make pages for - [ Autentification ] Register, Recover password, Profile page - Pricing panel - Invoices - Help desk. - Email
Other suggestions: - Put all modifications in a change log file - Maintain the the template with components without - Keep the components/containers with full (having sagas, actions,reduces,languages)... In this way we can easy copy and paste a component and use it.
Congrats for choosing the boiler plate. In my opinion is the best template on the market even if don’t have yet a lot of examples. The boiler plate is grate because it is a complete one with redux, redux-saga, react-react and webpack 2 Note: If i can help you with mockups for the page, suggestions and components that i build base on your theme please contact me.
It’s great. “yes I will continue improving this theme. Adding more page components and new theme colors for the next weeks. Also a split panel navigation in order to have two views at the same time.” When you will release a new update ? I am waiting…. Thanks you!
There was a new update on April 7th (new components) and it will be a new one very soon.
sorry for my English. It’s great.
I would like to know what are the next steps for the theme. Internationalization? Any app, like mail? Update for Material ui next?
I’m really interested in your theme.
Hello, thanks… yes I will continue improving this theme. Adding more page components and new theme colors for the next weeks. Also a split panel navigation in order to have two views at the same time.
cool work, fantastic ! 
Can you make a theme for my website https://goo.gl/Ehn2Vs if yes, how much would you charge?
It uses crea8social.com and you can test the demo here: https://crea8social.com/try
Hello, thanks for your interest in my work. Send me a private message to talk about this project.