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(framework): add nuxt framework client #10684

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
528bd6d
feat(framework): add nuxt framework client
peterbud Jun 23, 2024
6459f68
chore: Update dependencies
peterbud Jun 23, 2024
887d1c5
fix: clean build of @auth/nuxt
peterbud Jun 23, 2024
29ee8dc
chore: Update dependencies for nuxt sample app
peterbud Jun 23, 2024
d835406
Reduce boilerplate following the review
peterbud Jun 23, 2024
96f1fb7
Simplify server export for getServerSession
peterbud Jun 26, 2024
71170bb
Use global auth middleware instead of the middleware of the module in…
peterbud Jun 27, 2024
36a48ab
Refactor auth status to AuthState
peterbud Jun 27, 2024
e9a617b
Fix empty test run
peterbud Jun 29, 2024
35c8e47
chore: Update dependencies
peterbud Sep 29, 2024
f4e0397
Use default AuthState valuea and refactor image source
peterbud Sep 29, 2024
3afd8a2
Fixes based on feedback
peterbud Oct 28, 2024
b5e990e
Refactor authentication handling to use a single NuxtAuth also on the…
peterbud Oct 31, 2024
f7d291a
docs: enable typedoc
ThangHuuVu Nov 2, 2024
f7debd1
Make typedoc working
peterbud Nov 2, 2024
b76fa33
refactor: rename authJs to auth for consistency
peterbud Nov 2, 2024
d4c4fb2
Updating docs to current state
peterbud Nov 2, 2024
9240114
Add Nuxt module export to package.json for monorepo
peterbud Nov 2, 2024
cdb53d4
fix: Add postinstall script
peterbud Nov 2, 2024
0ac3c59
fix: cleanup nuxt dev app
ndom91 Nov 3, 2024
68e67f8
feat: add root dev:nuxt script
ndom91 Nov 3, 2024
555d750
fix: disable telemetry on nuxt build cmd
ndom91 Nov 3, 2024
9d84ea5
chore: prettier
ndom91 Nov 3, 2024
50f31e5
chore: more nuxt auth env var cleanup
ndom91 Nov 3, 2024
204445e
fix: pnpm-lock
ndom91 Nov 3, 2024
4ac03e8
chore: nuxt jsdoc env var cleanup
ndom91 Nov 3, 2024
690c893
fix: add nuxt subdomain redirect to api docs
ndom91 Nov 3, 2024
4f45e68
fix: revert NUXT_ removal env vars
ndom91 Nov 3, 2024
739acc9
fix: nuxt env var _CLIENT
ndom91 Nov 3, 2024
3fcecda
Merge branch 'main' into framework-nuxt
peterbud Nov 5, 2024
8bd2b1c
Fix lockfile after merge
peterbud Nov 5, 2024
227440a
formatting
ThangHuuVu Nov 6, 2024
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
1 change: 1 addition & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ typeorm: ["packages/adapter-typeorm/**/*"]
unstorage: ["packages/adapter-unstorage/**/*"]
upstash-redis: ["packages/adapter-upstash-redis/**/*"]
xata: ["packages/adapter-xata/**/*"]
nuxt: ["packages/frameworks-nuxt/**/*"]
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pnpm-lock.yaml
.svelte-kit
.next
.nuxt
.output

# --------------- Docs ---------------

Expand Down
10 changes: 10 additions & 0 deletions apps/dev/nuxt/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NUXT_AUTH_GITHUB_CLIENT_ID=
NUXT_AUTH_GITHUB_CLIENT_SECRET=

# https://discord.com/developers/
NUXT_AUTH_DISCORD_CLIENT_ID=
NUXT_AUTH_DISCORD_CLIENT_SECRET=

# On UNIX systems you can use `openssl rand -hex 32` or
# https://generate-secret.vercel.app/32 to generate a secret.
NUXT_AUTH_SECRET=
25 changes: 25 additions & 0 deletions apps/dev/nuxt/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
root: true,
parser: "vue-eslint-parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"prettier",
],
plugins: ["eslint-plugin-vue", "@typescript-eslint"],
ignorePatterns: ["*.cjs", "client.*", "index.*"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
extraFileExtensions: [".vue"],
parser: "@typescript-eslint/parser",
sourceType: "module",
},
env: {
browser: true,
es2020: true,
node: true,
},
}
peterbud marked this conversation as resolved.
Show resolved Hide resolved
24 changes: 24 additions & 0 deletions apps/dev/nuxt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
75 changes: 75 additions & 0 deletions apps/dev/nuxt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
5 changes: 5 additions & 0 deletions apps/dev/nuxt/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
Loading
Loading