code.gitea.io/gitea@v1.21.7/web_src/js/features/repo-diff-commitselect.js (about)

     1  import {createApp} from 'vue';
     2  import DiffCommitSelector from '../components/DiffCommitSelector.vue';
     3  
     4  export function initDiffCommitSelect() {
     5    const el = document.getElementById('diff-commit-select');
     6    if (!el) return;
     7  
     8    const commitSelect = createApp(DiffCommitSelector);
     9    commitSelect.mount(el);
    10  }