major
nice-to-have
minor
#25217
Layout-Export führt zu invaliden Komponenten-Referenzen bei Referenzierung einer bestehenden Komponente
#25327
Modell-Editor: Falsche Kompositionsmarker, wenn Container-Typ in Diagramm von Content-Typ gezogen wird
enhancement
Web resources can also be included in a web application's JARs. Anything located under /META-INF/resources can be streamed directly to the client from the classpath.
WEB-JARs bundle client-side JS and CSS libraries as JARs so they can be easily integrated into a web application.
Usage
A JS file can be added to the application using the syntax `webjar:<group-id>/<artifact-id>:<path>:<name> `:
#!xml
<config service-class="com.top_logic.gui.JSFileCompiler">
<instance>
<additional-files>
<file resource="webjar:org.webjars/chartjs:webjars/chartjs:Chart.js" />
</additional-files>
</instance>
</config>
This syntax eliminates the need to specify the exact version number in the configuration. Instead, the specific path `webjars/chartjs/2.9.4/Chart.js ` could have been entered.
The same applies to CSS files in the theme:
#!xml
<THEME>
<STYLES>
<STYLE name="webjar:org.webjars/chartjs:webjars/chartjs:Chart.css"/>
</STYLES>
</THEME>
Test
- Integration of chart.js, see #25765.