Преглед изворни кода

add pinia-colada dev tools

Jason Gorst пре 3 недеља
родитељ
комит
cd261e8683
2 измењених фајлова са 13 додато и 2 уклоњено
  1. 12 2
      app/app.vue
  2. 1 0
      nuxt.config.js

+ 12 - 2
app/app.vue

@@ -1,5 +1,7 @@
 <template>
   <div>
+    <PiniaColadaDevtools />
+
     <ToastContainer />
     <ConfirmContainer />
     <DynamicDialog />
@@ -12,6 +14,14 @@
   </div>
 </template>
 
-<script setup></script>
+<script setup>
+import { PiniaColadaDevtools } from "@pinia/colada-devtools"
+</script>
+
+<style>
+@reference "~/assets/css/main.css";
 
-<style scoped></style>
+#open-devtools-button {
+  @apply bottom-12!;
+}
+</style>

+ 1 - 0
nuxt.config.js

@@ -44,6 +44,7 @@ export default defineNuxtConfig({
 
     optimizeDeps: {
       include: [
+        "@pinia/colada-devtools",
         "@primevue/core/api",
         "@primeuix/forms/resolvers/zod",
         "better-auth/client",