From cb787abec6e64a220b2807469023f4de210dac10 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 11 Oct 2021 12:11:56 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/integrations/constants.js | 18 +++ .../edit/components/integration_form.vue | 7 +- .../edit/components/override_dropdown.vue | 2 +- .../javascripts/integrations/edit/constants.js | 17 --- .../components/list/package_list_row.vue | 151 +++++++++++++++++++++ .../components/list/publish_method.vue | 61 +++++++++ .../fragments/package_data.fragment.graphql | 23 ++++ 7 files changed, 259 insertions(+), 20 deletions(-) delete mode 100644 app/assets/javascripts/integrations/edit/constants.js create mode 100644 app/assets/javascripts/packages_and_registries/package_registry/components/list/package_list_row.vue create mode 100644 app/assets/javascripts/packages_and_registries/package_registry/components/list/publish_method.vue (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/integrations/constants.js b/app/assets/javascripts/integrations/constants.js index 1644f35459b..8a8d38b295c 100644 --- a/app/assets/javascripts/integrations/constants.js +++ b/app/assets/javascripts/integrations/constants.js @@ -1,5 +1,23 @@ +import { s__ } from '~/locale'; + export const TEST_INTEGRATION_EVENT = 'testIntegration'; export const SAVE_INTEGRATION_EVENT = 'saveIntegration'; export const GET_JIRA_ISSUE_TYPES_EVENT = 'getJiraIssueTypes'; export const TOGGLE_INTEGRATION_EVENT = 'toggleIntegration'; export const VALIDATE_INTEGRATION_FORM_EVENT = 'validateIntegrationForm'; + +export const integrationLevels = { + GROUP: 'group', + INSTANCE: 'instance', +}; + +export const defaultIntegrationLevel = integrationLevels.INSTANCE; + +export const overrideDropdownDescriptions = { + [integrationLevels.GROUP]: s__( + 'Integrations|Default settings are inherited from the group level.', + ), + [integrationLevels.INSTANCE]: s__( + 'Integrations|Default settings are inherited from the instance level.', + ), +}; diff --git a/app/assets/javascripts/integrations/edit/components/integration_form.vue b/app/assets/javascripts/integrations/edit/components/integration_form.vue index 707666f11d2..ba1aeb28616 100644 --- a/app/assets/javascripts/integrations/edit/components/integration_form.vue +++ b/app/assets/javascripts/integrations/edit/components/integration_form.vue @@ -2,8 +2,11 @@ import { GlButton, GlModalDirective, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui'; import { mapState, mapActions, mapGetters } from 'vuex'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; -import { TEST_INTEGRATION_EVENT, SAVE_INTEGRATION_EVENT } from '~/integrations/constants'; -import { integrationLevels } from '../constants'; +import { + TEST_INTEGRATION_EVENT, + SAVE_INTEGRATION_EVENT, + integrationLevels, +} from '~/integrations/constants'; import eventHub from '../event_hub'; import ActiveCheckbox from './active_checkbox.vue'; diff --git a/app/assets/javascripts/integrations/edit/components/override_dropdown.vue b/app/assets/javascripts/integrations/edit/components/override_dropdown.vue index 7b3a067b186..63650400bb7 100644 --- a/app/assets/javascripts/integrations/edit/components/override_dropdown.vue +++ b/app/assets/javascripts/integrations/edit/components/override_dropdown.vue @@ -2,7 +2,7 @@ import { GlDropdown, GlDropdownItem, GlLink } from '@gitlab/ui'; import { mapState } from 'vuex'; import { s__ } from '~/locale'; -import { defaultIntegrationLevel, overrideDropdownDescriptions } from '../constants'; +import { defaultIntegrationLevel, overrideDropdownDescriptions } from '~/integrations/constants'; const dropdownOptions = [ { diff --git a/app/assets/javascripts/integrations/edit/constants.js b/app/assets/javascripts/integrations/edit/constants.js deleted file mode 100644 index b74ae209eb7..00000000000 --- a/app/assets/javascripts/integrations/edit/constants.js +++ /dev/null @@ -1,17 +0,0 @@ -import { s__ } from '~/locale'; - -export const integrationLevels = { - GROUP: 'group', - INSTANCE: 'instance', -}; - -export const defaultIntegrationLevel = integrationLevels.INSTANCE; - -export const overrideDropdownDescriptions = { - [integrationLevels.GROUP]: s__( - 'Integrations|Default settings are inherited from the group level.', - ), - [integrationLevels.INSTANCE]: s__( - 'Integrations|Default settings are inherited from the instance level.', - ), -}; diff --git a/app/assets/javascripts/packages_and_registries/package_registry/components/list/package_list_row.vue b/app/assets/javascripts/packages_and_registries/package_registry/components/list/package_list_row.vue new file mode 100644 index 00000000000..195ff7af583 --- /dev/null +++ b/app/assets/javascripts/packages_and_registries/package_registry/components/list/package_list_row.vue @@ -0,0 +1,151 @@ + + + diff --git a/app/assets/javascripts/packages_and_registries/package_registry/components/list/publish_method.vue b/app/assets/javascripts/packages_and_registries/package_registry/components/list/publish_method.vue new file mode 100644 index 00000000000..8ecf433f3ab --- /dev/null +++ b/app/assets/javascripts/packages_and_registries/package_registry/components/list/publish_method.vue @@ -0,0 +1,61 @@ + + + diff --git a/app/assets/javascripts/packages_and_registries/package_registry/graphql/fragments/package_data.fragment.graphql b/app/assets/javascripts/packages_and_registries/package_registry/graphql/fragments/package_data.fragment.graphql index 101115c96ff..aaf0eb54aff 100644 --- a/app/assets/javascripts/packages_and_registries/package_registry/graphql/fragments/package_data.fragment.graphql +++ b/app/assets/javascripts/packages_and_registries/package_registry/graphql/fragments/package_data.fragment.graphql @@ -1,4 +1,27 @@ fragment PackageData on Package { id name + version + packageType + createdAt + status + tags { + nodes { + name + } + } + pipelines { + nodes { + sha + ref + commitPath + user { + name + } + } + } + project { + fullPath + webUrl + } } -- cgit v1.2.3