-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
135 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<template> | ||
<slot /> | ||
<!-- eslint-disable vue/no-multiple-template-root --> | ||
<template> | ||
<slot /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
export const useCount = defineStore({ | ||
id: "count", | ||
state: () => ({ count: 0 }), | ||
actions: { | ||
increment() { | ||
this.count++; | ||
}, | ||
decrement() { | ||
this.count--; | ||
}, | ||
}, | ||
persist: true, | ||
id: "count", | ||
state: () => ({ count: 0 }), | ||
actions: { | ||
increment() { | ||
this.count++; | ||
}, | ||
decrement() { | ||
this.count--; | ||
}, | ||
}, | ||
persist: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
services: | ||
|
||
nuxt-app: | ||
container_name: nuxt_app | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- '3000:3000' | ||
|
||
postgres: | ||
container_name: postgres_nuxt | ||
image: postgres | ||
environment: | ||
POSTGRES_DB: postgres | ||
POSTGRES_USER: root | ||
POSTGRES_PASSWORD: password | ||
PGDATA: /data/postgres | ||
ports: | ||
- '5432:5432' | ||
services: | ||
nuxt-app: | ||
container_name: nuxt_app | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "3000:3000" | ||
|
||
postgres: | ||
container_name: postgres_nuxt | ||
image: postgres | ||
environment: | ||
POSTGRES_DB: postgres | ||
POSTGRES_USER: root | ||
POSTGRES_PASSWORD: password | ||
PGDATA: /data/postgres | ||
ports: | ||
- "5432:5432" | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { defineConfig } from 'drizzle-kit' | ||
import { dbUrl } from './env' | ||
import { defineConfig } from "drizzle-kit"; | ||
import { dbUrl } from "./env"; | ||
|
||
export default defineConfig({ | ||
schema: 'server/database/schema.ts', | ||
out: '.drizzle', | ||
dialect: 'sqlite', | ||
schema: "server/database/schema.ts", | ||
out: ".drizzle", | ||
dialect: "sqlite", | ||
dbCredentials: { | ||
url: dbUrl, | ||
}, | ||
strict: true, | ||
verbose: true, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
if (!process.env.DB_URL) { | ||
throw new Error('DB_URL is not set in .env file'); | ||
throw new Error("DB_URL is not set in .env file"); | ||
} | ||
|
||
export const dbUrl = process.env.DB_URL | ||
export const dbUrl = process.env.DB_URL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import withNuxt from './.nuxt/eslint.config.mjs' | ||
import withNuxt from "./.nuxt/eslint.config.mjs"; | ||
|
||
export default withNuxt({ | ||
'vue/multi-word-component-names': 'off', | ||
}) | ||
rules: { | ||
"vue/multi-word-component-names": "off", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
compatibilityDate: '2024-10-24', | ||
compatibilityDate: "2024-10-24", | ||
modules: [ | ||
'@vueuse/nuxt', | ||
'@nuxt/icon', | ||
'@unocss/nuxt', | ||
'@nuxt/eslint', | ||
'@pinia/nuxt', | ||
'@pinia-plugin-persistedstate/nuxt', | ||
"@vueuse/nuxt", | ||
"@nuxt/icon", | ||
"@unocss/nuxt", | ||
"@nuxt/eslint", | ||
"@pinia/nuxt", | ||
"@pinia-plugin-persistedstate/nuxt", | ||
], | ||
ssr: false, | ||
devtools: { enabled: true }, | ||
css: ['./app/app.css'], | ||
srcDir: 'app', | ||
serverDir: 'server', | ||
css: ["./app/app.css"], | ||
srcDir: "app", | ||
serverDir: "server", | ||
unocss: { | ||
nuxtLayers: true, | ||
}, | ||
imports: { | ||
dirs: ["./store"], | ||
}, | ||
}) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default defineEventHandler((event) => { | ||
return { status: "ok" }; | ||
return { status: "ok" }; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.