mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 19:11:35 +08:00
1f45cc5dec
**Directory Structure Changes** - Renamed multiple block-related directories by removing the "block-" prefix: - `block-attachment` → `attachment` - `block-bookmark` → `bookmark` - `block-callout` → `callout` - `block-code` → `code` - `block-data-view` → `data-view` - `block-database` → `database` - `block-divider` → `divider` - `block-edgeless-text` → `edgeless-text` - `block-embed` → `embed`
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import { DEFAULT_IMAGE_PROXY_ENDPOINT } from '@blocksuite/affine-shared/consts';
|
|
import { StoreExtension } from '@blocksuite/store';
|
|
|
|
import { setImageProxyMiddlewareURL } from './adapters/middleware';
|
|
|
|
export class ImageProxyService extends StoreExtension {
|
|
static override key = 'image-proxy';
|
|
|
|
private _imageProxyURL = DEFAULT_IMAGE_PROXY_ENDPOINT;
|
|
|
|
setImageProxyURL(url: string) {
|
|
this._imageProxyURL = url;
|
|
setImageProxyMiddlewareURL(url);
|
|
}
|
|
|
|
get imageProxyURL() {
|
|
return this._imageProxyURL;
|
|
}
|
|
}
|