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