Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
91b2182b
Unverified
Commit
91b2182b
authored
7 years ago
by
Phil Hughes
Browse files
Options
Download
Email Patches
Plain Diff
Converted pipeline_schedules bundles into automatic webpack entries
#41341
parent
02d9f54f
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
21 additions
and
19 deletions
+21
-19
app/assets/javascripts/pages/projects/pipeline_schedules/create/index.js
...scripts/pages/projects/pipeline_schedules/create/index.js
+3
-0
app/assets/javascripts/pages/projects/pipeline_schedules/edit/index.js
...vascripts/pages/projects/pipeline_schedules/edit/index.js
+3
-0
app/assets/javascripts/pages/projects/pipeline_schedules/index/index.js
...ascripts/pages/projects/pipeline_schedules/index/index.js
+1
-1
app/assets/javascripts/pages/projects/pipeline_schedules/new/index.js
...avascripts/pages/projects/pipeline_schedules/new/index.js
+3
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/interval_pattern_input.vue
...ne_schedules/shared/components/interval_pattern_input.vue
+0
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/pipeline_schedules_callout.vue
...chedules/shared/components/pipeline_schedules_callout.vue
+1
-1
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/target_branch_dropdown.js
...ine_schedules/shared/components/target_branch_dropdown.js
+0
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/timezone_dropdown.js
...pipeline_schedules/shared/components/timezone_dropdown.js
+0
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/icons/intro_illustration.svg
...ts/pipeline_schedules/shared/icons/intro_illustration.svg
+0
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/init_form.js
...pts/pages/projects/pipeline_schedules/shared/init_form.js
+5
-5
app/assets/javascripts/pages/projects/pipeline_schedules/update/index.js
...scripts/pages/projects/pipeline_schedules/update/index.js
+3
-0
app/views/projects/pipeline_schedules/_form.html.haml
app/views/projects/pipeline_schedules/_form.html.haml
+0
-4
app/views/projects/pipeline_schedules/index.html.haml
app/views/projects/pipeline_schedules/index.html.haml
+0
-4
config/webpack.config.js
config/webpack.config.js
+0
-2
spec/javascripts/pages/projects/pipeline_schedules/shared/components/interval_pattern_input_spec.js
...chedules/shared/components/interval_pattern_input_spec.js
+1
-1
spec/javascripts/pages/projects/pipeline_schedules/shared/components/pipeline_schedule_callout_spec.js
...dules/shared/components/pipeline_schedule_callout_spec.js
+1
-1
No files found.
app/assets/javascripts/pages/projects/pipeline_schedules/create/index.js
0 → 100644
View file @
91b2182b
import
initForm
from
'
../shared/init_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pages/projects/pipeline_schedules/edit/index.js
0 → 100644
View file @
91b2182b
import
initForm
from
'
../shared/init_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
This diff is collapsed.
Click to expand it.
app/assets/javascripts/p
ipeline_schedule
s/pipeline_schedules
_
index
_bundle
.js
→
app/assets/javascripts/p
ages/project
s/pipeline_schedules
/
index
/index
.js
View file @
91b2182b
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
'
,
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pages/projects/pipeline_schedules/new/index.js
0 → 100644
View file @
91b2182b
import
initForm
from
'
../shared/init_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipeline_schedules/components/interval_pattern_input.vue
→
app/assets/javascripts/
pages/projects/
pipeline_schedules/
shared/
components/interval_pattern_input.vue
View file @
91b2182b
File moved
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipeline_schedules/components/pipeline_schedules_callout.vue
→
app/assets/javascripts/
pages/projects/
pipeline_schedules/
shared/
components/pipeline_schedules_callout.vue
View file @
91b2182b
<
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
);
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipeline_schedules/components/target_branch_dropdown.js
→
app/assets/javascripts/
pages/projects/
pipeline_schedules/
shared/
components/target_branch_dropdown.js
View file @
91b2182b
File moved
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipeline_schedules/components/timezone_dropdown.js
→
app/assets/javascripts/
pages/projects/
pipeline_schedules/
shared/
components/timezone_dropdown.js
View file @
91b2182b
File moved
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pipeline_schedules/icons/intro_illustration.svg
→
app/assets/javascripts/
pages/projects/
pipeline_schedules/
shared/
icons/intro_illustration.svg
View file @
91b2182b
File moved
This diff is collapsed.
Click to expand it.
app/assets/javascripts/p
ipeline_schedule
s/pipeline_schedule
_form_bundle
.js
→
app/assets/javascripts/p
ages/project
s/pipeline_schedule
s/shared/init_form
.js
View file @
91b2182b
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
'
,
});
}
)
;
};
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pages/projects/pipeline_schedules/update/index.js
0 → 100644
View file @
91b2182b
import
initForm
from
'
../shared/init_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
This diff is collapsed.
Click to expand it.
app/views/projects/pipeline_schedules/_form.html.haml
View file @
91b2182b
-
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
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/pipeline_schedules/index.html.haml
View file @
91b2182b
-
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"
)
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.js
View file @
91b2182b
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/pipeline_schedules/interval_pattern_input_spec.js
→
spec/javascripts/
pages/projects/
pipeline_schedules/
shared/components/
interval_pattern_input_spec.js
View file @
91b2182b
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
);
...
...
This diff is collapsed.
Click to expand it.
spec/javascripts/pipeline_schedules/pipeline_schedule_callout_spec.js
→
spec/javascripts/
pages/projects/
pipeline_schedules/
shared/components/
pipeline_schedule_callout_spec.js
View file @
91b2182b
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
'
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment