diff --git a/Frontend/.eslintrc.json b/Frontend/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/Frontend/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/Frontend/.gitignore b/Frontend/.gitignore new file mode 100644 index 0000000..7222243 --- /dev/null +++ b/Frontend/.gitignore @@ -0,0 +1,5 @@ +node_modules +.next/ +.vscode/ +.env*.local +next-env.d.ts \ No newline at end of file diff --git a/Frontend/README.md b/Frontend/README.md new file mode 100644 index 0000000..986524d --- /dev/null +++ b/Frontend/README.md @@ -0,0 +1 @@ +# Frontend diff --git a/Frontend/bun.lockb b/Frontend/bun.lockb new file mode 100644 index 0000000..1505dec Binary files /dev/null and b/Frontend/bun.lockb differ diff --git a/Frontend/next.config.mjs b/Frontend/next.config.mjs new file mode 100644 index 0000000..4678774 --- /dev/null +++ b/Frontend/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/Frontend/package.json b/Frontend/package.json new file mode 100644 index 0000000..1cb7d23 --- /dev/null +++ b/Frontend/package.json @@ -0,0 +1,28 @@ +{ + "name": "restfulmc-frontend", + "version": "1.0.0", + "author": "Braydon (Rainnny) ", + "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" + } +} diff --git a/Frontend/postcss.config.mjs b/Frontend/postcss.config.mjs new file mode 100644 index 0000000..1a69fd2 --- /dev/null +++ b/Frontend/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/Frontend/src/app/(pages)/page.tsx b/Frontend/src/app/(pages)/page.tsx new file mode 100644 index 0000000..5bf9429 --- /dev/null +++ b/Frontend/src/app/(pages)/page.tsx @@ -0,0 +1,2 @@ +const HomePage = (): JSX.Element =>
Hello World
; +export default HomePage; diff --git a/Frontend/src/app/favicon.ico b/Frontend/src/app/favicon.ico new file mode 100644 index 0000000..f8b6029 Binary files /dev/null and b/Frontend/src/app/favicon.ico differ diff --git a/Frontend/src/app/globals.css b/Frontend/src/app/globals.css new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/Frontend/src/app/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/Frontend/src/app/layout.tsx b/Frontend/src/app/layout.tsx new file mode 100644 index 0000000..ce4ab81 --- /dev/null +++ b/Frontend/src/app/layout.tsx @@ -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 ( + + {children} + + ); +} diff --git a/Frontend/tailwind.config.ts b/Frontend/tailwind.config.ts new file mode 100644 index 0000000..2838159 --- /dev/null +++ b/Frontend/tailwind.config.ts @@ -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; diff --git a/Frontend/tsconfig.json b/Frontend/tsconfig.json new file mode 100644 index 0000000..31dc15d --- /dev/null +++ b/Frontend/tsconfig.json @@ -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"] +} diff --git a/JS-SDK/.gitignore b/JS-SDK/.gitignore index 76add87..29381b5 100644 --- a/JS-SDK/.gitignore +++ b/JS-SDK/.gitignore @@ -1,2 +1,3 @@ node_modules +.vscode/ dist \ No newline at end of file