2022-10-01 08:26:38 -06:00
|
|
|
import {createApp} from 'vue';
|
2022-09-26 23:22:19 -06:00
|
|
|
import DiffFileTree from '../components/DiffFileTree.vue';
|
|
|
|
import DiffFileList from '../components/DiffFileList.vue';
|
|
|
|
|
2022-12-23 09:03:11 -07:00
|
|
|
export function initDiffFileTree() {
|
2024-06-10 14:49:33 -06:00
|
|
|
const el = document.querySelector('#diff-file-tree');
|
2022-09-26 23:22:19 -06:00
|
|
|
if (!el) return;
|
|
|
|
|
2022-10-01 08:26:38 -06:00
|
|
|
const fileTreeView = createApp(DiffFileTree);
|
|
|
|
fileTreeView.mount(el);
|
2024-10-14 15:23:20 -06:00
|
|
|
}
|
2022-09-26 23:22:19 -06:00
|
|
|
|
2024-10-14 15:23:20 -06:00
|
|
|
export function initDiffFileList() {
|
2024-06-10 14:49:33 -06:00
|
|
|
const fileListElement = document.querySelector('#diff-file-list');
|
2022-09-26 23:22:19 -06:00
|
|
|
if (!fileListElement) return;
|
|
|
|
|
2022-10-01 08:26:38 -06:00
|
|
|
const fileListView = createApp(DiffFileList);
|
|
|
|
fileListView.mount(fileListElement);
|
2022-09-26 23:22:19 -06:00
|
|
|
}
|