TracCloudInternal: Difference between revisions

From Redrock Wiki

No edit summary
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is used to track pages that are (intentionally) not commonly linked to
This is a page for Redrock Staff to track articles that are (intentionally) not commonly linked to. If you've managed to find this page, here's a cookie 🍪


{{TracCloudInternalTOC}}
<div class="categoryBox">
[[Category:rsc_internal]]
<h2 style="margin:3px; font-size:120%; color:#8D182B; font-weight:bold;">TracCloud Hidden Documentation</h2>
<b>
[[TracCloudTechMoreImports|Additional Imports (unlisted; not recommended)]]
 
[[TracCloud:_Mail_Server_Oauth|OAuth (in progress)]]
 
[[TracCloud:_ACTP_Certification_Tracking|ACTP Certification Tracking (unlisted)]]
 
[[TracCloudMigration|Migration from Trac 4.0 (unlisted; no longer offered)]]
 
</b>
<hr style="margin-top: 0.1em; margin-bottom: 0.1em;">
<h2 id="um-toc-hdr" style="margin:3px; font-size:120%; font-weight:bold; text-align:left; color:#7c1911; ">Public Conference Docs</h2>
<b>
[[Redrock_Conferences|Past Conferences]]
</b>
</div>
 
<html>
<hr>
Manually update the status page. You must be logged in for this to function.<br>
<select id="status">
  <option value="X">Select a status</option>
  <option value="0">No Status/Testing</option>
  <option value="1">Online</option>
  <option value="2">Issues</option>
  <option value="3">Down</option>
</select>
 
<label>Optionally enter a custom status message</label>
<textarea id="message" style="width: 100%; height: 50px; margin-bottom: 10px;"></textarea>
 
<div id="result">
 
</div>
 
<button onclick="updateStatus()"><b>Update Status Page</b></button>
 
<script>
function updateStatus() {
  document.getElementById("result").innerHTML = "<span style='color:grey;'>Attempting to save... If you're still reading this, make sure you're logged in.</span>";
  let statusImg = document.getElementById("status").value;
  let customMessage = document.getElementById("message").value;
  let message = '';
 
  if (statusImg == 'X') {
console.log('Status is X');
document.getElementById("result").innerHTML = '<span style="color:red;">Missing status, no change applied.</span>';
return;
  }
 
  switch (statusImg) {
case '0':
statusImg = '6758774';
message = 'We are currently testing the status page, a normal status will be available here soon.';
break;
case '1':
statusImg = '7776411';
message = 'TracCloud is currently online and operating normally.';
break;
case '2':
statusImg = '8980804';
message = 'We are investigating possible issues and will update this page when more information is available.';
break;
case '3':
statusImg = '9329764';
message = 'TracCloud is currently experiencing issues. Our development team is working to resolve this as soon as possible.';
break;
}
 
 
if (customMessage) {
message = customMessage;
}
 
const finalMessage = `<div style="text-align: center;">[[File:${statusImg}.png|600px]]<BR><b>${message}</b></div>{{:TracCloudStatusHistory}}`
 
var params = {
action: 'edit',
title: 'TracCloudStatus',
text: finalMessage,
format: 'json'
},
api = new mw.Api();
api.postWithToken( 'csrf', params ).done( function ( data ) {
console.log( data );
document.getElementById("result").innerHTML = '<span style="color:green;">The status page has been updated.</span>';
} );
}
</script>
<hr>
</html>
 
__NOTOC__
__NOINDEX__

Latest revision as of 16:26, 25 March 2026

This is a page for Redrock Staff to track articles that are (intentionally) not commonly linked to. If you've managed to find this page, here's a cookie 🍪


Manually update the status page. You must be logged in for this to function.