{
color={statusToColor(status)}
name="eye" />
- {title === title.toLowerCase()
- ? toTitleCase(title)
- : title}
+ {typeof title === 'string'
+ && title === title.toLowerCase()
+ && toTitleCase(title)
+ || title}
fancy && onDragStart(e)} />
+ {process.env.NODE_ENV !== 'production' && (
+
dispatch(toggleKitchenSink())}>
+
+
+ )}
{!!fancy && (
{
// IE8: Use a plain character instead of a unicode symbol.
// eslint-disable-next-line react/no-unknown-property
onclick={onClose}>
- {IS_IE8 ? 'x' : '×'}
+ {Byond.IS_LTE_IE8 ? 'x' : '×'}
)}
diff --git a/tgui/packages/tgui/logging.js b/tgui/packages/tgui/logging.js
index 9364d4d967..95921b881d 100644
--- a/tgui/packages/tgui/logging.js
+++ b/tgui/packages/tgui/logging.js
@@ -5,7 +5,6 @@
*/
import { sendLogEntry } from 'tgui-dev-server/link/client';
-import { callByond } from './byond';
const LEVEL_DEBUG = 0;
const LEVEL_LOG = 1;
@@ -33,10 +32,11 @@ const log = (level, ns, ...args) => {
.filter(value => value)
.join(' ')
+ '\nUser Agent: ' + navigator.userAgent;
- callByond('', {
- src: window.__ref__,
- action: 'tgui:log',
- log: logEntry,
+ Byond.topic({
+ tgui: 1,
+ window_id: window.__windowId__,
+ type: 'log',
+ message: logEntry,
});
}
};
diff --git a/tgui/packages/tgui/package.json b/tgui/packages/tgui/package.json
index fd2d0a0d86..70c0e0c771 100644
--- a/tgui/packages/tgui/package.json
+++ b/tgui/packages/tgui/package.json
@@ -1,7 +1,7 @@
{
"private": true,
"name": "tgui",
- "version": "3.0.0",
+ "version": "3.1.0",
"dependencies": {
"@babel/core": "^7.6.2",
"@babel/plugin-transform-jscript": "^7.2.0",
@@ -12,16 +12,18 @@
"core-js": "^3.2.1",
"css-loader": "^3.2.0",
"cssnano": "^4.1.10",
+ "dompurify": "^2.0.11",
"extract-css-chunks-webpack-plugin": "^4.6.0",
"fg-loadcss": "^2.1.0",
"file-loader": "^6.0.0",
"inferno": "^7.3.2",
+ "marked": "^1.1.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"regenerator-runtime": "^0.13.3",
"sass": "^1.22.12",
- "sass-loader": "^8.0.0",
+ "sass-loader": "^9.0.2",
"style-loader": "^1.0.0",
- "terser-webpack-plugin": "^2.1.0",
+ "terser-webpack-plugin": "^3.0.6",
"url-loader": "^4.1.0",
"webpack": "^4.40.2",
"webpack-build-notifier": "^2.0.0",
diff --git a/tgui/packages/tgui/public/tgui.html b/tgui/packages/tgui/public/tgui.html
index c14d98a5d7..b336e29bac 100644
--- a/tgui/packages/tgui/public/tgui.html
+++ b/tgui/packages/tgui/public/tgui.html
@@ -5,29 +5,59 @@
-
+
-
-
-
-
+
-
+
@@ -161,7 +259,7 @@ A fatal exception has occurred at 002B:C562F1B7 in TGUI.
The current application will be terminated.
Please remain calm. Get to the nearest NTNet workstation
and send the copy of the following stack trace to:
-github.com/Citadel-Station-13/Citadel-Station-13/issues. Thank you for your cooperation.
+https://github.com/Citadel-Station-13/Citadel-Station-13/issues Thank you for your cooperation.