Skip to content

Commit

Permalink
Make links in the terminal clickable
Browse files Browse the repository at this point in the history
Also bump up xterm to latest
  • Loading branch information
yuvipanda committed Jun 21, 2022
1 parent cefeb1e commit a3cd322
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions nbgitpuller/static/js/gitsyncview.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import { Terminal } from 'xterm';
import { FitAddon } from 'xterm-addon-fit';
import { WebLinksAddon } from 'xterm-addon-web-links';

export class GitSyncView{
constructor(termSelector, progressSelector, termToggleSelector) {
Expand All @@ -10,6 +11,7 @@ export class GitSyncView{
});
this.fit = new FitAddon();
this.term.loadAddon(this.fit);
this.term.loadAddon(new WebLinksAddon());

this.visible = false;
this.progress = document.querySelector(progressSelector);
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"description": "Dependencies to build nbgitpuller/static/dist/bundle.js from nbgitpuller/static/js/index.js with webpack.",
"devDependencies": {
"css-loader": "^6.2.0",
"style-loader": "^3.2.1",
"webpack": "^5.45.1",
"webpack-cli": "^4.7.2",
"xterm": "^4.13.0",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"xterm": "^4.18.0",
"xterm-addon-fit": "^0.5.0",
"css-loader": "^6.2.0",
"style-loader": "^3.2.1"
"xterm-addon-web-links": "^0.5.1"
},
"scripts": {
"webpack": "webpack",
Expand Down

0 comments on commit a3cd322

Please sign in to comment.