{"id":20078762,"url":"https://github.com/wpdas/alem-bos-gateway","last_synced_at":"2025-03-02T13:14:49.060Z","repository":{"id":227182242,"uuid":"770200356","full_name":"wpdas/alem-bos-gateway","owner":"wpdas","description":"Além Library BOS Gateway","archived":false,"fork":false,"pushed_at":"2024-04-02T15:06:20.000Z","size":544,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T01:11:50.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://alem-bos-gateway.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wpdas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-11T05:55:15.000Z","updated_at":"2024-03-11T06:05:52.000Z","dependencies_parsed_at":"2025-01-13T01:11:34.954Z","dependency_job_id":"a9a68e5e-397c-41cc-8f2c-cbefa0c24f1f","html_url":"https://github.com/wpdas/alem-bos-gateway","commit_stats":null,"previous_names":["wpdas/alem-bos-gateway"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Falem-bos-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Falem-bos-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Falem-bos-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2Falem-bos-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpdas","download_url":"https://codeload.github.com/wpdas/alem-bos-gateway/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241509658,"owners_count":19974071,"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-11-13T15:16:32.575Z","updated_at":"2025-03-02T13:14:49.034Z","avatar_url":"https://github.com/wpdas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Browser\n\nA framework for reusable components to render and modify SocialDB by Near Social.\n\n## Setup \u0026 Development\n\nInitialize repo:\n```\nyarn\n```\n\nStart development version:\n```\nyarn start\n```\n\n## Widget example\n\nProfile view \n\n```jsx\nlet accountId = props.accountId || \"eugenethedream\";\nlet profile = socialGetr(`${accountId}/profile`);\n\n(\n  \u003cdiv\u003e\n    \u003cimg src={profile.image.url}/\u003e\n    \u003cspan\u003e{profile.name}\u003c/span\u003e \u003cspan\u003e(@{accountId})\u003c/span\u003e\n  \u003c/div\u003e\n);\n```\n\n\nProfile editor \n\n```jsx\nlet accountId = context.accountId;\n\nif (!accountId) {\n  return \"Please sign in with NEAR wallet\";\n}\n\nconst profile = socialGetr(`${accountId}/profile`);\n\nif (profile === null) {\n  return \"Loading\";\n}\n\ninitState({\n  name: profile.name,\n  url: profile.image.url,\n});\n\nconst data = {\n  profile: {\n    name: state.name,\n    image: {\n      url: state.url,\n    },\n  },\n};\n\nreturn (\n  \u003cdiv\u003e\n    \u003cdiv\u003eaccount = {accountId}\u003c/div\u003e\n    \u003cdiv\u003e\n      Name:\n      \u003cinput type=\"text\" value={state.name} /\u003e\n    \u003c/div\u003e\n    \u003cdiv\u003e\n      Image URL:\n      \u003cinput type=\"text\" value={state.url} /\u003e\n    \u003c/div\u003e\n    \u003cdiv\u003ePreview\u003c/div\u003e\n    \u003cdiv\u003e\n      \u003cimg src={state.url} alt=\"profile image\" /\u003e {state.name}\n    \u003c/div\u003e\n    \u003cdiv\u003e\n      \u003cCommitButton data={data}\u003eSave profile\u003c/CommitButton\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Falem-bos-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpdas%2Falem-bos-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Falem-bos-gateway/lists"}