Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Switch architecture into full Nuxt layers #445

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .data/content/contents.sqlite
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
91 changes: 0 additions & 91 deletions base/nuxt.config.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions layers/app/assets/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "tailwindcss";
@import "@nuxt/ui";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions layers/app/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import vue from '@vitejs/plugin-vue'

export default defineNuxtConfig({
nitro: {
rollupConfig: {
// @ts-expect-error - this is not typed
plugins: [vue()]
}
},

$development: {
routeRules: {
'/api/**': { cors: true },
},
},

$production: {
routeRules: {
'/api/**': { cors: true }
},
},

modules: [
'@vueuse/nuxt',
'nuxt-auth-utils',
],

compatibilityDate: '2025-01-24',
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions layers/base/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

export default defineNuxtConfig({
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},

modules: [
'@nuxt/image',
'@nuxt/ui',
'nuxt-build-cache'
],

colorMode: {
preference: 'dark',
fallback: 'dark'
},

$development: {
runtimeConfig: {
public: {
apiUrl: 'http://localhost:3001',
}
}
},

$production: {
runtimeConfig: {
public: {
apiUrl: 'https://app.shelve.cloud',
}
}
},
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions lp/nuxt.config.ts → layers/lp/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ export default defineNuxtConfig({
'/vault': { isr: true, prerender: true }
},

future: {
compatibilityVersion: 4,
},

modules: [
'@nuxt/ui-pro',
'@nuxtjs/seo',
Expand All @@ -16,15 +12,6 @@ export default defineNuxtConfig({
'@nuxt/scripts'
],

runtimeConfig: {
private: {
encryptionKey: '',
vault: {
url: ''
},
},
},

content: {
preview: {
api: 'https://api.nuxt.studio'
Expand All @@ -49,10 +36,6 @@ export default defineNuxtConfig({
},
},

experimental: {
viewTransition: true,
},

image: {
provider: 'ipx'
},
Expand All @@ -62,8 +45,4 @@ export default defineNuxtConfig({
defaultLocale: 'en',
indexable: true,
},

css: ['~/assets/css/index.css'],

extends: '../base',
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Storage, StorageValue } from 'unstorage'
import type { H3Event } from 'h3'
import type { DecryptResponse, EncryptRequest, StoredData, TTLFormat } from '../../../packages/types'
import type { DecryptResponse, EncryptRequest, StoredData, TTLFormat } from '../../../../packages/types'

export class VaultService {

Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions lp/.env.example

This file was deleted.

24 changes: 0 additions & 24 deletions lp/.gitignore

This file was deleted.

52 changes: 0 additions & 52 deletions lp/app/error.vue

This file was deleted.

3 changes: 0 additions & 3 deletions lp/eslint.config.js

This file was deleted.

Binary file removed lp/public/android-chrome-192x192.png
Binary file not shown.
Binary file removed lp/public/android-chrome-512x512.png
Binary file not shown.
Binary file removed lp/public/apple-touch-icon.png
Binary file not shown.
Binary file removed lp/public/favicon-16x16.png
Binary file not shown.
Binary file removed lp/public/favicon-32x32.png
Binary file not shown.
Binary file removed lp/public/favicon.ico
Binary file not shown.
Binary file removed lp/public/og.png
Binary file not shown.
1 change: 0 additions & 1 deletion lp/public/shelve.svg

This file was deleted.

1 change: 0 additions & 1 deletion lp/public/site.webmanifest

This file was deleted.

5 changes: 0 additions & 5 deletions lp/shelve.json

This file was deleted.

4 changes: 0 additions & 4 deletions lp/tsconfig.json

This file was deleted.

Loading
Loading