{"id":18537924,"url":"https://github.com/easywebapp/filecell","last_synced_at":"2025-05-15T01:35:06.214Z","repository":{"id":57235405,"uuid":"455516249","full_name":"EasyWebApp/FileCell","owner":"EasyWebApp","description":"File Uploader element based on Web Components \u0026 WebCell v2","archived":false,"fork":false,"pushed_at":"2022-02-22T17:11:06.000Z","size":155,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T23:48:47.291Z","etag":null,"topics":["component","element","file","upload","web","web-cell"],"latest_commit_sha":null,"homepage":"https://web-cell.dev/FileCell/","language":"TypeScript","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/EasyWebApp.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://paypal.me/TechQuery","https://tech-query.me/image/TechQuery-Alipay.jpg"]}},"created_at":"2022-02-04T11:05:31.000Z","updated_at":"2022-02-04T14:20:35.000Z","dependencies_parsed_at":"2022-09-04T21:21:04.491Z","dependency_job_id":null,"html_url":"https://github.com/EasyWebApp/FileCell","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FFileCell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FFileCell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FFileCell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyWebApp%2FFileCell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyWebApp","download_url":"https://codeload.github.com/EasyWebApp/FileCell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254257188,"owners_count":22040411,"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":["component","element","file","upload","web","web-cell"],"created_at":"2024-11-06T19:41:14.737Z","updated_at":"2025-05-15T01:35:06.183Z","avatar_url":"https://github.com/EasyWebApp.png","language":"TypeScript","funding_links":["https://paypal.me/TechQuery","https://tech-query.me/image/TechQuery-Alipay.jpg"],"categories":[],"sub_categories":[],"readme":"# FileCell\n\n**File Uploader** element based on [Web Components][1] \u0026 [WebCell v2][2]\n\n[![NPM Dependency](https://david-dm.org/EasyWebApp/FileCell.svg)][3]\n[![CI \u0026 CD](https://github.com/EasyWebApp/FileCell/workflows/CI%20\u0026%20CD/badge.svg)][4]\n\n[![NPM](https://nodei.co/npm/file-cell.png?downloads=true\u0026downloadRank=true\u0026stars=true)][5]\n\n## Example\n\n### JSX usage\n\n```tsx\nimport { documentReady, render, createCell } from 'web-cell';\nimport { FileCellProps, FileCell } from 'file-cell';\nimport { MarkdownEditor } from 'markdown-area-element';\n\nconst upload: FileCellProps['transport'] = async file =\u003e {\n    const response = await fetch('/file', {\n        method: 'POST',\n        body: file\n    });\n    const { path } = await response.json();\n\n    return { path };\n};\n\ndocumentReady.then(() =\u003e\n    render(\n        \u003cFileCell transport={upload}\u003e\n            \u003cMarkdownEditor name=\"markdown\"\u003edefault text\u003c/MarkdownEditor\u003e\n        \u003c/FileCell\u003e\n    )\n);\n```\n\n### Listen Upload event\n\nhttps://github.com/EasyWebApp/markdown-area-element/blob/d9930bb/source/Editor.tsx#L65-L68\n\n### Update File URL\n\nhttps://github.com/EasyWebApp/markdown-area-element/blob/d9930bb/source/Editor.tsx#L80-L85\n\n[1]: https://www.webcomponents.org/\n[2]: https://web-cell.dev/\n[3]: https://david-dm.org/EasyWebApp/FileCell\n[4]: https://github.com/EasyWebApp/FileCell/actions\n[5]: https://nodei.co/npm/file-cell/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasywebapp%2Ffilecell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasywebapp%2Ffilecell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasywebapp%2Ffilecell/lists"}