cvmodule-web

0.0.74 • Public • Published

CvModule-Web

Install

  npm install --save cvmodule-web

How to use

  1. Import the CvApplixation component into your application.
  import CvApplication from 'cvmodule-web'
  1. Add configuration for the CvApplication component.
const settings = {
  apiUrl: "string",
  userId: "string",
  basePath: "string",
  userToken: "string",
  history: "[react-router history object]"
}
 
<CvApplication settings={settings} text="" />

Local development

Symlink the cvmoduleweb module to the parent project. You can do this by typing 'npm link' in the root of the cvmodule-web project and then typing 'npm link cvmodule-web' in the root of the parent project. If you get error messages related to invalid hook calls caused by multiple copies of react at runtime, you may need to resolve the parent's react version to an alias in the webpack configuration. If you do this, it will only be necessary for local development.

alias: {
  ...
  react: path.resolve('./node_modules/react')
}

Configuration

The interface configuration IConfiguration is available in configService.tsx.

userSettingsViewUrl (optional)

May be specified if you want a link to the user settings view available under the user's avatar when editing CVs or letters.

Readme

Keywords

none

Package Sidebar

Install

npm i cvmodule-web

Weekly Downloads

1

Version

0.0.74

License

MIT

Unpacked Size

29.9 MB

Total Files

6

Last publish

Collaborators

  • johandobus