mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-15 08:42:49 +09:00
display date created, last modified in the properties window
This commit is contained in:
@@ -338,4 +338,10 @@ export function sanitize_filename(name){
|
||||
|
||||
export function browser_window(){
|
||||
return window;
|
||||
}
|
||||
|
||||
export function timestamp_to_readable(timestamp){
|
||||
let date = new Date();
|
||||
date.setTime(timestamp);
|
||||
return date.toString();
|
||||
}
|
||||
@@ -35,7 +35,9 @@
|
||||
...fs_item?.type == 'file' ? [] :
|
||||
[
|
||||
['Contains', `${fs_item.children.filter(el => $hardDrive[el].type == 'file').length} Files, ${fs_item.children.filter(el => $hardDrive[el].type == 'folder').length} Folders`]
|
||||
]
|
||||
],
|
||||
['Date Created', utils.timestamp_to_readable(fs_item.date_created)],
|
||||
['Last Modified', utils.timestamp_to_readable(fs_item.date_modified)]
|
||||
]
|
||||
|
||||
onMount(() => {
|
||||
@@ -127,7 +129,7 @@
|
||||
<div class="shrink-0 w-[70px]">
|
||||
{detail[0]}
|
||||
</div>
|
||||
<div class="grow ml-2 break-all">
|
||||
<div class="grow ml-2 {detail[0] == 'Location' ? 'break-all' : 'break-words'}">
|
||||
{detail[1]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user