Discussion on Enlite Prime - React Admin Dashboard Template For Full-Stack Developer

Discussion on Enlite Prime - React Admin Dashboard Template For Full-Stack Developer

Cart 815 sales
Well Documented

ilhammeidi supports this item

Supported

This author's response time can be up to 1 business day.

238 comments found.

Hello I want to change the size of the logo from the styles but I am not able to. Where is the stylesheet located?

Hi pablomgd98,

The style for logo in app/components/Header/header-jss.js around line 248

'& img': {
      marginRight: 10,
      width: 30
    },

Regards.

Hello, thanks for the answer. I have a problem, when I make changes to the style sheet or for example changing the message in the “banne” section from its location, I save the changes and look, the changes are not made and yet they are perfectly saved

Hi pablomgd98,

For text message please change from /app/translations/en.json (Example for english) And about styling, after saving the files, theres should be in browser console like

[HMR] App is up to date.
[HMR] bundle rebuilding
But if the style not still changing, maybe that’s been overridden by another class, you can add !important or adjust the selector name.

Hope this can help.

Regards.

Hey, There is some css issue with the text box inputs, Sometimes label/line is overlapping. And it’s look good after page refresh.

I want to use some component of prime react, So how theme can be customized for all pages where component will be added. https://www.primefaces.org/primereact/showcase/#/setup

Hi sendanapp,

Thanks for purchasing.

Thats will be easier to investigate if you share a screenshoot. As I know the overlaping label to line is the normal from material-design for focus or filled textbox with outlined type https://material-ui.com/components/text-fields/

About primereact, mostly components in this template uses material-ui and jss. I haven’t try primereact, but it should can be installed, but it cannot replaces material-ui at once. So to change the style, need to adjust every pages and components(including props and style).

Feel free if you have any further queries.

Regards.

Hey, Pls find a sample screenshot as required.

https://drive.google.com/file/d/1I4LPJxw3y5zkujlZNx3UAYwCZRFq3Pn0/view?usp=sharing

and code for it.

<Grid item xs={12} sm={4}> <MuiPickersUtilsProvider utils={MomentUtils}> <KeyboardDatePicker autoOk={true} required disablePast={false} id="deed_date" name="deed_date" label={"Deed date"} disableFuture fullWidth inputVariant="outlined" format="YYYY/MM/DD" placeholder="01/01/2099" value={data['deed_date'] || ""} onChange={(e) => handleDateChange(e, 'deed_date')} animateYearScrolling={false} /> </MuiPickersUtilsProvider> </Grid>

Hi sendanapp,

It because there’s empty string if value undefinded. Please try change the value props if undefined to null

value={data['deed_date'] || null}

Hope this can help.

Regards.

Thank you very much for your help. I have tried all the options and in the end the problem is in the M1 that does not support the version. I have decided to run the environment in Google’s Cloud Shell and everything is perfect but it gives me the following error. It must be a server problem, but I don’t know where to configure it …

> enlite_prime@1.5.0 start > cross-env NODE_ENV=development node server

Happy[js]: Version: 5.0.1. Threads: 5 (shared pool) events.js:200 throw er; // Unhandled ‘error’ event ^

Error: listen EADDRINUSE: address already in use :::3000 at Server.setupListenHandle [as _listen2] (net.js:1306:16) at listenInCluster (net.js:1354:12) at Server.listen (net.js:1442:7) at Function.listen (/home/pablomartin/darcon/node_modules/express/lib/application.js:618:24) at Object.<anonymous> (/home/pablomartin/darcon/server/index.js:61:5) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) Emitted ‘error’ event on Server instance at: at emitErrorNT (net.js:1333:8) at processTicksAndRejections (internal/process/task_queues.js:81:21) { code: ‘EADDRINUSE’, errno: ‘EADDRINUSE’, syscall: ‘listen’, address: ’::’, port: 3000 }

Hi pablomgd98,

Thats error mean the you’ve another application that running in same port 3000. Please change to another available port. In example change to port 3001 in server/port.js

