parent
14aceff2d5
commit
1d93798642
26 changed files with 2512 additions and 0 deletions
@ -0,0 +1,30 @@ |
||||
# Logs |
||||
logs |
||||
*.log |
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
pnpm-debug.log* |
||||
lerna-debug.log* |
||||
|
||||
node_modules |
||||
.DS_Store |
||||
dist |
||||
dist-ssr |
||||
coverage |
||||
*.local |
||||
|
||||
/cypress/videos/ |
||||
/cypress/screenshots/ |
||||
|
||||
# Editor directories and files |
||||
.vscode/* |
||||
!.vscode/extensions.json |
||||
.idea |
||||
*.suo |
||||
*.ntvs* |
||||
*.njsproj |
||||
*.sln |
||||
*.sw? |
||||
|
||||
*.tsbuildinfo |
@ -0,0 +1,3 @@ |
||||
{ |
||||
"recommendations": ["Vue.volar"] |
||||
} |
@ -0,0 +1,13 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<link rel="icon" href="/favicon.ico"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<title>放光盒子</title> |
||||
</head> |
||||
<body> |
||||
<div id="app"></div> |
||||
<script type="module" src="/src/main.js"></script> |
||||
</body> |
||||
</html> |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"compilerOptions": { |
||||
"paths": { |
||||
"@/*": ["./src/*"] |
||||
} |
||||
}, |
||||
"exclude": ["node_modules", "dist"] |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,19 @@ |
||||
{ |
||||
"name": "light-card", |
||||
"version": "0.0.0", |
||||
"private": true, |
||||
"type": "module", |
||||
"scripts": { |
||||
"dev": "vite", |
||||
"build": "vite build", |
||||
"preview": "vite preview" |
||||
}, |
||||
"dependencies": { |
||||
"vue": "^3.4.29", |
||||
"vue-router": "^4.3.3" |
||||
}, |
||||
"devDependencies": { |
||||
"@vitejs/plugin-vue": "^5.0.5", |
||||
"vite": "^5.3.1" |
||||
} |
||||
} |
@ -0,0 +1,700 @@ |
||||
lockfileVersion: '9.0' |
||||
|
||||
settings: |
||||
autoInstallPeers: true |
||||
excludeLinksFromLockfile: false |
||||
|
||||
importers: |
||||
|
||||
.: |
||||
dependencies: |
||||
vue: |
||||
specifier: ^3.4.29 |
||||
version: 3.5.8 |
||||
vue-router: |
||||
specifier: ^4.3.3 |
||||
version: 4.4.5(vue@3.5.8) |
||||
devDependencies: |
||||
'@vitejs/plugin-vue': |
||||
specifier: ^5.0.5 |
||||
version: 5.1.4(vite@5.4.7)(vue@3.5.8) |
||||
vite: |
||||
specifier: ^5.3.1 |
||||
version: 5.4.7 |
||||
|
||||
packages: |
||||
|
||||
'@babel/helper-string-parser@7.24.8': |
||||
resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==} |
||||
engines: {node: '>=6.9.0'} |
||||
|
||||
'@babel/helper-validator-identifier@7.24.7': |
||||
resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} |
||||
engines: {node: '>=6.9.0'} |
||||
|
||||
'@babel/parser@7.25.6': |
||||
resolution: {integrity: sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==} |
||||
engines: {node: '>=6.0.0'} |
||||
hasBin: true |
||||
|
||||
'@babel/types@7.25.6': |
||||
resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==} |
||||
engines: {node: '>=6.9.0'} |
||||
|
||||
'@esbuild/aix-ppc64@0.21.5': |
||||
resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} |
||||
engines: {node: '>=12'} |
||||
cpu: [ppc64] |
||||
os: [aix] |
||||
|
||||
'@esbuild/android-arm64@0.21.5': |
||||
resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm64] |
||||
os: [android] |
||||
|
||||
'@esbuild/android-arm@0.21.5': |
||||
resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm] |
||||
os: [android] |
||||
|
||||
'@esbuild/android-x64@0.21.5': |
||||
resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [android] |
||||
|
||||
'@esbuild/darwin-arm64@0.21.5': |
||||
resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm64] |
||||
os: [darwin] |
||||
|
||||
'@esbuild/darwin-x64@0.21.5': |
||||
resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [darwin] |
||||
|
||||
'@esbuild/freebsd-arm64@0.21.5': |
||||
resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm64] |
||||
os: [freebsd] |
||||
|
||||
'@esbuild/freebsd-x64@0.21.5': |
||||
resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [freebsd] |
||||
|
||||
'@esbuild/linux-arm64@0.21.5': |
||||
resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm64] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-arm@0.21.5': |
||||
resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-ia32@0.21.5': |
||||
resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [ia32] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-loong64@0.21.5': |
||||
resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [loong64] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-mips64el@0.21.5': |
||||
resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [mips64el] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-ppc64@0.21.5': |
||||
resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} |
||||
engines: {node: '>=12'} |
||||
cpu: [ppc64] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-riscv64@0.21.5': |
||||
resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} |
||||
engines: {node: '>=12'} |
||||
cpu: [riscv64] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-s390x@0.21.5': |
||||
resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} |
||||
engines: {node: '>=12'} |
||||
cpu: [s390x] |
||||
os: [linux] |
||||
|
||||
'@esbuild/linux-x64@0.21.5': |
||||
resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [linux] |
||||
|
||||
'@esbuild/netbsd-x64@0.21.5': |
||||
resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [netbsd] |
||||
|
||||
'@esbuild/openbsd-x64@0.21.5': |
||||
resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [openbsd] |
||||
|
||||
'@esbuild/sunos-x64@0.21.5': |
||||
resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [sunos] |
||||
|
||||
'@esbuild/win32-arm64@0.21.5': |
||||
resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} |
||||
engines: {node: '>=12'} |
||||
cpu: [arm64] |
||||
os: [win32] |
||||
|
||||
'@esbuild/win32-ia32@0.21.5': |
||||
resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} |
||||
engines: {node: '>=12'} |
||||
cpu: [ia32] |
||||
os: [win32] |
||||
|
||||
'@esbuild/win32-x64@0.21.5': |
||||
resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} |
||||
engines: {node: '>=12'} |
||||
cpu: [x64] |
||||
os: [win32] |
||||
|
||||
'@jridgewell/sourcemap-codec@1.5.0': |
||||
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} |
||||
|
||||
'@rollup/rollup-android-arm-eabi@4.22.4': |
||||
resolution: {integrity: sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==} |
||||
cpu: [arm] |
||||
os: [android] |
||||
|
||||
'@rollup/rollup-android-arm64@4.22.4': |
||||
resolution: {integrity: sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==} |
||||
cpu: [arm64] |
||||
os: [android] |
||||
|
||||
'@rollup/rollup-darwin-arm64@4.22.4': |
||||
resolution: {integrity: sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==} |
||||
cpu: [arm64] |
||||
os: [darwin] |
||||
|
||||
'@rollup/rollup-darwin-x64@4.22.4': |
||||
resolution: {integrity: sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==} |
||||
cpu: [x64] |
||||
os: [darwin] |
||||
|
||||
'@rollup/rollup-linux-arm-gnueabihf@4.22.4': |
||||
resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==} |
||||
cpu: [arm] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-arm-musleabihf@4.22.4': |
||||
resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==} |
||||
cpu: [arm] |
||||
os: [linux] |
||||
libc: [musl] |
||||
|
||||
'@rollup/rollup-linux-arm64-gnu@4.22.4': |
||||
resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==} |
||||
cpu: [arm64] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-arm64-musl@4.22.4': |
||||
resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==} |
||||
cpu: [arm64] |
||||
os: [linux] |
||||
libc: [musl] |
||||
|
||||
'@rollup/rollup-linux-powerpc64le-gnu@4.22.4': |
||||
resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==} |
||||
cpu: [ppc64] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-riscv64-gnu@4.22.4': |
||||
resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==} |
||||
cpu: [riscv64] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-s390x-gnu@4.22.4': |
||||
resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==} |
||||
cpu: [s390x] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-x64-gnu@4.22.4': |
||||
resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==} |
||||
cpu: [x64] |
||||
os: [linux] |
||||
libc: [glibc] |
||||
|
||||
'@rollup/rollup-linux-x64-musl@4.22.4': |
||||
resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==} |
||||
cpu: [x64] |
||||
os: [linux] |
||||
libc: [musl] |
||||
|
||||
'@rollup/rollup-win32-arm64-msvc@4.22.4': |
||||
resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==} |
||||
cpu: [arm64] |
||||
os: [win32] |
||||
|
||||
'@rollup/rollup-win32-ia32-msvc@4.22.4': |
||||
resolution: {integrity: sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==} |
||||
cpu: [ia32] |
||||
os: [win32] |
||||
|
||||
'@rollup/rollup-win32-x64-msvc@4.22.4': |
||||
resolution: {integrity: sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==} |
||||
cpu: [x64] |
||||
os: [win32] |
||||
|
||||
'@types/estree@1.0.5': |
||||
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} |
||||
|
||||
'@vitejs/plugin-vue@5.1.4': |
||||
resolution: {integrity: sha512-N2XSI2n3sQqp5w7Y/AN/L2XDjBIRGqXko+eDp42sydYSBeJuSm5a1sLf8zakmo8u7tA8NmBgoDLA1HeOESjp9A==} |
||||
engines: {node: ^18.0.0 || >=20.0.0} |
||||
peerDependencies: |
||||
vite: ^5.0.0 |
||||
vue: ^3.2.25 |
||||
|
||||
'@vue/compiler-core@3.5.8': |
||||
resolution: {integrity: sha512-Uzlxp91EPjfbpeO5KtC0KnXPkuTfGsNDeaKQJxQN718uz+RqDYarEf7UhQJGK+ZYloD2taUbHTI2J4WrUaZQNA==} |
||||
|
||||
'@vue/compiler-dom@3.5.8': |
||||
resolution: {integrity: sha512-GUNHWvoDSbSa5ZSHT9SnV5WkStWfzJwwTd6NMGzilOE/HM5j+9EB9zGXdtu/fCNEmctBqMs6C9SvVPpVPuk1Eg==} |
||||
|
||||
'@vue/compiler-sfc@3.5.8': |
||||
resolution: {integrity: sha512-taYpngQtSysrvO9GULaOSwcG5q821zCoIQBtQQSx7Uf7DxpR6CIHR90toPr9QfDD2mqHQPCSgoWBvJu0yV9zjg==} |
||||
|
||||
'@vue/compiler-ssr@3.5.8': |
||||
resolution: {integrity: sha512-W96PtryNsNG9u0ZnN5Q5j27Z/feGrFV6zy9q5tzJVyJaLiwYxvC0ek4IXClZygyhjm+XKM7WD9pdKi/wIRVC/Q==} |
||||
|
||||
'@vue/devtools-api@6.6.4': |
||||
resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} |
||||
|
||||
'@vue/reactivity@3.5.8': |
||||
resolution: {integrity: sha512-mlgUyFHLCUZcAYkqvzYnlBRCh0t5ZQfLYit7nukn1GR96gc48Bp4B7OIcSfVSvlG1k3BPfD+p22gi1t2n9tsXg==} |
||||
|
||||
'@vue/runtime-core@3.5.8': |
||||
resolution: {integrity: sha512-fJuPelh64agZ8vKkZgp5iCkPaEqFJsYzxLk9vSC0X3G8ppknclNDr61gDc45yBGTaN5Xqc1qZWU3/NoaBMHcjQ==} |
||||
|
||||
'@vue/runtime-dom@3.5.8': |
||||
resolution: {integrity: sha512-DpAUz+PKjTZPUOB6zJgkxVI3GuYc2iWZiNeeHQUw53kdrparSTG6HeXUrYDjaam8dVsCdvQxDz6ZWxnyjccUjQ==} |
||||
|
||||
'@vue/server-renderer@3.5.8': |
||||
resolution: {integrity: sha512-7AmC9/mEeV9mmXNVyUIm1a1AjUhyeeGNbkLh39J00E7iPeGks8OGRB5blJiMmvqSh8SkaS7jkLWSpXtxUCeagA==} |
||||
peerDependencies: |
||||
vue: 3.5.8 |
||||
|
||||
'@vue/shared@3.5.8': |
||||
resolution: {integrity: sha512-mJleSWbAGySd2RJdX1RBtcrUBX6snyOc0qHpgk3lGi4l9/P/3ny3ELqFWqYdkXIwwNN/kdm8nD9ky8o6l/Lx2A==} |
||||
|
||||
csstype@3.1.3: |
||||
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} |
||||
|
||||
entities@4.5.0: |
||||
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} |
||||
engines: {node: '>=0.12'} |
||||
|
||||
esbuild@0.21.5: |
||||
resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} |
||||
engines: {node: '>=12'} |
||||
hasBin: true |
||||
|
||||
estree-walker@2.0.2: |
||||
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} |
||||
|
||||
fsevents@2.3.3: |
||||
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} |
||||
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} |
||||
os: [darwin] |
||||
|
||||
magic-string@0.30.11: |
||||
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} |
||||
|
||||
nanoid@3.3.7: |
||||
resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} |
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} |
||||
hasBin: true |
||||
|
||||
picocolors@1.1.0: |
||||
resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} |
||||
|
||||
postcss@8.4.47: |
||||
resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==} |
||||
engines: {node: ^10 || ^12 || >=14} |
||||
|
||||
rollup@4.22.4: |
||||
resolution: {integrity: sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==} |
||||
engines: {node: '>=18.0.0', npm: '>=8.0.0'} |
||||
hasBin: true |
||||
|
||||
source-map-js@1.2.1: |
||||
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} |
||||
engines: {node: '>=0.10.0'} |
||||
|
||||
to-fast-properties@2.0.0: |
||||
resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} |
||||
engines: {node: '>=4'} |
||||
|
||||
vite@5.4.7: |
||||
resolution: {integrity: sha512-5l2zxqMEPVENgvzTuBpHer2awaetimj2BGkhBPdnwKbPNOlHsODU+oiazEZzLK7KhAnOrO+XGYJYn4ZlUhDtDQ==} |
||||
engines: {node: ^18.0.0 || >=20.0.0} |
||||
hasBin: true |
||||
peerDependencies: |
||||
'@types/node': ^18.0.0 || >=20.0.0 |
||||
less: '*' |
||||
lightningcss: ^1.21.0 |
||||
sass: '*' |
||||
sass-embedded: '*' |
||||
stylus: '*' |
||||
sugarss: '*' |
||||
terser: ^5.4.0 |
||||
peerDependenciesMeta: |
||||
'@types/node': |
||||
optional: true |
||||
less: |
||||
optional: true |
||||
lightningcss: |
||||
optional: true |
||||
sass: |
||||
optional: true |
||||
sass-embedded: |
||||
optional: true |
||||
stylus: |
||||
optional: true |
||||
sugarss: |
||||
optional: true |
||||
terser: |
||||
optional: true |
||||
|
||||
vue-router@4.4.5: |
||||
resolution: {integrity: sha512-4fKZygS8cH1yCyuabAXGUAsyi1b2/o/OKgu/RUb+znIYOxPRxdkytJEx+0wGcpBE1pX6vUgh5jwWOKRGvuA/7Q==} |
||||
peerDependencies: |
||||
vue: ^3.2.0 |
||||
|
||||
vue@3.5.8: |
||||
resolution: {integrity: sha512-hvuvuCy51nP/1fSRvrrIqTLSvrSyz2Pq+KQ8S8SXCxTWVE0nMaOnSDnSOxV1eYmGfvK7mqiwvd1C59CEEz7dAQ==} |
||||
peerDependencies: |
||||
typescript: '*' |
||||
peerDependenciesMeta: |
||||
typescript: |
||||
optional: true |
||||
|
||||
snapshots: |
||||
|
||||
'@babel/helper-string-parser@7.24.8': {} |
||||
|
||||
'@babel/helper-validator-identifier@7.24.7': {} |
||||
|
||||
'@babel/parser@7.25.6': |
||||
dependencies: |
||||
'@babel/types': 7.25.6 |
||||
|
||||
'@babel/types@7.25.6': |
||||
dependencies: |
||||
'@babel/helper-string-parser': 7.24.8 |
||||
'@babel/helper-validator-identifier': 7.24.7 |
||||
to-fast-properties: 2.0.0 |
||||
|
||||
'@esbuild/aix-ppc64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/android-arm64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/android-arm@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/android-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/darwin-arm64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/darwin-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/freebsd-arm64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/freebsd-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-arm64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-arm@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-ia32@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-loong64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-mips64el@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-ppc64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-riscv64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-s390x@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/linux-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/netbsd-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/openbsd-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/sunos-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/win32-arm64@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/win32-ia32@0.21.5': |
||||
optional: true |
||||
|
||||
'@esbuild/win32-x64@0.21.5': |
||||
optional: true |
||||
|
||||
'@jridgewell/sourcemap-codec@1.5.0': {} |
||||
|
||||
'@rollup/rollup-android-arm-eabi@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-android-arm64@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-darwin-arm64@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-darwin-x64@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-arm-gnueabihf@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-arm-musleabihf@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-arm64-gnu@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-arm64-musl@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-powerpc64le-gnu@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-riscv64-gnu@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-s390x-gnu@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-x64-gnu@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-linux-x64-musl@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-win32-arm64-msvc@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-win32-ia32-msvc@4.22.4': |
||||
optional: true |
||||
|
||||
'@rollup/rollup-win32-x64-msvc@4.22.4': |
||||
optional: true |
||||
|
||||
'@types/estree@1.0.5': {} |
||||
|
||||
'@vitejs/plugin-vue@5.1.4(vite@5.4.7)(vue@3.5.8)': |
||||
dependencies: |
||||
vite: 5.4.7 |
||||
vue: 3.5.8 |
||||
|
||||
'@vue/compiler-core@3.5.8': |
||||
dependencies: |
||||
'@babel/parser': 7.25.6 |
||||
'@vue/shared': 3.5.8 |
||||
entities: 4.5.0 |
||||
estree-walker: 2.0.2 |
||||
source-map-js: 1.2.1 |
||||
|
||||
'@vue/compiler-dom@3.5.8': |
||||
dependencies: |
||||
'@vue/compiler-core': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
|
||||
'@vue/compiler-sfc@3.5.8': |
||||
dependencies: |
||||
'@babel/parser': 7.25.6 |
||||
'@vue/compiler-core': 3.5.8 |
||||
'@vue/compiler-dom': 3.5.8 |
||||
'@vue/compiler-ssr': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
estree-walker: 2.0.2 |
||||
magic-string: 0.30.11 |
||||
postcss: 8.4.47 |
||||
source-map-js: 1.2.1 |
||||
|
||||
'@vue/compiler-ssr@3.5.8': |
||||
dependencies: |
||||
'@vue/compiler-dom': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
|
||||
'@vue/devtools-api@6.6.4': {} |
||||
|
||||
'@vue/reactivity@3.5.8': |
||||
dependencies: |
||||
'@vue/shared': 3.5.8 |
||||
|
||||
'@vue/runtime-core@3.5.8': |
||||
dependencies: |
||||
'@vue/reactivity': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
|
||||
'@vue/runtime-dom@3.5.8': |
||||
dependencies: |
||||
'@vue/reactivity': 3.5.8 |
||||
'@vue/runtime-core': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
csstype: 3.1.3 |
||||
|
||||
'@vue/server-renderer@3.5.8(vue@3.5.8)': |
||||
dependencies: |
||||
'@vue/compiler-ssr': 3.5.8 |
||||
'@vue/shared': 3.5.8 |
||||
vue: 3.5.8 |
||||
|
||||
'@vue/shared@3.5.8': {} |
||||
|
||||
csstype@3.1.3: {} |
||||
|
||||
entities@4.5.0: {} |
||||
|
||||
esbuild@0.21.5: |
||||
optionalDependencies: |
||||
'@esbuild/aix-ppc64': 0.21.5 |
||||
'@esbuild/android-arm': 0.21.5 |
||||
'@esbuild/android-arm64': 0.21.5 |
||||
'@esbuild/android-x64': 0.21.5 |
||||
'@esbuild/darwin-arm64': 0.21.5 |
||||
'@esbuild/darwin-x64': 0.21.5 |
||||
'@esbuild/freebsd-arm64': 0.21.5 |
||||
'@esbuild/freebsd-x64': 0.21.5 |
||||
'@esbuild/linux-arm': 0.21.5 |
||||
'@esbuild/linux-arm64': 0.21.5 |
||||
'@esbuild/linux-ia32': 0.21.5 |
||||
'@esbuild/linux-loong64': 0.21.5 |
||||
'@esbuild/linux-mips64el': 0.21.5 |
||||
'@esbuild/linux-ppc64': 0.21.5 |
||||
'@esbuild/linux-riscv64': 0.21.5 |
||||
'@esbuild/linux-s390x': 0.21.5 |
||||
'@esbuild/linux-x64': 0.21.5 |
||||
'@esbuild/netbsd-x64': 0.21.5 |
||||
'@esbuild/openbsd-x64': 0.21.5 |
||||
'@esbuild/sunos-x64': 0.21.5 |
||||
'@esbuild/win32-arm64': 0.21.5 |
||||
'@esbuild/win32-ia32': 0.21.5 |
||||
'@esbuild/win32-x64': 0.21.5 |
||||
|
||||
estree-walker@2.0.2: {} |
||||
|
||||
fsevents@2.3.3: |
||||
optional: true |
||||
|
||||
magic-string@0.30.11: |
||||
dependencies: |
||||
'@jridgewell/sourcemap-codec': 1.5.0 |
||||
|
||||
nanoid@3.3.7: {} |
||||
|
||||
picocolors@1.1.0: {} |
||||
|
||||
postcss@8.4.47: |
||||
dependencies: |
||||
nanoid: 3.3.7 |
||||
picocolors: 1.1.0 |
||||
source-map-js: 1.2.1 |
||||
|
||||
rollup@4.22.4: |
||||
dependencies: |
||||
'@types/estree': 1.0.5 |
||||
optionalDependencies: |
||||
'@rollup/rollup-android-arm-eabi': 4.22.4 |
||||
'@rollup/rollup-android-arm64': 4.22.4 |
||||
'@rollup/rollup-darwin-arm64': 4.22.4 |
||||
'@rollup/rollup-darwin-x64': 4.22.4 |
||||
'@rollup/rollup-linux-arm-gnueabihf': 4.22.4 |
||||
'@rollup/rollup-linux-arm-musleabihf': 4.22.4 |
||||
'@rollup/rollup-linux-arm64-gnu': 4.22.4 |
||||
'@rollup/rollup-linux-arm64-musl': 4.22.4 |
||||
'@rollup/rollup-linux-powerpc64le-gnu': 4.22.4 |
||||
'@rollup/rollup-linux-riscv64-gnu': 4.22.4 |
||||
'@rollup/rollup-linux-s390x-gnu': 4.22.4 |
||||
'@rollup/rollup-linux-x64-gnu': 4.22.4 |
||||
'@rollup/rollup-linux-x64-musl': 4.22.4 |
||||
'@rollup/rollup-win32-arm64-msvc': 4.22.4 |
||||
'@rollup/rollup-win32-ia32-msvc': 4.22.4 |
||||
'@rollup/rollup-win32-x64-msvc': 4.22.4 |
||||
fsevents: 2.3.3 |
||||
|
||||
source-map-js@1.2.1: {} |
||||
|
||||
to-fast-properties@2.0.0: {} |
||||
|
||||
vite@5.4.7: |
||||
dependencies: |
||||
esbuild: 0.21.5 |
||||
postcss: 8.4.47 |
||||
rollup: 4.22.4 |
||||
optionalDependencies: |
||||
fsevents: 2.3.3 |
||||
|
||||
vue-router@4.4.5(vue@3.5.8): |
||||
dependencies: |
||||
'@vue/devtools-api': 6.6.4 |
||||
vue: 3.5.8 |
||||
|
||||
vue@3.5.8: |
||||
dependencies: |
||||
'@vue/compiler-dom': 3.5.8 |
||||
'@vue/compiler-sfc': 3.5.8 |
||||
'@vue/runtime-dom': 3.5.8 |
||||
'@vue/server-renderer': 3.5.8(vue@3.5.8) |
||||
'@vue/shared': 3.5.8 |
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,47 @@ |
||||
<template> |
||||
<div class="container"> |
||||
<!-- 方块盒子 --> |
||||
<div class="item" ref="cardRef1"></div> |
||||
<!-- 方块盒子 --> |
||||
<div class="item" ref="cardRef2"></div> |
||||
<!-- 方块盒子 --> |
||||
<div class="item" ref="cardRef3"></div> |
||||
</div> |
||||
</template> |
||||
|
||||
<script setup lang="ts"> |
||||
import { useLightCard } from './js/use-light-card.ts'; |
||||
|
||||
const { cardRef: cardRef1 } = useLightCard(); |
||||
const { cardRef: cardRef2 } = useLightCard({ |
||||
light: { |
||||
color: '#ffffff', |
||||
width: 100, |
||||
}, |
||||
}); |
||||
const { cardRef: cardRef3 } = useLightCard({ |
||||
light: { |
||||
color: 'yellow', |
||||
}, |
||||
}); |
||||
</script> |
||||
|
||||
<style scoped> |
||||
.container { |
||||
background: black; |
||||
width: 100%; |
||||
height: 100%; |
||||
padding: 200px; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
} |
||||
.item { |
||||
position: relative; |
||||
width: 300px; |
||||
height: 300px; |
||||
background: #1c1c1f; |
||||
border: 1px solid rgba(255, 255, 255, 0.1); |
||||
} |
||||
|
||||
</style> |
||||
|
@ -0,0 +1,86 @@ |
||||
/* color palette from <https://github.com/vuejs/theme> */ |
||||
:root { |
||||
--vt-c-white: #ffffff; |
||||
--vt-c-white-soft: #f8f8f8; |
||||
--vt-c-white-mute: #f2f2f2; |
||||
|
||||
--vt-c-black: #181818; |
||||
--vt-c-black-soft: #222222; |
||||
--vt-c-black-mute: #282828; |
||||
|
||||
--vt-c-indigo: #2c3e50; |
||||
|
||||
--vt-c-divider-light-1: rgba(60, 60, 60, 0.29); |
||||
--vt-c-divider-light-2: rgba(60, 60, 60, 0.12); |
||||
--vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); |
||||
--vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); |
||||
|
||||
--vt-c-text-light-1: var(--vt-c-indigo); |
||||
--vt-c-text-light-2: rgba(60, 60, 60, 0.66); |
||||
--vt-c-text-dark-1: var(--vt-c-white); |
||||
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64); |
||||
} |
||||
|
||||
/* semantic color variables for this project */ |
||||
:root { |
||||
--color-background: var(--vt-c-white); |
||||
--color-background-soft: var(--vt-c-white-soft); |
||||
--color-background-mute: var(--vt-c-white-mute); |
||||
|
||||
--color-border: var(--vt-c-divider-light-2); |
||||
--color-border-hover: var(--vt-c-divider-light-1); |
||||
|
||||
--color-heading: var(--vt-c-text-light-1); |
||||
--color-text: var(--vt-c-text-light-1); |
||||
|
||||
--section-gap: 160px; |
||||
} |
||||
|
||||
@media (prefers-color-scheme: dark) { |
||||
:root { |
||||
--color-background: var(--vt-c-black); |
||||
--color-background-soft: var(--vt-c-black-soft); |
||||
--color-background-mute: var(--vt-c-black-mute); |
||||
|
||||
--color-border: var(--vt-c-divider-dark-2); |
||||
--color-border-hover: var(--vt-c-divider-dark-1); |
||||
|
||||
--color-heading: var(--vt-c-text-dark-1); |
||||
--color-text: var(--vt-c-text-dark-2); |
||||
} |
||||
} |
||||
|
||||
*, |
||||
*::before, |
||||
*::after { |
||||
box-sizing: border-box; |
||||
margin: 0; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
body { |
||||
min-height: 100vh; |
||||
color: var(--color-text); |
||||
background: var(--color-background); |
||||
transition: |
||||
color 0.5s, |
||||
background-color 0.5s; |
||||
line-height: 1.6; |
||||
font-family: |
||||
Inter, |
||||
-apple-system, |
||||
BlinkMacSystemFont, |
||||
'Segoe UI', |
||||
Roboto, |
||||
Oxygen, |
||||
Ubuntu, |
||||
Cantarell, |
||||
'Fira Sans', |
||||
'Droid Sans', |
||||
'Helvetica Neue', |
||||
sans-serif; |
||||
font-size: 15px; |
||||
text-rendering: optimizeLegibility; |
||||
-webkit-font-smoothing: antialiased; |
||||
-moz-osx-font-smoothing: grayscale; |
||||
} |
After Width: | Height: | Size: 276 B |
@ -0,0 +1,35 @@ |
||||
@import './base.css'; |
||||
|
||||
#app { |
||||
max-width: 1280px; |
||||
margin: 0 auto; |
||||
padding: 2rem; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
a, |
||||
.green { |
||||
text-decoration: none; |
||||
color: hsla(160, 100%, 37%, 1); |
||||
transition: 0.4s; |
||||
padding: 3px; |
||||
} |
||||
|
||||
@media (hover: hover) { |
||||
a:hover { |
||||
background-color: hsla(160, 100%, 37%, 0.2); |
||||
} |
||||
} |
||||
|
||||
@media (min-width: 1024px) { |
||||
body { |
||||
display: flex; |
||||
place-items: center; |
||||
} |
||||
|
||||
#app { |
||||
display: grid; |
||||
grid-template-columns: 1fr 1fr; |
||||
padding: 0 2rem; |
||||
} |
||||
} |
@ -0,0 +1,44 @@ |
||||
<script setup> |
||||
defineProps({ |
||||
msg: { |
||||
type: String, |
||||
required: true |
||||
} |
||||
}) |
||||
</script> |
||||
|
||||
<template> |
||||
<div class="greetings"> |
||||
<h1 class="green">{{ msg }}</h1> |
||||
<h3> |
||||
You’ve successfully created a project with |
||||
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> + |
||||
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. |
||||
</h3> |
||||
</div> |
||||
</template> |
||||
|
||||
<style scoped> |
||||
h1 { |
||||
font-weight: 500; |
||||
font-size: 2.6rem; |
||||
position: relative; |
||||
top: -10px; |
||||
} |
||||
|
||||
h3 { |
||||
font-size: 1.2rem; |
||||
} |
||||
|
||||
.greetings h1, |
||||
.greetings h3 { |
||||
text-align: center; |
||||
} |
||||
|
||||
@media (min-width: 1024px) { |
||||
.greetings h1, |
||||
.greetings h3 { |
||||
text-align: left; |
||||
} |
||||
} |
||||
</style> |
@ -0,0 +1,88 @@ |
||||
<script setup> |
||||
import WelcomeItem from './WelcomeItem.vue' |
||||
import DocumentationIcon from './icons/IconDocumentation.vue' |
||||
import ToolingIcon from './icons/IconTooling.vue' |
||||
import EcosystemIcon from './icons/IconEcosystem.vue' |
||||
import CommunityIcon from './icons/IconCommunity.vue' |
||||
import SupportIcon from './icons/IconSupport.vue' |
||||
</script> |
||||
|
||||
<template> |
||||
<WelcomeItem> |
||||
<template #icon> |
||||
<DocumentationIcon /> |
||||
</template> |
||||
<template #heading>Documentation</template> |
||||
|
||||
Vue’s |
||||
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a> |
||||
provides you with all information you need to get started. |
||||
</WelcomeItem> |
||||
|
||||
<WelcomeItem> |
||||
<template #icon> |
||||
<ToolingIcon /> |
||||
</template> |
||||
<template #heading>Tooling</template> |
||||
|
||||
This project is served and bundled with |
||||
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The |
||||
recommended IDE setup is |
||||
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> + |
||||
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If |
||||
you need to test your components and web pages, check out |
||||
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and |
||||
<a href="https://on.cypress.io/component" target="_blank" rel="noopener" |
||||
>Cypress Component Testing</a |
||||
>. |
||||
|
||||
<br /> |
||||
|
||||
More instructions are available in <code>README.md</code>. |
||||
</WelcomeItem> |
||||
|
||||
<WelcomeItem> |
||||
<template #icon> |
||||
<EcosystemIcon /> |
||||
</template> |
||||
<template #heading>Ecosystem</template> |
||||
|
||||
Get official tools and libraries for your project: |
||||
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>, |
||||
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>, |
||||
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and |
||||
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If |
||||
you need more resources, we suggest paying |
||||
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a> |
||||
a visit. |
||||
</WelcomeItem> |
||||
|
||||
<WelcomeItem> |
||||
<template #icon> |
||||
<CommunityIcon /> |
||||
</template> |
||||
<template #heading>Community</template> |
||||
|
||||
Got stuck? Ask your question on |
||||
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official |
||||
Discord server, or |
||||
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener" |
||||
>StackOverflow</a |
||||
>. You should also subscribe to |
||||
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow |
||||
the official |
||||
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a> |
||||
twitter account for latest news in the Vue world. |
||||
</WelcomeItem> |
||||
|
||||
<WelcomeItem> |
||||
<template #icon> |
||||
<SupportIcon /> |
||||
</template> |
||||
<template #heading>Support Vue</template> |
||||
|
||||
As an independent project, Vue relies on community backing for its sustainability. You can help |
||||
us by |
||||
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>. |
||||
</WelcomeItem> |
||||
</template> |
@ -0,0 +1,86 @@ |
||||
<template> |
||||
<div class="item"> |
||||
<i> |
||||
<slot name="icon"></slot> |
||||
</i> |
||||
<div class="details"> |
||||
<h3> |
||||
<slot name="heading"></slot> |
||||
</h3> |
||||
<slot></slot> |
||||
</div> |
||||
</div> |
||||
</template> |
||||
|
||||
<style scoped> |
||||
.item { |
||||
margin-top: 2rem; |
||||
display: flex; |
||||
position: relative; |
||||
} |
||||
|
||||
.details { |
||||
flex: 1; |
||||
margin-left: 1rem; |
||||
} |
||||
|
||||
i { |
||||
display: flex; |
||||
place-items: center; |
||||
place-content: center; |
||||
width: 32px; |
||||
height: 32px; |
||||
color: var(--color-text); |
||||
} |
||||
|
||||
h3 { |
||||
font-size: 1.2rem; |
||||
font-weight: 500; |
||||
margin-bottom: 0.4rem; |
||||
color: var(--color-heading); |
||||
} |
||||
|
||||
@media (min-width: 1024px) { |
||||
.item { |
||||
margin-top: 0; |
||||
padding: 0.4rem 0 1rem calc(var(--section-gap) / 2); |
||||
} |
||||
|
||||
i { |
||||
top: calc(50% - 25px); |
||||
left: -26px; |
||||
position: absolute; |
||||
border: 1px solid var(--color-border); |
||||
background: var(--color-background); |
||||
border-radius: 8px; |
||||
width: 50px; |
||||
height: 50px; |
||||
} |
||||
|
||||
.item:before { |
||||
content: ' '; |
||||
border-left: 1px solid var(--color-border); |
||||
position: absolute; |
||||
left: 0; |
||||
bottom: calc(50% + 25px); |
||||
height: calc(50% - 25px); |
||||
} |
||||
|
||||
.item:after { |
||||
content: ' '; |
||||
border-left: 1px solid var(--color-border); |
||||
position: absolute; |
||||
left: 0; |
||||
top: calc(50% + 25px); |
||||
height: calc(50% - 25px); |
||||
} |
||||
|
||||
.item:first-of-type:before { |
||||
display: none; |
||||
} |
||||
|
||||
.item:last-of-type:after { |
||||
display: none; |
||||
} |
||||
} |
||||
</style> |
@ -0,0 +1,7 @@ |
||||
<template> |
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"> |
||||
<path |
||||
d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z" |
||||
/> |
||||
</svg> |
||||
</template> |
@ -0,0 +1,7 @@ |
||||
<template> |
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor"> |
||||
<path |
||||
d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z" |
||||
/> |
||||
</svg> |
||||
</template> |
@ -0,0 +1,7 @@ |
||||
<template> |
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor"> |
||||
<path |
||||
d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z" |
||||
/> |
||||
</svg> |
||||
</template> |
@ -0,0 +1,7 @@ |
||||
<template> |
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor"> |
||||
<path |
||||
d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z" |
||||
/> |
||||
</svg> |
||||
</template> |
@ -0,0 +1,19 @@ |
||||
<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license--> |
||||
<template> |
||||
<svg |
||||
xmlns="http://www.w3.org/2000/svg" |
||||
xmlns:xlink="http://www.w3.org/1999/xlink" |
||||
aria-hidden="true" |
||||
role="img" |
||||
class="iconify iconify--mdi" |
||||
width="24" |
||||
height="24" |
||||
preserveAspectRatio="xMidYMid meet" |
||||
viewBox="0 0 24 24" |
||||
> |
||||
<path |
||||
d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z" |
||||
fill="currentColor" |
||||
></path> |
||||
</svg> |
||||
</template> |
@ -0,0 +1,127 @@ |
||||
// use-light-card.ts
|
||||
|
||||
import { onMounted, onUnmounted, ref } from 'vue'; |
||||
|
||||
interface IOptions { |
||||
light?: { |
||||
width?: number; // 宽
|
||||
height?: number; // 高
|
||||
color?: string; // 颜色
|
||||
blur?: number; // filter: blur()
|
||||
}; |
||||
} |
||||
|
||||
export const useLightCard = (option: IOptions = {}) => { |
||||
// 获取卡片的dom节点
|
||||
const cardRef = ref<HTMLDivElement | null>(null); |
||||
let cardOverflow = ''; |
||||
// 光的dom节点
|
||||
const lightRef = ref<HTMLDivElement>(document.createElement('div')); |
||||
// 设置光源的样式
|
||||
|
||||
const setLightStyle = () => { |
||||
const { width = 60, height = 60, color = '#ff4132', blur = 30 } = option.light ?? {}; |
||||
const lightDom = lightRef.value; |
||||
lightDom.style.position = 'absolute'; |
||||
lightDom.style.width = `${width}px`; |
||||
lightDom.style.height = `${height}px`; |
||||
lightDom.style.background = color; |
||||
lightDom.style.filter = `blur(${blur}px)`; |
||||
}; |
||||
|
||||
// 设置卡片的 overflow 为 hidden
|
||||
const setCardOverflowHidden = () => { |
||||
const cardDom = cardRef.value; |
||||
if (cardDom) { |
||||
cardOverflow = cardDom.style.overflow; |
||||
cardDom.style.overflow = 'hidden'; |
||||
} |
||||
}; |
||||
// 还原卡片的 overflow
|
||||
const restoreCardOverflow = () => { |
||||
const cardDom = cardRef.value; |
||||
if (cardDom) { |
||||
cardDom.style.overflow = cardOverflow; |
||||
} |
||||
}; |
||||
|
||||
// 往卡片添加光源
|
||||
const addLight = () => { |
||||
const cardDom = cardRef.value; |
||||
if (cardDom) { |
||||
cardDom.appendChild(lightRef.value); |
||||
} |
||||
}; |
||||
// 删除光源
|
||||
const removeLight = () => { |
||||
const cardDom = cardRef.value; |
||||
if (cardDom) { |
||||
cardDom.removeChild(lightRef.value); |
||||
} |
||||
}; |
||||
|
||||
// 监听卡片的鼠标移入
|
||||
const onMouseEnter = () => { |
||||
// 添加光源
|
||||
addLight(); |
||||
setCardOverflowHidden(); |
||||
}; |
||||
|
||||
// use-light-card.ts
|
||||
|
||||
// 监听卡片的鼠标移动
|
||||
const onMouseMove = (e: MouseEvent) => { |
||||
// 获取鼠标的坐标
|
||||
const { clientX, clientY } = e; |
||||
// 让光跟随鼠标
|
||||
const cardDom = cardRef.value; |
||||
const lightDom = lightRef.value; |
||||
if (cardDom) { |
||||
// 获取卡片相对于窗口的x和y坐标
|
||||
const { x, y } = cardDom.getBoundingClientRect(); |
||||
// 获取光的宽高
|
||||
const { width, height } = lightDom.getBoundingClientRect(); |
||||
lightDom.style.left = `${clientX - x - width / 2}px`; |
||||
lightDom.style.top = `${clientY - y - height / 2}px`; |
||||
|
||||
// 设置动画效果
|
||||
const maxXRotation = 10; // X 轴旋转角度
|
||||
const maxYRotation = 10; // Y 轴旋转角度
|
||||
|
||||
const rangeX = 200 / 2; // X 轴旋转的范围
|
||||
const rangeY = 200 / 2; // Y 轴旋转的范围
|
||||
|
||||
const rotateX = ((clientX - x - rangeY) / rangeY) * maxXRotation; // 根据鼠标在 Y 轴上的位置计算绕 X 轴的旋转角度
|
||||
const rotateY = -1 * ((clientY - y - rangeX) / rangeX) * maxYRotation; // 根据鼠标在 X 轴上的位置计算绕 Y 轴的旋转角度
|
||||
|
||||
cardDom.style.transform = `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`; //设置 3D 透视
|
||||
} |
||||
}; |
||||
// 监听卡片鼠标移出
|
||||
const onMouseLeave = () => { |
||||
// 鼠标离开移出光源
|
||||
removeLight(); |
||||
restoreCardOverflow(); |
||||
}; |
||||
|
||||
onMounted(() => { |
||||
// 设置光源样式
|
||||
setLightStyle(); |
||||
// 绑定事件
|
||||
cardRef.value?.addEventListener('mouseenter', onMouseEnter); |
||||
cardRef.value?.addEventListener('mousemove', onMouseMove); |
||||
cardRef.value?.addEventListener('mouseleave', onMouseLeave); |
||||
}); |
||||
|
||||
onUnmounted(() => { |
||||
// 解绑事件
|
||||
cardRef.value?.removeEventListener('mouseenter', onMouseEnter); |
||||
cardRef.value?.removeEventListener('mousemove', onMouseMove); |
||||
cardRef.value?.removeEventListener('mouseleave', onMouseLeave); |
||||
}); |
||||
|
||||
return { |
||||
cardRef, |
||||
}; |
||||
}; |
||||
|
@ -0,0 +1,11 @@ |
||||
import './assets/main.css' |
||||
|
||||
import { createApp } from 'vue' |
||||
import App from './App.vue' |
||||
import router from './router' |
||||
|
||||
const app = createApp(App) |
||||
|
||||
app.use(router) |
||||
|
||||
app.mount('#app') |
@ -0,0 +1,23 @@ |
||||
import { createRouter, createWebHistory } from 'vue-router' |
||||
import HomeView from '../views/HomeView.vue' |
||||
|
||||
const router = createRouter({ |
||||
history: createWebHistory(import.meta.env.BASE_URL), |
||||
routes: [ |
||||
{ |
||||
path: '/', |
||||
name: 'home', |
||||
component: HomeView |
||||
}, |
||||
{ |
||||
path: '/about', |
||||
name: 'about', |
||||
// route level code-splitting
|
||||
// this generates a separate chunk (About.[hash].js) for this route
|
||||
// which is lazy-loaded when the route is visited.
|
||||
component: () => import('../views/AboutView.vue') |
||||
} |
||||
] |
||||
}) |
||||
|
||||
export default router |
@ -0,0 +1,15 @@ |
||||
<template> |
||||
<div class="about"> |
||||
<h1>This is an about page</h1> |
||||
</div> |
||||
</template> |
||||
|
||||
<style> |
||||
@media (min-width: 1024px) { |
||||
.about { |
||||
min-height: 100vh; |
||||
display: flex; |
||||
align-items: center; |
||||
} |
||||
} |
||||
</style> |
@ -0,0 +1,9 @@ |
||||
<script setup> |
||||
import TheWelcome from '../components/TheWelcome.vue' |
||||
</script> |
||||
|
||||
<template> |
||||
<main> |
||||
<TheWelcome /> |
||||
</main> |
||||
</template> |
@ -0,0 +1,16 @@ |
||||
import { fileURLToPath, URL } from 'node:url' |
||||
|
||||
import { defineConfig } from 'vite' |
||||
import vue from '@vitejs/plugin-vue' |
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({ |
||||
plugins: [ |
||||
vue(), |
||||
], |
||||
resolve: { |
||||
alias: { |
||||
'@': fileURLToPath(new URL('./src', import.meta.url)) |
||||
} |
||||
} |
||||
}) |
Loading…
Reference in new issue