add build version

This commit is contained in:
PhilReact 2024-10-25 09:35:06 +03:00
parent 42f925ceae
commit d929c47103
2 changed files with 13 additions and 8 deletions

View File

@ -1164,13 +1164,11 @@ function App() {
}); });
} }
console.log("Webview is focused");
}; };
// Handler for when the window loses focus // Handler for when the window loses focus
const handleBlur = () => { const handleBlur = () => {
setIsFocused(false); setIsFocused(false);
console.log("Webview is not focused");
}; };
// Attach the event listeners // Attach the event listeners
@ -1187,10 +1185,8 @@ function App() {
payload: {}, payload: {},
}); });
} }
console.log("Webview is visible");
} else { } else {
setIsFocused(false); setIsFocused(false);
console.log("Webview is hidden");
} }
}; };

View File

@ -22,6 +22,8 @@ import { CustomizedSnackbars } from "../components/Snackbar/Snackbar";
import { set } from "lodash"; import { set } from "lodash";
import { cleanUrl, isUsingLocal } from "../background"; import { cleanUrl, isUsingLocal } from "../background";
const manifestData = chrome?.runtime?.getManifest();
export const NotAuthenticated = ({ export const NotAuthenticated = ({
getRootProps, getRootProps,
getInputProps, getInputProps,
@ -128,7 +130,7 @@ export const NotAuthenticated = ({
if (currentNodeRef.current?.url === "http://127.0.0.1:12391") { if (currentNodeRef.current?.url === "http://127.0.0.1:12391") {
payload = { payload = {
apikey: importedApiKeyRef.current || key?.apikey, apikey: importedApiKeyRef.current || key?.apikey,
url: currentNode?.url, url: currentNodeRef.current?.url,
}; };
} else if(currentNodeRef.current) { } else if(currentNodeRef.current) {
payload = currentNodeRef.current; payload = currentNodeRef.current;
@ -222,7 +224,7 @@ export const NotAuthenticated = ({
return ( return (
<> <>
<Spacer height="48px" /> <Spacer height="35px" />
<div <div
className="image-container" className="image-container"
style={{ style={{
@ -233,7 +235,7 @@ export const NotAuthenticated = ({
<img src={Logo1} className="base-image" /> <img src={Logo1} className="base-image" />
<img src={Logo1Dark} className="hover-image" /> <img src={Logo1Dark} className="hover-image" />
</div> </div>
<Spacer height="38px" /> <Spacer height="30px" />
<TextP <TextP
sx={{ sx={{
textAlign: "center", textAlign: "center",
@ -243,7 +245,7 @@ export const NotAuthenticated = ({
WELCOME TO <TextItalic>YOUR</TextItalic> <br></br> WELCOME TO <TextItalic>YOUR</TextItalic> <br></br>
<TextSpan> QORTAL WALLET</TextSpan> <TextSpan> QORTAL WALLET</TextSpan>
</TextP> </TextP>
<Spacer height="38px" /> <Spacer height="30px" />
<Box <Box
sx={{ sx={{
display: "flex", display: "flex",
@ -387,6 +389,10 @@ export const NotAuthenticated = ({
Choose custom node Choose custom node
</Button> </Button>
</> </>
<Typography sx={{
color: "white",
fontSize: '12px'
}}>Build version: {manifestData?.version}</Typography>
</Box> </Box>
</> </>
<CustomizedSnackbars <CustomizedSnackbars
@ -413,6 +419,7 @@ export const NotAuthenticated = ({
flexDirection: "column", flexDirection: "column",
}} }}
> >
{mode === "list" && ( {mode === "list" && (
<Box <Box
sx={{ sx={{
@ -581,7 +588,9 @@ export const NotAuthenticated = ({
/> />
</Box> </Box>
)} )}
</Box> </Box>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
{mode === "list" && ( {mode === "list" && (