diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2023-09-02 14:02:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 14:02:02 +0300 |
commit | 3dae9e39633ab4dbdc210dd787b0aea0f179c15b (patch) | |
tree | 977808fbbe9572b3a0af3c9d3b7d91e07509a083 | |
parent | bcbd97258287cc8f192838e69dcec358450f024e (diff) | |
parent | 043feb04d769b92bac5510b2696e015a15bb2edd (diff) |
Spelling #281
Spelling
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 2 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rwxr-xr-x | docker/entrypoint.sh | 4 | ||||
-rw-r--r-- | exampleSite/config.yml | 6 | ||||
-rw-r--r-- | layouts/partials/index/components.html | 26 | ||||
-rw-r--r-- | static/admin/config.yml | 4 |
7 files changed, 25 insertions, 29 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9828a36..df17d06 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,7 +15,7 @@ Explain the **details** for making this change. What existing problem does the p Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. <!-- Run some tests to make sure the code doesn't throw any errors, is valid, and works on IE8+. --> -<!-- Also, maake sure that the code formatting is in line with the rest of the project. --> +<!-- Also, make sure that the code formatting is in line with the rest of the project. --> **Closing issues** @@ -13,5 +13,5 @@ COPY exampleSite /cstate RUN mkdir -p /cstate/themes/cstate COPY . /cstate/themes/cstate -# Copy entrypoint script into the container image, this runs everytime the container cold-starts. +# Copy entrypoint script into the container image, this runs every time the container cold-starts. COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh @@ -18,7 +18,7 @@ You can support the creator of this project by starring, sharing, using cState a ## Sponsors -cState's development is being sposnored by [Instatus](https://instatus.com/) from June, 2022. +[You can sponsor cState by sponsoring the main developer of the project, @mistermantas](https://github.com/sponsors/mistermantas). ## Examples 🥳 @@ -26,17 +26,13 @@ cState's development is being sposnored by [Instatus](https://instatus.com/) fro * [**Example site — cstate.mnts.lt**](https://cstate.mnts.lt) * [Source code of the example cState site](https://github.com/cstate/example) - + ### More examples from the internet * [Chocolatey](https://status.chocolatey.org/) -* [tmw.media](https://status.tmw.media) -* [Proventa](https://status.proventa.io/) (German) * [sr.ht](https://status.sr.ht/) * [Content Ignite](https://status.contentignite.com/) * [FSCI](https://status.fsci.in/) -* [Hyrousek](https://status.hyrousek.tk) -* [josh.win](https://status.josh.win) *Want your status page here? [Create a PR](https://github.com/cstate/cstate/edit/dev/README.md)!* @@ -175,7 +171,7 @@ hugo And the folder `public` can now be hosted. -As you can imagine, manual building is a little bit tedious but a great option to have available programatically. +As you can imagine, manual building is a little bit tedious but a great option to have available programmatically. ### Docker diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a90e37d..9ac6c2c 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,7 +1,7 @@ WORK_DIR="/app" SRC_DIR="/cstate" -echo "[CSTATE-DOCKER] Initalising container..." +echo "[CSTATE-DOCKER] Initialising container..." # Check if the working dir is empty, if it is we'll need to copy # the files in from src directory (usually /cstate) @@ -20,4 +20,4 @@ hugo # Copy built files into NGINX directory cp -r /$WORK_DIR/public/* /usr/share/nginx/html -echo "[CSTATE-DOCKER] Initalisation complete."
\ No newline at end of file +echo "[CSTATE-DOCKER] Initialisation complete."
\ No newline at end of file diff --git a/exampleSite/config.yml b/exampleSite/config.yml index a3401c0..4dd3795 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -76,7 +76,7 @@ languageCode: en # For enableMissingTranslationPlaceholders— # do not set it to true for languages other # than English! When tested with Lithuanian, -# it would add unnecesary placeholders to +# it would add unnecessary placeholders to # values that were intentionally empty. defaultContentLanguage: en @@ -133,7 +133,7 @@ params: # and the user can expand by clicking on the category # (Requires JavaScript.) # - untitled boolean `untitled: true` - # This would complerely hide the name of the category. + # This would completely hide the name of the category. # This is useful, if you do not want to use categories # because you need to set an 'Uncategorized' category. # Or it can be used alongside other categories. @@ -188,7 +188,7 @@ params: # Should relative time (x min ago) be used? # # IMPORTANT: In the frontmatter, the dates MUST be in - # the UTC time zone for this to work preperly. If you + # the UTC time zone for this to work properly. If you # use Netlify CMS, all good — the CMS picks UTC time # by default. Otherwise, there may be very inaccurate # times if multiple time zones are in your issue files. diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index f9937f2..1a338c4 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -110,35 +110,35 @@ // // By default, all is good but we change this value // for progressively worse statuses - var highlestLevelStatus = ''; + var highestLevelStatus = ''; function checkStatus(element) { var status = element.getAttribute('data-status'); if (status === 'down') { - highlestLevelStatus = 'down' - } else if (status === 'disrupted' && highlestLevelStatus !== 'down') { - highlestLevelStatus = 'disrupted' - } else if (status === 'notice' && highlestLevelStatus !== 'down' && highlestLevelStatus !== 'disrupted') { - highlestLevelStatus = 'notice' + highestLevelStatus = 'down' + } else if (status === 'disrupted' && highestLevelStatus !== 'down') { + highestLevelStatus = 'disrupted' + } else if (status === 'notice' && highestLevelStatus !== 'down' && highestLevelStatus !== 'disrupted') { + highestLevelStatus = 'notice' } } componentsOfThisCategory.forEach(element => checkStatus(element)); // Human readable (i18n) status name variable - var highlestLevelStatusReadable = highlestLevelStatus; + var highestLevelStatusReadable = highestLevelStatus; - if (highlestLevelStatus === 'ok') { highlestLevelStatusReadable = '{{ T "thisIsOk" }}' } - if (highlestLevelStatus === 'notice') { highlestLevelStatusReadable = '{{ T "thisIsNotice" }}' } - if (highlestLevelStatus === 'disrupted') { highlestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' } - if (highlestLevelStatus === 'down') { highlestLevelStatusReadable = '{{ T "thisIsDown" }}' } + if (highestLevelStatus === 'ok') { highestLevelStatusReadable = '{{ T "thisIsOk" }}' } + if (highestLevelStatus === 'notice') { highestLevelStatusReadable = '{{ T "thisIsNotice" }}' } + if (highestLevelStatus === 'disrupted') { highestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' } + if (highestLevelStatus === 'down') { highestLevelStatusReadable = '{{ T "thisIsDown" }}' } // Finally we can show the status // (but only for categories with a name) if (thisCategory.classList.contains('category--titled')) { - thisCategory.querySelector('.category__head').setAttribute('data-status', highlestLevelStatus); - thisCategory.querySelector('.category-status').innerHTML = highlestLevelStatusReadable; + thisCategory.querySelector('.category__head').setAttribute('data-status', highestLevelStatus); + thisCategory.querySelector('.category-status').innerHTML = highestLevelStatusReadable; } </script> </div> diff --git a/static/admin/config.yml b/static/admin/config.yml index 551eb96..9f5cdbf 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -241,7 +241,7 @@ collections: - label: 'Show last modified date at bottom of issues' name: 'enableLastMod' widget: 'boolean' - hint: 'Experimental feature shows when changes occured based on Git info. Read the wiki for more: https://github.com/cstate/cstate/wiki/Customization#time' + hint: 'Experimental feature shows when changes occurred based on Git info. Read the wiki for more: https://github.com/cstate/cstate/wiki/Customization#time' required: false default: false - label: 'Use relative time (issue began x min ago)' @@ -288,7 +288,7 @@ collections: required: false default: true - label: 'Disable dark mode' - hint: 'If your OS and browser supports prefers-color-scheme and the user opted into a dark mode, the status page will be darker. Some color choices may be overriden.' + hint: 'If your OS and browser supports prefers-color-scheme and the user opted into a dark mode, the status page will be darker. Some color choices may be overridden.' name: 'disableDarkMode' widget: 'boolean' required: false |