-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The click-to-enable / disable logic of the extension icon did not follow extension development guidelines, as it was not clear what happens when clicking the icon. To fix this, we switch to a menu-based approach. In the future, this menu can be extended to also switch between accounts / identities. Signed-off-by: Felix Moessbauer <[email protected]>
- Loading branch information
1 parent
afc79fb
commit 0d309e4
Showing
10 changed files
with
282 additions
and
16 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
SPDX-FileCopyrightText: Copyright 2021 YANDEX LLC | ||
|
||
SPDX-License-Identifier: MPL-2.0 |
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,82 @@ | ||
/* | ||
* SPDX-License-Identifier: MPL-2.0 | ||
* SPDX-FileCopyrightText: Copyright 2024 Siemens AG | ||
*/ | ||
|
||
html, | ||
body { | ||
width: 320px; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.entity { | ||
padding: 10px; | ||
margin: 10px; | ||
border-radius: 15px; | ||
color: #707070; | ||
cursor: pointer; | ||
} | ||
|
||
body.pending .entity { | ||
cursor: wait; | ||
} | ||
|
||
.entity:hover { | ||
background-color: #e0e0e0; | ||
} | ||
|
||
.entity.active { | ||
background-color: #e0e0e0; | ||
color: #000; | ||
cursor: default; | ||
} | ||
|
||
.entity .avatar { | ||
display: inline-block; | ||
margin-right: 10px; | ||
} | ||
|
||
.entity .info { | ||
display: inline-block; | ||
vertical-align: top; | ||
max-width: 200px; | ||
overflow: hidden; | ||
} | ||
.entity .info .email | ||
{ | ||
font-size: 0.8em; | ||
} | ||
|
||
.entity .avatar img { | ||
width: 48px; | ||
height: 48px; | ||
} | ||
|
||
.hidden { | ||
display:none !important; | ||
} | ||
|
||
.footer { | ||
padding: 5px 5px 10px 5px; | ||
border-top: 1px solid #e0e0e0; | ||
font-size: 0.8em; | ||
text-align: right; | ||
min-height: 1em; | ||
color: #707070; | ||
} | ||
|
||
.footer a, | ||
.footer a:visited { | ||
color: #707070; | ||
} | ||
|
||
.footer .left { | ||
display: block; | ||
float: left; | ||
} | ||
|
||
.footer .right { | ||
display: block; | ||
float: right; | ||
} |
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,37 @@ | ||
<!-- | ||
SPDX-License-Identifier: MPL-2.0 | ||
SPDX-FileCopyrightText: Copyright 2024 Siemens AG | ||
--> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="menu.css" /> | ||
</head> | ||
<body> | ||
<div class="entity active" id="entity-me"> | ||
<div class="avatar"> | ||
<canvas id="me-avatar" width="48" height="48" class="hidden"></canvas> | ||
<img id="me-avatar-fallback" src="profile-outline.svg" width="48", height="48", alt="Avatar"/> | ||
</div> | ||
<div class="info" id="entity-me"> | ||
<div id="me-name" class="name">No account registered</div> | ||
<div id="me-email" class="email"></div> | ||
</div> | ||
</div> | ||
<div class="entity" id="entity-guest"> | ||
<div class="avatar"> | ||
<img src="profile-outline.svg" alt="Avatar" /> | ||
</div> | ||
<div class="info"> | ||
<div class="name">Guest</div> | ||
<div class="email">(no device trust)</div> | ||
</div> | ||
</div> | ||
<div class="footer"> | ||
<a href="https://github.com/siemens/linux-entra-sso" target="_blank" class="left">linux-entra-sso</a> | ||
<span id="version" class="right"></span> | ||
</div> | ||
<script src="menu.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.