+<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/demos/">Demos</a></li><li><a href="/demos/city-database/">City Database</a></li></ul></nav><section class="s1" id="/demos/city-database/" data-id="CD"><h1>City Database</h1><iframe srcdoc="<html><head><script src="/umd/react.production.min.js"></script><script src="/umd/react-dom.production.min.js"></script><script src="/umd/tinybase.js"></script><script src="/umd/ui-react.js"></script><script src="/umd/ui-react-dom-debug.js"></script><style>#loading{animation:spin 1s infinite linear;height:2rem;margin:40vh auto;width:2rem}#loading::before{content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="2rem" viewBox="0 0 100 100"><path d="M50 10A40 40 0 1 1 10 50" stroke="black" fill="none" stroke-width="4" /></svg>')}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}main{padding:.5rem}table{border-collapse:collapse;font-size:inherit;line-height:inherit;margin-top:.5rem;table-layout:fixed;width:100%}table caption{text-align:left}table caption button{border:0;margin-right:.25rem}table td,table th{overflow:hidden;padding:.15rem .5rem .15rem 0;white-space:nowrap}table th{border:solid #ddd;border-width:1px 0;cursor:pointer;text-align:left;width:15%}table th:nth-child(1){width:25%}table td{border-bottom:1px solid #eee}@font-face{font-family:Inter;src:url(https://tinybase.org/fonts/inter.woff2) format('woff2')}*{box-sizing:border-box}body{user-select:none;font-family:Inter,sans-serif;letter-spacing:-.04rem;font-size:.8rem;line-height:1.5rem;margin:0;color:#333}</style></head><body></body><script>(()=>{const i=React["createElement"],n=TinyBase["createStore"],{Provider:s,useCreateStore:o}=TinyBaseUiReact,{useMemo:l,useState:c}=React,{SortedTableInHtmlTable:t,StoreInspector:r}=TinyBaseUiReactDomDebug,e=()=>{const t=o(n),[e,a]=c(!0);return l(async()=>{await p(t),a(!1)},[]),i(s,{store:t},i(e?d:u,null),i(r,null))},d=(addEventListener("load",()=>ReactDOM.createRoot(document.body).render(i(e,null))),()=>i("div",{id:"loading"})),u=()=>i("main",null,i(y,null)),m=/^[\d\.-]+$/,p=async i=>{const t=(await(await fetch("https://tinybase.org/assets/cities.tsv")).text()).split(`
0 commit comments