{"id":21942805,"url":"https://github.com/react-declarative/offline-dev-kit","last_synced_at":"2025-03-22T15:41:19.141Z","repository":{"id":114135189,"uuid":"467120925","full_name":"react-declarative/offline-dev-kit","owner":"react-declarative","description":"Offline dev kit based on import maps and htm jsx factory. No node_modules need anymore! Full material-ui lib without bundlers!","archived":false,"fork":false,"pushed_at":"2022-08-24T18:20:24.000Z","size":1284,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-04T00:17:51.739Z","etag":null,"topics":["css-in-js","importmaps","javascript","material-ui","react","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://react-declarative.github.io","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/react-declarative.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":"2022-03-07T14:09:57.000Z","updated_at":"2024-05-29T22:17:12.466Z","dependencies_parsed_at":"2023-06-14T06:30:23.467Z","dependency_job_id":null,"html_url":"https://github.com/react-declarative/offline-dev-kit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Foffline-dev-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Foffline-dev-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Foffline-dev-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Foffline-dev-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-declarative","download_url":"https://codeload.github.com/react-declarative/offline-dev-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244981009,"owners_count":20542287,"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":["css-in-js","importmaps","javascript","material-ui","react","vanilla-javascript"],"created_at":"2024-11-29T03:26:41.102Z","updated_at":"2025-03-22T15:41:19.116Z","avatar_url":"https://github.com/react-declarative.png","language":"JavaScript","readme":"# offline-dev-kit\n\n\u003e Offline dev kit based on [import maps](https://github.com/WICG/import-maps) and [htm jsx factory](https://github.com/developit/htm). No node_modules need anymore! Full [material-ui](https://github.com/mui/material-ui) lib without bundlers!\n\n## Contribute\n\n\u003e [!IMPORTANT]\n\u003e Made by using [react-declarative](https://github.com/react-declarative/react-declarative) to solve your problems. **⭐Star** and **💻Fork** It on github will be appreciated\n\n## Usage\n\nRun in command line\n\n```\nnpm install\nnpm run build\nnpm start\n```\n\n## Code sample\n\nImport map\n\n```html\n\u003cscript type=\"importmap\"\u003e\n  {\n    \"imports\": {\n      \"react\": \"/dist/react.esm.js\",\n      ...\n    }\n  }\n\u003c/script\u003e\n```\n\nES6 modules in modern browser\n\n```html\n\u003cscript type=\"module\"\u003e\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { Scaffold, Switch } from 'react-declarative';\nimport { createMemoryHistory } from 'history';\n\nimport options from '../config/navbar.js';\nimport routes from '../config/routes.js';\n\nconst history = createMemoryHistory();\n\nconst App = () =\u003e {\n\n    const handleNavClick = (name) =\u003e {\n        if (name === 'home-page') {\n            history.push('/');\n        } else if (name === 'profiles-page') {\n            history.push('/profiles');\n        }\n    };\n\n    return htm`\n        \u003c${Scaffold} \n            title=\"InfoLink CRM\"\n            onOptionClick=${handleNavClick}\n            options=${options}\n        \u003e\n            \u003c${Switch}\n                Loading=${() =\u003e htm`\u003cp\u003eChecking permissions (mock)\u003c/p\u003e`}\n                NotFound=${() =\u003e htm`\u003cp\u003eNot found(\u003c/p\u003e`}\n                history=${history}\n                items=${routes}\n            /\u003e\n        \u003c//\u003e\n    `;\n};\n\nReactDOM.render(htm`\u003cApp /\u003e`, document.getElementById('root'));\n\u003c/script\u003e\n```\n\nCheck the full source code in [example](./example/) folder\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Foffline-dev-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-declarative%2Foffline-dev-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Foffline-dev-kit/lists"}