Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- copilot:all --> ### <samp>🤖 Generated by Copilot at 5c40202</samp> ### Summary 🎮🚀🌐 <!-- 1. 🎮 - This emoji represents the games app and its features, as well as the fun and entertainment aspect of the project. 2. 🚀 - This emoji represents the performance and security improvements, as well as the new configuration and plugins for the Next.js framework and the games app. 3. 🌐 - This emoji represents the SEO and localization features, as well as the consistency and compatibility with the PancakeSwap main app and the other apps. --> This pull request adds a new games app to the PancakeSwap frontend project, using Next.js, TypeScript, and various packages and components from the PancakeSwap ecosystem. It creates and modifies several files to configure, develop, build, and run the games app, as well as to provide some basic pages, components, styles, and SEO features. It also adds some scripts to the root `package.json` file to simplify the management of the games app and its dependencies. > _Sing, O Muse, of the games app, the splendid work of PancakeSwap,_ > _The deft and skillful builders of the next-gen decentralized platform,_ > _Who with their nimble fingers and their keen and clever minds_ > _Crafted the code and config, the style and SEO, the theme and language._ ### Walkthrough * Add a new games app to the PancakeSwap project with custom configuration, components, pages, and scripts ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-b1f0c4615ad1319a9023b4ccb9b488b820334614936974134e2b58c702d46ac6L1-L-1), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-8ccfb148398174687c867fa67f7e4ed8733f1d6e0fbd7ce240a33558d59a4a24R1-R19), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-953bf50986b31ae956d90f7dfe7a9a00136105f54fabd93012cc427609469901R1-R36), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-967cbebab910026c266138bed26eb3393d5b9d4dcdc7033a03c7746c6ac6cca4L1-L-1), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-41d759d1721a501e8ab8500bde896adea347237a8c36ee5ed88482da7098b7abR1-R120), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-38c8c3f7c97b1989cd32845952af72994a3025ac89c2d004c0cce41020c94726R1-R15), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-e8a6e148abf8d9c103819691a1e48d8ef109385d2d3cee9359ba56129b4850aeR1-R23), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-430282ea6f5ee968697b3df90d4fd896122a8f15ba1fc44029daa7bc031ae767R1-R19), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-299aa2d3a195b07231f91fae3d7436f0645483fc4651d4e07da48d5c61f48941R1-R22), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-494a42c511e304d855558e2512ce45b6b47d9cf893e46eea26b472b57034fd65R1-R42), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-7813fdb0f9149af5bc029f36557c1968b34cd4a82e4edc269b0a7493767e86c7R1-R10), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-ba3ca5c774810c195a021c45d3f2f8627c680e00fd3b6a0b7d627d5c52610470R1-R94), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-bcc52e1c62033b3327f10e93d6059a41dd188ef546c64d339ec1a36556ca26dcR1-R59), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-9c034d9c84bab83f338cd274a8c184733a1a2327bb0145a5ec4d5a78f2f551bfR1-R5), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-565cfe8f44e9297e8dcdc7cd2b9c6b11cc0494a31145c23e5c7d6c1235d365e5R1-R8), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R18), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R25)) * Set up the SEO settings for the games app using the `next-seo` package and the `PageMeta` component ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-e8a6e148abf8d9c103819691a1e48d8ef109385d2d3cee9359ba56129b4850aeR1-R23), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-430282ea6f5ee968697b3df90d4fd896122a8f15ba1fc44029daa7bc031ae767R1-R19), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-7813fdb0f9149af5bc029f36557c1968b34cd4a82e4edc269b0a7493767e86c7R1-R10), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-9c034d9c84bab83f338cd274a8c184733a1a2327bb0145a5ec4d5a78f2f551bfR1-R5)) * Use the PancakeSwap UI kit, localization, hooks, and wrap balancer packages to create a consistent and user-friendly interface for the games app, and wrap some components with the `NoSSR` component to avoid server-side rendering errors ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-41d759d1721a501e8ab8500bde896adea347237a8c36ee5ed88482da7098b7abR1-R120), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-38c8c3f7c97b1989cd32845952af72994a3025ac89c2d004c0cce41020c94726R1-R15), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-ba3ca5c774810c195a021c45d3f2f8627c680e00fd3b6a0b7d627d5c52610470R1-R94), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-9c034d9c84bab83f338cd274a8c184733a1a2327bb0145a5ec4d5a78f2f551bfR1-R5)) * Add the `NEXT_PUBLIC_APEX_URL` environment variable to store the URL of the PancakeSwap main app, and use it in some components and links ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-b1f0c4615ad1319a9023b4ccb9b488b820334614936974134e2b58c702d46ac6L1-L-1)) * Add the `.eslintrc` file to enforce code quality and style standards for the games app, and add the `.gitignore` file to avoid committing unnecessary or sensitive files to the repository ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-8ccfb148398174687c867fa67f7e4ed8733f1d6e0fbd7ce240a33558d59a4a24R1-R19), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-953bf50986b31ae956d90f7dfe7a9a00136105f54fabd93012cc427609469901R1-R36)) * Customize the HTML document and inject the styled-components styles using the `_document.tsx` file and the `ServerStyleSheet` class ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-bcc52e1c62033b3327f10e93d6059a41dd188ef546c64d339ec1a36556ca26dcR1-R59)) * Enable and customize the TypeScript features and rules for the games app using the `tsconfig.json` file and the `@pancakeswap/tsconfig/nextjs.json` file ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-565cfe8f44e9297e8dcdc7cd2b9c6b11cc0494a31145c23e5c7d6c1235d365e5R1-R8)) * Enable some features and plugins for the games app using the `next.config.mjs` file and the `NextConfig` type ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-299aa2d3a195b07231f91fae3d7436f0645483fc4651d4e07da48d5c61f48941R1-R22)) * Add the Google Tag Manager features using the `Script` component and some meta tags and scripts in the `_app.tsx` and `_document.tsx` files ([link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-ba3ca5c774810c195a021c45d3f2f8627c680e00fd3b6a0b7d627d5c52610470R1-R94), [link](https://github.com/pancakeswap/pancake-frontend/pull/8250/files?diff=unified&w=0#diff-bcc52e1c62033b3327f10e93d6059a41dd188ef546c64d339ec1a36556ca26dcR1-R59))
- Loading branch information
cddf570
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.
Successfully deployed to the following URLs:
uikit – ./packages/uikit
uikit-git-develop.pancake.run
uikit.pancake.run