chore: lint

This commit is contained in:
limes
2026-08-14 15:27:39 +02:00
parent 9e924643b9
commit 6436225d7c
7 changed files with 179 additions and 157 deletions

View File

@@ -78,7 +78,7 @@ The website is currently in a refactor, here is what is still left on the fronte
- [ ] Auth: Register
- [ ] Auth: Forgot password flow
- [ ] Content: Term pages
- [ ] Content: Documentation pages
- [X] Content: Documentation pages
- [x] Content: Blog
And the tasks left on the backend:

View File

@@ -32,7 +32,7 @@ onMounted(() => {
class="left-section"
>
<button
id="mobile-button"
id="mobile-button"
:class="{ 'dropdown-button': true, 'hide-on-desktop': true, active: openDropdown === 'mobile' }"
@click="handleDropdownButton('mobile')"
>

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
const { te, t, tm } = useI18n();
const path = useRoute().fullPath;
@@ -9,137 +8,165 @@ useHead({
titleTemplate: (titleChunk) => {
return titleChunk
? `${titleChunk} | Docs | Pretendo Network`
: "Docs | Pretendo Network";
},
: 'Docs | Pretendo Network';
}
});
</script>
<template>
<div id="root" class="main-body">
<div class="docs-wrapper">
<a href="/" class="logo-link">
<svg
role="img"
aria-label="Pretendo"
xmlns="http://www.w3.org/2000/svg"
width="120"
height="39.876"
>
<g
id="logo_type"
data-name="logo type"
transform="translate(-553 -467)"
>
<g id="logo" transform="translate(553 467)">
<rect
id="XMLID_158_"
width="39.876"
height="39.876"
fill="#9d6ff3"
opacity="0"
/>
<g id="XMLID_6_" transform="translate(8.222 1.418)">
<path
id="XMLID_15_"
d="M69.149,28.312c-1.051.553-.129,2.139.922,1.585a12.365,12.365,0,0,1,8.794-.571,10.829,10.829,0,0,1,6.342,4.166c.645,1,2.231.074,1.585-.922C83.308,27.169,74.7,25.436,69.149,28.312Z"
transform="translate(-64.246 -23.389)"
fill="#9d6ff3"
/>
<path
id="XMLID_14_"
d="M82.64,14.608A15.565,15.565,0,0,0,73.5,8.45a17.535,17.535,0,0,0-12.647.9c-1.051.553-.129,2.139.922,1.585,3.411-1.788,7.6-1.714,11.209-.719,3.1.848,6.268,2.544,8.038,5.309C81.681,16.543,83.267,15.622,82.64,14.608Z"
transform="translate(-57.476 -7.693)"
fill="#9d6ff3"
/>
<path
id="XMLID_9_"
d="M55.68,47.8a10.719,10.719,0,0,0-6.71,2.3H45.983A1.336,1.336,0,0,0,44.6,51.376V75.84a1.431,1.431,0,0,0,1.383,1.383h3.023a1.367,1.367,0,0,0,1.309-1.383V68.392A10.993,10.993,0,1,0,55.68,47.8Zm0,17.182a6.213,6.213,0,1,1,6.213-6.213A6.216,6.216,0,0,1,55.68,64.982Z"
transform="translate(-44.6 -40.406)"
fill="#9d6ff3"
/>
</g>
</g>
<text
id="Pretendo"
transform="translate(593 492)"
fill="#fff"
font-size="17"
font-family="Poppins-Bold, Poppins"
font-weight="700"
>
<tspan x="0" y="0">Pretendo</tspan>
</text>
</g>
</svg>
</a>
<div
id="root"
class="main-body"
>
<div class="docs-wrapper">
<a
href="/"
class="logo-link"
>
<svg
role="img"
aria-label="Pretendo"
xmlns="http://www.w3.org/2000/svg"
width="120"
height="39.876"
>
<g
id="logo_type"
data-name="logo type"
transform="translate(-553 -467)"
>
<g
id="logo"
transform="translate(553 467)"
>
<rect
id="XMLID_158_"
width="39.876"
height="39.876"
fill="#9d6ff3"
opacity="0"
/>
<g
id="XMLID_6_"
transform="translate(8.222 1.418)"
>
<path
id="XMLID_15_"
d="M69.149,28.312c-1.051.553-.129,2.139.922,1.585a12.365,12.365,0,0,1,8.794-.571,10.829,10.829,0,0,1,6.342,4.166c.645,1,2.231.074,1.585-.922C83.308,27.169,74.7,25.436,69.149,28.312Z"
transform="translate(-64.246 -23.389)"
fill="#9d6ff3"
/>
<path
id="XMLID_14_"
d="M82.64,14.608A15.565,15.565,0,0,0,73.5,8.45a17.535,17.535,0,0,0-12.647.9c-1.051.553-.129,2.139.922,1.585,3.411-1.788,7.6-1.714,11.209-.719,3.1.848,6.268,2.544,8.038,5.309C81.681,16.543,83.267,15.622,82.64,14.608Z"
transform="translate(-57.476 -7.693)"
fill="#9d6ff3"
/>
<path
id="XMLID_9_"
d="M55.68,47.8a10.719,10.719,0,0,0-6.71,2.3H45.983A1.336,1.336,0,0,0,44.6,51.376V75.84a1.431,1.431,0,0,0,1.383,1.383h3.023a1.367,1.367,0,0,0,1.309-1.383V68.392A10.993,10.993,0,1,0,55.68,47.8Zm0,17.182a6.213,6.213,0,1,1,6.213-6.213A6.216,6.216,0,0,1,55.68,64.982Z"
transform="translate(-44.6 -40.406)"
fill="#9d6ff3"
/>
</g>
</g>
<text
id="Pretendo"
transform="translate(593 492)"
fill="#fff"
font-size="17"
font-family="Poppins-Bold, Poppins"
font-weight="700"
>
<tspan
x="0"
y="0"
>Pretendo</tspan>
</text>
</g>
</svg>
</a>
<div class="header-wrapper">
<button
id="openSidebar"
class="nostyle"
@click="() => (isSidebarOpen = !isSidebarOpen)"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-menu"
>
<line x1="3" y1="12" x2="21" y2="12" />
<line x1="3" y1="6" x2="21" y2="6" />
<line x1="3" y1="18" x2="21" y2="18" />
</svg>
</button>
<Navbar />
</div>
<div class="header-wrapper">
<button
id="openSidebar"
class="nostyle"
@click="() => (isSidebarOpen = !isSidebarOpen)"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-menu"
>
<line
x1="3"
y1="12"
x2="21"
y2="12"
/>
<line
x1="3"
y1="6"
x2="21"
y2="6"
/>
<line
x1="3"
y1="18"
x2="21"
y2="18"
/>
</svg>
</button>
<Navbar />
</div>
<div :class="{ sidebar: true, open: isSidebarOpen }">
<div class="section">
<h5>{{ $t("docs.sidebar.getting_started") }}</h5>
<div :class="{ sidebar: true, open: isSidebarOpen }">
<div class="section">
<h5>{{ $t("docs.sidebar.getting_started") }}</h5>
<a
v-for="link in [
{ n: $t('docs.sidebar.welcome'), l: '/docs/welcome' },
{ n: $t('docs.sidebar.install_extended'), l: '/docs/install' },
{ n: $t('docs.sidebar.search'), l: '/docs/errors' },
]"
:key="link.l"
:class="{ active: path === link.l }"
:href="link.l"
>{{ link.n }}</a
>
</div>
<a
v-for="link in [
{ n: $t('docs.sidebar.welcome'), l: '/docs/welcome' },
{ n: $t('docs.sidebar.install_extended'), l: '/docs/install' },
{ n: $t('docs.sidebar.search'), l: '/docs/errors' },
]"
:key="link.l"
:class="{ active: path === link.l }"
:href="link.l"
>{{ link.n }}</a>
</div>
<div class="section">
<h5>{{ $t("docs.sidebar.install") }}</h5>
<a
v-for="link in [
{ n: 'Wii U', l: '/docs/install/wiiu' },
{ n: '3DS', l: '/docs/install/3ds' },
{ n: 'Cemu', l: '/docs/install/cemu' },
{ n: 'Azahar', l: '/docs/install/azahar' },
{ n: 'Miiverse', l: '/docs/install/juxt' },
{ n: 'Submit network dumps', l: '/docs/network-dumps' },
]"
:key="link.l"
:class="{ active: path === link.l }"
:href="link.l"
>{{ link.n }}</a
>
</div>
</div>
<div class="section">
<h5>{{ $t("docs.sidebar.install") }}</h5>
<a
v-for="link in [
{ n: 'Wii U', l: '/docs/install/wiiu' },
{ n: '3DS', l: '/docs/install/3ds' },
{ n: 'Cemu', l: '/docs/install/cemu' },
{ n: 'Azahar', l: '/docs/install/azahar' },
{ n: 'Miiverse', l: '/docs/install/juxt' },
{ n: 'Submit network dumps', l: '/docs/network-dumps' },
]"
:key="link.l"
:class="{ active: path === link.l }"
:href="link.l"
>{{ link.n }}</a>
</div>
</div>
<div :class="{ content: true, 'open-sidebar': isSidebarOpen }">
<slot />
</div>
</div>
</div>
<div :class="{ content: true, 'open-sidebar': isSidebarOpen }">
<slot />
</div>
</div>
</div>
</template>
<style scoped>

