Implement fuzzy page search using fuse.js (#86)

This commit is contained in:
Mungai Njoroge
2022-09-10 10:46:45 -04:00
committed by GitHub
parent befdf383b6
commit 5770a66d67
67 changed files with 568 additions and 558 deletions
@@ -5,8 +5,6 @@
</template>
<script setup lang="ts">
import { ref } from "vue";
defineProps<{
state: boolean;
}>();
@@ -14,16 +12,16 @@ defineProps<{
<style lang="scss">
.switch {
height: 2rem;
height: 1.5rem;
background-color: $gray;
width: 3.75rem;
width: 2.5rem;
padding: $smaller;
position: relative;
transition: all 0.25s ease;
.circle {
transition: all 0.25s ease;
height: 1.5rem;
height: 1rem;
aspect-ratio: 1;
background-color: $gray1;
position: absolute;
@@ -37,7 +35,7 @@ defineProps<{
.circle {
background-color: $white;
left: calc((100% - ($smaller + 1.5rem)));
left: calc((100% - ($smaller + 1rem)));
}
}
</style>
+1 -1
View File
@@ -20,7 +20,7 @@ defineProps<{
<style lang="scss">
.settingscontent {
width: 100%;
max-width: 40rem;
// max-width: 40rem;
margin: 0 auto;
}
</style>
+5 -4
View File
@@ -1,16 +1,16 @@
<template>
<div class="settingsgroup">
<div>
<h4 v-if="group.title">{{ group.title }}</h4>
<div v-if="group.name || group.desc">
<h4 v-if="group.name">{{ group.name }}</h4>
<div class="desc" v-if="group.desc">{{ group.desc }}</div>
</div>
<div class="setting rounded bg-primary pad-lg">
<div class="setting rounded border pad-lg">
<div
v-for="(setting, index) in group.settings"
:key="index"
:class="{ inactive: setting.inactive && setting.inactive() }"
>
<div class="title">
<div class="title ellip" @click="setting.action()">
{{ setting.title }}
</div>
<div class="options">
@@ -69,6 +69,7 @@ defineProps<{
.title {
margin: auto 0;
user-select: none;
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<div class="settingsnav">
<div class="buttongroup rounded bg-primary">
<div class="buttongroup rounded-sm bg-primary">
<button v-for="(group, index) in settingGroups" :key="index">
{{ group.title }}
</button>