diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/BaseDomain.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/BaseDomain.java index e54088dacc..615235699a 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/BaseDomain.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/BaseDomain.java @@ -21,7 +21,7 @@ import java.util.Set; * TODO : * Move BaseDomain back to appsmith-server.domain. This is done temporarily to create templates and providers in the same database as the server */ -@Getter +@Getter @Setter @ToString public abstract class BaseDomain implements Persistable { diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Category.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Category.java index b923ba7346..7cc3973252 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Category.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Category.java @@ -14,7 +14,7 @@ import org.springframework.data.mongodb.core.mapping.Document; @Document public class Category extends BaseDomain { - @Indexed(unique=true) + @Indexed(unique = true) String name; //Category name here } diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/DatasourceTestResult.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/DatasourceTestResult.java index 4ff7f9d15a..df69c176e6 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/DatasourceTestResult.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/DatasourceTestResult.java @@ -17,6 +17,7 @@ public class DatasourceTestResult { /** * Convenience constructor to create a result object with one or more error messages. This constructor also ensures * that the `invalids` field is never null. + * * @param invalids String messages that explain why the test failed. */ public DatasourceTestResult(String... invalids) { diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Provider.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Provider.java index 42fdd36c3d..bd9d78bf5c 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Provider.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Provider.java @@ -17,7 +17,7 @@ import java.util.List; @Document public class Provider extends BaseDomain { - @Indexed(unique=true) + @Indexed(unique = true) String name; //Provider name here String description; //Provider company's description here diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHConnection.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHConnection.java index 35e5262008..2639f000b1 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHConnection.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHConnection.java @@ -1,6 +1,10 @@ package com.appsmith.external.models; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; @Getter @Setter diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHPrivateKey.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHPrivateKey.java index 8e403371a2..9e0bd494ca 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHPrivateKey.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/SSHPrivateKey.java @@ -1,7 +1,11 @@ package com.appsmith.external.models; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; @Getter @Setter diff --git a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/UploadedFile.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/UploadedFile.java index 587ebb43a9..0fa7e99dac 100644 --- a/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/UploadedFile.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/UploadedFile.java @@ -2,7 +2,11 @@ package com.appsmith.external.models; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; import reactor.core.publisher.Mono; import java.util.Base64; diff --git a/app/server/appsmith-plugins/rapidApiPlugin/src/main/java/com/external/plugins/RapidApiPlugin.java b/app/server/appsmith-plugins/rapidApiPlugin/src/main/java/com/external/plugins/RapidApiPlugin.java index cd3a48bb63..511ca1942d 100644 --- a/app/server/appsmith-plugins/rapidApiPlugin/src/main/java/com/external/plugins/RapidApiPlugin.java +++ b/app/server/appsmith-plugins/rapidApiPlugin/src/main/java/com/external/plugins/RapidApiPlugin.java @@ -112,9 +112,9 @@ public class RapidApiPlugin extends BasePlugin { List bodyFormData = actionConfiguration.getBodyFormData(); String jsonString = null; JSONObject bodyJson; - for (Property property: bodyFormData) { + for (Property property : bodyFormData) { - if(property.getValue()!=null) { + if (property.getValue() != null) { if (!property.getType().equals(JSON_TYPE)) { keyValueMap.put(property.getKey(), property.getValue()); } else { diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/acl/PolicyGenerator.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/acl/PolicyGenerator.java index 84c8b39c32..b93f1b06ab 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/acl/PolicyGenerator.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/acl/PolicyGenerator.java @@ -133,7 +133,7 @@ public class PolicyGenerator { // document Set childPolicySet = new HashSet<>(); Set edges = hierarchyGraph.outgoingEdgesOf(aclPermission); - for (DefaultEdge edge: edges) { + for (DefaultEdge edge : edges) { AclPermission childPermission = hierarchyGraph.getEdgeTarget(edge); childPolicySet.add(Policy.builder().permission(childPermission.getValue()) .users(policy.getUsers()).build()); diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ItemController.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ItemController.java index b29d745b84..9e93236dc2 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ItemController.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ItemController.java @@ -37,7 +37,7 @@ public class ItemController { } @PostMapping("/addToPage") - public Mono> addItemToPage (@RequestBody AddItemToPageDTO addItemToPageDTO) { + public Mono> addItemToPage(@RequestBody AddItemToPageDTO addItemToPageDTO) { log.debug("Going to add item {} to page {} with new name {}", addItemToPageDTO.getMarketplaceElement().getItem().getName(), addItemToPageDTO.getPageId(), addItemToPageDTO.getName()); return service.addItemToPage(addItemToPageDTO) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/RestApiImportController.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/RestApiImportController.java index 3ccf8f7e8c..b70676d0bf 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/RestApiImportController.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/RestApiImportController.java @@ -46,7 +46,7 @@ public class RestApiImportController { @RequestParam String pageId, @RequestParam String name, @RequestHeader(name = "Origin", required = false) String originHeader - ) { + ) { log.debug("Going to import API"); ApiImporter service; diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Datasource.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Datasource.java index abb13ba32c..a755e73325 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Datasource.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Datasource.java @@ -45,6 +45,7 @@ public class Datasource extends BaseDomain { /** * This method is here so that the JSON version of this class' instances have a `isValid` field, for backwards * compatibility. It may be removed, when sure that no API received is relying on this field. + * * @return boolean, indicating whether this datasource is valid or not. */ public boolean getIsValid() { diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/BeanCopyUtils.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/BeanCopyUtils.java index 34e4736c2f..36f1e85d33 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/BeanCopyUtils.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/BeanCopyUtils.java @@ -49,7 +49,7 @@ public final class BeanCopyUtils { } public static void copyNestedNonNullProperties(Object source, Object target) { - if (source == null || target == null) { + if (source == null || target == null) { return; } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/MustacheHelper.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/MustacheHelper.java index 3e71de782a..f09da63bf3 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/MustacheHelper.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/MustacheHelper.java @@ -9,6 +9,7 @@ public class MustacheHelper { /** * Tokenize a Mustache template string into a list of plain text and Mustache interpolations. + * * @param template String Mustache template string from which to extract plain text and interpolation tokens. * @return A list of String tokens, which form parts of the given template String. Joining the strings in this list * should give the original template back. The tokens are split such that alternative strings in the list are plain @@ -111,6 +112,7 @@ public class MustacheHelper { /** * Tokenize-s the given Mustache template string, extracts the Mustache interpolations out, strips the leading and * trailing double braces, trims and then returns a set of these replacement keys. + * * @param template The Mustache input template string. * @return A Set of strings that serve as replacement keys, with the surrounding double braces stripped and then * trimmed. @@ -135,6 +137,7 @@ public class MustacheHelper { * JSON special characters like double-quote and backslash are escaped in the template. We need to unescape them, * making the JSON invalid, but the Javascript inside the Mustache double-braces will be valid. Then, our parser can * do its work. + * * @param jsonTemplate The template string. Usually the result of calling `objectMapper.writeValueAsString(obj)`. * @return A Set of strings that serve as replacement keys, with the surrounding double braces stripped and then * trimmed. @@ -155,6 +158,7 @@ public class MustacheHelper { * instances of `\\` (two backslash characters back-to-back) with a single backslash. This is useful to undo the * escaping done during JSON serialization. Note that the input string is expected to be valid JSON, although this * is not verified. The return value will NOT be valid JSON. + * * @param jsonString Input string to apply replacements on. * @return String Contents of `jsonString` with the replacements applied. */ diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/notifications/EmailSender.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/notifications/EmailSender.java index 4ac77b6a06..3942e44486 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/notifications/EmailSender.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/notifications/EmailSender.java @@ -44,9 +44,9 @@ public class EmailSender { /** * This function sends an HTML email to the user from the default email address * - * @param to Single valid string email address to send to. Multiple addresses doesn't work. + * @param to Single valid string email address to send to. Multiple addresses doesn't work. * @param subject Subject string. - * @param text HTML Body of the message. This method assumes UTF-8. + * @param text HTML Body of the message. This method assumes UTF-8. */ public void sendMail(String to, String subject, String text) { log.debug("Got request to send email to: {} with subject: {}", to, subject); diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/BaseAppsmithRepositoryImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/BaseAppsmithRepositoryImpl.java index 92c20ea1c0..34de66cf04 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/BaseAppsmithRepositoryImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/BaseAppsmithRepositoryImpl.java @@ -11,9 +11,7 @@ import com.mongodb.BasicDBObject; import com.mongodb.DBObject; import com.querydsl.core.types.Path; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.GenericTypeResolver; -import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.ReactiveMongoOperations; import org.springframework.data.mongodb.core.convert.MongoConverter; import org.springframework.data.mongodb.core.query.Criteria; diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomGroupRepositoryImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomGroupRepositoryImpl.java index 0ba29e3e28..98f8fd67eb 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomGroupRepositoryImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/CustomGroupRepositoryImpl.java @@ -1,7 +1,6 @@ package com.appsmith.server.repositories; import com.appsmith.server.domains.Group; -import com.appsmith.server.domains.QApplication; import com.appsmith.server.domains.QGroup; import lombok.extern.slf4j.Slf4j; import org.springframework.data.mongodb.core.ReactiveMongoOperations; diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/GroupRepository.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/GroupRepository.java index f93d563d09..7da35d0878 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/GroupRepository.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/GroupRepository.java @@ -2,7 +2,6 @@ package com.appsmith.server.repositories; import com.appsmith.server.domains.Group; import org.springframework.stereotype.Repository; -import reactor.core.publisher.Flux; @Repository public interface GroupRepository extends BaseRepository, CustomGroupRepository { diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java index 11fef7eab0..4c2aaea7d8 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java @@ -386,30 +386,30 @@ public class ActionServiceImpl extends BaseService obj) .flatMap(res -> { - ActionExecutionResult result = (ActionExecutionResult) res; - Mono resultMono = Mono.just(result); - if (actionFromDto.getId() == null) { - // This is a dry-run. We shouldn't query the db because it'll throw NPE on null IDs - return resultMono; - } + ActionExecutionResult result = (ActionExecutionResult) res; + Mono resultMono = Mono.just(result); + if (actionFromDto.getId() == null) { + // This is a dry-run. We shouldn't query the db because it'll throw NPE on null IDs + return resultMono; + } - Mono actionFromDbMono = repository.findById(actionFromDto.getId()) - //If the action is found in the db (i.e. it is not a dry run, save the cached response - .flatMap(action -> { - if (result.getShouldCacheResponse()) { - //If the status code is 2xx, then save the cached response (aka the body) and return. - action.setCacheResponse(result.getBody().toString()); - return repository.save(action); - } - log.debug("Action execution resulted in failure beyond the proxy with the result of {}", result); - return Mono.just(action); - }); - return actionFromDbMono.zipWith(resultMono) - .map(tuple -> { - ActionExecutionResult executionResult = tuple.getT2(); - return executionResult; - }); - }); + Mono actionFromDbMono = repository.findById(actionFromDto.getId()) + //If the action is found in the db (i.e. it is not a dry run, save the cached response + .flatMap(action -> { + if (result.getShouldCacheResponse()) { + //If the status code is 2xx, then save the cached response (aka the body) and return. + action.setCacheResponse(result.getBody().toString()); + return repository.save(action); + } + log.debug("Action execution resulted in failure beyond the proxy with the result of {}", result); + return Mono.just(action); + }); + return actionFromDbMono.zipWith(resultMono) + .map(tuple -> { + ActionExecutionResult executionResult = tuple.getT2(); + return executionResult; + }); + }); } @Override diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationServiceImpl.java index a670a3d228..5883839e72 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ApplicationServiceImpl.java @@ -15,7 +15,6 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.mongodb.core.ReactiveMongoTemplate; import org.springframework.data.mongodb.core.convert.MongoConverter; -import org.springframework.data.mongodb.core.query.Criteria; import org.springframework.stereotype.Service; import org.springframework.util.MultiValueMap; import reactor.core.publisher.Flux; @@ -25,7 +24,6 @@ import reactor.core.scheduler.Scheduler; import javax.validation.Validator; import java.util.ArrayList; import java.util.List; -import java.util.stream.Collectors; import static com.appsmith.server.acl.AclPermission.READ_APPLICATIONS; diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemService.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemService.java index 4cef82a6d5..baf3133823 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemService.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemService.java @@ -9,5 +9,6 @@ import reactor.core.publisher.Mono; public interface ItemService { Flux get(MultiValueMap params); + Mono addItemToPage(AddItemToPageDTO addItemToPageDTO); } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemServiceImpl.java index 404fbf7cad..df3baad88b 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ItemServiceImpl.java @@ -82,7 +82,7 @@ public class ItemServiceImpl implements ItemService { // Set Action Fields action.setActionConfiguration(apiTemplate.getActionConfiguration()); if (apiTemplate.getApiTemplateConfiguration().getSampleResponse() != null && - apiTemplate.getApiTemplateConfiguration().getSampleResponse().getBody() != null ) { + apiTemplate.getApiTemplateConfiguration().getSampleResponse().getBody() != null) { action.setCacheResponse(apiTemplate.getApiTemplateConfiguration().getSampleResponse().getBody().toString()); } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java index 964998e68a..0fbdc47045 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/LayoutActionServiceImpl.java @@ -511,7 +511,7 @@ public class LayoutActionServiceImpl implements LayoutActionService { * path keys. *

* Calling the base function would make redundant DB calls and slow down this API unnecessarily. - * + *

* At this point the user must have MANAGE_PAGE permissions because update action also leads to the page's * actions on load to change. * diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/MarketplaceService.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/MarketplaceService.java index bc01d11465..723b16416c 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/MarketplaceService.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/MarketplaceService.java @@ -10,8 +10,12 @@ import java.util.List; public interface MarketplaceService { Mono getProviders(MultiValueMap params); + Mono> getTemplates(MultiValueMap params); + Mono> getCategories(); + Mono subscribeAndUpdateStatisticsOfProvider(String providerId); + Mono getProviderById(String id); } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ProviderServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ProviderServiceImpl.java index f4797751c0..55499dd673 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ProviderServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ProviderServiceImpl.java @@ -23,13 +23,14 @@ import java.util.List; @Slf4j public class ProviderServiceImpl extends BaseService implements ProviderService { - private static final List CATEGORIES = Arrays.asList("Business","Visual Recognition","Location","Science", - "Food","Travel, Transportation","Music","Tools","Text Analysis","Weather","Gaming","SMS","Events","Health, Fitness", - "Payments","Financial","Translation","Storage","Logistics","Database","Search","Reward","Mapping","Machine Learning", - "Email","News, Media","Video, Images","eCommerce","Medical","Devices","Business Software","Advertising","Education", - "Media","Social","Commerce","Communication","Other","Monitoring","Energy"); + private static final List CATEGORIES = Arrays.asList("Business", "Visual Recognition", "Location", "Science", + "Food", "Travel, Transportation", "Music", "Tools", "Text Analysis", "Weather", "Gaming", "SMS", "Events", "Health, Fitness", + "Payments", "Financial", "Translation", "Storage", "Logistics", "Database", "Search", "Reward", "Mapping", "Machine Learning", + "Email", "News, Media", "Video, Images", "eCommerce", "Medical", "Devices", "Business Software", "Advertising", "Education", + "Media", "Social", "Commerce", "Communication", "Other", "Monitoring", "Energy"); private static final String DEFAULT_CATEGORY = "Business Software"; + public ProviderServiceImpl(Scheduler scheduler, Validator validator, MongoConverter mongoConverter, diff --git a/app/server/appsmith-server/src/main/resources/email/forgotPasswordTemplate.html b/app/server/appsmith-server/src/main/resources/email/forgotPasswordTemplate.html index 046d9a0d19..e1a6f7d0ea 100644 --- a/app/server/appsmith-server/src/main/resources/email/forgotPasswordTemplate.html +++ b/app/server/appsmith-server/src/main/resources/email/forgotPasswordTemplate.html @@ -1,189 +1,304 @@ - - - - - - - + + + - - - - - -

-
- - - -
- - - + +
- - - + + + + + + + +
+
+
- - - - - -
- - - - - - - - - -
- -
- - - - - -
Hello,
-

-
Forgot the password to your Appsmith account? No worries, we've got you covered.
- - - - - -
- - - - - - -
- Reset Password -
-
- - - - - -
The link will expire in 48 hours. If you didn't request a password reset, you can safely ignore this email.
-

-
Cheers
-
Devs at Appsmith
- -
+ + + - -
+ + + + -
+ + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + + +
+
+
+ Hello, +
+
+
+
+ Forgot the password to your Appsmith account? No worries, we've got you covered. +
+
+
+
+ + + + + + +
+ + + + + + +
+ Reset Password +
+
+ + + + + + +
+
+
+ The link will expire in 48 hours. If you didn't request a password reset, you can safely ignore this email. +
+
+
+
+ Cheers +
+
+ Devs at Appsmith +
+
+
+
+
+ +
+
-
-
+
-
-
- - - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/app/server/appsmith-server/src/main/resources/email/inviteUserCreatorTemplate.html b/app/server/appsmith-server/src/main/resources/email/inviteUserCreatorTemplate.html index 33232d5156..cd1d821947 100644 --- a/app/server/appsmith-server/src/main/resources/email/inviteUserCreatorTemplate.html +++ b/app/server/appsmith-server/src/main/resources/email/inviteUserCreatorTemplate.html @@ -1,187 +1,299 @@ - - - - - - - + + + - - - - - -
-
- - - -
- - - + +
- - - + + + + + + + +
+
+
- - - - - -
- - - - - - - - - -
- -
- - - - - -
You've been invited to collaborate.
-

-
{{Inviter_First_Name}} has invited you to collaborate on the organization "{{inviter_org_name}}" in Appsmith.
- - - - - -
- - - - - - -
- Accept invite -
-
- - - - - -
Cheers
-
Devs at Appsmith
- -
+ + + - -
+ + + + -
+ + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + + +
+
+
+ You've been invited to collaborate. +
+
+
+
+ {{Inviter_First_Name}} has invited you to collaborate on the organization "{{inviter_org_name}}" in Appsmith. +
+
+
+
+ + + + + + +
+ + + + + + +
+ Accept invite +
+
+ + + + + + +
+
+
+ Cheers +
+
+ Devs at Appsmith +
+
+
+
+
+ +
+
-
-
+
-
-
- - - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/app/server/appsmith-server/src/main/resources/email/welcomeUserTemplate.html b/app/server/appsmith-server/src/main/resources/email/welcomeUserTemplate.html index 0441063bcc..aa163806f5 100644 --- a/app/server/appsmith-server/src/main/resources/email/welcomeUserTemplate.html +++ b/app/server/appsmith-server/src/main/resources/email/welcomeUserTemplate.html @@ -1,203 +1,333 @@ - - - - - - - + + + - - - - - -
-
- - - -
- - - + +
- - - + table, td { + mso-table-lspace: 0pt; + mso-table-rspace: 0pt; + } + + img { + -ms-interpolation-mode: bicubic; + } + + + + + + +
+
+
- - - - - -
- - - - - - - - - -
- -
- - - - - -
Hi {{firstName}},
-

-
I am really excited you signed up for Appsmith and wanted to personally reach out to welcome you.
-

-
🚀Hope you started creating your first app already. In case you didn't and are looking for a little inspiration, you may want to check out a few use cases other developers are building.
-

-
📅If you would like to explore the product together or collaborate while creating your first app, schedule a time here and let's get building.
-

-
🙋 If you need anything at all, I'm here to help. Reach out anytime you want to chat - all thoughts, questions, and feedback are welcome.
- - - - - -
- - - - - - -
- Go to Appsmith -
-
- - - + table { + border-collapse: collapse; + } - - -
Cheers
-
Arpit Mohan
-

+ + + -
- -
- -
+ + + - -
+ + + + -
+ + + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + + +
+
+
+ Hi {{firstName}}, +
+
+
+
+ I am really excited you signed up for Appsmith and wanted to personally reach out to welcome you. +
+
+
+
+ 🚀Hope you started creating your first app already. In case you didn't and are looking for a little inspiration, you may want to check out a few use cases other developers are building. +
+
+
+
+ 📅If you would like to explore the product together or collaborate while creating your first app, schedule a time here and let's get building. +
+
+
+
+ 🙋 If you need anything at all, I'm here to help. Reach out anytime you want to chat - all thoughts, questions, and feedback are welcome. +
+
+
+
+ + + + + + +
+ + + + + + +
+ Go to Appsmith +
+
+ + + + + + + +
+
+
+ Cheers +
+
+ Arpit Mohan +
+
+
+ + +
+
+
+ +
+ +
+
-
-
+
-
-
- - - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/BeanCopyUtilsTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/BeanCopyUtilsTest.java index cccc262da4..9d7e518606 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/BeanCopyUtilsTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/BeanCopyUtilsTest.java @@ -1,6 +1,9 @@ package com.appsmith.server.helpers; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.junit.Test; diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/MustacheHelperTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/MustacheHelperTest.java index 587e0bff20..903795e1d8 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/MustacheHelperTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/helpers/MustacheHelperTest.java @@ -20,8 +20,8 @@ import static com.appsmith.server.helpers.MustacheHelper.tokenize; import static org.assertj.core.api.Assertions.assertThat; @SuppressWarnings( - // Disabling this so we may use `Arrays.asList` with single argument, which is easier to refactor, just for tests. - "ArraysAsListWithZeroOrOneArgument" + // Disabling this so we may use `Arrays.asList` with single argument, which is easier to refactor, just for tests. + "ArraysAsListWithZeroOrOneArgument" ) @RunWith(SpringRunner.class) @SpringBootTest @@ -314,7 +314,7 @@ public class MustacheHelperTest { Set.of("2 + 4 ? trueVal : falseVal") ); } - + @Test public void jsonInMustache() { check( diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ApplicationServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ApplicationServiceTest.java index f32cee1725..61656ad874 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ApplicationServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ApplicationServiceTest.java @@ -10,10 +10,8 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.security.test.context.support.WithAnonymousUser; import org.springframework.security.test.context.support.WithUserDetails; import org.springframework.test.annotation.DirtiesContext; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; @@ -21,12 +19,10 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; -import java.util.HashMap; import java.util.List; import java.util.Set; import static com.appsmith.server.acl.AclPermission.MANAGE_APPLICATIONS; -import static com.appsmith.server.acl.AclPermission.ORGANIZATION_MANAGE_APPLICATIONS; import static com.appsmith.server.acl.AclPermission.READ_APPLICATIONS; import static org.assertj.core.api.Assertions.assertThat; diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/CurlImporterServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/CurlImporterServiceTest.java index e264c7b9fd..1f175b8564 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/CurlImporterServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/CurlImporterServiceTest.java @@ -19,8 +19,6 @@ import reactor.core.publisher.Mono; import reactor.test.StepVerifier; import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/LayoutServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/LayoutServiceTest.java index 68749a4c9e..31e3fc58f3 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/LayoutServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/LayoutServiceTest.java @@ -20,8 +20,6 @@ import org.springframework.test.context.junit4.SpringRunner; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; -import java.util.concurrent.atomic.AtomicReference; - import static org.assertj.core.api.Assertions.assertThat; @RunWith(SpringRunner.class) diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/OrganizationServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/OrganizationServiceTest.java index c73c0c42e8..850d8dc712 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/OrganizationServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/OrganizationServiceTest.java @@ -165,12 +165,12 @@ public class OrganizationServiceTest { organization.setWebsite("https://example.com"); Mono uniqueSlug = organizationService.getNextUniqueSlug("slug-org") - .map(slug -> { - organization.setSlug(slug); - return organization; - }) - .flatMap(organizationService::create) - .then(organizationService.getNextUniqueSlug("slug-org")); + .map(slug -> { + organization.setSlug(slug); + return organization; + }) + .flatMap(organizationService::create) + .then(organizationService.getNextUniqueSlug("slug-org")); StepVerifier.create(uniqueSlug) .assertNext(slug -> { diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/PageServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/PageServiceTest.java index 6ecb9551a5..cfb23dc25c 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/PageServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/PageServiceTest.java @@ -22,7 +22,6 @@ import reactor.test.StepVerifier; import java.util.Set; import static com.appsmith.server.acl.AclPermission.MANAGE_PAGES; -import static com.appsmith.server.acl.AclPermission.ORGANIZATION_MANAGE_APPLICATIONS; import static com.appsmith.server.acl.AclPermission.READ_PAGES; import static org.assertj.core.api.Assertions.assertThat; diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/UserServiceTest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/UserServiceTest.java index 8a6b9601b2..91896280af 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/UserServiceTest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/UserServiceTest.java @@ -1,7 +1,7 @@ package com.appsmith.server.services; -import com.appsmith.server.configurations.WithMockAppsmithUser; import com.appsmith.server.acl.AppsmithRole; +import com.appsmith.server.configurations.WithMockAppsmithUser; import com.appsmith.server.constants.FieldName; import com.appsmith.server.domains.Application; import com.appsmith.server.domains.InviteUser; diff --git a/app/server/mongo-seed/seed.js b/app/server/mongo-seed/seed.js index 38a9df0646..71a0484299 100644 --- a/app/server/mongo-seed/seed.js +++ b/app/server/mongo-seed/seed.js @@ -11,54 +11,54 @@ let res = [ "_class": "com.appsmith.server.domains.Organization", "plugins": [ { - "pluginId" : "5c9f512f96c1a50004819786", - "status" : "FREE", - "deleted" : false + "pluginId": "5c9f512f96c1a50004819786", + "status": "FREE", + "deleted": false }, { - "pluginId" : "5ca385dc81b37f0004b4db85", - "status" : "FREE", - "deleted" : false + "pluginId": "5ca385dc81b37f0004b4db85", + "status": "FREE", + "deleted": false } ] }), db.group.insert({ - "_id": ObjectId("5da151714a020300041ae8ff"), - "name": "org-admin", - "organizationId": "5da151714a020300041ae8fd", - "displayName": "Org Admin Group", - "isDefault": true, - "permissions": [ - "read:groups", - "read:organizations", - "create:users", - "create:groups", - "create:organizations", - "read:users", - "read:pages", - "create:pages", - "update:pages", - "read:layouts", - "create:layouts", - "update:layouts", - "read:properties", - "create:properties", - "update:properties", - "read:actions", - "create:actions", - "update:actions", - "read:resources", - "create:resources", - "update:resources", - "read:plugins", - "create:plugins", - "update:plugins" - ], - "deleted": false, - "_class": "com.appsmith.server.domains.Group" - }, - { + "_id": ObjectId("5da151714a020300041ae8ff"), + "name": "org-admin", + "organizationId": "5da151714a020300041ae8fd", + "displayName": "Org Admin Group", + "isDefault": true, + "permissions": [ + "read:groups", + "read:organizations", + "create:users", + "create:groups", + "create:organizations", + "read:users", + "read:pages", + "create:pages", + "update:pages", + "read:layouts", + "create:layouts", + "update:layouts", + "read:properties", + "create:properties", + "update:properties", + "read:actions", + "create:actions", + "update:actions", + "read:resources", + "create:resources", + "update:resources", + "read:plugins", + "create:plugins", + "update:plugins" + ], + "deleted": false, + "_class": "com.appsmith.server.domains.Group" + }, + { "_id": ObjectId("5df8c1e0078d501fc3f4491b"), "name": "org-admin", "organizationId": "default-org", @@ -121,15 +121,580 @@ let res = [ "_class": "com.appsmith.server.domains.Application" }), - db.page.insert({"_id":ObjectId("5d807e76795dc6000482bc76"),"name":"page1","applicationId":"5d807e45795dc6000482bc74","layouts":[{"_id":ObjectId("5d807e76795dc6000482bc75"),"dsl":{"backgroundColor":"#ffffff","rightColumn":{"$numberInt":"1200"},"snapColumns":{"$numberInt":"16"},"widgetId":"0","topRow":{"$numberInt":"0"},"bottomRow":{"$numberInt":"974"},"snapRows":{"$numberInt":"100"},"parentRowSpace":{"$numberInt":"1"},"type":"CONTAINER_WIDGET","renderMode":"CANVAS","parentColumnSpace":{"$numberInt":"1"},"leftColumn":{"$numberInt":"0"},"children":[{"backgroundColor":"#FFFFFF","widgetName":"Container14","type":"CONTAINER_WIDGET","widgetId":"5jp6uwe34j","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","snapColumns":{"$numberInt":"16"},"snapRows":{"$numberInt":"32"},"orientation":"VERTICAL","children":[],"background":"#FFFFFF","leftColumn":{"$numberInt":"1"},"topRow":{"$numberInt":"15"},"rightColumn":{"$numberInt":"7"},"bottomRow":{"$numberInt":"19"}},{"backgroundColor":"#FFFFFF","widgetName":"Container16","type":"CONTAINER_WIDGET","widgetId":"sm0u7embtm","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"4"},"rightColumn":{"$numberInt":"13"},"topRow":{"$numberInt":"2"},"bottomRow":{"$numberInt":"9"},"snapColumns":{"$numberInt":"16"},"snapRows":{"$numberInt":"32"},"orientation":"VERTICAL","children":[{"text":"Submit","buttonStyle":"PRIMARY_BUTTON","widgetName":"Button8","type":"BUTTON_WIDGET","widgetId":"54buqngnv3","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"1"},"rightColumn":{"$numberInt":"10"},"topRow":{"$numberInt":"3"},"bottomRow":{"$numberInt":"6"}},{"text":"Submit","buttonStyle":"PRIMARY_BUTTON","widgetName":"Button12","type":"BUTTON_WIDGET","widgetId":"ep0rjwvlft","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"11"},"rightColumn":{"$numberInt":"15"},"topRow":{"$numberInt":"2"},"bottomRow":{"$numberInt":"4"},"backgroundColor":"#FFFFFF"}],"background":"#FFFFFF"},{"text":"Submit","buttonStyle":"PRIMARY_BUTTON","widgetName":"Button9","type":"BUTTON_WIDGET","widgetId":"yfp2d3i4o1","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"2"},"rightColumn":{"$numberInt":"4"},"topRow":{"$numberInt":"11"},"bottomRow":{"$numberInt":"14"}},{"text":"Submit","buttonStyle":"PRIMARY_BUTTON","widgetName":"Button10","type":"BUTTON_WIDGET","widgetId":"skm1zkmqcw","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"5"},"rightColumn":{"$numberInt":"8"},"topRow":{"$numberInt":"11"},"bottomRow":{"$numberInt":"14"}},{"text":"Submit","buttonStyle":"PRIMARY_BUTTON","widgetName":"Button11","type":"BUTTON_WIDGET","widgetId":"rrpi7fwhyr","isVisible":true,"parentColumnSpace":{"$numberInt":"75"},"parentRowSpace":{"$numberInt":"40"},"renderMode":"CANVAS","leftColumn":{"$numberInt":"9"},"rightColumn":{"$numberInt":"15"},"topRow":{"$numberInt":"10"},"bottomRow":{"$numberInt":"19"}}]},"deleted":false},{"_id":ObjectId("5d81c99757a58e569bf1aa4b"),"screen":"MOBILE","dsl":{"key1":"value1","key":"value"},"deleted":false},{"_id":ObjectId("5d81d97b57a58e575b6ac0da"),"screen":"MOBILE","dsl":{"newkey1":"newvalue1","key":"value"},"deleted":false}],"deleted":false,"_class":"com.appsmith.server.domains.Page"} + db.page.insert({ + "_id": ObjectId("5d807e76795dc6000482bc76"), + "name": "page1", + "applicationId": "5d807e45795dc6000482bc74", + "layouts": [{ + "_id": ObjectId("5d807e76795dc6000482bc75"), "dsl": { + "backgroundColor": "#ffffff", + "rightColumn": {"$numberInt": "1200"}, + "snapColumns": {"$numberInt": "16"}, + "widgetId": "0", + "topRow": {"$numberInt": "0"}, + "bottomRow": {"$numberInt": "974"}, + "snapRows": {"$numberInt": "100"}, + "parentRowSpace": {"$numberInt": "1"}, + "type": "CONTAINER_WIDGET", + "renderMode": "CANVAS", + "parentColumnSpace": {"$numberInt": "1"}, + "leftColumn": {"$numberInt": "0"}, + "children": [{ + "backgroundColor": "#FFFFFF", + "widgetName": "Container14", + "type": "CONTAINER_WIDGET", + "widgetId": "5jp6uwe34j", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "snapColumns": {"$numberInt": "16"}, + "snapRows": {"$numberInt": "32"}, + "orientation": "VERTICAL", + "children": [], + "background": "#FFFFFF", + "leftColumn": {"$numberInt": "1"}, + "topRow": {"$numberInt": "15"}, + "rightColumn": {"$numberInt": "7"}, + "bottomRow": {"$numberInt": "19"} + }, { + "backgroundColor": "#FFFFFF", + "widgetName": "Container16", + "type": "CONTAINER_WIDGET", + "widgetId": "sm0u7embtm", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "4"}, + "rightColumn": {"$numberInt": "13"}, + "topRow": {"$numberInt": "2"}, + "bottomRow": {"$numberInt": "9"}, + "snapColumns": {"$numberInt": "16"}, + "snapRows": {"$numberInt": "32"}, + "orientation": "VERTICAL", + "children": [{ + "text": "Submit", + "buttonStyle": "PRIMARY_BUTTON", + "widgetName": "Button8", + "type": "BUTTON_WIDGET", + "widgetId": "54buqngnv3", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "1"}, + "rightColumn": {"$numberInt": "10"}, + "topRow": {"$numberInt": "3"}, + "bottomRow": {"$numberInt": "6"} + }, { + "text": "Submit", + "buttonStyle": "PRIMARY_BUTTON", + "widgetName": "Button12", + "type": "BUTTON_WIDGET", + "widgetId": "ep0rjwvlft", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "11"}, + "rightColumn": {"$numberInt": "15"}, + "topRow": {"$numberInt": "2"}, + "bottomRow": {"$numberInt": "4"}, + "backgroundColor": "#FFFFFF" + }], + "background": "#FFFFFF" + }, { + "text": "Submit", + "buttonStyle": "PRIMARY_BUTTON", + "widgetName": "Button9", + "type": "BUTTON_WIDGET", + "widgetId": "yfp2d3i4o1", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "2"}, + "rightColumn": {"$numberInt": "4"}, + "topRow": {"$numberInt": "11"}, + "bottomRow": {"$numberInt": "14"} + }, { + "text": "Submit", + "buttonStyle": "PRIMARY_BUTTON", + "widgetName": "Button10", + "type": "BUTTON_WIDGET", + "widgetId": "skm1zkmqcw", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "5"}, + "rightColumn": {"$numberInt": "8"}, + "topRow": {"$numberInt": "11"}, + "bottomRow": {"$numberInt": "14"} + }, { + "text": "Submit", + "buttonStyle": "PRIMARY_BUTTON", + "widgetName": "Button11", + "type": "BUTTON_WIDGET", + "widgetId": "rrpi7fwhyr", + "isVisible": true, + "parentColumnSpace": {"$numberInt": "75"}, + "parentRowSpace": {"$numberInt": "40"}, + "renderMode": "CANVAS", + "leftColumn": {"$numberInt": "9"}, + "rightColumn": {"$numberInt": "15"}, + "topRow": {"$numberInt": "10"}, + "bottomRow": {"$numberInt": "19"} + }] + }, "deleted": false + }, { + "_id": ObjectId("5d81c99757a58e569bf1aa4b"), + "screen": "MOBILE", + "dsl": {"key1": "value1", "key": "value"}, + "deleted": false + }, { + "_id": ObjectId("5d81d97b57a58e575b6ac0da"), + "screen": "MOBILE", + "dsl": {"newkey1": "newvalue1", "key": "value"}, + "deleted": false + }], + "deleted": false, + "_class": "com.appsmith.server.domains.Page" + } ), - db.config.insert({"_id":ObjectId("5d8a04195cf8050004db6e30"),"config":{"BUTTON_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6de2"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6de3"),"propertyName":"text","label":"Button Text","controlType":"INPUT_TEXT","placeholderText":"Enter button text here"},{"_id":ObjectId("5d8a04195cf8050004db6de4"),"propertyName":"buttonStyle","label":"Button Style","controlType":"DROP_DOWN","options":[{"label":"Primary Button","value":"PRIMARY_BUTTON"},{"label":"Secondary Button","value":"SECONDARY_BUTTON"}]},{"_id":ObjectId("5d8a04195cf8050004db6de5"),"propertyName":"isDisabled","label":"Disabled","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6de6"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6de7"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6de8"),"propertyName":"onClick","label":"onClick","controlType":"ACTION_SELECTOR"}]}],"TEXT_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6de9"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6dea"),"propertyName":"text","label":"Text","controlType":"INPUT_TEXT","placeholderText":"Enter your text here"},{"_id":ObjectId("5d8a04195cf8050004db6deb"),"propertyName":"textStyle","label":"Text Style","controlType":"DROP_DOWN","options":[{"label":"Heading","value":"HEADING"},{"label":"Label","value":"LABEL"},{"label":"Body","value":"BODY"},{"label":"Sub text","value":"SUB_TEXT"}]},{"_id":ObjectId("5d8a04195cf8050004db6dec"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]}],"IMAGE_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6ded"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6dee"),"propertyName":"image","label":"Image","controlType":"IMAGE_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6def"),"propertyName":"defaultImage","label":"Default Image","controlType":"IMAGE_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6df0"),"propertyName":"imageShape","label":"Shape","controlType":"SHAPE_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6df1"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]}],"INPUT_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6df2"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6df3"),"propertyName":"label","label":"Label","controlType":"INPUT_TEXT","placeholderText":"Label the widget","inputType":"TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6df4"),"propertyName":"inputType","label":"Data Type","controlType":"DROP_DOWN","options":[{"label":"Text","value":"TEXT"},{"label":"Number","value":"NUMBER"},{"label":"Integer","value":"INTEGER"},{"label":"Phone Number","value":"PHONE_NUMBER"},{"label":"Email","value":"EMAIL"},{"label":"Passwork","value":"PASSWORD"},{"label":"Currency","value":"CURRENCY"},{"label":"Search","value":"SEARCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6df5"),"propertyName":"placeholderText","label":"Placeholder","controlType":"INPUT_TEXT","placeholderText":"Enter your text here"},{"_id":ObjectId("5d8a04195cf8050004db6df6"),"propertyName":"maxChars","label":"Max Chars","controlType":"INPUT_TEXT","placeholderText":"Maximum character length","inputType":"INTEGER"},{"_id":ObjectId("5d8a04195cf8050004db6df7"),"propertyName":"validators","label":"Validators","controlType":"VALIDATION_INPUT"},{"_id":ObjectId("5d8a04195cf8050004db6df8")},{"_id":ObjectId("5d8a04195cf8050004db6df9"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6dfa"),"propertyName":"isDisabled","label":"Disabled","controlType":"SWITCH"}]}],"SWITCH_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6dfb"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6dfc"),"propertyName":"label","label":"Label","controlType":"INPUT_TEXT","placeholderText":"Label the widget","inputType":"TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6dfd"),"propertyName":"isOn","label":"Default State","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6dfe"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6dff"),"propertyName":"isDisabled","label":"Disabled","controlType":"SWITCH"}]}],"CONTAINER_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e00"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e01"),"propertyName":"backgroundColor","label":"Background Color","controlType":"COLOR_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6e02"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]}],"SPINNER_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e03"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e04"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]}],"DATE_PICKER_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e05"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e06"),"propertyName":"datePickerType","label":"Picker Type","controlType":"DROP_DOWN","options":[{"label":"Single Date","value":"DATE_PICKER"},{"label":"Date Range","value":"DATE_RANGE_PICKER"}]},{"_id":ObjectId("5d8a04195cf8050004db6e07"),"propertyName":"label","label":"Enter Date Label","controlType":"INPUT_TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6e08"),"propertyName":"defaultDate","label":"Default Date","controlType":"DATE_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6e09"),"propertyName":"defaultTimezone","label":"Default Timezone","controlType":"TIMEZONE_PICKER"},{"_id":ObjectId("5d8a04195cf8050004db6e0a"),"propertyName":"enableTime","label":"Enable Pick Time","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6e0b"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6e0c"),"propertyName":"isDisabled","label":"Disabled","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6e0d"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6e0e"),"propertyName":"onDateSelected","label":"onDateSelected","controlType":"ACTION_SELECTOR"},{"_id":ObjectId("5d8a04195cf8050004db6e0f"),"propertyName":"onDateRangeSelected","label":"onDateRangeSelected","controlType":"ACTION_SELECTOR"}]}],"TABLE_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e10"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e11"),"propertyName":"label","label":"Enter Table Label","controlType":"INPUT_TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6e12"),"propertyName":"tableData","label":"Enter data array","controlType":"INPUT_TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6e13"),"propertyName":"nextPageKey","label":"Next Pagination Key","controlType":"INPUT_TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6e14"),"propertyName":"prevPageKey","label":"Previous Pagination Key","controlType":"INPUT_TEXT"},{"_id":ObjectId("5d8a04195cf8050004db6e15"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6e16"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6e17"),"propertyName":"tableActions","label":"Record action","controlType":"RECORD_ACTION_SELECTOR"},{"_id":ObjectId("5d8a04195cf8050004db6e18"),"propertyName":"onRowSelected","label":"onRowSelected","controlType":"ACTION_SELECTOR"},{"_id":ObjectId("5d8a04195cf8050004db6e19"),"propertyName":"onPageChange","label":"onPageChange","controlType":"ACTION_SELECTOR"}]}],"DROP_DOWN_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e1a"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e1b"),"propertyName":"type","label":"Selection Type","controlType":"DROP_DOWN","options":[{"label":"Single Select","value":"SINGLE_SELECT"},{"label":"Multi Select","value":"MULTI_SELECT"}]},{"_id":ObjectId("5d8a04195cf8050004db6e1c"),"propertyName":"label","label":"Label","controlType":"INPUT_TEXT","placeholderText":"Enter the label"},{"_id":ObjectId("5d8a04195cf8050004db6e1d"),"propertyName":"placeholderText","label":"Placeholder","controlType":"INPUT_TEXT","placeholderText":"Enter the placeholder"},{"_id":ObjectId("5d8a04195cf8050004db6e1e"),"propertyName":"options","label":"Options","controlType":"OPTION_INPUT"},{"_id":ObjectId("5d8a04195cf8050004db6e1f"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6e20"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6e21"),"propertyName":"onOptionSelected","label":"onOptionSelected","controlType":"ACTION_SELECTOR"}]}],"CHECKBOX_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e22"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e23"),"propertyName":"label","label":"Label","controlType":"INPUT_TEXT","placeholderText":"Enter the label"},{"_id":ObjectId("5d8a04195cf8050004db6e24"),"propertyName":"defaultCheckedState","label":"Default State","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6e25"),"propertyName":"isDisabled","label":"Disabled","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6e26"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6e27"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6e28"),"propertyName":"onCheckChange","label":"onCheckChange","controlType":"ACTION_SELECTOR"}]}],"RADIO_GROUP_WIDGET":[{"_id":ObjectId("5d8a04195cf8050004db6e29"),"sectionName":"General","children":[{"_id":ObjectId("5d8a04195cf8050004db6e2a"),"propertyName":"label","label":"Label","controlType":"INPUT_TEXT","placeholderText":"Enter the label"},{"_id":ObjectId("5d8a04195cf8050004db6e2b"),"propertyName":"defaultOptionValue","label":"Default Selected Value","controlType":"SWITCH"},{"_id":ObjectId("5d8a04195cf8050004db6e2c"),"propertyName":"options","label":"Options","controlType":"OPTION_INPUT"},{"_id":ObjectId("5d8a04195cf8050004db6e2d"),"propertyName":"isVisible","label":"Visibile","controlType":"SWITCH"}]},{"_id":ObjectId("5d8a04195cf8050004db6e2e"),"sectionName":"Actions","children":[{"_id":ObjectId("5d8a04195cf8050004db6e2f"),"propertyName":"onOptionSelected","label":"onOptionSelected","controlType":"ACTION_SELECTOR"}]}]},"configVersion":"5d8a04195cf8050004db6e30","deleted":false,"_class":"com.appsmith.server.domains.PropertyPane"}) + db.config.insert({ + "_id": ObjectId("5d8a04195cf8050004db6e30"), + "config": { + "BUTTON_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6de2"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6de3"), + "propertyName": "text", + "label": "Button Text", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter button text here" + }, { + "_id": ObjectId("5d8a04195cf8050004db6de4"), + "propertyName": "buttonStyle", + "label": "Button Style", + "controlType": "DROP_DOWN", + "options": [{"label": "Primary Button", "value": "PRIMARY_BUTTON"}, { + "label": "Secondary Button", + "value": "SECONDARY_BUTTON" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6de5"), + "propertyName": "isDisabled", + "label": "Disabled", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6de6"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6de7"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6de8"), + "propertyName": "onClick", + "label": "onClick", + "controlType": "ACTION_SELECTOR" + }] + }], + "TEXT_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6de9"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6dea"), + "propertyName": "text", + "label": "Text", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter your text here" + }, { + "_id": ObjectId("5d8a04195cf8050004db6deb"), + "propertyName": "textStyle", + "label": "Text Style", + "controlType": "DROP_DOWN", + "options": [{"label": "Heading", "value": "HEADING"}, { + "label": "Label", + "value": "LABEL" + }, {"label": "Body", "value": "BODY"}, {"label": "Sub text", "value": "SUB_TEXT"}] + }, { + "_id": ObjectId("5d8a04195cf8050004db6dec"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }], + "IMAGE_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6ded"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6dee"), + "propertyName": "image", + "label": "Image", + "controlType": "IMAGE_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6def"), + "propertyName": "defaultImage", + "label": "Default Image", + "controlType": "IMAGE_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6df0"), + "propertyName": "imageShape", + "label": "Shape", + "controlType": "SHAPE_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6df1"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }], + "INPUT_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6df2"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6df3"), + "propertyName": "label", + "label": "Label", + "controlType": "INPUT_TEXT", + "placeholderText": "Label the widget", + "inputType": "TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6df4"), + "propertyName": "inputType", + "label": "Data Type", + "controlType": "DROP_DOWN", + "options": [{"label": "Text", "value": "TEXT"}, { + "label": "Number", + "value": "NUMBER" + }, {"label": "Integer", "value": "INTEGER"}, { + "label": "Phone Number", + "value": "PHONE_NUMBER" + }, {"label": "Email", "value": "EMAIL"}, { + "label": "Passwork", + "value": "PASSWORD" + }, {"label": "Currency", "value": "CURRENCY"}, {"label": "Search", "value": "SEARCH"}] + }, { + "_id": ObjectId("5d8a04195cf8050004db6df5"), + "propertyName": "placeholderText", + "label": "Placeholder", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter your text here" + }, { + "_id": ObjectId("5d8a04195cf8050004db6df6"), + "propertyName": "maxChars", + "label": "Max Chars", + "controlType": "INPUT_TEXT", + "placeholderText": "Maximum character length", + "inputType": "INTEGER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6df7"), + "propertyName": "validators", + "label": "Validators", + "controlType": "VALIDATION_INPUT" + }, {"_id": ObjectId("5d8a04195cf8050004db6df8")}, { + "_id": ObjectId("5d8a04195cf8050004db6df9"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6dfa"), + "propertyName": "isDisabled", + "label": "Disabled", + "controlType": "SWITCH" + }] + }], + "SWITCH_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6dfb"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6dfc"), + "propertyName": "label", + "label": "Label", + "controlType": "INPUT_TEXT", + "placeholderText": "Label the widget", + "inputType": "TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6dfd"), + "propertyName": "isOn", + "label": "Default State", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6dfe"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6dff"), + "propertyName": "isDisabled", + "label": "Disabled", + "controlType": "SWITCH" + }] + }], + "CONTAINER_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e00"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e01"), + "propertyName": "backgroundColor", + "label": "Background Color", + "controlType": "COLOR_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e02"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }], + "SPINNER_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e03"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e04"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }], + "DATE_PICKER_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e05"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e06"), + "propertyName": "datePickerType", + "label": "Picker Type", + "controlType": "DROP_DOWN", + "options": [{"label": "Single Date", "value": "DATE_PICKER"}, { + "label": "Date Range", + "value": "DATE_RANGE_PICKER" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e07"), + "propertyName": "label", + "label": "Enter Date Label", + "controlType": "INPUT_TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e08"), + "propertyName": "defaultDate", + "label": "Default Date", + "controlType": "DATE_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e09"), + "propertyName": "defaultTimezone", + "label": "Default Timezone", + "controlType": "TIMEZONE_PICKER" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e0a"), + "propertyName": "enableTime", + "label": "Enable Pick Time", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e0b"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e0c"), + "propertyName": "isDisabled", + "label": "Disabled", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e0d"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e0e"), + "propertyName": "onDateSelected", + "label": "onDateSelected", + "controlType": "ACTION_SELECTOR" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e0f"), + "propertyName": "onDateRangeSelected", + "label": "onDateRangeSelected", + "controlType": "ACTION_SELECTOR" + }] + }], + "TABLE_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e10"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e11"), + "propertyName": "label", + "label": "Enter Table Label", + "controlType": "INPUT_TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e12"), + "propertyName": "tableData", + "label": "Enter data array", + "controlType": "INPUT_TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e13"), + "propertyName": "nextPageKey", + "label": "Next Pagination Key", + "controlType": "INPUT_TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e14"), + "propertyName": "prevPageKey", + "label": "Previous Pagination Key", + "controlType": "INPUT_TEXT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e15"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e16"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e17"), + "propertyName": "tableActions", + "label": "Record action", + "controlType": "RECORD_ACTION_SELECTOR" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e18"), + "propertyName": "onRowSelected", + "label": "onRowSelected", + "controlType": "ACTION_SELECTOR" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e19"), + "propertyName": "onPageChange", + "label": "onPageChange", + "controlType": "ACTION_SELECTOR" + }] + }], + "DROP_DOWN_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e1a"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e1b"), + "propertyName": "type", + "label": "Selection Type", + "controlType": "DROP_DOWN", + "options": [{"label": "Single Select", "value": "SINGLE_SELECT"}, { + "label": "Multi Select", + "value": "MULTI_SELECT" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e1c"), + "propertyName": "label", + "label": "Label", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter the label" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e1d"), + "propertyName": "placeholderText", + "label": "Placeholder", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter the placeholder" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e1e"), + "propertyName": "options", + "label": "Options", + "controlType": "OPTION_INPUT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e1f"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e20"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e21"), + "propertyName": "onOptionSelected", + "label": "onOptionSelected", + "controlType": "ACTION_SELECTOR" + }] + }], + "CHECKBOX_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e22"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e23"), + "propertyName": "label", + "label": "Label", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter the label" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e24"), + "propertyName": "defaultCheckedState", + "label": "Default State", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e25"), + "propertyName": "isDisabled", + "label": "Disabled", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e26"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e27"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e28"), + "propertyName": "onCheckChange", + "label": "onCheckChange", + "controlType": "ACTION_SELECTOR" + }] + }], + "RADIO_GROUP_WIDGET": [{ + "_id": ObjectId("5d8a04195cf8050004db6e29"), + "sectionName": "General", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e2a"), + "propertyName": "label", + "label": "Label", + "controlType": "INPUT_TEXT", + "placeholderText": "Enter the label" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e2b"), + "propertyName": "defaultOptionValue", + "label": "Default Selected Value", + "controlType": "SWITCH" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e2c"), + "propertyName": "options", + "label": "Options", + "controlType": "OPTION_INPUT" + }, { + "_id": ObjectId("5d8a04195cf8050004db6e2d"), + "propertyName": "isVisible", + "label": "Visibile", + "controlType": "SWITCH" + }] + }, { + "_id": ObjectId("5d8a04195cf8050004db6e2e"), + "sectionName": "Actions", + "children": [{ + "_id": ObjectId("5d8a04195cf8050004db6e2f"), + "propertyName": "onOptionSelected", + "label": "onOptionSelected", + "controlType": "ACTION_SELECTOR" + }] + }] + }, + "configVersion": "5d8a04195cf8050004db6e30", + "deleted": false, + "_class": "com.appsmith.server.domains.PropertyPane" + }) ] printjson(res) if (error) { - print('Error occurred while inserting the records') + print('Error occurred while inserting the records') } \ No newline at end of file