tmux-weblink 2.2.39 → 2.2.40
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 +29 -17
- package/package.json +1 -1
package/dist/lib/pages/shell.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cssVarsStyle as c}from"../theme.js";import{newSessionModalCSS as f,newSessionModalHTML as g,newSessionModalScript as b,reducedMotion as x}from"../shared-layout.js";import{icon as n}from"../icons.js";function m(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function o(e="var(--panel-accent)"){return`box-shadow: 0 0 0 2px ${e}; outline: none;`}function k(e){const{theme:t,fsRoots:
|
|
1
|
+
import{cssVarsStyle as c}from"../theme.js";import{newSessionModalCSS as f,newSessionModalHTML as g,newSessionModalScript as b,reducedMotion as x}from"../shared-layout.js";import{icon as n}from"../icons.js";function m(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function o(e="var(--panel-accent)"){return`box-shadow: 0 0 0 2px ${e}; outline: none;`}function k(e){const{theme:t,fsRoots:a,terminalCfg:r,scrollback:s,wsBase:l}=e,i=e.version?m(e.version):"",p=`
|
|
2
2
|
*, *::before, *::after { box-sizing: border-box; }
|
|
3
3
|
html, body {
|
|
4
4
|
background: var(--page-bg); color: var(--page-fg);
|
|
@@ -568,12 +568,24 @@ import{cssVarsStyle as c}from"../theme.js";import{newSessionModalCSS as f,newSes
|
|
|
568
568
|
background: var(--panel-bg); flex-shrink: 0;
|
|
569
569
|
}
|
|
570
570
|
.mobile-keys button {
|
|
571
|
-
|
|
571
|
+
/* Fixed size, never squeezed: with nowrap wrapping the row used to shrink
|
|
572
|
+
buttons below their label and the text spilled out of the cell. */
|
|
573
|
+
flex: 0 0 auto;
|
|
574
|
+
min-width: 40px; height: 40px; padding: 0 8px;
|
|
572
575
|
border: 1px solid var(--panel-border); border-radius: 8px;
|
|
573
576
|
background: var(--page-bg); color: var(--page-fg);
|
|
574
|
-
font-size:
|
|
577
|
+
font-size: 12px; font-family: var(--font-mono); cursor: pointer;
|
|
578
|
+
line-height: 1; white-space: nowrap; overflow: hidden;
|
|
575
579
|
touch-action: manipulation; user-select: none;
|
|
580
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
576
581
|
}
|
|
582
|
+
/* Arrows and other single-glyph keys are square; label keys size to content. */
|
|
583
|
+
.mobile-keys button[data-key="up"],
|
|
584
|
+
.mobile-keys button[data-key="down"],
|
|
585
|
+
.mobile-keys button[data-key="left"],
|
|
586
|
+
.mobile-keys button[data-key="right"],
|
|
587
|
+
.mobile-keys button[data-key="space"],
|
|
588
|
+
.mobile-keys button[data-key="enter"] { width: 40px; padding: 0; font-size: 15px; }
|
|
577
589
|
.mobile-keys button:active { opacity: 0.55; }
|
|
578
590
|
/* Full-width tappable bar in the space under the input: tap anywhere on it to
|
|
579
591
|
expand or collapse the extra keys. flex-basis 100% keeps it on its own row
|
|
@@ -676,7 +688,7 @@ import{cssVarsStyle as c}from"../theme.js";import{newSessionModalCSS as f,newSes
|
|
|
676
688
|
display: flex; flex-wrap: nowrap; gap: 4px;
|
|
677
689
|
overflow-x: auto; overscroll-behavior-x: contain;
|
|
678
690
|
}
|
|
679
|
-
`,h=JSON.stringify(t.terminal).replace(/</g,"\\u003c"),d=JSON.stringify({terminal:
|
|
691
|
+
`,h=JSON.stringify(t.terminal).replace(/</g,"\\u003c"),d=JSON.stringify({terminal:r,scrollback:s,theme:t.terminal,fsRoots:a,wsBase:l||""}).replace(/</g,"\\u003c");return`<!DOCTYPE html>
|
|
680
692
|
<html lang="en">
|
|
681
693
|
<head>
|
|
682
694
|
<meta charset="UTF-8" />
|
|
@@ -767,19 +779,19 @@ import{cssVarsStyle as c}from"../theme.js";import{newSessionModalCSS as f,newSes
|
|
|
767
779
|
</div>
|
|
768
780
|
<div class="mk-handle" id="mk-handle" role="button" tabindex="0" aria-pressed="false" title="Show/hide extra keys" aria-label="Show or hide extra keys"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 15l6-6 6 6"/></svg><span class="mk-when-closed">\u5C55\u5F00\u6309\u952E</span><span class="mk-when-open">\u6536\u8D77\u6309\u952E</span></div>
|
|
769
781
|
<div class="mk-buttons" id="mk-buttons">
|
|
770
|
-
<button data-key="esc">
|
|
771
|
-
<button data-key="tab">Tab</button>
|
|
772
|
-
<button data-key="s-tab"
|
|
773
|
-
<button data-key="up">\u2191</button>
|
|
774
|
-
<button data-key="down">\u2193</button>
|
|
775
|
-
<button data-key="left">\u2190</button>
|
|
776
|
-
<button data-key="right">\u2192</button>
|
|
777
|
-
<button data-key="space">\u2423</button>
|
|
778
|
-
<button data-key="enter">\u21B5
|
|
779
|
-
<button data-key="ctrl-r"
|
|
780
|
-
<button data-key="ctrl-c"
|
|
781
|
-
<button data-key="btw">/btw</button>
|
|
782
|
-
<button data-key="yes">Yes</button>
|
|
782
|
+
<button data-key="esc" title="Esc" aria-label="Esc">Esc</button>
|
|
783
|
+
<button data-key="tab" title="Tab" aria-label="Tab">Tab</button>
|
|
784
|
+
<button data-key="s-tab" title="Shift+Tab" aria-label="Shift Tab">\u21E7Tab</button>
|
|
785
|
+
<button data-key="up" title="Up" aria-label="Up">\u2191</button>
|
|
786
|
+
<button data-key="down" title="Down" aria-label="Down">\u2193</button>
|
|
787
|
+
<button data-key="left" title="Left" aria-label="Left">\u2190</button>
|
|
788
|
+
<button data-key="right" title="Right" aria-label="Right">\u2192</button>
|
|
789
|
+
<button data-key="space" title="Space" aria-label="Space">\u2423</button>
|
|
790
|
+
<button data-key="enter" title="Enter" aria-label="Enter">\u21B5</button>
|
|
791
|
+
<button data-key="ctrl-r" title="Ctrl+R" aria-label="Control R">^R</button>
|
|
792
|
+
<button data-key="ctrl-c" title="Ctrl+C" aria-label="Control C">^C</button>
|
|
793
|
+
<button data-key="btw" title="/btw \u2014 pass a side note to the agent" aria-label="slash btw">/btw</button>
|
|
794
|
+
<button data-key="yes" title="yes" aria-label="yes">Yes</button>
|
|
783
795
|
</div>
|
|
784
796
|
</div>
|
|
785
797
|
</main>
|