Skip to content

Commit

Permalink
v1.3.0-canary.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Aug 4, 2024
1 parent 6080018 commit aa6841d
Show file tree
Hide file tree
Showing 53 changed files with 1,435 additions and 1,333 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ AUTH_GOOGLE_ID=""
# Ensure the domain is connected in production (for PageSpeed Insights).
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
CLERK_SECRET_KEY=""
# NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL="/dashboard"
# NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL="/dashboard"
NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up"
# Additional optional feature, to enable visit:
# Clerk Dashboard > [app] > Organizations Settings
NEXT_PUBLIC_ORGANIZATIONS_ENABLED="false"
Expand Down
2 changes: 1 addition & 1 deletion .putout.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"**/reset.d.ts",
"**/yarn-error.log",
"addons/.output",
"addons/browser/reliverse/tools/components/ReliverseToolbar.tsx",
"addons/cluster/reliverse/ui/cluster-readme.tsx",
"addons/reliverse/academy/fileHandler.ts",
"addons/reliverse/academy/leaders.ts",
Expand All @@ -173,7 +174,6 @@
"addons/reliverse/relimter/core/env/components/MissingVariables.tsx",
"addons/reliverse/relimter/putout/tasks/index.ts",
"src/app/[locale]/blog/new/**/*.tsx",
"src/components/Application/ReliverseToolbar.tsx",
"src/components/Common/loading-button.tsx",
"src/components/Common/password-input.tsx",
"src/components/Navigation/SiteHeader.tsx",
Expand Down
39 changes: 31 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Our goal is to create the world's most feature-rich and globally accessible Next
<span>
<a href="https://relivator.bleverse.com">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="public/internal/screenshot-dark.png" />
<source media="(prefers-color-scheme: light)" srcset="public/internal/screenshot-light.png" />
<img alt="Shows the landing page of Relivator Next.js template, with its logo and the phrase 'Relivator Empowers Your eCommerce with the Power of Next.js'." src="/public/internal/screenshot-light.png" width="53%" />
<source media="(prefers-color-scheme: dark)" srcset="public/screenshot-dark.png" />
<source media="(prefers-color-scheme: light)" srcset="public/screenshot-light.png" />
<img alt="Shows the landing page of Relivator Next.js template, with its logo and the phrase 'Relivator Empowers Your eCommerce with the Power of Next.js'." src="/public/screenshot-light.png" width="53%" />
</picture>
</a>
</span>
Expand Down Expand Up @@ -117,13 +117,14 @@ Developing something as ambitious as Relivator obviously takes a lot of time, es

*Love using this project? If you find this project useful, I'd appreciate a cup of coffee. You'll get Reliverse Pro, access to some private repositories, pre-release downloads, and the ability to influence my project planning. Please click on the donation platforms above to learn more. Thank you, everyone, for any kind of support!*

- [mfpiano](https://youtube.com/@mfpiano)
- @devmarauda *(Discord: kongkong86)*
- @svict4
- [@mfpiano](https://youtube.com/@mfpiano)

### 💜 [Discord Server Boost](https://discord.gg/C4Z46fHKQ8)

- @demiroo
- @Saif-V
- @Saif-V *(Discord: Gh0st)*
- @demiroo *(Discord: demiroezkan)*

## 🖥️ Hire Me

Expand Down Expand Up @@ -476,7 +477,7 @@ pip freeze > requirements.txt
🌐 <https://relivator.bleverse.com>
<img src="/public/internal/screenshot-dark.png" width="600" alt="Screenshot showing the main page of the Relivator project">
<img src="/public/screenshot-dark.png" width="600" alt="Screenshot showing the main page of the Relivator project">
We've laid the groundwork—now it's time to dive in and accelerate development. And yeah, have fun! Think of Relivator and Reliverse as a sandbox! It's like Minecraft; with Relivator, you can build anything, as creativity knows no bounds! Explore all the new features of Next.js 13-15 and many other web technologies right here, right now—with Relivator.
Expand Down Expand Up @@ -1069,6 +1070,18 @@ Happy coding! Embark on the coding adventure, learn, iterate, and most important
Check out [our other free Next.js 15 starter](https://github.com/blefnk/reliverse). This monorepo provides the tech used in the current starter and adds: Turborepo/Turbopack, Prisma, Valibot, Lucia, Clerk, and much more, as we experimentally attempt to combine all vital and widely-used tech. Think of it as: Reliverse (WordPress) + Relivator (WooCommerce) = 😍. So, start right now! Start today with Relivator!
<p>
<span>
<a href="https://github.com/blefnk/relivator-nextjs-template/blob/main/public/reliverse.png">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="public/reliverse.png" />
<source media="(prefers-color-scheme: light)" srcset="public/reliverse.png" />
<img alt="Reliverse" src="/public/reliverse.png" width="35%" />
</picture>
</a>
</span>
</p>
> 🚀 **Ready to launch?** Start building your project with Relivator and Reliverse as soon as possible! With one-click deploy on Vercel:
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fblefnk%2Frelivator-nextjs-template\&project-name=relivator\&repository-name=relivator)
Expand All @@ -1081,7 +1094,17 @@ git clone https://github.com/blefnk/relivator.git
[2023-2024 © Nazar Kornienko / Nazar Kornienko / blefnk](https://github.com/blefnk) (<https://relivator.bleverse.com>)
![Relivator OG Image](public/og.png)
<p>
<span>
<a href="https://github.com/blefnk/relivator-nextjs-template/blob/main/public/og.png">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="public/og.png" />
<source media="(prefers-color-scheme: light)" srcset="public/og.png" />
<img alt="Relivator OG Image" src="/public/og.png" width="35%" />
</picture>
</a>
</span>
</p>
[![Join the Relivator Discord](https://discordapp.com/api/guilds/1075533942096150598/widget.png?style=banner2)][badge-discord]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type { Item } from "~/db/schema";
import {
Card,
NewCard,
} from "~/components/Application/Experimental/Admin/card";
} from "~/components/Application/Experimental/card";
import { EditableText } from "~/components/Playground/Boards/EditableText";
import { cn, invariant, isCardTransfer, parseTransfer } from "~/utils";

Expand Down
20 changes: 11 additions & 9 deletions addons/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// ?| It's the same thing:
// ?| addons/server = src/server = src/lib
//
/* eslint-disable @stylistic/max-len */
//
// ?| The following are the author's "thoughts spoken aloud". Not everything may be true and should be verified.
// Did you know you can make imports more convenient in your project? You can use `index.ts` files to re-export items, streamlining the import process. However, ensure server-only code remains in the `server` folder. Code that runs on both server and client sides should be placed in the `utils` folder.
// Relivator 1.2.6 does not follow these guidelines, so we need to correct this in version 1.3.0. Typically, server functions are named like `getDoSomething`.
// Additionally, avoid importing code from the `server` folder into `.tsx` files that use React Hooks (e.g., `useHookName`). The exception is when the component utilizes `useTransition` or similar hooks, which enable performing Server Actions within the client component.
// =======================================================================
//
// =======================================================================

// Re-export from: actions
//
export * from "./reliverse/actions/auth";

export * from "./reliverse/actions/cart";

Expand All @@ -28,21 +29,19 @@ export * from "./reliverse/actions/signin";
export * from "./reliverse/actions/store";

// Re-export from: api/uploadthing
//

export * from "./reliverse/api/uploadthing/core";

export * from "./reliverse/api/uploadthing/react";

// Re-export from: etc
//

export * from "./reliverse/cart";

//
export * from "./reliverse/currency/currencyValidation";

export * from "./reliverse/currency/errorMessage";

//
export * from "./reliverse/funcs/client";

export * from "./reliverse/funcs/handler";
Expand All @@ -54,32 +53,35 @@ export * from "./reliverse/mw";
export * from "./reliverse/pattern";

// Re-export from: etc/v2/currency

export * from "./reliverse/plan";

export * from "./reliverse/queries/notification";

// Re-export from: funcs

export * from "./reliverse/queries/product";

export * from "./reliverse/queries/store";

export * from "./reliverse/queries/user";

// Re-export from: queries

export * from "./reliverse/query";

//
export * from "./reliverse/resend/index";

export * from "./reliverse/string";

export * from "./reliverse/trpc";

// Re-export from: resend

export * from "./reliverse/utapi";

// Re-export from: validations
//

export * from "./reliverse/validations/auth";

export * from "./reliverse/validations/cart";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"**/reset.d.ts",
"**/yarn-error.log",
"addons/.output",
"addons/browser/reliverse/tools/components/ReliverseToolbar.tsx",
"addons/cluster/reliverse/ui/cluster-readme.tsx",
"addons/reliverse/academy/fileHandler.ts",
"addons/reliverse/academy/leaders.ts",
Expand All @@ -173,7 +174,6 @@
"addons/reliverse/relimter/core/env/components/MissingVariables.tsx",
"addons/reliverse/relimter/putout/tasks/index.ts",
"src/app/[locale]/blog/new/**/*.tsx",
"src/components/Application/ReliverseToolbar.tsx",
"src/components/Common/loading-button.tsx",
"src/components/Common/password-input.tsx",
"src/components/Navigation/SiteHeader.tsx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"**/reset.d.ts",
"**/yarn-error.log",
"addons/.output",
"addons/browser/reliverse/tools/components/ReliverseToolbar.tsx",
"addons/cluster/reliverse/ui/cluster-readme.tsx",
"addons/reliverse/academy/fileHandler.ts",
"addons/reliverse/academy/leaders.ts",
Expand All @@ -173,7 +174,6 @@
"addons/reliverse/relimter/core/env/components/MissingVariables.tsx",
"addons/reliverse/relimter/putout/tasks/index.ts",
"src/app/[locale]/blog/new/**/*.tsx",
"src/components/Application/ReliverseToolbar.tsx",
"src/components/Common/loading-button.tsx",
"src/components/Common/password-input.tsx",
"src/components/Navigation/SiteHeader.tsx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"src/cluster/onboard.tsx",
"src/components/{Account,Common,Forms,Modules,Navigation,Playground,Primitives,Sections}/index.tsx",
"src/components/Account/{ActionButton,AuthPagesContentClient,AuthPagesContentServer,AuthjsUser,authjs-button-action,AuthjsV5Test,AuthProvider,AuthRequired,LogoutButtons,SessionData,SigninLink,SsoCallback,UserLogin}.tsx",
"src/components/Application//ReliverseToolbar.tsx",
"src/components/Application/ApplicationShells/{SidebarLayouts/{index,SidebarWithHeader}.tsx,StackedLayouts/{index,NavWithCompactPageHeader}.tsx}",
"src/components/Application/Experimental/{index,RxjsSignalsTest}.tsx",
"src/components/Application/Experimental/Admin/{card,column,board}.tsx",
Expand Down Expand Up @@ -70,6 +69,7 @@
"src/utils/execa/{execute,index,test}.ts"
],
"ignore": [
"addons/browser/reliverse/tools/components/ReliverseToolbar.tsx",
"addons/browser/reliverse/ui/Alert-Dialog.tsx",
"addons/browser/reliverse/ui/Badge.tsx",
"addons/browser/reliverse/ui/Calendar.tsx",
Expand All @@ -94,7 +94,6 @@
"addons/browser/shared/utils/math.ts",
"addons/cluster/reliverse/components/Onboarding.tsx",
"addons/cluster/reliverse/ui/cluster-readme.tsx",
"addons/reliverse/toolbar/components/ReliverseToolbar.tsx",
"addons/reliverse/toolbar/index.tsx",
"addons/server/reliverse/errors/helpers/field.ts",
"addons/server/reliverse/errors/plugin.ts",
Expand Down Expand Up @@ -161,6 +160,8 @@
"@tailwindcss/.+",
"@types/eslint",
"@types/try-catch",
"@vercel/flags",
"@vercel/toolbar",
"@xyflow/react",
"autoprefixer",
"commander",
Expand All @@ -178,6 +179,7 @@
"postcss",
"react-day-picker",
"remark-.+",
"sharp",
"try-catch",
"ufo"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const nextConfig = {
// reactCompiler: false,
mdxRs: true,
optimizePackageImports: ["lucide-react", "@radix-ui/react-icons"],
ppr: true,
ppr: false, // true - supported by next@canary only
swcPlugins: [
[
"next-superjson-plugin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const nextConfig = {
"date-fns",
],
optimizeServerReact: true,
ppr: true,
ppr: false, // true - supported by next@canary only
serverMinification: true,
},
images: {
Expand Down
6 changes: 4 additions & 2 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"src/cluster/onboard.tsx",
"src/components/{Account,Common,Forms,Modules,Navigation,Playground,Primitives,Sections}/index.tsx",
"src/components/Account/{ActionButton,AuthPagesContentClient,AuthPagesContentServer,AuthjsUser,authjs-button-action,AuthjsV5Test,AuthProvider,AuthRequired,LogoutButtons,SessionData,SigninLink,SsoCallback,UserLogin}.tsx",
"src/components/Application//ReliverseToolbar.tsx",
"src/components/Application/ApplicationShells/{SidebarLayouts/{index,SidebarWithHeader}.tsx,StackedLayouts/{index,NavWithCompactPageHeader}.tsx}",
"src/components/Application/Experimental/{index,RxjsSignalsTest}.tsx",
"src/components/Application/Experimental/Admin/{card,column,board}.tsx",
Expand Down Expand Up @@ -70,6 +69,7 @@
"src/utils/execa/{execute,index,test}.ts"
],
"ignore": [
"addons/browser/reliverse/tools/components/ReliverseToolbar.tsx",
"addons/browser/reliverse/ui/Alert-Dialog.tsx",
"addons/browser/reliverse/ui/Badge.tsx",
"addons/browser/reliverse/ui/Calendar.tsx",
Expand All @@ -94,7 +94,6 @@
"addons/browser/shared/utils/math.ts",
"addons/cluster/reliverse/components/Onboarding.tsx",
"addons/cluster/reliverse/ui/cluster-readme.tsx",
"addons/reliverse/toolbar/components/ReliverseToolbar.tsx",
"addons/reliverse/toolbar/index.tsx",
"addons/server/reliverse/errors/helpers/field.ts",
"addons/server/reliverse/errors/plugin.ts",
Expand Down Expand Up @@ -161,6 +160,8 @@
"@tailwindcss/.+",
"@types/eslint",
"@types/try-catch",
"@vercel/flags",
"@vercel/toolbar",
"@xyflow/react",
"autoprefixer",
"commander",
Expand All @@ -178,6 +179,7 @@
"postcss",
"react-day-picker",
"remark-.+",
"sharp",
"try-catch",
"ufo"
]
Expand Down
2 changes: 1 addition & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
}
},
"landing": {
"about": "Creating the most feature-rich, global Next.js starter. Explore our features. More than just code, it's a journey. Stable and production-ready.",
"about": "Creating the most feature-rich, global Next.js starter. Explore powerful features. More than just code, it's a journey. Stable and production-ready.",
"buy-now": "Catalogue",
"features": {
"auth": {
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const nextConfig = {
// reactCompiler: false,
mdxRs: true,
optimizePackageImports: ["lucide-react", "@radix-ui/react-icons"],
ppr: true,
ppr: false, // true - supported by next@canary only
swcPlugins: [
[
"next-superjson-plugin",
Expand Down
Loading

1 comment on commit aa6841d

@demiroo
Copy link

@demiroo demiroo commented on aa6841d Aug 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing things coming @blefnk

Please sign in to comment.