[MIRROR] Converts the first few of our UIs to typescript (#8588)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-06-28 22:05:53 +02:00
committed by GitHub
co-authored by Kashargul
parent 7ee8e61b76
commit be4aeefce3
274 changed files with 12200 additions and 8304 deletions
+1 -1
View File
@@ -229,7 +229,7 @@
for(var/datum/supply_order/SO as anything in SSsupply.shoppinglist)
supplyOrderCount++
supplyOrderData[++supplyOrderData.len] = list("Number" = SO.ordernum, "Name" = html_encode(SO.object.name), "ApprovedBy" = SO.ordered_by, "Comment" = html_encode(SO.comment))
supplyOrderData[++supplyOrderData.len] = list("Number" = SO.ordernum, "Name" = html_encode(SO.object.name), "ApprovedBy" = SO.approved_by, "Comment" = html_encode(SO.comment))
supplyData["approved"] = supplyOrderData
supplyData["approved_count"] = supplyOrderCount
+4 -1
View File
@@ -314,7 +314,9 @@
// Compile all the newscasts
for(var/datum/feed_channel/channel in news_network.network_channels)
if(!channel.censored)
var/index = 0
for(var/datum/feed_message/FM in channel.messages)
index++
var/body = replacetext(FM.body, "\n", "<br>")
news[++news.len] = list(
"channel" = channel.channel_name,
@@ -324,7 +326,8 @@
"time_stamp" = FM.time_stamp,
"has_image" = (FM.img != null),
"caption" = FM.caption,
"time" = FM.post_time
"time" = FM.post_time,
"index" = index
)
// Cut out all but the youngest three