Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var $ = require('jquery');
var _ = require('underscore');
var Util = require('util');
var App = require('app');
var Localization = require('localization');
var MarkdownViewer = require('components/markdown/MarkdownViewer');
var SingletonDefectTypeCollection = require('defectType/SingletonDefectTypeCollection');
var LaunchItemMenuView = require('launches/launchLevel/LaunchItemMenuView');
var LaunchSuiteDefectsView = require('launches/common/LaunchSuiteDefectsView');
var ItemDurationView = require('launches/common/ItemDurationView');
var ItemStartTimeView = require('launches/common/ItemStartTimeView');
var SingletonLaunchFilterCollection = require('filters/SingletonLaunchFilterCollection');
var ModalLaunchItemEdit = require('modals/modalLaunchItemEdit');
var CommonItemView = require('launches/common/CommonItemView');
var config = App.getInstance();
var LaunchSuiteItemView = CommonItemView.extend({
template: 'tpl-launch-suite-item',
className: 'row rp-table-row',
statusTpl: 'tpl-launch-suite-item-status',
events: {
click: 'onClickView',
'click [data-js-name-link]': 'onClickName', // common method
'click [data-js-launch-menu]': 'showItemMenu',
'click [data-js-item-edit]': 'onClickEdit',
'click [data-js-tag]': 'onClickTag',
'click [data-js-owner-name]': 'onClickOwnerName',
'click [data-js-statistics-to-investigate]': 'onClickToInvestigate',
'click [data-js-toggle-open]': 'onClickOpen',
'click [data-js-select-label]': 'onClickSelectLabel',
'click [data-js-select-item]': 'onClickSelectInput'
define(function (require) {
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var Epoxy = require('backbone-epoxy');
var Util = require('util');
var App = require('app');
var CallService = require('callService');
var memberService = require('memberService');
var Urls = require('dataUrlResolver');
var ModalConfirm = require('modals/modalConfirm');
var Localization = require('localization');
var DropDownComponent = require('components/DropDownComponent');
var config = App.getInstance();
var MembersItemView = Epoxy.View.extend({
tpl: 'tpl-users-projects-item',
className: 'row rp-table-row user-projects-row',
bindings: {
'[data-js-project]': 'text: projectId',
'[data-js-project-role]': 'text: getProjectRole',
'[data-js-dropdown-roles]': 'updateRoleDropDown: projectRole',
'[data-js-unassign]': 'classes: {disabled: not(canUnAssign)}, attr: {disabled: not(canUnAssign)}',
// '[data-js-user-select-role]': 'classes: {hide: isAdmin}',
// '[data-js-admin-role]': 'classes: {hide: not(isAdmin)}',
},
computeds: {
define(function (require) {
'use strict';
var $ = require('jquery');
var Epoxy = require('backbone-epoxy');
var FilterEntitiesView = require('filterEntities/FilterEntitiesView');
var Util = require('util');
var App = require('app');
var ModalFilterEdit = require('modals/modalFilterEdit');
var FilterListener = require('controlers/filterControler/FilterListener');
var FilterSortingView = require('filterSelectionParameters/FilterSortingView');
var config = App.getInstance();
var FilterPanelView = Epoxy.View.extend({
template: 'tpl-launch-filter-panel',
events: {
'click [data-js-edit-filter]': 'onClickEdit',
'click [data-js-discard-filter]': 'onClickDiscard',
'click [data-js-save-filter]': 'onClickSave',
'click [data-js-clone-filter]': 'onClickClone'
},
bindings: {
'[data-js-filter-not-save-descr]': 'classes: {hide: all(not(temp), not(newEntities), not(newSelectionParameters))}',
'[data-js-filter-shared-descr]': 'classes: {hide: any(not(share), notMyFilter)}',
'[data-js-save-filter]': 'attr: {disabled: any(all(not(newEntities), not(newSelectionParameters)), notMyFilter)}',
'[data-js-discard-filter]': 'attr: {disabled: all(not(newEntities), not(newSelectionParameters))}',
'[data-js-edit-filter]': 'attr: {disabled: any(temp, notMyFilter)}',
'[data-js-clone-filter]': 'attr: {disabled: all(not(entities), not(newEntities))}',
define(function (require) {
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var Util = require('util');
var Moment = require('moment');
var BaseWidgetView = require('newWidgets/_BaseWidgetView');
var Localization = require('localization');
var SingletonUserStorage = require('storage/SingletonUserStorage');
var App = require('app');
var config = App.getInstance();
var FlakyTestCases = BaseWidgetView.extend({
template: 'tpl-widget-flaky-test-cases-table',
itemTemplate: 'tpl-widget-flaky-test-cases-table-item',
className: 'flaky-test-cases',
events: {
'click [data-js-date]': 'formatDate',
'click [data-js-link]': 'onClickItem'
},
render: function () {
var self = this;
var contentData = this.model.getContent();
var itemsHtml = '';
var launchData;
var SingletonLaunchFilterCollection = require('filters/SingletonLaunchFilterCollection');
var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var Epoxy = require('backbone-epoxy');
var App = require('app');
var Util = require('util');
var FilterModel = require('filters/FilterModel');
var CallService = require('callService');
var Urls = require('dataUrlResolver');
var call = CallService.call;
var SingletonAppStorage = require('storage/SingletonAppStorage');
var Localization = require('localization');
var config = App.getInstance();
var LaunchCrumbModel = Epoxy.Model.extend({
defaults: {
id: '',
name: '',
url: '',
partUrl: '',
level: '',
type: 'FILTER',
isProcessing: false,
number: '',
listView: false,
failLoad: false,
nextModelId: '',
afterListView: false
},