From 84de5ae909c75542b97cfbce6907f618ef3afdb2 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Mon, 11 Jul 2022 21:31:47 -0400 Subject: [PATCH] feat(app/web): special header color when in beta --- source/app/web/statics/app.js | 4 ++++ source/app/web/statics/embed/app.js | 4 ++++ source/app/web/statics/embed/index.html | 2 +- source/app/web/statics/index.html | 2 +- source/app/web/statics/insights/index.html | 2 +- source/app/web/statics/insights/script.js | 3 +++ source/app/web/statics/style.css | 6 ++++++ 7 files changed, 20 insertions(+), 3 deletions(-) diff --git a/source/app/web/statics/app.js b/source/app/web/statics/app.js index eb00a8ca..d8e0e7b6 100644 --- a/source/app/web/statics/app.js +++ b/source/app/web/statics/app.js @@ -59,6 +59,10 @@ preview() { return /-preview$/.test(this.version) }, + //Is in beta mode + beta() { + return /-beta$/.test(this.version) + }, //Rate limit reset rlreset() { const reset = new Date(Math.max(this.requests.graphql.reset, this.requests.rest.reset)) diff --git a/source/app/web/statics/embed/app.js b/source/app/web/statics/embed/app.js index 438467ce..8ec77e34 100644 --- a/source/app/web/statics/embed/app.js +++ b/source/app/web/statics/embed/app.js @@ -263,6 +263,10 @@ preview() { return /-preview$/.test(this.version) }, + //Is in beta mode + beta() { + return /-beta$/.test(this.version) + }, //Rate limit reset rlreset() { const reset = new Date(Math.max(this.requests.graphql.reset, this.requests.rest.reset)) diff --git a/source/app/web/statics/embed/index.html b/source/app/web/statics/embed/index.html index c3cae0e7..194c7bd3 100644 --- a/source/app/web/statics/embed/index.html +++ b/source/app/web/statics/embed/index.html @@ -17,7 +17,7 @@