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

Clean up some of the UI code in the samples #443

Merged
merged 1 commit into from
Apr 4, 2024
Merged
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 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
Loading