File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -303,30 +303,23 @@ index 0000001..0ddf2ba
303
303
#### StimulusJS with TypeScript
304
304
305
305
``` ts
306
- import { Controller } from " @hotwired/stimulus" ;
306
+ import { Controller } from ' @hotwired/stimulus' ;
307
307
308
- import {
309
- Diff2HtmlUI ,
310
- Diff2HtmlUIConfig ,
311
- } from " diff2html/lib/ui/js/diff2html-ui-slim.js" ;
308
+ import { Diff2HtmlUI , Diff2HtmlUIConfig } from ' diff2html/lib/ui/js/diff2html-ui-slim.js' ;
312
309
313
310
// Requires `yarn add highlight.js`
314
- import " highlight.js/styles/github.css" ;
315
- import " diff2html/bundles/css/diff2html.min.css" ;
311
+ import ' highlight.js/styles/github.css' ;
312
+ import ' diff2html/bundles/css/diff2html.min.css' ;
316
313
317
314
export default class extends Controller {
318
315
connect(): void {
319
- const diff2htmlUi = new Diff2HtmlUI (
320
- this .diffElement ,
321
- this .unifiedDiff ,
322
- this .diffConfiguration
323
- );
316
+ const diff2htmlUi = new Diff2HtmlUI (this .diffElement , this .unifiedDiff , this .diffConfiguration );
324
317
325
318
diff2htmlUi .draw ();
326
319
}
327
320
328
321
get unifiedDiff(): string {
329
- return this .data .get (" unifiedDiff" ) || " " ;
322
+ return this .data .get (' unifiedDiff' ) || ' ' ;
330
323
}
331
324
332
325
get diffElement(): HTMLElement {
@@ -336,7 +329,7 @@ export default class extends Controller {
336
329
get diffConfiguration(): Diff2HtmlUIConfig {
337
330
return {
338
331
drawFileList: true ,
339
- matching: " lines" ,
332
+ matching: ' lines' ,
340
333
};
341
334
}
342
335
}
Original file line number Diff line number Diff line change @@ -5353,9 +5353,9 @@ no-case@^3.0.4:
5353
5353
tslib "^2.0.3"
5354
5354
5355
5355
node-fetch@^2.6.0 :
5356
- version "2.6.5 "
5357
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5 .tgz#42735537d7f080a7e5f78b6c549b7146be1742fd "
5358
- integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ ==
5356
+ version "2.6.7 "
5357
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7 .tgz#24de9fba827e3b4ae44dc8b20256a379160052ad "
5358
+ integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ ==
5359
5359
dependencies :
5360
5360
whatwg-url "^5.0.0"
5361
5361
You can’t perform that action at this time.
0 commit comments