diff --git a/docs/modules/ROOT/pages/includes/attributes.adoc b/docs/modules/ROOT/pages/includes/attributes.adoc index 9e2c909d8..0471ff587 100644 --- a/docs/modules/ROOT/pages/includes/attributes.adoc +++ b/docs/modules/ROOT/pages/includes/attributes.adoc @@ -1,3 +1,3 @@ :project-version: 0.10.2 :langchain4j-version: 0.29.1 -:examples-dir: ./../examples/ +:examples-dir: ./../examples/ \ No newline at end of file diff --git a/samples/chatbot-easy-rag/pom.xml b/samples/chatbot-easy-rag/pom.xml index 5f4889664..aab42d6ef 100644 --- a/samples/chatbot-easy-rag/pom.xml +++ b/samples/chatbot-easy-rag/pom.xml @@ -49,21 +49,15 @@ - org.mvnpm + io.mvnpm importmap - 1.0.8 - - - org.mvnpm.at.mvnpm - vaadin-webcomponents - 24.3.8 - runtime + 1.0.10 org.mvnpm - es-module-shims + lit + 3.1.2 runtime - 1.8.2 org.mvnpm diff --git a/samples/chatbot-easy-rag/src/main/java/io/quarkiverse/langchain4j/sample/chatbot/ImportmapResource.java b/samples/chatbot-easy-rag/src/main/java/io/quarkiverse/langchain4j/sample/chatbot/ImportmapResource.java index 7bdc60403..88d0ee21d 100644 --- a/samples/chatbot-easy-rag/src/main/java/io/quarkiverse/langchain4j/sample/chatbot/ImportmapResource.java +++ b/samples/chatbot-easy-rag/src/main/java/io/quarkiverse/langchain4j/sample/chatbot/ImportmapResource.java @@ -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 diff --git a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-chat.js b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-chat.js index 395e96c78..b8f6819b1 100644 --- a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-chat.js +++ b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-chat.js @@ -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]; diff --git a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-title.js b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-title.js index 4e80ba909..aa381dae7 100644 --- a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-title.js +++ b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/components/demo-title.js @@ -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 { diff --git a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome-solid.js b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome-solid.js deleted file mode 100644 index 70b8b4031..000000000 --- a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome-solid.js +++ /dev/null @@ -1,1399 +0,0 @@ -import '@vaadin/icon'; - -const template = document.createElement('template'); - -template.innerHTML = ` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`; - -document.head.appendChild(template.content); diff --git a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome.js b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome.js deleted file mode 100644 index 225aa21aa..000000000 --- a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/icons/font-awesome.js +++ /dev/null @@ -1,7 +0,0 @@ -// import './font-awesome-brands.js'; -// import './font-awesome-regular.js'; -import './font-awesome-solid.js'; - -// export * from './font-awesome-brands.js'; -// export * from './font-awesome-regular.js'; -export * from './font-awesome-solid.js'; diff --git a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/index.html b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/index.html index 079567831..87005b73e 100644 --- a/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/index.html +++ b/samples/chatbot-easy-rag/src/main/resources/META-INF/resources/index.html @@ -8,7 +8,6 @@ @@ -33,7 +31,6 @@ display: flex; flex-direction: column; justify-content: center; - color: var(--lumo-body-text-color); background: var(--main-bg-color); }