Initial Commit

This commit is contained in:
2025-03-19 15:04:45 +01:00
commit cac389ccb3
13 changed files with 8419 additions and 0 deletions

24
.gitignore vendored Normal file
View 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
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.

13
app.vue Normal file
View File

@@ -0,0 +1,13 @@
<template>
<div>
<NuxtRouteAnnouncer/>
<h1 class="text-3xl font-bold underline">
Hello world!
</h1>
<Button label="Verify"/>
</div>
</template>
<script setup lang="ts">
</script>

1
assets/css/main.css Normal file
View File

@@ -0,0 +1 @@
@import "tailwindcss";

6
eslint.config.mjs Normal file
View File

@@ -0,0 +1,6 @@
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
// Your custom configs here
)

42
nuxt.config.ts Normal file
View File

@@ -0,0 +1,42 @@
import tailwindcss from "@tailwindcss/vite";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: ['@nuxt/eslint', '@primevue/nuxt-module', '@vee-validate/nuxt'],
css: ['~/assets/css/main.css'],
primevue: {
importTheme: { from: '@/themes/mytheme.js' },
options: {
ripple: true,
}
},
veeValidate: {
autoImports: true,
// Use different names for components
componentNames: {
Form: 'VeeForm',
Field: 'VeeField',
FieldArray: 'VeeFieldArray',
ErrorMessage: 'VeeErrorMessage',
},
},
vite: {
plugins: [
tailwindcss(),
],
server: {
// On Prod this is done by NGINX using `proxy_cookie_domain` and `proxy_cookie_path`
proxy: {
'/api': {
target: 'https://api.barracuda.rossinienergy.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
cookieDomainRewrite: "",
cookiePathRewrite: "/",
},
}
}
},
});

32
package.json Normal file
View File

@@ -0,0 +1,32 @@
{
"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/eslint": "1.2.0",
"@primeuix/themes": "^1.0.0",
"@primevue/forms": "^4.3.2",
"@tailwindcss/vite": "^4.0.14",
"@vee-validate/nuxt": "^4.15.0",
"@vee-validate/zod": "^4.15.0",
"eslint": "^9.0.0",
"nuxt": "^3.16.0",
"primevue": "^4.3.2",
"tailwindcss": "^4.0.14",
"vee-validate": "^4.15.0",
"vue": "^3.5.13",
"vue-router": "^4.5.0",
"zod": "^3.24.2"
},
"packageManager": "pnpm@10.6.1+sha512.40ee09af407fa9fbb5fbfb8e1cb40fbb74c0af0c3e10e9224d7b53c7658528615b2c92450e74cfad91e3a2dcafe3ce4050d80bda71d757756d2ce2b66213e9a3",
"devDependencies": {
"@primevue/nuxt-module": "^4.3.2"
}
}

8164
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

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"
}

54
themes/mytheme.js Normal file
View File

@@ -0,0 +1,54 @@
import { definePreset } from '@primeuix/themes';
import Aura from "@primeuix/themes/aura";
const MyPreset = definePreset(Aura, {
semantic: {
primary: {
50: '{zinc.50}',
100: '{zinc.100}',
200: '{zinc.200}',
300: '{zinc.300}',
400: '{zinc.400}',
500: '{zinc.500}',
600: '{zinc.600}',
700: '{zinc.700}',
800: '{zinc.800}',
900: '{zinc.900}',
950: '{zinc.950}'
},
colorScheme: {
light: {
primary: {
color: '{zinc.950}',
inverseColor: '#ffffff',
hoverColor: '{zinc.900}',
activeColor: '{zinc.800}'
},
highlight: {
background: '{zinc.950}',
focusBackground: '{zinc.700}',
color: '#ffffff',
focusColor: '#ffffff'
}
},
dark: {
primary: {
color: '{zinc.50}',
inverseColor: '{zinc.950}',
hoverColor: '{zinc.100}',
activeColor: '{zinc.200}'
},
highlight: {
background: 'rgba(250, 250, 250, .16)',
focusBackground: 'rgba(250, 250, 250, .24)',
color: 'rgba(255,255,255,.87)',
focusColor: 'rgba(255,255,255,.87)'
}
}
}
}
});
export default {
preset: MyPreset,
};

4
tsconfig.json Normal file
View File

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