Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
1{% macro links(target, collection, path) %} 2 <form method="get" action="/links"> 3 <pre class="code"><strong>GET</strong> /links 4 ?target= <input type="text" name="target" value="{{ target }}" placeholder="target" /> 5 &collection= <input type="text" name="collection" value="{{ collection }}" placeholder="collection" /> 6 &path= <input type="text" name="path" value="{{ path }}" placeholder="path" /> <button type="submit">get links</button></pre> 7 </form> 8{% endmacro %} 9 10 11{% macro dids(target, collection, path) %} 12 <form method="get" action="/links/distinct-dids"> 13 <pre class="code"><strong>GET</strong> /links/distinct-dids 14 ?target= <input type="text" name="target" value="{{ target }}" placeholder="target" /> 15 &collection= <input type="text" name="collection" value="{{ collection }}" placeholder="collection" /> 16 &path= <input type="text" name="path" value="{{ path }}" placeholder="path" /> <button type="submit">get links</button></pre> 17 </form> 18{% endmacro %} 19 20 21{% macro links_count(target, collection, path) %} 22 <form method="get" action="/links/count"> 23<pre class="code"><strong>GET</strong> /links/count 24 ?target= <input type="text" name="target" value="{{ target }}" placeholder="target" /> 25 &collection= <input type="text" name="collection" value="{{ collection }}" placeholder="collection" /> 26 &path= <input type="text" name="path" value="{{ path }}" placeholder="path" /> <button type="submit">get links count</button></pre> 27 </form> 28{% endmacro %} 29 30 31{% macro dids_count(target, collection, path) %} 32 <form method="get" action="/links/count/distinct-dids"> 33<pre class="code"><strong>GET</strong> /links/count/distinct-dids 34 ?target= <input type="text" name="target" value="{{ target }}" placeholder="target" /> 35 &collection= <input type="text" name="collection" value="{{ collection }}" placeholder="collection" /> 36 &path= <input type="text" name="path" value="{{ path }}" placeholder="path" /> <button type="submit">get links count</button></pre> 37 </form> 38{% endmacro %} 39 40 41{% macro links_all_count(target) %} 42 <form method="get" action="/links/all/count"> 43 <pre class="code"><strong>GET</strong> /links/all/count?target=<input type="text" name="target" value="{{ target }}" placeholder="target" /> <button type="submit">get all target link counts</button></pre> 44 </form> 45{% endmacro %} 46 47 48{% macro explore_links(target) %} 49 <form method="get" action="/links/all"> 50 <pre class="code"><strong>GET</strong> /links/all?target=<input type="text" name="target" value="{{ target }}" placeholder="target" /> <button type="submit">get all target link counts</button></pre> 51 </form> 52{% endmacro %}