44 <main class =" outline-none" tabindex =" 0" >
55 <DiffActionBar :diff-navigator =" diffNavigator" />
66 <section
7- class =" flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
7+ class ="
8+ flex
9+ items-stretch
10+ flex-wrap
11+ w-full
12+ gap-4
13+ font-mono
14+ text-gray-800
15+ dark:text-gray-50
16+ "
817 >
18+ <div class =" flex space-around w-full gap-4" >
19+ <p
20+ class ="
21+ flex-grow-0 flex-shrink-0
22+ w-1/2
23+ text-lg
24+ font-bold
25+ text-center
26+ capitalize
27+ break-all
28+ "
29+ >
30+ <span class =" inline-block w-4/5" >{{ lhsLabel }}</span >
31+ </p >
32+ <p
33+ class ="
34+ flex-grow-0 flex-shrink-0
35+ w-1/2
36+ text-lg
37+ font-bold
38+ text-center
39+ capitalize
40+ break-all
41+ "
42+ >
43+ <span class =" inline-block w-4/5" >{{ rhsLabel }}</span >
44+ </p >
45+ </div >
946 <div
1047 id =" monaco-diff-viewer"
1148 class =" w-full h-screen p-2 border border-gray-600 rounded-md editor"
1956import pako from ' pako'
2057import loader from ' @monaco-editor/loader'
2158import Vue from ' vue'
22- import { getMonacoEditorDefaultOptions , undoUrlSafeBase64 } from ' ../../helpers/utils'
59+ import {
60+ getMonacoEditorDefaultOptions ,
61+ undoUrlSafeBase64 ,
62+ } from ' ../../helpers/utils'
2363import DiffActionBar from ' ~/components/v2/diffActionBar.vue'
2464import Navbar from ' ~/components/v2/navbar.vue'
2565import { v2DiffData } from ' ~/helpers/types'
@@ -28,8 +68,8 @@ export default Vue.extend({
2868 layout: ' main' ,
2969 data(): v2DiffData {
3070 return {
31- lhs: " " ,
32- rhs: " " ,
71+ lhs: ' ' ,
72+ rhs: ' ' ,
3373 rhsLabel: ' ' ,
3474 lhsLabel: ' ' ,
3575 monacoDiffEditor: {},
@@ -53,7 +93,7 @@ export default Vue.extend({
5393 mounted() {
5494 const monacoDiffViewerEl = document .getElementById (' monaco-diff-viewer' )
5595 const theme = this .$cookies .isDarkMode ? ' vs-dark' : ' light'
56- const monacoEditorOptions = getMonacoEditorDefaultOptions (theme );
96+ const monacoEditorOptions = getMonacoEditorDefaultOptions (theme )
5797 loader .init ().then ((monaco ) => {
5898 if (monacoDiffViewerEl ) {
5999 this .monacoDiffEditor = monaco .editor .createDiffEditor (
@@ -62,7 +102,7 @@ export default Vue.extend({
62102 ... monacoEditorOptions ,
63103 readOnly: true ,
64104 wordWrap: ' on' ,
65- diffAlgorithm: ' advanced'
105+ diffAlgorithm: ' advanced' ,
66106 }
67107 ) as any
68108 if (this .monacoDiffEditor ) {
0 commit comments