Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Apr 23, 2024
1 parent 020aa87 commit c4e92d4
Show file tree
Hide file tree
Showing 107 changed files with 3,315 additions and 2,851 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions eslint.config.js

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import simon from '@antfu/eslint-config'

export default simon({
rules: {
'no-console': 'off',
'ts/ban-types': 'off',
'jsdoc/require-returns-description': 'off',
'no-new-func': 'off',
'unicorn/no-new-array': 'off',
'jsdoc/require-returns-check': 'off',
'jsdoc/check-param-names': 'off',
'no-cond-assign': 'off',
'no-eval': 'off',
},
ignores: ['**/fixtures', 'test'],
})
9 changes: 5 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build.environment]
NODE_VERSION = "16"
[build]
publish = "playground/dist"
command = "pnpm run play:build"
publish = "playground/dist"
command = "pnpm run play:build"

[build.environment]
NODE_VERSION = "16"
34 changes: 16 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "lazy-js-utils",
"type": "module",
"version": "0.0.90",
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@7.33.7",
"description": "js-tool",
"author": "Simon He",
"license": "MIT",
Expand Down Expand Up @@ -43,28 +44,28 @@
"vue": "^3.2.41"
},
"dependencies": {
"htmlparser2": "^8.0.1",
"htmlparser2": "^8.0.2",
"lazy-js-utils": "workspace:^",
"qrcode": "^1.5.1",
"qrcode": "^1.5.3",
"spark-md5": "^3.0.2"
},
"devDependencies": {
"@simon_he/eslint-config": "^0.0.6",
"@antfu/eslint-config": "^2.15.0",
"@types/node": "^17.0.45",
"@types/qrcode": "^1.5.0",
"@types/spark-md5": "^3.0.2",
"@types/qrcode": "^1.5.5",
"@types/spark-md5": "^3.0.4",
"@vitejs/plugin-vue": "^2.3.4",
"bumpp": "^8.2.1",
"eslint": "8.51.0",
"happy-dom": "^8.1.1",
"lint-staged": "^13.1.0",
"eslint": "9.1.1",
"happy-dom": "^8.9.0",
"lint-staged": "^13.3.0",
"p-limit": "^4.0.0",
"prettier": "^2.8.1",
"simple-git-hooks": "^2.8.1",
"tsup": "^6.5.0",
"tsx": "^3.12.1",
"typescript": "^4.8.4",
"vitest": "^0.28.3"
"prettier": "^2.8.8",
"simple-git-hooks": "^2.11.1",
"tsup": "^6.7.0",
"tsx": "^3.14.0",
"typescript": "^4.9.5",
"vitest": "^0.28.5"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false",
Expand All @@ -75,8 +76,5 @@
"prettier --write --cache --ignore-unknown"
],
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint --fix"
},
"eslintConfig": {
"extends": "@antfu"
}
}
18 changes: 9 additions & 9 deletions playground/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[build.environment]
NPM_FLAGS = "--version"
NODE_VERSION = "16"

[build]
publish = "dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
publish = "dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"

[build.environment]
NPM_FLAGS = "--version"
NODE_VERSION = "16"

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
from = "/*"
to = "/index.html"
status = 200
40 changes: 20 additions & 20 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground",
"private": true,
"packageManager": "pnpm@7.6.0",
"packageManager": "pnpm@7.33.7",
"scripts": {
"build": "vite build",
"dev": "vite --port 3333 --open",
Expand All @@ -12,29 +12,29 @@
"serve": "node ./server/index.js"
},
"dependencies": {
"@vueuse/core": "^8.1.1",
"ant-design-vue": "^4.0.3",
"vant": "^4.8.5",
"vue": "^3.2.31",
"vue-router": "^4.0.14"
"@vueuse/core": "^8.9.4",
"ant-design-vue": "^4.2.0",
"vant": "^4.8.11",
"vue": "^3.4.24",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.18.8",
"@iconify-json/carbon": "^1.1.2",
"@types/node": "^17.0.21",
"@unocss/reset": "^0.29.2",
"@vitejs/plugin-vue": "^2.2.4",
"@vue/test-utils": "^2.0.0-rc.18",
"eslint": "^8.11.0",
"@antfu/eslint-config": "^0.18.9",
"@iconify-json/carbon": "^1.1.31",
"@types/node": "^17.0.45",
"@unocss/reset": "^0.29.6",
"@vitejs/plugin-vue": "^2.3.4",
"@vue/test-utils": "^2.4.5",
"eslint": "^8.57.0",
"jsdom": "^19.0.0",
"typescript": "^4.6.2",
"unocss": "^0.29.2",
"unplugin-auto-import": "^0.6.6",
"unplugin-vue-components": "^0.18.0",
"vite": "^2.9.15",
"typescript": "^4.9.5",
"unocss": "^0.29.6",
"unplugin-auto-import": "^0.6.9",
"unplugin-vue-components": "^0.18.5",
"vite": "^2.9.18",
"vite-plugin-pages": "^0.22.0",
"vitest": "^0.7.0",
"vue-tsc": "^0.33.2"
"vitest": "^0.7.13",
"vue-tsc": "^0.33.9"
},
"eslintConfig": {
"extends": "@antfu"
Expand Down
59 changes: 55 additions & 4 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,58 @@
<script setup lang="ts">
import {} from './utils'
</script>
<script setup lang="ts"></script>

<template>
<div class="w-full h-full" />
<div class="swiper-container" ma style="width: 100%">
<div class="swiper-wrapper">
<div class="swiper-slide w-2">
Slide 1
</div>
<div class="swiper-slide w-20">
Slide 2
</div>

<div class="swiper-slide">
Slide 3
</div>
</div>
</div>
</template>

<style scoped>
.swiper-container {
width: 300px;
height: 200px;
overflow: hidden;
}
.swiper-wrapper {
display: flex;
width: 300%;
animation: slide 10s infinite;
animation-play-state: running;
}
.swiper-slide {
flex: 1;
width: 100%;
}
/* 鼠标移入时暂停动画 */
.swiper-container:hover .swiper-wrapper {
animation-play-state: paused;
}
@keyframes slide {
0% {
transform: translateX(0);
}
33.33% {
transform: translateX(-100%);
}
66.66% {
transform: translateX(-200%);
}
100% {
transform: translateX(0);
}
}
</style>
2 changes: 2 additions & 0 deletions playground/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ app.mount('#app')
// }).then((res: any) => {
// console.log(res)
// })

// test

0 comments on commit c4e92d4

Please sign in to comment.