vaadin / starters

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

Problem creating new starter #139

Closed se1dhe closed 11 months ago

se1dhe commented 1 year ago

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

This was the configuration used:

{
  "applicationConfiguration": {
    "projectName": "Панель управления",
    "groupId": "com.example.application",
    "vaadinVersion": "v24",
    "codeGeneration": "JAVA",
    "dockerConfiguration": false,
    "kubernetesConfiguration": false,
    "alwaysGenerateBackend": false,
    "javaVersion": 17,
    "access": "PUBLIC",
    "experimentalFeatures": [],
    "git": true,
    "runOnRandomPort": false,
    "generatedProjectId": "c80842e0-fedc-4fbc-af66-6756585ed105"
  },
  "theme": {
    "componentStyles": {},
    "variant": "light",
    "styles": ""
  },
  "views": [
    {
      "name": "Main",
      "type": "menu-on-left-layout",
      "route": "",
      "entityId": -1,
      "children": [
        {
          "id": 6,
          "name": "Hello World",
          "type": "hello-world-view",
          "route": "hello-world",
          "icon": "globe-solid",
          "entityId": -1,
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 5,
          "name": "Все тикеты",
          "type": "master-detail-view",
          "route": "master-detail",
          "icon": "tasks-solid",
          "entityId": 1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": true,
          "codeGeneration": "JAVAHTML"
        },
        {
          "id": 4,
          "name": "Чат в тикетах",
          "type": "chat-view",
          "route": "chat",
          "icon": "comments",
          "entityId": -1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": false,
          "generateUrlTemplate": false
        },
        {
          "id": 3,
          "name": "Пользователи",
          "type": "grid-with-filters-view",
          "route": "users",
          "icon": "user-circle",
          "entityId": 1,
          "access": "ADMIN_ROLE",
          "children": [],
          "generateTestData": true,
          "generateUrlTemplate": false
        }
      ],
      "generateTestData": false,
      "generateUrlTemplate": false,
      "id": 0
    }
  ],
  "entities": [
    {
      "id": 1,
      "name": "SamplePerson",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "firstName",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "lastName",
          "dataType": "LAST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "email",
          "dataType": "EMAIL",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "jakarta.validation.constraints.Email",
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "phone",
          "dataType": "PHONE_NUMBER",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "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": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "role",
          "dataType": "WORK_ROLE",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "important",
          "dataType": "BOOLEAN_10_90",
          "editorType": "vaadin-checkbox",
          "fieldType": "boolean",
          "uiType": "Checkbox",
          "validators": []
        }
      ]
    },
    {
      "id": 5,
      "name": "User",
      "fields": [
        {
          "name": "id",
          "dataType": "ID",
          "editorType": "vaadin-text-field",
          "fieldType": "Integer",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "username",
          "dataType": "FIRST_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "name",
          "dataType": "FULL_NAME",
          "editorType": "vaadin-text-field",
          "fieldType": "String",
          "uiType": "Text",
          "validators": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "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": [
            "dev.hilla.Nonnull"
          ]
        },
        {
          "name": "profilePicture",
          "dataType": "PROFILE_PICTURE_URL",
          "editorType": "vaadin-upload",
          "fieldType": "ImageData",
          "uiType": "Image",
          "validators": [
            "dev.hilla.Nonnull"
          ],
          "uiHints": {
            "gridColumnWidth": "96px",
            "height": "MEDIUM",
            "roundImage": true
          }
        }
      ]
    }
  ],
}
MarcinVaadin commented 1 year ago

Project name is used as artifact id and cannot contain non-latin characters. Validation of those fields will be added soon.