-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a `LoginPage` component for user authentication. - Added a multi-step registration component with enhanced user experience. - Implemented a new `AuthProvider` for managing authentication state across the application. - Added `RootProvider` to wrap components with necessary context providers. - Enhanced `ChatBottombar` with voice input functionality. - Introduced `useModels` hook for fetching model tags with caching. - Added `LocalStore` enum for consistent local storage references. - **Bug Fixes** - Improved error handling in various components and services for better user feedback. - **Documentation** - Updated README and other documentation files to reflect recent changes. - **Style** - Modified CSS variables for improved UI consistency and updated scrollbar styles. - **Tests** - Adjusted project API tests to maintain functionality after recent changes. - **Chores** - Updated dependencies and configuration files for better performance and compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e39fa99
commit e17404b
Showing
60 changed files
with
15,825 additions
and
11,325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ dist/ | |
|
||
# Models | ||
models/ | ||
*/**/models/ | ||
*/**/models/ | ||
|
||
*/**/database.sqlite | ||
./backend/src/database.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"cSpell.words": ["upsert"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { | ||
Injectable, | ||
NestInterceptor, | ||
ExecutionContext, | ||
CallHandler, | ||
Logger, | ||
} from '@nestjs/common'; | ||
import { Observable } from 'rxjs'; | ||
import { GqlExecutionContext } from '@nestjs/graphql'; | ||
|
||
@Injectable() | ||
export class LoggingInterceptor implements NestInterceptor { | ||
private readonly logger = new Logger('GraphQLRequest'); | ||
|
||
intercept(context: ExecutionContext, next: CallHandler): Observable<any> { | ||
const ctx = GqlExecutionContext.create(context); | ||
const { operation, fieldName } = ctx.getInfo(); | ||
let variables = ''; | ||
try { | ||
variables = ctx.getContext().req.body.variables; | ||
} catch (error) { | ||
variables = ''; | ||
} | ||
|
||
this.logger.log( | ||
`${operation.operation.toUpperCase()} \x1B[33m${fieldName}\x1B[39m${ | ||
variables ? ` Variables: ${JSON.stringify(variables)}` : '' | ||
}`, | ||
); | ||
|
||
return next.handle(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.