mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 07:16:15 -04:00
refactor: lint fix
This commit is contained in:
parent
582808597c
commit
a58ae24d94
1 changed files with 91 additions and 21 deletions
|
@ -34,9 +34,15 @@ const m = toolsByCategory.map(category => ({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<menu-layout class="menu-layout" :class="{ isSmallScreen: styleStore.isSmallScreen }">
|
<menu-layout
|
||||||
|
class="menu-layout"
|
||||||
|
:class="{ isSmallScreen: styleStore.isSmallScreen }"
|
||||||
|
>
|
||||||
<template #sider>
|
<template #sider>
|
||||||
<router-link to="/" class="hero-wrapper">
|
<router-link
|
||||||
|
to="/"
|
||||||
|
class="hero-wrapper"
|
||||||
|
>
|
||||||
<hero-gradient class="gradient" />
|
<hero-gradient class="gradient" />
|
||||||
<div class="text-wrapper">
|
<div class="text-wrapper">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
@ -50,33 +56,63 @@ const m = toolsByCategory.map(category => ({
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<div class="sider-content">
|
<div class="sider-content">
|
||||||
<n-space v-if="styleStore.isSmallScreen" justify="center">
|
<n-space
|
||||||
|
v-if="styleStore.isSmallScreen"
|
||||||
|
justify="center"
|
||||||
|
>
|
||||||
<navbar-buttons />
|
<navbar-buttons />
|
||||||
</n-space>
|
</n-space>
|
||||||
|
|
||||||
<n-menu v-model:value="activeKey" :value="route.name" class="menu" :collapsed-width="64"
|
<n-menu
|
||||||
:collapsed-icon-size="22" :options="m" :indent="20" />
|
v-model:value="activeKey"
|
||||||
|
:value="route.name"
|
||||||
|
class="menu"
|
||||||
|
:collapsed-width="64"
|
||||||
|
:collapsed-icon-size="22"
|
||||||
|
:options="m"
|
||||||
|
:indent="20"
|
||||||
|
/>
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div>
|
<div>
|
||||||
IT-Tools
|
IT-Tools
|
||||||
|
|
||||||
<n-button text tag="a" target="_blank" rel="noopener" type="primary" depth="3"
|
<n-button
|
||||||
:href="`https://github.com/CorentinTh/it-tools/tree/v${version}`">
|
text
|
||||||
|
tag="a"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener"
|
||||||
|
type="primary"
|
||||||
|
depth="3"
|
||||||
|
:href="`https://github.com/CorentinTh/it-tools/tree/v${version}`"
|
||||||
|
>
|
||||||
v{{ version }}
|
v{{ version }}
|
||||||
</n-button>
|
</n-button>
|
||||||
|
|
||||||
<template v-if="commitSha && commitSha.length > 0">
|
<template v-if="commitSha && commitSha.length > 0">
|
||||||
-
|
-
|
||||||
<n-button text tag="a" target="_blank" rel="noopener" type="primary" depth="3"
|
<n-button
|
||||||
:href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`">
|
text
|
||||||
|
tag="a"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener"
|
||||||
|
type="primary"
|
||||||
|
depth="3"
|
||||||
|
:href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`"
|
||||||
|
>
|
||||||
{{ commitSha }}
|
{{ commitSha }}
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
© {{ new Date().getFullYear() }}
|
© {{ new Date().getFullYear() }}
|
||||||
<n-button text tag="a" target="_blank" rel="noopener" type="primary">
|
<n-button
|
||||||
|
text
|
||||||
|
tag="a"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener"
|
||||||
|
type="primary"
|
||||||
|
>
|
||||||
Corentin Thomasset
|
Corentin Thomasset
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -86,22 +122,47 @@ const m = toolsByCategory.map(category => ({
|
||||||
|
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
<n-tooltip trigger="hover" placement="bottom-start">
|
<n-tooltip
|
||||||
|
trigger="hover"
|
||||||
|
placement="bottom-start"
|
||||||
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary aria-label="Toogle menu"
|
<n-button
|
||||||
@click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed">
|
:size="styleStore.isSmallScreen ? 'medium' : 'large'"
|
||||||
<n-icon size="25" :component="Menu2" />
|
circle
|
||||||
|
quaternary
|
||||||
|
aria-label="Toogle menu"
|
||||||
|
@click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed"
|
||||||
|
>
|
||||||
|
<n-icon
|
||||||
|
size="25"
|
||||||
|
:component="Menu2"
|
||||||
|
/>
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
Toggle menu
|
Toggle menu
|
||||||
</n-tooltip>
|
</n-tooltip>
|
||||||
|
|
||||||
<router-link to="/" #="{ navigate, href }" custom>
|
<router-link
|
||||||
|
to="/"
|
||||||
|
#="{ navigate, href }"
|
||||||
|
custom
|
||||||
|
>
|
||||||
<n-tooltip trigger="hover">
|
<n-tooltip trigger="hover">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button tag="a" :href="href" :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary
|
<n-button
|
||||||
aria-label="Home" @click="navigate">
|
tag="a"
|
||||||
<n-icon size="25" :component="Home2" />
|
:href="href"
|
||||||
|
:size="styleStore.isSmallScreen ? 'medium' : 'large'"
|
||||||
|
circle
|
||||||
|
quaternary
|
||||||
|
aria-label="Home"
|
||||||
|
@click="navigate"
|
||||||
|
>
|
||||||
|
<n-icon
|
||||||
|
size="25"
|
||||||
|
:component="Home2"
|
||||||
|
/>
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
Home
|
Home
|
||||||
|
@ -112,9 +173,18 @@ const m = toolsByCategory.map(category => ({
|
||||||
|
|
||||||
<n-tooltip trigger="hover">
|
<n-tooltip trigger="hover">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button type="primary" tag="a" href="https://github.com/sponsors/CorentinTh" rel="noopener"
|
<n-button
|
||||||
target="_blank">
|
type="primary"
|
||||||
<n-icon v-if="!styleStore.isSmallScreen" :component="Heart" style="margin-right: 5px;" />
|
tag="a"
|
||||||
|
href="https://github.com/sponsors/CorentinTh"
|
||||||
|
rel="noopener"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<n-icon
|
||||||
|
v-if="!styleStore.isSmallScreen"
|
||||||
|
:component="Heart"
|
||||||
|
style="margin-right: 5px;"
|
||||||
|
/>
|
||||||
Sponsor
|
Sponsor
|
||||||
</n-button>
|
</n-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue