You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo-diff-filetree.js 529B

1234567891011121314151617
  1. import {createApp} from 'vue';
  2. import DiffFileTree from '../components/DiffFileTree.vue';
  3. import DiffFileList from '../components/DiffFileList.vue';
  4. export function initDiffFileTree() {
  5. const el = document.getElementById('diff-file-tree');
  6. if (!el) return;
  7. const fileTreeView = createApp(DiffFileTree);
  8. fileTreeView.mount(el);
  9. const fileListElement = document.getElementById('diff-file-list');
  10. if (!fileListElement) return;
  11. const fileListView = createApp(DiffFileList);
  12. fileListView.mount(fileListElement);
  13. }