{"id":23366729,"url":"https://github.com/d8corp/innet-portal","last_synced_at":"2025-04-07T23:16:07.959Z","repository":{"id":57118738,"uuid":"327022689","full_name":"d8corp/innet-portal","owner":"d8corp","description":"innet plugin to render content into HTML Element","archived":false,"fork":false,"pushed_at":"2021-06-17T20:24:41.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:03:57.983Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d8corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-05T14:25:28.000Z","updated_at":"2021-06-17T20:24:20.000Z","dependencies_parsed_at":"2022-08-22T22:20:51.386Z","dependency_job_id":null,"html_url":"https://github.com/d8corp/innet-portal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-portal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-portal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-portal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-portal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/innet-portal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464160,"owners_count":20942965,"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":"2024-12-21T14:17:27.726Z","updated_at":"2025-04-07T23:16:07.939Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/d8corp/innet/main/logo.svg\" align=\"left\" width=\"90\" height=\"90\" alt=\"InnetJs logo by Mikhail Lysikov\"\u003e\n\n# \u0026nbsp; @innet/portal\n\n\u0026nbsp;\n\n[![NPM](https://img.shields.io/npm/v/@innet/portal.svg)](https://github.com/d8corp/innet-portal/blob/master/CHANGELOG.md)\n[![minzipped size](https://img.shields.io/bundlephobia/minzip/@innet/portal)](https://bundlephobia.com/result?p=@innet/portal)\n[![downloads](https://img.shields.io/npm/dm/@innet/portal.svg)](https://www.npmjs.com/package/@innet/portal)\n[![license](https://img.shields.io/npm/l/@innet/portal)](https://github.com/d8corp/innet-portal/blob/master/LICENSE)\n\nThis plugin helps to render a content into separate HTML Element.\n\n### Installation\nnpm\n```bash\nnpm i @innet/portal\n```\nyarn\n```bash\nyarn add @innet/portal\n```\n\nOr you can include the scripts into the `head`.\n```html\n\u003c!-- Dependencies (watchState, innet) --\u003e\n\u003cscript defer src=\"https://unpkg.com/watch-state/watch-state.min.js\"\u003e\u003c/script\u003e\n\u003cscript defer src=\"https://unpkg.com/innet/innet.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Target (innetPortal) --\u003e\n\u003cscript defer src=\"https://unpkg.com/@innet/portal/innet-portal.min.js\"\u003e\u003c/script\u003e\n```\n\n### Using\nProvide the plugin to `innet`\n```typescript jsx\nimport innet from 'innet'\nimport portal from '@innet/portal'\nimport app from './app'\n\ninnet(app, undefined, {portal})\n```\n`app.tsx`\n```typescript jsx\nimport innet from 'innet'\n\nconst div = document.createElement('div')\n\nexport default (\n  \u003cdiv\u003e\n    test1\n    \u003cportal parent={div}\u003e\n      test2\n    \u003c/portal\u003e\n  \u003c/div\u003e\n)\n```\n\n### Issues\nIf you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet-portal/issues).  \n[![issues](https://img.shields.io/github/issues-raw/d8corp/innet-portal)](https://github.com/d8corp/innet-portal/issues)\n\u003e ---\n[![stars](https://img.shields.io/github/stars/d8corp/innet-portal?style=social)](https://github.com/d8corp/innet-portal/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/innet-portal?style=social)](https://github.com/d8corp/innet-portal/watchers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-portal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Finnet-portal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-portal/lists"}