Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingshot/boshacks
https://github.com/codingshot/boshacks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingshot/boshacks
- Owner: codingshot
- License: unlicense
- Created: 2023-07-24T22:53:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-17T06:42:36.000Z (about 1 year ago)
- Last Synced: 2024-10-06T17:41:21.370Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://boshacks.com
- Size: 445 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Browser
A framework for reusable components to render and modify SocialDB by Near Social.
## Setup & Development
Initialize repo:
```
yarn
```Start development version:
```
yarn start
```## Widget example
Profile view
```jsx
let accountId = props.accountId || "eugenethedream";
let profile = socialGetr(`${accountId}/profile`);(
{profile.name} (@{accountId})
);
```Profile editor
```jsx
let accountId = context.accountId;if (!accountId) {
return "Please sign in with NEAR wallet";
}const profile = socialGetr(`${accountId}/profile`);
if (profile === null) {
return "Loading";
}initState({
name: profile.name,
url: profile.image.url,
});const data = {
profile: {
name: state.name,
image: {
url: state.url,
},
},
};return (
account = {accountId}
Name:
Image URL:
Preview
{state.name}
Save profile
);```