feat: replace DataTable component with new FilteredList component
This commit is contained in:
parent
b450849075
commit
1b036d3278
1 changed files with 4 additions and 10 deletions
|
@ -17,10 +17,10 @@ import {
|
||||||
} from '@/sebin'
|
} from '@/sebin'
|
||||||
import { dateFormat, getAge, toImperial, toLbs } from '@/helpers'
|
import { dateFormat, getAge, toImperial, toLbs } from '@/helpers'
|
||||||
import { nsfwKey, showModalKey } from '@/keys'
|
import { nsfwKey, showModalKey } from '@/keys'
|
||||||
import type { Kink } from '@/interfaces'
|
|
||||||
import DataTable from '@/components/DataTable.vue'
|
import DataTable from '@/components/DataTable.vue'
|
||||||
import QuickFacts from '@/components/QuickFacts.vue'
|
import QuickFacts from '@/components/QuickFacts.vue'
|
||||||
import RefToggle from '@/components/RefToggle.vue'
|
import RefToggle from '@/components/RefToggle.vue'
|
||||||
|
import FilteredList from '@/components/FilteredList.vue'
|
||||||
|
|
||||||
const generalHeadings = ['Key', 'Value']
|
const generalHeadings = ['Key', 'Value']
|
||||||
const generalData = [
|
const generalData = [
|
||||||
|
@ -39,14 +39,6 @@ const nsfwData = [
|
||||||
['Position', position]
|
['Position', position]
|
||||||
]
|
]
|
||||||
|
|
||||||
const kinksHeadings = ['Kink', 'Receive', 'Give']
|
|
||||||
const kinksData = kinks.map((kink: Kink): string[] => {
|
|
||||||
const receive = kink.receive ? '✅' : '🚫'
|
|
||||||
const give = kink.give ? '✅' : '🚫'
|
|
||||||
|
|
||||||
return [kink.name, receive, give]
|
|
||||||
})
|
|
||||||
|
|
||||||
const isNsfw = inject<boolean>(nsfwKey, false)
|
const isNsfw = inject<boolean>(nsfwKey, false)
|
||||||
const showModal = inject<Function>(showModalKey, Function)
|
const showModal = inject<Function>(showModalKey, Function)
|
||||||
</script>
|
</script>
|
||||||
|
@ -197,7 +189,9 @@ const showModal = inject<Function>(showModalKey, Function)
|
||||||
wants it. After all he is well endowed enough to peddle it around.
|
wants it. After all he is well endowed enough to peddle it around.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<DataTable class="kinks" :headings="kinksHeadings" :data="kinksData" />
|
<h3>Kinks</h3>
|
||||||
|
|
||||||
|
<FilteredList :data="kinks" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue