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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
62928a3f
Commit
62928a3f
authored
Jan 10, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher search path
parent
82007530
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+3
-2
app/assets/javascripts/pages/search/show/index.js
app/assets/javascripts/pages/search/show/index.js
+3
-0
app/assets/javascripts/pages/search/show/search.js
app/assets/javascripts/pages/search/show/search.js
+2
-2
No files found.
app/assets/javascripts/dispatcher.js
View file @
62928a3f
...
...
@@ -14,7 +14,6 @@ import GroupLabelSubscription from './group_label_subscription';
import
LineHighlighter
from
'
./line_highlighter
'
;
import
BuildArtifacts
from
'
./build_artifacts
'
;
import
groupsSelect
from
'
./groups_select
'
;
import
Search
from
'
./search
'
;
import
initAdmin
from
'
./admin
'
;
import
NamespaceSelect
from
'
./namespace_select
'
;
import
NewCommitForm
from
'
./new_commit_form
'
;
...
...
@@ -528,7 +527,9 @@ import Activities from './activities';
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
break
;
case
'
search:show
'
:
new
Search
();
import
(
'
./pages/search/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:settings:repository:show
'
:
// Initialize expandable settings panels
...
...
app/assets/javascripts/pages/search/show/index.js
0 → 100644
View file @
62928a3f
import
Search
from
'
./search
'
;
export
default
()
=>
new
Search
();
app/assets/javascripts/search.js
→
app/assets/javascripts/
pages/search/show/
search.js
View file @
62928a3f
import
Flash
from
'
.
/flash
'
;
import
Api
from
'
.
/api
'
;
import
Flash
from
'
~
/flash
'
;
import
Api
from
'
~
/api
'
;
export
default
class
Search
{
constructor
()
{
...
...
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