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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6b2173e5
Commit
6b2173e5
authored
Dec 13, 2021
by
Coung Ngo
Committed by
Phil Hughes
Dec 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract issues constants to ~/issues/constants
parent
43a6b985
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
62 additions
and
65 deletions
+62
-65
app/assets/javascripts/issues/constants.js
app/assets/javascripts/issues/constants.js
+25
-0
app/assets/javascripts/issues/show/components/app.vue
app/assets/javascripts/issues/show/components/app.vue
+2
-9
app/assets/javascripts/issues/show/components/form.vue
app/assets/javascripts/issues/show/components/form.vue
+1
-1
app/assets/javascripts/issues/show/components/header_actions.vue
...ets/javascripts/issues/show/components/header_actions.vue
+2
-1
app/assets/javascripts/issues/show/constants.js
app/assets/javascripts/issues/show/constants.js
+0
-24
app/assets/javascripts/notes/components/sidebar_subscription.vue
...ets/javascripts/notes/components/sidebar_subscription.vue
+1
-1
app/assets/javascripts/sidebar/components/assignees/assignees_realtime.vue
...ripts/sidebar/components/assignees/assignees_realtime.vue
+1
-1
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees_widget.vue
...sidebar/components/assignees/sidebar_assignees_widget.vue
+1
-1
app/assets/javascripts/sidebar/components/assignees/uncollapsed_assignee_list.vue
...idebar/components/assignees/uncollapsed_assignee_list.vue
+1
-1
app/assets/javascripts/sidebar/components/confidential/sidebar_confidentiality_form.vue
.../components/confidential/sidebar_confidentiality_form.vue
+1
-1
app/assets/javascripts/sidebar/components/date/sidebar_date_widget.vue
...vascripts/sidebar/components/date/sidebar_date_widget.vue
+1
-1
app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
...avascripts/sidebar/components/sidebar_dropdown_widget.vue
+1
-1
app/assets/javascripts/sidebar/components/subscriptions/sidebar_subscriptions_widget.vue
...components/subscriptions/sidebar_subscriptions_widget.vue
+1
-1
app/assets/javascripts/sidebar/components/time_tracking/time_tracker.vue
...scripts/sidebar/components/time_tracking/time_tracker.vue
+1
-1
app/assets/javascripts/sidebar/constants.js
app/assets/javascripts/sidebar/constants.js
+1
-1
app/assets/javascripts/sidebar/mount_milestone_sidebar.js
app/assets/javascripts/sidebar/mount_milestone_sidebar.js
+1
-1
app/assets/javascripts/sidebar/mount_sidebar.js
app/assets/javascripts/sidebar/mount_sidebar.js
+1
-1
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue
...nents/sidebar/labels_select_widget/labels_select_root.vue
+1
-1
ee/app/assets/javascripts/epic/components/epic_sidebar.vue
ee/app/assets/javascripts/epic/components/epic_sidebar.vue
+1
-1
ee/app/assets/javascripts/integrations/jira/issues_show/components/jira_issues_show_root.vue
...ons/jira/issues_show/components/jira_issues_show_root.vue
+1
-1
ee/app/assets/javascripts/integrations/zentao/issues_show/components/zentao_issues_show_root.vue
...zentao/issues_show/components/zentao_issues_show_root.vue
+1
-1
ee/app/assets/javascripts/sidebar/components/iteration_sidebar_dropdown_widget.vue
.../sidebar/components/iteration_sidebar_dropdown_widget.vue
+1
-1
ee/app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
...avascripts/sidebar/components/sidebar_dropdown_widget.vue
+1
-1
ee/app/assets/javascripts/sidebar/constants.js
ee/app/assets/javascripts/sidebar/constants.js
+1
-1
ee/app/assets/javascripts/sidebar/mount_sidebar.js
ee/app/assets/javascripts/sidebar/mount_sidebar.js
+1
-1
ee/spec/frontend/integrations/jira/issues_show/components/jira_issues_show_root_spec.js
...jira/issues_show/components/jira_issues_show_root_spec.js
+1
-1
ee/spec/frontend/integrations/zentao/issues_show/components/zentao_issues_show_root_spec.js
...ao/issues_show/components/zentao_issues_show_root_spec.js
+1
-1
ee/spec/frontend/sidebar/components/iteration_sidebar_dropdown_widget_spec.js
...ebar/components/iteration_sidebar_dropdown_widget_spec.js
+1
-1
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
...ontend/sidebar/components/sidebar_dropdown_widget_spec.js
+1
-1
spec/frontend/issues/show/components/app_spec.js
spec/frontend/issues/show/components/app_spec.js
+2
-1
spec/frontend/issues/show/components/header_actions_spec.js
spec/frontend/issues/show/components/header_actions_spec.js
+2
-1
spec/frontend/sidebar/components/assignees/sidebar_assignees_widget_spec.js
...bar/components/assignees/sidebar_assignees_widget_spec.js
+1
-1
spec/frontend/sidebar/components/reference/sidebar_reference_widget_spec.js
...bar/components/reference/sidebar_reference_widget_spec.js
+1
-1
spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
...ontend/sidebar/components/sidebar_dropdown_widget_spec.js
+1
-1
spec/frontend/vue_shared/components/sidebar/labels_select_widget/labels_select_root_spec.js
...s/sidebar/labels_select_widget/labels_select_root_spec.js
+1
-1
No files found.
app/assets/javascripts/issues/constants.js
0 → 100644
View file @
6b2173e5
import
{
__
}
from
'
~/locale
'
;
export
const
IssuableStatus
=
{
Closed
:
'
closed
'
,
Open
:
'
opened
'
,
Reopened
:
'
reopened
'
,
};
export
const
IssuableStatusText
=
{
[
IssuableStatus
.
Closed
]:
__
(
'
Closed
'
),
[
IssuableStatus
.
Open
]:
__
(
'
Open
'
),
[
IssuableStatus
.
Reopened
]:
__
(
'
Open
'
),
};
export
const
IssuableType
=
{
Issue
:
'
issue
'
,
Epic
:
'
epic
'
,
MergeRequest
:
'
merge_request
'
,
Alert
:
'
alert
'
,
};
export
const
WorkspaceType
=
{
project
:
'
project
'
,
group
:
'
group
'
,
};
app/assets/javascripts/issues/show/components/app.vue
View file @
6b2173e5
...
...
@@ -2,18 +2,11 @@
import
{
GlIcon
,
GlIntersectionObserver
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
Visibility
from
'
visibilityjs
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableStatus
,
IssuableStatusText
,
IssuableType
}
from
'
~/issues/constants
'
;
import
Poll
from
'
~/lib/utils/poll
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
{
IssuableStatus
,
IssuableStatusText
,
IssuableType
,
IssueTypePath
,
IncidentTypePath
,
IncidentType
,
POLLING_DELAY
,
}
from
'
../constants
'
;
import
{
IssueTypePath
,
IncidentTypePath
,
IncidentType
,
POLLING_DELAY
}
from
'
../constants
'
;
import
eventHub
from
'
../event_hub
'
;
import
getIssueStateQuery
from
'
../queries/get_issue_state.query.graphql
'
;
import
Service
from
'
../services/index
'
;
...
...
app/assets/javascripts/issues/show/components/form.vue
View file @
6b2173e5
...
...
@@ -2,7 +2,7 @@
import
{
GlAlert
}
from
'
@gitlab/ui
'
;
import
$
from
'
jquery
'
;
import
Autosave
from
'
~/autosave
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
eventHub
from
'
../event_hub
'
;
import
EditActions
from
'
./edit_actions.vue
'
;
import
DescriptionField
from
'
./fields/description.vue
'
;
...
...
app/assets/javascripts/issues/show/components/header_actions.vue
View file @
6b2173e5
...
...
@@ -4,7 +4,8 @@ import { mapActions, mapGetters, mapState } from 'vuex';
import
createFlash
,
{
FLASH_TYPES
}
from
'
~/flash
'
;
import
{
EVENT_ISSUABLE_VUE_APP_CHANGE
}
from
'
~/issuable/constants
'
;
import
{
IssuableType
}
from
'
~/vue_shared/issuable/show/constants
'
;
import
{
IssuableStatus
,
IssueStateEvent
}
from
'
~/issues/show/constants
'
;
import
{
IssuableStatus
}
from
'
~/issues/constants
'
;
import
{
IssueStateEvent
}
from
'
~/issues/show/constants
'
;
import
{
capitalizeFirstCharacter
}
from
'
~/lib/utils/text_utility
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
import
{
s__
,
__
,
sprintf
}
from
'
~/locale
'
;
...
...
app/assets/javascripts/issues/show/constants.js
View file @
6b2173e5
import
{
__
}
from
'
~/locale
'
;
export
const
IssuableStatus
=
{
Closed
:
'
closed
'
,
Open
:
'
opened
'
,
Reopened
:
'
reopened
'
,
};
export
const
IssuableStatusText
=
{
[
IssuableStatus
.
Closed
]:
__
(
'
Closed
'
),
[
IssuableStatus
.
Open
]:
__
(
'
Open
'
),
[
IssuableStatus
.
Reopened
]:
__
(
'
Open
'
),
};
export
const
IssuableType
=
{
Issue
:
'
issue
'
,
Epic
:
'
epic
'
,
MergeRequest
:
'
merge_request
'
,
Alert
:
'
alert
'
,
};
export
const
IssueStateEvent
=
{
Close
:
'
CLOSE
'
,
Reopen
:
'
REOPEN
'
,
...
...
@@ -39,8 +20,3 @@ export const IncidentType = 'incident';
export
const
issueState
=
{
issueType
:
undefined
,
isDirty
:
false
};
export
const
POLLING_DELAY
=
2000
;
export
const
WorkspaceType
=
{
project
:
'
project
'
,
group
:
'
group
'
,
};
app/assets/javascripts/notes/components/sidebar_subscription.vue
View file @
6b2173e5
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
fetchPolicies
}
from
'
~/lib/graphql
'
;
import
{
confidentialityQueries
}
from
'
~/sidebar/constants
'
;
import
{
defaultClient
as
gqlClient
}
from
'
~/sidebar/graphql
'
;
...
...
app/assets/javascripts/sidebar/components/assignees/assignees_realtime.vue
View file @
6b2173e5
<
script
>
import
produce
from
'
immer
'
;
import
{
convertToGraphQLId
,
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
assigneesQueries
}
from
'
~/sidebar/constants
'
;
export
default
{
...
...
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees_widget.vue
View file @
6b2173e5
...
...
@@ -3,7 +3,7 @@ import { GlDropdownItem } from '@gitlab/ui';
import
{
cloneDeep
}
from
'
lodash
'
;
import
Vue
from
'
vue
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
__
,
n__
}
from
'
~/locale
'
;
import
SidebarAssigneesRealtime
from
'
~/sidebar/components/assignees/assignees_realtime.vue
'
;
import
IssuableAssignees
from
'
~/sidebar/components/assignees/issuable_assignees.vue
'
;
...
...
app/assets/javascripts/sidebar/components/assignees/uncollapsed_assignee_list.vue
View file @
6b2173e5
<
script
>
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
AttentionRequestedToggle
from
'
../attention_requested_toggle.vue
'
;
import
AssigneeAvatarLink
from
'
./assignee_avatar_link.vue
'
;
...
...
app/assets/javascripts/sidebar/components/confidential/sidebar_confidentiality_form.vue
View file @
6b2173e5
<
script
>
import
{
GlSprintf
,
GlButton
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
{
confidentialityQueries
}
from
'
~/sidebar/constants
'
;
...
...
app/assets/javascripts/sidebar/components/date/sidebar_date_widget.vue
View file @
6b2173e5
<
script
>
import
{
GlIcon
,
GlDatepicker
,
GlTooltipDirective
,
GlLink
,
GlPopover
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
dateInWords
,
formatDate
,
parsePikadayDate
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
...
...
app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
View file @
6b2173e5
...
...
@@ -12,7 +12,7 @@ import {
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
{
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
timeFor
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
__
}
from
'
~/locale
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
...
...
app/assets/javascripts/sidebar/components/subscriptions/sidebar_subscriptions_widget.vue
View file @
6b2173e5
<
script
>
import
{
GlIcon
,
GlLoadingIcon
,
GlToggle
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
isLoggedIn
}
from
'
~/lib/utils/common_utils
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
...
...
app/assets/javascripts/sidebar/components/time_tracking/time_tracker.vue
View file @
6b2173e5
<
script
>
import
{
GlIcon
,
GlLink
,
GlModal
,
GlModalDirective
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
s__
,
__
}
from
'
~/locale
'
;
import
{
timeTrackingQueries
}
from
'
~/sidebar/constants
'
;
...
...
app/assets/javascripts/sidebar/constants.js
View file @
6b2173e5
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
updateIssueLabelsMutation
from
'
~/boards/graphql/issue_set_labels.mutation.graphql
'
;
import
{
IssuableType
,
WorkspaceType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
,
WorkspaceType
}
from
'
~/issues/constants
'
;
import
{
DEFAULT_DEBOUNCE_AND_THROTTLE_MS
}
from
'
~/lib/utils/constants
'
;
import
epicConfidentialQuery
from
'
~/sidebar/queries/epic_confidential.query.graphql
'
;
import
epicDueDateQuery
from
'
~/sidebar/queries/epic_due_date.query.graphql
'
;
...
...
app/assets/javascripts/sidebar/mount_milestone_sidebar.js
View file @
6b2173e5
import
Vue
from
'
vue
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
timeTracker
from
'
./components/time_tracking/time_tracker.vue
'
;
...
...
app/assets/javascripts/sidebar/mount_sidebar.js
View file @
6b2173e5
...
...
@@ -5,7 +5,7 @@ import { TYPE_ISSUE, TYPE_MERGE_REQUEST } from '~/graphql_shared/constants';
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
initInviteMembersModal
from
'
~/invite_members/init_invite_members_modal
'
;
import
initInviteMembersTrigger
from
'
~/invite_members/init_invite_members_trigger
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
isInIssuePage
,
isInDesignPage
,
...
...
app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue
View file @
6b2173e5
...
...
@@ -2,7 +2,7 @@
import
{
debounce
}
from
'
lodash
'
;
import
{
MutationOperationMode
,
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
__
}
from
'
~/locale
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
import
{
issuableLabelsQueries
}
from
'
~/sidebar/constants
'
;
...
...
ee/app/assets/javascripts/epic/components/epic_sidebar.vue
View file @
6b2173e5
...
...
@@ -5,7 +5,7 @@ import SidebarAncestorsWidget from 'ee_component/sidebar/components/ancestors_tr
import
{
TYPE_EPIC
}
from
'
~/graphql_shared/constants
'
;
import
{
convertToGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
notesEventHub
from
'
~/notes/event_hub
'
;
import
SidebarConfidentialityWidget
from
'
~/sidebar/components/confidential/sidebar_confidentiality_widget.vue
'
;
import
SidebarDateWidget
from
'
~/sidebar/components/date/sidebar_date_widget.vue
'
;
...
...
ee/app/assets/javascripts/integrations/jira/issues_show/components/jira_issues_show_root.vue
View file @
6b2173e5
...
...
@@ -6,7 +6,7 @@ import ExternalIssueAlert from 'ee/external_issues_show/components/external_issu
import
{
fetchIssue
}
from
'
ee/integrations/jira/issues_show/api
'
;
import
JiraIssueSidebar
from
'
ee/integrations/jira/issues_show/components/sidebar/jira_issues_sidebar_root.vue
'
;
import
{
IssuableStatus
,
IssuableStatusText
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableStatus
,
IssuableStatusText
}
from
'
~/issues/constants
'
;
import
IssuableShow
from
'
~/vue_shared/issuable/show/components/issuable_show_root.vue
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
{
s__
}
from
'
~/locale
'
;
...
...
ee/app/assets/javascripts/integrations/zentao/issues_show/components/zentao_issues_show_root.vue
View file @
6b2173e5
...
...
@@ -5,7 +5,7 @@ import Note from 'ee/external_issues_show/components/note.vue';
import
ExternalIssueAlert
from
'
ee/external_issues_show/components/external_issue_alert.vue
'
;
import
{
fetchIssue
}
from
'
ee/integrations/zentao/issues_show/api
'
;
import
ZentaoIssueSidebar
from
'
ee/integrations/zentao/issues_show/components/sidebar/zentao_issues_sidebar_root.vue
'
;
import
{
IssuableStatus
,
IssuableStatusText
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableStatus
,
IssuableStatusText
}
from
'
~/issues/constants
'
;
import
IssuableShow
from
'
~/vue_shared/issuable/show/components/issuable_show_root.vue
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
...
...
ee/app/assets/javascripts/sidebar/components/iteration_sidebar_dropdown_widget.vue
View file @
6b2173e5
...
...
@@ -9,7 +9,7 @@ import {
import
SidebarDropdownWidget
from
'
ee/sidebar/components/sidebar_dropdown_widget.vue
'
;
import
IterationPeriod
from
'
ee/iterations/components/iteration_period.vue
'
;
import
{
getIterationPeriod
,
groupByIterationCadences
}
from
'
ee/iterations/utils
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
IssuableAttributeType
}
from
'
../constants
'
;
export
default
{
...
...
ee/app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
View file @
6b2173e5
<
script
>
import
{
__
}
from
'
~/locale
'
;
import
SidebarDropdownWidget
from
'
~/sidebar/components/sidebar_dropdown_widget.vue
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
IssuableAttributeType
,
IssuableAttributeState
,
...
...
ee/app/assets/javascripts/sidebar/constants.js
View file @
6b2173e5
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
__
,
s__
,
sprintf
}
from
'
~/locale
'
;
import
{
IssuableAttributeType
as
IssuableAttributeTypeFoss
,
...
...
ee/app/assets/javascripts/sidebar/mount_sidebar.js
View file @
6b2173e5
import
Vue
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
apolloProvider
}
from
'
~/sidebar/graphql
'
;
import
*
as
CEMountSidebar
from
'
~/sidebar/mount_sidebar
'
;
...
...
ee/spec/frontend/integrations/jira/issues_show/components/jira_issues_show_root_spec.js
View file @
6b2173e5
...
...
@@ -4,7 +4,7 @@ import MockAdapter from 'axios-mock-adapter';
import
JiraIssuesShow
from
'
ee/integrations/jira/issues_show/components/jira_issues_show_root.vue
'
;
import
JiraIssueSidebar
from
'
ee/integrations/jira/issues_show/components/sidebar/jira_issues_sidebar_root.vue
'
;
import
{
IssuableStatus
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableStatus
}
from
'
~/issues/constants
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
IssuableHeader
from
'
~/vue_shared/issuable/show/components/issuable_header.vue
'
;
import
IssuableShow
from
'
~/vue_shared/issuable/show/components/issuable_show_root.vue
'
;
...
...
ee/spec/frontend/integrations/zentao/issues_show/components/zentao_issues_show_root_spec.js
View file @
6b2173e5
import
{
GlAlert
,
GlLoadingIcon
,
GlBadge
}
from
'
@gitlab/ui
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
{
IssuableStatus
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableStatus
}
from
'
~/issues/constants
'
;
import
ZentaoIssuesShow
from
'
ee/integrations/zentao/issues_show/components/zentao_issues_show_root.vue
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
...
...
ee/spec/frontend/sidebar/components/iteration_sidebar_dropdown_widget_spec.js
View file @
6b2173e5
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
IterationSidebarDropdownWidget
from
'
ee/sidebar/components/iteration_sidebar_dropdown_widget.vue
'
;
import
SidebarDropdownWidget
from
'
ee/sidebar/components/sidebar_dropdown_widget.vue
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
describe
(
'
IterationSidebarDropdownWidget
'
,
()
=>
{
let
wrapper
;
...
...
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
View file @
6b2173e5
...
...
@@ -18,7 +18,7 @@ import createMockApollo from 'helpers/mock_apollo_helper';
import
{
extendedWrapper
}
from
'
helpers/vue_test_utils_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
import
{
...
...
spec/frontend/issues/show/components/app_spec.js
View file @
6b2173e5
...
...
@@ -4,11 +4,12 @@ import { nextTick } from 'vue';
import
{
createMockDirective
,
getBinding
}
from
'
helpers/vue_mock_directive
'
;
import
{
mountExtended
}
from
'
helpers/vue_test_utils_helper
'
;
import
'
~/behaviors/markdown/render_gfm
'
;
import
{
IssuableStatus
,
IssuableStatusText
}
from
'
~/issues/constants
'
;
import
IssuableApp
from
'
~/issues/show/components/app.vue
'
;
import
DescriptionComponent
from
'
~/issues/show/components/description.vue
'
;
import
IncidentTabs
from
'
~/issues/show/components/incidents/incident_tabs.vue
'
;
import
PinnedLinks
from
'
~/issues/show/components/pinned_links.vue
'
;
import
{
IssuableStatus
,
IssuableStatusText
,
POLLING_DELAY
}
from
'
~/issues/show/constants
'
;
import
{
POLLING_DELAY
}
from
'
~/issues/show/constants
'
;
import
eventHub
from
'
~/issues/show/event_hub
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
...
...
spec/frontend/issues/show/components/header_actions_spec.js
View file @
6b2173e5
...
...
@@ -4,7 +4,8 @@ import Vuex from 'vuex';
import
createFlash
,
{
FLASH_TYPES
}
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/vue_shared/issuable/show/constants
'
;
import
HeaderActions
from
'
~/issues/show/components/header_actions.vue
'
;
import
{
IssuableStatus
,
IssueStateEvent
}
from
'
~/issues/show/constants
'
;
import
{
IssuableStatus
}
from
'
~/issues/constants
'
;
import
{
IssueStateEvent
}
from
'
~/issues/show/constants
'
;
import
promoteToEpicMutation
from
'
~/issues/show/queries/promote_to_epic.mutation.graphql
'
;
import
*
as
urlUtility
from
'
~/lib/utils/url_utility
'
;
import
eventHub
from
'
~/notes/event_hub
'
;
...
...
spec/frontend/sidebar/components/assignees/sidebar_assignees_widget_spec.js
View file @
6b2173e5
...
...
@@ -5,7 +5,7 @@ import VueApollo from 'vue-apollo';
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
SidebarAssigneesRealtime
from
'
~/sidebar/components/assignees/assignees_realtime.vue
'
;
import
IssuableAssignees
from
'
~/sidebar/components/assignees/issuable_assignees.vue
'
;
import
SidebarAssigneesWidget
from
'
~/sidebar/components/assignees/sidebar_assignees_widget.vue
'
;
...
...
spec/frontend/sidebar/components/reference/sidebar_reference_widget_spec.js
View file @
6b2173e5
...
...
@@ -3,7 +3,7 @@ import Vue from 'vue';
import
VueApollo
from
'
vue-apollo
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
SidebarReferenceWidget
from
'
~/sidebar/components/reference/sidebar_reference_widget.vue
'
;
import
issueReferenceQuery
from
'
~/sidebar/queries/issue_reference.query.graphql
'
;
import
mergeRequestReferenceQuery
from
'
~/sidebar/queries/merge_request_reference.query.graphql
'
;
...
...
spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
View file @
6b2173e5
...
...
@@ -17,7 +17,7 @@ import { extendedWrapper } from 'helpers/vue_test_utils_helper';
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
createFlash
from
'
~/flash
'
;
import
{
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
{
timeFor
}
from
'
~/lib/utils/datetime_utility
'
;
import
SidebarDropdownWidget
from
'
~/sidebar/components/sidebar_dropdown_widget.vue
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
...
...
spec/frontend/vue_shared/components/sidebar/labels_select_widget/labels_select_root_spec.js
View file @
6b2173e5
...
...
@@ -4,7 +4,7 @@ import VueApollo from 'vue-apollo';
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
import
createFlash
from
'
~/flash
'
;
import
{
IssuableType
}
from
'
~/issues/
show/
constants
'
;
import
{
IssuableType
}
from
'
~/issues/constants
'
;
import
SidebarEditableItem
from
'
~/sidebar/components/sidebar_editable_item.vue
'
;
import
DropdownContents
from
'
~/vue_shared/components/sidebar/labels_select_widget/dropdown_contents.vue
'
;
import
DropdownValue
from
'
~/vue_shared/components/sidebar/labels_select_widget/dropdown_value.vue
'
;
...
...
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