mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-12-25 03:17:40 +00:00
fix dates
This commit is contained in:
parent
dfbc016d82
commit
4fa125fb5d
3
.gitignore
vendored
3
.gitignore
vendored
@ -24,5 +24,4 @@ yarn-error.log*
|
|||||||
|
|
||||||
/.idea
|
/.idea
|
||||||
|
|
||||||
yarn.lock
|
package-lock.json
|
||||||
package-lock.json
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
"@types/react-dom": "^18.0.5",
|
"@types/react-dom": "^18.0.5",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"bootstrap": "^5.1.3",
|
"bootstrap": "^5.1.3",
|
||||||
|
"dayjs": "^1.11.3",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-bootstrap": "^2.4.0",
|
"react-bootstrap": "^2.4.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
@ -46,4 +47,4 @@
|
|||||||
"last 1 safari version"
|
"last 1 safari version"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,10 +90,6 @@ ul[class^="changes-"] > li > a {
|
|||||||
font-size: 3vw;
|
font-size: 3vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
|
||||||
bottom: 3.75vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nochanges {
|
.nochanges {
|
||||||
bottom: 1vh;
|
bottom: 1vh;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import "../css/DownloadPage.css"
|
|||||||
import { Button } from "react-bootstrap";
|
import { Button } from "react-bootstrap";
|
||||||
import { Alert } from "react-bootstrap";
|
import { Alert } from "react-bootstrap";
|
||||||
import { Container } from "react-bootstrap";
|
import { Container } from "react-bootstrap";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
// Currently the timestamp here is undefined regardless of jenkins timestamp!
|
// Currently the timestamp here is undefined regardless of jenkins timestamp!
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ const DownloadPage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container fluid className="p-4">
|
<Container fluid className="p-sm-0 p-md-4">
|
||||||
<Alert variant="secondary">
|
<Alert variant="secondary">
|
||||||
<Alert.Heading>Scissors Downloads</Alert.Heading>
|
<Alert.Heading>Scissors Downloads</Alert.Heading>
|
||||||
<p>
|
<p>
|
||||||
@ -81,7 +82,7 @@ const DownloadPage = () => {
|
|||||||
return <li>[<a href={`https://github.com/AtlasMediaGroup/Scissors/commit/${value1.id}`}>{value1.id}</a>] {value1.comment}</li>
|
return <li>[<a href={`https://github.com/AtlasMediaGroup/Scissors/commit/${value1.id}`}>{value1.id}</a>] {value1.comment}</li>
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
<span className={value.changes && value.changes?.length > 0 ? "date" : "date nochanges"}>{new Date(value.timestamp!).toLocaleString()}</span>
|
<span className={value.changes && value.changes?.length > 0 ? "date" : "date nochanges"}>{dayjs(value.timestamp!).format("MM/DD/YYYY [at] h:mm A")}</span>
|
||||||
</li>
|
</li>
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user