"],
- "js": ["content.js"],
- "css": ["styles/popup.css"]
- }
- ],
- "icons": {
- "16": "icons/icon-16x16.png",
- "48": "icons/icon-48x48.png",
- "128": "icons/icon-128x128.png"
- }
-}
diff --git a/intergrations/extension_chrome/options.html b/intergrations/extension_chrome/options.html
deleted file mode 100644
index b39625a..0000000
--- a/intergrations/extension_chrome/options.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
- RagFlow option
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/intergrations/extension_chrome/options.js b/intergrations/extension_chrome/options.js
deleted file mode 100644
index d72a942..0000000
--- a/intergrations/extension_chrome/options.js
+++ /dev/null
@@ -1,36 +0,0 @@
-document.addEventListener("DOMContentLoaded", () => {
-
- chrome.storage.sync.get(["baseURL", "from", "auth", "sharedID"], (result) => {
- if (result.baseURL) {
- document.getElementById("base-url").value = result.baseURL;
- }
- if (result.from) {
- document.getElementById("from").value = result.from;
- }
- if (result.auth) {
- document.getElementById("auth").value = result.auth;
- }
- if (result.sharedID) {
- document.getElementById("shared-id").value = result.sharedID;
- }
- });
-
- document.getElementById("save-config").addEventListener("click", () => {
- const baseURL = document.getElementById("base-url").value;
- const from = document.getElementById("from").value;
- const auth = document.getElementById("auth").value;
- const sharedID = document.getElementById("shared-id").value;
-
- chrome.storage.sync.set(
- {
- baseURL: baseURL,
- from: from,
- auth: auth,
- sharedID: sharedID,
- },
- () => {
- alert("Successfully saved");
- }
- );
- });
-});
diff --git a/intergrations/extension_chrome/popup.html b/intergrations/extension_chrome/popup.html
deleted file mode 100644
index c69d010..0000000
--- a/intergrations/extension_chrome/popup.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
- RAGFLOW
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/intergrations/extension_chrome/popup.js b/intergrations/extension_chrome/popup.js
deleted file mode 100644
index 0a8bdab..0000000
--- a/intergrations/extension_chrome/popup.js
+++ /dev/null
@@ -1,24 +0,0 @@
-document.addEventListener("DOMContentLoaded", () => {
- chrome.storage.sync.get(["baseURL", "from", "auth", "sharedID"], (result) => {
- if (result.baseURL && result.sharedID && result.from && result.auth) {
- const iframeSrc = `${result.baseURL}chat/share?shared_id=${result.sharedID}&from=${result.from}&auth=${result.auth}`;
- const iframe = document.querySelector("iframe");
- iframe.src = iframeSrc;
- }
- });
- chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
- chrome.scripting.executeScript(
- {
- target: { tabId: tabs[0].id },
- files: ["content.js"],
- },
- (results) => {
- if (results && results[0]) {
- const getHtml = document.getElementById("getHtml");
- getHtml.value = results[0].result;
-
- }
- }
- );
- });
-});
diff --git a/intergrations/extension_chrome/styles/options.css b/intergrations/extension_chrome/styles/options.css
deleted file mode 100644
index 1e3ded6..0000000
--- a/intergrations/extension_chrome/styles/options.css
+++ /dev/null
@@ -1,91 +0,0 @@
-#ragflow {
- font-family: "Segoe UI", Arial, sans-serif;
- margin: 0;
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 600px;
-}
-
-#ragflow .window {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- flex: 1;
- overflow: hidden;
-}
-#ragflow #form-config {
- background-color: #fff;
- box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- overflow: hidden;
-}
-
-#ragflow .header {
- background-color: #fff;
- padding: 4px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- flex-direction: row;
-}
-
-#ragflow .header .title {
- font-size: 16px;
-}
-
-#ragflow .header .logo {
- width: 100px; /* Adjust size as needed */
- height: auto;
- margin-right: 10px;
-}
-
-#ragflow .content {
- padding: 20px;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-}
-
-#ragflow label {
- font-weight: bold;
- margin-bottom: 5px;
-}
-
-#ragflow input,
-#ragflow select {
- width: 100%;
- padding: 8px;
- margin-bottom: 15px;
- border: 1px solid #ccc;
- border-radius: 5px;
- box-sizing: border-box;
-}
-
-#ragflow button {
- background-color: #0078d4;
- color: #fff;
- padding: 10px;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- font-size: 14px;
-}
-
-#ragflow button:hover {
- background-color: #005bb5;
-}
-
-#ragflow #config-button {
- display: flex;
- position: absolute;
- top: 2px;
- right: 2px;
- font-size: 22px;
-}
-#ragflow #config-button:hover {
- cursor: pointer;
-}
diff --git a/intergrations/extension_chrome/styles/popup.css b/intergrations/extension_chrome/styles/popup.css
deleted file mode 100644
index 90134f8..0000000
--- a/intergrations/extension_chrome/styles/popup.css
+++ /dev/null
@@ -1,20 +0,0 @@
-#ragflow {
- font-family: "Segoe UI", Arial, sans-serif;
- margin: 0;
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 320px;
-}
-
-#ragflow .window {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- flex: 1;
- overflow: hidden;
-}
-#ragflow #output {
- position: absolute;
-}
\ No newline at end of file
diff --git a/management/server/database.py b/management/server/database.py
index 84ca343..a069358 100644
--- a/management/server/database.py
+++ b/management/server/database.py
@@ -27,12 +27,12 @@ def is_running_in_docker():
if is_running_in_docker():
MYSQL_HOST = "mysql"
MYSQL_PORT = 3306
- MINIO_HOST = os.getenv("MINIO_VISIT_HOST", "host.docker.internal")
+ MINIO_HOST = "minio"
MINIO_PORT = 9000
ES_HOST = "es01"
ES_PORT = 9200
- REDIS_HOST = os.getenv("REDIS_HOST", "redis")
- REDIS_PORT = int(os.getenv("REDIS_PORT", "6379"))
+ REDIS_HOST = "redis"
+ REDIS_PORT = 6379
else:
MYSQL_HOST = "localhost"
MYSQL_PORT = int(os.getenv("MYSQL_PORT", "5455"))