feat: file manager file extensions descriptions

parent 0056e2fb
...@@ -102,11 +102,11 @@ module.exports = configure(function (/* ctx */) { ...@@ -102,11 +102,11 @@ module.exports = configure(function (/* ctx */) {
devServer: { devServer: {
// https: true // https: true
open: false, // opens browser window automatically open: false, // opens browser window automatically
port: 3001, port: 5001,
proxy: { proxy: {
'/_graphql': 'http://localhost:3000/_graphql', '/_graphql': 'http://localhost:5000/_graphql',
'/_site': 'http://localhost:3000', '/_site': 'http://localhost:5000',
'/_user': 'http://localhost:3000' '/_user': 'http://localhost:5000'
} }
}, },
......
...@@ -411,7 +411,7 @@ const files = computed(() => { ...@@ -411,7 +411,7 @@ const files = computed(() => {
case 'asset': { case 'asset': {
f.icon = fileTypes[f.fileExt]?.icon ?? '' f.icon = fileTypes[f.fileExt]?.icon ?? ''
f.side = filesize(f.fileSize, { round: 0 }) f.side = filesize(f.fileSize, { round: 0 })
if (fileTypes[f.fileType]) { if (fileTypes[f.fileExt]) {
f.caption = t(`fileman.${f.fileExt}FileType`) f.caption = t(`fileman.${f.fileExt}FileType`)
} else { } else {
f.caption = t('fileman.unknownFileType', { type: f.fileExt.toUpperCase() }) f.caption = t('fileman.unknownFileType', { type: f.fileExt.toUpperCase() })
...@@ -459,7 +459,7 @@ const currentFileDetails = computed(() => { ...@@ -459,7 +459,7 @@ const currentFileDetails = computed(() => {
case 'asset': { case 'asset': {
items.push({ items.push({
label: t('fileman.detailsAssetType'), label: t('fileman.detailsAssetType'),
value: fileTypes[item.fileType] ? t(`fileman.${item.fileType}FileType`) : t('fileman.unknownFileType', { type: item.fileType.toUpperCase() }) value: fileTypes[item.fileExt] ? t(`fileman.${item.fileExt}FileType`) : t('fileman.unknownFileType', { type: item.fileExt.toUpperCase() })
}) })
items.push({ items.push({
label: t('fileman.detailsAssetSize'), label: t('fileman.detailsAssetSize'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment