Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ This is a simple example how to use DB UX npm libraries with SpringBoot.
You need to add npm packages to [webjars](https://www.webjars.org/) via "Add web jar" button:
![img.png](img.png)

Select ``npm`` and paste the name of the npm library into the input (in this example `@db-ui/components`) and select a version. Press "Deploy!" afterward:
Select `npm` and paste the name of the npm library into the input (in this example `@db-ux/core-components`) and select a version. Press "Deploy!" afterward:
![img_1.png](img_1.png)
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>db-ui__foundations</artifactId>
<artifactId>db-ux__core-foundations</artifactId>
<version>0.4.4</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>db-ui__components</artifactId>
<artifactId>db-ux__core-components</artifactId>
<version>0.4.4</version>
</dependency>
<dependency>
Expand Down
24 changes: 14 additions & 10 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<head>
<title>Play2 WebJars Demo</title>
<link rel='stylesheet' media='screen' href='/webjars/db-ui__components/build/styles/db-ui-42.css'>
</head>
<body>
<main>
<h1>Test</h1>
<div data-icon="person">Test</div>
<button class="db-button">Test</button>
</main>
</body>
<link
rel="stylesheet"
media="screen"
href="/webjars/db-ux__core-components/build/styles/relative.css"
/>
</head>
<body>
<main>
<h1>Test</h1>
<div data-icon="person">Test</div>
<button class="db-button">Test</button>
</main>
</body>
</html>