vaadin / starters

Issue repository for all the starter projects in https://vaadin.com/start
3 stars 0 forks source link

Problem creating new starter #156

Closed miku76 closed 11 months ago

miku76 commented 11 months ago

I was unable to download my application from start.vaadin.com.

This was the configuration used:

{
  "applicationConfiguration": {
    "projectName": "GarageSale",
    "groupId": "de-midgard-code.garagesale",
    "vaadinVersion": "v24",
    "codeGeneration": "JAVA",
    "dockerConfiguration": false,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": true,
    "javaVersion": "17",
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": true,
    "runOnRandomPort": false,
    "artifactId": "garagesale-app",
    "sizingFeatureEnabled": true,
    "database": "POSTGRESQL",
    "generatedProjectId": "cfbb72ca-d920-4de3-a09b-a2300611c931"
  },
  "theme": {
    "componentStyles": {},
    "variant": "light",
    "styles": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-left-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "id": 8,
          "name": "Feed",
          "type": "card-list-view",
          "route": "feed",
          "icon": "list-solid",
          "entityId": -1,
          "access": "",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false
        },
        {
          "id": 9,
          "name": "Person Form",
          "type": "person-form-view",
          "route": "person-form",
          "icon": "user",
          "entityId": 1,
          "access": "LOGGED_IN",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "componentModel": {
            "children": [
              {
                "parameters": {
                  "gap": "m",
                  "padding": "m",
                  "parentLayoutType": "layout-column"
                },
                "type": "layout-column",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%",
                      "max-width": "800px"
                    },
                    "maxValue": "800px"
                  },
                  "height": {
                    "mode": "hug",
                    "styles": {
                      "height": "min-content"
                    }
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "text": "Personal Information",
                      "parentLayoutType": "layout-column"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  },
                  {
                    "parameters": {
                      "parentLayoutType": "layout-column"
                    },
                    "type": "form-layout-2-col",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    },
                    "children": [
                      {
                        "parameters": {
                          "label": "First Name",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Last Name",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Birthday",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "date-picker"
                      },
                      {
                        "parameters": {
                          "label": "Phone Number",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "text-field"
                      },
                      {
                        "parameters": {
                          "label": "Email",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "email-field"
                      },
                      {
                        "parameters": {
                          "label": "Occupation",
                          "parentLayoutType": "layout-column"
                        },
                        "type": "text-field"
                      }
                    ]
                  },
                  {
                    "parameters": {
                      "parentLayoutType": "layout-column",
                      "gap": "m"
                    },
                    "type": "layout-row",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "fill",
                        "styles": {
                          "flex-grow": "1"
                        }
                      }
                    },
                    "children": [
                      {
                        "parameters": {
                          "text": "Save",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-primary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "text": "Cancel",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-secondary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      }
                    ]
                  }
                ]
              }
            ],
            "default": {
              "children": [
                {
                  "parameters": {
                    "gap": "m",
                    "padding": "m",
                    "parentLayoutType": "layout-column"
                  },
                  "type": "layout-column",
                  "sizingParams": {
                    "width": {
                      "mode": "fill",
                      "styles": {
                        "width": "100%",
                        "max-width": "800px"
                      },
                      "maxValue": "800px"
                    },
                    "height": {
                      "mode": "hug",
                      "styles": {
                        "height": "min-content"
                      }
                    }
                  },
                  "children": [
                    {
                      "parameters": {
                        "text": "Personal Information",
                        "parentLayoutType": "layout-column"
                      },
                      "type": "h3",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      }
                    },
                    {
                      "parameters": {
                        "parentLayoutType": "layout-column"
                      },
                      "type": "form-layout-2-col",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "label": "First Name",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Last Name",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Birthday",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "date-picker"
                        },
                        {
                          "parameters": {
                            "label": "Phone Number",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "text-field"
                        },
                        {
                          "parameters": {
                            "label": "Email",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "email-field"
                        },
                        {
                          "parameters": {
                            "label": "Occupation",
                            "parentLayoutType": "layout-column"
                          },
                          "type": "text-field"
                        }
                      ]
                    },
                    {
                      "parameters": {
                        "parentLayoutType": "layout-column",
                        "gap": "m"
                      },
                      "type": "layout-row",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "fill",
                          "styles": {
                            "flex-grow": "1"
                          }
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "text": "Save",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-primary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "text": "Cancel",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-secondary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        }
                      ]
                    }
                  ]
                }
              ],
              "parameters": {
                "gap": "m",
                "padding": "m",
                "alignItems": "start-center"
              },
              "sizingParams": {
                "width": {
                  "mode": "fill",
                  "styles": {
                    "width": "100%"
                  }
                },
                "height": {
                  "mode": "fill",
                  "styles": {
                    "flex-grow": "1"
                  }
                }
              },
              "type": "layout-column"
            },
            "parameters": {
              "gap": "m",
              "padding": "m",
              "alignItems": "start-center"
            },
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                }
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            },
            "type": "layout-column"
          }
        },
        {
          "id": 10,
          "name": "Address Form",
          "type": "address-form-view",
          "route": "address-form",
          "icon": "map-marker-solid",
          "entityId": 2,
          "access": "",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "componentModel": {
            "children": [
              {
                "parameters": {
                  "crossLength": "100%",
                  "mainLength": "100%",
                  "gap": "m",
                  "padding": "m",
                  "parentLayoutType": "layout-column"
                },
                "type": "layout-column",
                "sizingParams": {
                  "width": {
                    "mode": "fill",
                    "styles": {
                      "width": "100%",
                      "max-width": "800px"
                    },
                    "maxValue": "800px"
                  },
                  "height": {
                    "mode": "hug",
                    "styles": {
                      "height": "min-content"
                    }
                  }
                },
                "children": [
                  {
                    "parameters": {
                      "text": "Address",
                      "parentLayoutType": "layout-column"
                    },
                    "type": "h3",
                    "sizingParams": {
                      "width": {
                        "mode": "hug",
                        "styles": {
                          "width": "min-content"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  },
                  {
                    "parameters": {
                      "label": "Street address",
                      "parentLayoutType": "layout-column"
                    },
                    "type": "text-field",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    }
                  },
                  {
                    "parameters": {
                      "parentLayoutType": "layout-column"
                    },
                    "type": "form-layout-2-col",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {}
                      }
                    },
                    "children": [
                      {
                        "parameters": {
                          "label": "Postal code"
                        },
                        "type": "text-field",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "label": "City"
                        },
                        "type": "text-field",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "label": "State"
                        },
                        "items": [
                          {
                            "label": "State 1",
                            "value": "state1"
                          },
                          {
                            "label": "State 2",
                            "value": "state2"
                          },
                          {
                            "label": "State 3",
                            "value": "state3"
                          }
                        ],
                        "type": "select",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "label": "Country"
                        },
                        "items": [
                          {
                            "label": "Country 1",
                            "value": "country1"
                          },
                          {
                            "label": "Country 2",
                            "value": "country2"
                          },
                          {
                            "label": "Country 3",
                            "value": "country3"
                          }
                        ],
                        "type": "select",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      }
                    ]
                  },
                  {
                    "parameters": {
                      "crossLength": "100%",
                      "mainLength": "100%",
                      "gap": "m",
                      "parentLayoutType": "layout-column"
                    },
                    "type": "layout-row",
                    "sizingParams": {
                      "width": {
                        "mode": "fill",
                        "styles": {
                          "width": "100%"
                        }
                      },
                      "height": {
                        "mode": "hug",
                        "styles": {
                          "height": "min-content"
                        }
                      }
                    },
                    "children": [
                      {
                        "parameters": {
                          "text": "Save",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-primary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      },
                      {
                        "parameters": {
                          "text": "Cancel",
                          "parentLayoutType": "layout-row"
                        },
                        "type": "button-secondary",
                        "sizingParams": {
                          "width": {
                            "mode": "hug",
                            "styles": {
                              "width": "min-content"
                            }
                          },
                          "height": {
                            "mode": "hug",
                            "styles": {}
                          }
                        }
                      }
                    ]
                  }
                ]
              }
            ],
            "default": {
              "type": "layout-column",
              "parameters": {
                "gap": "m",
                "padding": "m",
                "alignItems": "start-center"
              },
              "sizingParams": {
                "width": {
                  "mode": "fill",
                  "styles": {
                    "width": "100%"
                  }
                },
                "height": {
                  "mode": "fill",
                  "styles": {
                    "flex-grow": "1"
                  }
                }
              },
              "children": [
                {
                  "parameters": {
                    "crossLength": "100%",
                    "mainLength": "100%",
                    "gap": "m",
                    "padding": "m",
                    "parentLayoutType": "layout-column"
                  },
                  "type": "layout-column",
                  "sizingParams": {
                    "width": {
                      "mode": "fill",
                      "styles": {
                        "width": "100%",
                        "max-width": "800px"
                      },
                      "maxValue": "800px"
                    },
                    "height": {
                      "mode": "hug",
                      "styles": {
                        "height": "min-content"
                      }
                    }
                  },
                  "children": [
                    {
                      "parameters": {
                        "text": "Address",
                        "parentLayoutType": "layout-column"
                      },
                      "type": "h3",
                      "sizingParams": {
                        "width": {
                          "mode": "hug",
                          "styles": {
                            "width": "min-content"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      }
                    },
                    {
                      "parameters": {
                        "label": "Street address",
                        "parentLayoutType": "layout-column"
                      },
                      "type": "text-field",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      }
                    },
                    {
                      "parameters": {
                        "parentLayoutType": "layout-column"
                      },
                      "type": "form-layout-2-col",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {}
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "label": "Postal code"
                          },
                          "type": "text-field",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "label": "City"
                          },
                          "type": "text-field",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "label": "State"
                          },
                          "items": [
                            {
                              "label": "State 1",
                              "value": "state1"
                            },
                            {
                              "label": "State 2",
                              "value": "state2"
                            },
                            {
                              "label": "State 3",
                              "value": "state3"
                            }
                          ],
                          "type": "select",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "label": "Country"
                          },
                          "items": [
                            {
                              "label": "Country 1",
                              "value": "country1"
                            },
                            {
                              "label": "Country 2",
                              "value": "country2"
                            },
                            {
                              "label": "Country 3",
                              "value": "country3"
                            }
                          ],
                          "type": "select",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        }
                      ]
                    },
                    {
                      "parameters": {
                        "crossLength": "100%",
                        "mainLength": "100%",
                        "gap": "m",
                        "parentLayoutType": "layout-column"
                      },
                      "type": "layout-row",
                      "sizingParams": {
                        "width": {
                          "mode": "fill",
                          "styles": {
                            "width": "100%"
                          }
                        },
                        "height": {
                          "mode": "hug",
                          "styles": {
                            "height": "min-content"
                          }
                        }
                      },
                      "children": [
                        {
                          "parameters": {
                            "text": "Save",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-primary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        },
                        {
                          "parameters": {
                            "text": "Cancel",
                            "parentLayoutType": "layout-row"
                          },
                          "type": "button-secondary",
                          "sizingParams": {
                            "width": {
                              "mode": "hug",
                              "styles": {
                                "width": "min-content"
                              }
                            },
                            "height": {
                              "mode": "hug",
                              "styles": {}
                            }
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            "parameters": {
              "gap": "m",
              "padding": "m",
              "alignItems": "start-center"
            },
            "sizingParams": {
              "width": {
                "mode": "fill",
                "styles": {
                  "width": "100%"
                }
              },
              "height": {
                "mode": "fill",
                "styles": {
                  "flex-grow": "1"
                }
              }
            },
            "type": "layout-column"
          }
        },
        {
          "name": "About",
          "type": "empty-view",
          "route": "about",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false,
          "icon": "file",
          "id": 7
        }
      ],
      "generateTestData": false,
      "generateUrlTemplate": false,
      "id": 5
    }
  ],
  "entities": [
    {
      "id": 1,
      "name": "SamplePerson",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "firstName",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "lastName",
          "dataType": "LAST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "email",
          "dataType": "EMAIL",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "jakarta.validation.constraints.Email"
          ]
        },
        {
          "name": "phone",
          "dataType": "PHONE_NUMBER",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "dateOfBirth",
          "dataType": "DATE_OF_BIRTH",
          "editorType": "vaadin-date-picker",
          "fieldType": "LocalDate",
          "uiType": "Text",
          "validators": [
            "jakarta.annotation.Nullable"
          ]
        },
        {
          "name": "occupation",
          "dataType": "OCCUPATION",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "role",
          "dataType": "WORK_ROLE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "important",
          "dataType": "BOOLEAN_10_90",
          "editorType": "vaadin-checkbox",
          "fieldType": "boolean",
          "uiType": "Checkbox",
          "validators": []
        }
      ]
    },
    {
      "id": 2,
      "name": "SampleAddress",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "street",
          "dataType": "ADDRESS",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "postalCode",
          "dataType": "ZIP_CODE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "city",
          "dataType": "CITY",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "state",
          "dataType": "STATE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "country",
          "dataType": "COUNTRY",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        }
      ]
    },
    {
      "id": 5,
      "name": "User",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "username",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "name",
          "dataType": "FULL_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "hashedPassword",
          "dataType": "TWO_WORDS",
          "editorType": "vaadin-text-field",
          "fieldType": "Password",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "roles",
          "dataType": "WORD",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": []
        },
        {
          "name": "profilePicture",
          "dataType": "PROFILE_PICTURE_URL",
          "editorType": "vaadin-upload",
          "fieldType": "ImageData",
          "uiType": "Image",
          "validators": [],
          "uiHints": {
            "gridColumnWidth": "96px",
            "height": "MEDIUM",
            "roundImage": true
          }
        }
      ]
    }
  ]
}
MarcinVaadin commented 11 months ago

Same issue as in https://github.com/vaadin/starters/issues/157, fix implemented, will be released today.