-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added created/modified time stamp
also added scroll to details and activities section
- Loading branch information
1 parent
f49f6d7
commit ed78c06
Showing
2 changed files
with
142 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { useDateFormat, useTimeAgo } from '@vueuse/core' | ||
|
||
export function dateFormat(date, format) { | ||
const _format = format || 'DD-MM-YYYY HH:mm:ss' | ||
return useDateFormat(date, _format).value | ||
} | ||
|
||
export function timeAgo(date) { | ||
return useTimeAgo(date).value | ||
} |