From 250494e936be0eea7aafbcec8cd1d8f33b504cb1 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Fri, 3 May 2024 17:46:55 +0200
Subject: [PATCH] clean up

---
 src/App.vue                  |  3 ---
 src/assets/main.css          |  3 ---
 src/components/IndexNode.vue |  1 +
 src/views/CplusView.vue      |  1 +
 src/views/HomeView.vue       | 14 +++++++-------
 src/views/IndexView.vue      | 14 ++++++++++++--
 src/views/IoView.vue         |  1 +
 7 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index da537dc..63d3a94 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 c139e8a..cdde0d2 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 d0ba1c6..e5c5c94 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>
+  &nbsp;
   <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 838731b..e103b06 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 3137835..436f41b 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 91507a4..ab9ffbd 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 9266319..640e759 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>
-- 
GitLab