-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into sakari/feature/clan-overview
- Loading branch information
Showing
198 changed files
with
3,382 additions
and
1,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'v20.12.2' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ./frontend-next-migration | ||
|
||
# - name: Lint | ||
# run: npm run lint | ||
# working-directory: pages/frontend | ||
|
||
- name: Build | ||
run: npm run build | ||
working-directory: ./frontend-next-migration | ||
env: | ||
NEXT_PUBLIC_API_LINK: ${{ secrets.NEXT_PUBLIC_API_LINK }} | ||
NEXT_PUBLIC_API_DOMAIN: ${{ secrets.NEXT_PUBLIC_API_DOMAIN }} | ||
NEXT_PUBLIC_LOCAL_HOST: ${{ secrets.NEXT_PUBLIC_LOCAL_HOST }} | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: ./frontend-next-migration | ||
env: | ||
NEXT_PUBLIC_API_LINK: ${{ secrets.NEXT_PUBLIC_API_LINK }} | ||
NEXT_PUBLIC_API_DOMAIN: ${{ secrets.NEXT_PUBLIC_API_DOMAIN }} | ||
NEXT_PUBLIC_LOCAL_HOST: ${{ secrets.NEXT_PUBLIC_LOCAL_HOST }} | ||
|
||
# - name: Run Cypress tests | ||
# run: npm run cypress:run | ||
# env: | ||
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
# working-directory: ./frontend-next-migration | ||
# | ||
# - name: Build Storybook | ||
# run: npm run build-storybook | ||
# working-directory: ./frontend-next-migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from 'react'; | ||
|
||
const MockSvg = (props) => <div {...props} />; | ||
|
||
export default MockSvg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import { Project } from 'ts-morph'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
User-agent: * | ||
Disallow: | ||
|
||
Sitemap: https://altzone.fi/sitemap.xml |
127 changes: 56 additions & 71 deletions
127
frontend-next-migration/src/app/[lng]/(home)/_getPage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,60 @@ | ||
import {MainPageProps} from "@/preparedPages/MainPage"; | ||
import {useServerTranslation} from "@/shared/i18n"; | ||
import {AppExternalLinks} from "@/shared/appLinks/appExternalLinks"; | ||
import {RoutePaths} from "@/shared/appLinks/RoutePaths"; | ||
|
||
export async function _getPage (lng: string){ | ||
const {t} = await useServerTranslation(lng, 'main'); | ||
|
||
|
||
const seo = { | ||
title: t("head-title"), | ||
description: t("head-description"), | ||
keywords: t("head-keywords"), | ||
} | ||
|
||
const playWithUs = { | ||
title: t("playWithUs-title"), | ||
webGl: { | ||
title: t('PlayOnline'), | ||
link: AppExternalLinks.webgl | ||
}, | ||
googlePLayLink: AppExternalLinks.downloadAndroid, | ||
belowNavs: [{ | ||
title: t("playWithUs-OpenPositions-title"), | ||
body: t("playWithUs-OpenPositions-body"), | ||
link: AppExternalLinks.duunitori, | ||
isExternal: true | ||
}, | ||
{ | ||
title: t("playWithUs-BecomeATester-title"), | ||
body: t("playWithUs-BecomeATester-body"), | ||
link: AppExternalLinks.discord, | ||
isExternal: true | ||
}] | ||
} | ||
|
||
|
||
const projectDescription = { | ||
title: t('project-description-title'), | ||
description: t('project-description-text') | ||
} | ||
|
||
const getToKnowComics = { | ||
title: t("getToKnowComics-title"), | ||
buttonParams: { innerText: t("getToKnowComics"), href: RoutePaths.COMICS_GALLERY } | ||
} | ||
|
||
const videoAndGalleries = { | ||
videoLink: AppExternalLinks.previewVideoYoutube, | ||
title: t("videoAndGalleries-title") | ||
} | ||
|
||
|
||
const classifiedHeroesBlocks = { | ||
title: t("classifiedHeroesBlocks-title"), | ||
seeMoreLink: { | ||
text: t("classifiedHeroesBlocks-seeMore"), | ||
href: RoutePaths.HEROES | ||
} | ||
} | ||
|
||
const page = { | ||
playWithUs, | ||
projectDescription, | ||
getToKnowComics, | ||
videoAndGalleries, | ||
classifiedHeroesBlocks | ||
} | ||
|
||
|
||
return { | ||
page, | ||
seo | ||
} | ||
|
||
import {createPage} from "@/app/_helpers"; | ||
|
||
export async function _getPage(lng: string) { | ||
const { t } = await useServerTranslation(lng, "main"); | ||
|
||
return createPage<MainPageProps>({ | ||
buildSeo: () => ({ | ||
title: t("head-title"), | ||
description: t("head-description"), | ||
keywords: t("head-keywords"), | ||
}), | ||
buildPage: () => ({ | ||
playWithUs: { | ||
title: t("playWithUs-title"), | ||
webGl: { | ||
title: t("PlayOnline"), | ||
link: AppExternalLinks.webgl, | ||
}, | ||
googlePLayLink: AppExternalLinks.downloadAndroid, | ||
belowNavs: [ | ||
{ | ||
title: t("playWithUs-OpenPositions-title"), | ||
body: t("playWithUs-OpenPositions-body"), | ||
link: AppExternalLinks.duunitori, | ||
isExternal: true, | ||
}, | ||
{ | ||
title: t("playWithUs-BecomeATester-title"), | ||
body: t("playWithUs-BecomeATester-body"), | ||
link: AppExternalLinks.discord, | ||
isExternal: true, | ||
}, | ||
], | ||
}, | ||
projectDescription: { | ||
title: t("project-description-title"), | ||
description: t("project-description-text"), | ||
}, | ||
getToKnowComics: { | ||
title: t("getToKnowComics-title"), | ||
buttonParams: { innerText: t("getToKnowComics"), href: RoutePaths.COMICS_GALLERY }, | ||
}, | ||
videoAndGalleries: { | ||
videoLink: AppExternalLinks.previewVideoYoutube, | ||
title: t("videoAndGalleries-title"), | ||
}, | ||
classifiedHeroesBlocks: { | ||
title: t("classifiedHeroesBlocks-title"), | ||
seeMoreLink: { | ||
text: t("classifiedHeroesBlocks-seeMore"), | ||
href: RoutePaths.HEROES, | ||
}, | ||
}, | ||
}), | ||
}); | ||
} |
Oops, something went wrong.