Skip to content

Commit

Permalink
Add Rest preset (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy authored Oct 29, 2024
1 parent 6c2f3a3 commit a54fd92
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions base/assets/icons/presets/rest.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public class PlatformService {

public static final List<Preset> PRESETS = List.of(
// Some presets are duplicated to support platforms before and after the Big Reactive Renaming
new Preset("rest-service", "REST service",
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/rest.svg",
List.of("io.quarkus:quarkus-rest")),
new Preset("rest-service", "REST service",
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/rest.svg",
List.of("io.quarkus:quarkus-resteasy-reactive")),
new Preset("db-service", "REST service with database",
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/db-service.svg",
List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const SelectedExtensions = (props: {
Selected Extensions
{props.extensions.length > 0 &&
<button className="btn btn-light btn-clear" onClick={clear} aria-label="Clear extension selection">
<FaTrashAlt/> Clear { layout === 'picker' && <span>and start from presets</span>}
<FaTrashAlt/> Clear { layout === 'picker' && <span>- back to presets</span>}
</button>}
</h4>
{props.extensions.length === 0 && (
Expand Down

0 comments on commit a54fd92

Please sign in to comment.