Querying Nitter instances.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-02-04 18:15:29 -05:00
parent ae92892504
commit d6824d0c97
5 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,6 @@
accessing
instanceRows
^ (self instances at: 'hosts') collect: [:rawRow | | newRow |
newRow := OrderedCollection new.
newRow add: (rawRow at: 'url')
].

View File

@ -0,0 +1,4 @@
accessing
instances
^ STONJSON fromString: 'https://status.d420.de/api/v1/instances' asUrl retrieveContents

View File

@ -0,0 +1,10 @@
accessing
viewInstancesFor: aView
<gtView>
| columnedList |
self instances isEmptyOrNil ifTrue: [ ^ aView empty].
columnedList := aView columnedList
title: 'Instances';
items: [ self instanceRows ];
priority: 80.
^ columnedList

View File

@ -0,0 +1,11 @@
{
"commentStamp" : "",
"super" : "Object",
"category" : "Socialmetrica",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "Nitter",
"type" : "normal"
}