feat(ui): implement home page and ai chat input with voice orb
Implement the core user interface components including the home page, a sophisticated AI chat input component, and a 3D voice visualization service using Three.js. - Add `HomePage` component with responsive layout and theme integration. - Add `AiChatInputComponent` supporting text, file attachments, and voice mode transitions. - Implement `VoiceOrbService` using Three.js to provide a reactive 3D animated orb for voice interaction. - Update routing to include the new home page. - Refactor `SettingsPage` to clean up unused RTL logic and improve UI styling. - Adjust Angular build budgets in `angular.json` to accommodate increased bundle size from Three.js.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ChangeDetectionStrategy, Component, signal, inject, computed, effect } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, signal, inject } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { ThemeService } from '../../services/theme/theme.service';
|
||||
@@ -29,7 +29,6 @@ export class SettingsPage {
|
||||
readonly language = signal('fa');
|
||||
readonly notificationsEnabled = signal(true);
|
||||
readonly isDarkMode = this.themeService.isDarkMode;
|
||||
readonly isRTL = signal(true);
|
||||
|
||||
selectTab(id: TabId): void {
|
||||
this.activeTab.set(id);
|
||||
@@ -77,12 +76,6 @@ export class SettingsPage {
|
||||
this.themeService.toggleDarkMode();
|
||||
}
|
||||
|
||||
toggleRTL(): void {
|
||||
this.isRTL.update(val => !val);
|
||||
document.documentElement.dir = this.isRTL() ? 'rtl' : 'ltr';
|
||||
document.body.style.direction = this.isRTL() ? 'rtl' : 'ltr';
|
||||
}
|
||||
|
||||
get fileCount(): number {
|
||||
return this.uploadedFiles().length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user