aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas <mistermantas@users.noreply.github.com>2017-08-13 18:19:54 +0300
committerMantas <mistermantas@users.noreply.github.com>2017-08-13 18:19:54 +0300
commit8d36c3cf2dd9b209aa6003ba19e983371ba670ec (patch)
tree3e6bf5dd061ce65eb07f58bef24cb54504f08653
parent27de71669d43e6846ae48e53bdd40ea6e77245aa (diff)
Prepare for status.choraleapp.com, fix minor issues
-rw-r--r--README.md14
-rw-r--r--config.yml6
-rw-r--r--content/incident/https-on-status-page.md10
-rw-r--r--layouts/index.html33
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/meta.html1
6 files changed, 25 insertions, 44 deletions
diff --git a/README.md b/README.md
index 7a70096..fe716ad 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,20 @@
# cState
-[![Donate](https://img.shields.io/badge/support_us-donate-yellow.svg?style=flat-square)](https://www.polargalaxy.com/donate) [![Discord](https://img.shields.io/badge/discord-join%20chat-7289DA.svg?style=flat-square)](https://www.polargalaxy.com/discord) [![feross/standard compliant](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![Twitter](https://img.shields.io/twitter/follow/polargalaxymc.svg?style=social&label=Follow)](https://twitter.com/polargalaxymc)
+[![Discord](https://img.shields.io/badge/discord-join%20chat-7289DA.svg?style=flat-square)](http://discord.io/choraleapp) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![Twitter](https://img.shields.io/twitter/follow/choraleapp.svg?style=social&label=Follow)](https://twitter.com/polargalaxymc)
-> Blazing fast status page with excellent browser support. Built with Hugo. Work in progress, many features planned.
+> Blazing fast status page with excellent browser support. Built with Hugo. Work in progress, may have bugs and incomplete features.
Is [statuspage.io](https://www.statuspage.io/) too expensive? Do you need an open source alternative for your project that is supported on archaic browsers like IE8 and never stops beating? cState is here to help.
-[Live demo](https://status.polargalaxy.com)
+[Live demo](https://status.choraleapp.com)
-[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/onlinemantas/cstate)
+[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/mistermantas/cstate)
## Usage
To set up cState, do the following:
-1. Deploy the status page, preferably using [Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/onlinemantas/cstate) and/or [GitHub Pages](https://pages.github.com).
+1. Deploy the status page, preferably using [Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/mistermantas/cstate) and/or [GitHub Pages](https://pages.github.com).
2. Upload your favicon and logo to `/static/` and edit `config.yml`.
Once that is done, you can create a new post like this:
@@ -48,8 +48,8 @@ On Monday, Amazon gave up on us.
## Resources
-+ [Issue tracker](https://github.com/onlinemantas/cstate)
-+ [Code repository](https://github.com/onlinemantas/cstate)
++ [Issue tracker](https://github.com/mistermantas/cstate)
++ [Code repository](https://github.com/mistermantas/cstate)
## License
diff --git a/config.yml b/config.yml
index d55f4a5..1f015b2 100644
--- a/config.yml
+++ b/config.yml
@@ -6,7 +6,7 @@ permalinks:
incidents: /incidents/:year/:month/:day/:slug/
params:
# Extra customization
- logo: https://www.choraleapp.com/logo.png
- description: We continuously monitor the status of our services and if there are any interruptions, a note will be posted here. Latency measurements work only on modern browsers and may not be 100% accurate. A ping below 1000ms is usually acceptable.
+ logo: /logo.png
+ description: We continuously monitor the status of our services and if there are any interruptions, a note will be posted here. For the best experience, use a modern browser like Chrome.
# Current state
- announcement: Status page has a hiccup with HTTPS, looking into it.
+ announcement: Everything looks fine, but if you see something wrong, give us a shout by using the chat box in the bottom right corner.
diff --git a/content/incident/https-on-status-page.md b/content/incident/https-on-status-page.md
new file mode 100644
index 0000000..bc767cc
--- /dev/null
+++ b/content/incident/https-on-status-page.md
@@ -0,0 +1,10 @@
+---
+Title: HTTPS on status page not working
+Description: Cannot access status.choraleapp.com without getting a certificate error
+Date: 2017-08-13T17:58:32
+Section: post
+---
+
+Cannot access status.choraleapp.com without getting a certificate error.
+
+Contacted Netlify for support.
diff --git a/layouts/index.html b/layouts/index.html
index 3853120..85b800a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -145,7 +145,6 @@
document.querySelector('.component[data-id=forums]').setAttribute('data-status', 'ok');
document.querySelector('.component[data-id=website]').setAttribute('data-status', 'ok');
- document.querySelector('.component[data-id=gameserver]').setAttribute('data-status', 'notice');
/**
* Get elements
@@ -214,8 +213,7 @@
*/
const status = document.querySelector('.component[data-id=forums]').getAttribute('data-status') === 'ok' &&
- document.querySelector('.component[data-id=website]').getAttribute('data-status') === 'ok' &&
- document.querySelector('.component[data-id=gameserver]').getAttribute('data-status') === 'ok'
+ document.querySelector('.component[data-id=website]').getAttribute('data-status') === 'ok'
if (status) {
// Change text
@@ -241,35 +239,6 @@
}
)
}
-
-
- /**
- * Check ping
- */
-
- // Links
- const forumPingURL = 'https://api.choraleapp.com';
- const websiteURL = 'https://www.choraleapp.com';
-
- // Lib
- !function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof module&&module.exports?module.exports=b():a.ping=b()}(this,function(){function a(a){return new Promise(function(b,c){var d=new Image;d.onload=function(){b(d)},d.onerror=function(){c(a)},d.src=a+"?random-no-cache="+Math.floor(65536*(1+Math.random())).toString(16)})}function b(b,c){return new Promise(function(d,e){var f=(new Date).getTime(),g=function(){var a=(new Date).getTime()-f;a*=c||1,d(a)};a(b).then(g).catch(g),setTimeout(function(){e(Error("Timeout"))},5e3)})}return b});
-
- // Check ping for everything
- ping(forumPingURL).then(function(delta) {
- document.querySelector('.component[data-id="forums"] .ping').innerHTML = String(delta) + 'ms';
- document.querySelector('.component[data-id="forums"] .ping').className = 'ping done';
- }).catch(function(err) {
- document.querySelector('.component[data-id="forums"] .ping').innerHTML = 'Can’t ping';
- document.querySelector('.component[data-id="forums"] .ping').className = 'ping error';
- })
-
- ping(websiteURL).then(function(delta) {
- document.querySelector('.component[data-id="website"] .ping').innerHTML = String(delta) + 'ms';
- document.querySelector('.component[data-id="website"] .ping').className = 'ping done';
- }).catch(function(err) {
- document.querySelector('.component[data-id="website"] .ping').innerHTML = 'Can’t ping';
- document.querySelector('.component[data-id="website"] .ping').className = 'ping error';
- })
</script>
{{ partial "footer" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 62ea1b5..1773af9 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,9 +3,12 @@
<p id="disclaimer">{{ .Site.Params.description }}</p>
- <small class="copyright">Powered by <a href="https://github.com/onlinemantas/cstate">cState</a></small>
+ <small class="copyright">Powered by <a href="https://github.com/mistermantas/cstate">cState</a></small>
</div>
</div>
+
+
+ <script defer>window.$crisp=[];window.CRISP_WEBSITE_ID="1456a9bd-7292-4dee-b61d-5d9946f925b5";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
</body>
</html>
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 8237757..cea1571 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -9,7 +9,6 @@
<meta name="description" content="{{ if .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<title>{{ .Site.Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
- <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
<meta name="theme-color" content="#000000">
<!-- Sources -->
<style>