mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 13:41:52 +00:00
chore: remove link preview cache feature flag (#12568)
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
LinkPreviewService,
|
||||
LinkPreviewServiceIdentifier,
|
||||
} from '@blocksuite/affine/shared/services';
|
||||
import { type BlockStdScope, StdIdentifier } from '@blocksuite/affine/std';
|
||||
import { type ExtensionType } from '@blocksuite/affine/store';
|
||||
import type { Container } from '@blocksuite/global/di';
|
||||
import type { FrameworkProvider } from '@toeverything/infra';
|
||||
@@ -13,12 +12,8 @@ import type { FrameworkProvider } from '@toeverything/infra';
|
||||
import { ServerService } from '../../../modules/cloud/services/server';
|
||||
|
||||
class AffineLinkPreviewService extends LinkPreviewService {
|
||||
constructor(
|
||||
endpoint: string,
|
||||
std: BlockStdScope,
|
||||
cache: LinkPreviewCacheProvider
|
||||
) {
|
||||
super(std, cache);
|
||||
constructor(endpoint: string, cache: LinkPreviewCacheProvider) {
|
||||
super(cache);
|
||||
this.setEndpoint(endpoint);
|
||||
}
|
||||
}
|
||||
@@ -52,7 +47,6 @@ export function patchLinkPreviewService(
|
||||
di.override(LinkPreviewServiceIdentifier, provider => {
|
||||
return new AffineLinkPreviewService(
|
||||
linkPreviewUrl,
|
||||
provider.get(StdIdentifier),
|
||||
provider.get(LinkPreviewCacheIdentifier)
|
||||
);
|
||||
});
|
||||
|
||||
@@ -106,16 +106,6 @@ export const AFFINE_FLAGS = {
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: isCanaryBuild,
|
||||
},
|
||||
enable_link_preview_cache: {
|
||||
category: 'blocksuite',
|
||||
bsFlag: 'enable_link_preview_cache',
|
||||
displayName:
|
||||
'com.affine.settings.workspace.experimental-features.enable-link-preview-cache.name',
|
||||
description:
|
||||
'com.affine.settings.workspace.experimental-features.enable-link-preview-cache.description',
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: isCanaryBuild,
|
||||
},
|
||||
|
||||
enable_emoji_folder_icon: {
|
||||
category: 'affine',
|
||||
|
||||
Reference in New Issue
Block a user