diff --git a/website/__pycache__/app.cpython-311.pyc b/website/__pycache__/app.cpython-311.pyc index 4b61cad..96ab443 100644 Binary files a/website/__pycache__/app.cpython-311.pyc and b/website/__pycache__/app.cpython-311.pyc differ diff --git a/website/static/js/main.js b/website/static/js/main.js index 0a12d67..27c8e80 100644 --- a/website/static/js/main.js +++ b/website/static/js/main.js @@ -40,8 +40,8 @@ const MindMap = { // Initialisiere den ChatGPT-Assistenten const assistant = new ChatGPTAssistant(); assistant.init(); - // Speichere globale Referenz - window.chatAssistant = assistant; + // Speichere als Teil von MindMap + this.assistant = assistant; // Seiten-spezifische Initialisierer aufrufen if (this.currentPage && this.pageInitializers[this.currentPage]) { diff --git a/website/templates/base.html b/website/templates/base.html index 84afdac..df00ce3 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -195,6 +195,14 @@ : '{{ 'nav-link-light-active' if request.endpoint == 'search_thoughts_page' else 'nav-link-light' }}'"> Suche + + {% if current_user.is_authenticated %} Suche + + {% if current_user.is_authenticated %} {% block scripts %}{% endblock %} + + + \ No newline at end of file diff --git a/website/templates/index.html b/website/templates/index.html index 599814a..470154a 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -342,61 +342,206 @@ - -
+ +

KI-Assistent

-

- Stelle Fragen, lasse dir Themen erklären oder finde neue Verbindungen mit Hilfe - unseres KI-Assistenten. -

- -
-
-
- - -
-
- -
-
-
- -
-
-

Frage den KI-Assistenten

-
- - Erkunde die Mindmap - - - Themen durchsuchen - - - Beziehungen erforschen - + +
+ +
+ +
+
+ +
+
+

Hallo! Ich bin dein KI-Assistent. Wie kann ich dir helfen?

+ + +
+
+ + +
+
- + + +
+ + +
+{% endblock %} + + +{% block scripts %} + {% endblock %} \ No newline at end of file