Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .prettierrc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { type Config } from 'prettier'

// 参考配置
module.exports = {
const config: Config = {
arrowParens: 'always', //箭头函数的参数无论有几个,都要括号包裹
bracketSameLine: true, //在多行元素的最后一行放置 > 符号,而不是单独一行
bracketSpacing: true, //在对象中的括号之间打印空格`{x: 1}` 格式化为 `{ x: 1 }`
Expand All @@ -18,5 +20,7 @@ module.exports = {
trailingComma: 'none', //对象的最后一个属性末尾是否添加 `,`
useTabs: false, // 是否使用制表符(tab)缩进。
vueIndentScriptAndStyle: false, // 是否缩进 Vue 文件中的代码<script>和<style>标签
endOfLine: 'lf', // 与 `.editorconfig` 保持一致设置。指定换行符样式。(lf | crlf | cr | auto
endOfLine: 'lf', // 与 `.editorconfig` 保持一致设置。指定换行符样式。(lf | crlf | cr | auto)
}

export default config
55 changes: 21 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@
"@aws-sdk/client-sts": "^3.844.0",
"@aws-sdk/s3-request-presigner": "^3.844.0",
"@iconify-json/ri": "^1.2.5",
"@iconify/json": "^2.2.385",
"@iconify/vue": "^5.0.0",
"@internationalized/date": "^3.10.0",
"@nuxt/icon": "^1.15.0",
"@nuxt/image": "^1.10.0",
"@nuxtjs/i18n": "^9.5.6",
"@pinia/nuxt": "^0.9.0",
"@nuxt/icon": "^2.2.0",
"@nuxt/image": "^2.0.0",
"@nuxtjs/i18n": "^10.2.1",
"@pinia/nuxt": "^0.11.3",
"@smithy/protocol-http": "^5.1.2",
"@tanstack/vue-table": "^8.21.3",
"@types/file-saver": "^2.0.7",
"@types/three": "^0.175.0",
"@unovis/ts": "^1.6.1",
"@unovis/vue": "^1.6.1",
"@vee-validate/zod": "^4.15.1",
"@vueuse/integrations": "^12.8.2",
"aws-sdk": "^2.1692.0",
"@vueuse/core": "^14.1.0",
"@vueuse/integrations": "^14.1.0",
"@vueuse/nuxt": "^14.1.0",
"axios": "^1.10.0",
"class-variance-authority": "^0.7.1",
"clipboard": "^2.0.11",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"dotted-map": "^2.2.3",
"echarts": "^5.6.0",
Expand All @@ -54,65 +54,52 @@
"lucide-vue-next": "^0.487.0",
"motion-v": "^1.5.0",
"node-forge": "^1.3.2",
"nuxt": "^4.2.0",
"pinia": "^2.3.1",
"pnpm": "^10.19.0",
"nuxt": "^4.2.2",
"pinia": "^3.0.4",
"postprocessing": "^6.37.6",
"reka-ui": "^2.6.0",
"shadcn-nuxt": "^2.3.2",
"strip-json-comments": "^5.0.2",
"tailwindcss": "^4.1.16",
"tailwind-merge": "^3.4.0",
"three": "^0.175.0",
"three-globe": "^2.43.0",
"ufo": "^1.6.1",
"universal-cookie": "^7.2.2",
"vaul-vue": "^0.4.1",
"vee-validate": "^4.15.1",
"vue": "^3.5.17",
"vue-router": "^4.5.1",
"vue": "^3.5.27",
"vue-router": "^4.6.4",
"vue-sonner": "^1.3.2",
"zod": "^3.25.76"
},
"devDependencies": {
"@aws-sdk/types": "^3.840.0",
"@inspira-ui/plugins": "^0.0.1",
"@oxc-minify/binding-darwin-arm64": "^0.95.0",
"@oxc-transform/binding-darwin-arm64": "^0.95.0",
"@tailwindcss/vite": "^4.1.16",
"@types/aws4": "^1.11.6",
"@types/lodash": "^4.17.20",
"@tailwindcss/vite": "^4.1.18",
"@types/file-saver": "^2.0.7",
"@types/node-forge": "^1.3.12",
"@types/three": "^0.182.0",
"@vitalets/google-translate-api": "^9.2.1",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"@vueuse/core": "^13.5.0",
"@vueuse/nuxt": "^13.5.0",
"c8": "^10.1.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"jsdom": "^27.0.0",
"lodash": "^4.17.21",
"patch-package": "^8.0.0",
"pnpm": "^10.19.0",
"prettier": "^3.2.5",
"tailwind-merge": "^3.3.1",
"tailwindcss-animate": "^1.0.7",
"tar": "^7.5.2",
"shadcn-nuxt": "^2.4.3",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"vue-tsc": "^2.2.12"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.9.5"
},
"packageManager": "pnpm@10.19.0",
"engines": {
"node": ">=22.0.0",
"pnpm": ">=10.19.0"
},
"pnpm": {
"overrides": {
"tar": ">=7.5.2",
"tar": ">=7.5.4",
"glob": ">=10.5.0",
"js-yaml": ">=4.1.1",
"node-forge": ">=1.3.2"
Expand Down
19 changes: 0 additions & 19 deletions package.test.json

This file was deleted.

3 changes: 1 addition & 2 deletions pages/browser/[bucket]/[[key]].vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

<script lang="ts" setup>
import { useRoute } from '#app'
import { endsWith } from 'lodash'
import { joinRelativeURL } from 'ufo'
import { computed } from 'vue'

Expand Down Expand Up @@ -55,7 +54,7 @@ const bucketPath = (path: string | Array<string> = '') => {
}

if (path.length > 1) {
path = endsWith(path, '/') ? path : path + '/'
path = path.endsWith('/') ? path : path + '/'
}

return joinRelativeURL('/browser', encodeURIComponent(bucketName.value), encodeURIComponent(path))
Expand Down
Loading
Loading