Skip to content

Commit ddad22c

Browse files
author
Jacob Schatz
committed
Merge branch 'terminal-bundle-refactor' into 'master'
Removed terminal webpack bundle tag See merge request gitlab-org/gitlab-ce!17494
2 parents c9660b4 + 8510fc8 commit ddad22c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import initTerminal from '~/terminal/';
2+
3+
document.addEventListener('DOMContentLoaded', initTerminal);

app/assets/javascripts/terminal/terminal_bundle.js renamed to app/assets/javascripts/terminal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import './terminal';
66

77
window.Terminal = Terminal;
88

9-
$(() => new gl.Terminal({ selector: '#terminal' }));
9+
export default () => new gl.Terminal({ selector: '#terminal' });

app/views/projects/environments/terminal.html.haml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
- content_for :page_specific_javascripts do
55
= stylesheet_link_tag "xterm/xterm"
6-
= webpack_bundle_tag("terminal")
76

87
%div{ class: container_class }
98
.top-area

config/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ function generateEntries() {
4545
const manualEntries = {
4646
monitoring: './monitoring/monitoring_bundle.js',
4747
mr_notes: './mr_notes/index.js',
48-
terminal: './terminal/terminal_bundle.js',
4948

5049
common: './commons/index.js',
5150
common_vue: './vue_shared/vue_resource_interceptor.js',

0 commit comments

Comments
 (0)