Skip to content

Commit

Permalink
feat: 新增图片预览组件
Browse files Browse the repository at this point in the history
  • Loading branch information
IceyWu committed Dec 23, 2024
1 parent 5b1b378 commit b93b475
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 265 deletions.
347 changes: 174 additions & 173 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,173 +1,174 @@
{
"name": "lp",
"type": "module",
"version": "0.0.12",
"packageManager": "[email protected]",
"description": "Record your memories and craft your own masterpiece of life",
"author": "IceyWu <https://github.com/IceyWu/>",
"repository": {
"url": "https://github.com/Life-Palette/LifePalette-Web"
},
"engines": {
"node": ">=20.11.0"
},
"scripts": {
"dev": "vite",
"test": "vitest",
"build": "vite build",
"prepare": "husky install",
"dev:host": "vite --host",
"dev:open": "vite --open",
"preview": "vite preview",
"coverage": "vitest --coverage",
"preinstall": "npx only-allow pnpm",
"typecheck": "npx vue-tsc --noEmit",
"preview:host": "vite preview --host",
"preview:open": "vite preview --open",
"lint": "eslint .",
"release": "plop --plopfile scripts/release.cjs",
"auto:remove": "plop --plopfile scripts/remove.cjs",
"auto:create": "plop --plopfile scripts/create.cjs",
"build:debug": "cross-env NODE_ENV=debug vite build",
"safe:init": "plop --plopfile scripts/safe-init.cjs",
"deps:fresh": "plop --plopfile scripts/deps-fresh.cjs",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@iceywu/utils": "^0.0.48",
"@mapbox/mapbox-gl-language": "^1.0.1",
"@tweenjs/tween.js": "^25.0.0",
"blurhash": "^2.0.5",
"compressorjs": "^1.2.1",
"dayjs": "^1.11.13",
"element-plus": "^2.8.8",
"eruda": "^3.4.1",
"js-cookie": "^3.0.5",
"js-md5": "^0.8.3",
"livephotoskit": "^1.5.6",
"qrcode": "^1.5.4",
"spark-md5": "^3.0.2",
"swiper": "^11.1.14",
"upng-js": "^2.1.0",
"v-viewer": "^3.0.21",
"v3-infinite-loading": "^1.3.2",
"viewerjs": "^1.11.6",
"vite-plugin-use-modules": "^1.4.8",
"vue-cropper": "^1.1.1",
"vue-hooks-pure": "^0.0.24",
"vue-starport": "^0.4.0",
"vue-virtual-scroller": "2.0.0-beta.8",
"vue-waterfall-plugin-next": "^2.6.4"
},
"devDependencies": {
"@antfu/eslint-config": "^3.9.1",
"@iceywu/utils": "^0.0.48",
"@iconify-json/carbon": "^1.2.4",
"@intlify/unplugin-vue-i18n": "^6.0.0",
"@turf/circle": "^7.1.0",
"@types/ityped": "^1.0.3",
"@types/js-cookie": "^3.0.6",
"@types/mapbox-gl": "^3.4.1",
"@types/node": "^22.9.0",
"@unocss/eslint-config": "^0.64.1",
"@unocss/reset": "^0.64.1",
"@unocss/transformer-directives": "^0.64.1",
"@unocss/transformer-variant-group": "^0.64.1",
"@vitejs/plugin-legacy": "^5.4.3",
"@vitejs/plugin-vue": "^5.2.0",
"@vitejs/plugin-vue-jsx": "^4.1.0",
"@vueuse/components": "^11.2.0",
"@vueuse/core": "^11.2.0",
"@vueuse/integrations": "^11.2.0",
"@vueuse/motion": "^2.2.6",
"axios": "^1.7.7",
"browserslist": "^4.24.2",
"c8": "^10.1.2",
"changelogen": "^0.5.7",
"consola": "^3.2.3",
"cross-env": "^7.0.3",
"defu": "^6.1.4",
"echarts": "^5.5.1",
"element-plus": "^2.8.8",
"eslint": "^9.15.0",
"eslint-plugin-format": "^0.1.2",
"fs-extra": "^11.2.0",
"husky": "^9.1.6",
"ityped": "^1.0.3",
"js-cookie": "^3.0.5",
"kolorist": "^1.8.0",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"lightningcss": "^1.28.1",
"lint-staged": "^15.2.10",
"local-pkg": "^0.5.0",
"lottie-web": "^5.12.2",
"mapbox-gl": "^3.8.0",
"markdown-it-prism": "^2.3.0",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"pinia": "^2.2.6",
"pinia-plugin-persistedstate": "^4.1.3",
"plop": "^4.0.1",
"prettier": "^3.3.3",
"prism-theme-vars": "^0.2.5",
"sass-embedded": "^1.81.0",
"simple-git": "^3.27.0",
"svg-animate-web": "^0.0.3",
"taze": "^0.18.0",
"terser": "^5.36.0",
"threebox-plugin": "^2.2.7",
"typescript": "^5.6.3",
"unocss": "^0.64.1",
"unocss-preset-useful": "^0.8.0",
"unplugin-auto-import": "^0.18.4",
"unplugin-vue-components": "^0.27.4",
"unplugin-vue-markdown": "^0.26.2",
"unplugin-vue-router": "^0.10.8",
"vite": "^5.4.11",
"vite-auto-import-resolvers": "^3.2.1",
"vite-layers": "^0.5.2",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-env-types": "^0.1.4",
"vite-plugin-mock": "2.9.8",
"vite-plugin-removelog": "^0.2.2",
"vite-plugin-vue-devtools": "^7.6.4",
"vite-plugin-vue-layouts": "^0.11.0",
"vitest": "^2.1.5",
"vue": "^3.5.13",
"vue-echarts": "^7.0.3",
"vue-i18n": "^10.0.5",
"vue-request": "2.0.4",
"vue-router": "^4.4.5",
"vue-toastification": "2.0.0-rc.5"
},
"overrides": {
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
"arraybuffer.prorotype.slice": "npm:@nolyfill/arraybuffer.prorotype.slice@latest",
"function.prototype.name": "npm:@nolyfill/function.prototype.name@latest",
"has": "npm:@nolyfill/has@latest",
"is-regex": "npm:@nolyfill/is-regex@latest",
"object-keys": "npm:@nolyfill/object-keys@latest",
"object.assign": "npm:@nolyfill/object.assign@latest",
"object.entries": "npm:@nolyfill/object.entries@latest",
"object.fromentries": "npm:@nolyfill/object.fromentries@latest",
"object.values": "npm:@nolyfill/object.values@latest",
"sourcemap-codec": "npm:@jridgewell/sourcemap-codec@latest",
"vue-demi": "npm:vue-demi@latest"
},
"lint-staged": {
"*": "eslint --fix"
},
"browserslist": [
">= 0.25%",
"last 2 versions",
"not dead",
"not ie <= 11",
"Android >= 4.0",
"iOS >= 8"
]
}
{
"name": "lp",
"type": "module",
"version": "0.0.12",
"packageManager": "[email protected]",
"description": "Record your memories and craft your own masterpiece of life",
"author": "IceyWu <https://github.com/IceyWu/>",
"repository": {
"url": "https://github.com/Life-Palette/LifePalette-Web"
},
"engines": {
"node": ">=20.11.0"
},
"scripts": {
"dev": "vite",
"test": "vitest",
"build": "vite build",
"prepare": "husky install",
"dev:host": "vite --host",
"dev:open": "vite --open",
"preview": "vite preview",
"coverage": "vitest --coverage",
"preinstall": "npx only-allow pnpm",
"typecheck": "npx vue-tsc --noEmit",
"preview:host": "vite preview --host",
"preview:open": "vite preview --open",
"lint": "eslint .",
"release": "plop --plopfile scripts/release.cjs",
"auto:remove": "plop --plopfile scripts/remove.cjs",
"auto:create": "plop --plopfile scripts/create.cjs",
"build:debug": "cross-env NODE_ENV=debug vite build",
"safe:init": "plop --plopfile scripts/safe-init.cjs",
"deps:fresh": "plop --plopfile scripts/deps-fresh.cjs",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@iceywu/utils": "^0.0.48",
"@mapbox/mapbox-gl-language": "^1.0.1",
"@tweenjs/tween.js": "^25.0.0",
"blurhash": "^2.0.5",
"compressorjs": "^1.2.1",
"dayjs": "^1.11.13",
"element-plus": "^2.8.8",
"eruda": "^3.4.1",
"js-cookie": "^3.0.5",
"js-md5": "^0.8.3",
"l-preview": "^0.0.32",
"livephotoskit": "^1.5.6",
"qrcode": "^1.5.4",
"spark-md5": "^3.0.2",
"swiper": "^11.1.14",
"upng-js": "^2.1.0",
"v-viewer": "^3.0.21",
"v3-infinite-loading": "^1.3.2",
"viewerjs": "^1.11.6",
"vite-plugin-use-modules": "^1.4.8",
"vue-cropper": "^1.1.1",
"vue-hooks-pure": "^0.0.24",
"vue-starport": "^0.4.0",
"vue-virtual-scroller": "2.0.0-beta.8",
"vue-waterfall-plugin-next": "^2.6.4"
},
"devDependencies": {
"@antfu/eslint-config": "^3.9.1",
"@iceywu/utils": "^0.0.48",
"@iconify-json/carbon": "^1.2.4",
"@intlify/unplugin-vue-i18n": "^6.0.0",
"@turf/circle": "^7.1.0",
"@types/ityped": "^1.0.3",
"@types/js-cookie": "^3.0.6",
"@types/mapbox-gl": "^3.4.1",
"@types/node": "^22.9.0",
"@unocss/eslint-config": "^0.64.1",
"@unocss/reset": "^0.64.1",
"@unocss/transformer-directives": "^0.64.1",
"@unocss/transformer-variant-group": "^0.64.1",
"@vitejs/plugin-legacy": "^5.4.3",
"@vitejs/plugin-vue": "^5.2.0",
"@vitejs/plugin-vue-jsx": "^4.1.0",
"@vueuse/components": "^11.2.0",
"@vueuse/core": "^11.2.0",
"@vueuse/integrations": "^11.2.0",
"@vueuse/motion": "^2.2.6",
"axios": "^1.7.7",
"browserslist": "^4.24.2",
"c8": "^10.1.2",
"changelogen": "^0.5.7",
"consola": "^3.2.3",
"cross-env": "^7.0.3",
"defu": "^6.1.4",
"echarts": "^5.5.1",
"element-plus": "^2.8.8",
"eslint": "^9.15.0",
"eslint-plugin-format": "^0.1.2",
"fs-extra": "^11.2.0",
"husky": "^9.1.6",
"ityped": "^1.0.3",
"js-cookie": "^3.0.5",
"kolorist": "^1.8.0",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"lightningcss": "^1.28.1",
"lint-staged": "^15.2.10",
"local-pkg": "^0.5.0",
"lottie-web": "^5.12.2",
"mapbox-gl": "^3.8.0",
"markdown-it-prism": "^2.3.0",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"pinia": "^2.2.6",
"pinia-plugin-persistedstate": "^4.1.3",
"plop": "^4.0.1",
"prettier": "^3.3.3",
"prism-theme-vars": "^0.2.5",
"sass-embedded": "^1.81.0",
"simple-git": "^3.27.0",
"svg-animate-web": "^0.0.3",
"taze": "^0.18.0",
"terser": "^5.36.0",
"threebox-plugin": "^2.2.7",
"typescript": "^5.6.3",
"unocss": "^0.64.1",
"unocss-preset-useful": "^0.8.0",
"unplugin-auto-import": "^0.18.4",
"unplugin-vue-components": "^0.27.4",
"unplugin-vue-markdown": "^0.26.2",
"unplugin-vue-router": "^0.10.8",
"vite": "^5.4.11",
"vite-auto-import-resolvers": "^3.2.1",
"vite-layers": "^0.5.2",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-env-types": "^0.1.4",
"vite-plugin-mock": "2.9.8",
"vite-plugin-removelog": "^0.2.2",
"vite-plugin-vue-devtools": "^7.6.4",
"vite-plugin-vue-layouts": "^0.11.0",
"vitest": "^2.1.5",
"vue": "^3.5.13",
"vue-echarts": "^7.0.3",
"vue-i18n": "^10.0.5",
"vue-request": "2.0.4",
"vue-router": "^4.4.5",
"vue-toastification": "2.0.0-rc.5"
},
"overrides": {
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
"arraybuffer.prorotype.slice": "npm:@nolyfill/arraybuffer.prorotype.slice@latest",
"function.prototype.name": "npm:@nolyfill/function.prototype.name@latest",
"has": "npm:@nolyfill/has@latest",
"is-regex": "npm:@nolyfill/is-regex@latest",
"object-keys": "npm:@nolyfill/object-keys@latest",
"object.assign": "npm:@nolyfill/object.assign@latest",
"object.entries": "npm:@nolyfill/object.entries@latest",
"object.fromentries": "npm:@nolyfill/object.fromentries@latest",
"object.values": "npm:@nolyfill/object.values@latest",
"sourcemap-codec": "npm:@jridgewell/sourcemap-codec@latest",
"vue-demi": "npm:vue-demi@latest"
},
"lint-staged": {
"*": "eslint --fix"
},
"browserslist": [
">= 0.25%",
"last 2 versions",
"not dead",
"not ie <= 11",
"Android >= 4.0",
"iOS >= 8"
]
}
Loading

0 comments on commit b93b475

Please sign in to comment.