frontend: run lint

Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
Nicolas Froger 2024-07-27 02:10:59 +02:00
commit 2647ac244d
No known key found for this signature in database
61 changed files with 426 additions and 592 deletions

View file

@ -32,8 +32,7 @@ instance it still finds a way to be alive and break when changing views????
*/
async function initFullpage() {
if (fullPageInit)
return
if (fullPageInit) return
fullpageKey.value += 5
fullpageEnable.value = true
@ -41,7 +40,9 @@ async function initFullpage() {
try {
fullpage.value.init()
} catch (e) {
console.log('failed to reload fullpage.js because it sucks with vue, reloading page as last resort')
console.log(
'failed to reload fullpage.js because it sucks with vue, reloading page as last resort'
)
window.location.reload()
return
}
@ -57,7 +58,10 @@ onMounted(() => {
onBeforeUnmount(async () => {
console.log('caught post view unmount')
if (typeof window.fullpage_api !== 'undefined' && typeof window.fullpage_api.destroy !== 'undefined') {
if (
typeof window.fullpage_api !== 'undefined' &&
typeof window.fullpage_api.destroy !== 'undefined'
) {
window.fullpage_api.destroy('all')
}
fullpageKey.value++
@ -100,11 +104,18 @@ function onLeave(origin, destination, direction, trigger) {
class="col-start-1 col-span-full row-start-1 max-h-52 h-fit mt-28 sm:mt-16 lg:m-0 lg:col-start-5 lg:col-span-1 lg:row-start-3 lg:row-span-1 pointer-events-auto overflow-y-scroll transition-opacity duration-1000 opacity-0"
ref="menu"
>
<li :data-menuanchor="'post-' + post.id" v-for="post in postsStore.posts" :key="post.id"
class="m-2 backdrop-blur-sm rounded-lg bg-black/10 hover:bg-gray-500/10 transition-colors duration-200"
ref="menuItems">
<a :href="'#post-' + post.id"
class="block text-right px-4 py-3 transition-all duration-300">{{ post.formatedDate }}</a>
<li
:data-menuanchor="'post-' + post.id"
v-for="post in postsStore.posts"
:key="post.id"
class="m-2 backdrop-blur-sm rounded-lg bg-black/10 hover:bg-gray-500/10 transition-colors duration-200"
ref="menuItems"
>
<a
:href="'#post-' + post.id"
class="block text-right px-4 py-3 transition-all duration-300"
>{{ post.formatedDate }}</a
>
</li>
</ul>
</div>
@ -123,7 +134,6 @@ function onLeave(origin, destination, direction, trigger) {
</template>
<style scoped>
#menu li.active,
#menu li.active:hover {
background-color: rgba(255, 255, 255, 0.1);