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
cb4b64bc
Commit
cb4b64bc
authored
Dec 08, 2021
by
Coung Ngo
Committed by
Brandon Labuschagne
Dec 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move issues code out of ~/pages
parent
e3af7906
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
15 deletions
+19
-15
app/assets/javascripts/issues/filtered_search_service_desk.js
...assets/javascripts/issues/filtered_search_service_desk.js
+0
-0
app/assets/javascripts/issues/form.js
app/assets/javascripts/issues/form.js
+0
-0
app/assets/javascripts/issues/init_filtered_search_service_desk.js
...s/javascripts/issues/init_filtered_search_service_desk.js
+11
-0
app/assets/javascripts/issues/show.js
app/assets/javascripts/issues/show.js
+0
-0
app/assets/javascripts/pages/projects/incidents/show/index.js
...assets/javascripts/pages/projects/incidents/show/index.js
+1
-1
app/assets/javascripts/pages/projects/issues/edit/index.js
app/assets/javascripts/pages/projects/issues/edit/index.js
+1
-1
app/assets/javascripts/pages/projects/issues/new/index.js
app/assets/javascripts/pages/projects/issues/new/index.js
+1
-1
app/assets/javascripts/pages/projects/issues/service_desk/index.js
...s/javascripts/pages/projects/issues/service_desk/index.js
+2
-9
app/assets/javascripts/pages/projects/issues/show/index.js
app/assets/javascripts/pages/projects/issues/show/index.js
+1
-1
ee/app/assets/javascripts/issues/form.js
ee/app/assets/javascripts/issues/form.js
+1
-1
ee/app/assets/javascripts/pages/projects/issues/show/index.js
...pp/assets/javascripts/pages/projects/issues/show/index.js
+1
-1
No files found.
app/assets/javascripts/
pages/projects/issues/service_desk/filtered_search
.js
→
app/assets/javascripts/
issues/filtered_search_service_desk
.js
View file @
cb4b64bc
File moved
app/assets/javascripts/
pages/projects/
issues/form.js
→
app/assets/javascripts/issues/form.js
View file @
cb4b64bc
File moved
app/assets/javascripts/issues/init_filtered_search_service_desk.js
0 → 100644
View file @
cb4b64bc
import
FilteredSearchServiceDesk
from
'
./filtered_search_service_desk
'
;
export
function
initFilteredSearchServiceDesk
()
{
if
(
document
.
querySelector
(
'
.filtered-search
'
))
{
const
supportBotData
=
JSON
.
parse
(
document
.
querySelector
(
'
.js-service-desk-issues
'
).
dataset
.
supportBot
,
);
const
filteredSearchManager
=
new
FilteredSearchServiceDesk
(
supportBotData
);
filteredSearchManager
.
setup
();
}
}
app/assets/javascripts/
pages/projects/
issues/show.js
→
app/assets/javascripts/issues/show.js
View file @
cb4b64bc
File moved
app/assets/javascripts/pages/projects/incidents/show/index.js
View file @
cb4b64bc
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initShow
from
'
../..
/issues/show
'
;
import
initShow
from
'
~
/issues/show
'
;
initShow
();
initShow
();
initSidebarBundle
();
initSidebarBundle
();
...
...
app/assets/javascripts/pages/projects/issues/edit/index.js
View file @
cb4b64bc
import
initForm
from
'
ee_else_ce/
pages/projects/
issues/form
'
;
import
initForm
from
'
ee_else_ce/issues/form
'
;
initForm
();
initForm
();
app/assets/javascripts/pages/projects/issues/new/index.js
View file @
cb4b64bc
import
initForm
from
'
ee_else_ce/
pages/projects/
issues/form
'
;
import
initForm
from
'
ee_else_ce/issues/form
'
;
initForm
();
initForm
();
app/assets/javascripts/pages/projects/issues/service_desk/index.js
View file @
cb4b64bc
import
{
mountIssuablesListApp
}
from
'
~/issues_list
'
;
import
{
mountIssuablesListApp
}
from
'
~/issues_list
'
;
import
FilteredSearchServiceDesk
from
'
./filtered_search
'
;
import
{
initFilteredSearchServiceDesk
}
from
'
~/issues/init_filtered_search_service_desk
'
;
const
supportBotData
=
JSON
.
parse
(
initFilteredSearchServiceDesk
();
document
.
querySelector
(
'
.js-service-desk-issues
'
).
dataset
.
supportBot
,
);
if
(
document
.
querySelector
(
'
.filtered-search
'
))
{
const
filteredSearchManager
=
new
FilteredSearchServiceDesk
(
supportBotData
);
filteredSearchManager
.
setup
();
}
if
(
gon
.
features
?.
vueIssuablesList
)
{
if
(
gon
.
features
?.
vueIssuablesList
)
{
mountIssuablesListApp
();
mountIssuablesListApp
();
...
...
app/assets/javascripts/pages/projects/issues/show/index.js
View file @
cb4b64bc
import
{
store
}
from
'
~/notes/stores
'
;
import
{
store
}
from
'
~/notes/stores
'
;
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initShow
from
'
..
/show
'
;
import
initShow
from
'
~/issues
/show
'
;
initShow
();
initShow
();
initSidebarBundle
(
store
);
initSidebarBundle
(
store
);
...
...
ee/app/assets/javascripts/
pages/projects/
issues/form.js
→
ee/app/assets/javascripts/issues/form.js
View file @
cb4b64bc
import
initEpicsSelect
from
'
ee/vue_shared/components/sidebar/epics_select/epics_select_bundle
'
;
import
initEpicsSelect
from
'
ee/vue_shared/components/sidebar/epics_select/epics_select_bundle
'
;
import
initForm
from
'
~/
pages/projects/
issues/form
'
;
import
initForm
from
'
~/issues/form
'
;
export
default
()
=>
{
export
default
()
=>
{
initEpicsSelect
();
initEpicsSelect
();
...
...
ee/app/assets/javascripts/pages/projects/issues/show/index.js
View file @
cb4b64bc
import
initRelatedFeatureFlags
from
'
ee/related_feature_flags
'
;
import
initRelatedFeatureFlags
from
'
ee/related_feature_flags
'
;
import
{
store
}
from
'
~/notes/stores
'
;
import
{
store
}
from
'
~/notes/stores
'
;
import
initShow
from
'
~/
pages/projects/
issues/show
'
;
import
initShow
from
'
~/issues/show
'
;
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initRelatedIssues
from
'
~/related_issues
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
UserCallout
from
'
~/user_callout
'
;
import
UserCallout
from
'
~/user_callout
'
;
...
...
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