{"id":15427791,"url":"https://github.com/codingshot/boshacks","last_synced_at":"2025-03-28T05:14:03.697Z","repository":{"id":184554156,"uuid":"670370382","full_name":"codingshot/boshacks","owner":"codingshot","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-17T06:42:36.000Z","size":456,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T05:44:57.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://boshacks.com","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/codingshot.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":"2023-07-24T22:53:01.000Z","updated_at":"2023-12-20T09:28:50.000Z","dependencies_parsed_at":"2023-07-29T00:36:29.878Z","dependency_job_id":"6450eecd-22c1-4803-80ea-33495400bc9c","html_url":"https://github.com/codingshot/boshacks","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"c35f71ecea062db9456de75a21193e930a739519"},"previous_names":["codingshot/boshacks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fboshacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fboshacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fboshacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingshot%2Fboshacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingshot","download_url":"https://codeload.github.com/codingshot/boshacks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972748,"owners_count":20702723,"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-10-01T18:01:30.905Z","updated_at":"2025-03-28T05:14:03.670Z","avatar_url":"https://github.com/codingshot.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%2Fcodingshot%2Fboshacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingshot%2Fboshacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingshot%2Fboshacks/lists"}