code.gitea.io/gitea@v1.21.7/web_src/js/features/repo-diff-filetree.js (about) 1 import {createApp} from 'vue'; 2 import DiffFileTree from '../components/DiffFileTree.vue'; 3 import DiffFileList from '../components/DiffFileList.vue'; 4 5 export function initDiffFileTree() { 6 const el = document.getElementById('diff-file-tree'); 7 if (!el) return; 8 9 const fileTreeView = createApp(DiffFileTree); 10 fileTreeView.mount(el); 11 12 const fileListElement = document.getElementById('diff-file-list'); 13 if (!fileListElement) return; 14 15 const fileListView = createApp(DiffFileList); 16 fileListView.mount(fileListElement); 17 }