earthstar-project / earthstar-status Goto Github PK
View Code? Open in Web Editor NEWA simple app to see the latest status of your friends in an Earthstar workspace.
Home Page: https://earthstar-status.netlify.app/
A simple app to see the latest status of your friends in an Earthstar workspace.
Home Page: https://earthstar-status.netlify.app/
Use something like https://www.npmjs.com/package/react-linkify to turn URLs in statuses into actual links
If the online indicator was in a special place farther to the left, then you couldn't fake it by just putting an emoji in your username.
One way: the OnlineIndicator should always return a <span>
no matter what, but maybe the span can be empty. And that span should have a fixed width like width: 5ch
. That way the username will always be pushed over the same amount no matter what the online indicator is doing.
https://github.com/earthstar-project/earthstar-status/blob/main/src/App.tsx#L131-L154
The heartbeat writer is in a setInterval
which runs every 20 seconds, but it should also run right away when the page is first loaded.
Pull the contents of the setInterval
out into a smaller function called writeHeartbeat
, and run that function in the setInterval as well as just before it, as the first line inside the useEffect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.