From 909a2f81cc34e585ab671eab7affdc613475438e Mon Sep 17 00:00:00 2001
From: Evorp <3vorpgaming@gmail.com>
Date: Sun, 12 May 2024 10:46:27 -0700
Subject: [PATCH] finally add prettier
---
.prettierignore | 2 +
.prettierrc | 18 +
404.html | 49 +-
_includes/changelog.html | 65 +-
_includes/empty_carousel.html | 2 +-
_includes/matching_articles.html | 4 -
_layouts/default.html | 626 +++++++++--------
_layouts/post.html | 315 ++++-----
_layouts/redirect.html | 58 +-
about.html | 71 +-
addon.html | 14 +-
addons.html | 10 +-
changelogs/compliance32.html | 1 -
changelogs/dungeons.html | 3 +-
coffee.html | 159 ++---
css/404.scss | 44 +-
css/about.scss | 114 ++--
css/dark.scss | 88 +--
css/download.scss | 404 +++++------
css/license.scss | 24 +-
css/light.scss | 82 +--
css/main.scss | 240 +++----
css/mods.scss | 434 ++++++------
css/snow.scss | 68 +-
discord/classicfaithful.html | 2 +-
discord/faithful.html | 2 +-
downloads.html | 2 +-
faithful.html | 19 +-
faithful32xDungeonsLatest.html | 3 +-
faithful32xLatest.html | 3 +-
faithful64xLatest.html | 3 +-
faq.html | 1 -
index.html | 216 ++++--
index.js | 627 +++++++++---------
js/404.js | 68 +-
js/addons/addon-grid.js | 38 +-
js/addons/addon-page.js | 92 +--
js/addons/addon-post-modal.js | 18 +-
js/addons/addon-post-page.js | 30 +-
js/addons/addon-post.js | 130 ++--
js/addons/index.js | 28 +-
js/defaultFunctionality.js | 190 +++---
js/download/download-line.js | 49 +-
js/download/download-table.js | 20 +-
js/download/index.js | 34 +-
js/faq.js | 32 +-
js/favorite-addons.js | 74 ++-
js/mods/components/clearDatabase.js | 30 +-
js/mods/components/customModal.js | 12 +-
js/mods/components/localDownload.js | 229 +++----
js/mods/components/modpackCard.js | 8 +-
js/mods/components/modpackModal.js | 112 ++--
.../mods/downloadMinecraftVersion.js | 24 +-
js/mods/components/mods/minecraftMod.js | 57 +-
js/mods/components/mods/minecraftModsList.js | 18 +-
js/mods/components/mods/minecraftVersions.js | 45 +-
js/mods/components/zipOptions.js | 70 +-
js/mods/core/MinecraftUtils.js | 47 +-
js/mods/core/ResourcePackCreator.js | 418 ++++++------
js/mods/downloadFile.js | 47 +-
js/mods/extensionjs.js | 38 +-
js/mods/modpacks.js | 134 ++--
js/mods/mods.js | 278 ++++----
js/mods/polyfill.js | 24 +-
js/mods/worker/downloadWorker.js | 76 ++-
js/snow.js | 149 +++--
js/stats.js | 90 +--
js/theme.js | 57 +-
license.html | 174 ++---
modpacks.html | 44 +-
mods.html | 16 +-
news.html | 11 +-
package.json | 5 +-
pnpm-lock.yaml | 55 ++
privacy.html | 29 +-
secret-tools/modlistgenerator.html | 114 ++--
stats.html | 87 ++-
twitter.html | 2 +-
youtube.html | 2 +-
79 files changed, 3782 insertions(+), 3296 deletions(-)
create mode 100644 .prettierignore
create mode 100644 .prettierrc
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..a4297f56
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,2 @@
+*.min.js
+_layouts/compress.html
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..e77ce2da
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,18 @@
+{
+ "semi": true,
+ "trailingComma": "all",
+ "singleQuote": false,
+ "printWidth": 100,
+ "useTabs": false,
+ "tabWidth": 2,
+ "bracketSpacing": true,
+ "arrowParens": "always",
+ "parser": "typescript",
+ "plugins": ["@shopify/prettier-plugin-liquid"],
+ "liquidSingleQuote": false,
+ "embeddedSingleQuote": false,
+ "overrides": [
+ { "files": ["*.vue"], "options": { "parser": "vue" } },
+ { "files": ["*.html"], "options": { "parser": "liquid-html" } }
+ ]
+}
diff --git a/404.html b/404.html
index 1e065f22..95282030 100644
--- a/404.html
+++ b/404.html
@@ -1,18 +1,31 @@
----
-layout: default
-title: 404
-permalink: /404.html
----
-
-
- {%- for version in changelog -%}
- {%- assign counter = counter | plus: 1 -%}
+ {%- if page["single-changelog"] == null -%}
+
- {% if counter >= CHANGELOG_LIMIT %}
+
+
+ {%- for version in changelog -%}
+ {%- assign counter = counter | plus: 1 -%}
-
{{ version.first[0] }}
- {%- for type in version.first[1] -%}
-
{{ type.first[0] }}:
- {%- for category in type.first[1] -%}
-
{{ category.first[0] }}:
-
- {%- for item in category.first[1] -%}
- - {{ item }}
+ {% if counter >= CHANGELOG_LIMIT %}
+ {{ version.first[0] }}
+ {%- for type in version.first[1] -%}
+ {{ type.first[0] }}:
+ {%- for category in type.first[1] -%}
+ {{ category.first[0] }}:
+
+ {%- for item in category.first[1] -%}
+ - {{ item }}
+ {%- endfor -%}
+
{%- endfor -%}
-
- {%- endfor -%}
+ {%- endfor -%}
+
+ {%- endif -%}
{%- endfor -%}
-
-
- {%- endif -%}
- {%- endfor -%}
-
-{%- endif -%}
+
+ {%- endif -%}
diff --git a/_includes/empty_carousel.html b/_includes/empty_carousel.html
index 43f85354..041007fb 100644
--- a/_includes/empty_carousel.html
+++ b/_includes/empty_carousel.html
@@ -1,7 +1,7 @@
{% for i in (1..3) %}
diff --git a/_includes/matching_articles.html b/_includes/matching_articles.html
index becbdf59..4f122a9e 100644
--- a/_includes/matching_articles.html
+++ b/_includes/matching_articles.html
@@ -1,16 +1,12 @@
{% for page in site.pages %}
{% if page.path contains include.search_string %}
-
{% assign counter = counter | plus: 1 %}
{% if counter < 7 %}
-
{{ page.title }}
-
{% endif %}
-
{% endif %}
{% endfor %}
diff --git a/_layouts/default.html b/_layouts/default.html
index 63a06ea8..ca17b31b 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -1,276 +1,360 @@
---
layout: compress
---
-
+
-
-
-
-
-
{{ page.title }} - Faithful
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {%- if page.no_container -%}
- {{ content }}
- {%- else -%}
-
- {{ content }}
-
- {%- endif -%}
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ page.title }}
+ - Faithful
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {%- if page.no_container -%}
+ {{ content }}
+ {%- else -%}
+
+ {{ content }}
+
+ {%- endif -%}
+
+
+
+
+
+
+
diff --git a/_layouts/post.html b/_layouts/post.html
index b6dc4c0c..a0115317 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,188 +1,199 @@
---
layout: default
---
-
{%- if page.discontinued -%}
-
This project has been discontinued.
+
This project has been discontinued.
{%- endif -%}
{%- if page.title -%}
-
{{ page.title }}
+
{{ page.title }}
{%- else -%}
-
Unknown Title
+
Unknown Title
{%- endif -%}
{%- if page.authors -%}
-
- By
- {%- assign author_nb = page.authors.size -%}
- {% for author in page.authors %}
- {%- assign author_nb = author_nb | minus: 1 -%}
-
- {% if author.first %}
- {%- if author_nb != 0 -%}
- {{ author.first | pop }},
- {%- else -%}
- {{ author.first | pop }}
- {%- endif -%}
- {% else %}
- {%- if author_nb != 0 -%}
- {{ author }},
- {%- else -%}
- {{ author }}
- {%- endif -%}
- {% endif %}
- {% endfor %}
-
+
+ By
+ {%- assign author_nb = page.authors.size -%}
+ {% for author in page.authors %}
+ {%- assign author_nb = author_nb | minus: 1 -%}
+
+ {% if author.first %}
+ {%- if author_nb != 0 -%}
+ {{ author.first | pop }},
+ {%- else -%}
+ {{ author.first | pop }}
+ {%- endif -%}
+ {% else %}
+ {%- if author_nb != 0 -%}
+ {{ author }},
+ {%- else -%}
+ {{ author }}
+ {%- endif -%}
+ {% endif %}
+ {% endfor %}
+
{%- endif -%}
-{%- if page.header-img -%}
-
-
+{%- if page["header-img"] -%}
+
+
{%- endif -%}
-
-
-{%- if page.carousel-img -%}
-
-
-
-
- {%- for image in site.static_files -%}
- {%- if image.path contains page.carousel-img -%}
-
-
- {%- if page.show_carousel_name == true -%}
{{ image.basename }}
{%- endif -%}
-
- {%- endif -%}
- {%- endfor -%}
-
-
-
-
-
-
-
-
×
-
-
-
-
+
+
+{%- if page["carousel-img"] -%}
+
+
+
+ {%- for image in site.static_files -%}
+ {%- if image.path contains page["carousel-img"] -%}
+
+
+ {%- if page.show_carousel_name == true -%}
+
{{ image.basename }}
+ {%- endif -%}
+
+ {%- endif -%}
+ {%- endfor -%}
+
+
+
+
+
+
+
×
+
+
+
+
{%- endif -%}
{%- if page.long_text -%}
-
-
- {{ page.long_text }}
-
-
+
+
+ {{ page.long_text }}
+
+
-
+
{%- endif -%}
{%- if page.downloads -%}
-
Downloads
- {%- for item in page.downloads -%}
-
{{ item.first[0] }}
- {%- for subitem in item.first[1] -%}
-
-
- {%- if subitem[0] contains "GitHub" -%}
-
- {%- elsif subitem[0] contains "CurseForge" -%}
-
- {%- elsif subitem[0] contains "PlanetMinecraft" or subitem[0] contains "PMC" or subitem[0] contains "Planet Minecraft"-%}
-
- {%- elsif subitem[0] contains "MCPEDL" -%}
-
- {%- elsif subitem[0] contains "Modrinth" -%}
-
- {%- endif -%}
- {{ subitem[0] }}
-
-
- {%- endfor -%}
-
- {%- endfor -%}
+
Downloads
+ {%- for item in page.downloads -%}
+
{{ item.first[0] }}
+ {%- for subitem in item.first[1] -%}
+
+
+ {%- if subitem[0] contains "GitHub" -%}
+
+ {%- elsif subitem[0] contains "CurseForge" -%}
+
+ {%- elsif subitem[0] contains "PlanetMinecraft"
+ or subitem[0] contains "PMC"
+ or subitem[0] contains "Planet Minecraft"
+ -%}
+
+ {%- elsif subitem[0] contains "MCPEDL" -%}
+
+ {%- elsif subitem[0] contains "Modrinth" -%}
+
+ {%- endif -%}
+ {{ subitem[0] }}
+
+
+ {%- endfor -%}
+
+ {%- endfor -%}
{%- endif -%}
{%- if page.download -%}
- {%- if page.download.size > 1 -%}
-
Downloads
- {%- else -%}
-
Download
- {%- endif -%}
- {%- for item in page.download -%}
-
- {{ item.first | pop }}
-
- {%- endfor -%}
+ {%- if page.download.size > 1 -%}
+
Downloads
+ {%- else -%}
+
Download
+ {%- endif -%}
+ {%- for item in page.download -%}
+
+ {{ item.first | pop }}
+
+ {%- endfor -%}
{%- endif -%}
{%- if page.main_changelog -%}
-
-
Changelog
-
+
+
Changelog
+
{%- endif -%}
{%- if page.changelog -%}
- {%- include changelog.html -%}
+ {%- include changelog.html -%}
{%- endif -%}
-
+
+
-
- Start a discussion in our Discord!
-
+ Start a discussion in our Discord!
diff --git a/_layouts/redirect.html b/_layouts/redirect.html
index d86bdfaa..8c1512f5 100644
--- a/_layouts/redirect.html
+++ b/_layouts/redirect.html
@@ -1,40 +1,38 @@
---
layout: compress
---
-
+
+
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
{{ page.title }}
-
+
+
+
{{ page.title }}
+
-
-
If the redirection failed, follow this link.
-
-
-
\ No newline at end of file
+
+
If the redirection failed, follow this link.
+
+