Commit Graph

32 Commits

Author SHA1 Message Date
Phil Morrell 79d0127c87
remove extra top-level entries
* moved to Games, Historical or dropped if already elsewhere
* manually deleted num_joined_members changes for cleaner diff
* all of :libera.chat needs to be moved to Historical
2023-12-01 18:50:00 +00:00
Phil Morrell a469dd33f6
2023-12-01 2023-12-01 17:51:30 +00:00
Phil Morrell 867ccab881
add json instructions, drop export from git 2023-12-01 17:50:18 +00:00
Phil Morrell 044b7aac14 2022-08-25 2022-08-25 16:51:26 +01:00
Phil Morrell 6fe8c75306
Merge branch 'layout' 2022-06-11 19:09:31 +01:00
Phil Morrell c6ef2e8571
Update generated list 2022-06-11 19:08:38 +01:00
Phil Morrell ac7b5f1f1e
drop empty.png 2022-06-11 19:07:50 +01:00
Phil Morrell 3aab31e404
display topic to be a bit more descriptive
* couldn't work out how to put it directly under the room name
* drop theme source since there's nothing left of it
2022-06-11 19:05:45 +01:00
Phil Morrell 137f03796b
link to alias where possible
* view.matrix.org only works on public history rooms
* start with our Space and Community expanded :p
2022-06-11 19:03:58 +01:00
Phil Morrell 79d1859d7d
Update data export and generated list
* replace `/unstable/org.matrix.msc2946/` with `/v1/`
2022-06-11 17:13:56 +01:00
Rampoina bff8655fff Update generated list 2022-04-18 01:11:00 +02:00
Rampoina f9ac9489f6 Add empty avatar image 2022-04-18 01:10:44 +02:00
Rampoina 649adce527 Add css triangle 2022-04-18 01:01:00 +02:00
Rampoina 93e20513f5 Remove repeated function in script.py 2022-04-18 00:21:15 +02:00
Rampoina 694c809dda Update generated html 2022-04-18 00:19:44 +02:00
Rampoina 6f97016c04 Add details tag 2022-04-18 00:19:31 +02:00
Rampoina 5457fa834f Simplify html and css 2022-04-18 00:09:18 +02:00
Rampoina bd7e5f68dd Simplify CSS 2022-04-17 23:16:18 +02:00
Rampoina 63d5c1e918 Merge structure changes from WIP 2022-04-17 22:31:57 +02:00
Rampoina f355d03899 Add margin to each table 2022-04-17 22:29:17 +02:00
Rampoina 74978a8ae4 Fix the structure to recursively contain spaces 2022-04-17 22:28:37 +02:00
Phil Morrell c61f0ce372
Merge branch 'wip'
* no real conflicts, just an additional function for script.py
2022-04-17 18:10:17 +01:00
Phil Morrell a343353aa0
generate list.html 2022-04-17 18:09:37 +01:00
Rampoina d0bda2688b Merge changes from master 2022-04-17 18:07:14 +02:00
Rampoina 2f626d7982 Add avatars and urls 2022-04-17 17:56:33 +02:00
Phil Morrell a0ff199506
transform the API json into a usable datastructure
* index by room_id and recursively build the Space hierarchy
* not proper tail recursion, and uses a global variable for now
* FlightGear Republic is both child and parent of FlightGear and JSBSim
* as proof of concept, print out the room name at correct depth
2022-04-17 14:27:35 +01:00
Phil Morrell e451a10bf3
refactor python to support multiple actions
* executable, license header
* prefer `with open` style to auto-close file handles
* keep hardcoding within __main__
2022-04-17 14:14:22 +01:00
Phil Morrell 585fde2898
update spaces json from matrix-client.matrix.org 2022-04-17 13:55:52 +01:00
Phil Morrell f103ce8649
update spaces json from API
* paginated, append `&from=$FROM` and repeat until "null"

    SPACE='!IdUUdKALNzBLKEjvbP:matrix.org'
    URL="https://freedombox.emorrp1.name/_matrix/client/unstable/org.matrix.msc2946/rooms/$SPACE/hierarchy?access_token=$TOKEN"
    FROM=$(curl "$URL" | tee -a hierarchy.json | jq -r .next_batch); echo $FROM
    jq -s 'map(.rooms) | add' hierarchy.json > libregamingspaces.json
2022-02-12 15:09:53 +00:00
Rampoina 9fc2bcc671 Add license comment 2022-01-16 20:18:13 +01:00
Rampoina 775b89bd09 Add script 2022-01-16 20:14:03 +01:00
Rampoina 3b49038034 first commit 2022-01-15 14:40:52 +01:00