From 89b3b824c7b94d7a0b77e8146c5b63c104a81e14 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Fri, 20 Sep 2024 10:34:16 +0200 Subject: [PATCH 1/2] Started changes the file structure --- app/{ => backend}/AudioRecorder(not yet).tsx | 0 app/{ => backend}/InputBackend.tsx | 4 ++-- app/{ => backend}/InputOutputHandler.tsx | 4 ++-- app/{ => backend}/ProcessAPI.js | 0 app/{ => backend}/ProcessMemory.tsx | 0 app/{ => components}/AI.tsx | 2 +- app/{ => components}/ConversationFrontend.tsx | 0 app/{ => components}/Documentation.tsx | 0 app/{ => components}/Faq.tsx | 0 app/{ => components}/Header.tsx | 0 app/{ => components}/History.tsx | 0 app/{ => components}/InputFrontend.tsx | 0 app/{ => components}/Login.tsx | 0 app/{ => components}/Models.tsx | 0 app/{ => components}/Settings.tsx | 0 app/layout.tsx | 2 +- app/page.tsx | 12 ++++++------ 17 files changed, 12 insertions(+), 12 deletions(-) rename app/{ => backend}/AudioRecorder(not yet).tsx (100%) rename app/{ => backend}/InputBackend.tsx (94%) rename app/{ => backend}/InputOutputHandler.tsx (95%) rename app/{ => backend}/ProcessAPI.js (100%) rename app/{ => backend}/ProcessMemory.tsx (100%) rename app/{ => components}/AI.tsx (69%) rename app/{ => components}/ConversationFrontend.tsx (100%) rename app/{ => components}/Documentation.tsx (100%) rename app/{ => components}/Faq.tsx (100%) rename app/{ => components}/Header.tsx (100%) rename app/{ => components}/History.tsx (100%) rename app/{ => components}/InputFrontend.tsx (100%) rename app/{ => components}/Login.tsx (100%) rename app/{ => components}/Models.tsx (100%) rename app/{ => components}/Settings.tsx (100%) diff --git a/app/AudioRecorder(not yet).tsx b/app/backend/AudioRecorder(not yet).tsx similarity index 100% rename from app/AudioRecorder(not yet).tsx rename to app/backend/AudioRecorder(not yet).tsx diff --git a/app/InputBackend.tsx b/app/backend/InputBackend.tsx similarity index 94% rename from app/InputBackend.tsx rename to app/backend/InputBackend.tsx index 78be6bb..a00ceeb 100644 --- a/app/InputBackend.tsx +++ b/app/backend/InputBackend.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; -import InputFrontend from './InputFrontend'; -import ConversationFrontend from './ConversationFrontend'; +import InputFrontend from '../components/InputFrontend'; +import ConversationFrontend from '../components/ConversationFrontend'; import { Mistral } from '@mistralai/mistralai'; diff --git a/app/InputOutputHandler.tsx b/app/backend/InputOutputHandler.tsx similarity index 95% rename from app/InputOutputHandler.tsx rename to app/backend/InputOutputHandler.tsx index 2bbe5b0..cee1d44 100644 --- a/app/InputOutputHandler.tsx +++ b/app/backend/InputOutputHandler.tsx @@ -1,7 +1,7 @@ "use client" import React, { useEffect, useRef, useState } from "react"; -import ConversationFrontend from "./ConversationFrontend"; -import InputFrontend from "./InputFrontend"; +import ConversationFrontend from "../components/ConversationFrontend"; +import InputFrontend from "../components/InputFrontend"; const handleMicClick = () => { console.log('Mic clicked!'); diff --git a/app/ProcessAPI.js b/app/backend/ProcessAPI.js similarity index 100% rename from app/ProcessAPI.js rename to app/backend/ProcessAPI.js diff --git a/app/ProcessMemory.tsx b/app/backend/ProcessMemory.tsx similarity index 100% rename from app/ProcessMemory.tsx rename to app/backend/ProcessMemory.tsx diff --git a/app/AI.tsx b/app/components/AI.tsx similarity index 69% rename from app/AI.tsx rename to app/components/AI.tsx index b391683..e1d244b 100644 --- a/app/AI.tsx +++ b/app/components/AI.tsx @@ -1,6 +1,6 @@ // AI.tsx import React from 'react'; -import InputOutputBackend from './InputOutputHandler'; +import InputOutputBackend from '../backend/InputOutputHandler'; const AI: React.FC = () => { return ( diff --git a/app/ConversationFrontend.tsx b/app/components/ConversationFrontend.tsx similarity index 100% rename from app/ConversationFrontend.tsx rename to app/components/ConversationFrontend.tsx diff --git a/app/Documentation.tsx b/app/components/Documentation.tsx similarity index 100% rename from app/Documentation.tsx rename to app/components/Documentation.tsx diff --git a/app/Faq.tsx b/app/components/Faq.tsx similarity index 100% rename from app/Faq.tsx rename to app/components/Faq.tsx diff --git a/app/Header.tsx b/app/components/Header.tsx similarity index 100% rename from app/Header.tsx rename to app/components/Header.tsx diff --git a/app/History.tsx b/app/components/History.tsx similarity index 100% rename from app/History.tsx rename to app/components/History.tsx diff --git a/app/InputFrontend.tsx b/app/components/InputFrontend.tsx similarity index 100% rename from app/InputFrontend.tsx rename to app/components/InputFrontend.tsx diff --git a/app/Login.tsx b/app/components/Login.tsx similarity index 100% rename from app/Login.tsx rename to app/components/Login.tsx diff --git a/app/Models.tsx b/app/components/Models.tsx similarity index 100% rename from app/Models.tsx rename to app/components/Models.tsx diff --git a/app/Settings.tsx b/app/components/Settings.tsx similarity index 100% rename from app/Settings.tsx rename to app/components/Settings.tsx diff --git a/app/layout.tsx b/app/layout.tsx index da488bb..994a18a 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,4 @@ -import Header from "./Header"; +import Header from "./components/Header"; export const metadata = { diff --git a/app/page.tsx b/app/page.tsx index 54dccc1..f8dcbd3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,11 +1,11 @@ "use client"; import React, { useState, useEffect, useRef } from 'react'; -import Header from './Header'; -import AI from './AI'; -import FAQ from './Faq'; // Ensure the import path is correct -import Documentation from './Documentation'; // Ensure the import path is correct -import History from './History'; -import Models from './Models'; +import Header from './components/Header'; +import AI from './components/AI'; +import FAQ from './components/Faq'; // Ensure the import path is correct +import Documentation from './components/Documentation'; // Ensure the import path is correct +import History from './components/History'; +import Models from './components/Models'; import './styles/master.css'; const LandingPage: React.FC = () => { From 3775bbc4c50e8e90a3b7da8df3e00edf2e669504 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Fri, 20 Sep 2024 11:12:28 +0200 Subject: [PATCH 2/2] Last commit before tailwind testing --- tailwind.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tailwind.config.ts b/tailwind.config.ts index d43da91..a883ff7 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -9,11 +9,13 @@ const config: Config = { theme: { extend: { colors: { - background: "var(--background)", - foreground: "var(--foreground)", + 'history-background': 'var(--history-background-color)', + 'text-color': 'var(--text-color)', + 'input-button-hover-color': 'var(--input-button-hover-color)', }, }, }, plugins: [], }; + export default config;