diff --git a/packages/frontend/package.json b/packages/frontend/package.json index e3b105746..2ca9ed9bc 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -27,8 +27,12 @@ "@testing-library/svelte": "^4.0.5", "@testing-library/user-event": "^14.5.1", "@tsconfig/svelte": "^5.0.2", + "@types/humanize-duration": "^3.27.4", "@typescript-eslint/eslint-plugin": "6.15.0", + "filesize": "^10.1.0", + "humanize-duration": "^3.31.0", "jsdom": "^23.2.0", + "moment": "^2.30.1", "postcss": "^8.4.33", "postcss-load-config": "^5.0.2", "svelte": "4.2.8", diff --git a/packages/frontend/src/lib/progress/TasksProgress.svelte b/packages/frontend/src/lib/progress/TasksProgress.svelte index 4fb6cc636..c4aa2b2db 100644 --- a/packages/frontend/src/lib/progress/TasksProgress.svelte +++ b/packages/frontend/src/lib/progress/TasksProgress.svelte @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnCreation.svelte b/packages/frontend/src/lib/table/model/ModelColumnCreation.svelte new file mode 100644 index 000000000..12ffbc59a --- /dev/null +++ b/packages/frontend/src/lib/table/model/ModelColumnCreation.svelte @@ -0,0 +1,11 @@ + + +
+ {#if (object.file?.creation)} + {humanizeAge(object.file.creation.getTime()/1000)} + {/if} +
diff --git a/packages/frontend/src/lib/table/model/ModelColumnHW.svelte b/packages/frontend/src/lib/table/model/ModelColumnHW.svelte index a9d1a35ae..56033b778 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnHW.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnHW.svelte @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnLicense.svelte b/packages/frontend/src/lib/table/model/ModelColumnLicense.svelte index ff8e02093..f326aa3b2 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnLicense.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnLicense.svelte @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnName.svelte b/packages/frontend/src/lib/table/model/ModelColumnName.svelte index 0822bb7e2..1fbd6c011 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnName.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnName.svelte @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnRegistry.svelte b/packages/frontend/src/lib/table/model/ModelColumnRegistry.svelte index fb48caf85..0786bd415 100644 --- a/packages/frontend/src/lib/table/model/ModelColumnRegistry.svelte +++ b/packages/frontend/src/lib/table/model/ModelColumnRegistry.svelte @@ -1,5 +1,5 @@ diff --git a/packages/frontend/src/lib/table/model/ModelColumnSize.svelte b/packages/frontend/src/lib/table/model/ModelColumnSize.svelte new file mode 100644 index 000000000..1453ae595 --- /dev/null +++ b/packages/frontend/src/lib/table/model/ModelColumnSize.svelte @@ -0,0 +1,11 @@ + + +
+ {#if (object.file?.size)} + {filesize(object.file.size)} + {/if} +
diff --git a/packages/frontend/src/pages/ModelPlayground.svelte b/packages/frontend/src/pages/ModelPlayground.svelte index 6331e74aa..7394256b9 100644 --- a/packages/frontend/src/pages/ModelPlayground.svelte +++ b/packages/frontend/src/pages/ModelPlayground.svelte @@ -1,11 +1,11 @@