mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-30 20:32:14 +00:00
- Replace all default exports with named exports, except for Vue SFCs - Remove names from Vue SFCs, they are automatically inferred from the filename - Misc whitespace-related tweaks
10 lines
309 B
JavaScript
10 lines
309 B
JavaScript
import {createApp} from 'vue';
|
|
import PullRequestMergeForm from '../components/PullRequestMergeForm.vue';
|
|
|
|
export function initRepoPullRequestMergeForm() {
|
|
const el = document.getElementById('pull-request-merge-form');
|
|
if (!el) return;
|
|
|
|
const view = createApp(PullRequestMergeForm);
|
|
view.mount(el);
|
|
}
|