Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Props = {

export const Feature = ({ icon, color, title, description }: Props) => {
return (
<div className="bg-gray-50 dark:bg-neutral-900 flex gap-4 rounded p-4 px-6 h-full items-center">
<div className="flex gap-4 m-4 h-full items-center">
<div
aria-hidden
className={`flex-shrink-0 size-9 flex items-center justify-center rounded ${color}`}
Expand Down
2 changes: 1 addition & 1 deletion components/UseCases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const UseCases = ({ codes }: Props) => {
{["Testing", "API Mocking", "E2E", "Seeding"].map((tab) => (
<Tab
key={tab}
className="first:rounded-l last:rounded-r text-sm !ring-0 bg-neutral-100 dark:bg-neutral-800 !ring-offset-0 text-neutral-900 data-[focus]:bg-neutral-700 data-[selected]:bg-neutral-900 dark:data-[selected]:bg-neutral-900 dark:text-neutral-50 py-2.5 px-6 data-[selected]:text-white data-[hover]:bg-neutral-700 dark:data-[hover]:bg-neutral-800 data-[hover]:text-white"
className="first:rounded-l last:rounded-r text-sm !ring-0 bg-gray-100 dark:bg-neutral-800 !ring-offset-0 text-neutral-900 data-[focus]:bg-neutral-700 data-[selected]:bg-neutral-900 dark:data-[selected]:bg-neutral-900 dark:text-neutral-50 py-2.5 px-6 data-[selected]:text-white data-[hover]:bg-neutral-700 dark:data-[hover]:bg-neutral-800 data-[hover]:text-white"
>
{tab}
</Tab>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@headlessui/react": "^2.1.1",
"@radix-ui/react-tooltip": "^1.1.2",
"next": "^14.2.4",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"nextra": "^3.0.0",
"nextra-theme-docs": "^3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
Expand Down
5 changes: 0 additions & 5 deletions pages/_app.mdx

This file was deleted.

6 changes: 6 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { AppProps } from "next/app";
import "../globals.css";

export default function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
12 changes: 0 additions & 12 deletions pages/_meta.json

This file was deleted.

14 changes: 14 additions & 0 deletions pages/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const meta = {
index: {
display: "hidden",
theme: {
layout: "raw",
},
},
"get-started": "Get Started",
guide: "Guide",
"prisma-plugin": "Prisma Plugin",
"other-orms": "Other ORMs",
};

export default meta;
4 changes: 4 additions & 0 deletions pages/get-started.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Get Started
---

import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";

Expand Down
10 changes: 0 additions & 10 deletions pages/guide/_meta.json

This file was deleted.

12 changes: 12 additions & 0 deletions pages/guide/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export const meta = {
"defining-factory": "Defining Factory",
property: "Property",
placeholder: "Placeholder",
variable: "Variable",
sequence: "Sequence",
"after-hook": "After Hook",
trait: "Trait",
"extending-factory": "Extending Factory",
};

export default meta;
4 changes: 4 additions & 0 deletions pages/guide/after-hook.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: After Hook
---

import { Callout } from "nextra/components";

## Executing Functions After Object Creation
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/defining-factory.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Defining Factory
---

import { Callout } from "nextra/components";

## Defining a Factory
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/extending-factory.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Extending Factory
---

import { Callout } from "nextra/components";

## Extending a Factory
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/placeholder.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Placeholder
---

import { Callout } from "nextra/components";

## Defining Placeholders
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/property.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Property
---

import { Callout } from "nextra/components";

## Overwriting Property Values
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/sequence.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Sequence
---

import { Callout } from "nextra/components";

## Generating Sequential Values
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/trait.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Trait
---

import { Callout } from "nextra/components";

## Managing Multiple Properties and Variables Using Keys
Expand Down
4 changes: 4 additions & 0 deletions pages/guide/variable.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Variable
---

import { Callout } from "nextra/components";

## Defining Variables
Expand Down
6 changes: 1 addition & 5 deletions pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
title: FactoryJS - The object generator for testing
---

import { useData } from "nextra/data";
import { useData } from "nextra/hooks";
import { createHighlighter } from "shiki";
import { getCodes } from "../lib/codes";
import { Home } from "../components/Home";
Expand Down
4 changes: 4 additions & 0 deletions pages/other-orms/get-started.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Get Started
---

import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";

Expand Down
4 changes: 4 additions & 0 deletions pages/other-orms/recipes.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Recipes
---

import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";

Expand Down
4 changes: 0 additions & 4 deletions pages/prisma-plugin/_meta.json

This file was deleted.

6 changes: 6 additions & 0 deletions pages/prisma-plugin/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const meta = {
"get-started": "Get Started",
"best-practice": "Best Practice",
};

export default meta;
4 changes: 4 additions & 0 deletions pages/prisma-plugin/best-practice.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Best Practice
---

import { FileTree } from 'nextra/components'

## Considering Customizability
Expand Down
4 changes: 4 additions & 0 deletions pages/prisma-plugin/get-started.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Get Started
---

import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";

Expand Down
4 changes: 4 additions & 0 deletions pages/prisma-plugin/options.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Options
---

import { Callout } from "nextra/components";

## Generator Options
Expand Down
Loading