File tree 5 files changed +14
-6
lines changed
backend/src/extensions/documentation/documentation/1.0.0
5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 14
14
"name": "Apache 2.0",
15
15
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
16
16
},
17
- "x-generation-date": "2023-02-07T11:00:32.258Z "
17
+ "x-generation-date": "2023-02-07T14:16:36.493Z "
18
18
},
19
19
"x-strapi-config": {
20
20
"path": "/documentation",
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { useAutoAnimate } from ' @formkit/auto-animate/vue'
2
3
import type { Ref } from ' vue'
3
4
import type { IArticleItem } from ' ~~/types/IArticleItem'
4
5
const artlist = inject <Ref <IArticleItem []>>(' artlist' )
6
+ const [parent] = useAutoAnimate ()
5
7
const hideHandler = (id : string ) => {
6
8
artlist && (artlist .value = artlist .value .filter (item => item .id !== id ))
7
9
}
8
10
</script >
9
11
10
12
<template >
11
- <ClientOnly >
13
+ <ul ref =" parent" >
14
+ <ArticlesListItemAds />
12
15
<li v-for =" art in artlist" :key =" art.id" class =" list_container" >
13
16
<ArticlesListUiLink :to =" `/article/${art.id}`" >
14
17
<div class =" left" >
@@ -24,7 +27,7 @@ const hideHandler = (id: string) => {
24
27
</ArticlesListUiLink >
25
28
<div class =" icon" @click =" hideHandler(art.id)" />
26
29
</li >
27
- </ClientOnly >
30
+ </ul >
28
31
</template >
29
32
30
33
<style scoped>
Original file line number Diff line number Diff line change @@ -32,9 +32,8 @@ onUnmounted(() => {
32
32
<div class =" bg-jj-article" >
33
33
<ArticlesListNavigation />
34
34
<ArticlesListUiSkeleton v-if =" isLoading || !artlist.length" />
35
- <ul v-else >
36
- <ArticlesListItemAds />
35
+ <ClientOnly v-else >
37
36
<ArticlesListItem />
38
- </ul >
37
+ </ClientOnly >
39
38
</div >
40
39
</template >
Original file line number Diff line number Diff line change 41
41
"@types/marked" : " ^4.0.8" ,
42
42
"@unocss/nuxt" : " ^0.46.5" ,
43
43
"@vueuse/nuxt" : " ^9.5.0" ,
44
+ "@formkit/auto-animate" : " ^1.0.0-beta.6" ,
44
45
"eslint" : " ^8.27.0" ,
45
46
"husky" : " ^8.0.3" ,
46
47
"lint-staged" : " ^13.1.0" ,
Original file line number Diff line number Diff line change 1970
1970
intl-messageformat "9.13.0"
1971
1971
tslib "^2.1.0"
1972
1972
1973
+ "@formkit/auto-animate@^1.0.0-beta.6":
1974
+ version "1.0.0-beta.6"
1975
+ resolved "https://registry.npmmirror.com/@formkit/auto-animate/-/auto-animate-1.0.0-beta.6.tgz#ed7f8bc47d774a7764756646e9e3432e8be51cb3"
1976
+ integrity sha512-PVDhLAlr+B4Xb7e+1wozBUWmXa6BFU8xUPR/W/E+TsQhPS1qkAdAsJ25keEnFrcePSnXHrOsh3tiFbEToOzV9w==
1977
+
1973
1978
"@graphql-tools/
[email protected] ":
1974
1979
version "8.3.1"
1975
1980
resolved "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.1.tgz"
You can’t perform that action at this time.
0 commit comments