Skip to content

Commit

Permalink
Merge pull request #443 from phillip-kruger/sample-cleanup
Browse files Browse the repository at this point in the history
Clean up some of the UI code in the samples
  • Loading branch information
geoand authored Apr 4, 2024
2 parents 90cbd53 + 11053ad commit 1d583b5
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 5,763 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:project-version: 0.10.2
:langchain4j-version: 0.29.1
:examples-dir: ./../examples/
:examples-dir: ./../examples/
14 changes: 4 additions & 10 deletions samples/chatbot-easy-rag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,15 @@

<!-- UI -->
<dependency>
<groupId>org.mvnpm</groupId>
<groupId>io.mvnpm</groupId>
<artifactId>importmap</artifactId>
<version>1.0.8</version>
</dependency>
<dependency>
<groupId>org.mvnpm.at.mvnpm</groupId>
<artifactId>vaadin-webcomponents</artifactId>
<version>24.3.8</version>
<scope>runtime</scope>
<version>1.0.10</version>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>es-module-shims</artifactId>
<artifactId>lit</artifactId>
<version>3.1.2</version>
<scope>runtime</scope>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;

import org.mvnpm.importmap.Aggregator;
import io.mvnpm.importmap.Aggregator;

/**
* Dynamically create the import map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
import {css, LitElement} from 'lit';
import '@vaadin/icon';
import '@vaadin/button';
import '@vaadin/text-field';
import '@vaadin/text-area';
import '@vaadin/form-layout';
import '@vaadin/progress-bar';
import '@vaadin/checkbox';
import '@vaadin/horizontal-layout';
import '@vaadin/grid';
import '@vaadin/grid/vaadin-grid-sort-column.js';
import {LitElement} from 'lit';

export class DemoChat extends LitElement {
static styles = css`
.button {
cursor: pointer;
}
`;


connectedCallback() {
const chatBot = document.getElementsByTagName("chat-bot")[0];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import {LitElement, html, css} from 'lit';
import '@vaadin/icon';
import '@vaadin/button';
import '@vaadin/text-field';
import '@vaadin/text-area';
import '@vaadin/form-layout';
import '@vaadin/progress-bar';
import '@vaadin/checkbox';
import '@vaadin/grid';
import '@vaadin/grid/vaadin-grid-sort-column.js';

export class DemoTitle extends LitElement {

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<script src="/_importmap/dynamic-importmap.js"></script>

<script type="module">
import 'icons/font-awesome.js';
import 'components/demo-title.js';
import 'components/demo-chat.js';
import 'wc-chatbot';
Expand All @@ -33,7 +32,6 @@
display: flex;
flex-direction: column;
justify-content: center;
color: var(--lumo-body-text-color);
background: var(--main-bg-color);
}

Expand Down
14 changes: 4 additions & 10 deletions samples/chatbot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,15 @@

<!-- UI -->
<dependency>
<groupId>org.mvnpm</groupId>
<groupId>io.mvnpm</groupId>
<artifactId>importmap</artifactId>
<version>1.0.8</version>
</dependency>
<dependency>
<groupId>org.mvnpm.at.mvnpm</groupId>
<artifactId>vaadin-webcomponents</artifactId>
<version>24.3.8</version>
<scope>runtime</scope>
<version>1.0.10</version>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>es-module-shims</artifactId>
<artifactId>lit</artifactId>
<version>3.1.2</version>
<scope>runtime</scope>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.mvnpm</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;

import org.mvnpm.importmap.Aggregator;
import io.mvnpm.importmap.Aggregator;

/**
* Dynamically create the import map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import {css, LitElement} from 'lit';
import '@vaadin/icon';
import '@vaadin/button';
import '@vaadin/text-field';
import '@vaadin/text-area';
import '@vaadin/form-layout';
import '@vaadin/progress-bar';
import '@vaadin/checkbox';
import '@vaadin/horizontal-layout';
import '@vaadin/grid';
import '@vaadin/grid/vaadin-grid-sort-column.js';
import {LitElement} from 'lit';

export class DemoChat extends LitElement {
static styles = css`
.button {
cursor: pointer;
}
`;

export class DemoChat extends LitElement {

connectedCallback() {
const chatBot = document.getElementsByTagName("chat-bot")[0];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import {LitElement, html, css} from 'lit';
import '@vaadin/icon';
import '@vaadin/button';
import '@vaadin/text-field';
import '@vaadin/text-area';
import '@vaadin/form-layout';
import '@vaadin/progress-bar';
import '@vaadin/checkbox';
import '@vaadin/grid';
import '@vaadin/grid/vaadin-grid-sort-column.js';

export class DemoTitle extends LitElement {

Expand Down
Loading

0 comments on commit 1d583b5

Please sign in to comment.