Skip to content

Commit dbbb0be

Browse files
committed
Wip
1 parent 85bc931 commit dbbb0be

File tree

211 files changed

+13483
-5686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+13483
-5686
lines changed

.github/workflows/cypress.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Cypress Tests
1+
name: Component Tests
22

33
on:
44
push:
55
branches:
6-
- 'master'
6+
- v3
77
pull_request:
88
workflow_dispatch:
99

@@ -12,9 +12,10 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
16+
1617
- name: Cypress run
17-
uses: cypress-io/github-action@v5
18+
uses: cypress-io/github-action@v6
1819
with:
1920
component: true
2021
browser: chrome
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
name: CI
1+
name: Continuous tests
22

33
on:
44
push:
55
branches:
6-
- 'master'
6+
- v3
77
pull_request:
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
11-
build:
12-
runs-on: ubuntu-22.04
15+
build-and-test:
16+
runs-on: ubuntu-latest
17+
name: Build and test
1318
steps:
1419
- name: Checkout
1520
uses: actions/checkout@v3
21+
1622
- name: Setup node
1723
uses: actions/setup-node@v3
1824
with:
19-
node-version: 16
25+
node-version: 18
2026
cache: 'npm'
27+
2128
- name: Install
2229
run: npm install
30+
2331
- name: Run Tests
2432
run: npm run test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_modules
33
/dist
44
/tests/feature/coverage/*
55
/docs
6-
6+
.histoire
77
# local env files
88
.env.local
99
.env.*.local

.storybook/main.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

.storybook/preview-head.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

.storybook/preview.js

Lines changed: 0 additions & 92 deletions
This file was deleted.

.storybook/styles.css

Lines changed: 0 additions & 147 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All notable changes to `vue-draggable-resizable` will be documented in this file
66
- Migrates to vue 3
77
- Updates all packages
88
- Adds vitest instead of mocha and karma for testing
9-
- Adds vite instead of raw webpack
9+
- Adds vite instead of webpack
1010
- Adds Cypress to component-test the package in real browsers
1111
- Fix `drag-stop` and `resize-stop` events
1212
- And minor changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ Called whenever the component stops getting dragged.
619619

620620
You can style the component using appropriate class names passed as props to the component. Moreover you can replace the default styles for the handles, provided in the source file `vue-draggable-resizable.css`, but you should take care to define position and size for them. The default classes for handles are `handle` and `handle-tl`, `handle-br` and so on.
621621

622-
The component also provides [named slots](https://vuejs.org/v2/guide/components-slots.html#Named-Slots) for each handle, so you can use your markup inside each one.
622+
The component also provides [named slots](https://vuejs.org/guide/components/slots.html#named-slots) for each handle, so you can use your markup inside each one.
623623

624624
## Thanks
625625

cypress.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { defineConfig } = require("cypress");
1+
import { defineConfig } from 'cypress';
22

3-
module.exports = defineConfig({
3+
export default defineConfig({
44
component: {
55
devServer: {
66
framework: "vue",

0 commit comments

Comments
 (0)