Skip to content

Commit

Permalink
chore: self-code-review and adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Oct 30, 2023
1 parent b89fc95 commit 22d12ce
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 22 deletions.
8 changes: 4 additions & 4 deletions components/SideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const SideNavigation: FC<SideNavigationProps> = ({
return (
<nav aria-label="secondary">
<ul>
{sideNavigationItems.map((item, key) => (
<li key={key} className={getLinkClasses(item.link, item.level)}>
{sideNavigationItems.map(item => (
<li key={item.key} className={getLinkClasses(item.link, item.level)}>
<LocalizedLink href={item.link}>{item.text}</LocalizedLink>

{item.items.length > 0 && (
<ul>
{item.items.map(({ link, level, text }) => (
<li key={link} className={getLinkClasses(link, level)}>
{item.items.map(({ link, level, text, key }) => (
<li key={key} className={getLinkClasses(link, level)}>
<LocalizedLink href={link}>{text}</LocalizedLink>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ka.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"components.common.card.announcement": "Announcements",
"components.common.card.release": "Releases",
"components.common.card.vulnerability": "Vulnerabilities",
"components.home.homeDownloadButton.download": "Download {version} {isLts, select, true {lts} other {current}}",
"components.home.homeDownloadButton.download": "{version} {isLts, select, true {LTS} other {Current}}",
"components.home.homeDownloadButton.tagline": "{isLts, select, true {Recommended For Most Users} other {Latest Features}}",
"components.home.homeDownloadButton.changelog": "Changelog",
"components.home.homeDownloadButton.otherDownloads": "Other Downloads",
Expand Down
3 changes: 1 addition & 2 deletions styles/old/layout/main.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#main {
.container {
display: block;
display: flex;
}

.has-side-nav.container {
display: flex;
flex-direction: row;
}
}
Expand Down

0 comments on commit 22d12ce

Please sign in to comment.