-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
137 lines (121 loc) · 3.41 KB
/
popup.html
File metadata and controls
137 lines (121 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html data-theme="dark">
<head>
<meta charset="utf-8" />
<title>SAMLView</title>
<link rel="stylesheet" href="ui/styles.css" />
<link rel="stylesheet" href="ui/styles_flow.css" />
<style>
html,
body {
width: 600px;
min-width: 600px;
max-width: 600px;
}
body {
border: 2px solid #a5d8ff;
border-radius: 8px;
}
main {
max-height: 540px;
overflow: auto;
}
.status-bar #status {
font-size: 12px;
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#toggleBtn {
min-width: 120px;
}
.loading {
opacity: 0.6;
pointer-events: none;
}
.message-container {
position: fixed;
bottom: 16px;
right: 16px;
z-index: 1000;
}
/* Flow view in popup */
body.flow-mode main {
max-height: 600px;
min-height: 500px;
overflow: auto;
}
body.flow-mode #list {
display: none;
}
body.flow-mode #flowContainer {
display: block;
padding: 12px;
overflow-x: hidden;
}
body:not(.flow-mode) #flowContainer {
display: none;
}
body.flow-mode .flow-container {
grid-template-columns: 120px 1fr 120px;
gap: 10px 8px;
max-width: 100%;
width: 100%;
}
body.flow-mode .detail-section h2 {
font-size: 14px;
margin: 0 0 6px 0;
font-weight: 600;
}
body.flow-mode .flow-help {
font-size: 11px;
margin: 0 0 12px 0;
color: var(--muted);
}
</style>
</head>
<body>
<div class="message-container" id="messageContainer"></div>
<header>
<h1 class="logo">SAMLView</h1>
<div class="actions">
<button id="toggleBtn" class="btn btn-primary">Start Capture</button>
<button id="flowViewBtn" class="btn">Flow Diagram</button>
<button id="themeToggle" class="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="5" />
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</svg>
<svg class="moon-icon" viewBox="0 0 24 24" fill="currentColor" style="display:none;">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
</svg>
</button>
</div>
</header>
<section class="status-bar">
<span id="status">Not capturing</span>
<div class="actions right">
<button id="clearBtn" class="btn btn-danger">Clear</button>
<button id="importBtn" class="btn">Import</button>
<button id="exportBtn" class="btn btn-success">Export</button>
<input id="importFile" type="file" accept=".saml,.txt,.xml" style="display:none;" />
</div>
</section>
<main>
<ul id="list" class="list"></ul>
<div id="flowContainer"></div>
</main>
<script src="ui/common.js"></script>
<script src="popup.js"></script>
<script src="ui/tracer.js"></script>
</body>
</html>