MCPcopy Index your code
hub / github.com/Fernanda-Kipper/text-editor

github.com/Fernanda-Kipper/text-editor @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
76 symbols 196 edges 42 files 0 documented · 0% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Text Editor ✍

react Underdevelopment

TechnologiesGetting StartedContributeLicense

This application is a online Text Editor, where users can create and edit markdown files.

<img src="https://github.com/Fernanda-Kipper/text-editor/raw/main/github/assets/file-edit.png" width="300px">
<img src="https://github.com/Fernanda-Kipper/text-editor/raw/main/github/assets/files.png" width="300px">

Technologies

Client:

Built using React JS, this interface and the layout ware made from scratch by me.

API

For building the server of this application, I used Hy Graph that is an CMS that allow us to build GraphQL Content APIs.

🚀 Getting Started

Prerequisites

  • Node 12
  • Git 2

Install project

git clone https://github.com/Fernanda-Kipper/text-editor.git
npm install

Environment Variables

In the root of this project, create a .env file with the keys and values located on .env.example

To get these values you need to create an Account on HyGraph and then:

  • Create a new project
  • Inside your project, go to "Project Settings"
  • Inside settings, access the tab "API Access"
  • Add all permisions

Captura de Tela 2023-03-19 às 14 54 48

  • Copy your Content API URL and use as process.env.REACT_APP_CONTENT_API_URL

Captura de Tela 2023-03-19 às 15 03 58

  • Generate an Permanent Auth Tokens and use as process.env.REACT_APP_CONTENT_API_TOKEN

Captura de Tela 2023-03-19 às 15 04 32

Start server

  //in root
  npm start

👩‍💻 Contribute

If you want to contribute, clone this repo, create your work branch and get your hands dirty!

git clone https://github.com/Fernanda-Kipper/text-editor.git
git checkout -b feature/NAME

At the end, open a Pull Request explaining the problem solved or feature made, if exists, append screenshot of visual modifications and wait for the review!

How to create a Pull Request

Commit pattern

📃 License

This project is under MIT license

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
src/components/file-item.tsx
Props (Interface)
(no doc)
src/context/editor-context.tsx
MutationInput (Interface)
(no doc)
src/hooks/useFileDelete.ts
Props (Interface)
(no doc)
src/components/modal-new-file.tsx
Props (Interface)
(no doc)
src/components/page-wrapper.tsx
LineProps (Interface)
(no doc)
src/components/editor/line.tsx

Core symbols most depended-on inside this repo

getSelectionText
called by 6
src/components/editor/editor-header.tsx
useEditorContext
called by 5
src/hooks/useEditorContext.ts
customFetcher
called by 4
src/services/fetcher.tsx
handleOpen
called by 3
src/components/editor/editor-header.tsx
generatePublishQuery
called by 3
src/utils/generate-publish-query.ts
handleNavigate
called by 2
src/components/aside-nav.tsx
setFocusOnTheEnd
called by 2
src/components/editor/editor-header.tsx
useEditFile
called by 2
src/hooks/useFileEdit.ts

Shape

Function 68
Interface 6
Enum 1
Method 1

Languages

TypeScript100%

Modules by API surface

src/components/editor/editor-header.tsx12 symbols
src/hooks/useFileEdit.ts7 symbols
src/hooks/useFileDelete.ts6 symbols
src/components/file-item.tsx5 symbols
src/context/editor-context.tsx4 symbols
src/components/modal-new-file.tsx4 symbols
src/components/aside-nav.tsx4 symbols
src/hooks/useFiles.ts3 symbols
src/hooks/useFile.ts3 symbols
src/hooks/useCreateFile.ts3 symbols
src/components/editor/line.tsx3 symbols
src/pages/tests/file-lists.spec.tsx2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add text-editor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact