mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 16:19:43 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -30,10 +30,10 @@ export class ImportDoc extends WithDisposable(LitElement) {
|
||||
static override styles = styles;
|
||||
|
||||
constructor(
|
||||
private collection: DocCollection,
|
||||
private onSuccess?: OnSuccessHandler,
|
||||
private onFail?: OnFailHandler,
|
||||
private abortController = new AbortController()
|
||||
private readonly collection: DocCollection,
|
||||
private readonly onSuccess?: OnSuccessHandler,
|
||||
private readonly onFail?: OnFailHandler,
|
||||
private readonly abortController = new AbortController()
|
||||
) {
|
||||
super();
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ export class AffineLinkedDocWidget extends WidgetComponent<
|
||||
|
||||
private _inlineEditor: AffineInlineEditor | null = null;
|
||||
|
||||
private _observeInputRects = () => {
|
||||
private readonly _observeInputRects = () => {
|
||||
if (!this._inlineEditor) return;
|
||||
|
||||
const updateInputRects = () => {
|
||||
|
||||
@@ -32,7 +32,7 @@ export class LinkedDocPopover extends SignalWatcher(
|
||||
) {
|
||||
static override styles = linkedDocPopoverStyles;
|
||||
|
||||
private _abort = () => {
|
||||
private readonly _abort = () => {
|
||||
// remove popover dom
|
||||
this.context.close();
|
||||
// clear input query
|
||||
@@ -43,9 +43,9 @@ export class LinkedDocPopover extends SignalWatcher(
|
||||
);
|
||||
};
|
||||
|
||||
private _expanded = new Map<string, boolean>();
|
||||
private readonly _expanded = new Map<string, boolean>();
|
||||
|
||||
private _updateLinkedDocGroup = async () => {
|
||||
private readonly _updateLinkedDocGroup = async () => {
|
||||
const query = this._query;
|
||||
if (this._updateLinkedDocGroupAbortController) {
|
||||
this._updateLinkedDocGroupAbortController.abort();
|
||||
|
||||
@@ -45,7 +45,7 @@ export class AffineMobileLinkedDocMenu extends SignalWatcher(
|
||||
|
||||
private readonly _linkedDocGroup$ = signal<LinkedMenuGroup[]>([]);
|
||||
|
||||
private _renderGroup = (group: LinkedMenuGroup) => {
|
||||
private readonly _renderGroup = (group: LinkedMenuGroup) => {
|
||||
let items = resolveSignal(group.items);
|
||||
|
||||
const isOverflow = !!group.maxDisplay && items.length > group.maxDisplay;
|
||||
@@ -90,7 +90,7 @@ export class AffineMobileLinkedDocMenu extends SignalWatcher(
|
||||
</button>`;
|
||||
};
|
||||
|
||||
private _scrollInputToTop = () => {
|
||||
private readonly _scrollInputToTop = () => {
|
||||
const { inlineEditor } = this.context;
|
||||
const { scrollContainer, scrollTopOffset } = this.context.config.mobile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user