spring-cloud / spring-cloud-dataflow-ui

@@ -15,6 +15,25 @@
Loading
15 15
    let inputType = Properties.InputType.TEXT;
16 16
    let validation: Properties.Validation;
17 17
    if (property.isSemantic) {
18 +
19 +
      // valueHints mean we have a set of possible values, see if we can use those
20 +
      if (property.hints && property.hints.valueHints) {
21 +
22 +
        // array and we have hints, assume we can now use selector
23 +
        if (Array.isArray(property.hints.valueHints) && property.hints.valueHints.length > 0) {
24 +
          return new Properties.SelectControlModel(property,
25 +
            Properties.InputType.SELECT, (<Array<any>> property.hints.valueHints)
26 +
              .filter(o => o.value.length > 0)
27 +
              .map(o => {
28 +
                return {
29 +
                  name: o.value,
30 +
                  value: o.value === property.defaultValue ? undefined : o.value
31 +
                };
32 +
              }));
33 +
        }
34 +
      }
35 +
36 +
      // then try to use type
18 37
      switch (property.type) {
19 38
        case 'java.lang.Long':
20 39
        case 'java.lang.Integer':
@@ -58,6 +77,8 @@
Loading
58 77
          }
59 78
      }
60 79
    }
80 +
81 +
    // fall back to generic
61 82
    return new Properties.GenericControlModel(property, inputType, validation);
62 83
  }
63 84
Files Coverage
ui/src 75.92%
Project Totals (244 files) 75.92%
1914.1
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux
1903.1
TRAVIS_JDK_VERSION=oraclejdk8
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading