mirror of
https://github.com/meshcore-dev/map.meshcore.dev.git
synced 2026-04-20 22:13:50 +00:00
show inserted/updated instead of last adverted
This commit is contained in:
parent
886e8d3c6d
commit
21103bf4fa
1 changed files with 7 additions and 3 deletions
10
src/map.js
10
src/map.js
|
|
@ -1,11 +1,12 @@
|
|||
import { createApp, reactive, ref, computed, onMounted } from '../lib/vue.esm-browser.js';
|
||||
|
||||
const apiUrl = 'https://map.meshcore.dev/api/v1/nodes';
|
||||
const keyOrder = ['adv_name', 'type', 'link', 'last_advert', 'public_key', 'coords', 'params' ]
|
||||
const keyOrder = ['adv_name', 'type', 'link', 'inserted_date', 'updated_date', 'public_key', 'coords', 'params' ]
|
||||
const humanLabel = {
|
||||
coords: 'Coordinates',
|
||||
adv_name: 'Name',
|
||||
last_advert: 'Last heard',
|
||||
inserted_date: 'Inserted',
|
||||
updated_date: 'Last updated',
|
||||
public_key: 'Public key',
|
||||
type: 'Node type',
|
||||
params: 'Radio params',
|
||||
|
|
@ -20,7 +21,10 @@ const types = {
|
|||
};
|
||||
|
||||
const humanValue = {
|
||||
last_advert(val) {
|
||||
inserted_date(val) {
|
||||
return new Date(val).toLocaleString();
|
||||
},
|
||||
updated_date(val) {
|
||||
return new Date(val).toLocaleString();
|
||||
},
|
||||
coords(val) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue