Add Frontend
Some checks failed
Publish JS SDK / docker (push) Failing after 17s

This commit is contained in:
Braydon 2024-04-15 16:16:08 -04:00
parent 01a55e63b4
commit 12cf444578
14 changed files with 121 additions and 0 deletions

3
Frontend/.eslintrc.json Normal file

@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}

5
Frontend/.gitignore vendored Normal file

@ -0,0 +1,5 @@
node_modules
.next/
.vscode/
.env*.local
next-env.d.ts

1
Frontend/README.md Normal file

@ -0,0 +1 @@
# Frontend

BIN
Frontend/bun.lockb Normal file

Binary file not shown.

4
Frontend/next.config.mjs Normal file

@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default nextConfig;

28
Frontend/package.json Normal file

@ -0,0 +1,28 @@
{
"name": "restfulmc-frontend",
"version": "1.0.0",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
"homepage": "https://mc.rainnny.club",
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.2.1"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.1"
}
}

@ -0,0 +1,8 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
},
};
export default config;

@ -0,0 +1,2 @@
const HomePage = (): JSX.Element => <main>Hello World</main>;
export default HomePage;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@ -0,0 +1,23 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "RESTfulMC",
description:
"A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}

@ -0,0 +1,16 @@
import type { Config } from "tailwindcss";
const config: Config = {
content: ["./src/app/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
},
},
plugins: [],
};
export default config;

27
Frontend/tsconfig.json Normal file

@ -0,0 +1,27 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"],
"@/lib/*": ["./src/lib/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

1
JS-SDK/.gitignore vendored

@ -1,2 +1,3 @@
node_modules
.vscode/
dist