cvmodule-web
v0.0.74
Published
```bash npm install --save cvmodule-web ```
Downloads
31
Readme
CvModule-Web
Install
npm install --save cvmodule-web
How to use
- Import the CvApplixation component into your application.
import CvApplication from 'cvmodule-web'
- 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.