Skip to content
Snippets Groups Projects
Commit a21e4112 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@12-0-stable-ee

parent 96b52080
No related branches found
No related tags found
No related merge requests found
Showing
with 59 additions and 8 deletions
import $ from 'jquery';
import 'at.js';
import _ from 'underscore';
import glRegexp from './lib/utils/regexp';
import AjaxCache from './lib/utils/ajax_cache';
 
Loading
Loading
Loading
Loading
@@ -33,6 +33,9 @@ import GlFieldErrors from './gl_field_errors';
import initUserPopovers from './user_popovers';
import { __ } from './locale';
 
// EE-only scripts
import 'ee/main';
// expose jQuery as global (TODO: remove these)
window.jQuery = jQuery;
window.$ = jQuery;
Loading
Loading
Loading
Loading
@@ -37,6 +37,11 @@ export default {
required: false,
default: false,
},
packagesAvailable: {
type: Boolean,
required: false,
default: false,
},
visibilityHelpPath: {
type: String,
required: false,
Loading
Loading
@@ -67,6 +72,11 @@ export default {
required: false,
default: '',
},
packagesHelpPath: {
type: String,
required: false,
default: '',
},
},
 
data() {
Loading
Loading
@@ -82,6 +92,7 @@ export default {
pagesAccessLevel: 20,
containerRegistryEnabled: true,
lfsEnabled: true,
packagesEnabled: true,
requestAccessEnabled: true,
highlightChangesClass: false,
};
Loading
Loading
@@ -157,12 +168,14 @@ export default {
if (value === 0) {
this.containerRegistryEnabled = false;
this.lfsEnabled = false;
this.packagesEnabled = false;
}
} else if (oldValue === 0) {
this.mergeRequestsAccessLevel = value;
this.buildsAccessLevel = value;
this.containerRegistryEnabled = true;
this.lfsEnabled = true;
this.packagesEnabled = true;
}
},
 
Loading
Loading
@@ -299,6 +312,18 @@ export default {
name="project[lfs_enabled]"
/>
</project-setting-row>
<project-setting-row
v-if="packagesAvailable"
:help-path="packagesHelpPath"
label="Packages"
help-text="Every project can have its own space to store its packages"
>
<project-feature-toggle
v-model="packagesEnabled"
:disabled-input="!repositoryEnabled"
name="project[packages_enabled]"
/>
</project-setting-row>
</div>
<project-setting-row label="Wiki" help-text="Pages for project documentation">
<project-feature-setting
Loading
Loading
Loading
Loading
@@ -2,8 +2,8 @@ import Visibility from 'visibilityjs';
import Flash from '../flash';
import Poll from '../lib/utils/poll';
import { __ } from '../locale';
import PipelineStore from './stores/pipeline_store';
import PipelineService from './services/pipeline_service';
import PipelineService from '~/pipelines/services/pipeline_service';
import PipelineStore from 'ee/pipelines/stores/pipeline_store'; // eslint-disable-line import/order
 
export default class pipelinesMediator {
constructor(options = {}) {
Loading
Loading
<script>
import IssueStatusIcon from '~/reports/components/issue_status_icon.vue';
import { components, componentNames } from '~/reports/components/issue_body';
import { components, componentNames } from 'ee/vue_shared/components/reports/issue_body';
 
export default {
name: 'ReportItem',
Loading
Loading
Loading
Loading
@@ -65,9 +65,6 @@ export default {
:title="timeRemainingTooltip"
:class="timeRemainingStatusClass"
class="compare-meter"
data-toggle="tooltip"
data-placement="top"
role="timeRemainingDisplay"
>
<gl-progress-bar :value="timeRemainingPercent" :variant="progressBarVariant" />
<div class="compare-display-container">
Loading
Loading
import Store from 'ee/sidebar/stores/sidebar_store';
import { visitUrl } from '../lib/utils/url_utility';
import Flash from '../flash';
import Service from './services/sidebar_service';
import Store from './stores/sidebar_store';
import { __ } from '~/locale';
 
export default class SidebarMediator {
Loading
Loading
Loading
Loading
@@ -92,7 +92,6 @@ export default {
},
};
</script>
<template>
<div class="ci-widget media js-ci-widget">
<template v-if="!hasPipeline || hasCIError">
Loading
Loading
@@ -191,6 +190,7 @@ export default {
</div>
</template>
</span>
<linked-pipelines-mini-list v-if="triggered.length" :triggered="triggered" />
</span>
</div>
Loading
Loading
Loading
Loading
@@ -9,6 +9,7 @@ export default {
directives: {
GlTooltip: GlTooltipDirective,
},
props: {
endDateString: {
type: String,
Loading
Loading
Loading
Loading
@@ -34,4 +34,8 @@
// Styles for JS behaviors.
@import "behaviors";
 
// EE-only stylesheets
@import "../../../ee/app/assets/stylesheets/**/*";
// CSS util classes
@import "utilities";
Loading
Loading
@@ -8,3 +8,5 @@ class Admin::ApplicationController < ApplicationController
 
layout 'admin'
end
Admin::ApplicationController.prepend(EE::Admin::ApplicationController)
Loading
Loading
@@ -158,3 +158,5 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
]
end
end
Admin::ApplicationSettingsController.prepend(EE::Admin::ApplicationSettingsController)
Loading
Loading
@@ -15,3 +15,5 @@ class Admin::DashboardController < Admin::ApplicationController
end
# rubocop: enable CodeReuse/ActiveRecord
end
Admin::DashboardController.prepend(EE::Admin::DashboardController)
Loading
Loading
@@ -94,3 +94,5 @@ class Admin::GroupsController < Admin::ApplicationController
]
end
end
Admin::GroupsController.prepend(EE::Admin::GroupsController)
Loading
Loading
@@ -11,3 +11,5 @@ class Admin::HealthCheckController < Admin::ApplicationController
['standard']
end
end
Admin::HealthCheckController.prepend(EE::Admin::HealthCheckController)
Loading
Loading
@@ -20,3 +20,5 @@ class Admin::LogsController < Admin::ApplicationController
]
end
end
Admin::LogsController.prepend(EE::Admin::LogsController)
Loading
Loading
@@ -76,3 +76,5 @@ class Admin::ProjectsController < Admin::ApplicationController
@group ||= @project.group
end
end
Admin::ProjectsController.prepend(EE::Admin::ProjectsController)
Loading
Loading
@@ -237,3 +237,5 @@ class Admin::UsersController < Admin::ApplicationController
access_denied! unless Gitlab.config.gitlab.impersonation_enabled
end
end
Admin::UsersController.prepend(EE::Admin::UsersController)
Loading
Loading
@@ -517,3 +517,5 @@ class ApplicationController < ActionController::Base
Gitlab::Sentry.context(current_user)
end
end
ApplicationController.prepend(EE::ApplicationController)
Loading
Loading
@@ -46,3 +46,5 @@ class AutocompleteController < ApplicationController
render json: target_branches.map { |target_branch| { title: target_branch } }
end
end
AutocompleteController.prepend(EE::AutocompleteController)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment