Remove IIFEs in boards_bundle.js
This commit is contained in:
parent
84da388d43
commit
6c4d611772
|
@ -7,7 +7,6 @@ import boardBlankState from './board_blank_state';
|
|||
require('./board_delete');
|
||||
require('./board_list');
|
||||
|
||||
(() => {
|
||||
const Store = gl.issueBoards.BoardsStore;
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
@ -103,4 +102,3 @@ require('./board_list');
|
|||
this.sortable = Sortable.create(this.$el.parentNode, this.sortableOptions);
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
window.gl = window.gl || {};
|
||||
window.gl.issueBoards = window.gl.issueBoards || {};
|
||||
|
||||
|
@ -20,4 +19,3 @@ import Vue from 'vue';
|
|||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -8,7 +8,6 @@ import Vue from 'vue';
|
|||
|
||||
require('./sidebar/remove_issue');
|
||||
|
||||
(() => {
|
||||
const Store = gl.issueBoards.BoardsStore;
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
@ -70,4 +69,3 @@ require('./sidebar/remove_issue');
|
|||
removeBtn: gl.issueBoards.RemoveIssueBtn,
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import Vue from 'vue';
|
||||
import eventHub from '../eventhub';
|
||||
|
||||
(() => {
|
||||
const Store = gl.issueBoards.BoardsStore;
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
@ -138,4 +137,3 @@ import eventHub from '../eventhub';
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalEmptyState = Vue.extend({
|
||||
|
@ -68,4 +67,3 @@ import Vue from 'vue';
|
|||
</section>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -5,7 +5,6 @@ import Vue from 'vue';
|
|||
|
||||
require('./lists_dropdown');
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalFooter = Vue.extend({
|
||||
|
@ -81,4 +80,3 @@ require('./lists_dropdown');
|
|||
</footer>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -3,7 +3,6 @@ import modalFilters from './filters';
|
|||
|
||||
require('./tabs');
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalHeader = Vue.extend({
|
||||
|
@ -79,4 +78,3 @@ require('./tabs');
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -8,7 +8,6 @@ require('./list');
|
|||
require('./footer');
|
||||
require('./empty_state');
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.IssuesModal = Vue.extend({
|
||||
|
@ -164,4 +163,3 @@ require('./empty_state');
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalList = Vue.extend({
|
||||
|
@ -158,4 +157,3 @@ import Vue from 'vue';
|
|||
</section>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalFooterListsDropdown = Vue.extend({
|
||||
|
@ -54,4 +53,3 @@ import Vue from 'vue';
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalTabs = Vue.extend({
|
||||
|
@ -45,4 +44,3 @@ import Vue from 'vue';
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* eslint-disable comma-dangle, func-names, no-new, space-before-function-paren, one-var */
|
||||
|
||||
(() => {
|
||||
window.gl = window.gl || {};
|
||||
window.gl.issueBoards = window.gl.issueBoards || {};
|
||||
|
||||
|
@ -73,4 +72,3 @@
|
|||
});
|
||||
});
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
import Vue from 'vue';
|
||||
|
||||
(() => {
|
||||
const Store = gl.issueBoards.BoardsStore;
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
@ -58,4 +57,3 @@ import Vue from 'vue';
|
|||
</div>
|
||||
`,
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
(() => {
|
||||
const ModalStore = gl.issueBoards.ModalStore;
|
||||
|
||||
gl.issueBoards.ModalMixins = {
|
||||
|
@ -11,4 +10,3 @@
|
|||
},
|
||||
},
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* eslint-disable no-unused-vars, no-mixed-operators, comma-dangle */
|
||||
/* global DocumentTouch */
|
||||
|
||||
((w) => {
|
||||
window.gl = window.gl || {};
|
||||
window.gl.issueBoards = window.gl.issueBoards || {};
|
||||
|
||||
|
@ -36,4 +35,3 @@
|
|||
Object.keys(obj).forEach((key) => { defaultSortOptions[key] = obj[key]; });
|
||||
return defaultSortOptions;
|
||||
};
|
||||
})(window);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
import Cookies from 'js-cookie';
|
||||
|
||||
(() => {
|
||||
window.gl = window.gl || {};
|
||||
window.gl.issueBoards = window.gl.issueBoards || {};
|
||||
|
||||
|
@ -124,4 +123,3 @@ import Cookies from 'js-cookie';
|
|||
history.pushState(null, null, `?${this.filter.path}`);
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
(() => {
|
||||
window.gl = window.gl || {};
|
||||
window.gl.issueBoards = window.gl.issueBoards || {};
|
||||
|
||||
|
@ -97,4 +96,3 @@
|
|||
}
|
||||
|
||||
gl.issueBoards.ModalStore = new ModalStore();
|
||||
})();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, one-var, one-var-declaration-per-line, no-void, guard-for-in, no-restricted-syntax, prefer-template, quotes, max-len */
|
||||
(function() {
|
||||
(function(w) {
|
||||
var base;
|
||||
var w = window;
|
||||
if (w.gl == null) {
|
||||
w.gl = {};
|
||||
}
|
||||
|
@ -89,5 +88,3 @@
|
|||
w.gl.utils.visitUrl = (url) => {
|
||||
document.location.href = url;
|
||||
};
|
||||
})(window);
|
||||
}).call(window);
|
||||
|
|
Loading…
Reference in New Issue