-
Notifications
You must be signed in to change notification settings - Fork 339
ProductivitySuite Combo Application with REACT UI and Keycloak Authentication #592
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
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
ccd9e98
Initial commit for Combo App
yogeshmpandey 9d6d924
Added README Updates
yogeshmpandey d9f781f
Merge branch 'opea-project:main' into combo_app
hteeyeoh 5665663
Updated README and Test Script
yogeshmpandey b6b2b5a
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
yogeshmpandey 3e548da
Merge branch 'opea-project:main' into combo_app
hteeyeoh 7ec480f
Merge branch 'opea-project:main' into combo_app
hteeyeoh 7888695
added react UI
jaswanth8888 5c58015
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
jaswanth8888 4baebed
added echo statement
jaswanth8888 ca8f658
Updated README
yogeshmpandey d4d1323
fixed delete file issue in data prep
jaswanth8888 58b8ecb
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
jaswanth8888 f3b3963
Updated Port
yogeshmpandey c7243ad
updated readme and test file
jaswanth8888 c3f5046
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
jaswanth8888 d74aaaa
updated readme
jaswanth8888 11d5e70
Readme Update
yogeshmpandey 9e577a1
README: Include Keycloak Configuration Setup Guide
hteeyeoh af3ab9f
Update keycloak_setup_guide relative link
hteeyeoh 0d99c57
Added README Updates
yogeshmpandey 7b0226f
ProductivitySuite: Include kubernetes deployment yaml and README steps
hteeyeoh 9bc1b43
Merge branch 'opea-project:main' into combo_app
hteeyeoh 767167e
removed unwanted line
jaswanth8888 f49b981
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
jaswanth8888 86baef4
Updates tests
yogeshmpandey e19f7be
updated readme
jaswanth8888 d251bd5
updated readme
jaswanth8888 5999001
updated readme
jaswanth8888 57b574f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0a8938c
removed commented code
jaswanth8888 8ca949e
Merge branch 'combo_app' of https://github.com/hteeyeoh/GenAIExamples…
jaswanth8888 d4ffcbd
Update test script to adopt opea format
hteeyeoh ae2a091
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f7cdf87
Merge branch 'main' into combo_app
chensuyue 816144f
Fix productivitySuite test
hteeyeoh 38dce37
Merge branch 'main' into combo_app
hteeyeoh ce50fd9
Fix ProductivitySuite test
hteeyeoh 6278fae
Merge branch 'main' into combo_app
yogeshmpandey 038bfbe
Updated Test Scripts
yogeshmpandey 141c50d
Updated Scripts
yogeshmpandey 4f46482
Added new services to test file
yogeshmpandey 9d8fa75
Merge branch 'main' into combo_app
yogeshmpandey c9a1108
Added check for CodeGen TGI container
yogeshmpandey 69181e7
Updated Model ID
yogeshmpandey 66b3ee1
Merge branch 'main' into combo_app
hteeyeoh b01f503
Merge branch 'main' into combo_app
hteeyeoh 3bfd43f
ProductivitySuite: Update react keycloak realm and client
hteeyeoh 8180068
ProductivitySuite: Update keycloak_setup_guide
hteeyeoh 453fe34
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8754497
Updated Ports
yogeshmpandey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # OPEA Productivity Suite Application | ||
|
|
||
| OPEA Productivity Suite, is a powerful tool designed to streamline your workflow and boost productivity. This application leverages the cutting-edge OPEA microservices to provide a comprehensive suite of features that cater to the diverse needs of modern enterprises. | ||
|
|
||
| ### Key Features | ||
|
|
||
| - Chat with Documents: Engage in intelligent conversations with your documents using our advanced RAG Capabilities. Our Retrieval-Augmented Generation (RAG) model allows you to ask questions, receive relevant information, and gain insights from your documents in real-time. | ||
|
|
||
| - Content Summarization: Save time and effort by automatically summarizing lengthy documents or articles, enabling you to quickly grasp the key takeaways. | ||
|
|
||
| - FAQ Generation: Effortlessly create comprehensive FAQs based on your documents, ensuring that your users have access to the information they need. | ||
|
|
||
| - Code Generation: Boost your coding productivity with our code generation feature. Simply provide a description of the functionality you require, and the application will generate the corresponding code snippets, saving you valuable time and effort. | ||
|
|
||
| - User Context Management: Maintain a seamless workflow by managing your user's context within the application. Our context management system keeps track of your documents and chat history, allowing for personalized experiences. | ||
|
|
||
| - Identity and access management: uses OpenSource platform (Keycloak) for single sign-on identity and access management. | ||
|
|
||
| Refer to the [Keycloak Configuration Guide](./docker/xeon/keycloak_setup_guide.md) for more instruction on setup Keycloak. | ||
|
|
||
| Refer to the [Xeon Guide](./docker/xeon/README.md) for more instructions on building docker images from source and running the application via docker compose. | ||
|
|
||
| Refer to the [Xeon Kubernetes Guide](./kubernetes/manifests/README.md) for more instruction on deploying the application via kubernetes. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Copyright (C) 2024 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| services: | ||
| chatqna: | ||
| build: | ||
| args: | ||
| http_proxy: ${http_proxy} | ||
| https_proxy: ${https_proxy} | ||
| no_proxy: ${no_proxy} | ||
| context: ../../ChatQnA/docker/ | ||
| dockerfile: ./Dockerfile | ||
| image: ${REGISTRY:-opea}/chatqna:${TAG:-latest} | ||
| embedding-tei: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/embeddings/langchain/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/embedding-tei:${TAG:-latest} | ||
| retriever-redis: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/retrievers/langchain/redis/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/retriever-redis:${TAG:-latest} | ||
| reranking-tei: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/reranks/tei/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/reranking-tei:${TAG:-latest} | ||
| llm-tgi: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/llms/text-generation/tgi/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/llm-tgi:${TAG:-latest} | ||
| dataprep-redis: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/dataprep/redis/langchain/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/dataprep-redis:${TAG:-latest} | ||
| promptregistry-mongo: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/prompt_registry/mongo/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/promptregistry-mongo-server:${TAG:-latest} | ||
| chathistory-mongo: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/chathistory/mongo/docker/Dockerfile | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/chathistory-mongo-server:${TAG:-latest} | ||
| productivity-suite-react-ui: | ||
| build: | ||
| context: ui | ||
| dockerfile: ./docker/Dockerfile.react | ||
| extends: chatqna | ||
| image: ${REGISTRY:-opea}/productivity-suite-react-ui-server:${TAG:-latest} | ||
| codegen: | ||
| build: | ||
| args: | ||
| http_proxy: ${http_proxy} | ||
| https_proxy: ${https_proxy} | ||
| no_proxy: ${no_proxy} | ||
| context: ../../CodeGen/docker/ | ||
| dockerfile: ./Dockerfile | ||
| image: ${REGISTRY:-opea}/codegen:${TAG:-latest} | ||
| docsum: | ||
| build: | ||
| args: | ||
| http_proxy: ${http_proxy} | ||
| https_proxy: ${https_proxy} | ||
| no_proxy: ${no_proxy} | ||
| context: ../../DocSum/docker/ | ||
| dockerfile: ./Dockerfile | ||
| image: ${REGISTRY:-opea}/docsum:${TAG:-latest} | ||
| faqgen: | ||
| build: | ||
| args: | ||
| http_proxy: ${http_proxy} | ||
| https_proxy: ${https_proxy} | ||
| no_proxy: ${no_proxy} | ||
| context: ../../FaqGen/docker/ | ||
| dockerfile: ./Dockerfile | ||
| image: ${REGISTRY:-opea}/faqgen:${TAG:-latest} | ||
| llm_faqgen: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/llms/faq-generation/tgi/Dockerfile | ||
| extends: faqgen | ||
| image: ${REGISTRY:-opea}/llm-faqgen-tgi:${TAG:-latest} | ||
| llm_docsum_server: | ||
| build: | ||
| context: GenAIComps | ||
| dockerfile: comps/llms/summarization/tgi/Dockerfile | ||
| extends: docsum | ||
| image: ${REGISTRY:-opea}/llm-docsum-tgi:${TAG:-latest} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Copyright (C) 2024 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Use node 20.11.1 as the base image | ||
| FROM node:20.11.1 as vite-app | ||
|
|
||
| COPY ./react /usr/app/react | ||
| WORKDIR /usr/app/react | ||
|
|
||
|
|
||
| RUN ["npm", "install"] | ||
| RUN ["npm", "run", "build"] | ||
|
|
||
|
|
||
| FROM nginx:alpine | ||
|
|
||
| COPY --from=vite-app /usr/app/react/dist /usr/share/nginx/html | ||
| COPY ./react/env.sh /docker-entrypoint.d/env.sh | ||
|
|
||
| COPY ./react/nginx.conf /etc/nginx/conf.d/default.conf | ||
| RUN chmod +x /docker-entrypoint.d/env.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| VITE_BACKEND_SERVICE_ENDPOINT_CHATQNA=APP_BACKEND_SERVICE_ENDPOINT_CHATQNA | ||
| VITE_BACKEND_SERVICE_ENDPOINT_CODEGEN=APP_BACKEND_SERVICE_ENDPOINT_CODEGEN | ||
| VITE_BACKEND_SERVICE_ENDPOINT_DOCSUM=APP_BACKEND_SERVICE_ENDPOINT_DOCSUM | ||
| VITE_BACKEND_SERVICE_ENDPOINT_FAQGEN=APP_BACKEND_SERVICE_ENDPOINT_FAQGEN | ||
| VITE_KEYCLOAK_SERVICE_ENDPOINT=APP_KEYCLOAK_SERVICE_ENDPOINT | ||
|
|
||
|
|
||
| VITE_DATAPREP_SERVICE_ENDPOINT=APP_DATAPREP_SERVICE_ENDPOINT | ||
| VITE_DATAPREP_GET_FILE_ENDPOINT=APP_DATAPREP_GET_FILE_ENDPOINT | ||
| VITE_DATAPREP_DELETE_FILE_ENDPOINT=APP_DATAPREP_DELETE_FILE_ENDPOINT | ||
|
|
||
| VITE_CHAT_HISTORY_CREATE_ENDPOINT=APP_CHAT_HISTORY_CREATE_ENDPOINT | ||
| VITE_CHAT_HISTORY_GET_ENDPOINT=APP_CHAT_HISTORY_GET_ENDPOINT | ||
| VITE_CHAT_HISTORY_DELETE_ENDPOINT=APP_CHAT_HISTORY_DELETE_ENDPOINT | ||
| VITE_PROMPT_SERVICE_GET_ENDPOINT=APP_PROMPT_SERVICE_GET_ENDPOINT | ||
| VITE_PROMPT_SERVICE_CREATE_ENDPOINT=APP_PROMPT_SERVICE_CREATE_ENDPOINT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| module.exports = { | ||
| root: true, | ||
| env: { browser: true, es2020: true }, | ||
| extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"], | ||
| ignorePatterns: ["dist", ".eslintrc.cjs"], | ||
| parser: "@typescript-eslint/parser", | ||
| plugins: ["react-refresh"], | ||
| rules: { | ||
| "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| <h1 align="center" id="title"> Productivity Suite React UI</h1> | ||
|
|
||
| ### 📸 Project Screenshots | ||
|
|
||
|  | ||
|  | ||
|
|
||
| <h2>🧐 Features</h2> | ||
|
|
||
| Here're some of the project's features: | ||
|
|
||
| #### CHAT QNA | ||
|
|
||
| - Start a Text Chat:Initiate a text chat with the ability to input written conversations, where the dialogue content can also be customized based on uploaded files. | ||
| - Context Awareness: The AI assistant maintains the context of the conversation, understanding references to previous statements or questions. This allows for more natural and coherent exchanges. | ||
|
|
||
| ##### DATA SOURCE | ||
|
|
||
| - The choice between uploading locally or copying a remote link. Chat according to uploaded knowledge base. | ||
| - Uploaded File would get listed and user would be able add or remove file/links | ||
|
|
||
| ###### Screen Shot | ||
|
|
||
|  | ||
|
|
||
| - Clear: Clear the record of the current dialog box without retaining the contents of the dialog box. | ||
| - Chat history: Historical chat records can still be retained after refreshing, making it easier for users to view the context. | ||
| - Conversational Chat : The application maintains a history of the conversation, allowing users to review previous messages and the AI to refer back to earlier points in the dialogue when necessary. | ||
| ###### Screen Shots | ||
|  | ||
|  | ||
|
|
||
| #### CODEGEN | ||
|
|
||
| - Generate code: generate the corresponding code based on the current user's input. | ||
| ###### Screen Shot | ||
|  | ||
|
|
||
| #### DOC SUMMARY | ||
|
|
||
| - Summarizing Uploaded Files: Upload files from their local device, then click 'Generate Summary' to summarize the content of the uploaded file. The summary will be displayed on the 'Summary' box. | ||
| - Summarizing Text via Pasting: Paste the text to be summarized into the text box, then click 'Generate Summary' to produce a condensed summary of the content, which will be displayed in the 'Summary' box on the right. | ||
| - Scroll to Bottom: The summarized content will automatically scroll to the bottom. | ||
| ###### Screen Shot | ||
|  | ||
|  | ||
|
|
||
| #### FAQ Generator | ||
|
|
||
| - Generate FAQs from Text via Pasting: Paste the text to into the text box, then click 'Generate FAQ' to produce a condensed FAQ of the content, which will be displayed in the 'FAQ' box below. | ||
|
|
||
| - Generate FAQs from Text via txt file Upload: Upload the file in the Upload bar, then click 'Generate FAQ' to produce a condensed FAQ of the content, which will be displayed in the 'FAQ' box below. | ||
| ###### Screen Shot | ||
|  | ||
|
|
||
| <h2>🛠️ Get it Running:</h2> | ||
|
|
||
| 1. Clone the repo. | ||
|
|
||
| 2. cd command to the current folder. | ||
|
|
||
| 3. create a .env file and add the following variables and values. | ||
| ```env | ||
| VITE_BACKEND_SERVICE_ENDPOINT_CHATQNA='' | ||
| VITE_BACKEND_SERVICE_ENDPOINT_CODEGEN='' | ||
| VITE_BACKEND_SERVICE_ENDPOINT_DOCSUM='' | ||
| VITE_BACKEND_SERVICE_ENDPOINT_FAQGEN='' | ||
| VITE_KEYCLOAK_SERVICE_ENDPOINT='' | ||
| VITE_DATAPREP_SERVICE_ENDPOINT='' | ||
| VITE_DATAPREP_GET_FILE_ENDPOINT='' | ||
| VITE_DATAPREP_DELETE_FILE_ENDPOINT='' | ||
| VITE_CHAT_HISTORY_CREATE_ENDPOINT='' | ||
| VITE_CHAT_HISTORY_GET_ENDPOINT='' | ||
| VITE_CHAT_HISTORY_DELETE_ENDPOINT='' | ||
| VITE_PROMPT_SERVICE_GET_ENDPOINT='' | ||
| VITE_PROMPT_SERVICE_CREATE_ENDPOINT='' | ||
| ``` | ||
| 4. Execute `npm install` to install the corresponding dependencies. | ||
|
|
||
| 5. Execute `npm run dev` | ||
|
|
||
| 6. open http://localhost:5174 in browser to the see the UI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/bin/sh | ||
| # Copyright (C) 2024 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| for i in $(env | grep APP_) #// Make sure to use the prefix MY_APP_ if you have any other prefix in env.production file variable name replace it with MY_APP_ | ||
| do | ||
| key=$(echo $i | cut -d '=' -f 1) | ||
| value=$(echo $i | cut -d '=' -f 2-) | ||
| echo $key=$value | ||
| # sed All files | ||
| # find /usr/share/nginx/html -type f -exec sed -i "s|${key}|${value}|g" '{}' + | ||
|
|
||
| # sed JS and CSS only | ||
| find /usr/share/nginx/html -type f \( -name '*.js' -o -name '*.css' \) -exec sed -i "s|${key}|${value}|g" '{}' + | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!-- | ||
| Copyright (C) 2024 Intel Corporation | ||
| SPDX-License-Identifier: Apache-2.0 | ||
| --> | ||
|
|
||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/src/assets/opea-icon-color.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Conversations UI</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| server { | ||
| listen 80; | ||
|
|
||
| gzip on; | ||
| gzip_proxied any; | ||
| gzip_comp_level 6; | ||
| gzip_buffers 16 8k; | ||
| gzip_http_version 1.1; | ||
| gzip_types font/woff2 text/css application/javascript application/json application/font-woff application/font-tff image/gif image/png image/svg+xml application/octet-stream; | ||
|
|
||
| location / { | ||
| root /usr/share/nginx/html; | ||
| index index.html index.htm; | ||
| try_files $uri $uri/ /index.html =404; | ||
|
|
||
| location ~* \.(gif|jpe?g|png|webp|ico|svg|css|js|mp4|woff2)$ { | ||
| expires 1d; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "name": "ui", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "tsc && vite build", | ||
| "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
| "preview": "vite preview", | ||
| "test": "vitest run" | ||
| }, | ||
| "dependencies": { | ||
| "@mantine/core": "^7.11.1", | ||
| "@mantine/dropzone": "^7.11.1", | ||
| "@mantine/hooks": "^7.11.1", | ||
| "@mantine/notifications": "^7.10.2", | ||
| "@microsoft/fetch-event-source": "^2.0.1", | ||
| "@react-keycloak/web": "^3.4.0", | ||
| "@reduxjs/toolkit": "^2.2.5", | ||
| "@tabler/icons-react": "^3.5.0", | ||
| "axios": "^1.7.2", | ||
| "keycloak-js": "^25.0.2", | ||
| "luxon": "^3.4.4", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "react-markdown": "^9.0.1", | ||
| "react-redux": "^9.1.2", | ||
| "react-router-dom": "^6.25.1", | ||
| "react-syntax-highlighter": "^15.5.0", | ||
| "remark-frontmatter": "^5.0.0", | ||
| "remark-gfm": "^4.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@testing-library/react": "^16.0.0", | ||
| "@types/luxon": "^3.4.2", | ||
| "@types/node": "^20.12.12", | ||
| "@types/react": "^18.2.66", | ||
| "@types/react-dom": "^18.2.22", | ||
| "@types/react-syntax-highlighter": "^15.5.13", | ||
| "@typescript-eslint/eslint-plugin": "^7.2.0", | ||
| "@typescript-eslint/parser": "^7.2.0", | ||
| "@vitejs/plugin-react": "^4.2.1", | ||
| "eslint": "^8.57.0", | ||
| "eslint-plugin-react-hooks": "^4.6.0", | ||
| "eslint-plugin-react-refresh": "^0.4.6", | ||
| "jsdom": "^24.1.0", | ||
| "postcss": "^8.4.38", | ||
| "postcss-preset-mantine": "^1.15.0", | ||
| "postcss-simple-vars": "^7.0.1", | ||
| "sass": "1.64.2", | ||
| "typescript": "^5.2.2", | ||
| "vite": "^5.2.13", | ||
| "vitest": "^1.6.0" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.