main
reng 2 weeks ago
parent 03a16df356
commit 4aa167bb20
  1. 2
      Assets/Qdrant/storage/collections/data-v1/0/newest_clocks.json
  2. 2
      Assets/Qdrant/storage/collections/data-v2/0/newest_clocks.json
  3. 2
      Assets/Qdrant/storage/collections/data-v3/0/newest_clocks.json
  4. 2
      Assets/Qdrant/storage/collections/keywords_v1/0/newest_clocks.json
  5. 21
      v2/app/src/components/graph.jsx

@ -1 +1 @@
{"clocks":[{"peer_id":2200039024721645,"clock_id":3,"current_tick":5,"token":12159487072447257415},{"peer_id":2200039024721645,"clock_id":4,"current_tick":3,"token":3225682797052271524},{"peer_id":2200039024721645,"clock_id":5,"current_tick":3,"token":16737324663161229622},{"peer_id":2200039024721645,"clock_id":6,"current_tick":1,"token":9225203475475803001},{"peer_id":2200039024721645,"clock_id":0,"current_tick":31,"token":14274923382223712766},{"peer_id":2200039024721645,"clock_id":1,"current_tick":19,"token":13530503213804333634},{"peer_id":2200039024721645,"clock_id":2,"current_tick":13,"token":18171945371147883509}]} {"clocks":[{"peer_id":2200039024721645,"clock_id":3,"current_tick":5,"token":12159487072447257415},{"peer_id":2200039024721645,"clock_id":5,"current_tick":3,"token":16737324663161229622},{"peer_id":2200039024721645,"clock_id":0,"current_tick":31,"token":14274923382223712766},{"peer_id":2200039024721645,"clock_id":6,"current_tick":1,"token":9225203475475803001},{"peer_id":2200039024721645,"clock_id":1,"current_tick":19,"token":13530503213804333634},{"peer_id":2200039024721645,"clock_id":4,"current_tick":3,"token":3225682797052271524},{"peer_id":2200039024721645,"clock_id":2,"current_tick":13,"token":18171945371147883509}]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"clocks":[{"peer_id":2200039024721645,"clock_id":2,"current_tick":1,"token":9487764786059616743},{"peer_id":2200039024721645,"clock_id":1,"current_tick":3,"token":1867745747127142053},{"peer_id":2200039024721645,"clock_id":0,"current_tick":14,"token":3773126989639130100}]} {"clocks":[{"peer_id":2200039024721645,"clock_id":2,"current_tick":1,"token":9487764786059616743},{"peer_id":2200039024721645,"clock_id":0,"current_tick":14,"token":3773126989639130100},{"peer_id":2200039024721645,"clock_id":1,"current_tick":3,"token":1867745747127142053}]}

@ -110,12 +110,33 @@ export default function Graph({results}){
average_distances[group_index] = (average_distances[group_index] || 0) + revolution.radius; average_distances[group_index] = (average_distances[group_index] || 0) + revolution.radius;
const metadata=JSON.parse(results?.[index]?.payload.metadata||'{}');
let date=metadata.published_on? new Date(metadata.published_on) : null;
let date_str="";
if(date.getFullYear()<2000){
date=null;
}else{
const year = date.getFullYear();
// 0 +1 (padStart)
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hour = String(date.getHours()).padStart(2, '0');
const minute = String(date.getMinutes()).padStart(2, '0');
date_str = `/${year}/${month}/${day} ${hour}:${minute}`;
}
sendOsc('/point',JSON.stringify({ sendOsc('/point',JSON.stringify({
index: i, index: i,
// x: point[0], // x: point[0],
// y: point[1], // y: point[1],
// z: point[2], // z: point[2],
content: results?.[index]?.payload.teaser, content: results?.[index]?.payload.teaser,
// content: meta
info: `${date_str? `/${date_str}`:''}`
+`${metadata.like_count_str!='0'?`/${metadata.like_count_str} likes`:''}`
+`${metadata.reply_count_str!='0'? `/${metadata.reply_count_str} replies`:''}`,
// +`distance to keywords=${revolution.radius.toFixed(2)}`,
// dist: dist, // dist: dist,
// color: getColorByGroup(results?.[index]), // color: getColorByGroup(results?.[index]),
group: group_index, group: group_index,

Loading…
Cancel
Save