{"id":26518983,"url":"https://github.com/openlabun/componenteditor","last_synced_at":"2025-03-21T10:17:07.576Z","repository":{"id":281916911,"uuid":"847751357","full_name":"openlabun/ComponentEditor","owner":"openlabun","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T15:48:28.000Z","size":294,"stargazers_count":1,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T20:37:20.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openlabun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T13:31:31.000Z","updated_at":"2024-10-18T15:48:33.000Z","dependencies_parsed_at":"2025-03-11T20:37:25.207Z","dependency_job_id":"d03587e7-4170-4335-be8a-7dc60f680452","html_url":"https://github.com/openlabun/ComponentEditor","commit_stats":null,"previous_names":["openlabun/componenteditor"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlabun%2FComponentEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlabun%2FComponentEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlabun%2FComponentEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlabun%2FComponentEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openlabun","download_url":"https://codeload.github.com/openlabun/ComponentEditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776352,"owners_count":20508507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-21T10:17:06.684Z","updated_at":"2025-03-21T10:17:07.552Z","avatar_url":"https://github.com/openlabun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Box Link Editor\n\nSimple web application for creating and linking boxes with lines.\n\n## Setup\n\n1. Clone the repository.   \n2. Run `cd componenteditor`   \n2. Run `npm install` to install dependencies.\n3. Run `npm run dev` to start the development server.\n\n## With Docker\nTo dockerize the app:   \ndocker build -t componenteditor .   \ndocker run -d -it -p 5019:3000 --restart unless-stopped --name componenteditor-app componenteditor\n\n\n## Usage\n\n- Double-click on a box to edit its name.\n- Click and drag the small circle at the bottom right of a box to start drawing a line to another box.\n- The lines represent relationships between the boxes.\n\n## Sequence Diagram\n\n### Create Box\n```plantuml\n@startuml\nactor User\nparticipant Toolbar\nparticipant App as \"App.js\"\nparticipant Canvas\nparticipant Hook as \"useCanvas\"\n\nUser -\u003e Toolbar: Select box tool\nToolbar -\u003e App: Notify tool selection\nApp -\u003e Canvas: Set selectedTool to \"box\"\nUser -\u003e Canvas: Click on canvas\\n(x, y) #red\nCanvas -\u003e App: Trigger addBox(x, y)\nApp -\u003e Hook: addBox(x, y) #blue\nHook -\u003e App: Box added at\\n(x, y)\nApp -\u003e Canvas: Update canvas with new box\n@enduml\n```\n\n### Edit property of Box\n```plantuml\n@startuml\nactor User\nparticipant Canvas\nparticipant App as \"App.js\"\nparticipant Box\nparticipant PropertiesPanel\nparticipant Hook as \"useCanvas\"\n\nUser -\u003e Canvas: Click on a box to select it #red\nCanvas -\u003e App: Notify box selection\nApp -\u003e Hook: setSelectedBox(boxId) #blue\nHook -\u003e App: Update selected box in state\nApp -\u003e PropertiesPanel: Display selected box details\nUser -\u003e PropertiesPanel: Edit box name #green\nPropertiesPanel -\u003e App: Trigger updateBox(boxId, { name: newName }) #orange\nApp -\u003e Hook: updateBox(boxId, { name: newName })\nHook -\u003e App: Box name updated\nApp -\u003e Canvas: Update box name on canvas\n@enduml\n```\n\n### Delete Box\n```plantuml\n@startuml\nactor User\nparticipant Canvas\nparticipant App as \"App.js\"\nparticipant Hook as \"useCanvas\"\n\nUser -\u003e Canvas: Click on a box to select it #red\nCanvas -\u003e App: Notify box selection\nApp -\u003e Hook: setSelectedBox(boxId) #blue\nUser -\u003e App: Press Delete Key #green\nApp -\u003e Hook: deleteBox(boxId) #orange\nHook -\u003e App: Box deleted\nApp -\u003e Canvas: Remove box from canvas\n@enduml\n```\n\n### Create Line\n```plantuml\n@startuml\nactor User\nparticipant Toolbar\nparticipant App as \"App.js\"\nparticipant Canvas\nparticipant Box\nparticipant Hook as \"useCanvas\"\nparticipant Line as \"Line.jsx\"\n\nUser -\u003e Toolbar: Select line tool\nToolbar -\u003e App: Notify tool selection\nApp -\u003e Canvas: Set selectedTool to \"line\"\n\nUser -\u003e Box: Click on first box\nBox -\u003e Canvas: Notify box selection\nCanvas -\u003e App: Set lineStartBoxId(firstBoxId)\nApp -\u003e Hook: Store startBoxId\n\nUser -\u003e Box: Click on second box\nBox -\u003e Canvas: Notify box selection\nCanvas -\u003e App: Set lineEndBoxId(secondBoxId)\nApp -\u003e Hook: addLine(startBoxId, secondBoxId)\nHook -\u003e App: Line created between boxes\nApp -\u003e Canvas: Trigger line rendering\nCanvas -\u003e Line: Render line between boxes\nLine -\u003e Canvas: Line drawn on canvas\n@enduml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlabun%2Fcomponenteditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenlabun%2Fcomponenteditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlabun%2Fcomponenteditor/lists"}