@evjs/create-app 0.2.3 → 0.2.4
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/package.json +1 -1
- package/templates/api-routes/package.json +1 -1
- package/templates/api-routes/src/apis/api/middleware.ts +1 -1
- package/templates/api-routes/src/middleware.ts +1 -1
- package/templates/basic/package.json +1 -1
- package/templates/basic/src/apis/users.server.ts +6 -1
- package/templates/basic/src/layout/index.tsx +1 -1
- package/templates/basic/src/pages/index.tsx +2 -2
- package/templates/basic/src/pages/search.tsx +3 -1
- package/templates/basic/src/pages/users/$userId.tsx +3 -1
- package/templates/complex-routing/package.json +1 -1
- package/templates/complex-routing/src/layout/index.tsx +1 -1
- package/templates/complex-routing/src/pages/dashboard.tsx +1 -1
- package/templates/complex-routing/src/pages/index.tsx +1 -1
- package/templates/complex-routing/src/pages/old-blog.tsx +1 -1
- package/templates/complex-routing/src/pages/posts/$postId.tsx +3 -1
- package/templates/complex-routing/src/pages/posts/index.tsx +2 -1
- package/templates/complex-routing/src/pages/search.tsx +3 -1
- package/templates/complex-routing/src/pages/users/$username.tsx +3 -1
- package/templates/custom-ws-transport/package.json +1 -1
- package/templates/custom-ws-transport/src/layout/index.tsx +1 -1
- package/templates/mpa/package.json +1 -1
- package/templates/plugin-authoring/package.json +1 -1
- package/templates/plugin-authoring/src/pages/index.tsx +1 -1
- package/templates/with-sqlite/package.json +1 -1
- package/templates/with-sqlite/src/apis/db.server.ts +1 -1
- package/templates/with-sqlite/src/layout/index.tsx +1 -1
- package/templates/with-sqlite/src/pages/index.tsx +1 -1
- package/templates/with-tailwind/package.json +1 -1
- package/templates/with-tailwind/src/layout/index.tsx +1 -1
- package/templates/with-trpc/package.json +1 -1
- package/templates/with-trpc/src/pages/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
1
2
|
import {
|
|
2
3
|
getFnQueryKey,
|
|
3
|
-
Link,
|
|
4
4
|
useMutation,
|
|
5
5
|
useQuery,
|
|
6
6
|
useQueryClient,
|
|
7
|
-
} from "@evjs/ev/
|
|
7
|
+
} from "@evjs/ev/query";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { createUser, getUsers } from "@/apis/users.server";
|
|
10
10
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Link
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
2
|
+
import { useQuery } from "@evjs/ev/query";
|
|
3
|
+
import { usePageSearch } from "@evjs/ev/route";
|
|
2
4
|
import { getUsers } from "@/apis/users.server";
|
|
3
5
|
|
|
4
6
|
const cardStyle = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Link
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
2
|
+
import { useQuery } from "@evjs/ev/query";
|
|
3
|
+
import { usePageParams } from "@evjs/ev/route";
|
|
2
4
|
import { getUser } from "@/apis/users.server";
|
|
3
5
|
|
|
4
6
|
const cardStyle = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Link
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
2
|
+
import { useQuery } from "@evjs/ev/query";
|
|
3
|
+
import { usePageParams } from "@evjs/ev/route";
|
|
2
4
|
import { getPost } from "@/apis/data.server";
|
|
3
5
|
|
|
4
6
|
const styles = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Link
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
2
|
+
import { useQuery } from "@evjs/ev/query";
|
|
3
|
+
import { usePageSearch } from "@evjs/ev/route";
|
|
2
4
|
import { getPosts } from "@/apis/data.server";
|
|
3
5
|
|
|
4
6
|
const styles = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Link
|
|
1
|
+
import { Link } from "@evjs/ev/navigation";
|
|
2
|
+
import { useQuery } from "@evjs/ev/query";
|
|
3
|
+
import { usePageParams } from "@evjs/ev/route";
|
|
2
4
|
import { getUser } from "@/apis/data.server";
|
|
3
5
|
|
|
4
6
|
const styles = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { DatabaseSync, type SQLOutputValue } from "node:sqlite";
|
|
5
|
-
import { ServerError } from "@evjs/ev/
|
|
5
|
+
import { ServerError } from "@evjs/ev/server-context";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* SQLite database connection using Node.js built-in sqlite module.
|