From 0ad0827fdcb0051b99edef48a3f5919d932215d3 Mon Sep 17 00:00:00 2001 From: Younes Barrad Date: Tue, 4 Jun 2024 12:53:20 +0100 Subject: [PATCH 1/6] chore: updating ssr --- .github/workflows/ci.yml | 4 +- client/app.config.ts | 6 - client/app.vue | 28 - client/components/CodeContainer.vue | 211 - client/components/CommandPalette.vue | 69 - client/components/EmailPreview.vue | 153 - client/components/EmptyState.vue | 83 - client/components/HeaderButtons.vue | 28 - client/components/Navigation.vue | 53 - client/components/SearchButton.vue | 52 - client/components/SendEmail.vue | 52 - client/components/Settings.vue | 59 - client/components/TopNav.vue | 24 - client/composables/shiki.ts | 22 - client/composables/useEmail.ts | 122 - client/composables/useTool.ts | 83 - client/composables/useWindow.ts | 21 - client/emails/Components/markdown-email.vue | 86 - client/emails/code-components.vue | 39 - client/emails/github-access-token.vue | 140 - client/emails/koala-welcome.vue | 83 - client/emails/stripe-welcome.vue | 117 - client/emails/twitch-reset-password.vue | 146 - client/emails/vercel-invite-user.vue | 82 - client/layouts/default.vue | 34 - client/nuxt.config.ts | 39 - client/package.json | 36 - client/pages/email/[file].vue | 55 - client/pages/index.vue | 9 - client/plugins/components.client.ts | 8 - client/public/icon.svg | 27 - client/server/api/emails.get.ts | 192 - client/server/api/render/[file].post.ts | 57 - client/server/tsconfig.json | 3 - client/tailwind.config.ts | 12 - client/tsconfig.json | 3 - client/types/email.ts | 35 - client/types/settings.ts | 16 - client/util/copy-text-to-clipboard.ts | 8 - package.json | 48 +- .../components/Email.vue | 28 +- playground/nuxt-layer/.editorconfig | 12 - playground/nuxt-layer/.eslintrc.cjs | 4 - playground/nuxt-layer/.gitignore | 21 - playground/nuxt-layer/.npmrc | 1 - playground/nuxt-layer/.nuxtrc | 1 - .../nuxt-layer/.playground/app.config.ts | 5 - .../nuxt-layer/.playground/nuxt.config.ts | 3 - playground/nuxt-layer/README.md | 73 - playground/nuxt-layer/app.config.ts | 14 - playground/nuxt-layer/app.vue | 3 - .../nuxt-layer/components/HelloWorld.vue | 10 - playground/nuxt-layer/emails/TestEmail.vue | 142 - playground/nuxt-layer/nuxt.config.ts | 4 - playground/nuxt-layer/package.json | 20 - playground/nuxt-layer/tsconfig.json | 3 - playground/nuxt.config.ts | 32 +- playground/package.json | 4 +- playground/server/api/test.get.ts | 14 +- playground/utils/index.ts | 9 + pnpm-lock.yaml | 16277 ++++++++-------- pnpm-workspace.yaml | 2 - src/module.ts | 140 +- src/runtime/server/api/emails.get.ts | 193 - src/runtime/server/api/render/[file].post.ts | 57 - src/runtime/server/nitro/index.ts | 1 - src/runtime/server/nitro/useCompiler.ts | 53 - src/runtime/types/email.ts | 35 - src/runtime/types/settings.ts | 16 - tsconfig.json | 10 +- 70 files changed, 8565 insertions(+), 10967 deletions(-) delete mode 100644 client/app.config.ts delete mode 100644 client/app.vue delete mode 100644 client/components/CodeContainer.vue delete mode 100644 client/components/CommandPalette.vue delete mode 100644 client/components/EmailPreview.vue delete mode 100644 client/components/EmptyState.vue delete mode 100644 client/components/HeaderButtons.vue delete mode 100644 client/components/Navigation.vue delete mode 100644 client/components/SearchButton.vue delete mode 100644 client/components/SendEmail.vue delete mode 100644 client/components/Settings.vue delete mode 100644 client/components/TopNav.vue delete mode 100644 client/composables/shiki.ts delete mode 100644 client/composables/useEmail.ts delete mode 100644 client/composables/useTool.ts delete mode 100644 client/composables/useWindow.ts delete mode 100644 client/emails/Components/markdown-email.vue delete mode 100644 client/emails/code-components.vue delete mode 100644 client/emails/github-access-token.vue delete mode 100644 client/emails/koala-welcome.vue delete mode 100644 client/emails/stripe-welcome.vue delete mode 100644 client/emails/twitch-reset-password.vue delete mode 100644 client/emails/vercel-invite-user.vue delete mode 100644 client/layouts/default.vue delete mode 100644 client/nuxt.config.ts delete mode 100644 client/package.json delete mode 100644 client/pages/email/[file].vue delete mode 100644 client/pages/index.vue delete mode 100644 client/plugins/components.client.ts delete mode 100644 client/public/icon.svg delete mode 100644 client/server/api/emails.get.ts delete mode 100644 client/server/api/render/[file].post.ts delete mode 100644 client/server/tsconfig.json delete mode 100644 client/tailwind.config.ts delete mode 100644 client/tsconfig.json delete mode 100644 client/types/email.ts delete mode 100644 client/types/settings.ts delete mode 100644 client/util/copy-text-to-clipboard.ts rename client/emails/yelp-recent-login.vue => playground/components/Email.vue (83%) delete mode 100644 playground/nuxt-layer/.editorconfig delete mode 100644 playground/nuxt-layer/.eslintrc.cjs delete mode 100644 playground/nuxt-layer/.gitignore delete mode 100644 playground/nuxt-layer/.npmrc delete mode 100644 playground/nuxt-layer/.nuxtrc delete mode 100644 playground/nuxt-layer/.playground/app.config.ts delete mode 100644 playground/nuxt-layer/.playground/nuxt.config.ts delete mode 100644 playground/nuxt-layer/README.md delete mode 100644 playground/nuxt-layer/app.config.ts delete mode 100644 playground/nuxt-layer/app.vue delete mode 100644 playground/nuxt-layer/components/HelloWorld.vue delete mode 100644 playground/nuxt-layer/emails/TestEmail.vue delete mode 100644 playground/nuxt-layer/nuxt.config.ts delete mode 100644 playground/nuxt-layer/package.json delete mode 100644 playground/nuxt-layer/tsconfig.json create mode 100644 playground/utils/index.ts delete mode 100644 src/runtime/server/api/emails.get.ts delete mode 100644 src/runtime/server/api/render/[file].post.ts delete mode 100644 src/runtime/server/nitro/index.ts delete mode 100644 src/runtime/server/nitro/useCompiler.ts delete mode 100644 src/runtime/types/email.ts delete mode 100644 src/runtime/types/settings.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea07a6b..0ba4e21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,8 @@ jobs: - 'package.json' - 'pnpm-lock.yaml' - - name: Lint - run: nr lint + # - name: Lint + # run: nr lint - name: Build run: nr build diff --git a/client/app.config.ts b/client/app.config.ts deleted file mode 100644 index c04244f..0000000 --- a/client/app.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default defineAppConfig({ - ui: { - primary: 'emerald', - gray: 'neutral', - }, -}) diff --git a/client/app.vue b/client/app.vue deleted file mode 100644 index 560b75b..0000000 --- a/client/app.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/client/components/CodeContainer.vue b/client/components/CodeContainer.vue deleted file mode 100644 index 97e5d26..0000000 --- a/client/components/CodeContainer.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - - diff --git a/client/components/CommandPalette.vue b/client/components/CommandPalette.vue deleted file mode 100644 index 817ea83..0000000 --- a/client/components/CommandPalette.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/client/components/EmailPreview.vue b/client/components/EmailPreview.vue deleted file mode 100644 index e2431f6..0000000 --- a/client/components/EmailPreview.vue +++ /dev/null @@ -1,153 +0,0 @@ - - -