Skip to content

Conversation

@schlawg
Copy link
Contributor

@schlawg schlawg commented Jun 27, 2024

remove dialog from site, along with a few other junk functions. code splitting obviates manual bundler deduplication

Copy link
Collaborator

@ornicar ornicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good PR, some off-topic details blocking merge for now

if (prop && typeof prop === 'object') deepFreeze(prop);
}
Object.freeze(obj);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this new? I can't find where it's used.

: str;

// does not compare complex objects or non-enumerable properties
export function enumerableEquivalence(a: any, b: any, enforceArrayOrder = true): boolean {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find where this is used.

})
).returnValue === 'yes'
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the native browser alert and confirm?
Also it probably should be in a different PR

justify-content: end;
gap: 2em;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

htmlText?: string; // content, text will be used as-is
cash?: Cash; // content, overrides htmlText, will be cloned and any 'none' class removed
htmlUrl?: string; // content, overrides htmlText and cash, url will be xhr'd
append?: { node: HTMLElement; where?: string; how?: 'after' | 'before' | 'child' }[]; // default 'child'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this new append.how doesn't seem to be used anywhere. It still compiles after I remove it.

@schlawg
Copy link
Contributor Author

schlawg commented Jul 5, 2024

should be good now. the alert dialog stuff was moved to a separate pr.

@ornicar ornicar merged commit 74da097 into lichess-org:master Jul 6, 2024
@schlawg schlawg deleted the ui-remove-site-dialog branch July 15, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants