chore: align srcDir=app structure (assets, composables, stores, plugins, pages) and prepare for correct alias resolution
This commit is contained in:
parent
bc2babbe90
commit
9a04893909
8 changed files with 10 additions and 10 deletions
|
|
@ -1,2 +1,4 @@
|
||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@import "@nuxt/ui";
|
@import "@nuxt/ui";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ export default defineNuxtConfig({
|
||||||
strict: true,
|
strict: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Global CSS
|
// Global CSS (use app/ path due to Nuxt 4 app/ srcDir handling)
|
||||||
css: ["~/assets/css/main.css"],
|
css: ["/app/assets/css/main.css"],
|
||||||
|
|
||||||
// PostCSS configured separately
|
// PostCSS configured separately
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
import { defineEventHandler } from 'h3'
|
import { defineEventHandler } from "h3";
|
||||||
import { useFixtureIO } from '#imports'
|
import { useFixtureIO } from "~/composables/useFixtureIO";
|
||||||
|
|
||||||
export default defineEventHandler(() => {
|
export default defineEventHandler(() => {
|
||||||
// Export snapshot of in-memory state
|
// Export snapshot of in-memory state
|
||||||
const { exportAll } = useFixtureIO()
|
const { exportAll } = useFixtureIO();
|
||||||
return exportAll()
|
return exportAll();
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineEventHandler, readBody } from "h3";
|
import { defineEventHandler, readBody } from "h3";
|
||||||
import { useFixtureIO, type AppSnapshot } from "#imports";
|
import { useFixtureIO, type AppSnapshot } from "~/composables/useFixtureIO";
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
export default defineEventHandler(async (event) => {
|
||||||
const body = (await readBody(event)) as AppSnapshot;
|
const body = (await readBody(event)) as AppSnapshot;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue