This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
0af60808
Commit
0af60808
authored
4 years ago
by
Daniel Rainer
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in front-end
parent
a6c284cd
2 merge requests
!17
Initial Merge to Prepare Release 1.0.0
,
!1
Resolve "Metadaten konsolideren"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/webapp/app/search/service/search-service.ts
+1
-1
1 addition, 1 deletion
src/main/webapp/app/search/service/search-service.ts
src/main/webapp/app/teaserContent/teaserContent.component.ts
+27
-33
27 additions, 33 deletions
src/main/webapp/app/teaserContent/teaserContent.component.ts
with
28 additions
and
34 deletions
src/main/webapp/app/search/service/search-service.ts
+
1
−
1
View file @
0af60808
...
...
@@ -33,7 +33,7 @@ export class SearchService {
const
options
:
HttpParams
=
new
HttpParams
();
options
.
append
(
'
keyWordPrefix
'
,
prefix
);
return
this
.
http
.
get
<
Array
<
string
>>
(
this
.
resourceProgrammingLanguageAutoCompleteDetails
,
{
params
:
new
HttpParams
().
set
(
'
progammingLanguagePrefix
'
,
prefix
),
params
:
new
HttpParams
().
set
(
'
prog
r
ammingLanguagePrefix
'
,
prefix
),
});
}
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/app/teaserContent/teaserContent.component.ts
+
27
−
33
View file @
0af60808
...
...
@@ -5,46 +5,40 @@ import { SearchService } from 'app/search/service/search-service';
@
Component
({
selector
:
'
jhi-teaser-content
'
,
templateUrl
:
'
./teaserContent.component.html
'
,
styleUrls
:
[
'
./teaserContent.component.scss
'
]
styleUrls
:
[
'
./teaserContent.component.scss
'
]
,
})
export
class
TeaserContentComponent
implements
OnInit
{
public
keywords
:
Array
<
String
>
=
new
Array
<
String
>
();
public
contributors
:
Array
<
String
>
=
new
Array
<
String
>
();
public
programmingLanguages
:
Array
<
String
>
=
new
Array
<
String
>
();
constructor
(
private
searchService
:
SearchService
)
{
}
constructor
(
private
searchService
:
SearchService
)
{}
ngOnInit
():
void
{
this
.
searchService
.
getKeywordsAutoComplete
(
''
)
.
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
keywords
=
data
;
}
,
()
=>
{
alert
(
"
Initializiation of keywords failed
"
);}
);
this
.
searchService
.
getProgrammingLanguageAutoComplete
(
''
)
.
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
programmingLanguages
=
data
;
}
,
()
=>
{
alert
(
"
Initializiation of programming languages failed
"
);}
);
this
.
searchService
.
getContributorAutoComplete
(
''
)
.
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
contributors
=
data
;
}
,
()
=>
{
alert
(
"
Initializiation of contributors failed
"
);}
);
this
.
searchService
.
getKeywordsAutoComplete
(
''
).
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
keywords
=
data
;
},
()
=>
{
alert
(
'
Initialization of keywords failed
'
);
}
);
this
.
searchService
.
getProgrammingLanguageAutoComplete
(
''
).
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
programmingLanguages
=
data
;
},
()
=>
{
alert
(
'
Initialization of programming languages failed
'
);
}
);
this
.
searchService
.
getContributorAutoComplete
(
''
).
subscribe
(
(
data
:
Array
<
string
>
)
=>
{
this
.
contributors
=
data
;
},
()
=>
{
alert
(
'
Initialization of contributors failed
'
);
}
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment