diff options
| author | Leitwolf11 | 2026-09-26 00:36:04 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-09-26 00:36:04 +0300 |
| commit | 215a5a42fa4e21e75bbdfa45f8bccf4d98e781c7 (patch) | |
| tree | dd12105c386ca30e7ccb6e62fa151b700370a2e4 | |
| parent | e21de6d255b041fca036c9599332c7a42548617a (diff) | |
| download | website-215a5a42fa4e21e75bbdfa45f8bccf4d98e781c7.tar.gz | |
Make website formatting deterministic across Windows CRLF checkouts by using auto line endings and one explicit Prettier config for frontend and forum assets
| -rw-r--r-- | forum/index.html | 18 | ||||
| -rw-r--r-- | forum/site.js | 6 | ||||
| -rw-r--r-- | frontend/.prettierrc.json | 1 | ||||
| -rw-r--r-- | frontend/package.json | 4 |
4 files changed, 11 insertions, 18 deletions
diff --git a/forum/index.html b/forum/index.html index fb6c44d..2ad2267 100644 --- a/forum/index.html +++ b/forum/index.html @@ -18,27 +18,21 @@ <img src="/visual-xsharp-mark.svg" alt="" />Visual X# </a> <div class="tools"> - <button id="language" type="button" aria-label="Switch to German"> - DE - </button> - <button id="theme" type="button" aria-label="Switch color theme"> - ☀ - </button> + <button id="language" type="button" aria-label="Switch to German">DE</button> + <button id="theme" type="button" aria-label="Switch color theme">☀</button> </div> </header> <main> <span class="eyebrow" id="eyebrow">Community / coming later</span> <h1 id="title">The forum isn't open yet.</h1> <p id="message"> - We will open the Visual X# forum when the community is ready for it. - There are no accounts, posts, or discussion service here today. For now, - follow the language and compiler in the public repository. + We will open the Visual X# forum when the community is ready for it. There are no accounts, + posts, or discussion service here today. For now, follow the language and compiler in the + public repository. </p> <div class="links"> <a id="home" href="https://xsharp-lang.xyz/">Visual X# home →</a> - <a id="source" href="https://github.com/Progmasoft/visual-xsharp" - >Source repository ↗</a - > + <a id="source" href="https://github.com/Progmasoft/visual-xsharp">Source repository ↗</a> </div> </main> <footer>© 2026 Progmasoft · Visual X#</footer> diff --git a/forum/site.js b/forum/site.js index a314e19..030d0ad 100644 --- a/forum/site.js +++ b/forum/site.js @@ -28,8 +28,7 @@ const copy = { const languageButton = document.getElementById("language"); const themeButton = document.getElementById("theme"); -let language = - localStorage.getItem("vxs-forum-language") === "de" ? "de" : "en"; +let language = localStorage.getItem("vxs-forum-language") === "de" ? "de" : "en"; function renderLanguage() { const selected = copy[language]; @@ -52,8 +51,7 @@ languageButton.addEventListener("click", () => { document.documentElement.dataset.theme = localStorage.getItem("vxs-forum-theme") === "light" ? "light" : "dark"; themeButton.addEventListener("click", () => { - const next = - document.documentElement.dataset.theme === "dark" ? "light" : "dark"; + const next = document.documentElement.dataset.theme === "dark" ? "light" : "dark"; document.documentElement.dataset.theme = next; localStorage.setItem("vxs-forum-theme", next); }); diff --git a/frontend/.prettierrc.json b/frontend/.prettierrc.json index fe3e033..6633ea0 100644 --- a/frontend/.prettierrc.json +++ b/frontend/.prettierrc.json @@ -1,5 +1,6 @@ { "singleQuote": false, + "endOfLine": "auto", "printWidth": 100, "tabWidth": 2, "trailingComma": "all" diff --git a/frontend/package.json b/frontend/package.json index 0c1d3d1..75a73c7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,8 +10,8 @@ "preview": "vite preview", "check": "vue-tsc --noEmit", "test": "node --experimental-strip-types --test tests/*.test.mjs", - "format": "prettier --write index.html src tests ../forum vite.config.ts", - "format:check": "prettier --check index.html src tests ../forum vite.config.ts" + "format": "prettier --config .prettierrc.json --write index.html src tests ../forum vite.config.ts", + "format:check": "prettier --config .prettierrc.json --check index.html src tests ../forum vite.config.ts" }, "dependencies": { "vue": "^3.5.0", |