parent
726afe8a9e
commit
04e97b8311
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,17 @@ |
||||
import Vue from 'vue'; |
||||
import {createApp} from 'vue'; |
||||
import DiffFileTree from '../components/DiffFileTree.vue'; |
||||
import DiffFileList from '../components/DiffFileList.vue'; |
||||
|
||||
export default function initDiffFileTree() { |
||||
const el = document.getElementById('diff-file-tree-container'); |
||||
const el = document.getElementById('diff-file-tree'); |
||||
if (!el) return; |
||||
|
||||
const View = Vue.extend({ |
||||
render: (createElement) => createElement(DiffFileTree), |
||||
}); |
||||
new View().$mount(el); |
||||
const fileTreeView = createApp(DiffFileTree); |
||||
fileTreeView.mount(el); |
||||
|
||||
const fileListElement = document.getElementById('diff-file-list-container'); |
||||
const fileListElement = document.getElementById('diff-file-list'); |
||||
if (!fileListElement) return; |
||||
|
||||
const fileListView = Vue.extend({ |
||||
render: (createElement) => createElement(DiffFileList), |
||||
}); |
||||
new fileListView().$mount(fileListElement); |
||||
const fileListView = createApp(DiffFileList); |
||||
fileListView.mount(fileListElement); |
||||
} |
||||
|
@ -1,12 +1,10 @@ |
||||
import Vue from 'vue'; |
||||
import {createApp} from 'vue'; |
||||
import PullRequestMergeForm from '../components/PullRequestMergeForm.vue'; |
||||
|
||||
export default function initPullRequestMergeForm() { |
||||
const el = document.getElementById('pull-request-merge-form'); |
||||
if (!el) return; |
||||
|
||||
const View = Vue.extend({ |
||||
render: (createElement) => createElement(PullRequestMergeForm), |
||||
}); |
||||
new View().$mount(el); |
||||
const view = createApp(PullRequestMergeForm); |
||||
view.mount(el); |
||||
} |
||||
|
Loading…
Reference in new issue