csaf-poc / csaf_webview

Web app (module) to display a CSAF 2 document and to browse CSAF 2 ROLIE feeds. ⚠️ The web demo is often not allowed to access servers:
https://csaf-poc.github.io/csaf_webview/
1 stars 3 forks source link

Using Webcomponents for document view for better reusability #19

Open bernhardreiter opened 8 months ago

bernhardreiter commented 8 months ago

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

ThomasJunk commented 8 months ago

Out of scope

bernhardreiter commented 8 months ago

@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. ;)