module.exports = parseInt(argv.port || process.env.PORT || '3001'

Hope this can help.

And if you have time, could you share more about M1 error, like error log or something.

The comment is public, you also can message privately here https://themeforest.net/user/ilhammeidi And I will reply via email.

Regards.

Hey, in the installation I am having the following problem on my mac Catalina.

npm ERR! code 1 npm ERR! path /Users/pablomartingil-delgado/Desktop/enlite-prime_v150/enlite-prime/node_modules/ngrok npm ERR! command failed npm ERR! command sh -c node ./postinstall.js npm ERR! ngrok – platform darwinarm64 is not supported.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/pablomartingil-delgado/.npm/_logs/2021-06-05T11_52_56_534Z-debug.log

You can help? I can’t find the problem

Yes, but when I execute de npm install, the folder node_modules dissapear….

The problem is that when I run npm install the folder is created and when it gives the error in the terminal, the folder disappears

Hi pablomgd98,

If the error is same about ngrok, please try to remove ngrok in package.json list, then npm install again. After that install ngrok separately npm install ngrok@3.4.0 or the latest version 4.0.1.

Or try some options like in previous message. I’m not sure what happen in your machine, if possible please try to install in different computer or platform.

Regards.

When we try to make a Production Build by npm build It creates the builds. But it does not show images. Can you please provide the correct way to build or a way to show the images?

Hi vmobee,

Thanks for purchasing.

The build only create production code, for images and server config are still in root project. So it need to deploy all folders including builds/ public/ and servers/

Feel free if you have any further queries.

Regards.

Hi, I have a question about the eslint configuration in enlite prime source code. I have some code that I transfer to the template, which is quite simple:

return Promise.reject({
       status: error.response?.status,
       errors: ['Oops!'],
     });

However I get the syntax error: (property) errors: any Expected the Promise rejection reason to be an Error.eslintprefer-promise-reject-errors after I copy the code to enlite. I try to check the eslint config but could not figure it out. Appreciate if you can help me.

Thank you

The complete code is like this:

import axios from ‘axios’; import { logOut } from ’@/util/auth’;

export default function apiClient(nonApiRoute = false) { // let baseURL= `http://localhost:8000${nonApiRoute ? ’’ : ’/api’}`, const api = axios.create({ baseURL: `http://localhost:8000${nonApiRoute ? ’’ : ’/api’}`, withCredentials: true, }); }

api.interceptors.response.use(
  (response) => response,
  (error) => {
    if (error.response.status === 401) {
      logOut();
);
return Promise.reject({ status: 401, errors: ['Unauthorized'] });
  }
},
if (error.response?.status === 422) {
  let errors = Object.values(error?.response?.data?.errors || {});
}
return Promise.reject({
  status: 422,
  errorsRaw: errors,
  errors: errors.reduce((error) => error),
});
console.error(error);
return Promise.reject({
  status: error.response?.status,
  errors: ['Oops!'],
});
return api;

Also if I want to use laravel sanctum/csrf-cookie for my authentication, is there a easy way to keep the redux-saga form like use firebase auth?

Hi hefei93,

About eslint-error, please this guide https://eslint.org/docs/rules/prefer-promise-reject-errors then adjust it if possible. You can also disable/enable eslint here https://ilhammeidi.github.io/enlite-docs/#eslint

About laravel sanctum I haven’t try before, but this function seems like firebase auth. This template provide the static auth redux-form like http://enlite.ux-maestro.com/login and http://enlite.ux-maestro.com/register. So you can use without firebase. There are the codes app/components/Forms/LoginForm.js, app/components/Forms/RegisterForm.js and The containers app/containers/Pages/Users/

Hope this can help.

Regards.

Hey, sorry I a a bit confused about the email inbox shown here. Does it mean it can read current user’s gmail or outlook email and show them inside the web app?

A follow up question: In the live demo what is the difference between firebase-email vs email? (There are two instances of emails on the side bar)

Thanks Bikram

Hi bikramaditya,

Thanks for visiting my portfolio.

This template doesn’t have feature to read personal user mail (gmail, yahoo, etc). The difference between email is static-email using static data, and firebase-email using real data from database from firebase.

Regards.

Is there a way to customized the spinner and the scroll bar?

The UI looks very attractive. Thank you for the wonderful work. However, the spinner looks a bit weird compare to the rest of the component. Also the scroll bar doesn’t seem to be a material UI control, just want to know if there is a way to enhance these.

Thank you,

hefei93

Hi hefei93,

Thanks for the appreciations.

Here’s the guide for scrollbar styling https://css-tricks.com/the-current-state-of-styling-scrollbars/ Example like in /app/components/SidebarBig/sidebarBig-jss.js

For spinner it uses gif image that you can download from https://icons8.com/preloaders/en/circular And default material component http://enlite.ux-maestro.com/app/ui/progress

Regards.

On the landing page, how to change the demo button to login, which means that if the user is not login, it will show the login form and push the user to app, if the user login already, it will go directly to the app.

Hi hefei93,

To check login condition, you can get state from reducer. /app/redux/modules/authReducer.js, loggedIn

Like example in app/containers/Templates/Dashboard.js with props isAuthenticated

And for login redirection you can use <Redirect /> from react -router-dom like in app/containers/Session/withAuthorizationRouter.js

Regards.

I have another question, my app will be using PHP laravel as beckend and front end using enlite prime, how to merge the code together as a single project together?

Thank you

Hi hefei93,

Thanks for purchasing.

To integrate with php laravel we suggest to use laravel as API in separated server and react.js as front-end side. Here’s the article to support you

part: 1 https://code.tutsplus.com/tutorials/build-a-react-app-with-laravel-restful-backend-part-1-laravel-5-api--cms-29442

paert: 2 https://code.tutsplus.com/tutorials/build-a-react-app-with-laravel-backend-part-2-react--cms-29443

Feel free if you have any further queries.

Regards.

Hello Enlite Prime,

I think there is a bug with “withAuthorizationRouter” component. I have setup the login using firebase auth, and when I login to see the authenticated page, I see the page not found 401, and the link path is showing: “app // app/pages/authenticated” which means it is not right.

Also if I want to wrap most of my views using withAuthorizationRouter, what will be the best way? Suppose I have many views that requires authentication.

Thank you

Hi hefei93,

I didn’t fix anything since 2 months ago. Maybe it’s about extraction url param. For redirection please check the routh path in routing Application.js. Then the next url param will be extracted in app/redux/modules/authSagas.js The code should be like this

function getUrlVars() {
  const vars = {};
  const parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { // eslint-disable-line
    vars[key] = value;
  });
  return vars;
}

To use in many pages, please try to wrap in app/containers/App/index.js In example for all dashboard pages,

<Route path="/app" component={withAuthorizationRouter(Application)} />

Regards.

Hello ilhammeidi, Thank you for the response. The wrapping of withAuthorizationRouter works well to wrap Application.

The route redirect after login is not getting the correct url seems like because the loginWithEmailSaga(payload) in authSagas.js. I changed it to

if (getUrlVars().next) { // Redirect to next route yield history.push(/*”/app/” + */getUrlVars().next); } else {

After that it seems to work fine. Can you please verify this is correct?

Thank you

hefei93

Hi, yes that’s correct. And thanks for reported issue, I will update it soon.

Hi, my purchase code is 69327833-ee2e-43bb-8e98-ce8c81c566f6.

I’am a back-end programer and i start learning front end doing liitle things is React. After downloading and inspect the code, i realized that the code is very upfront compared with my knowledge.

So what i ask, is possible to make a clean starter project with only the stared components and css. ONLY. or even a HTML pages.

Thanks.

Hi ruioliveiravpa,

Thanks for purchasing.

Unfortunately I don’t have static HTML version. And for starter-project is in starter-project/ folder. That’s contain minimal components and page, and all of template uses JSS for styling.

Feel free if you have nay further queries.

Regards.

It’s a beautiful template. Thanks

Youre welcome, and happy coding :)

Do you have similar template in Angular?

Hi dtwhite1103,

Thanks for purchasing.

Unfortunately I don’t have the angular template. This template use react material-ui and this a similar framework for angular: https://material.angular.io/components/categories

Feel free if you have any further queries.

Regards.

El codigo de mi compra es: b2aaf919-6cf7-4d7a-b428-9b1a85f62a39 La pregunta es como puedo hacer para que esta app corra dentro de electron.

Hi lcapitan84,

Thanks for purchasing.

About electron we haven’t try it before, but here’s reference that might can help you “medium.com/@brockhoff/using-electron-with-react-the-basics-e93f9761f86f”

Feel free if you have any further queries.

Regards.

Como puedo hacer para que la primer pagina que se abra sea la del login y no la LandingCorporate y que una vez logeado se redirija a la Application, Gracias

Hi lcapitan84,

To setup routes, please change the route ”/” with Login page:

// app/containers/App/index.js
<Route path="/" exact component={Auth} />

// app/containers/App/Auth.js
<Route path="/" component={Login} />

Then to redirect after login you can use history.push after authentication is valid, like in app/redux/modules/authSagas.js

history.push('/app');

Hope this can help.

Best regards.

Hi, I just purchased a license and failed to add it in a existing Project. I just want to use components and styles,NO REDUX or other things used.

Please provide me a documentation link or guideline, how to add your Components and styles in existing Project.

Thanks.

ALso give me required nodejs packages names to use only COmponents and Styles for Tables/Inputs etc.

Hi iwebw_admin,

Thanks for purchasing.

This template is recommended to use with redux, but it possible to take out the components, containers, and styling only.

Please try to copy the main components, you can use starter-project which lighter

1. Components: app/components/ All components is necessary for Dashboard page

2. Containers: app/containers/

- Routing: app/containers/App/index.js

- UI Redux: app/containers/App/ThemeWrapper.js

- Dashboard template: app/containers/Templates/Dashboard.js and app/containers/Templates/layouts/*.js

For reducer state You can hardcoded the props value and use void function () => {} for test. And latter you need to create adjustment by use local state and set function by following /app/redux/modules/uiReducer.js initialState and each action type

3. Style: app/styles/ - MaterialUI Custom: app/styles/theme/applicationTheme.js - The rest is scss for vendor plugin styling and color palette

4. Image and assets: /public/ - Images & favicons

Also please check template structure diagram https://ilhammeidi.github.io/enlite-docs/#code_basic

For external UI components and styling references: - Material UI https://material-ui.com/ - JSS (CSS in JS) https://cssinjs.org/

For tables and input require:
"dependencies": {
   "@date-io/date-fns": "^1.3.11",
  "@date-io/moment": "1.3.8",
  "@material-ui/core": "^4.7.0",
  "@material-ui/icons": "^4.5.1",
  "@material-ui/lab": "^4.0.0-alpha.33",
  "@material-ui/pickers": "^3.2.8",
  "autosuggest-highlight": "^3.1.1",
  "classnames": "^2.2.6",
  "date-fns": "2.1.0",
  "downshift": "^1.31.12",
  "jss": "^10.0.0",
  "jss-rtl": "^0.3.0",
  "keycode": "^2.2.0",
  "mui-datatables": "^2.13.1",
  "prop-types": "15.7.2",
  "rcolor": "^1.0.1",
  "react": "16.8.6",
  "react-calendar": "^2.17.4",
  "react-clock": "^2.3.0",
  "react-dom": "16.8.6",
  "react-ionicons": "^2.1.6",
  "react-jss": "^10.0.0",
  "react-number-format": "^3.3.4",
  "react-select": "^3.0.4",
  "react-text-mask": "^5.3.2",
  "reselect": "4.0.0",
}

"devDependencies": {
  "css-loader": "3.4.2",
  "node-sass": "^4.14.0",
  "sass-loader": "^7.1.0",
  "sass-material-colors": "0.0.5",
  "style-loader": "0.23.1",
}

Hope this can help.

Regards.

Thanks for quick reply. Appreciated. Will check and update accordingly.

Hey, i want to ask about PWA used by your template. How to clear/update cache in browser for every update ?

Because i always facing the code website is not updated after npm run build. In server i’m using nginx Please give me your advice. Thank you

Hi tommyquiko,

Terimakasih telah membeli Enlite Prime.

Untuk di live server yang menggunakan https seharusnya akan auto update jika tab browser di close kemudian re-open lagi websitenya. Silahkan pastikan untuk tidak cache sw.js di htaccess-nya. Secara default file di build/.htaccess setalah npm run build adalah:

<IfModule mod_headers.c>
  # Do not cache sw.js, required for offline-first updates.
  <FilesMatch "sw\.js$">
    Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" 
    Header set Pragma "no-cache" 
  </FilesMatch>
</IfModule>

Sementara untuk clear cache di local server paling secara manual, seperti di docs https://ilhammeidi.github.io/enlite-docs/#deploy

Anda juga dapat menonaktifkan cache offline. Silakan ikuti https://github.com/react-boilerplate/react-boilerplate/blob/master/docs/general/remove.md ini

Dan berikut artikel tentang cara kerja Service Worker https://developers.google.com/web/tools/chrome-devtools/progressive-web-apps

Semoga bisa membantu. Silahkan jika memiliki pertanyaan lebih lanjut.

Salam.

Hi, anytime I upload a new build, it still show the old cached version. Where can I change so a new build would remove older cache?

Hi hasanzia1993,

This issue about offline-access feature. So after deploy, please close the browser tab and re-open again, the code should be updated. If not please check in your htaccess (by default is in build/.htaccess). Please make sure to do not cache the sw.js

<IfModule mod_headers.c>
  # Do not cache sw.js, required for offline-first updates.
  <FilesMatch "sw\.js$">
    Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" 
    Header set Pragma "no-cache" 
  </FilesMatch>
</IfModule>

You can also disable the offline cache. Please follow this https://github.com/react-boilerplate/react-boilerplate/blob/master/docs/general/remove.md

And here’s article about how service worker works https://developers.google.com/web/tools/chrome-devtools/progressive-web-apps

Regards.

Hello, I’m getting CORS error with connected any API. I try to change webpack devserver settings and axios settings. But it didn’t work.

Thank you!

Hi 1019apps,

Thanks for purchasing.

I think maybe it because you access APIs Locally. Here’s the article about CORS issue in browser https://www.thepolyglotdeveloper.com/2014/08/bypass-cors-errors-testing-apis-locally/

Hope this can help. Feel free if you have any further queries.

Regards.

Halo saya ada masalah ketika call api login, jadi ketika saya call api Login dari aplikasi seperti mengirimkan 2 request (204 dengan method OPTIONS, dan request yang berisikan parameternya). Ini menyebabkan ketika saya dpt response yang terbaca malah jadi response 204. Mohon bantuannya mengenai masalah ini. Karena setelah saya cek live demo juga mengalami hal tersebut, mengirimkan 2 request ketika login.

Terima kasih

Hi tommyquiko,

Terimakasih telah membeli Enlite Prime.

Mungkin bisa coba ditambahkan timeout di containernya pada saat submit seperti ini.

app/containers/Pages/UsersFullstack/Login.js
useEffect(() => {
    setTimeout(() => {
      if (valueForm) {
        console.log(`You submitted:\n\n${valueForm}`);
        handleLogin(valueForm.get('email'), valueForm.get('password')); // eslint-disable-line
      }
    }, 100)
  }, [valueForm]);

Semoga membantu dan silahkan jika memiliki pertanyaan lebih lanjut.

Salam.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve ThemeForest.

Sure, take me to the survey