From c4c165edab9f7db2acc4e4486b020ebe329a5d9a Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sat, 21 Feb 2026 16:22:51 +0100 Subject: [PATCH] feat(nuxt): nuxt3 -> nuxt4 --- .prettierignore | 12 + Dockerfile | 5 +- app.vue => app/app.vue | 0 app/assets/css/main.css | 28 + .../components}/body/ApiModal.vue | 51 +- .../components}/body/AppBody.vue | 0 .../components}/body/QRCodeForm.vue | 133 +- .../components}/body/QRCodePreview.vue | 2 +- .../components}/header/AppHeader.vue | 4 +- .../components}/header/ThemeSwitcher.vue | 2 +- .../composables}/useBaseUrl.ts | 0 .../composables}/useCopyable.ts | 6 +- {stores => app/stores}/app.ts | 0 eslint.config.mjs | 2 - nuxt.config.ts | 3 +- package.json | 35 +- pnpm-lock.yaml | 15341 +++++++--------- pnpm-workspace.yaml | 5 + server/api/index.ts | 11 +- {utils => shared/utils}/formatting.ts | 5 +- {utils => shared/utils}/renderer.ts | 4 +- {utils => shared/utils}/settings.ts | 0 22 files changed, 6600 insertions(+), 9049 deletions(-) create mode 100644 .prettierignore rename app.vue => app/app.vue (100%) create mode 100644 app/assets/css/main.css rename {components => app/components}/body/ApiModal.vue (64%) rename {components => app/components}/body/AppBody.vue (100%) rename {components => app/components}/body/QRCodeForm.vue (58%) rename {components => app/components}/body/QRCodePreview.vue (98%) rename {components => app/components}/header/AppHeader.vue (92%) rename {components => app/components}/header/ThemeSwitcher.vue (95%) rename {composables => app/composables}/useBaseUrl.ts (100%) rename {composables => app/composables}/useCopyable.ts (83%) rename {stores => app/stores}/app.ts (100%) create mode 100644 pnpm-workspace.yaml rename {utils => shared/utils}/formatting.ts (53%) rename {utils => shared/utils}/renderer.ts (92%) rename {utils => shared/utils}/settings.ts (100%) diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..66afe59 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,12 @@ +.test +.nuxt +.output +.data +dist +node_modules +*.JPG +*.png +*.webp +*.gltf +*.blend +*.blend1 diff --git a/Dockerfile b/Dockerfile index eb197c5..85bf2cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,14 +9,15 @@ COPY . /app WORKDIR /app FROM base AS prod-deps -RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile +RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts FROM base AS build RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN pnpm run build -FROM base +FROM base +COPY --from=prod-deps /app/node_modules /app/node_modules COPY --from=build /app/.output /app/.output EXPOSE 3000 diff --git a/app.vue b/app/app.vue similarity index 100% rename from app.vue rename to app/app.vue diff --git a/app/assets/css/main.css b/app/assets/css/main.css new file mode 100644 index 0000000..69fc8c9 --- /dev/null +++ b/app/assets/css/main.css @@ -0,0 +1,28 @@ +@import "tailwindcss"; +@import "@nuxt/ui"; + +@theme { + --ui-color-primary-50: oklch(98.2% 0.018 155.826); + --ui-color-primary-100: oklch(96.2% 0.044 156.743); + --ui-color-primary-200: oklch(92.5% 0.084 155.995); + --ui-color-primary-300: oklch(87.1% 0.15 154.449); + --ui-color-primary-400: oklch(79.5% 0.22 151.711); + --ui-color-primary-500: oklch(72.5% 0.232 149.579); + --ui-color-primary-600: oklch(62.9% 0.204 149.214); + --ui-color-primary-700: oklch(52.8% 0.162 150.069); + --ui-color-primary-800: oklch(44.9% 0.125 151.328); + --ui-color-primary-900: oklch(39.4% 0.1 152.535); + --ui-color-primary-950: oklch(26.7% 0.068 152.934); + + --ui-color-neutral-50: oklch(98.5% 0 0); + --ui-color-neutral-100: oklch(96.7% 0.001 286.375); + --ui-color-neutral-200: oklch(92% 0.004 286.32); + --ui-color-neutral-300: oklch(87.1% 0.006 286.286); + --ui-color-neutral-400: oklch(70.5% 0.015 286.067); + --ui-color-neutral-500: oklch(55.2% 0.016 285.938); + --ui-color-neutral-600: oklch(44.2% 0.017 285.786); + --ui-color-neutral-700: oklch(37% 0.013 285.805); + --ui-color-neutral-800: oklch(27.4% 0.006 286.033); + --ui-color-neutral-900: oklch(21% 0.006 285.885); + --ui-color-neutral-950: oklch(14.1% 0.005 285.823); +} diff --git a/components/body/ApiModal.vue b/app/components/body/ApiModal.vue similarity index 64% rename from components/body/ApiModal.vue rename to app/components/body/ApiModal.vue index c2aea92..011c5ab 100644 --- a/components/body/ApiModal.vue +++ b/app/components/body/ApiModal.vue @@ -1,39 +1,13 @@ diff --git a/components/body/AppBody.vue b/app/components/body/AppBody.vue similarity index 100% rename from components/body/AppBody.vue rename to app/components/body/AppBody.vue diff --git a/components/body/QRCodeForm.vue b/app/components/body/QRCodeForm.vue similarity index 58% rename from components/body/QRCodeForm.vue rename to app/components/body/QRCodeForm.vue index f223d30..d38360a 100644 --- a/components/body/QRCodeForm.vue +++ b/app/components/body/QRCodeForm.vue @@ -1,37 +1,50 @@