refactor(core): move infra modules to core (#9207)

This commit is contained in:
EYHN
2024-12-23 04:53:59 +00:00
parent 2ea79d25ad
commit 129f94ee78
337 changed files with 908 additions and 1367 deletions

View File

@@ -6,10 +6,11 @@ import {
type Language,
SUPPORTED_LANGUAGES,
} from '@affine/i18n';
import type { GlobalCache } from '@toeverything/infra';
import { effect, Entity, fromPromise, LiveData } from '@toeverything/infra';
import { catchError, EMPTY, exhaustMap, mergeMap } from 'rxjs';
import type { GlobalCache } from '../../storage';
export type LanguageInfo = {
key: Language;
name: string;

View File

@@ -1,5 +1,6 @@
import { type Framework, GlobalCache } from '@toeverything/infra';
import { type Framework } from '@toeverything/infra';
import { GlobalCache } from '../storage';
import { I18nProvider } from './context';
import { I18n, type LanguageInfo } from './entities/i18n';
import { I18nService } from './services/i18n';