Skip to content

Commit

Permalink
Merge pull request #16 from SRGSSR/develop
Browse files Browse the repository at this point in the history
Inverse apps order for update - Fix css
  • Loading branch information
SebastienChauvin authored Dec 20, 2018
2 parents b3f517f + 58f0e95 commit 0d59518
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.example</groupId>
<artifactId>pfff</artifactId>
<version>5</version>
<version>6</version>
<packaging>jar</packaging>

<name>pfff</name>
Expand Down Expand Up @@ -85,7 +85,7 @@
<dependency>
<groupId>org.webjars</groupId>
<artifactId>font-awesome</artifactId>
<version>5.0.10</version>
<version>5.4.1</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand Down
Binary file modified portal-app/src/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion portal-app/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"/>
<script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/webjars/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/webjars/font-awesome/css/fontawesome.min.css"/>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public AuthenticationConfig(
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/api/v1/update/check", "/api/v1/whatisnew/text", "/api/v1/whatisnew/html", "/api/v1/version", "/api/v*/playlist/recommendation/**").permitAll()
.antMatchers("/api/v1/update/check", "/api/v1/whatisnew/text", "/api/v1/whatisnew/html", "/api/v1/version", "/api/v*/playlist/recommendation/**", "/webjars/bootstrap/**", "/webjars/bootstrap/**", "/webjars/jquery/**", "/webjars/font-awesome/**").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public ResponseEntity<Update> delete(@PathVariable("id") int id) {
}

@GetMapping("/api/v1/update")
public ResponseEntity<Iterable<Update>> findAll() {
return new ResponseEntity<>(updateService.findAll(), HttpStatus.OK);
public ResponseEntity<Iterable<Update>> findAllDesc() {
return new ResponseEntity<>(updateService.findAllDesc(), HttpStatus.OK);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ public interface UpdateRepository extends CrudRepository<Update, Long> {
List<Update> removeByPackageNameAndVersion(String packageName, String version);

List<Update> findByPackageNameAndVersion(String packageName, String version);

List<Update> findAllByOrderByIdDesc();
}
4 changes: 4 additions & 0 deletions src/main/java/com/example/pfff/service/UpdateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ public Update delete(long id) {
public Iterable<Update> findAll() {
return repository.findAll();
}

public Iterable<Update> findAllDesc() {
return repository.findAllByOrderByIdDesc();
}
}
2 changes: 1 addition & 1 deletion src/main/resources/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"/>
<script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/webjars/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/webjars/font-awesome/css/fontawesome.min.css"/>
</head>

<body>
Expand Down

0 comments on commit 0d59518

Please sign in to comment.