aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(editor)/lib/content.ts
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-06-18 17:58:46 -0500
committerDhravya Shah <[email protected]>2024-06-18 17:58:46 -0500
commitf4bb71e8f7e07bb2e919b7f222d5acb2905eb8f2 (patch)
tree7310dc521ef3559055bbe71f50c3861be2fa0503 /apps/web/app/(editor)/lib/content.ts
parentdarkmode by default - so that the colors don't f up on lightmode devices (diff)
parentCreate Embeddings for Canvas (diff)
downloadsupermemory-default-darkmode.tar.xz
supermemory-default-darkmode.zip
Diffstat (limited to 'apps/web/app/(editor)/lib/content.ts')
-rw-r--r--apps/web/app/(editor)/lib/content.ts231
1 files changed, 231 insertions, 0 deletions
diff --git a/apps/web/app/(editor)/lib/content.ts b/apps/web/app/(editor)/lib/content.ts
new file mode 100644
index 00000000..6464cfa1
--- /dev/null
+++ b/apps/web/app/(editor)/lib/content.ts
@@ -0,0 +1,231 @@
+export const defaultEditorContent = {
+ type: "doc",
+ content: [
+ {
+ type: "heading",
+ attrs: { level: 2 },
+ content: [{ type: "text", text: "Introducing Novel" }],
+ },
+ {
+ type: "paragraph",
+ content: [
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://github.com/steven-tey/novel",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "Novel",
+ },
+ {
+ type: "text",
+ text: " is a Notion-style WYSIWYG editor with AI-powered autocompletion. Built with ",
+ },
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://tiptap.dev/",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "Tiptap",
+ },
+ { type: "text", text: " + " },
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://sdk.vercel.ai/docs",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "Vercel AI SDK",
+ },
+ { type: "text", text: "." },
+ ],
+ },
+ {
+ type: "heading",
+ attrs: { level: 3 },
+ content: [{ type: "text", text: "Installation" }],
+ },
+ {
+ type: "codeBlock",
+ attrs: { language: null },
+ content: [{ type: "text", text: "npm i novel" }],
+ },
+ {
+ type: "heading",
+ attrs: { level: 3 },
+ content: [{ type: "text", text: "Usage" }],
+ },
+ {
+ type: "codeBlock",
+ attrs: { language: null },
+ content: [
+ {
+ type: "text",
+ text: 'import { Editor } from "novel";\n\nexport default function App() {\n return (\n <Editor />\n )\n}',
+ },
+ ],
+ },
+ {
+ type: "heading",
+ attrs: { level: 3 },
+ content: [{ type: "text", text: "Features" }],
+ },
+ {
+ type: "orderedList",
+ attrs: { tight: true, start: 1 },
+ content: [
+ {
+ type: "listItem",
+ content: [
+ {
+ type: "paragraph",
+ content: [{ type: "text", text: "Slash menu & bubble menu" }],
+ },
+ ],
+ },
+ {
+ type: "listItem",
+ content: [
+ {
+ type: "paragraph",
+ content: [
+ { type: "text", text: "AI autocomplete (type " },
+ { type: "text", marks: [{ type: "code" }], text: "++" },
+ {
+ type: "text",
+ text: " to activate, or select from slash menu)",
+ },
+ ],
+ },
+ ],
+ },
+ {
+ type: "listItem",
+ content: [
+ {
+ type: "paragraph",
+ content: [
+ {
+ type: "text",
+ text: "Image uploads (drag & drop / copy & paste, or select from slash menu) ",
+ },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ {
+ type: "image",
+ attrs: {
+ src: "https://public.blob.vercel-storage.com/pJrjXbdONOnAeZAZ/banner-2wQk82qTwyVgvlhTW21GIkWgqPGD2C.png",
+ alt: "banner.png",
+ title: "banner.png",
+ width: null,
+ height: null,
+ },
+ },
+ { type: "horizontalRule" },
+ {
+ type: "heading",
+ attrs: { level: 3 },
+ content: [{ type: "text", text: "Learn more" }],
+ },
+ {
+ type: "taskList",
+ content: [
+ {
+ type: "taskItem",
+ attrs: { checked: false },
+ content: [
+ {
+ type: "paragraph",
+ content: [
+ { type: "text", text: "Star us on " },
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://github.com/steven-tey/novel",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "GitHub",
+ },
+ ],
+ },
+ ],
+ },
+ {
+ type: "taskItem",
+ attrs: { checked: false },
+ content: [
+ {
+ type: "paragraph",
+ content: [
+ { type: "text", text: "Install the " },
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://www.npmjs.com/package/novel",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "NPM package",
+ },
+ ],
+ },
+ ],
+ },
+ {
+ type: "taskItem",
+ attrs: { checked: false },
+ content: [
+ {
+ type: "paragraph",
+ content: [
+ {
+ type: "text",
+ marks: [
+ {
+ type: "link",
+ attrs: {
+ href: "https://vercel.com/templates/next.js/novel",
+ target: "_blank",
+ },
+ },
+ ],
+ text: "Deploy your own",
+ },
+ { type: "text", text: " to Vercel" },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ ],
+};