mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
feat: enhance UI components and add accordion functionality
- Updated DraggableWindow.vue to improve shadow effects. - Refactored AboutWindow.vue for better structure and readability. - Added chatbot functionality in chatbot.vue with cookie management. - Improved navigation component for better code clarity. - Created a new chat history table in the database schema. - Modified error handling in error.vue to display error messages correctly. - Integrated ChatbotWindow into the desktop application layout. - Implemented accordion component in home.vue for Q/A section. - Enhanced API for chat functionality with improved error handling. - Removed unused routes for cleaner codebase. - Added custom animations for accordion components in tailwind.config.js. - Developed accordion UI components (Accordion, AccordionContent, AccordionItem, AccordionTrigger) for better user interaction.
This commit is contained in:
parent
f89e6aaa48
commit
5bf857f3cd
21 changed files with 402 additions and 182 deletions
|
@ -51,24 +51,14 @@ create table if not exists go_links {
|
|||
created_at timestampz default current_timestamp
|
||||
}
|
||||
`;
|
||||
/*
|
||||
const createAdminPosts = await sql`
|
||||
create table if not exists adminPosts (
|
||||
uuid text primary key,
|
||||
slug text not null unique,
|
||||
content text not null,
|
||||
created_at timestampz default current_timestamp,
|
||||
byUser text not null
|
||||
)
|
||||
`;
|
||||
const adminUsers = await sql`
|
||||
create table if not exists adminUsers (
|
||||
uuid text primary key,
|
||||
username text not null unique,
|
||||
passwordHash text not null,
|
||||
created_at timestampz default current_timestamp,
|
||||
lastlogged_at timestampz default current_timestamp,
|
||||
)
|
||||
`;*/
|
||||
|
||||
const createUserAiChatHistory = await sql`
|
||||
CREATE TABLE IF NOT EXISTS chat_history (
|
||||
id SERIAL PRIMARY KEY,
|
||||
uuid VARCHAR(255) NOT NULL,
|
||||
role VARCHAR(50) NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
)`;
|
||||
|
||||
console.log("Creation Complete");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue