initial commit

This commit is contained in:
WeeXnes 2025-03-01 12:00:12 +01:00
parent 4ae0582464
commit 26108eab5e
8 changed files with 160 additions and 0 deletions

75
README.md Normal file
View file

@ -0,0 +1,75 @@
# Nuxt Minimal Starter
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
Make sure to install dependencies:
```bash
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
```
## Development Server
Start the development server on `http://localhost:3000`:
```bash
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
```
## Production
Build the application for production:
```bash
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
```
Locally preview production build:
```bash
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

49
app.vue Normal file
View file

@ -0,0 +1,49 @@
<template>
<div class="min-h-screen flex flex-col">
<!-- Navbar -->
<nav class="navbar bg-base-100 shadow-lg px-4">
<div class="flex-1">
<NuxtLink to="/" class="btn btn-ghost text-xl">Server Panel</NuxtLink>
</div>
<div class="hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li><NuxtLink to="/">Dashboard</NuxtLink></li>
<li><NuxtLink to="/settings">Settings</NuxtLink></li>
</ul>
</div>
<div class="lg:hidden">
<button @click="toggleMenu" class="btn btn-square btn-ghost">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="inline-block w-6 h-6 stroke-current">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"/>
</svg>
</button>
</div>
<!-- Mobile Menu -->
<div v-if="menuOpen" class="absolute top-16 left-0 w-full bg-base-100 shadow-lg lg:hidden z-50">
<ul class="menu menu-vertical p-4">
<li><NuxtLink to="/" @click="toggleMenu">Dashboard</NuxtLink></li>
<li><NuxtLink to="/settings" @click="toggleMenu">Settings</NuxtLink></li>
</ul>
</div>
</nav>
<!-- Main Content -->
<main class="flex-1 p-4">
<NuxtPage />
</main>
<!-- Footer -->
<footer class="footer p-4 bg-neutral text-neutral-content text-center">
<a href="https://github.com/WeeXnes"> Minecraft Server Panel by WeeXnes</a>
</footer>
</div>
</template>
<script setup>
import { ref } from 'vue'
const menuOpen = ref(false)
const toggleMenu = () => {
menuOpen.value = !menuOpen.value
}
</script>

6
nuxt.config.ts Normal file
View file

@ -0,0 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss', '@nuxt/icon']
})

22
package.json Normal file
View file

@ -0,0 +1,22 @@
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/icon": "^1.10.3",
"@nuxtjs/tailwindcss": "^6.13.1",
"axios": "^1.7.9",
"daisyui": "^4.12.23",
"nuxt": "^3.15.4",
"vue": "latest",
"vue-router": "latest",
"execa": "^9.5.2"
}
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

1
public/robots.txt Normal file
View file

@ -0,0 +1 @@

3
server/tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

4
tsconfig.json Normal file
View file

@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}