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 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
78854d0
feat(nuxt): Set up scaffolding
peterbud Apr 12, 2024
d0e7156
feat(nuxt): Add module skeleton
peterbud Apr 13, 2024
ef6d028
feat(nuxt): Add example app pages
peterbud Apr 13, 2024
4748aa7
feat(nuxt): Add env.example
peterbud Apr 13, 2024
34bf2f8
fix(nuxt): Remove components from app
peterbud Apr 13, 2024
e06d0d9
feat(nuxt): Add handling of module defaults
peterbud Apr 13, 2024
38f6c65
doc(nuxt): Add doc for NuxtAuthHandler
peterbud Apr 13, 2024
ebea2ef
feat(nuxt): Add docs and pr-labeler for the new framework
peterbud Apr 14, 2024
9fa19f8
feat(nuxt): Add client and composable skeletons
peterbud Apr 14, 2024
a7a98c4
feat(nuxt): Add signIn, signOut and sesssion handling
peterbud Apr 14, 2024
88e28bb
feat(nuxt): Use signIn and signOut in example app
peterbud Apr 14, 2024
f453fe8
docs(nuxt): Acknowledgements added
peterbud Apr 14, 2024
bf5a696
feat(nuxt): Add providers reexports to the package
peterbud Apr 15, 2024
74e55c0
feat(nuxt): Move re-exports and module options to module.ts
peterbud Apr 15, 2024
6979049
fix(nuxt): Use ddefault nuxt module tsconfig
peterbud Apr 16, 2024
e64dfde
fix(nuxt): Make credential signIn work
peterbud Apr 16, 2024
f2c4b74
feat(nuxt): Add back simple CSRF handling
peterbud Apr 17, 2024
5e54211
feat(nuxt): Add status and user to useAuth composable
peterbud Apr 17, 2024
12692d4
feat(nuxt): Add discord auth to sample app
peterbud Apr 17, 2024
0ff3a28
refactor(nuxt): Move types to client file
peterbud Apr 17, 2024
8550235
refactor(nuxt0: Remove unused dev scripts in package.json
peterbud Apr 18, 2024
e663081
refactor(nuxt): Simplify runtime files and configuration
peterbud Apr 18, 2024
2ec8fe0
feat(nuxt): Handle basePath
peterbud Apr 19, 2024
02cea0e
refactor(nuxt): Use plugin object syntax
peterbud Apr 20, 2024
7a88b16
feat(nuxt): Add middleware
peterbud Apr 20, 2024
40a38e1
feat(nuxt): Add getServerSession
peterbud Apr 20, 2024
9522237
refactor(nuxt): Used two basic middlewares
peterbud Apr 21, 2024
5cc2c52
docs(nuxt): Add basic module description
peterbud Apr 21, 2024
1776078
docs(nuxt): COrrect JSdoc
peterbud Apr 21, 2024
d801b3e
refactor(nuxt): Update session properly in hybrid and client-only ren…
peterbud Apr 22, 2024
b78106f
refactor(nuxt): Separate module config from AuthConfig
peterbud Apr 22, 2024
0c445cf
chore: Update pnpm lock
peterbud Apr 22, 2024
26ded21
build(nuxt): move eslint vue dependnecies to the framewrok package
peterbud Apr 22, 2024
b08f7c5
feat(nuxt): Utilize setEnvDefaults
peterbud Apr 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/pr-labeler.yml
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/**/*"]
10 changes: 10 additions & 0 deletions apps/dev/nuxt/.env.example
@@ -0,0 +1,10 @@
NUXT_GITHUB_CLIENT_ID=
NUXT_GITHUB_CLIENT_SECRET=

# https://discord.com/developers/
NUXT_DISCORD_CLIENT_ID=
NUXT_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_JS_SECRET=
25 changes: 25 additions & 0 deletions apps/dev/nuxt/.eslintrc.cjs
@@ -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,
},
}
24 changes: 24 additions & 0 deletions apps/dev/nuxt/.gitignore
@@ -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
@@ -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
@@ -0,0 +1,5 @@
<template>
<div>
<NuxtPage />
</div>
</template>