Skip to content

Commit

Permalink
Gridstack provider no longer requires configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Oct 5, 2023
1 parent 0691895 commit d32032c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,7 @@ private void createJQueryUiConsole() throws URISyntaxException {
console.attach(new AvoidEmptyPolicy(console.channel()));
// Add all available page resource providers
console.attach(new ComponentCollector<>(
PageResourceProviderFactory.class, console.channel(),
type -> {
switch (type) {
case "org.jgrapes.webconsole.provider.gridstack.GridstackProvider":
return Arrays.asList(
Map.of("configuration", "CoreWithJQUiPlugin",
"requireTouchPunch", true));
default:
return Arrays.asList(Collections.emptyMap());
}
}));
PageResourceProviderFactory.class, console.channel()));
// Add all available conlets
console.attach(new ComponentCollector<>(
ConletComponentFactory.class, console.channel(), type -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.security.cert.CertificateException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import org.jgrapes.core.Channel;
Expand Down Expand Up @@ -160,16 +159,7 @@ Channel.SELF, new URI("/")))
console.attach(new KVStoreBasedConsolePolicy(console.channel()));
// Add all available page resource providers
console.attach(new ComponentCollector<>(
PageResourceProviderFactory.class, console.channel(), type -> {
switch (type) {
case "org.jgrapes.webconsole.provider.gridstack.GridstackProvider":
return Arrays.asList(
Map.of("requireTouchPunch", true,
"configuration", "CoreWithJQUiPlugin"));
default:
return Arrays.asList(Collections.emptyMap());
}
}));
PageResourceProviderFactory.class, console.channel()));
// Add all available conlets
console.attach(new ComponentCollector<>(
ConletComponentFactory.class, console.channel(), type -> {
Expand Down

0 comments on commit d32032c

Please sign in to comment.