mirror of
https://github.com/Xevion/banner.git
synced 2025-12-15 04:11:11 -06:00
feat: embed git commit into binary, provide link on frontend
This commit is contained in:
@@ -20,6 +20,10 @@ export interface StatusResponse {
|
||||
banner_api: {
|
||||
status: string;
|
||||
};
|
||||
git: {
|
||||
commit: string;
|
||||
short: string;
|
||||
};
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -234,6 +234,29 @@ function App() {
|
||||
</Flex>
|
||||
</Card>
|
||||
)}
|
||||
{status?.git?.commit && (
|
||||
<Flex justify="center" style={{ marginTop: "12px" }}>
|
||||
<Text
|
||||
size="1"
|
||||
style={{
|
||||
color: "#8B949E",
|
||||
textDecoration: "none",
|
||||
}}
|
||||
>
|
||||
<a
|
||||
href={`https://github.com/Xevion/banner/commit/${status.git.commit}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{
|
||||
color: "inherit",
|
||||
textDecoration: "none",
|
||||
}}
|
||||
>
|
||||
GitHub
|
||||
</a>
|
||||
</Text>
|
||||
</Flex>
|
||||
)}
|
||||
</Flex>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user