cicy-desktop 2.1.128 → 2.1.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
7
7
|
<link rel="icon" type="image/png" sizes="256x256" href="./favicon-256.png" />
|
|
8
8
|
<title>CiCy Desktop</title>
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-BRrduYwz.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-CKhSx1lp.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
@@ -260,6 +260,10 @@ export default function App() {
|
|
|
260
260
|
const [authRestoring, setAuthRestoring] = useState(() => !safeGet(TOKEN_KEY));
|
|
261
261
|
const [loggingIn, setLoggingIn] = useState(false);
|
|
262
262
|
const [loginUrl, setLoginUrl] = useState(""); // shown as a manual fallback when the browser doesn't auto-open
|
|
263
|
+
const [appVer, setAppVer] = useState(""); // cicy-desktop version, shown bottom-right
|
|
264
|
+
useEffect(() => {
|
|
265
|
+
window.cicy?.app?.getVersion?.().then((v) => setAppVer((v && v.desktop) || "")).catch(() => {});
|
|
266
|
+
}, []);
|
|
263
267
|
const [error, setError] = useState("");
|
|
264
268
|
const [welcome, setWelcome] = useState("");
|
|
265
269
|
// Fetched after login: { id, display_name, username, email, ... }
|
|
@@ -702,6 +706,12 @@ export default function App() {
|
|
|
702
706
|
return (
|
|
703
707
|
<div className="shell shell--app">
|
|
704
708
|
<div className="glow glow--app" aria-hidden />
|
|
709
|
+
{appVer && (
|
|
710
|
+
<div data-id="VersionBadge" title={`CiCy Desktop v${appVer}`}
|
|
711
|
+
style={{ position: "fixed", bottom: 8, right: 12, fontSize: 11, lineHeight: 1, color: "rgba(255,255,255,0.4)", userSelect: "text", zIndex: 60, pointerEvents: "none" }}>
|
|
712
|
+
v{appVer}
|
|
713
|
+
</div>
|
|
714
|
+
)}
|
|
705
715
|
<div className="shell__left">
|
|
706
716
|
<Header me={me} welcome={welcome} onLogout={handleLogout}
|
|
707
717
|
mitmTeam={localList.length > 0 ? localList[0] : null} />
|