Skip to content

Commit a6dba02

Browse files
authored
Merge branch 'main' into avivkeller/admin-972/gov-repo
Signed-off-by: Aviv Keller <[email protected]>
2 parents 49bcd00 + 9f16142 commit a6dba02

File tree

85 files changed

+852
-707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+852
-707
lines changed

.github/workflows/translations-sync.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,27 @@ jobs:
8989
cache-lint-${{ hashFiles('pnpm-lock.yaml') }}-
9090
cache-lint-
9191
92+
- name: Patch version if the files changed
93+
working-directory: packages/i18n
94+
run: |
95+
CHANGED_FILES=$(git diff --name-only HEAD^1 HEAD)
96+
if [ -n "$CHANGED_FILES" ]; then
97+
pnpm version patch --no-git-tag-version
98+
fi
99+
92100
- name: Run ESLint
93101
working-directory: apps/site
94102
run: node --run lint:md -- --fix
95103

96104
- name: Run Prettier
97105
run: node --run prettier:fix
98106

99-
- name: Patch version if the files changed
100-
run: |
101-
CHANGED_FILES=$(git diff --name-only origin/main HEAD -- packages/website-i18n)
102-
if [ -n "$CHANGED_FILES" ]; then
103-
cd packages/website-i18n
104-
pnpm version patch --no-git-tag-version
105-
else
106-
107107
- name: Push Changes back to Pull Request
108108
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
109109
with:
110110
commit_options: '--no-verify --signoff'
111111
commit_message: 'chore: automated format of translated files'
112-
branch: 'chore/crowdin'
112+
branch: ${{ env.BRANCH_NAME }}
113113

114114
- name: Save Lint Cache
115115
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3

apps/site/app/[locale]/[...path]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ const getPage: FC<PageParams> = async props => {
7474
// If we have a filename and layout then we have a page
7575
if (context.filename && context.frontmatter.layout) {
7676
return basePage.renderPage({
77-
content: content,
77+
content,
7878
layout: context.frontmatter.layout,
79-
context: context,
79+
context,
8080
});
8181
}
8282

apps/site/app/[locale]/blog/[...path]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ const getPage: FC<PageParams> = async props => {
5050
// Gets the Markdown content and context for Blog pages
5151
// otherwise this is likely a blog-category or a blog post
5252
const [content, context] = await basePage.getMarkdownContext({
53-
locale: locale,
53+
locale,
5454
pathname: `blog/${pathname}`,
5555
});
5656

5757
// If this isn't a valid dynamic route for blog post or there's no markdown file
5858
// for this, then we fail as not found as there's nothing we can do.
5959
if (isDynamicRoute || context.filename) {
6060
return basePage.renderPage({
61-
content: content,
61+
content,
6262
layout: context.frontmatter.layout ?? 'blog-category',
6363
context: { ...context, pathname: `/blog/${pathname}` },
6464
});

apps/site/app/[locale]/download/archive/[version]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const generateStaticParams = async () => {
3131

3232
return ARCHIVE_DYNAMIC_ROUTES.map(version => ({
3333
locale: defaultLocale.code,
34-
version: version,
34+
version,
3535
}));
3636
};
3737

@@ -58,15 +58,15 @@ const getPage: FC<PageParams> = async props => {
5858

5959
// Gets the Markdown content and context for Download Archive pages
6060
const [content, context] = await basePage.getMarkdownContext({
61-
locale: locale,
61+
locale,
6262
pathname: 'download/archive',
6363
});
6464

6565
// If this isn't a valid dynamic route for archive version or there's no markdown
6666
// file for this, then we fail as not found as there's nothing we can do.
6767
if (isDynamicRoute && context.filename) {
6868
return basePage.renderPage({
69-
content: content,
69+
content,
7070
layout: context.frontmatter.layout!,
7171
context: { ...context, pathname: `/download/archive/${pathname}` },
7272
});

apps/site/app/[locale]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ const getPage: FC<PageParams> = async props => {
6464
// If we have a filename and layout then we have a page
6565
if (context.filename && context.frontmatter.layout) {
6666
return basePage.renderPage({
67-
content: content,
67+
content,
6868
layout: context.frontmatter.layout,
69-
context: context,
69+
context,
7070
});
7171
}
7272

apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ const PrebuiltDownloadButtons: FC = () => {
2424
const installerUrl = platform
2525
? getNodeDownloadUrl({
2626
versionWithPrefix: release.versionWithPrefix,
27-
os: os,
28-
platform: platform,
27+
os,
28+
platform,
2929
kind: 'installer',
3030
})
3131
: '';
3232

3333
const binaryUrl = platform
3434
? getNodeDownloadUrl({
3535
versionWithPrefix: release.versionWithPrefix,
36-
os: os,
37-
platform: platform,
36+
os,
37+
platform,
3838
kind: 'binary',
3939
})
4040
: '';

apps/site/components/Downloads/Release/VersionDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const VersionDropdown: FC = () => {
3838
);
3939

4040
if (release?.isLts && pathname.includes('current')) {
41-
redirect({ href: '/download', locale: locale });
41+
redirect({ href: '/download', locale });
4242
return;
4343
}
4444

4545
if (release?.status === 'Current' && !pathname.includes('current')) {
46-
redirect({ href: '/download/current', locale: locale });
46+
redirect({ href: '/download/current', locale });
4747
return;
4848
}
4949

apps/site/components/withBreadcrumbs.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ const WithBreadcrumbs: FC<WithBreadcrumbsProps> = ({ navKeys = [] }) => {
5757
// Goes deeper on the tree of items if there are any.
5858
currentNode = items;
5959

60-
return label
61-
? [...breadcrumbs, { label: label, href: link }]
62-
: breadcrumbs;
60+
return label ? [...breadcrumbs, { label, href: link }] : breadcrumbs;
6361
}
6462

6563
return breadcrumbs;

apps/site/components/withFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const WithFooter: FC = () => {
1616
const { socialLinks, footerLinks } = siteNavigation;
1717

1818
const navigation = {
19-
socialLinks: socialLinks,
19+
socialLinks,
2020
footerLinks: footerLinks.map(link => ({ ...link, text: t(link.text) })),
2121
};
2222

apps/site/components/withNavBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ const WithNavBar: FC = () => {
6262

6363
<NavBar
6464
navItems={navigationItems.map(([, { label, link, target }]) => ({
65-
link: link,
65+
link,
6666
text: label,
67-
target: target,
67+
target,
6868
}))}
6969
pathname={pathname}
7070
as={Link}

0 commit comments

Comments
 (0)