forked from phinolex/Tap-Tap-Adventure
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert project to use nextjs (#101)
* convert to nextjs * chore: bump to v2
- Loading branch information
1 parent
7b79a8b
commit a4800cb
Showing
1,901 changed files
with
17,679 additions
and
32,718 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
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,14 @@ | ||
{ | ||
"extends": ["next/core-web-vitals"], | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"requireConfigFile": false, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,40 @@ | ||
build | ||
node_modules | ||
cordova | ||
.idea | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# env configuration | ||
# server/config.json | ||
# client/config.json | ||
|
||
# dependencies | ||
/server/node_modules | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
.next | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
dump.rdb | ||
server/config.json | ||
data/config.json | ||
npm-debug.log | ||
.external-ecmascript.js | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.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
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,55 @@ | ||
import Canvas from '@/component/canvas'; | ||
import ChatInput from '@/component/chatInput'; | ||
import ChatBar from '@/component/chatBar'; | ||
import WorldBar from '@/component/worldBar'; | ||
import Bubbles from '@/component/bubbles'; | ||
import Hud from '@/component/hud'; | ||
import ButtonBar from '@/component/buttonBar'; | ||
import DropDialog from '@/component/dropDialog'; | ||
import Map from '@/component/map'; | ||
import ProfileDialog from '@/component/profileDialog'; | ||
import SettingsDialog from '@/component/settingsDialog'; | ||
import Inventory from '@/component/inventory'; | ||
import Bank from '@/component/bank'; | ||
import Trade from '@/component/trade'; | ||
import Enchant from '@/component/enchant'; | ||
import AbilitiesBar from '@/component/abilitiesBar'; | ||
import Notifications from '@/component/notifications'; | ||
import PlayerActions from '@/component/playerActions'; | ||
import ActionsDialog from '@/component/actionsDialog'; | ||
|
||
const GamePage = () => { | ||
return ( | ||
<div id="container"> | ||
<div id="border"> | ||
<Bubbles /> | ||
<div id="canvasLayers"> | ||
<Canvas id="background" /> | ||
<Canvas id="entities" /> | ||
<Canvas id="foreground" /> | ||
<Canvas id="cursor" /> | ||
<Canvas id="textCanvas" /> | ||
</div> | ||
<WorldBar /> | ||
<ChatBar /> | ||
<Hud /> | ||
<ButtonBar /> | ||
<ActionsDialog /> | ||
<PlayerActions /> | ||
<DropDialog /> | ||
<ProfileDialog /> | ||
<SettingsDialog /> | ||
<Map /> | ||
<Inventory /> | ||
<Bank /> | ||
<Trade /> | ||
<Enchant /> | ||
<AbilitiesBar /> | ||
<Notifications /> | ||
<ChatInput /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default GamePage; |
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,68 @@ | ||
import '@/styles/globals.scss'; | ||
import type { Metadata } from 'next'; | ||
import { Inter } from 'next/font/google'; | ||
import config from '@/client/config.json' assert { type: 'json'}; | ||
import Providers from '@/client/contexts/providers'; | ||
|
||
const inter = Inter({ subsets: ['latin'] }); | ||
const { title, description, keywords, developer, url, favicon, twitter } = config; | ||
|
||
export const metadata: Metadata = { | ||
title, | ||
applicationName: title, | ||
description, | ||
authors: [{ name: developer, url }], | ||
publisher: developer, | ||
generator: "Next.js", | ||
metadataBase: new URL(url), | ||
alternates: { | ||
canonical: '/', | ||
languages: { | ||
'de-DE': '/de-DE', | ||
}, | ||
}, | ||
keywords: keywords, | ||
viewport: "width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0", | ||
robots: "index,follow", | ||
icons: [ | ||
{rel: "icon", url: favicon }, | ||
{ rel: "apple-touch-icon", url: favicon } | ||
], | ||
openGraph: { | ||
type: "website", | ||
title, | ||
description, | ||
siteName: title, | ||
url: url, | ||
images: [{ | ||
url: favicon, | ||
}] | ||
}, | ||
twitter: { | ||
card: "summary_large_image", | ||
site: twitter, | ||
creator: twitter, | ||
images: favicon | ||
}, | ||
appleWebApp: { | ||
capable: true, | ||
title, | ||
statusBarStyle: "black-translucent" | ||
} | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<Providers> | ||
{children} | ||
</Providers> | ||
</body> | ||
</html> | ||
) | ||
} |
Empty file.
Oops, something went wrong.