Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix: v-confetti directive and add new packages to nuxt.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Jan 17, 2024
1 parent 60df021 commit 954865f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const isDark = computed({
</script>

<template>
<div v-confetti="{ particleCount: 200, force: 0.3 }" />

<Body class="h-full" />
<Html class="h-full" />
<Notivue
Expand All @@ -31,6 +29,8 @@ const isDark = computed({
</Notivue>

<div class="h-full">
<div v-confetti="{ particleCount: 200, force: 0.3 }" />

<NuxtLayout>
<NuxtPage />
</NuxtLayout>
Expand Down
9 changes: 9 additions & 0 deletions packages/nuxt/playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ export default defineNuxtConfig({
box: {
packages: {
neoconfetti: true,
colorMode: true,
i18n: true,
tailwindcss: true,
vueUse: true,
veeValidate: true,
notivue: true,
nuxtIcon: true,
pinia: true,
zod: true,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/playground/server/api/auth/signup.post.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { PostgresError } from 'postgres'
import { auth } from '#pergel/test/lucia'
import { auth } from '#test/lucia'

export default eventHandler(async (event) => {
const db = await pergelTest().drizzle().postgresjs().connect({})
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/playground/server/middleware/auth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { auth } from '#pergel/test/lucia'
import { auth } from '#test/lucia'

export default pergelTest().lucia().definePergelNitroMiddleware({
lucia: auth,
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/playground/server/plugins/graphqlv1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSchema } from 'graphql-yoga'
import type { Resolvers } from 'pergel/test/graphqlYoga/server'
import { schema } from 'pergel/test/graphqlYoga/schema'
import type { Resolvers } from '#test/graphqlYoga/server'
import { schema } from '#test/graphqlYoga/schema'

const resolvers: Resolvers = {
Query: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { defineNuxtPlugin } from '#imports'

export default defineNuxtPlugin((app) => {

Check failure on line 4 in packages/nuxt/src/runtime/modules/box/plugins/neoconfetti.ts

View workflow job for this annotation

GitHub Actions / 📚 Main (ubuntu-latest)

Parameter 'app' implicitly has an 'any' type.
// Register the directive
app.vueApp.directive('v-confetti', vConfetti)
app.vueApp.directive('confetti', vConfetti)
})

0 comments on commit 954865f

Please sign in to comment.