diff --git a/cista-front/package-lock.json b/cista-front/package-lock.json index 8f64974..26a91f2 100644 --- a/cista-front/package-lock.json +++ b/cista-front/package-lock.json @@ -13,6 +13,7 @@ "ant-design-vue": "^4.0.3", "axios": "^1.5.0", "esbuild": "^0.19.5", + "locale-includes": "^1.0.5", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "pinia": "^2.1.6", @@ -3327,6 +3328,11 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/locale-includes": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/locale-includes/-/locale-includes-1.0.5.tgz", + "integrity": "sha512-8pcOkyBbMZvHGskk3gbi+o6dYSOmkLJ+hh1lle+LaULxB2YtwNrCMEhgpAJb3WruTUC2cSEu71bOe6im6DuCuA==" + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", diff --git a/cista-front/package.json b/cista-front/package.json index 1098adf..47b5814 100644 --- a/cista-front/package.json +++ b/cista-front/package.json @@ -18,6 +18,7 @@ "ant-design-vue": "^4.0.3", "axios": "^1.5.0", "esbuild": "^0.19.5", + "locale-includes": "^1.0.5", "lodash": "^4.17.21", "lodash-es": "^4.17.21", "pinia": "^2.1.6", diff --git a/cista-front/src/stores/documents.ts b/cista-front/src/stores/documents.ts index e49fdb8..6472ee1 100644 --- a/cista-front/src/stores/documents.ts +++ b/cista-front/src/stores/documents.ts @@ -2,6 +2,7 @@ import type { Document } from '@/repositories/Document'; import { fetchFile } from '@/repositories/Document' import { formatSize, formatUnixDate } from '@/utils'; import { defineStore } from 'pinia'; +// @ts-ignore import { localeIncludes } from 'locale-includes' type FileData = { id: string, mtime: number, size: number, dir: DirectoryData}; @@ -76,7 +77,7 @@ export const useDocumentStore = defineStore({ } } this.loading = true - const matched = {} + const matched: any = {} traverseDir(this.root, "") this.updateTable(matched) }, diff --git a/cista/wwwroot/index.html b/cista/wwwroot/index.html index a7f4179..12e8294 100644 --- a/cista/wwwroot/index.html +++ b/cista/wwwroot/index.html @@ -5,7 +5,7 @@ Vite Vasanko - +