|
46 | 46 | <scope>provided</scope>
|
47 | 47 | </dependency>
|
48 | 48 |
|
49 |
| - <!-- |
50 |
| - <dependency> |
51 |
| - <groupId>org.webjars</groupId> |
52 |
| - <artifactId>json-editor</artifactId> |
53 |
| - <version>${json-editor.version}</version> |
54 |
| - <scope>provided</scope> |
55 |
| - </dependency> |
56 |
| - --> |
57 |
| - |
58 | 49 | </dependencies>
|
59 | 50 |
|
60 | 51 |
|
|
97 | 88 | <outputDirectory>${project.build.directory}/hal-explorer</outputDirectory>
|
98 | 89 | </configuration>
|
99 | 90 | </execution>
|
100 |
| - <!-- |
101 |
| - <execution> |
102 |
| - <id>unpack-json-editor</id> |
103 |
| - <phase>process-resources</phase> |
104 |
| - <goals> |
105 |
| - <goal>unpack</goal> |
106 |
| - </goals> |
107 |
| - <configuration> |
108 |
| - <artifactItems> |
109 |
| - <artifactItem> |
110 |
| - <groupId>org.webjars</groupId> |
111 |
| - <artifactId>json-editor</artifactId> |
112 |
| - </artifactItem> |
113 |
| - </artifactItems> |
114 |
| - <outputDirectory>${project.build.directory}/json-editor</outputDirectory> |
115 |
| - </configuration> |
116 |
| - </execution> |
117 |
| - --> |
118 | 91 | </executions>
|
119 | 92 | </plugin>
|
120 | 93 |
|
|
132 | 105 | <copy todir="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer">
|
133 | 106 | <fileset dir="${project.build.directory}/hal-explorer/META-INF/resources/webjars/hal-explorer/${explorer.version}" />
|
134 | 107 | </copy>
|
135 |
| - <!-- |
136 |
| - <copy todir="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/vendor/js"> |
137 |
| - <fileset dir="${project.build.directory}/json-editor/META-INF/resources/webjars/json-editor/${json-editor.version}" /> |
138 |
| - </copy> |
139 |
| - <copy file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/explorer.html" |
140 |
| - tofile="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html" /> |
141 |
| - <replace file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html"> |
142 |
| - <replacefilter> |
143 |
| - <replacetoken><![CDATA[</body>]]></replacetoken> |
144 |
| - <replacevalue><![CDATA[ |
145 |
| - <script id="dynamic-request-template" type="text/template"> |
146 |
| - <div class="modal-header"> |
147 |
| - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
148 |
| - <h3>Create/Update</h3> |
149 |
| - </div> |
150 |
| -
|
151 |
| - <form class="non-safe" action="<%= href %>"> |
152 |
| - <div class="modal-body" style="padding-top: 0px"> |
153 |
| - <div id="jsoneditor"></div> |
154 |
| -
|
155 |
| - <div class="well well-small" style="padding-bottom: 0px;"> |
156 |
| - <div class="container-fluid"> |
157 |
| - <div class="row-fluid"> |
158 |
| - <div class="control-group"> |
159 |
| - <label class="control-label" style="display: inline-block; font-weight: bold;">Action:</label> |
160 |
| - <input name="method" type="text" class="method controls" style="width: 98%" value="POST" /> |
161 |
| - <input name="url" type="text" class="url controls" style="width: 98%" value="<%= href %>" /> |
162 |
| - </div> |
163 |
| - </div> |
164 |
| - </div> |
165 |
| - </div> |
166 |
| - </div> |
167 |
| - <div class="modal-footer"> |
168 |
| - <button type="submit" class="btn btn-primary">Make Request</button> |
169 |
| - </div> |
170 |
| - </form> |
171 |
| - </script> |
172 |
| -
|
173 |
| - <script src="vendor/js/jsoneditor.js"></script> |
174 |
| - <script src="js/CustomPostForm.js"></script> |
175 |
| -
|
176 |
| -</body>]]> |
177 |
| - </replacevalue> |
178 |
| - </replacefilter> |
179 |
| - </replace> |
180 |
| - --> |
181 | 108 | <replace file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/index.html">
|
182 | 109 | <replacefilter>
|
183 | 110 | <replacetoken>The HAL explorer</replacetoken>
|
184 | 111 | <replacevalue>The HAL Explorer (for Spring Data REST)</replacevalue>
|
185 | 112 | </replacefilter>
|
186 | 113 | </replace>
|
187 |
| - <!-- |
188 |
| - <delete file="${project.build.outputDirectory}/META-INF/spring-data-rest/hal-explorer/explorer.html" /> |
189 |
| - --> |
190 | 114 | </target>
|
191 | 115 | </configuration>
|
192 | 116 | </execution>
|
|
0 commit comments