Skip to content

Commit 86675ec

Browse files
committed
refactor: move examples into an src directory
1 parent 3f0974d commit 86675ec

File tree

189 files changed

+159
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+159
-153
lines changed

examples/01-basic/01-minimal/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/02-block-objects/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/03-multi-column/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/04-default-blocks/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/05-removing-default-blocks/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/06-block-manipulation/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/07-selection-blocks/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/08-ariakit/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/09-shadcn/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/10-localization/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/11-custom-placeholder/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/12-multi-editor/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/13-custom-paste-handler/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/01-basic/testing/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/02-backend/01-file-uploading/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/02-backend/02-saving-loading/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/02-backend/03-s3/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/02-backend/04-rendering-static-documents/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/01-ui-elements-remove/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/02-formatting-toolbar-buttons/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/03-formatting-toolbar-block-type-items/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/04-side-menu-buttons/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/05-side-menu-drag-handle-items/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/06-suggestion-menus-slash-menu-items/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/07-suggestion-menus-slash-menu-component/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/08-suggestion-menus-emoji-picker-columns/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/09-suggestion-menus-emoji-picker-component/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/10-suggestion-menus-grid-mentions/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/11-uppy-file-panel/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/12-static-formatting-toolbar/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

examples/03-ui-components/13-custom-ui/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// AUTO-GENERATED FILE, DO NOT EDIT DIRECTLY
22
import React from "react";
33
import { createRoot } from "react-dom/client";
4-
import App from "./App.jsx";
4+
import App from "./src/App.jsx";
55

66
const root = createRoot(document.getElementById("root")!);
77
root.render(

0 commit comments

Comments
 (0)