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 DiffFileTree from '../components/DiffFileTree.vue'; |
||||||
import DiffFileList from '../components/DiffFileList.vue'; |
import DiffFileList from '../components/DiffFileList.vue'; |
||||||
|
|
||||||
export default function initDiffFileTree() { |
export default function initDiffFileTree() { |
||||||
const el = document.getElementById('diff-file-tree-container'); |
const el = document.getElementById('diff-file-tree'); |
||||||
if (!el) return; |
if (!el) return; |
||||||
|
|
||||||
const View = Vue.extend({ |
const fileTreeView = createApp(DiffFileTree); |
||||||
render: (createElement) => createElement(DiffFileTree), |
fileTreeView.mount(el); |
||||||
}); |
|
||||||
new View().$mount(el); |
|
||||||
|
|
||||||
const fileListElement = document.getElementById('diff-file-list-container'); |
const fileListElement = document.getElementById('diff-file-list'); |
||||||
if (!fileListElement) return; |
if (!fileListElement) return; |
||||||
|
|
||||||
const fileListView = Vue.extend({ |
const fileListView = createApp(DiffFileList); |
||||||
render: (createElement) => createElement(DiffFileList), |
fileListView.mount(fileListElement); |
||||||
}); |
|
||||||
new fileListView().$mount(fileListElement); |
|
||||||
} |
} |
||||||
|
@ -1,12 +1,10 @@ |
|||||||
import Vue from 'vue'; |
import {createApp} from 'vue'; |
||||||
import PullRequestMergeForm from '../components/PullRequestMergeForm.vue'; |
import PullRequestMergeForm from '../components/PullRequestMergeForm.vue'; |
||||||
|
|
||||||
export default function initPullRequestMergeForm() { |
export default function initPullRequestMergeForm() { |
||||||
const el = document.getElementById('pull-request-merge-form'); |
const el = document.getElementById('pull-request-merge-form'); |
||||||
if (!el) return; |
if (!el) return; |
||||||
|
|
||||||
const View = Vue.extend({ |
const view = createApp(PullRequestMergeForm); |
||||||
render: (createElement) => createElement(PullRequestMergeForm), |
view.mount(el); |
||||||
}); |
|
||||||
new View().$mount(el); |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue