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
9e95f5c1
Commit
9e95f5c1
authored
Dec 07, 2021
by
Coung Ngo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move JS constants out of pages directory
The constants are moved to more appropriate directories
parent
c60c6ed3
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
20 deletions
+22
-20
app/assets/javascripts/filtered_search/constants.js
app/assets/javascripts/filtered_search/constants.js
+7
-0
app/assets/javascripts/issuable/constants.js
app/assets/javascripts/issuable/constants.js
+5
-0
app/assets/javascripts/pages/constants.js
app/assets/javascripts/pages/constants.js
+0
-6
app/assets/javascripts/pages/dashboard/issues/index.js
app/assets/javascripts/pages/dashboard/issues/index.js
+1
-1
app/assets/javascripts/pages/dashboard/merge_requests/index.js
...ssets/javascripts/pages/dashboard/merge_requests/index.js
+1
-1
app/assets/javascripts/pages/groups/issues/index.js
app/assets/javascripts/pages/groups/issues/index.js
+1
-1
app/assets/javascripts/pages/groups/merge_requests/index.js
app/assets/javascripts/pages/groups/merge_requests/index.js
+1
-1
app/assets/javascripts/pages/groups/settings/ci_cd/show/index.js
...ets/javascripts/pages/groups/settings/ci_cd/show/index.js
+1
-1
app/assets/javascripts/pages/projects/constants.js
app/assets/javascripts/pages/projects/constants.js
+0
-4
app/assets/javascripts/pages/projects/issues/index/index.js
app/assets/javascripts/pages/projects/issues/index/index.js
+2
-2
app/assets/javascripts/pages/projects/merge_requests/index/index.js
.../javascripts/pages/projects/merge_requests/index/index.js
+2
-2
ee/spec/frontend/filtered_search/filtered_search_manager_spec.js
.../frontend/filtered_search/filtered_search_manager_spec.js
+1
-1
No files found.
app/assets/javascripts/filtered_search/constants.js
View file @
9e95f5c1
...
...
@@ -11,3 +11,10 @@ export const FILTER_TYPE = {
};
export
const
MAX_HISTORY_SIZE
=
5
;
export
const
FILTERED_SEARCH
=
{
MERGE_REQUESTS
:
'
merge_requests
'
,
ISSUES
:
'
issues
'
,
ADMIN_RUNNERS
:
'
admin/runners
'
,
GROUP_RUNNERS_ANCHOR
:
'
runners-settings
'
,
};
app/assets/javascripts/issuable/constants.js
View file @
9e95f5c1
...
...
@@ -4,3 +4,8 @@ export const ISSUABLE_TYPE = {
issues
:
'
issues
'
,
mergeRequests
:
'
merge-requests
'
,
};
export
const
ISSUABLE_INDEX
=
{
ISSUE
:
'
issue_
'
,
MERGE_REQUEST
:
'
merge_request_
'
,
};
app/assets/javascripts/pages/constants.js
deleted
100644 → 0
View file @
c60c6ed3
export
const
FILTERED_SEARCH
=
{
MERGE_REQUESTS
:
'
merge_requests
'
,
ISSUES
:
'
issues
'
,
ADMIN_RUNNERS
:
'
admin/runners
'
,
GROUP_RUNNERS_ANCHOR
:
'
runners-settings
'
,
};
app/assets/javascripts/pages/dashboard/issues/index.js
View file @
9e95f5c1
import
IssuableFilteredSearchTokenKeys
from
'
~/filtered_search/issuable_filtered_search_token_keys
'
;
import
initManualOrdering
from
'
~/manual_ordering
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
projectSelect
from
'
~/project_select
'
;
...
...
app/assets/javascripts/pages/dashboard/merge_requests/index.js
View file @
9e95f5c1
import
addExtraTokensForMergeRequests
from
'
ee_else_ce/filtered_search/add_extra_tokens_for_merge_requests
'
;
import
IssuableFilteredSearchTokenKeys
from
'
~/filtered_search/issuable_filtered_search_token_keys
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
projectSelect
from
'
~/project_select
'
;
...
...
app/assets/javascripts/pages/groups/issues/index.js
View file @
9e95f5c1
...
...
@@ -2,7 +2,7 @@ import IssuableFilteredSearchTokenKeys from 'ee_else_ce/filtered_search/issuable
import
issuableInitBulkUpdateSidebar
from
'
~/issuable/bulk_update_sidebar/issuable_init_bulk_update_sidebar
'
;
import
{
mountIssuablesListApp
,
mountIssuesListApp
}
from
'
~/issues_list
'
;
import
initManualOrdering
from
'
~/manual_ordering
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
projectSelect
from
'
~/project_select
'
;
...
...
app/assets/javascripts/pages/groups/merge_requests/index.js
View file @
9e95f5c1
import
addExtraTokensForMergeRequests
from
'
ee_else_ce/filtered_search/add_extra_tokens_for_merge_requests
'
;
import
IssuableFilteredSearchTokenKeys
from
'
~/filtered_search/issuable_filtered_search_token_keys
'
;
import
issuableInitBulkUpdateSidebar
from
'
~/issuable/bulk_update_sidebar/issuable_init_bulk_update_sidebar
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
projectSelect
from
'
~/project_select
'
;
...
...
app/assets/javascripts/pages/groups/settings/ci_cd/show/index.js
View file @
9e95f5c1
import
initVariableList
from
'
~/ci_variable_list
'
;
import
GroupRunnersFilteredSearchTokenKeys
from
'
~/filtered_search/group_runners_filtered_search_token_keys
'
;
import
initSharedRunnersForm
from
'
~/group_settings/mount_shared_runners
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
{
initRunnerAwsDeployments
}
from
'
~/pages/shared/mount_runner_aws_deployments
'
;
import
{
initInstallRunner
}
from
'
~/pages/shared/mount_runner_instructions
'
;
...
...
app/assets/javascripts/pages/projects/constants.js
deleted
100644 → 0
View file @
c60c6ed3
export
const
ISSUABLE_INDEX
=
{
MERGE_REQUEST
:
'
merge_request_
'
,
ISSUE
:
'
issue_
'
,
};
app/assets/javascripts/pages/projects/issues/index/index.js
View file @
9e95f5c1
...
...
@@ -5,8 +5,8 @@ import initIssuableByEmail from '~/issuable/init_issuable_by_email';
import
IssuableIndex
from
'
~/issuable/issuable_index
'
;
import
{
mountIssuablesListApp
,
mountIssuesListApp
,
mountJiraIssuesListApp
}
from
'
~/issues_list
'
;
import
initManualOrdering
from
'
~/manual_ordering
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
ISSUABLE_INDEX
}
from
'
~/
pages/projects
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
{
ISSUABLE_INDEX
}
from
'
~/
issuable
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
UsersSelect
from
'
~/users_select
'
;
...
...
app/assets/javascripts/pages/projects/merge_requests/index/index.js
View file @
9e95f5c1
...
...
@@ -4,8 +4,8 @@ import IssuableFilteredSearchTokenKeys from '~/filtered_search/issuable_filtered
import
initCsvImportExportButtons
from
'
~/issuable/init_csv_import_export_buttons
'
;
import
initIssuableByEmail
from
'
~/issuable/init_issuable_by_email
'
;
import
IssuableIndex
from
'
~/issuable/issuable_index
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
ISSUABLE_INDEX
}
from
'
~/
pages/projects
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
import
{
ISSUABLE_INDEX
}
from
'
~/
issuable
/constants
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
UsersSelect
from
'
~/users_select
'
;
...
...
ee/spec/frontend/filtered_search/filtered_search_manager_spec.js
View file @
9e95f5c1
...
...
@@ -2,7 +2,7 @@ import FilteredSearchManager from 'ee/filtered_search/filtered_search_manager';
import
IssuableFilteredSearchTokenKeys
from
'
ee/filtered_search/issuable_filtered_search_token_keys
'
;
import
FilteredSearchSpecHelper
from
'
helpers/filtered_search_spec_helper
'
;
import
FilteredSearchDropdownManager
from
'
~/filtered_search/filtered_search_dropdown_manager
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
pages
/constants
'
;
import
{
FILTERED_SEARCH
}
from
'
~/
filtered_search
/constants
'
;
const
TEST_EPICS_ENDPOINT
=
'
/test/epics/endpoint
'
;
...
...
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