FAQ

chevron-rightHow I can remove the Customizer(Setting) button?hashtag

For example, I want to remove the theme setting button from the default layout. First of all, I need to go to the src/@crema/components/AppLayout/DefaultLayout/index.js file, and to remove the customizer button, I need to remove <AppThemeSetting/> Tag.

In case you are using another layout go to the src/@crema/components/AppLayout/{Layout}/index.js and remove the <AppThemeSetting/> Tag.

chevron-rightIs there any way to remove the menus from the left sidebar? what all files do I need to remove it from? hashtag

Yes, You can remove the menus from the left sidebar. but we suggest that it would be great if you use the starter_template of your desired version. In case you want to remove a few menus from the template then you can follow the following steps

  1. Go to the src/@crema/core/AppRoutes/routeConfig.js file and remove the object that you don't want to use in your left sidebar. In the Next.js version please modify the src/@crema/core/AppRoutes/routeConfig.js

  2. Remove all unrelated routes from the src/@crema/core/AppRoutes/index.js file. (Only for CRA)

  3. Remove all unrelated files/modules from the src/modules/ directory. And remove the unrelated routes (Only for CRA)

  4. If you are using the Next.js version you need to remove from the src/modules/ directory and routes from the src/pages/ directory

chevron-rightWhich icon package is used for the sidebar menu icons?hashtag

We are using react-icons for the sidebar menu. you can check out these here: https://react-icons.github.io/react-icons/arrow-up-right

chevron-rightHow easy is it to extract the Mail App into my own project?hashtag

There are a few simple steps to move apps into a separate project.

  1. Copy the Mail folder into your project from the apps

  2. Add the Mail app's route into your project and link it to your navigation(You can update the base path 'apps/mail' to as your project need.)

  3. Copy AppsContainer from the core components

  4. Copy the MailApp action and reducer file from the redux and link it to your app redux.

  5. In case you want to use a fake API and database, please copy the DB file and mock API into your project(In case you want to integrate it with your API Please link your API to mail)

  6. Please make sure you initialize APIs in your demo version.

chevron-rightHow I can remove the default login email and password?hashtag

If you are using the CRA version then go to src/modules/auth/Signin/SigninFirebase.js and remove the initialValues and follow a similar way for other types of authentication.

src/modules/auth/Signin/SigninFirebase.js
initialValues={{// remove this attribute of Formik
 email: '[email protected]', 
  password: 'Pass@1!@all',
}}
chevron-rightWhere I can found the Nextjs Document?hashtag

If you are using the Next.js Version of Crema. For now, You should follow the same doc for the Next.js version.

chevron-rightWhere I can found the TypeScript Document?hashtag

If you are using the Typescript Version of Crema. You should follow the same doc for the TypeScript version. The folder structure and way of code style are the same for all versions of Crema.

chevron-rightWhere I can change the initial URL of the theme?hashtag

To change the initial path you need to change the NX_INITIAL_URL value in the .env file

chevron-rightHow I can set dynamic initialUrl instead of static url('/dashboards/crypto')?hashtag

If you want to assign the dynamic URL then you need to get your URL in the src/@crema/core/AppLayout/index.js file and assign it to the initURL like below.

chevron-rightHow I change the menu text in existing version?hashtag

To change the text of the menu you need to update the locale value to a particular messageId you need to follow the following steps to achieve that.

  • Copy your messageId. It looks like this "sidebar.apps.wall" in the below message

  • Search it in your locale file in the src/shared/localization/locales/{locale}.json file and replace its value according to you.

chevron-rightHow I can rid-off from the locale(Multilingual)?hashtag

Go to the .env file and set NX_MULTILINGUAL to false.

chevron-rightIs the Crema use nextjs default routing or its use next-router?hashtag

Crema uses the default routing method in Next.js. In this routing method page route is based on the file and directory name.

chevron-rightWhere I can change the logo of Crema?hashtag

To change the logo you need to go to the file src/@crema/components/AppLayout/components/AppLogo/index.js. You can modify this file according to your requirements.

chevron-rightHow I can fix the scrolling of the Navbar jumping back to the top of the menu when clicking on a menu item(NextJs)?hashtag

To stop the jump back to the top, you need to follow the following steps.

  1. Go to the file libs/components/src/lib/AppLayout/components/VerticalNav/index.js and add the following code.

2. Replace the following anchor tag in the same file VerticalItem/index.js

chevron-rightHow can I change the current font ?hashtag

To change the Crema Current font you need to follow the following steps. 1. Go to the file public/index.html and Replace the current Poppins font with your current font <link href="https://fonts.googleapis.com/css2?family=Be Vietnam:wght@100;200;300;400;500;600&display=swap"rel="stylesheet"> 2. Go to the file libs/constants/src/defaultConfig.js and replace the font family in the Typography

3. Go to the file src/@crema/constants/AppEnums.js update the Font weight according to your project.

4. Go to the file src/styles/base.css and replace the current font family 'Be Vietnam' with your current font in this file

chevron-rightHow to disable the mock api in the App? hashtag

We suggest, please start your project with the starter kit. To fetch data from real APIs, you need to follow the following steps.

  1. Update src/@crema/mockapi/index.js the file's content like below.

  1. Remove the following import statement from the src/App.js file.

  1. Make sure you are using the axios from the following lib in APIHooks or Redux Actions, by default we are using it from '@crema/services/axios'

chevron-rightHow to fix: BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default (froala-editor\js)hashtag

The above error occurs due to the froala-editor compatibility with webpack 5. The froala-editor team will fix this in their next update. Till then you can remove this file src/modules/thirdParty/froalaEditor/index.js. and remove the froala-editor dependency.

chevron-rightHow can I make server-side requests on a page, with the JWT token?hashtag

Here is an example of the code getting data from an API using a JWT token on the server side

chevron-rightHow InfoViewContext works?hashtag

InfoViewContext has all the info about the API state like loading/success/error, according to their updated state, it will show the loader, success, and error message on the UI. We can set ferchStart, fetchMessage, and fetchError according to your requirement and This component will handle the state in the proper way

chevron-rightUnhandled Runtime Error (ReferenceError: anno is not defined)hashtag

apexcharts.common.js:6 Uncaught ReferenceError: anno is not defined at t.value (apexcharts.common.js:6:279315) at t.value (apexcharts.common.js:6:289703) at t.value (apexcharts.common.js:6:287872) at t.value (apexcharts.common.js:6:287321) at t.value (apexcharts.common.js:6:286566) GitHub issue ref https://github.com/apexcharts/react-apexcharts/issues/589arrow-up-right

chevron-rightLoading indicator is missing on Loading/ Form submissionhashtag

The loading indicator depends on the InfoViewContext. You can check this FAQ to understand InfoviewContext here arrow-up-right To show the Loading and success/failure message please add this tag on your page

circle-info

Please let us know if you missed anything in the docs. We will add that asap.

Last updated