-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: debug page tutorial slideshow (#25886)
* feat: debug page tutorial slideshow * fix tests, add changelog entry * address feedback * update changelog
- Loading branch information
Showing
26 changed files
with
555 additions
and
57 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,57 @@ | ||
<template> | ||
<div class="relative"> | ||
<!-- leave-to classes are marked absolute to allow the entering component to | ||
animate on top of the leaving component, creating a fading animation with no thrashing --> | ||
<transition | ||
enter-from-class="opacity-0" | ||
enter-active-class="transition duration-300 ease-out" | ||
enter-to-class="opacity-100" | ||
leave-from-class="opacity-100 absolute" | ||
leave-active-class="transition duration-300 ease-in absolute" | ||
leave-to-class="opacity-0 absolute" | ||
> | ||
<component | ||
:is="current.component" | ||
v-bind="current.props" | ||
:key="step" | ||
:step="step" | ||
:total-steps="steps.length" | ||
:increment-step="incrementStep" | ||
:decrement-step="decrementStep" | ||
/> | ||
</transition> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useVModel } from '@vueuse/core' | ||
import { computed } from 'vue' | ||
import type { Component } from 'vue' | ||
export type SlideshowStep = { | ||
component: Component | ||
props: Record<string, any> | ||
} | ||
const props = defineProps<{ | ||
modelValue: number | ||
steps: SlideshowStep[] | ||
}>() | ||
const emit = defineEmits(['update:modelValue', 'slideshowComplete']) | ||
const step = useVModel(props, 'modelValue', emit) | ||
const current = computed(() => props.steps[step.value]) | ||
const incrementStep = () => { | ||
const nextStep = step.value + 1 | ||
if (nextStep < props.steps.length) { | ||
step.value = nextStep | ||
} else { | ||
step.value = 0 | ||
emit('slideshowComplete') | ||
} | ||
} | ||
const decrementStep = () => step.value -= 1 | ||
</script> |
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 |
---|---|---|
|
@@ -163,6 +163,7 @@ fragment DebugSpecs on Query { | |
} | ||
currentTestingType | ||
} | ||
..._DebugEmptyView | ||
} | ||
` | ||
|
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
Oops, something went wrong.
c507266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
c507266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
c507266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
c507266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
c507266
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: