tmux-weblink 2.0.17 → 2.0.18
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.
package/dist/lib/pages/shell.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cssVarsStyle as d}from"../theme.js";import{newSessionModalCSS as c,newSessionModalHTML as f,newSessionModalScript as g,reducedMotion as
|
|
1
|
+
import{cssVarsStyle as d}from"../theme.js";import{newSessionModalCSS as c,newSessionModalHTML as f,newSessionModalScript as g,reducedMotion as b}from"../shared-layout.js";import{icon as i}from"../icons.js";function h(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function o(t="var(--panel-accent)"){return`box-shadow: 0 0 0 2px ${t}; outline: none;`}function y(t){const{theme:e,fsRoots:n,terminalCfg:r,scrollback:a,wsBase:s}=t,p=`
|
|
2
2
|
*, *::before, *::after { box-sizing: border-box; }
|
|
3
3
|
html, body {
|
|
4
4
|
background: var(--page-bg); color: var(--page-fg);
|
|
@@ -499,6 +499,16 @@ import{cssVarsStyle as d}from"../theme.js";import{newSessionModalCSS as c,newSes
|
|
|
499
499
|
flex: 1; overflow: hidden; position: relative;
|
|
500
500
|
}
|
|
501
501
|
#terminal-container.terminal-pending { visibility: hidden; }
|
|
502
|
+
#terminal-container.terminal-pending::before {
|
|
503
|
+
content: "Connecting\u2026";
|
|
504
|
+
visibility: visible;
|
|
505
|
+
position: absolute; inset: 0; z-index: 5;
|
|
506
|
+
display: flex; align-items: center; justify-content: center;
|
|
507
|
+
color: var(--panel-muted); font-size: 13px;
|
|
508
|
+
background: var(--panel-bg);
|
|
509
|
+
animation: tw-pulse 1.2s ease-in-out infinite;
|
|
510
|
+
}
|
|
511
|
+
@keyframes tw-pulse { 50% { opacity: 0.35; } }
|
|
502
512
|
#terminal-container .terminal-drag-over {
|
|
503
513
|
outline: 2px dashed var(--panel-accent);
|
|
504
514
|
outline-offset: -2px;
|
|
@@ -580,7 +590,7 @@ import{cssVarsStyle as d}from"../theme.js";import{newSessionModalCSS as c,newSes
|
|
|
580
590
|
.file-roots-list li:hover { border-color: var(--panel-accent); }
|
|
581
591
|
.file-roots-list li svg { width: 20px; height: 20px; flex-shrink: 0; fill: var(--panel-accent); }
|
|
582
592
|
|
|
583
|
-
${
|
|
593
|
+
${b()}
|
|
584
594
|
${c()}
|
|
585
595
|
@media (max-width: 640px) {
|
|
586
596
|
.app-layout { flex-direction: column; }
|
|
@@ -592,7 +602,7 @@ import{cssVarsStyle as d}from"../theme.js";import{newSessionModalCSS as c,newSes
|
|
|
592
602
|
.mobile-keys .mk-buttons { display: none; }
|
|
593
603
|
.mobile-keys.mk-focused .mk-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
594
604
|
}
|
|
595
|
-
`,
|
|
605
|
+
`,x=JSON.stringify(e.terminal).replace(/</g,"\\u003c"),l=JSON.stringify({terminal:r,scrollback:a,theme:e.terminal,fsRoots:n,wsBase:s||""}).replace(/</g,"\\u003c");return`<!DOCTYPE html>
|
|
596
606
|
<html lang="en">
|
|
597
607
|
<head>
|
|
598
608
|
<meta charset="UTF-8" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function n(s,r){if(!s)return r;const e=parseInt(s,10);return Number.isFinite(e)&&e>0?e:r}function i(){return{initialLines:n(process.env.TMUX_WEB_INITIAL_LINES,
|
|
1
|
+
function n(s,r){if(!s)return r;const e=parseInt(s,10);return Number.isFinite(e)&&e>0?e:r}function i(){return{initialLines:n(process.env.TMUX_WEB_INITIAL_LINES,400),historyChunk:n(process.env.TMUX_WEB_HISTORY_CHUNK,500),syncIdleMs:n(process.env.TMUX_WEB_SYNC_IDLE_MS,20),syncMaxMs:n(process.env.TMUX_WEB_SYNC_MAX_MS,200)}}export{i as readTerminalBufferConfig};
|