mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Rename terminal component to vibe-terminal
- Change @customElement from 'terminal' to 'vibe-terminal' - Update HTML test file to use new element name - Fixes web component spec compliance (terminal is reserved) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
925bc129c9
commit
46ce5ffc56
2 changed files with 4 additions and 4 deletions
|
|
@ -74,7 +74,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure the terminal element takes full height of its container */
|
/* Ensure the terminal element takes full height of its container */
|
||||||
terminal {
|
vibe-terminal {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
@ -102,12 +102,12 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<terminal
|
<vibe-terminal
|
||||||
id="main-terminal"
|
id="main-terminal"
|
||||||
cols="120"
|
cols="120"
|
||||||
rows="40"
|
rows="40"
|
||||||
show-controls="false">
|
show-controls="false">
|
||||||
</terminal>
|
</vibe-terminal>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Load XTerm.js -->
|
<!-- Load XTerm.js -->
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { LitElement, html } from 'lit';
|
||||||
import { customElement, property, state } from 'lit/decorators.js';
|
import { customElement, property, state } from 'lit/decorators.js';
|
||||||
import { Terminal as XtermTerminal, IBufferLine, IBufferCell } from '@xterm/xterm';
|
import { Terminal as XtermTerminal, IBufferLine, IBufferCell } from '@xterm/xterm';
|
||||||
|
|
||||||
@customElement('terminal')
|
@customElement('vibe-terminal')
|
||||||
export class Terminal extends LitElement {
|
export class Terminal extends LitElement {
|
||||||
// Disable shadow DOM for Tailwind compatibility and native text selection
|
// Disable shadow DOM for Tailwind compatibility and native text selection
|
||||||
createRenderRoot() {
|
createRenderRoot() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue