mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 15:28:26 +00:00
* Time to become our TGUI God. * Visually sprucing the copyrights. These shouldn't be ignored :) * babababa * https://github.com/tgstation/tgstation/pull/50422 * dooootdooot * Holy fuck Updates the tools folder Updates our build tooling Updates TGUI MASSIVELY I'm going to go scream in a hole now * ?? * Was it this dum thing? * orrrr * It's this isn't it * Did it manually * hubah * TGUI Changelog * oops * What if I use the original? * Lets try this again * Shit commenting out for now * asdasd * Fuck it use the old one and remember to replace later * Updates yarn.lock * Lets try something horrid * Nope it HATES THAT * fucc * The great eslinting * HOLY SHIT * Final? * ? * asd tgstation/tgstation/pull/59914 tgstation/tgstation/pull/66317 * Improved Asset handling. * Oops * Subsystem stuff * Recompiles the Changelong again. * Finally Fixed Communicators * Compiled Changelogs... AGAIN
33 lines
1001 B
Plaintext
33 lines
1001 B
Plaintext
/datum/changelog
|
|
var/static/list/changelog_items = list()
|
|
|
|
/datum/changelog/ui_state()
|
|
return GLOB.always_state
|
|
|
|
/datum/changelog/ui_interact(mob/user, datum/tgui/ui)
|
|
ui = SStgui.try_update_ui(user, src, ui)
|
|
if (!ui)
|
|
ui = new(user, src, "Changelog")
|
|
ui.open()
|
|
|
|
/datum/changelog/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(action == "get_month")
|
|
var/datum/asset/changelog_item/changelog_item = changelog_items[params["date"]]
|
|
if (!changelog_item)
|
|
changelog_item = new /datum/asset/changelog_item(params["date"])
|
|
changelog_items[params["date"]] = changelog_item
|
|
return ui.send_asset(changelog_item)
|
|
|
|
/datum/changelog/ui_static_data()
|
|
var/list/data = list( "dates" = list() )
|
|
var/regex/ymlRegex = regex(@"\.yml", "g")
|
|
|
|
for(var/archive_file in flist("[global.config.directory]/../html/changelogs/archive/"))
|
|
var/archive_date = ymlRegex.Replace(archive_file, "")
|
|
data["dates"] = list(archive_date) + data["dates"]
|
|
|
|
return data
|