Converted pipeline_schedules bundles into automatic webpack entries
#41341
This commit is contained in:
parent
02d9f54f19
commit
91b2182bc0
|
@ -0,0 +1,3 @@
|
|||
import initForm from '../shared/init_form';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initForm);
|
|
@ -0,0 +1,3 @@
|
|||
import initForm from '../shared/init_form';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initForm);
|
|
@ -1,5 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
import PipelineSchedulesCallout from './components/pipeline_schedules_callout.vue';
|
||||
import PipelineSchedulesCallout from '../shared/components/pipeline_schedules_callout.vue';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => new Vue({
|
||||
el: '#pipeline-schedules-callout',
|
|
@ -0,0 +1,3 @@
|
|||
import initForm from '../shared/init_form';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initForm);
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import Vue from 'vue';
|
||||
import Cookies from 'js-cookie';
|
||||
import Translate from '../../vue_shared/translate';
|
||||
import Translate from '../../../../../vue_shared/translate';
|
||||
import illustrationSvg from '../icons/intro_illustration.svg';
|
||||
|
||||
Vue.use(Translate);
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
@ -1,10 +1,10 @@
|
|||
import Vue from 'vue';
|
||||
import Translate from '../vue_shared/translate';
|
||||
import GlFieldErrors from '../gl_field_errors';
|
||||
import Translate from '../../../../vue_shared/translate';
|
||||
import GlFieldErrors from '../../../../gl_field_errors';
|
||||
import intervalPatternInput from './components/interval_pattern_input.vue';
|
||||
import TimezoneDropdown from './components/timezone_dropdown';
|
||||
import TargetBranchDropdown from './components/target_branch_dropdown';
|
||||
import setupNativeFormVariableList from '../ci_variable_list/native_form_variable_list';
|
||||
import setupNativeFormVariableList from '../../../../ci_variable_list/native_form_variable_list';
|
||||
|
||||
Vue.use(Translate);
|
||||
|
||||
|
@ -27,7 +27,7 @@ function initIntervalPatternInput() {
|
|||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
export default () => {
|
||||
/* Most of the form is written in haml, but for fields with more complex behaviors,
|
||||
* you should mount individual Vue components here. If at some point components need
|
||||
* to share state, it may make sense to refactor the whole form to Vue */
|
||||
|
@ -46,4 +46,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
container: $('.js-ci-variable-list-section'),
|
||||
formField: 'schedule',
|
||||
});
|
||||
});
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
import initForm from '../shared/init_form';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initForm);
|
|
@ -1,7 +1,3 @@
|
|||
- content_for :page_specific_javascripts do
|
||||
= webpack_bundle_tag 'common_vue'
|
||||
= webpack_bundle_tag 'schedule_form'
|
||||
|
||||
= form_for [@project.namespace.becomes(Namespace), @project, @schedule], as: :schedule, html: { id: "new-pipeline-schedule-form", class: "form-horizontal js-pipeline-schedule-form" } do |f|
|
||||
= form_errors(@schedule)
|
||||
.form-group
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
- breadcrumb_title _("Schedules")
|
||||
|
||||
- content_for :page_specific_javascripts do
|
||||
= webpack_bundle_tag 'common_vue'
|
||||
= webpack_bundle_tag 'schedules_index'
|
||||
|
||||
- @no_container = true
|
||||
- page_title _("Pipeline Schedules")
|
||||
|
||||
|
|
|
@ -90,8 +90,6 @@ var config = {
|
|||
registry_list: './registry/index.js',
|
||||
ide: './ide/index.js',
|
||||
sidebar: './sidebar/sidebar_bundle.js',
|
||||
schedule_form: './pipeline_schedules/pipeline_schedule_form_bundle.js',
|
||||
schedules_index: './pipeline_schedules/pipeline_schedules_index_bundle.js',
|
||||
snippet: './snippet/snippet_bundle.js',
|
||||
sketch_viewer: './blob/sketch_viewer.js',
|
||||
stl_viewer: './blob/stl_viewer.js',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Vue from 'vue';
|
||||
import Translate from '~/vue_shared/translate';
|
||||
import IntervalPatternInput from '~/pipeline_schedules/components/interval_pattern_input.vue';
|
||||
import IntervalPatternInput from '~/pages/projects/pipeline_schedules/shared/components/interval_pattern_input.vue';
|
||||
|
||||
Vue.use(Translate);
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import Vue from 'vue';
|
||||
import Cookies from 'js-cookie';
|
||||
import PipelineSchedulesCallout from '~/pipeline_schedules/components/pipeline_schedules_callout.vue';
|
||||
import PipelineSchedulesCallout from '~/pages/projects/pipeline_schedules/shared/components/pipeline_schedules_callout.vue';
|
||||
|
||||
const PipelineSchedulesCalloutComponent = Vue.extend(PipelineSchedulesCallout);
|
||||
const cookieKey = 'pipeline_schedules_callout_dismissed';
|
Loading…
Reference in New Issue