vite-plugin-server-actions 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +616 -123
- package/index.d.ts +200 -0
- package/package.json +81 -16
- package/src/build-utils.js +101 -0
- package/src/index.js +531 -58
- package/src/middleware.js +89 -0
- package/src/openapi.js +369 -0
- package/src/types.ts +35 -0
- package/src/validation.js +307 -0
- package/.editorconfig +0 -20
- package/.prettierrc +0 -7
- package/examples/todo-app/.prettierrc +0 -17
- package/examples/todo-app/README.md +0 -58
- package/examples/todo-app/index.html +0 -12
- package/examples/todo-app/jsconfig.json +0 -32
- package/examples/todo-app/package.json +0 -22
- package/examples/todo-app/src/App.svelte +0 -155
- package/examples/todo-app/src/actions/auth.server.js +0 -14
- package/examples/todo-app/src/actions/todo.server.js +0 -57
- package/examples/todo-app/src/app.css +0 -0
- package/examples/todo-app/src/main.js +0 -8
- package/examples/todo-app/svelte.config.js +0 -7
- package/examples/todo-app/todos.json +0 -27
- package/examples/todo-app/vite.config.js +0 -12
- package/examples/todo-app/yarn.lock +0 -658
|
File without changes
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": 1,
|
|
4
|
-
"text": "Finish writing documentation",
|
|
5
|
-
"completed": false
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"id": 2,
|
|
9
|
-
"text": "Implement authentication logic",
|
|
10
|
-
"completed": true
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": 3,
|
|
14
|
-
"text": "Design user interface",
|
|
15
|
-
"completed": false
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"id": 4,
|
|
19
|
-
"text": "Test server actions",
|
|
20
|
-
"completed": true
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"id": 5,
|
|
24
|
-
"text": "Deploy application",
|
|
25
|
-
"completed": false
|
|
26
|
-
}
|
|
27
|
-
]
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
3
|
-
import serverActions from "../../src/index.js";
|
|
4
|
-
|
|
5
|
-
// https://vitejs.dev/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
8
|
-
svelte(),
|
|
9
|
-
serverActions(),
|
|
10
|
-
// ...
|
|
11
|
-
],
|
|
12
|
-
});
|