|
1 | 1 | <p align="center"> |
2 | | - <img src="https://raw.githubusercontent.com/rutbergphilip/nuxt-safe-action/main/docs/public/logo.svg" width="120" alt="nuxt-safe-action logo" /> |
| 2 | + <img src="https://raw.githubusercontent.com/rutbergphilip/nuxt-safe-action/main/docs/public/social-card.png" alt="nuxt-safe-action social card" /> |
3 | 3 | </p> |
4 | 4 |
|
5 | | -# nuxt-safe-action |
| 5 | +<p align="center"> |
| 6 | + <img src="https://raw.githubusercontent.com/rutbergphilip/nuxt-safe-action/main/docs/public/logo.svg" width="80" alt="nuxt-safe-action logo" /> |
| 7 | +</p> |
| 8 | + |
| 9 | +<h1 align="center">nuxt-safe-action</h1> |
6 | 10 |
|
7 | | -[![npm version][npm-version-src]][npm-version-href] |
8 | | -[![npm downloads][npm-downloads-src]][npm-downloads-href] |
9 | | -[![License][license-src]][license-href] |
10 | | -[![Nuxt][nuxt-src]][nuxt-href] |
11 | | -[![StackBlitz][stackblitz-src]][stackblitz-href] |
| 11 | +<p align="center">Type-safe server actions for Nuxt.</p> |
12 | 12 |
|
13 | | -Type-safe server actions for Nuxt. |
| 13 | +<p align="center"> |
| 14 | + <a href="https://npmjs.com/package/nuxt-safe-action"><img src="https://img.shields.io/npm/v/nuxt-safe-action/latest.svg?style=flat&colorA=020420&colorB=00DC82" alt="npm version" /></a> |
| 15 | + <a href="https://npm.chart.dev/nuxt-safe-action"><img src="https://img.shields.io/npm/dm/nuxt-safe-action.svg?style=flat&colorA=020420&colorB=00DC82" alt="npm downloads" /></a> |
| 16 | + <a href="https://npmjs.com/package/nuxt-safe-action"><img src="https://img.shields.io/npm/l/nuxt-safe-action.svg?style=flat&colorA=020420&colorB=00DC82" alt="License" /></a> |
| 17 | + <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt-020420?logo=nuxt" alt="Nuxt" /></a> |
| 18 | +</p> |
14 | 19 |
|
15 | 20 | Define actions on the server with Zod validation and middleware, and call them from the client with full type inference, reactive status tracking, and field-level validation errors. |
16 | 21 |
|
@@ -272,18 +277,3 @@ Inspired by [next-safe-action](https://github.com/TheEdoRan/next-safe-action), a |
272 | 277 |
|
273 | 278 | [MIT](./LICENSE) |
274 | 279 |
|
275 | | -<!-- Badges --> |
276 | | -[npm-version-src]: https://img.shields.io/npm/v/nuxt-safe-action/latest.svg?style=flat&colorA=020420&colorB=00DC82 |
277 | | -[npm-version-href]: https://npmjs.com/package/nuxt-safe-action |
278 | | - |
279 | | -[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-safe-action.svg?style=flat&colorA=020420&colorB=00DC82 |
280 | | -[npm-downloads-href]: https://npm.chart.dev/nuxt-safe-action |
281 | | - |
282 | | -[license-src]: https://img.shields.io/npm/l/nuxt-safe-action.svg?style=flat&colorA=020420&colorB=00DC82 |
283 | | -[license-href]: https://npmjs.com/package/nuxt-safe-action |
284 | | - |
285 | | -[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt |
286 | | -[nuxt-href]: https://nuxt.com |
287 | | - |
288 | | -[stackblitz-src]: https://developer.stackblitz.com/img/open_in_stackblitz_small.svg |
289 | | -[stackblitz-href]: https://stackblitz.com/github/rutbergphilip/nuxt-safe-action/tree/main/example |
0 commit comments