View File

@@ -1,6 +1,4 @@
<script setup lang="ts">
const { te, t, tm } = useI18n();
const query = ref<string>('');
const results = ref<any[]>([]);

View File

@@ -1,6 +1,4 @@
<script setup lang="ts">
const { te, t, tm } = useI18n();
useHead({
title: 'Install',
meta: [

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
const { te, t, tm } = useI18n();
useHead({
meta: [

View File

@@ -131,35 +131,35 @@ function titleSuffixHandler(path: string) {
</div>
</section>
<section class="progress column-2">
<div class="left sect">
<div class="left-meta">
<h2
id="about"
class="dot title"
:data-title-suffix="titleSuffixHandler('aboutUs.titleSuffix')"
>
{{ $t("aboutUs.title") }}
</h2>
<p
v-for="i in computed(() => tm<string>('aboutUs.paragraphs') as string[]).value.length"
:key="i"
class="text"
>
{{ $t(`aboutUs.paragraphs[${i-1}]`) }}
</p>
</div>
</div>
<div class="right sect">
<h2 class="title">
<a href="/progress">{{ $t("progress.title") }}</a>
<section class="progress column-2">
<div class="left sect">
<div class="left-meta">
<h2
id="about"
class="dot title"
:data-title-suffix="titleSuffixHandler('aboutUs.titleSuffix')"
>
{{ $t("aboutUs.title") }}
</h2>
<ProgressCard
purple
:item="summaryProgress"
/>
<p
v-for="i in computed(() => tm<string>('aboutUs.paragraphs') as string[]).value.length"
:key="i"
class="text"
>
{{ $t(`aboutUs.paragraphs[${i-1}]`) }}
</p>
</div>
</section>
</div>
<div class="right sect">
<h2 class="title">
<a href="/progress">{{ $t("progress.title") }}</a>
</h2>
<ProgressCard
purple
:item="summaryProgress"
/>
</div>
</section>
<section class="faq">
<div class="sect-top sect">