Commit Graph
5 Commits
Author SHA1 Message Date
Innei 3d577699fc refactor(ai): optimize code rendering and layout adjustments
- Introduced memoization for the ShikiHighLighter component to enhance performance during code rendering.
- Updated layout properties in AIDisplayFlowPart and AIMessageParts for improved responsiveness and visual consistency.
- Enhanced the ChatInterface component with flex properties for better layout management.
- Adjusted message rendering logic in AIMarkdownStreamingMessage to improve first paint performance.

These changes collectively enhance the efficiency and user experience of the AI chat interface.

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-12 00:24:42 +08:00
Innei 496b1d65b2 refactor: replace tipc to ipcServices (#3863)
* init

* refactor: remove @egoist/tipc integration and clean up IPC services

- Deleted references to @egoist/tipc, including related imports and methods.
- Refactored IPC services to utilize decorators for method registration.
- Updated renderer to use new IPC method calls directly.
- Cleaned up unused files and dependencies related to tipc.
- Enhanced the structure of IPC services for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: replace tipcClient with ipcServices and clean up IPC integration

- Removed all instances of tipcClient and replaced them with ipcServices for improved IPC method calls.
- Deleted the obsolete ipc-client.ts file and related references.
- Updated various components and hooks to utilize the new ipcServices structure.
- Enhanced type safety and maintainability of IPC service interactions.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-03 23:12:48 +08:00
Innei 20049b0150 fix: update language display logic in Shiki code highlighter
- Modified the language display condition to show an empty div for plaintext instead of rendering the language name and icon.
- This change improves the clarity of the code highlighter by avoiding unnecessary elements for plaintext.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-14 00:46:42 +08:00
Whitewater 20e63fc194 fix: handle Hugo code block workaround (#3638) 2025-05-04 23:54:15 +08:00
Innei bf2e3444b9 refactor: adjust desktop structure
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-28 21:42:23 +08:00