2022-10-01 19:56:38 +05:30
|
|
|
import {createApp} from 'vue';
|
2022-09-27 10:52:19 +05:30
|
|
|
import DiffFileTree from '../components/DiffFileTree.vue';
|
|
|
|
import DiffFileList from '../components/DiffFileList.vue';
|
|
|
|
|
|
|
|
export default function initDiffFileTree() {
|
2022-10-01 19:56:38 +05:30
|
|
|
const el = document.getElementById('diff-file-tree');
|
2022-09-27 10:52:19 +05:30
|
|
|
if (!el) return;
|
|
|
|
|
2022-10-01 19:56:38 +05:30
|
|
|
const fileTreeView = createApp(DiffFileTree);
|
|
|
|
fileTreeView.mount(el);
|
2022-09-27 10:52:19 +05:30
|
|
|
|
2022-10-01 19:56:38 +05:30
|
|
|
const fileListElement = document.getElementById('diff-file-list');
|
2022-09-27 10:52:19 +05:30
|
|
|
if (!fileListElement) return;
|
|
|
|
|
2022-10-01 19:56:38 +05:30
|
|
|
const fileListView = createApp(DiffFileList);
|
|
|
|
fileListView.mount(fileListElement);
|
2022-09-27 10:52:19 +05:30
|
|
|
}
|