File tree Expand file tree Collapse file tree 9 files changed +9276
-5265
lines changed Expand file tree Collapse file tree 9 files changed +9276
-5265
lines changed Original file line number Diff line number Diff line change 3
3
"build" : {
4
4
"dockerfile" : " ./vscode-dev-containers/containers/typescript-node/.devcontainer/Dockerfile" ,
5
5
"args" : {
6
- "VARIANT" : " 16 -bullseye"
6
+ "VARIANT" : " 20 -bullseye"
7
7
}
8
8
},
9
9
"customizations" : {
22
22
" shan.code-settings-sync" ,
23
23
" sleistner.vscode-fileutils" ,
24
24
" pustelto.bracketeer" ,
25
- " voorjaar.windicss-intellisense" ,
26
25
" vscode-icons-team.vscode-icons" ,
27
26
" vue.volar" ,
28
27
" wakatime.vscode-wakatime" ,
Original file line number Diff line number Diff line change @@ -27,17 +27,15 @@ const {
27
27
coverAuthor : coverAuthorTransferred,
28
28
coverAuthorUrl : coverAuthorUrlTransferred,
29
29
coverBackgroundUrl,
30
- } = withDefaults (
31
- defineProps <{
32
- coverAuthor? : string | string [];
33
- coverAuthorUrl? : string | string [];
34
- coverBackgroundUrl? : string ;
35
- coverBackgroundSource? : string ;
36
- coverBackgroundSourceUrl? : string ;
37
- coverDate? : string | Date ;
38
- }>(),
39
- { coverDate: new Date ().toLocaleDateString () },
40
- );
30
+ coverDate = new Date ().toLocaleDateString (),
31
+ } = defineProps <{
32
+ coverAuthor? : string | string [];
33
+ coverAuthorUrl? : string | string [];
34
+ coverBackgroundUrl? : string ;
35
+ coverBackgroundSource? : string ;
36
+ coverBackgroundSourceUrl? : string ;
37
+ coverDate? : string | Date ;
38
+ }>();
41
39
42
40
const coverAuthors = computed (() => transformIntoArray (coverAuthorTransferred ));
43
41
const coverAuthorUrls = computed (() => transformIntoArray (coverAuthorUrlTransferred ));
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" slidev-layout" >
3
3
<slot > <h1 >Index</h1 > </slot >
4
- <TocList v-if =" indexEntriesInternal" :level =" 1" :list =" indexEntriesInternal" />
5
- <ol v-else >
4
+ <ol >
6
5
<li v-for =" { uri, title } in indexEntries" :key =" title" >
7
- <TextWithOptionalLink :link =" uri" :text =" title" />
6
+ <Link v-if =" indexRedirectType === 'internal'" :to =" uri" >{{ title }}</Link >
7
+ <TextWithOptionalLink v-else :link =" uri" :text =" title" />
8
8
</li >
9
9
</ol >
10
10
</div >
13
13
<script setup lang="ts">
14
14
import { computed , PropType } from ' vue' ;
15
15
16
- const { indexEntries, indexRedirectType } = defineProps ({
16
+ const { indexEntries, indexRedirectType = ' internal ' } = defineProps ({
17
17
indexEntries: {
18
18
type: Array as PropType <{ title: string ; uri? : number | string }[]>,
19
19
required: true ,
20
20
},
21
21
indexRedirectType: {
22
- default: ' internal' ,
23
22
type: String as PropType <' external' | ' internal' >,
24
23
validator : (value ) => value === ' external' || value === ' internal' ,
25
24
},
26
25
});
27
-
28
- const indexEntriesInternal =
29
- indexRedirectType === ' internal' &&
30
- computed (() =>
31
- indexEntries .map (({ title , uri }) => ({
32
- children: [],
33
- level: 1 ,
34
- path: uri .toString (),
35
- title ,
36
- })),
37
- );
38
26
</script >
You can’t perform that action at this time.
0 commit comments