This repository was archived by the owner on Jan 6, 2024. It is now read-only.
File tree 8 files changed +17
-12
lines changed
8 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 49
49
"play" : " nr -C playground dev" ,
50
50
"stub" : " unbuild --stub" ,
51
51
"lint" : " eslint ." ,
52
+ "lint:fix" : " eslint --fix ." ,
52
53
"prepublishOnly" : " npm run build" ,
53
54
"release" : " bumpp && npm publish" ,
54
55
"dep:up" : " taze -I major"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ defineProps<{
19
19
/>
20
20
<div v-else-if =" asset.type === 'text' && !textContent" i-carbon-document text-3xl op20 />
21
21
<div v-else-if =" asset.type === 'text' && textContent" w-full self-start p4 >
22
- <pre max-h-10rem of-hidden font-mono text-xs v-text =" textContent" />
22
+ <pre max-h-10rem of-hidden text-xs font-mono v-text =" textContent" />
23
23
</div >
24
24
<div v-else i-carbon-help text-3xl op20 />
25
25
</div >
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function navigate() {
48
48
<div px2 text-sm op50 >
49
49
Fill params and navigate:
50
50
</div >
51
- <div flex =" ~" items-center p2 font-mono text-sm >
51
+ <div flex =" ~" items-center p2 text-sm font-mono >
52
52
<template v-for =" part , idx of parts " :key =" idx " >
53
53
<VTextInput
54
54
v-if =" part[0] === ':'"
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const sorted = computed(() => {
57
57
/>
58
58
</div >
59
59
</td >
60
- <td w-30 ws-nowrap pr-1 text-left font-mono text-sm op50 >
60
+ <td w-30 ws-nowrap pr-1 text-left text-sm font-mono op50 >
61
61
{{ item.name ?? '-' }}
62
62
</td >
63
63
</tr >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { useFuse } from ' @vueuse/integrations/useFuse'
2
3
import { rpc } from ' ../logic/rpc'
3
4
import type { DocumentInfo } from ' ../../types'
4
5
import { data } from ' ../logic/documentations'
@@ -21,9 +22,12 @@ function navigate(data: DocumentInfo) {
21
22
}
22
23
23
24
const keywords = ref (' ' )
25
+ const { results : filterDocuments } = useFuse (keywords , rawItems .map (i => i .name ), {
26
+ matchAllWhenSearchEmpty: true ,
27
+ })
24
28
25
- watch (keywords , () => {
26
- items .value = rawItems .filter (item => packagesName . includes (item .id ) && ( item . id . includes (keywords . value ) || keywords . value . length === 0 ))
29
+ watch (filterDocuments , () => {
30
+ items .value = rawItems .filter (item => ( filterDocuments . value . map ( i => i . item ). includes (item .name ) && packagesName . includes (item . id ) ))
27
31
})
28
32
29
33
function back() {
Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ useInfiniteScroll(
225
225
</td >
226
226
<VDropdown max-w =" 10" placement =" bottom-start" :distance =" 5" >
227
227
<td
228
- hover =" text-primary" h-7 cursor-pointer ws-nowrap pr-1 text-left font-mono text-sm lh-7 underline
229
- op70
228
+ hover =" text-primary"
229
+ h-7 cursor-pointer ws-nowrap pr-1 text-left text-sm lh-7 font-mono underline op70
230
230
>
231
231
{{ item.activeVersion ?? item.version }}
232
232
</td >
@@ -243,12 +243,12 @@ useInfiniteScroll(
243
243
</ul >
244
244
</template >
245
245
</VDropdown >
246
- <td w-30 ws-nowrap pr-1 text-left font-mono text-sm underline op70 hover =" text-primary" >
246
+ <td w-30 ws-nowrap pr-1 text-left text-sm font-mono underline op70 hover =" text-primary" >
247
247
<a :href =" item?.owner?.link" target =" _blank" >
248
248
{{ item?.owner?.name ?? '-' }}
249
249
</a >
250
250
</td >
251
- <td w-30 ws-nowrap pr-1 text-left font-mono text-sm op70 >
251
+ <td w-30 ws-nowrap pr-1 text-left text-sm font-mono op70 >
252
252
{{ item.humanDownloadsLast30Days }}
253
253
</td >
254
254
<td w-30 text-center >
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ const showTabGroup = ref(false)
113
113
<div >
114
114
<VDarkToggle v-slot =" { toggle, isDark }" >
115
115
<VButton n =" primary" @click =" toggle" >
116
- <div carbon-sun dark:carbon-moon translate-y--1px /> {{ isDark.value ? 'Dark' : 'Light' }}
116
+ <div carbon-sun translate-y--1px dark:carbon-moon /> {{ isDark.value ? 'Dark' : 'Light' }}
117
117
</VButton >
118
118
</VDarkToggle >
119
119
</div >
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ export interface DocumentInfo {
105
105
website : string
106
106
github : string
107
107
icon : string
108
- tips : string
109
- openInBlank : boolean
108
+ tips ? : string
109
+ openInBlank ? : boolean
110
110
}
111
111
112
112
export interface PackageInfo {
You can’t perform that action at this time.
0 commit comments