* feat(unocss): centralize font configuration and fix cyrillic font handling (#389) This commit refactors the UnoCSS font configuration to establish a single source of truth and resolve issues with Cyrillic character rendering. - Centralizes all font definitions within the root uno.config.ts. - Updates the theme.fontFamily to use a correct fallback chain, ensuring "Comfortaa" is used for Cyrillic characters. - Restricts the "Kiwi Maru" font to Latin and Japanese character subsets to prevent incorrect application. - Simplifies application-specific uno.config.ts files by removing redundant local font overrides. * fix(ui): ensure provider models reload reactively (#407) This commit resolves a persistent reactivity issue where the model list would not update automatically after changing provider credentials. This was a recurring problem reported by users on Discord. Previously, the model list was only fetched when the consciousness settings page was first mounted. This meant that if a user updated an API key and navigated back, the page would still display the old, stale model list until the application was fully restarted. The fix introduces two key changes: 1. A `watch` effect has been added to the `providers.ts` store. It now monitors `providerCredentials` and automatically refetches the model list for a specific provider whenever its credentials change. 2. The `consciousness.vue` component now uses the `onActivated` lifecycle hook in addition to `onMounted`. This ensures that the model list is refreshed every time the component becomes active, such as when navigating back to it. A `watch` on the `activeProvider` was also added to handle provider switching within the page. These changes ensure that the model list is always synchronized with the current provider configuration, providing a much smoother and more intuitive user experience. Closes #407 --------- Co-authored-by: Neko <neko@ayaka.moe>
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { defineConfig, mergeConfigs } from 'unocss'
|
|
|
|
import { histoireUnoConfig, sharedUnoConfig } from '../../uno.config'
|
|
|
|
export default mergeConfigs([
|
|
sharedUnoConfig(),
|
|
histoireUnoConfig(),
|
|
defineConfig({
|
|
// All font configurations are now inherited from the root uno.config.ts
|
|
}),
|
|
])
|