-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
134 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<div | ||
v-if="$slidev.nav.currentPage % 2 === 1" | ||
class="absolute bottom-0 right-0 p-10" | ||
> | ||
Global Footer (appear only on odd page) | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": true, | ||
// be explicit about types included | ||
// to avoid clashing with Jest types | ||
"types": ["cypress"] | ||
}, | ||
"include": [ | ||
"../node_modules/cypress", | ||
"./**/*.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { useVModel } from '@vueuse/core' | ||
import { provide, defineComponent, h } from 'vue' | ||
import { injectionClicks, injectionClicksDisabled, injectionClicksElements } from '../modules/directives' | ||
|
||
export default defineComponent({ | ||
props: { | ||
clicks: { | ||
default: 0, | ||
}, | ||
clicksElements: { | ||
default: () => [] as Element[], | ||
}, | ||
clicksDisabled: { | ||
default: false, | ||
}, | ||
is: { | ||
type: Object, | ||
default: undefined, | ||
}, | ||
}, | ||
setup(props, { emit }) { | ||
const clicks = useVModel(props, 'clicks', emit) | ||
const clicksElements = useVModel(props, 'clicksElements', emit) | ||
const clicksDisabled = useVModel(props, 'clicksDisabled', emit) | ||
|
||
clicksElements.value.length = 0 | ||
|
||
provide(injectionClicks, clicks) | ||
provide(injectionClicksDisabled, clicksDisabled) | ||
provide(injectionClicksElements, clicksElements) | ||
}, | ||
render() { | ||
if (this.$props.is) | ||
return h(this.$props.is) | ||
return this.$slots?.default?.() | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
"vite/client", | ||
"node", | ||
"jest", | ||
"cypress" | ||
], | ||
"paths": { | ||
"@slidev/client/*": ["./packages/client/*"], | ||
|