Coffeescript; Bower; Gulp; asset_cache

We now write frontend code in Coffeescript, alongside our LESS.
PostCSS adds hacks to make CSS work on old versions of IE.
Bower is used to manage dependencies.
Gulp is used to build the code.

Images are dropped in favor of SVG or CSS effects.

NanoUI is now a 'simple' asset in the asset_cache
This commit is contained in:
Bjorn Neergaard
2015-12-15 13:09:51 -06:00
parent 979e71ea26
commit f089428e63
72 changed files with 1551 additions and 2031 deletions
+1 -2
View File
@@ -272,8 +272,7 @@ var/list/admin_verbs_hideable = list(
/client/proc/fps,
/client/proc/cmd_admin_grantfullaccess,
/client/proc/cmd_admin_areatest,
/client/proc/readmin,
/client/proc/reload_nanoui_resources
/client/proc/readmin
)
if(holder)
verbs.Remove(holder.rank.adds)
-18
View File
@@ -776,21 +776,3 @@ var/global/list/g_fancy_list_of_types = null
if(!holder) return
debug_variables(huds[i])
/client/proc/reload_nanoui_resources()
set category = "Debug"
set name = "Reload NanoUI Resources"
set desc = "Force the client to redownload NanoUI Resources"
// Close open NanoUIs.
SSnano.close_user_uis(usr)
// Re-load the assets.
var/datum/asset/assets = get_asset_datum(/datum/asset/nanoui)
assets.register()
// Clear the user's cache so they get resent.
usr.client.cache = list()
// Send the assets.
assets.send(usr.client)
-1
View File
@@ -159,7 +159,6 @@ var/intercom_range_display_status = 0
src.verbs += /client/proc/cmd_show_at_list
src.verbs += /client/proc/cmd_show_at_list
src.verbs += /client/proc/manipulate_organs
src.verbs += /client/proc/reload_nanoui_resources
feedback_add_details("admin_verb","mDV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!