Skip to content

Commit 2c9905e

Browse files
committed
rename some stuff, remove cypress bugged cypress webkit
1 parent fe08c2c commit 2c9905e

File tree

7 files changed

+1887
-2710
lines changed

7 files changed

+1887
-2710
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,3 @@ jobs:
2626
install: false
2727
component: true
2828
browser: firefox
29-
- name: Cypress Webkit
30-
uses: cypress-io/github-action@v5
31-
with:
32-
install: false
33-
component: true
34-
browser: webkit

cypress.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default defineConfig({
44
component: {
55
video: false,
66
viewportWidth: 1366,
7-
experimentalWebKitSupport: true,
87
viewportHeight: 768,
98
devServer: {
109
framework: 'vue',

demo/components/Sidebar/DemoControls.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ watch(
2626
<template>
2727
<div class="Controls">
2828
<fieldset>
29-
<legend>Click</legend>
29+
<legend>Scroll</legend>
3030
<div>
3131
<label for="Native">
3232
<input
@@ -46,13 +46,13 @@ watch(
4646
value="custom"
4747
v-model="clickType"
4848
/>
49-
Custom JS Scroll
49+
Custom JS
5050
</label>
5151
</div>
5252
</fieldset>
5353

5454
<fieldset :disabled="clickType === 'custom'">
55-
<legend>CSS scroll-behavior</legend>
55+
<legend>scroll-behavior</legend>
5656
<div>
5757
<label for="Auto">
5858
<input

demo/components/Sidebar/TOC.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ const onClick = computed(() => (clickType.value === 'native' ? setActive : custo
7373
position: absolute;
7474
left: -10px;
7575
right: 10px;
76-
top: calc(var(--ActiveItemHeight) * var(--ActiveIndex));
76+
transform: translateY(calc(var(--ActiveItemHeight) * var(--ActiveIndex)));
7777
background-color: #00adb538;
78-
transition: top 100ms;
78+
transition: transform 100ms;
7979
border-left: 4px solid #00adb5;
8080
border-radius: 0px 5px 5px 0px;
8181
}

demo/useFakeData.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { watch, computed, reactive } from 'vue'
22

33
export function useFakeData(length = 10) {
4-
const parsedStart = parseInt(sessionStorage.getItem('firstNumber') || '0')
5-
const parsedEnd = parseInt(sessionStorage.getItem('lastNumber') || '0')
6-
const parsedLength = parsedEnd - parsedStart + 1
4+
const start = parseInt(sessionStorage.getItem('firstNumber') || '0')
5+
const end = parseInt(sessionStorage.getItem('lastNumber') || '0')
6+
const parsedLength = end - start + 1
77

88
const isMobile = window.matchMedia('(max-width: 610px)').matches
99

@@ -12,8 +12,8 @@ export function useFakeData(length = 10) {
1212

1313
const sections = reactive(
1414
Array.from({ length: parsedLength <= 1 ? length : parsedLength }, (_, index) => ({
15-
id: `title_${parsedStart + index}`,
16-
title: `${parsedStart + index} `.repeat(6).toUpperCase(),
15+
id: `title_${start + index}`,
16+
title: `${start + index} `.repeat(6).toUpperCase(),
1717
text: 'Text '.repeat(getInt(minText, maxText)),
1818
}))
1919
)

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@
5151
},
5252
"devDependencies": {
5353
"@rollup/plugin-terser": "^0.4.3",
54-
"@types/node": "^20.6.0",
54+
"@types/node": "^20.6.2",
5555
"@vitejs/plugin-vue": "^4.3.4",
5656
"animated-scroll-to": "^2.3.0",
5757
"cypress": "^13.2.0",
5858
"husky": "^8.0.3",
59-
"playwright-webkit": "^1.38.0",
6059
"prettier": "^3.0.3",
6160
"typescript": "^5.2.2",
6261
"vite": "4.4.9",

0 commit comments

Comments
 (0)