♻️ refactor: optimize state management, switch to @tanstack/vue-virtual, and improve performance
- Centralize `useAgents` and `useModels` state within the Nuxt app context to prevent data leaks and improve initialization. - Migrate virtualization from `vue-virtual-scroller` to `@tanstack/vue-virtual` with new `RowVirtualizerFixed` and `RowVirtualizerDynamic` components. - Upgrade Nuxt to v4.3.1 and remove `@vue-macros/nuxt`. - Replace `big.js` with an optimized custom `lshDecimal` string manipulation logic for pricing calculations in the provider API. - Implement automatic focus redirection in `ChatInput` to capture standard keyboard input. - Refactor Sidenav and Settings components to utilize virtualization for long lists (topics, agents, models). - Enhance theme colors and mobile experience. More work to come on both of these.
This commit is contained in:
@@ -90,24 +90,6 @@ index 09fcba1b0df49971de59b5d9f11171e5ea88aee7..0ce27b58838db11fd51fcf873a182d52
|
||||
db = new DB({ ...options, schema: savedSchema });
|
||||
let schemaChange = undefined;
|
||||
// A schema is provided, attempt to apply it
|
||||
diff --git a/dist/index.js b/dist/index.js
|
||||
index 5155e43bb742663d121d2c5a50275398d8b79b36..9fbd6beac969f25612d74a57b845b973ea914637 100644
|
||||
--- a/dist/index.js
|
||||
+++ b/dist/index.js
|
||||
@@ -1,4 +1,3 @@
|
||||
-import './polyfills.js';
|
||||
export * from './codec.js';
|
||||
export * from './db.js';
|
||||
export * from './db-transaction.js';
|
||||
diff --git a/dist/polyfills.d.ts b/home/zoeissleeping/.cache/.bun/install/cache/@triplit/db@1.1.10@@@1/dist/polyfills.d.ts
|
||||
deleted file mode 100644
|
||||
index 825f04fd5dba36fd87c308e87e15b2c3c5be8712..0000000000000000000000000000000000000000
|
||||
diff --git a/dist/polyfills.js b/home/zoeissleeping/.cache/.bun/install/cache/@triplit/db@1.1.10@@@1/dist/polyfills.js
|
||||
deleted file mode 100644
|
||||
index 264a2151aaf63c967a2f8820454d2692f4522c99..0000000000000000000000000000000000000000
|
||||
diff --git a/dist/polyfills.js.map b/home/zoeissleeping/.cache/.bun/install/cache/@triplit/db@1.1.10@@@1/dist/polyfills.js.map
|
||||
deleted file mode 100644
|
||||
index 23685d5015568d42f4273c442fff1dacac3151d4..0000000000000000000000000000000000000000
|
||||
diff --git a/dist/schema/data-types/type.js b/dist/schema/data-types/type.js
|
||||
index 2e1281c5577b48ffe609a08da933b5f342a485fa..e88487852f6c49185144a9057ffb11d93a3b6cc8 100644
|
||||
--- a/dist/schema/data-types/type.js
|
||||
|
||||
Reference in New Issue
Block a user