forked from hashicorp-forge/hermes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] can set due date in sidebar of a document - [x] can see due date in badge format of three colours 1. critical if due date is passed 2. warning if today is the due date 3. success in more than one days left - [x] the docs listed in the "Documents waiting for your review" section in dashboard are sorted wrt due date in ascending order - [x] date format - MMM DD, YYYY - example - Jul 22, 2023 - [x] one table column of due date is attached in the tables of drafts, all docs and my docs ![Screenshot 2023-07-23 at 2 20 21 AM](https://github.com/razorpay/hermes/assets/70308421/dba5d7f8-e69a-4142-ba5c-1e753646bf70) ![Screenshot 2023-07-23 at 1 14 26 AM](https://github.com/razorpay/hermes/assets/70308421/2495999c-2bd5-45cf-9e69-e56734b407d9) <img width="1440" alt="Screenshot 2023-07-23 at 1 15 12 AM" src="https://github.com/razorpay/hermes/assets/70308421/b375de8a-e1c6-4b04-b713-6286fb1fcdba">
- Loading branch information
1 parent
5931a9f
commit 6e967d0
Showing
16 changed files
with
388 additions
and
200 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
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
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
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
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
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,29 @@ | ||
// app/helpers/format-date.ts | ||
import { helper } from '@ember/component/helper'; | ||
const monthNames = [ | ||
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', | ||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' | ||
]; | ||
export function dateformat([date]: [string]): string { | ||
let res="",year="",month="",day=""; | ||
let n=date.length; | ||
if (n===0) { | ||
return year; | ||
} | ||
for (let index = 0; index <=3; index++) { | ||
let element = date[index]; | ||
year+=element; | ||
} | ||
for (let index = 5; index <=6; index++) { | ||
let element = date[index]; | ||
month+=element; | ||
} | ||
for (let index = 8; index <=9; index++) { | ||
let element = date[index]; | ||
day+=element; | ||
} | ||
res=`${monthNames[parseInt(month) - 1]} ${day}, ${year}` | ||
return res; | ||
} | ||
|
||
export default helper(dateformat); |
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
Oops, something went wrong.