Skip to content

Commit

Permalink
refactor: Update configuration and improve code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
casualmatt committed Nov 28, 2024
1 parent f9baf2f commit 94846cc
Show file tree
Hide file tree
Showing 6 changed files with 9,306 additions and 527 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"release": "pnpm run lint && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch",
Expand Down
14 changes: 10 additions & 4 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
Nuxt module playground!

<p>{{ status }}</p>
<p v-if="status === 'success'">Your country is: {{ data }}</p>
<p v-if="status === 'error'">Error: {{ data }}</p>
<button @click="refresh">Refresh</button>
<p v-if="status === 'success'">
Your country is: {{ data }}
</p>
<p v-if="status === 'error'">
Error: {{ data }}
</p>
<button @click="refresh">
Refresh
</button>
</div>
</template>

<script setup>
const { data, refresh, status } = await useUserCountry();
const { data, refresh, status } = await useUserCountry()
</script>
2 changes: 1 addition & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export default defineNuxtConfig({
modules: ['../src/module'],
devtools: { enabled: true },
compatibilityDate: '2024-11-15',
})
})
Loading

0 comments on commit 94846cc

Please sign in to comment.