create-carlonicora-app 1.3.4 → 1.3.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-carlonicora-app",
3
- "version": "1.3.4",
3
+ "version": "1.3.7",
4
4
  "description": "Create a NestJS + Next.js monorepo project with Neo4j and JSON:API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ self.addEventListener("push", function (event) {
3
3
  var title = data.title || "Notification";
4
4
  var options = {
5
5
  body: data.message || "You have a new notification",
6
- icon: "/{{name}}-logo.webp",
6
+ icon: "/logo.webp",
7
7
  data: data.url,
8
8
  };
9
9
 
@@ -7,5 +7,5 @@ export default async function AuthPage(props: { searchParams: Promise<{ code: st
7
7
  tokenCode: searchParams.code,
8
8
  });
9
9
 
10
- return <Cookies dehydratedAuth={auth.dehydrate()} />;
10
+ return <Cookies dehydratedAuth={auth.dehydrate()} page="/" />;
11
11
  }
@@ -2,7 +2,7 @@ import IndexContainer from "@/features/common/components/containers/IndexContain
2
2
  import { generateSpecificMetadata } from "@/utils/metadata";
3
3
  import { AuthContainer, CompaniesList, PageContainer } from "@carlonicora/nextjs-jsonapi/components";
4
4
  import { CommonProvider, CompanyProvider } from "@carlonicora/nextjs-jsonapi/contexts";
5
- import { AuthComponent, ContentInterface, ContentService } from "@carlonicora/nextjs-jsonapi/core";
5
+ import { AuthComponent } from "@carlonicora/nextjs-jsonapi/core";
6
6
  import { ServerSession } from "@carlonicora/nextjs-jsonapi/server";
7
7
  import { RoleId } from "@{{name}}/shared";
8
8
  import { Metadata } from "next";
@@ -29,12 +29,10 @@ export default async function IndexPage() {
29
29
  );
30
30
  }
31
31
 
32
- const contentList: ContentInterface[] = await ContentService.findMany({});
33
-
34
32
  return (
35
33
  <CommonProvider>
36
34
  <PageContainer testId="page-homepage-container">
37
- <IndexContainer dehydratedContentList={contentList ? contentList.map((content) => content.dehydrate()) : []} />
35
+ <IndexContainer />
38
36
  </PageContainer>
39
37
  </CommonProvider>
40
38
  );
@@ -1,11 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { JsonApiHydratedDataInterface } from "@carlonicora/nextjs-jsonapi/core";
4
3
 
5
- type IndexContainerProps = {
6
- dehydratedContentList: JsonApiHydratedDataInterface[];
7
- };
8
-
9
- export default function IndexContainer({ dehydratedContentList }: IndexContainerProps) {
4
+ export default function IndexContainer() {
10
5
  return <div>index</div>;
11
6
  }
@@ -91,7 +91,7 @@ export default function CommonSidebar() {
91
91
  >
92
92
  {state === "expanded" ? (
93
93
  <Image
94
- src={`/{{name}}-logo.webp`}
94
+ src={`/logo.webp`}
95
95
  className="max-h-32 object-contain p-4"
96
96
  height={300}
97
97
  width={300}
@@ -100,7 +100,7 @@ export default function CommonSidebar() {
100
100
  />
101
101
  ) : (
102
102
  <Image
103
- src={`/{{name}}-logo.webp`}
103
+ src={`/logo.webp`}
104
104
  className="max-h-10 object-contain"
105
105
  height={300}
106
106
  width={300}
@@ -17,6 +17,9 @@
17
17
  "dev": "tsup --watch",
18
18
  "clean": "rm -rf dist"
19
19
  },
20
+ "dependencies": {
21
+ "tslib": "^2.6.0"
22
+ },
20
23
  "devDependencies": {
21
24
  "tsup": "^8.5.0"
22
25
  }