From 88a199b6c0576a35bae67a241c20370b629dd7cd Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 24 Jul 2018 13:47:45 +0300 Subject: v2-rc1 --- README.md | 19 ++++--- exampleSite/config.yml | 35 ++++++++----- exampleSite/content/api.html | 6 --- exampleSite/content/stats.html | 9 ---- exampleSite/static/logo.png | Bin 21758 -> 5707 bytes images/screenshot.png | Bin 47463 -> 120506 bytes images/tn.png | Bin 38424 -> 66535 bytes layouts/index.html | 77 +++++++++++++++++++++++----- layouts/partials/footer.html | 2 +- layouts/partials/js.html | 114 ++++++----------------------------------- layouts/partials/meta.html | 7 ++- layouts/uptime/single.html | 86 ------------------------------- theme.toml | 8 +-- 13 files changed, 128 insertions(+), 235 deletions(-) delete mode 100644 exampleSite/content/api.html delete mode 100644 exampleSite/content/stats.html delete mode 100644 layouts/uptime/single.html diff --git a/README.md b/README.md index fe1369d..a74ef5d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -
+ - + > Über fast, backwards compatible (IE8+), tiny, and simple status page built with Hugo. Completely free with Netlify & GitHub Pages. [**Want an example? Click here to see a live demo!**](https://cstate-example.netlify.com) +[You can also see what an example cState project’s source code.](https://github.com/cstate/example) + *Looking for contributors! See Contribute section:* ## Contents @@ -30,6 +32,7 @@ + Comes pre-equipped with Netlify CMS for quick admin updates + Easy to edit and deploy on Netlify or GitHub Pages + Secure, ready for HTTPS, thanks to [JAMstack](https://jamstack.org/) ++ Extensive documentation on the [wiki](https://github.com/cstate/cstate/wiki) ## Getting started @@ -57,7 +60,7 @@ mkdir themes; cd themes; 3. Now simply add a Git submodule pointing to this repository, like so: ```bash -git submodule add https://github.com/mistermantas/cstate +git submodule add https://github.com/cstate/cstate ``` 4. Set up cState for your liking. It is now ready to be used in production. @@ -67,7 +70,7 @@ git submodule add https://github.com/mistermantas/cstate 1. Clone this repository in the command line: ```bash -git clone https://github.com/mistermantas/cstate.git +git clone https://github.com/cstate/cstate.git ``` 2. Go to the `exampleSite` folder, like so: @@ -139,16 +142,20 @@ Time to break that down. `Affected`. Add the items that were present in the config file which should alter the status of each individual system (component). *(array, required)* `Section`. This must be `issue`, so that Hugo treats it as one. *(required)* +### I have more questions! + +Check out [the wiki](https://github.com/cstate/cstate/wiki). + ## Contribute cState needs help to grow, not only would it benefit from stuff like unit tests, but also get influenced by fresh ideas to grow even further. + Glance over the [Code of Conduct](/CODE_OF_CONDUCT.md). -+ Before submitting a pull request, create an issue to [discuss the implications of your proposal](https://github.com/mistermantas/cstate/issues). ++ Before submitting a pull request, create an issue to [discuss the implications of your proposal](https://github.com/cstate/cstate/issues). + Write consistent, simple, readable code and precise documentation. + [Join the Gitter chat](http://discord.io/choraleapp) for help or discussion. + You may also the creator’s [mnts Discord](https://discord.gg/EvQZdhT). ## License -[MIT](https://github.com/mistermantas/cstate/blob/master/LICENSE.md) © Mantas Vilčinskas +[MIT](https://github.com/cstate/cstate/blob/master/LICENSE.md) © Mantas Vilčinskas diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 6bd09b9..d829b3a 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -6,7 +6,7 @@ # Welcome to the cState configuration file! # -# This is the configuration file for v2-rc1. +# This is the configuration file for v2.0! # If you are using an earlier version, or one # in the future, such as v3, you may see errors # pop up when deploying a cState website. @@ -44,11 +44,15 @@ # What is your status page called? # Shows up in the browser bar and meta tags -title: cState Status +title: Eggsample App Status -# What language is this page in? +# What language is this site using? # Only alters the html[lang] attribute -languageCode: en-US +# +# ISO 639-1 defines abbreviations. +# See: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes +# Also: https://www.w3schools.com/tags/ref_language_codes.asp +languageCode: en # What is the hostname or path to the root? # Where is the site hosted? @@ -80,7 +84,6 @@ params: - name: Media Proxy description: This is the service responsible for serving images, audio, and video. It is reliant on our CDN. - # partial: custom/metrics # What header design should we use? # @@ -120,14 +123,22 @@ params: # name: Name # link: https://example.com - # Uptime statistics tab + # Auto refresh the page + # every ~5 min # - # Shows link to /stats - # (uptime stats) + # This does nothing but + # refresh the page; it + # does not send alerts! # # Default: true # BOOLEAN; `true`, `false` - showUptime: true + autoRefresh: true + + # Incident posts shown + # in one page + # + # NUMERIC; Default: `10` + incidentPostsPerPage: 10 # Colors throughout cState # @@ -187,13 +198,13 @@ buildFuture: true # These options affect the core of cState. # Please do not change them if you do not # know what you are doing. -theme: cstate-master +theme: cstate # If you are developing locally and want # to contribute to the cState Git repo, # please uncomment this option but do not -# forget to re-comment it when -themesDir: ../.. +# forget to re-comment it when commiting. +# themesDir: ../.. # This option tells cState what version # your config file is using. diff --git a/exampleSite/content/api.html b/exampleSite/content/api.html deleted file mode 100644 index bf2b338..0000000 --- a/exampleSite/content/api.html +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - - diff --git a/exampleSite/content/stats.html b/exampleSite/content/stats.html deleted file mode 100644 index bee2349..0000000 --- a/exampleSite/content/stats.html +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Uptime -description: This page has some information analyzing the downtime that has been reported on this status page. -type: uptime ---- - - diff --git a/exampleSite/static/logo.png b/exampleSite/static/logo.png index 851d104..95223da 100644 Binary files a/exampleSite/static/logo.png and b/exampleSite/static/logo.png differ diff --git a/images/screenshot.png b/images/screenshot.png index 9f4b673..59f49e8 100644 Binary files a/images/screenshot.png and b/images/screenshot.png differ diff --git a/images/tn.png b/images/tn.png index 5c59fc4..52f9ba2 100644 Binary files a/images/tn.png and b/images/tn.png differ diff --git a/layouts/index.html b/layouts/index.html index b937777..f5fbb05 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -48,9 +48,16 @@ {{ end }} + {{ if .Site.Params.autoRefresh }} +Looks like we do not have any incidents logged.
+ {{ if not $incidents }} + +This status page has no logged incidents. This may be because the status page owner (or owners) have recently set up their status page, have had no downtime, or have not logged any downtime.
+ {{ else }} - {{ range .Data.Pages }} + {{ $paginator := .Paginate $incidents .Site.Params.incidentPostsPerPage }} + {{ range $paginator.Pages }} {{ .Render "issue" }} {{ end }} + + + {{ if gt $paginator.TotalPages 1 }} +