Refactor of Dispatcher Plan of Success
This is a followup issue to https://gitlab.com/gitlab-org/gitlab-ce/issues/37792. Thanks @mikegreiling, @okoghenun, @ClemMakesApps and @iamphill for the idea.
The plan is to refactor the dispatcher.js file with the following steps which will allow us to merge incrementally and not create a huge MR.
- The end goal is to have a file structure which is
javascripts/pages/route/to/file
. In order to achieve this we have webpack dynamically route us to the right place based on the entry point. But as a first step we need the right file structure. So we will move the files. - Using the user profile as an example: The user profile has the route:
users:show
. Createapp/assets/javascripts/pages/users/show
. - In that directory you will create an
index.js
. - Figure out what imports were needed for the
users:show
... Check theswitch
statement. You can see three imports were needed. https://gitlab.com/gitlab-org/gitlab-ce/issues/41341 -
Cookies
UserTabs
, andUserCallout
. In the dispatcher at the top of the file is where the imports are located. See if they are being used for anything else in this file. If not, remove them from here. If yes, leave them alone. - Move your files from the root of the javascript directory to the new directory.
- Something like
$ mv app/assets/javascripts/users/* app/assets/javascripts/pages/users/show
. - In your
index.js
, add imports for the files. You will need to update the import statement. Something like'~/user_callout'
. - At this point your directory structure will look something like this: https://imgur.com/a/SMT45.
- Create an
export default () => {
to call anything that was normally happening in that switch statement. - Add the rest of the file in the
index.js
. - In the original switch statement you can now import the index.
import('./pages/users/show').then(m => m.default()).catch(fail);
- The dispatcher will have a
fail
somewhere in there. Something like:const fail = () => Flash('failed to load dynamic module');
- The previous step will move all the files to the right location and everything should still work as expected. That way you can take one route at a time and refactor and submit an MR. Once this step is in place, we will take the step to create entry points in webpack based on the route and we can remove the dispatcher completely.
The following is a list of routes we need to refactor. Please put your name next to the route to claim it. Check it off once an MR is merged and list the MR next to the item once an MR is available.
-
admin:conversational_development_index:show
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16284 -
admin:groups:create
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315 -
admin:groups:edit
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315 -
admin:groups:new
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315 -
admin:impersonation_tokens:index
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315 -
admin:projects:index
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315 -
ci:lints:create
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16284 -
ci:lints:show
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16284 -
dashboard:activity
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16361 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4002 -
dashboard:issues
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16305 https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3968 -
dashboard:merge_requests
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16360 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4001 -
dashboard:milestones:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16303 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3961 -
dashboard:milestones:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16304 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3962 -
dashboard:projects:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16321 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3985 -
dashboard:projects:starred
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16321 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3985 -
dashboard:todos:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16065 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3967 -
explore:groups:index
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16296 -
explore:projects:index
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16296 -
explore:projects:starred
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16296 -
explore:projects:trending
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16296 -
groups:activity
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:create
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:edit
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:group_members:index
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:issues
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:labels:edit
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:labels:index
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:labels:new
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:merge_requests
-
groups:milestones:edit
@iamphill -
groups:milestones:new
@iamphill -
groups:milestones:show
@ClemMakesApps -
groups:milestones:update
@iamphill -
groups:new
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:settings:ci_cd:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3989/ -
groups:show
-
help:index
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16330 -
import:fogbugz:new_user_map
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16284 -
profiles:personal_access_tokens:index
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16330 -
profiles:preferences:show
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16330 -
projects:activity
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16300 -
projects:artifacts:browse
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16300 -
projects:artifacts:file
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16300 -
projects:blame:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16369 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4009 -
projects:blob:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16369 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4009 -
projects:boards:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16374 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4011 -
projects:boards:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16374 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4011 -
projects:branches:create
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16380 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4012 -
projects:branches:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16398 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4027 -
projects:branches:new
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16380 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4012 -
projects:clusters:index
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:clusters:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:commit:pipelines
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:commit:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:commits:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:compare:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16416 -
projects:edit
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:find_file:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:forks:new
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:imports:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:issues:edit
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:issues:index
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:issues:new
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:issues:show
@psimyn https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16417 -
projects:labels:edit
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16393 -
projects:labels:index
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16393 -
projects:labels:new
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16393 -
projects:merge_requests:creations:diffs
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16404 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4032 -
projects:merge_requests:creations:new
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16403 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4031 -
projects:merge_requests:edit
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16404 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4032 -
projects:merge_requests:index
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16399 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4028 -
projects:merge_requests:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16401 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4030 -
projects:milestones:edit
@iamphill -
projects:milestones:new
@iamphill -
projects:milestones:show
@ClemMakesApps -
projects:milestones:update
@iamphill -
projects:network:show
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:pipelines:builds
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:pipelines:create
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:pipelines:failures
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:pipelines:new
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:pipelines:show
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:project_members:index
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16382 -
projects:releases:edit
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:settings:ci_cd:show
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351/diffs -
projects:settings:repository:show
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351/diffs -
projects:show
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:snippets:create
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:snippets:edit
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:snippets:new
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:snippets:show
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:snippets:update
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16351 -
projects:tags:new
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16452 -
projects:tree:show
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16452 -
search:show
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16366 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4005 -
sessions:new
@ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16362 , https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4003 -
snippets:create
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16390 -
snippets:edit
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16390 -
snippets:new
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16390 -
snippets:show
@iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16284 -
snippets:update
@jschatz1 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16390 -
users:show
cc @mikegreiling (feel free to edit this as needed to make it more accurate).
Assignees
admin:*
: @iamphill https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16315
ci:*
: @okoghenun
dashboard:*
: @ClemMakesApps
explore:*
: @jschatz1
groups:*
(! milestones): @psimyn
groups:milestones:*
: @iamphill
help:*
: @okoghenun
import:fogbugz:new_user_map
: @iamphill
profiles:*
: @okoghenun
projects:a*
: @jschatz1
projects:b*
: @ClemMakesApps
projects:c*
: @psimyn
projects:(e*, f*, i*)
: @psimyn
projects:l*
: @jschatz1
projects:merge_requests:*
: @ClemMakesApps
projects:milestones:*
: @iamphill
projects:(n*, p*)
: @okoghenun
projects:(r*, s)
: @jschatz1
search:*
: @ClemMakesApps
sessions:*
: @ClemMakesApps
snippets:*
: @jschatz1
users:show
: @iamphill
EE Dispatcher
-
groups:epics:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
groups:epics:index
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:milestones:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
search:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:merge_requests:creations:new
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:merge_requests:creations:diffs
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:merge_requests:edit
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:blob:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
projects:blame:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
admin:emails:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3970 -
admin:audit_logs:index
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3970 -
projects:settings:repository:show
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571 -
admin:licenses:new
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3970 -
groups:analytics:show
: @ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4563 -
groups:ldap_group_links:index
: @ClemMakesApps https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4563 -
admin:groups:edit
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3970 -
admin:geo_nodes
: @iamphill https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4571
For the following templates:
- Remove the bundle tag.
- If it's
common_*
leave it in for now. e.gcommon_vue
orcommon_d3
- Go into the dispatcher see if there is a route already. If so find the index.js file in the pages directory and import that bundle.
- Make a MR for CE and EE.
app/views/dashboard/groups/index.html.haml
4 = render 'dashboard/groups_head'
5
6: = webpack_bundle_tag 'common_vue'
7: = webpack_bundle_tag 'groups'
8
9 - if params[:filter].blank? && @groups.empty?
app/views/explore/groups/index.html.haml
3 - header_title "Groups", dashboard_groups_path
4
5: = webpack_bundle_tag 'common_vue'
6: = webpack_bundle_tag 'groups'
7
8 - if current_user
app/views/groups/_children.html.haml: @iamphill
1: = webpack_bundle_tag 'common_vue'
2: = webpack_bundle_tag 'groups'
3
4 .js-groups-list-holder
app/views/groups/issues.html.haml: @okoghenun
5
6 - content_for :page_specific_javascripts do
7: = webpack_bundle_tag 'common_vue'
8: = webpack_bundle_tag 'filtered_search'
9
10 - if group_issues_exists
app/views/groups/merge_requests.html.haml: @okoghenun
2
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag 'common_vue'
5: = webpack_bundle_tag 'filtered_search'
6
7 - if @group_merge_requests.empty?
app/views/help/index.html.haml: @jschatz1
1: = webpack_bundle_tag 'docs'
2
3 %div
app/views/help/show.html.haml: @jschatz1
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag 'help'
3 - page_title @path.split("/").reverse.map(&:humanize)
4 .documentation.wiki.prepend-top-default
app/views/help/ui.html.haml: @jschatz1
2 - lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum nisi sapien, non consequat lectus aliquam ultrices. Suspendisse sodales est euismod nunc condimentum, a consectetur diam ornare."
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag('ui_development_kit')
5
6 .gitlab-ui-dev-kit
app/views/ide/index.html.haml: @mikegreiling ~blocked
3
4 - content_for :page_specific_javascripts do
5: = webpack_bundle_tag 'common_vue'
6: = webpack_bundle_tag 'ide', force_same_domain: true
7
8 #ide.ide-loading{ data: {"empty-state-svg-path" => image_path('illustrations/multi_file_editor_empty.svg')} }
app/views/import/gitlab_projects/new.html.haml: @jschatz1
2 - header_title "Projects", root_path
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag 'project_import_gl'
5
6 %h3.page-title
app/views/profiles/accounts/show.html.haml: @jschatz1
105
106 - content_for :page_specific_javascripts do
107: = webpack_bundle_tag('account')
108
app/views/projects/blob/show.html.haml: @jschatz1
5
6 - content_for :page_specific_javascripts do
7: = webpack_bundle_tag 'blob'
8
9 = render 'projects/last_push'
app/views/projects/environments/metrics.html.haml: @psimyn
2 - page_title "Metrics for environment", @environment.name
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag 'common_vue'
5: = webpack_bundle_tag 'common_d3'
6: = webpack_bundle_tag 'monitoring'
7
8 .prometheus-container{ class: container_class }
app/views/projects/graphs/charts.html.haml: @jschatz1
2 - page_title "Charts"
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag('common_d3')
5: = webpack_bundle_tag('graphs')
6: = webpack_bundle_tag('graphs_charts')
7
8 .repo-charts{ class: container_class }
-
@mikegreiling gitlab-org/gitlab-ce!17194
app/views/projects/graphs/show.html.haml: @jschatz1
2 - page_title _('Contributors')
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag('common_d3')
5: = webpack_bundle_tag('graphs')
6: = webpack_bundle_tag('graphs_show')
7
8 .js-graphs-show{ class: container_class, 'data-project-graph-path': project_graph_path(@project, current_ref, format: :json) }
app/views/projects/issues/index.html.haml: @okoghenun
6
7 - content_for :page_specific_javascripts do
8: = webpack_bundle_tag 'common_vue'
9: = webpack_bundle_tag 'filtered_search'
10
11 = content_for :meta_tags do
app/views/projects/issues/show.html.haml: @jschatz1
7
8 - content_for :page_specific_javascripts do
9: = webpack_bundle_tag 'common_vue'
10: = webpack_bundle_tag 'notes'
11
12 - can_update_issue = can?(current_user, :update_issue, @issue)
app/views/projects/jobs/show.html.haml: @ClemMakesApps
109
110 - content_for :page_specific_javascripts do
111: = webpack_bundle_tag('common_vue')
112: = webpack_bundle_tag('job_details')
113
app/views/projects/merge_requests/_how_to_merge.html.haml: @ClemMakesApps
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag('how_to_merge')
3
4 #modal_merge_info.modal
app/views/projects/merge_requests/index.html.haml: @okoghenun
8
9 - content_for :page_specific_javascripts do
10: = webpack_bundle_tag 'common_vue'
11: = webpack_bundle_tag 'filtered_search'
12
13 = render 'projects/last_push'
app/views/projects/merge_requests/show.html.haml: @ClemMakesApps
6 - page_card_attributes @merge_request.card_attributes
7 - content_for :page_specific_javascripts do
8: = webpack_bundle_tag('common_vue')
9: = webpack_bundle_tag('diff_notes')
10
11 .merge-request{ data: { mr_action: j(params[:tab].presence || 'show'), url: merge_request_path(@merge_request, format: :json), project_path: project_path(@merge_request.project) } }
..
26
27 - content_for :page_specific_javascripts do
28: = webpack_bundle_tag 'vue_merge_request_widget'
29
30 .content-block.content-block-small.emoji-list-container
app/views/projects/pipeline_schedules/_form.html.haml: @iamphill
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag 'common_vue'
3: = webpack_bundle_tag 'schedule_form'
4
5 = 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|
app/views/projects/pipeline_schedules/index.html.haml: @iamphill
2
3 - content_for :page_specific_javascripts do
4: = webpack_bundle_tag 'common_vue'
5: = webpack_bundle_tag 'schedules_index'
6
7 - @no_container = true
app/views/projects/pipelines/charts/_pipeline_times.haml: @jschatz1
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag('pipelines_times')
3
4 %div
app/views/projects/pipelines/charts/_pipelines.haml: @jschatz1
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag('pipelines_charts')
3
4 %h4= _("Pipelines charts")
app/views/projects/pipelines/show.html.haml: @jschatz1
13
14 - content_for :page_specific_javascripts do
15: = webpack_bundle_tag('common_vue')
16: = webpack_bundle_tag('pipelines_details')
17
app/views/projects/services/_form.html.haml: @okoghenun
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag('integrations')
3
4 .row.prepend-top-default.append-bottom-default
app/views/projects/services/prometheus/_show.html.haml: @okoghenun
1 - content_for :page_specific_javascripts do
2: = webpack_bundle_tag('prometheus_metrics')
3
4 .row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring.js-prometheus-metrics-monitoring
-
@okoghenun https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17145 https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4670
app/views/shared/boards/_show.html.haml: @okoghenun
6
7 - content_for :page_specific_javascripts do
8: = webpack_bundle_tag 'common_vue'
9: = webpack_bundle_tag 'filtered_search'
10: = webpack_bundle_tag 'boards'
11
12 %script#js-board-template{ type: "text/x-template" }= render "shared/boards/components/board"
app/views/users/show.html.haml: @okoghenun
6 - @no_container = true
7 - content_for :page_specific_javascripts do
8: = webpack_bundle_tag 'common_d3'
9: = webpack_bundle_tag 'users'
10
11 = content_for :meta_tags do