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
d0c4ee4a
Commit
d0c4ee4a
authored
May 25, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve JS conflicts
parent
5bffed65
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
112 deletions
+18
-112
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+18
-88
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+0
-3
app/assets/javascripts/boards/components/modal/index.js
app/assets/javascripts/boards/components/modal/index.js
+0
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-3
app/assets/javascripts/filtered_search/dropdown_hint.js
app/assets/javascripts/filtered_search/dropdown_hint.js
+0
-4
app/assets/javascripts/filtered_search/filtered_search_bundle.js
...ets/javascripts/filtered_search/filtered_search_bundle.js
+0
-3
app/assets/javascripts/filtered_search/filtered_search_manager.js
...ts/javascripts/filtered_search/filtered_search_manager.js
+0
-4
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-3
No files found.
app/assets/javascripts/api.js
View file @
d0c4ee4a
<<<<<<<
HEAD
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback, quote-props, no-param-reassign, max-len */
var
Api
=
{
=======
import
$
from
'
jquery
'
;
const
Api
=
{
>>>>>>>
ce
/
master
groupsPath
:
'
/api/:version/groups.json
'
,
groupPath
:
'
/api/:version/groups/:id.json
'
,
namespacesPath
:
'
/api/:version/namespaces.json
'
,
...
...
@@ -16,20 +10,20 @@ const Api = {
licensePath
:
'
/api/:version/templates/licenses/:key
'
,
gitignorePath
:
'
/api/:version/templates/gitignores/:key
'
,
gitlabCiYmlPath
:
'
/api/:version/templates/gitlab_ci_ymls/:key
'
,
<<<<<<<
HEAD
ldapGroupsPath
:
'
/api/:version/ldap/:provider/groups.json
'
,
dockerfilePath
:
'
/api/:version/templates/dockerfiles/:key
'
,
issuableTemplatePath
:
'
/:namespace_path/:project_path/templates/:type/:key
'
,
group
:
function
(
group_id
,
callback
)
{
var
url
=
Api
.
buildUrl
(
Api
.
groupPath
)
.
replace
(
'
:id
'
,
group_id
);
usersPath
:
'
/api/:version/users.json
'
,
group
(
groupId
,
callback
)
{
const
url
=
Api
.
buildUrl
(
Api
.
groupPath
)
.
replace
(
'
:id
'
,
groupId
);
return
$
.
ajax
({
url
:
url
,
dataType
:
'
json
'
}).
done
(
function
(
group
)
{
return
callback
(
group
);
});
url
,
dataType
:
'
json
'
,
})
.
done
(
group
=>
callback
(
group
));
},
users
:
function
(
search
,
options
,
callback
=
$
.
noop
)
{
var
url
=
Api
.
buildUrl
(
'
/autocomplete/users.json
'
);
return
$
.
ajax
({
...
...
@@ -41,44 +35,19 @@ const Api = {
dataType
:
'
json
'
}).
done
(
callback
);
},
// Return groups list. Filtered by query
groups
:
function
(
query
,
options
,
callback
=
$
.
noop
)
{
var
url
=
Api
.
buildUrl
(
Api
.
groupsPath
);
=======
dockerfilePath
:
'
/api/:version/templates/dockerfiles/:key
'
,
issuableTemplatePath
:
'
/:namespace_path/:project_path/templates/:type/:key
'
,
usersPath
:
'
/api/:version/users.json
'
,
group
(
groupId
,
callback
)
{
const
url
=
Api
.
buildUrl
(
Api
.
groupPath
)
.
replace
(
'
:id
'
,
groupId
);
return
$
.
ajax
({
url
,
dataType
:
'
json
'
,
})
.
done
(
group
=>
callback
(
group
));
},
// Return groups list. Filtered by query
groups
(
query
,
options
,
callback
)
{
const
url
=
Api
.
buildUrl
(
Api
.
groupsPath
);
>>>>>>>
ce
/
master
return
$
.
ajax
({
url
,
data
:
Object
.
assign
({
search
:
query
,
per_page
:
20
,
},
options
),
<<<<<<<
HEAD
dataType
:
'
json
'
}).
done
(
function
(
groups
)
{
return
callback
(
groups
);
});
=======
dataType
:
'
json
'
,
})
.
done
(
groups
=>
callback
(
groups
));
>>>>>>>
ce
/
master
},
// Return namespaces list. Filtered by query
...
...
@@ -90,15 +59,8 @@ const Api = {
search
:
query
,
per_page
:
20
,
},
<<<<<<<
HEAD
dataType
:
'
json
'
}).
done
(
function
(
namespaces
)
{
return
callback
(
namespaces
);
});
=======
dataType
:
'
json
'
,
}).
done
(
namespaces
=>
callback
(
namespaces
));
>>>>>>>
ce
/
master
},
// Return projects list. Filtered by query
...
...
@@ -111,16 +73,9 @@ const Api = {
per_page
:
20
,
membership
:
true
,
},
options
),
<<<<<<<
HEAD
dataType
:
'
json
'
}).
done
(
function
(
projects
)
{
return
callback
(
projects
);
});
=======
dataType
:
'
json
'
,
})
.
done
(
projects
=>
callback
(
projects
));
>>>>>>>
ce
/
master
},
newLabel
(
namespacePath
,
projectPath
,
data
,
callback
)
{
...
...
@@ -128,17 +83,6 @@ const Api = {
.
replace
(
'
:namespace_path
'
,
namespacePath
)
.
replace
(
'
:project_path
'
,
projectPath
);
return
$
.
ajax
({
<<<<<<<
HEAD
url
:
url
,
type
:
'
POST
'
,
data
:
{
'
label
'
:
data
},
dataType
:
'
json
'
}).
done
(
function
(
label
)
{
return
callback
(
label
);
}).
error
(
function
(
message
)
{
return
callback
(
message
.
responseJSON
);
});
=======
url
,
type
:
'
POST
'
,
data
:
{
label
:
data
},
...
...
@@ -146,7 +90,6 @@ const Api = {
})
.
done
(
label
=>
callback
(
label
))
.
error
(
message
=>
callback
(
message
.
responseJSON
));
>>>>>>>
ce
/
master
},
// Return group projects list. Filtered by query
...
...
@@ -159,16 +102,9 @@ const Api = {
search
:
query
,
per_page
:
20
,
},
<<<<<<<
HEAD
dataType
:
'
json
'
}).
done
(
function
(
projects
)
{
return
callback
(
projects
);
});
=======
dataType
:
'
json
'
,
})
.
done
(
projects
=>
callback
(
projects
));
>>>>>>>
ce
/
master
},
// Return text for a specific license
...
...
@@ -230,29 +166,24 @@ const Api = {
if
(
gon
.
relative_url_root
!=
null
)
{
urlRoot
=
gon
.
relative_url_root
;
}
<<<<<<<
HEAD
return
url
.
replace
(
'
:version
'
,
gon
.
api_version
);
return
urlRoot
+
url
.
replace
(
'
:version
'
,
gon
.
api_version
);
},
ldap_groups
:
function
(
query
,
provider
,
callback
)
{
var
url
;
url
=
Api
.
buildUrl
(
Api
.
ldapGroupsPath
);
ldap_groups
(
query
,
provider
,
callback
)
{
const
url
=
Api
.
buildUrl
(
this
.
ldapGroupsPath
);
url
=
url
.
replace
(
'
:provider
'
,
provider
);
return
$
.
ajax
({
return
Api
.
wrapAjaxCall
({
url
:
url
,
data
:
{
data
:
Object
.
assign
(
{
private_token
:
gon
.
api_token
,
search
:
query
,
per_page
:
20
,
active
:
true
},
}
)
,
dataType
:
'
json
'
}).
done
(
function
(
groups
)
{
return
callback
(
groups
);
});
})
.
done
(
groups
=>
callback
(
groups
));
}
=======
return
urlRoot
+
url
.
replace
(
'
:version
'
,
gon
.
api_version
);
},
wrapAjaxCall
(
options
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -267,7 +198,6 @@ const Api = {
);
});
},
>>>>>>>
ce
/
master
};
export
default
Api
;
app/assets/javascripts/boards/boards_bundle.js
View file @
d0c4ee4a
...
...
@@ -22,13 +22,10 @@ import './components/board_sidebar';
import
'
./components/new_list_dropdown
'
;
import
'
./components/modal/index
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
<<<<<<<
HEAD
import
'
./components/boards_selector
'
;
import
collapseIcon
from
'
./icons/fullscreen_collapse.svg
'
;
import
expandIcon
from
'
./icons/fullscreen_expand.svg
'
;
=======
>>>>>>>
ce
/
master
Vue
.
use
(
VueResource
);
...
...
app/assets/javascripts/boards/components/modal/index.js
View file @
d0c4ee4a
...
...
@@ -3,10 +3,6 @@
import
Vue
from
'
vue
'
;
import
queryData
from
'
../../utils/query_data
'
;
import
loadingIcon
from
'
../../../vue_shared/components/loading_icon.vue
'
;
<<<<<<<
HEAD
=======
>>>>>>>
ce
/
master
import
'
./header
'
;
import
'
./list
'
;
import
'
./footer
'
;
...
...
app/assets/javascripts/dispatcher.js
View file @
d0c4ee4a
...
...
@@ -59,12 +59,9 @@ import UsersSelect from './users_select';
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
<<<<<<<
HEAD
// EE-only
import
ApproversSelect
from
'
./approvers_select
'
;
=======
>>>>>>>
ce
/
master
(
function
()
{
var
Dispatcher
;
...
...
app/assets/javascripts/filtered_search/dropdown_hint.js
View file @
d0c4ee4a
...
...
@@ -56,11 +56,7 @@ class DropdownHint extends gl.FilteredSearchDropdown {
}
renderContent
()
{
<<<<<<<
HEAD
const
dropdownData
=
this
.
tokenKeys
.
get
()
=======
const
dropdownData
=
gl
.
FilteredSearchTokenKeys
.
get
()
>>>>>>>
ce
/
master
.
map
(
tokenKey
=>
({
icon
:
`fa-
${
tokenKey
.
icon
}
`
,
hint
:
tokenKey
.
key
,
...
...
app/assets/javascripts/filtered_search/filtered_search_bundle.js
View file @
d0c4ee4a
...
...
@@ -8,9 +8,6 @@ import './filtered_search_manager';
import
'
./filtered_search_token_keys
'
;
import
'
./filtered_search_tokenizer
'
;
import
'
./filtered_search_visual_tokens
'
;
<<<<<<<
HEAD
// EE-only
import
'
./filtered_search_token_keys_with_weights
'
;
=======
>>>>>>>
ce
/
master
app/assets/javascripts/filtered_search/filtered_search_manager.js
View file @
d0c4ee4a
...
...
@@ -454,10 +454,6 @@ class FilteredSearchManager {
const
{
tokens
,
searchToken
}
=
this
.
tokenizer
.
processTokens
(
searchQuery
,
this
.
filteredSearchTokenKeys
.
getKeys
());
<<<<<<<
HEAD
=======
>>>>>>>
ce
/
master
const
currentState
=
gl
.
utils
.
getParameterByName
(
'
state
'
)
||
'
opened
'
;
paths
.
push
(
`state=
${
currentState
}
`
);
...
...
app/assets/javascripts/main.js
View file @
d0c4ee4a
...
...
@@ -170,7 +170,6 @@ import './visibility_select';
import
'
./wikis
'
;
import
'
./zen_mode
'
;
<<<<<<<
HEAD
// EE-only scripts
import
'
./admin_email_select
'
;
import
'
./application_settings
'
;
...
...
@@ -179,8 +178,6 @@ import './ldap_groups_select';
import
'
./path_locks
'
;
import
'
./weight_select
'
;
=======
>>>>>>>
ce
/
master
// eslint-disable-next-line global-require, import/no-commonjs
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
require
(
'
./test_utils/
'
);
...
...
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