diff --git a/src/App.vue b/src/App.vue index da537dc8d7bbc6dea124eccb09244d81e09fe07f..63d3a94005c42d919eacd6255417bd88436ebaf3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,8 +9,6 @@ import { RouterLink } from "vue-router"; <RouterLink to="/kubo">Kubo</RouterLink> <RouterLink to="/index">Index</RouterLink> <RouterLink to="/diff">Diff</RouterLink> - <RouterLink to="/io">IO</RouterLink> - <RouterLink to="/cesium-plus">Cesium+</RouterLink> </nav> </header> @@ -30,7 +28,6 @@ header { nav { min-width: 600px; - font-size: 12px; text-align: center; margin-top: 2rem; } diff --git a/src/assets/main.css b/src/assets/main.css index c139e8a2439cec66899ae6e440c41cd26e8c3ad8..cdde0d2df5dfef37b7ad62c7ee524466da5c4395 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -4,7 +4,6 @@ max-width: 1280px; margin: 0 auto; padding: 2rem; - font-weight: normal; } .mono { @@ -15,8 +14,6 @@ a, .green { text-decoration: none; color: hsla(160, 100%, 37%, 1); - transition: 0.4s; - padding: 3px; } @media (hover: hover) { diff --git a/src/components/IndexNode.vue b/src/components/IndexNode.vue index d0ba1c6cca246036faf83fb947eb4c8e82da72cf..e5c5c94391d84ec3fb2f31a19b7875a7d7a87e00 100644 --- a/src/components/IndexNode.vue +++ b/src/components/IndexNode.vue @@ -44,6 +44,7 @@ onload() <template> <small class="mono tiny">{{ parentkey }}</small> <span class="mono">{{ nodekey }}</span> <a :href="exploreUrl(cid)" target="_blank">{{ inode ? 'cid' : 'leaf' }}</a> + <button v-if="inode" @click="unfolded = !unfolded">{{ unfolded ? '-' : '+' }}</button> <template v-if="inode && unfolded"> <ul> diff --git a/src/views/CplusView.vue b/src/views/CplusView.vue index 838731be234998cd9d1a31aa72c95ac76bbe14eb..e103b0685373ffdf6d375da0841ffc5a24c01311 100644 --- a/src/views/CplusView.vue +++ b/src/views/CplusView.vue @@ -68,6 +68,7 @@ async function processCesiumPlusProfile(obj: CplusProfile): Promise<CID> { </script> <template> + <p>⚠️ not used anymore</p> <h1>Cesium Plus</h1> <h2>Import from file</h2> <p>Import data from Cesium+</p> diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 3137835ce2167683840d1437b8ad6b56cb37d07d..436f41b2985396cb7201740ddafcaa0b279eb8fb 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -11,16 +11,16 @@ <h2>Main menu</h2> <ul> <li><RouterLink to="/">Home</RouterLink> – here</li> - <li><RouterLink to="/kubo">Kubo</RouterLink></li> - <li><RouterLink to="/index">Index</RouterLink></li> - <li><RouterLink to="/diff">Diff</RouterLink></li> - <li><RouterLink to="/io">IO</RouterLink></li> - <li><RouterLink to="/cesium-plus">Cesium+</RouterLink></li> + <li><RouterLink to="/kubo">Kubo</RouterLink> – Kubo node stats and keys</li> + <li><RouterLink to="/index">Index</RouterLink> – inspect AMT</li> + <li><RouterLink to="/diff">Diff</RouterLink> – compare two AMT</li> </ul> <h2>Not in main menu</h2> <ul> - <li><RouterLink to="/feed">Feed</RouterLink></li> - <li><RouterLink to="/ipns">IPNS</RouterLink></li> + <li><RouterLink to="/feed">Feed</RouterLink> – watch incoming messages</li> + <li><RouterLink to="/ipns">IPNS</RouterLink> – edit/reset IPNS entries</li> + <li><RouterLink to="/io">IO</RouterLink> – import/exort (discontinued)</li> + <li><RouterLink to="/cesium-plus">Cesium+</RouterLink> – Cplus import (discontinued)</li> </ul> </main> </template> diff --git a/src/views/IndexView.vue b/src/views/IndexView.vue index 91507a4299e75ea56a71fa337eb67bcd4289b03f..ab9ffbd8575bea75ce7e5cbfb202215805e9dfcd 100644 --- a/src/views/IndexView.vue +++ b/src/views/IndexView.vue @@ -4,7 +4,8 @@ import { CID } from 'multiformats' import { ref, type Ref, computed, onMounted } from 'vue' import IndexNode from '../components/IndexNode.vue' import IndexHistory from '../components/IndexHistory.vue' -import {ddKeys} from '../indexer/ipns' +import { ddKeys } from '../indexer/ipns' +import { BASE } from '../consts' const rootNodeMsg = ref('') const rootNodeCid: Ref<CID | null> = ref(null) @@ -54,7 +55,16 @@ onMounted(() => { <template> <div> <h1>Index</h1> - + <p> + The main index is the base of the datapod documents. It is an append-only base {{ BASE }} Timestamp-<a + href="https://en.wikipedia.org/wiki/Array_mapped_trie" + >AMT</a + >. It only contains metadata and does not require the linked data to be pinned. + </p> + <p> + The datapod also has secondary indexes to keep track on what should be pinned and added to the database. This is + for example the case of the profiles AMT that uses pubkeys as keys. + </p> <h2>Tree preview</h2> <p>You can enter the CID of a node to preview its tree. Click on "+" to expand chidren.</p> <div> diff --git a/src/views/IoView.vue b/src/views/IoView.vue index 9266319e50437551a71e970b1003e2dff687acb0..640e7590b920f90386f4988c8cd8c021b65d6a5b 100644 --- a/src/views/IoView.vue +++ b/src/views/IoView.vue @@ -70,6 +70,7 @@ resolve() <template> <div> + <p>⚠️ not used anymore</p> <h1>Import / Export</h1> <p>This page allows to import (re-index) or export (list all entries).</p> <h2>Export</h2>