Revize d0401547
Přidáno uživatelem stepanekp před asi 3 roky(ů)
pom.xml | ||
---|---|---|
67 | 67 |
<artifactId>jackson-databind</artifactId> |
68 | 68 |
<version>2.13.2</version> |
69 | 69 |
</dependency> |
70 |
<dependency> |
|
71 |
<groupId>com.fasterxml.jackson.core</groupId> |
|
72 |
<artifactId>jackson-annotations</artifactId> |
|
73 |
<version>2.13.2</version> |
|
74 |
</dependency> |
|
70 | 75 |
</dependencies> |
71 | 76 |
|
72 | 77 |
<build> |
73 |
<plugins> |
|
74 |
<plugin> |
|
75 |
<groupId>org.springframework.boot</groupId> |
|
76 |
<artifactId>spring-boot-maven-plugin</artifactId> |
|
77 |
</plugin> |
|
78 |
</plugins> |
|
78 |
<pluginManagement> |
|
79 |
<plugins> |
|
80 |
<plugin> |
|
81 |
<groupId>org.springframework.boot</groupId> |
|
82 |
<artifactId>spring-boot-maven-plugin</artifactId> |
|
83 |
</plugin> |
|
84 |
</plugins> |
|
85 |
</pluginManagement> |
|
79 | 86 |
<resources> |
80 | 87 |
<resource> |
81 | 88 |
<directory>src/main/java/resources</directory> |
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/BusinessAsUsualDetectorImpl.java | ||
---|---|---|
33 | 33 |
private List<String> sqlQueries; |
34 | 34 |
|
35 | 35 |
private float getDivisionOfIterationsWithRetrospective() { |
36 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
37 | 36 |
return ((Percentage) antiPattern.getConfigurations().get("divisionOfIterationsWithRetrospective").getValue()).getValue(); |
38 | 37 |
} |
39 | 38 |
|
40 | 39 |
private List<String> getSearchSubstringsWithRetrospective() { |
41 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
42 | 40 |
return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithRetrospective").getValue()).split("\\|\\|")); |
43 | 41 |
} |
44 | 42 |
|
45 | 43 |
@Override |
46 | 44 |
public AntiPattern getAntiPatternModel() { |
47 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
48 | 45 |
return this.antiPattern; |
49 | 46 |
} |
50 | 47 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/LongOrNonExistentFeedbackLoopsDetectorImpl.java | ||
---|---|---|
39 | 39 |
private List<String> sqlQueries; |
40 | 40 |
|
41 | 41 |
private float getDivisionOfIterationsWithFeedbackLoop() { |
42 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
43 | 42 |
return ((Percentage) antiPattern.getConfigurations().get("divisionOfIterationsWithFeedbackLoop").getValue()).getValue(); |
44 | 43 |
} |
45 | 44 |
|
46 | 45 |
private float getMaxGapBetweenFeedbackLoopRate() { |
47 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
48 | 46 |
return ((PositiveFloat) antiPattern.getConfigurations().get("maxGapBetweenFeedbackLoopRate").getValue()).floatValue(); |
49 | 47 |
} |
50 | 48 |
|
51 | 49 |
private List<String> getSearchSubstringsWithFeedbackLoop() { |
52 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
53 | 50 |
return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithFeedbackLoop").getValue()).split("\\|\\|")); |
54 | 51 |
} |
55 | 52 |
|
56 | 53 |
@Override |
57 | 54 |
public AntiPattern getAntiPatternModel() { |
58 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
59 | 55 |
return this.antiPattern; |
60 | 56 |
} |
61 | 57 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/NinetyNinetyRuleDetectorImpl.java | ||
---|---|---|
29 | 29 |
private List<String> sqlQueries; |
30 | 30 |
|
31 | 31 |
private double getMaxDivisionRange() { |
32 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
33 | 32 |
return ((PositiveFloat) antiPattern.getConfigurations().get("maxDivisionRange").getValue()).doubleValue(); |
34 | 33 |
} |
35 | 34 |
|
36 | 35 |
private int getMaxBadDivisionLimit() { |
37 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
38 | 36 |
return ((PositiveInteger) antiPattern.getConfigurations().get("maxBadDivisionLimit").getValue()).intValue(); |
39 | 37 |
} |
40 | 38 |
|
41 | 39 |
@Override |
42 | 40 |
public AntiPattern getAntiPatternModel() { |
43 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
44 | 41 |
return this.antiPattern; |
45 | 42 |
} |
46 | 43 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/RoadToNowhereDetectorImpl.java | ||
---|---|---|
39 | 39 |
private List<String> sqlQueries; |
40 | 40 |
|
41 | 41 |
private int getMinNumberOfWikiPagesWithProjectPlan() { |
42 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
43 | 42 |
return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfWikiPagesWithProjectPlan").getValue()).intValue(); |
44 | 43 |
} |
45 | 44 |
|
46 | 45 |
private int getMinNumberOfActivitiesWithProjectPlan() { |
47 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
48 | 46 |
return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfActivitiesWithProjectPlan").getValue()).intValue(); |
49 | 47 |
} |
50 | 48 |
|
51 | 49 |
private List<String> getSearchSubstringsWithProjectPlan() { |
52 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
53 | 50 |
return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithProjectPlan").getValue()).split("\\|\\|")); |
54 | 51 |
} |
55 | 52 |
|
56 | 53 |
@Override |
57 | 54 |
public AntiPattern getAntiPatternModel() { |
58 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
59 | 55 |
return this.antiPattern; |
60 | 56 |
} |
61 | 57 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/SpecifyNothingDetectorImpl.java | ||
---|---|---|
38 | 38 |
private List<String> sqlQueries; |
39 | 39 |
|
40 | 40 |
private int getMinNumberOfWikiPagesWithSpecification() { |
41 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
42 | 41 |
return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfWikiPagesWithSpecification").getValue()).intValue(); |
43 | 42 |
} |
44 | 43 |
|
45 | 44 |
private int getMinNumberOfActivitiesWithSpecification() { |
46 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
47 | 45 |
return ((PositiveInteger) antiPattern.getConfigurations().get("minNumberOfActivitiesWithSpecification").getValue()).intValue(); |
48 | 46 |
} |
49 | 47 |
|
50 | 48 |
private int getMinAvgLengthOfActivityDescription() { |
51 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
52 | 49 |
return ((PositiveInteger) antiPattern.getConfigurations().get("minAvgLengthOfActivityDescription").getValue()).intValue(); |
53 | 50 |
} |
54 | 51 |
|
55 | 52 |
private List<String> getSearchSubstringsWithProjectSpecification() { |
56 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
57 | 53 |
return Arrays.asList(((String) antiPattern.getConfigurations().get("searchSubstringsWithProjectSpecification").getValue()).split("\\|\\|")); |
58 | 54 |
} |
59 | 55 |
|
60 | 56 |
@Override |
61 | 57 |
public AntiPattern getAntiPatternModel() { |
62 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
63 | 58 |
return this.antiPattern; |
64 | 59 |
} |
65 | 60 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/TooLongSprintDetectorImpl.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
@Override |
33 | 33 |
public AntiPattern getAntiPatternModel() { |
34 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
35 | 34 |
return this.antiPattern; |
36 | 35 |
} |
37 | 36 |
|
... | ... | |
47 | 46 |
} |
48 | 47 |
|
49 | 48 |
private Integer getMaxIterationLength() { |
50 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
51 | 49 |
return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxIterationLength").getValue()).intValue(); |
52 | 50 |
} |
53 | 51 |
|
54 | 52 |
private Integer getMaxNumberOfTooLongIterations() { |
55 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
56 | 53 |
return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxNumberOfTooLongIterations").getValue()).intValue(); |
57 | 54 |
} |
58 | 55 |
|
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/VaryingSprintLengthDetectorImpl.java | ||
---|---|---|
35 | 35 |
private List<String> sqlQueries; |
36 | 36 |
|
37 | 37 |
private Integer getMaxDaysDifference() { |
38 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
39 | 38 |
return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxDaysDifference").getValue()).intValue(); |
40 | 39 |
} |
41 | 40 |
|
42 | 41 |
private Integer getMaxIterationChanged() { |
43 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
44 | 42 |
return ((PositiveInteger) this.antiPattern.getConfigurations().get("maxIterationChanged").getValue()).intValue(); |
45 | 43 |
} |
46 | 44 |
|
47 | 45 |
@Override |
48 | 46 |
public AntiPattern getAntiPatternModel() { |
49 |
this.antiPattern = antiPatternService.getAntiPatternFromJsonFile(configJsonFileName); |
|
50 | 47 |
return this.antiPattern; |
51 | 48 |
} |
52 | 49 |
|
src/main/webapp/WEB-INF/templates/anti-pattern.html | ||
---|---|---|
92 | 92 |
<button type="button" class="btn rt" data-element="underline"> |
93 | 93 |
<i class="fa fa-underline"></i> |
94 | 94 |
</button> |
95 |
<button type="button" class="btn rt" data-element="codeFormat"> |
|
96 |
<i class="fa fa-code"></i> |
|
97 |
</button> |
|
95 | 98 |
<button type="button" class="btn rt" data-element="justifyLeft"> |
96 | 99 |
<i class="fa fa-align-left"></i> |
97 | 100 |
</button> |
... | ... | |
170 | 173 |
<!-- ./Card for anti pattern details--> |
171 | 174 |
|
172 | 175 |
<!-- Scripts --> |
173 |
<script th:src="@{/resources/js/richtext-editor.js}"></script>
|
|
176 |
<script th:src="@{/resources/js/editor.js}"></script> |
|
174 | 177 |
<script th:src="@{/resources/js/login.js}"></script> |
175 | 178 |
<!-- ./Scripts --> |
176 | 179 |
|
src/main/webapp/operationalizations/TooLongSprint.html | ||
---|---|---|
1 |
<div><h1>This is h1</h1></div><div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla est. </div><div>Etiam commodo dui eget wisi. <b>Fusce tellus </b>odio, dapibus id fermentum quis, suscipit id erat. </div><div>Fusce aliquam vestibulum ipsum. Nullam sit amet magna in <u>magna</u> gravida vehicula. </div><div><i>Ut tempus purus at lorem.</i> </div><div><br></div><div><ul><li>Lorem ipsum</li><li>Lorem ipsum</li><li>Lorem ipsum</li></ul><div><a href="https://www.fav.zcu.cz/cs/">https://www.fav.zcu.cz/cs/</a><br></div></div><div><br></div><div><img src="/operationalizations/images/test2.png"><br></div><div><br></div><h2>This is h2</h2><h3>This is h3</h3><div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, </div><div>totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </div><div>Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. </div><div><br></div><div><img src="/operationalizations/images/testImage.png"><br></div><div><br></div> |
|
1 |
<div><h1>This is h1</h1></div><div><b>Lorem </b>ipsum dolor sit amet, consectetuer adipiscing elit. Nulla est. </div><div>Etiam commodo dui eget wisi. <b>Fusce tellus </b>odio, dapibus <span style="color: rgb(33, 37, 41); font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px;">id</span><pre>fermentum</pre><pre>test</pre><pre>suscipit id erat. </pre></div><div><b></b><pre><b>Fusce</b><span style="font-size: 1rem;"> aliquam vestibulum ipsum. Nullam sit amet magna in </span><u style="font-size: 1rem;">magna</u><span style="font-size: 1rem;"> gravida vehicula. </span></pre></div><div><i>Ut tempus purus at lorem.</i> </div><div></div><div><br></div><div><ul><li>Lorem ipsum</li><li>Lorem ipsum</li><li>Lorem ipsum</li></ul><div><a href="https://www.fav.zcu.cz/cs/">https://www.fav.zcu.cz/cs/</a><br></div></div><div><br></div><div><img src="/operationalizations/images/test2.png"><br></div><div><br></div><h2>This is h2</h2><h3>This is h3</h3><div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, </div><div>totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </div><div>Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. </div><div><br></div><div><img src="/operationalizations/images/testImage.png"><br></div><div><br></div> |
src/main/webapp/resources/js/editor.js | ||
---|---|---|
75 | 75 |
else if(command == 'header3'){ |
76 | 76 |
headerH3(); |
77 | 77 |
} |
78 |
else if(command = 'codeFormat'){ |
|
79 |
codeFormat(); |
|
80 |
} |
|
78 | 81 |
else{ |
79 | 82 |
document.execCommand(command, false, null); |
80 | 83 |
} |
... | ... | |
170 | 173 |
document.execCommand('insertHTML',false,'<h3>'+S+'</h3>'); |
171 | 174 |
} |
172 | 175 |
} |
176 |
|
|
177 |
function codeFormat() { |
|
178 |
let S=window.getSelection().toString(); |
|
179 |
if(S.length == 0) |
|
180 |
return; |
|
181 |
if(window.getSelection().anchorNode.parentNode.nodeName.toLowerCase() === 'pre'){ |
|
182 |
document.execCommand('formatBlock', false, 'div'); |
|
183 |
document.execCommand('insertHTML',false, S); |
|
184 |
} |
|
185 |
else{ |
|
186 |
document.execCommand('delete',false,''); |
|
187 |
document.execCommand('insertHTML',false, '<pre>test</pre>'); |
|
188 |
} |
|
189 |
} |
Také k dispozici: Unified diff
minor changes