This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rashagu/next
Next vue3.4 vite5
- Loading branch information
Showing
124 changed files
with
4,180 additions
and
2,424 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,15 @@ | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
|
||
module.exports = { | ||
root: true, | ||
'extends': [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/eslint-config-typescript', | ||
'@vue/eslint-config-prettier/skip-formatting' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
registry=https://registry.npmmirror.com/ | ||
# registry=https://registry.npmmirror.com/ | ||
|
||
# registry=https://registry.npmjs.org/ | ||
registry=https://registry.npmjs.org/ | ||
auto-install-peers=true | ||
|
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,5 @@ | ||
registry=https://registry.npmmirror.com/ | ||
|
||
# registry=https://registry.npmjs.org/ | ||
auto-install-peers=true | ||
|
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 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"trailingComma": "none" | ||
} |
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 |
---|---|---|
@@ -1,46 +1,45 @@ | ||
# This is a Vue adaptation based on [@dnd-kit](https://github.com/clauderic/dnd-kit) | ||
# dnd-kit-vue | ||
|
||
### TODO | ||
- [ ] Performance optimization | ||
- [ ] auto scroll | ||
- [ ] ... | ||
This template should help get you started developing with Vue 3 in Vite. | ||
|
||
--- | ||
<p align="center"> | ||
<a href="https://dndkit.com"> | ||
<img alt="@dnd-kit – the modern drag & drop toolkit for React" src=".github/assets/dnd-kit-hero-banner.svg"> | ||
</a> | ||
</p> | ||
## Recommended IDE Setup | ||
|
||
<p align="left"> | ||
<a href="https://www.npmjs.com/package/@dnd-kit-vue/core"><img src="https://img.shields.io/npm/v/@dnd-kit-vue/core.svg" alt="Stable Release" /></a> | ||
</p> | ||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). | ||
|
||
## Type Support for `.vue` Imports in TS | ||
|
||
## Working in the `@dnd-kit-vue` repository | ||
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. | ||
|
||
### Packages contained within this repository | ||
## Customize configuration | ||
|
||
- `@dnd-kit-vue/core` | ||
- `@dnd-kit-vue/accessibility` | ||
- `@dnd-kit-vue/sortable` | ||
- `@dnd-kit-vue/modifiers` | ||
- `@dnd-kit-vue/utilities` | ||
See [Vite Configuration Reference](https://vitejs.dev/config/). | ||
|
||
### Installing dependencies | ||
## Project Setup | ||
|
||
You'll need to install all the dependencies in the root directory. | ||
```sh | ||
pnpm install | ||
``` | ||
|
||
### Compile and Hot-Reload for Development | ||
|
||
```sh | ||
pnpm install && pnpm build:all | ||
pnpm dev | ||
``` | ||
|
||
This will install all dependencies in each project, build them | ||
### Type-Check, Compile and Minify for Production | ||
|
||
### Development workflow | ||
```sh | ||
pnpm build | ||
``` | ||
|
||
In one terminal, run `pnpm dev` in parallel: | ||
### Run Unit Tests with [Vitest](https://vitest.dev/) | ||
|
||
```sh | ||
pnpm dev | ||
pnpm test:unit | ||
``` | ||
|
||
### Lint with [ESLint](https://eslint.org/) | ||
|
||
```sh | ||
pnpm lint | ||
``` |
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 @@ | ||
/// <reference types="vite/client" /> |
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 |
---|---|---|
@@ -1,40 +1,49 @@ | ||
{ | ||
"name": "dnd-kit-vue", | ||
"private": true, | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build:all": "pnpm -C ./packages/accessibility build && pnpm -C ./packages/utilities build && pnpm -C ./packages/core build && pnpm -C ./packages/modifiers build && pnpm -C ./packages/sortable build", | ||
"preview": "vite preview", | ||
"test:unit": "vitest", | ||
"build:all": "pnpm -C ./packages/accessibility build && pnpm -C ./packages/core build && pnpm -C ./packages/modifiers build && pnpm -C ./packages/sortable build && pnpm -C ./packages/utilities build", | ||
"type-check": "vue-tsc --build --force", | ||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", | ||
"format": "prettier --write src/", | ||
"change": "pnpm changeset", | ||
"version": "pnpm changeset version", | ||
"publish": "pnpm changeset publish", | ||
"preEnter": "changeset pre enter vue", | ||
"preExit": "changeset pre exit", | ||
"test": "vitest run --coverage", | ||
"test:watch": "vitest watch" | ||
"publish": "pnpm changeset publish" | ||
}, | ||
"dependencies": { | ||
"@changesets/cli": "^2.25.2", | ||
"@dnd-kit-vue/core": "0.0.3", | ||
"@dnd-kit-vue/modifiers": "0.0.3", | ||
"@dnd-kit-vue/sortable": "0.0.3", | ||
"@dnd-kit-vue/utilities": "0.0.3", | ||
"@dnd-kit-vue/accessibility": "0.0.3", | ||
"vue": "^3.2.45" | ||
"@changesets/cli": "^2.27.5", | ||
"@dnd-kit-vue/accessibility": "workspace:*", | ||
"@dnd-kit-vue/core": "workspace:*", | ||
"@dnd-kit-vue/modifiers": "workspace:*", | ||
"@dnd-kit-vue/sortable": "workspace:*", | ||
"@dnd-kit-vue/utilities": "workspace:*", | ||
"vue": "^3.4.27" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"@vitejs/plugin-vue": "^4.0.0", | ||
"@vitejs/plugin-vue-jsx": "^3.0.0", | ||
"rimraf": "^3.0.2", | ||
"@vitest/coverage-c8": "^0.25.3", | ||
"@vue/test-utils": "^2.2.4", | ||
"jsdom": "^20.0.3", | ||
"typescript": "^4.9.3", | ||
"vite": "^4.0.3", | ||
"vitest": "^0.25.3", | ||
"vue-tsc": "^1.0.9" | ||
"@rushstack/eslint-patch": "^1.8.0", | ||
"@tsconfig/node20": "^20.1.4", | ||
"@types/jsdom": "^21.1.6", | ||
"@types/node": "^20.12.5", | ||
"@vitejs/plugin-vue": "^5.0.5", | ||
"@vitejs/plugin-vue-jsx": "^4.0.0", | ||
"@vue/eslint-config-prettier": "^9.0.0", | ||
"@vue/eslint-config-typescript": "^13.0.0", | ||
"@vue/test-utils": "^2.4.5", | ||
"@vue/tsconfig": "^0.5.1", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-vue": "^9.23.0", | ||
"jsdom": "^24.0.0", | ||
"npm-run-all2": "^6.1.2", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.5.1-rc", | ||
"vite": "^5.2.13", | ||
"vite-plugin-vue-devtools": "^7.0.25", | ||
"vitest": "^1.4.0", | ||
"vue-tsc": "^2.0.21" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
packages/accessibility/src/components/HiddenText/HiddenText.tsx
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {CSSProperties, h} from "vue"; | ||
import {type CSSProperties, h} from "vue"; | ||
|
||
interface Props { | ||
id: string; | ||
|
2 changes: 1 addition & 1 deletion
2
packages/accessibility/src/components/LiveRegion/LiveRegion.tsx
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.