Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
61db9e2f
Commit
61db9e2f
authored
Jan 05, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes unneeded `window` declaration
parent
7c2a4699
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
21 deletions
+23
-21
app/assets/javascripts/environments/components/environment.js.es6
...ts/javascripts/environments/components/environment.js.es6
+2
-2
app/assets/javascripts/environments/components/environment_actions.js.es6
...cripts/environments/components/environment_actions.js.es6
+1
-1
app/assets/javascripts/environments/components/environment_external_url.js.es6
...s/environments/components/environment_external_url.js.es6
+1
-1
app/assets/javascripts/environments/components/environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+9
-9
app/assets/javascripts/environments/components/environment_rollback.js.es6
...ripts/environments/components/environment_rollback.js.es6
+1
-1
app/assets/javascripts/environments/components/environment_stop.js.es6
...vascripts/environments/components/environment_stop.js.es6
+1
-1
app/assets/javascripts/environments/components/environment_terminal_button.js.es6
...nvironments/components/environment_terminal_button.js.es6
+1
-1
app/assets/javascripts/environments/environments_bundle.js.es6
...ssets/javascripts/environments/environments_bundle.js.es6
+6
-4
app/assets/javascripts/environments/stores/environments_store.js.es6
...javascripts/environments/stores/environments_store.js.es6
+1
-1
No files found.
app/assets/javascripts/environments/components/environment.js.es6
View file @
61db9e2f
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
return fn(item);
return fn(item);
}).filter(Boolean);
}).filter(Boolean);
window.
gl.environmentsList.EnvironmentsComponent = Vue.component('environment-component', {
gl.environmentsList.EnvironmentsComponent = Vue.component('environment-component', {
props: {
props: {
store: {
store: {
type: Object,
type: Object,
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
},
},
components: {
components: {
'environment-item':
window.
gl.environmentsList.EnvironmentItem,
'environment-item': gl.environmentsList.EnvironmentItem,
},
},
data() {
data() {
...
...
app/assets/javascripts/environments/components/environment_actions.js.es6
View file @
61db9e2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
window.gl = window.gl || {};
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.ActionsComponent = Vue.component('actions-component', {
gl.environmentsList.ActionsComponent = Vue.component('actions-component', {
props: {
props: {
actions: {
actions: {
type: Array,
type: Array,
...
...
app/assets/javascripts/environments/components/environment_external_url.js.es6
View file @
61db9e2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
window.gl = window.gl || {};
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.ExternalUrlComponent = Vue.component('external-url-component', {
gl.environmentsList.ExternalUrlComponent = Vue.component('external-url-component', {
props: {
props: {
externalUrl: {
externalUrl: {
type: String,
type: String,
...
...
app/assets/javascripts/environments/components/environment_item.js.es6
View file @
61db9e2f
...
@@ -23,18 +23,18 @@
...
@@ -23,18 +23,18 @@
*/
*/
window.gl = window.gl || {};
window.gl = window.gl || {};
window.
gl.environmentsList = window.gl.environmentsList || {};
gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.timeagoInstance = new timeago(); // eslint-disable-line
gl.environmentsList.timeagoInstance = new timeago(); // eslint-disable-line
gl.environmentsList.EnvironmentItem = Vue.component('environment-item', {
gl.environmentsList.EnvironmentItem = Vue.component('environment-item', {
components: {
components: {
'commit-component':
window.
gl.CommitComponent,
'commit-component': gl.CommitComponent,
'actions-component':
window.
gl.environmentsList.ActionsComponent,
'actions-component': gl.environmentsList.ActionsComponent,
'external-url-component':
window.
gl.environmentsList.ExternalUrlComponent,
'external-url-component': gl.environmentsList.ExternalUrlComponent,
'stop-component':
window.
gl.environmentsList.StopComponent,
'stop-component': gl.environmentsList.StopComponent,
'rollback-component':
window.
gl.environmentsList.RollbackComponent,
'rollback-component': gl.environmentsList.RollbackComponent,
'terminal-button-component':
window.
gl.environmentsList.TerminalButtonComponent,
'terminal-button-component': gl.environmentsList.TerminalButtonComponent,
},
},
props: {
props: {
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
* @returns {String}
* @returns {String}
*/
*/
createdDate() {
createdDate() {
return
window.
gl.environmentsList.timeagoInstance.format(
return gl.environmentsList.timeagoInstance.format(
this.model.last_deployment.deployable.created_at,
this.model.last_deployment.deployable.created_at,
);
);
},
},
...
...
app/assets/javascripts/environments/components/environment_rollback.js.es6
View file @
61db9e2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
window.gl = window.gl || {};
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.RollbackComponent = Vue.component('rollback-component', {
gl.environmentsList.RollbackComponent = Vue.component('rollback-component', {
props: {
props: {
retryUrl: {
retryUrl: {
type: String,
type: String,
...
...
app/assets/javascripts/environments/components/environment_stop.js.es6
View file @
61db9e2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
window.gl = window.gl || {};
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.StopComponent = Vue.component('stop-component', {
gl.environmentsList.StopComponent = Vue.component('stop-component', {
props: {
props: {
stopUrl: {
stopUrl: {
type: String,
type: String,
...
...
app/assets/javascripts/environments/components/environment_terminal_button.js.es6
View file @
61db9e2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
window.gl = window.gl || {};
window.gl = window.gl || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.gl.environmentsList = window.gl.environmentsList || {};
window.
gl.environmentsList.TerminalButtonComponent = Vue.component('terminal-button-component', {
gl.environmentsList.TerminalButtonComponent = Vue.component('terminal-button-component', {
props: {
props: {
terminalPath: {
terminalPath: {
type: String,
type: String,
...
...
app/assets/javascripts/environments/environments_bundle.js.es6
View file @
61db9e2f
...
@@ -7,15 +7,17 @@
...
@@ -7,15 +7,17 @@
$(() => {
$(() => {
window.gl = window.gl || {};
window.gl = window.gl || {};
if (
window.
gl.EnvironmentsListApp) {
if (gl.EnvironmentsListApp) {
window.
gl.EnvironmentsListApp.$destroy(true);
gl.EnvironmentsListApp.$destroy(true);
}
}
const Store =
window.
gl.environmentsList.EnvironmentsStore;
const Store = gl.environmentsList.EnvironmentsStore;
window.gl.EnvironmentsListApp = new window.
gl.environmentsList.EnvironmentsComponent({
gl.EnvironmentsListApp = new
gl.environmentsList.EnvironmentsComponent({
el: document.querySelector('#environments-list-view'),
el: document.querySelector('#environments-list-view'),
propsData: {
propsData: {
store: Store.create(),
store: Store.create(),
},
},
});
});
});
});
app/assets/javascripts/environments/stores/environments_store.js.es6
View file @
61db9e2f
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
(() => {
(() => {
window.gl = window.gl || {};
window.gl = window.gl || {};
window.
gl.environmentsList = window.gl.environmentsList || {};
gl.environmentsList = window.gl.environmentsList || {};
gl.environmentsList.EnvironmentsStore = {
gl.environmentsList.EnvironmentsStore = {
state: {},
state: {},
...
...
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