Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Webcomponents for document view for better reusability #19

Open
bernhardreiter opened this issue Oct 13, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@bernhardreiter
Copy link
Contributor

To reuse the single CSAF document view of the repository in different javascript frameworks, consider moving to create standard https://developer.mozilla.org/en-US/docs/Web/API/Web_components .

It is possible to do so in Svelte (e.g. https://blog.logrocket.com/build-web-components-svelte/) which is used so far. It would be possible to use (and create) in VueJS3 as well, see https://vuejs.org/guide/extras/web-components.html#using-custom-elements-in-vue

Considerations

  • Depending on the use case and which framework is used in a product that shall use the casf document view, the requirements for an integration can be different. A migration to web components can be done much better once the use case and application is known.
  • As the build options have to be changed and a file for the import as to be created, a migration to web components will be a little bit of work more for implementation and maintenance of this product. Again it is better to have that additional effort when it is needed, but not earlier.
@bernhardreiter bernhardreiter added the enhancement New feature or request label Oct 13, 2023
@ThomasJunk
Copy link
Contributor

Out of scope

@bernhardreiter
Copy link
Contributor Author

@ThomasJunk we can keep it open as a possible enhancement. Just because it is not done for 1.0 does not mean it is not done sometimes in the future. ;)

@bernhardreiter bernhardreiter reopened this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants