pineal common login/chat module for nuxt
npm install nuxt-pineal-basic[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
My new Nuxt module for doing amazing things.
- ⛰ Foo
- 🚠 Bar
- 🌲 Baz
项目需设置环境变量
``.env`
COGNITO_DOMAIN
COGNITO_CLIENT_ID
COGNITO_USER_POOL_ID
COGNITO_REGION
S3_BUCKET_NAME
S3_REGION
AWS_SECRET_ID
AWS_SECRET_REGION
项目依赖tailwindcss
登录组件需传入cognito clientId 和 cognito-domain域名
注册组件需传入cognito clientId 和 cognito-domain域名和锁定词(可选)
接口地址为
``
/api/auth/signIn
/api/auth/callback
/api/auth/register
/api/auth/userInfo
``
const { userInfo, status, signIn, signOut, getUserInfo } = useAuth()
const { problem, description } = useChat()
Local development
`bash``
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/my-module
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npmjs.com/package/my-module
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/my-module
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com