-
-
Notifications
You must be signed in to change notification settings - Fork 522
chore: Misc cleaning #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
chore: Misc cleaning #1349
Conversation
|
Size Change: -521 B (-0.12%) Total Size: 449 kB
ℹ️ View Unchanged
|
81685a2 to
8edfc63
Compare
| {hasNav && ( | ||
| <div class={style.nextWrapper}> | ||
| {props.prev ? ( | ||
| <SiblingNav start lang={props.lang} route={props.prev} /> | ||
| ) : ( | ||
| <span /> | ||
| )} | ||
| {props.next ? ( | ||
| <SiblingNav lang={props.lang} route={props.next} /> | ||
| ) : ( | ||
| <span /> | ||
| )} | ||
| </div> | ||
| )} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created in #650 but removed at some point, this is all unused.
| const LOGOS = [ | ||
| { | ||
| name: 'logo-text', | ||
| alt: 'Full Logo' | ||
| }, | ||
| { | ||
| name: 'logo-text-inverted', | ||
| alt: 'Full Logo with Inverted Colors' | ||
| }, | ||
| { | ||
| name: 'symbol', | ||
| alt: 'Preact Symbol' | ||
| }, | ||
| { | ||
| name: 'symbol-inverted', | ||
| alt: 'Preact Symbol with Inverted Colors' | ||
| } | ||
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why past me hoisted this into the app config, that was silly. It's only ever used here, no need for that to be accessible app-wide.
8edfc63 to
9f7b830
Compare
| }, | ||
| image({ href, text }) { | ||
| return `<img decoding="async" src="${href}" alt="${text}" />`; | ||
| return `<img loading="lazy" decoding="async" src="${href}" alt="${text}" />`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have many pages with images but this seems like a no-brainer. Was copied here from content-region last year, didn't have lazy loading set there either. Dunno why.
| * Button that expands into a menu when clicked. Pass in label & menu items as children. | ||
| * | ||
| * @param {ExpandableNavLinkProps & import('preact').JSX.ButtonHTMLAttributes} props | ||
| * @param {ExpandableNavLinkProps & import('preact').ButtonHTMLAttributes} props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broken when we upgraded to Preact v11 here.
|
|
||
| /** | ||
| * @param {NavLinkProps & import('preact').AnchorHTMLAttributes} props | ||
| * @param {NavLinkProps & Omit<import('preact').AnchorHTMLAttributes, 'role'>} props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Some minor things that I've been carrying in my git stash for too long