Skip to content

Commit

Permalink
build(shared-docs): Remove the @xterm/xterm dependency
Browse files Browse the repository at this point in the history
components that use xterm aren't shared here.
  • Loading branch information
JeanMeche committed May 2, 2024
1 parent 6aff1bb commit d5cb82c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 123 deletions.
2 changes: 0 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"jszip": "^3.10.1",
"marked": "12.0.2",
"rxjs": "^7.8.1",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"zone.js": "^0.14.2"
},
"exports": {
Expand Down
102 changes: 1 addition & 101 deletions docs/styles/_resets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,7 @@
}
}

.cm-scroller,
.xterm-viewport,
.xterm-screen {
.cm-scroller {
&::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0);
cursor: pointer;
Expand All @@ -374,104 +372,6 @@
}
}

// Override terminal styles
.xterm {
height: 100%;
width: 100%;
}

.xterm-viewport {
overflow-y: auto !important;
height: 100% !important;
width: 100% !important;
background-color: var(--octonary-contrast) !important;
transition: background-color 0.3s ease;
}

.xterm-screen {
padding: 10px;
box-sizing: border-box;
overflow: visible !important;
height: 100% !important;
width: 100% !important;
}

.xterm-rows {
height: 100% !important;
overflow: visible !important;
color: var(--primary-contrast) !important;
transition: color 0.3s ease;
// It is important to not alter the font-size or the selection would lose in precision

.xterm-cursor {
&.xterm-cursor-outline {
outline-color: var(--primary-contrast) !important;
}
&.xterm-cursor-block {
background: var(--primary-contrast) !important;
}
}
}

.xterm-selection {
top: 10px !important;
left: 10px !important;
div {
background-color: transparent !important;
}
}

.xterm-decoration-top {
background-color: var(--quinary-contrast) !important;
}

.xterm-fg-11 {
color: var(--electric-violet) !important;
}

.xterm-fg-4 {
color: var(--bright-blue) !important;
}

// progress ###
.xterm-fg-15 {
color: var(--secondary-contrast) !important;
}

.xterm-fg-14 {
color: var(--vivid-pink) !important;
}

// > in terminal
.xterm-fg-5 {
color: var(--electric-violet) !important;
}

// error text, warning text
.xterm-fg-9,
.xterm-fg-3 {
color: var(--vivid-pink) !important;
}

.xterm-fg-10,
.xterm-fg-2 {
color: var(--symbolic-green) !important;
}

// error bg
.xterm-bg-1 {
background-color: var(--orange-red) !important;
}

// error text
.xterm-fg-257 {
color: var(--octonary-contrast) !important;
}

.xterm-fg-8 {
color: var(--tertiary-contrast) !important;
}

[docs-breadcrumb] {
height: 2.5625rem;
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@
"wait-on": "^7.0.0",
"which": "^4.0.0",
"ws": "^8.8.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"yaml": "^2.0.0",
"zone.js": "^0.14.0"
},
Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ __metadata:
wait-on: "npm:^7.0.0"
which: "npm:^4.0.0"
ws: "npm:^8.8.0"
xterm: "npm:^5.3.0"
xterm-addon-fit: "npm:^0.8.0"
yaml: "npm:^2.0.0"
yargs: "npm:^17.0.0"
zone.js: "npm:^0.14.0"
Expand Down Expand Up @@ -17030,22 +17028,6 @@ __metadata:
languageName: node
linkType: hard

"xterm-addon-fit@npm:^0.8.0":
version: 0.8.0
resolution: "xterm-addon-fit@npm:0.8.0"
peerDependencies:
xterm: ^5.0.0
checksum: 10c0/39f77c9ec74bcc048ad74fbc4b9d610070c0a67971837f7edf92a8d21d65189c887986713d6ab22c04e2704253022488324d27fdb2425dc8aa95a9b679703101
languageName: node
linkType: hard

"xterm@npm:^5.3.0":
version: 5.3.0
resolution: "xterm@npm:5.3.0"
checksum: 10c0/39bf5ea933cc2f65d5970560d065b4db645ed03c820bcf6c6239bd504e41a876ab1a773ad9e4e09476ba85a4891534702b9fbb885b0838d79e6620ed2f856bae
languageName: node
linkType: hard

"y18n@npm:^4.0.0":
version: 4.0.3
resolution: "y18n@npm:4.0.3"
Expand Down

0 comments on commit d5cb82c

Please sign in to comment.