Skip to content

Commit a54fd92

Browse files
authored
Add Rest preset (#1531)
1 parent 6c2f3a3 commit a54fd92

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

base/assets/icons/presets/rest.svg

+6
Loading

base/src/main/java/io/quarkus/code/service/PlatformService.java

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ public class PlatformService {
5050

5151
public static final List<Preset> PRESETS = List.of(
5252
// Some presets are duplicated to support platforms before and after the Big Reactive Renaming
53+
new Preset("rest-service", "REST service",
54+
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/rest.svg",
55+
List.of("io.quarkus:quarkus-rest")),
56+
new Preset("rest-service", "REST service",
57+
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/rest.svg",
58+
List.of("io.quarkus:quarkus-resteasy-reactive")),
5359
new Preset("db-service", "REST service with database",
5460
"https://raw.githubusercontent.com/quarkusio/code.quarkus.io/main/base/assets/icons/presets/db-service.svg",
5561
List.of("io.quarkus:quarkus-rest", "io.quarkus:quarkus-rest-jackson",

base/src/main/resources/web/lib/components/extensions-picker/selected-extensions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const SelectedExtensions = (props: {
122122
Selected Extensions
123123
{props.extensions.length > 0 &&
124124
<button className="btn btn-light btn-clear" onClick={clear} aria-label="Clear extension selection">
125-
<FaTrashAlt/> Clear { layout === 'picker' && <span>and start from presets</span>}
125+
<FaTrashAlt/> Clear { layout === 'picker' && <span>- back to presets</span>}
126126
</button>}
127127
</h4>
128128
{props.extensions.length === 0 && (

0 commit comments

Comments
 (0)