mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-22 10:52:21 +03:00
Bundle web-ui v3.1.0a7
This commit is contained in:
parent
c1fdd55cb3
commit
179e7e0d17
26
gns3server/static/web-ui/assets/console-ui.css
Normal file
26
gns3server/static/web-ui/assets/console-ui.css
Normal file
@ -0,0 +1,26 @@
|
||||
/* Shared local typography for standalone console chrome. Remote framebuffer
|
||||
pixels and terminal font preferences remain owned by the remote session. */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('fonts/roboto/roboto-latin-400.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('fonts/roboto/roboto-latin-500.woff2') format('woff2');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('fonts/roboto/roboto-latin-700.woff2') format('woff2');
|
||||
}
|
||||
:root {
|
||||
--gns3-font-code: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5,6 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="x-ua-compatible" content="IE=edge" />
|
||||
<title>VNC Console</title>
|
||||
<link rel="stylesheet" href="../console-ui.css" />
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
@ -15,7 +16,7 @@
|
||||
body {
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
#vnc-container {
|
||||
@ -456,7 +457,7 @@
|
||||
color: #fff;
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
font-family: monospace;
|
||||
font-family: var(--gns3-font-code);
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
@ -550,7 +551,9 @@
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
|
||||
min-width: 400px;
|
||||
width: min(400px, calc(100vw - 32px));
|
||||
max-height: calc(100dvh - 32px);
|
||||
overflow: auto;
|
||||
z-index: 1002;
|
||||
display: none;
|
||||
}
|
||||
@ -569,7 +572,7 @@
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 4px;
|
||||
padding: 12px;
|
||||
font-family: monospace;
|
||||
font-family: var(--gns3-font-code);
|
||||
font-size: 13px;
|
||||
resize: vertical;
|
||||
margin-bottom: 16px;
|
||||
@ -616,6 +619,34 @@
|
||||
z-index: 1001;
|
||||
display: none;
|
||||
}
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
button:focus-visible,
|
||||
input:focus-visible,
|
||||
select:focus-visible,
|
||||
textarea:focus-visible {
|
||||
outline: 2px solid #90caf9;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#vnc-container,
|
||||
#status-bar,
|
||||
#vnc-toolbar,
|
||||
button,
|
||||
.dropdown-menu {
|
||||
transition: none;
|
||||
}
|
||||
.dropdown-menu.show,
|
||||
#vnc-toolbar button.recording,
|
||||
#recording-indicator .recording-dot {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -42,6 +42,27 @@ SOFTWARE.
|
||||
const MENU_CLASS_NAME = "Menu";
|
||||
const VISIBLE_CLASS_NAME = "-visible";
|
||||
|
||||
function positionToolbarMenu(ul) {
|
||||
if (!ul.closest("#menu_list")) return;
|
||||
|
||||
// Measure without the opening animation or a previous edge correction.
|
||||
ul.style.left = "";
|
||||
ul.style.right = "";
|
||||
const viewportWidth = document.documentElement.clientWidth;
|
||||
let bounds = ul.getBoundingClientRect();
|
||||
if (bounds.right > viewportWidth && ul.id !== "menu_list") {
|
||||
ul.style.left = "auto";
|
||||
ul.style.right = "100%";
|
||||
bounds = ul.getBoundingClientRect();
|
||||
}
|
||||
|
||||
const shift = Math.max(0, -bounds.left) + Math.min(0, viewportWidth - bounds.right);
|
||||
if (shift) {
|
||||
ul.style.left = `${ul.offsetLeft + shift}px`;
|
||||
ul.style.right = "auto";
|
||||
}
|
||||
}
|
||||
|
||||
function showMenu() {
|
||||
const menu = this;
|
||||
const ul = $("ul", menu)[0];
|
||||
@ -61,8 +82,10 @@ SOFTWARE.
|
||||
}
|
||||
|
||||
menu.classList.add(ACTIVE_CLASS_NAME);
|
||||
ul.classList.add(ANIMATING_CLASS_NAME);
|
||||
ul.classList.remove(ANIMATING_CLASS_NAME);
|
||||
ul.classList.add(VISIBLE_CLASS_NAME);
|
||||
positionToolbarMenu(ul);
|
||||
ul.classList.add(ANIMATING_CLASS_NAME);
|
||||
setTimeout(function() {
|
||||
ul.classList.remove(ANIMATING_CLASS_NAME);
|
||||
}, 25);
|
||||
|
||||
2
gns3server/static/web-ui/chunk-2EU4MCU2.js
Normal file
2
gns3server/static/web-ui/chunk-2EU4MCU2.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4594
gns3server/static/web-ui/main-2SCMRH5O.js
Normal file
4594
gns3server/static/web-ui/main-2SCMRH5O.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.3 MiB |
BIN
gns3server/static/web-ui/media/roboto-latin-100-KOPQVFVU.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-100-KOPQVFVU.woff2
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-100-LOUZJWWD.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-100-LOUZJWWD.woff
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-300-JWHYBBRD.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-300-JWHYBBRD.woff2
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-300-NQN4IYIE.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-300-NQN4IYIE.woff
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-400-DYWU2ORH.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-400-DYWU2ORH.woff2
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-400-PZFAIW4T.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-400-PZFAIW4T.woff
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-500-4IP6S76S.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-500-4IP6S76S.woff
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-500-DX54HW7Y.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-500-DX54HW7Y.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-700-AJRTAAYS.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-700-AJRTAAYS.woff
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-700-CKETX7AH.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-700-CKETX7AH.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-900-FAV2O762.woff2
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-900-FAV2O762.woff2
Normal file
Binary file not shown.
BIN
gns3server/static/web-ui/media/roboto-latin-900-JFROQEGL.woff
Normal file
BIN
gns3server/static/web-ui/media/roboto-latin-900-JFROQEGL.woff
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
1
gns3server/static/web-ui/styles-NJDCODEZ.css
Normal file
1
gns3server/static/web-ui/styles-NJDCODEZ.css
Normal file
File diff suppressed because one or more lines are too long
1
gns3server/static/web-ui/worker-457ML2XE.js
Normal file
1
gns3server/static/web-ui/worker-457ML2XE.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user