0.1.56 • Published 5 months ago
@24gate/feedback-support v0.1.56
FeedbackSupport
Testing
./public/index.html - development template
shows page with lorem ipsum, shows how to use in real project
Download tusd client and launch to test file uploads: https://github.com/tus/tusd/releases/tag/v1.10.0
Development
npm run start - opens localhost:3000, script ./src/index.tsx
launch tusd client, base config - upload to http://0.0.0.0:1080/files/
Publishing
webpack --config webpack.publish.js
./index.html - publish template
shows page with lorem ipsum, shows how to use in real project
Embed
TODO: where it will be hosted?
embed feedback dist script
<script src="serverUrl/feedback-support.js"></script>
Run
<script type="text/javascript">
FeedbackSupport.run(config)
</script>
Config
interface Config {
type?: Array<{label: string, value: string}>
color?: string
headers?: any
url: string
pageData: any
}
TODO
- better send button label with recorder error