mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-11 13:19:49 +02:00
nuxt rewrite missing files
This commit is contained in:
24
website/.gitignore
vendored
Normal file
24
website/.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Nuxt dev/build outputs
|
||||
.output
|
||||
.data
|
||||
.nuxt
|
||||
.nitro
|
||||
.cache
|
||||
dist
|
||||
|
||||
# Node dependencies
|
||||
node_modules
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Misc
|
||||
.DS_Store
|
||||
.fleet
|
||||
.idea
|
||||
|
||||
# Local env files
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
75
website/README.md
Normal file
75
website/README.md
Normal 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.
|
31
website/app/app.vue
Normal file
31
website/app/app.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<UApp>
|
||||
<UHeader>
|
||||
<template #title>
|
||||
<div class="h-full flex gap-2 items-center">
|
||||
<img src="/blahaj.png" class="h-lh cursor-grab" />
|
||||
<p
|
||||
style="
|
||||
background: linear-gradient(110deg, var(--color-pink), var(--color-blue));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
"
|
||||
class="font-bold cursor-default text-3xl">
|
||||
Tranga
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
<template #right>
|
||||
<UButton icon="i-lucide-plus" to="/search">Add</UButton>
|
||||
<UColorModeButton />
|
||||
<UButton icon="i-lucide-settings" variant="ghost" to="/settings" />
|
||||
</template>
|
||||
</UHeader>
|
||||
<UMain>
|
||||
<UPage>
|
||||
<NuxtPage />
|
||||
</UPage>
|
||||
</UMain>
|
||||
</UApp>
|
||||
</template>
|
||||
<script setup lang="ts"></script>
|
5
website/eslint.config.mjs
Normal file
5
website/eslint.config.mjs
Normal file
@@ -0,0 +1,5 @@
|
||||
// @ts-check
|
||||
import withNuxt from './.nuxt/eslint.config.mjs';
|
||||
|
||||
export default withNuxt();
|
||||
// Your custom configs here
|
16
website/nuxt.config.ts
Normal file
16
website/nuxt.config.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: true },
|
||||
vite: { plugins: [tailwindcss()] },
|
||||
css: ['~/assets/css/main.css'],
|
||||
modules: ['@nuxt/content', '@nuxt/eslint', '@nuxt/image', '@nuxt/ui', 'nuxt-open-fetch'],
|
||||
devServer: { host: '127.0.0.1' },
|
||||
openFetch: {
|
||||
openAPITS: { exportType: false, enum: true, alphabetize: true },
|
||||
clients: {
|
||||
api: { schema: 'http://127.0.0.1:6531/swagger/v2/swagger.json', baseURL: 'http://127.0.0.1:6531/' },
|
||||
},
|
||||
},
|
||||
});
|
17400
website/package-lock.json
generated
Normal file
17400
website/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
33
website/package.json
Normal file
33
website/package.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "nuxt-app",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
"prettier": "prettier . --write",
|
||||
"lint": "eslint . --fix",
|
||||
"clean": "eslint . --fix && prettier . --write"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nuxt/content": "^3.7.1",
|
||||
"@nuxt/eslint": "^1.9.0",
|
||||
"@nuxt/image": "^1.11.0",
|
||||
"@nuxt/ui": "^4.0.0",
|
||||
"@tailwindcss/vite": "^4.1.13",
|
||||
"better-sqlite3": "^12.4.1",
|
||||
"nuxt": "^4.1.2",
|
||||
"tailwindcss": "^4.1.13",
|
||||
"vue": "^3.5.21",
|
||||
"vue-router": "^4.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^9.36.0",
|
||||
"nuxt-open-fetch": "^0.13.5",
|
||||
"prettier": "3.6.2",
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
}
|
2
website/public/robots.txt
Normal file
2
website/public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-Agent: *
|
||||
Disallow:
|
12
website/tsconfig.json
Normal file
12
website/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
// https://nuxt.com/docs/guide/concepts/typescript
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./.nuxt/tsconfig.app.json" },
|
||||
{ "path": "./.nuxt/tsconfig.server.json" },
|
||||
{ "path": "./.nuxt/tsconfig.shared.json" },
|
||||
{ "path": "./.nuxt/tsconfig.node.json" }
|
||||
],
|
||||
"compileOnSave": true,
|
||||
"compilerOptions": { "noUncheckedIndexedAccess": true, "module": "NodeNext", "moduleResolution": "NodeNext" }
|
||||
}
|
Reference in New Issue
Block a user