sunspot_solr 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sunspot-solr +2 -6
  3. data/lib/sunspot/solr/server.rb +2 -3
  4. data/solr/README.txt +181 -181
  5. data/solr/bin/post +29 -19
  6. data/solr/bin/solr +247 -428
  7. data/solr/bin/solr.cmd +102 -256
  8. data/solr/bin/solr.in.cmd +15 -7
  9. data/solr/bin/solr.in.sh +26 -12
  10. data/solr/server/README.txt +110 -113
  11. data/solr/server/contexts/solr-jetty-context.xml +8 -8
  12. data/solr/server/etc/jetty-http.xml +47 -0
  13. data/solr/server/etc/jetty-https-ssl.xml +175 -159
  14. data/solr/server/etc/jetty-https.xml +53 -0
  15. data/solr/server/etc/jetty-ssl.xml +46 -0
  16. data/solr/server/etc/jetty.xml +189 -167
  17. data/solr/server/etc/webdefault.xml +527 -527
  18. data/solr/server/lib/javax.servlet-api-3.1.0.jar +0 -0
  19. data/solr/server/lib/jetty-continuation-9.2.11.v20150529.jar +0 -0
  20. data/solr/server/lib/jetty-deploy-9.2.11.v20150529.jar +0 -0
  21. data/solr/server/lib/jetty-http-9.2.11.v20150529.jar +0 -0
  22. data/solr/server/lib/jetty-io-9.2.11.v20150529.jar +0 -0
  23. data/solr/server/lib/jetty-jmx-9.2.11.v20150529.jar +0 -0
  24. data/solr/server/lib/jetty-rewrite-9.2.11.v20150529.jar +0 -0
  25. data/solr/server/lib/jetty-security-9.2.11.v20150529.jar +0 -0
  26. data/solr/server/lib/jetty-server-9.2.11.v20150529.jar +0 -0
  27. data/solr/server/lib/jetty-servlet-9.2.11.v20150529.jar +0 -0
  28. data/solr/server/lib/jetty-servlets-9.2.11.v20150529.jar +0 -0
  29. data/solr/server/lib/jetty-util-9.2.11.v20150529.jar +0 -0
  30. data/solr/server/lib/jetty-webapp-9.2.11.v20150529.jar +0 -0
  31. data/solr/server/lib/jetty-xml-9.2.11.v20150529.jar +0 -0
  32. data/solr/server/modules/http.mod +9 -0
  33. data/solr/server/modules/https.mod +9 -0
  34. data/solr/server/modules/server.mod +11 -0
  35. data/solr/server/modules/ssl.mod +9 -0
  36. data/solr/server/resources/jetty-logging.properties +1 -0
  37. data/solr/server/resources/log4j.properties +24 -24
  38. data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-exec-1.3.jar +0 -0
  39. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{hadoop-annotations-2.3.0.jar → hadoop-annotations-2.6.0.jar} +0 -0
  40. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.6.0.jar +0 -0
  41. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.6.0.jar +0 -0
  42. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.6.0.jar +0 -0
  43. data/solr/server/solr-webapp/webapp/WEB-INF/lib/htrace-core-3.0.4.jar +0 -0
  44. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.4.1.jar +0 -0
  45. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.4.1.jar +0 -0
  46. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.4.1.jar +0 -0
  47. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-core-2.5.4.jar +0 -0
  48. data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-dataformat-smile-2.5.4.jar +0 -0
  49. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-common-5.0.0.jar → lucene-analyzers-common-5.3.1.jar} +0 -0
  50. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-kuromoji-5.0.0.jar → lucene-analyzers-kuromoji-5.3.1.jar} +0 -0
  51. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-analyzers-phonetic-5.0.0.jar → lucene-analyzers-phonetic-5.3.1.jar} +0 -0
  52. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.3.1.jar +0 -0
  53. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.3.1.jar +0 -0
  54. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.3.1.jar +0 -0
  55. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-expressions-5.0.0.jar → lucene-expressions-5.3.1.jar} +0 -0
  56. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-grouping-5.0.0.jar → lucene-grouping-5.3.1.jar} +0 -0
  57. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.3.1.jar +0 -0
  58. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.3.1.jar +0 -0
  59. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.3.1.jar +0 -0
  60. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.3.1.jar +0 -0
  61. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.3.1.jar +0 -0
  62. data/solr/server/solr-webapp/webapp/WEB-INF/lib/{lucene-queryparser-5.0.0.jar → lucene-queryparser-5.3.1.jar} +0 -0
  63. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-sandbox-5.3.1.jar +0 -0
  64. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.3.1.jar +0 -0
  65. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.3.1.jar +0 -0
  66. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.3.0.jar +0 -0
  67. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar +0 -0
  68. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.3.1.jar +0 -0
  69. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.3.1.jar +0 -0
  70. data/solr/server/solr-webapp/webapp/WEB-INF/lib/t-digest-3.1.jar +0 -0
  71. data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -181
  72. data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -28
  73. data/solr/server/solr-webapp/webapp/admin.html +164 -163
  74. data/solr/server/solr-webapp/webapp/css/angular/analysis.css +304 -0
  75. data/solr/server/solr-webapp/webapp/css/angular/chosen.css +465 -0
  76. data/solr/server/solr-webapp/webapp/css/angular/cloud.css +398 -0
  77. data/solr/server/solr-webapp/webapp/css/angular/common.css +724 -0
  78. data/solr/server/solr-webapp/webapp/css/angular/cores.css +233 -0
  79. data/solr/server/solr-webapp/webapp/css/angular/dataimport.css +370 -0
  80. data/solr/server/solr-webapp/webapp/css/angular/documents.css +179 -0
  81. data/solr/server/solr-webapp/webapp/css/angular/files.css +53 -0
  82. data/solr/server/solr-webapp/webapp/css/angular/index.css +206 -0
  83. data/solr/server/solr-webapp/webapp/css/angular/logging.css +376 -0
  84. data/solr/server/solr-webapp/webapp/css/angular/menu.css +321 -0
  85. data/solr/server/solr-webapp/webapp/css/angular/plugins.css +212 -0
  86. data/solr/server/solr-webapp/webapp/css/angular/query.css +162 -0
  87. data/solr/server/solr-webapp/webapp/css/angular/replication.css +500 -0
  88. data/solr/server/solr-webapp/webapp/css/angular/schema-browser.css +567 -0
  89. data/solr/server/solr-webapp/webapp/css/angular/segments.css +173 -0
  90. data/solr/server/solr-webapp/webapp/css/angular/threads.css +161 -0
  91. data/solr/server/solr-webapp/webapp/css/chosen.css +421 -421
  92. data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -311
  93. data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -410
  94. data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -701
  95. data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -244
  96. data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -155
  97. data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -403
  98. data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -197
  99. data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -54
  100. data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -207
  101. data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -52
  102. data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -391
  103. data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -328
  104. data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -195
  105. data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -173
  106. data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -515
  107. data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -578
  108. data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
  109. data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -172
  110. data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
  111. data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -27
  112. data/solr/server/solr-webapp/webapp/img/solr.svg +39 -39
  113. data/solr/server/solr-webapp/webapp/index.html +208 -0
  114. data/solr/server/solr-webapp/webapp/js/angular/app.js +713 -0
  115. data/solr/server/solr-webapp/webapp/js/angular/controllers/analysis.js +199 -0
  116. data/solr/server/solr-webapp/webapp/js/angular/controllers/cloud.js +528 -0
  117. data/solr/server/solr-webapp/webapp/js/angular/controllers/core-overview.js +225 -0
  118. data/solr/server/solr-webapp/webapp/js/angular/controllers/cores.js +465 -0
  119. data/solr/server/solr-webapp/webapp/js/angular/controllers/dataimport.js +284 -0
  120. data/solr/server/solr-webapp/webapp/js/angular/controllers/documents.js +139 -0
  121. data/solr/server/solr-webapp/webapp/js/angular/controllers/files.js +92 -0
  122. data/solr/server/solr-webapp/webapp/js/angular/controllers/index.js +95 -0
  123. data/solr/server/solr-webapp/webapp/js/angular/controllers/java-properties.js +45 -0
  124. data/solr/server/solr-webapp/webapp/js/angular/controllers/logging.js +146 -0
  125. data/solr/server/solr-webapp/webapp/js/angular/controllers/plugins.js +166 -0
  126. data/solr/server/solr-webapp/webapp/js/angular/controllers/query.js +99 -0
  127. data/solr/server/solr-webapp/webapp/js/angular/controllers/replication.js +227 -0
  128. data/solr/server/solr-webapp/webapp/js/angular/controllers/schema-browser.js +432 -0
  129. data/solr/server/solr-webapp/webapp/js/angular/controllers/segments.js +94 -0
  130. data/solr/server/solr-webapp/webapp/js/angular/controllers/threads.js +51 -0
  131. data/solr/server/solr-webapp/webapp/js/angular/services.js +214 -0
  132. data/solr/server/solr-webapp/webapp/js/lib/ZeroClipboard.js +342 -342
  133. data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -982
  134. data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -29
  135. data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -9373
  136. data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -31
  137. data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -30
  138. data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -184
  139. data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -523
  140. data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -71
  141. data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -806
  142. data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -3534
  143. data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -1863
  144. data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -189
  145. data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -48
  146. data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
  147. data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -216
  148. data/solr/server/solr-webapp/webapp/js/main.js +60 -58
  149. data/solr/server/solr-webapp/webapp/js/require.js +11349 -11349
  150. data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -545
  151. data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -679
  152. data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -877
  153. data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -719
  154. data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -562
  155. data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -812
  156. data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -370
  157. data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -265
  158. data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -340
  159. data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -106
  160. data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -576
  161. data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -72
  162. data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -462
  163. data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -229
  164. data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -527
  165. data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -1229
  166. data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
  167. data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -158
  168. data/solr/server/solr-webapp/webapp/libs/angular-chosen.js +139 -0
  169. data/solr/server/solr-webapp/webapp/libs/angular-cookies.js +229 -0
  170. data/solr/server/solr-webapp/webapp/libs/angular-cookies.min.js +31 -0
  171. data/solr/server/solr-webapp/webapp/libs/angular-resource.min.js +36 -0
  172. data/solr/server/solr-webapp/webapp/libs/angular-route.js +1018 -0
  173. data/solr/server/solr-webapp/webapp/libs/angular-route.min.js +38 -0
  174. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.js +703 -0
  175. data/solr/server/solr-webapp/webapp/libs/angular-sanitize.min.js +39 -0
  176. data/solr/server/solr-webapp/webapp/libs/angular.js +26093 -0
  177. data/solr/server/solr-webapp/webapp/libs/angular.min.js +273 -0
  178. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.js +1194 -0
  179. data/solr/server/solr-webapp/webapp/libs/chosen.jquery.min.js +30 -0
  180. data/solr/server/solr-webapp/webapp/libs/d3.js +9373 -0
  181. data/solr/server/solr-webapp/webapp/libs/highlight.js +31 -0
  182. data/solr/server/solr-webapp/webapp/libs/jquery-2.1.3.min.js +29 -0
  183. data/solr/server/solr-webapp/webapp/libs/jquery.jstree.js +3534 -0
  184. data/solr/server/solr-webapp/webapp/libs/ngtimeago.js +102 -0
  185. data/solr/server/solr-webapp/webapp/partials/analysis.html +128 -0
  186. data/solr/server/solr-webapp/webapp/partials/cloud.html +104 -0
  187. data/solr/server/solr-webapp/webapp/partials/core_overview.html +227 -0
  188. data/solr/server/solr-webapp/webapp/partials/cores.html +231 -0
  189. data/solr/server/solr-webapp/webapp/partials/dataimport.html +209 -0
  190. data/solr/server/solr-webapp/webapp/partials/documents.html +118 -0
  191. data/solr/server/solr-webapp/webapp/partials/files.html +47 -0
  192. data/solr/server/solr-webapp/webapp/partials/index.html +261 -0
  193. data/solr/server/solr-webapp/webapp/partials/java-properties.html +27 -0
  194. data/solr/server/solr-webapp/webapp/partials/logging-levels.html +56 -0
  195. data/solr/server/solr-webapp/webapp/partials/logging.html +56 -0
  196. data/solr/server/solr-webapp/webapp/partials/plugins.html +72 -0
  197. data/solr/server/solr-webapp/webapp/partials/query.html +356 -0
  198. data/solr/server/solr-webapp/webapp/partials/replication.html +239 -0
  199. data/solr/server/solr-webapp/webapp/partials/schema-browser.html +206 -0
  200. data/solr/server/solr-webapp/webapp/partials/segments.html +99 -0
  201. data/solr/server/solr-webapp/webapp/partials/threads.html +65 -0
  202. data/solr/server/solr-webapp/webapp/tpl/analysis.html +83 -83
  203. data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -87
  204. data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -226
  205. data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -201
  206. data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -183
  207. data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -107
  208. data/solr/server/solr-webapp/webapp/tpl/files.html +44 -44
  209. data/solr/server/solr-webapp/webapp/tpl/index.html +250 -250
  210. data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -23
  211. data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -39
  212. data/solr/server/solr-webapp/webapp/tpl/query.html +361 -361
  213. data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -216
  214. data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -192
  215. data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
  216. data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -56
  217. data/solr/server/solr/README.txt +77 -77
  218. data/solr/server/solr/solr.xml +51 -51
  219. data/solr/server/solr/zoo.cfg +17 -17
  220. data/solr/server/start.jar +0 -0
  221. data/spec/server_spec.rb +3 -8
  222. metadata +132 -43
  223. data/solr/server/lib/jetty-continuation-8.1.10.v20130312.jar +0 -0
  224. data/solr/server/lib/jetty-deploy-8.1.10.v20130312.jar +0 -0
  225. data/solr/server/lib/jetty-http-8.1.10.v20130312.jar +0 -0
  226. data/solr/server/lib/jetty-io-8.1.10.v20130312.jar +0 -0
  227. data/solr/server/lib/jetty-jmx-8.1.10.v20130312.jar +0 -0
  228. data/solr/server/lib/jetty-security-8.1.10.v20130312.jar +0 -0
  229. data/solr/server/lib/jetty-server-8.1.10.v20130312.jar +0 -0
  230. data/solr/server/lib/jetty-servlet-8.1.10.v20130312.jar +0 -0
  231. data/solr/server/lib/jetty-util-8.1.10.v20130312.jar +0 -0
  232. data/solr/server/lib/jetty-webapp-8.1.10.v20130312.jar +0 -0
  233. data/solr/server/lib/jetty-xml-8.1.10.v20130312.jar +0 -0
  234. data/solr/server/lib/servlet-api-3.0.jar +0 -0
  235. data/solr/server/solr-webapp/webapp/.gitignore +0 -1
  236. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.3.0.jar +0 -0
  237. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.3.0.jar +0 -0
  238. data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.3.0.jar +0 -0
  239. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.3.1.jar +0 -0
  240. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.3.jar +0 -0
  241. data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.3.1.jar +0 -0
  242. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.0.0.jar +0 -0
  243. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.0.0.jar +0 -0
  244. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.0.0.jar +0 -0
  245. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.0.0.jar +0 -0
  246. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.0.0.jar +0 -0
  247. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.0.0.jar +0 -0
  248. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.0.0.jar +0 -0
  249. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.0.0.jar +0 -0
  250. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.0.0.jar +0 -0
  251. data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.0.0.jar +0 -0
  252. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.1.1.jar +0 -0
  253. data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.1.1.jar +0 -0
  254. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.0.0.jar +0 -0
  255. data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.0.0.jar +0 -0
  256. data/solr/server/webapps/solr.war +0 -0
@@ -1,27 +1,27 @@
1
- http://www.splitbrain.org/projects/file_icons
2
-
3
- Released to the Public Domain
4
- Free to use. Provided as is. No warranties.
5
-
6
- Note: The big majority of icons where created by the creators listed
7
- below. Only a few ones where found on the net. They were too
8
- widespread to determine the original author and thus were
9
- considered public domain.
10
- If you are the author of one of those icons just send a short
11
- mail to either be included in the list below or have the icon
12
- removed from the package.
13
-
14
- Creators:
15
-
16
- Andreas Gohr <andi@splitbrain.org>
17
- Michael Klier <chi@chimeric.de>
18
- Andreas Barton <andreas.barton@web.de>
19
- Hubert Chathi <hubert@uhoreg.ca>
20
- Johan Koehne <johankohne@gmail.com>
21
- Rudi von Staden <rudivs@iafrica.com>
22
- Daniel Darvish <ddarvish@hibm.org>
23
- Andy Pascall <apascall@engineering.ucsb.edu>
24
- Seth <seth.holcomb@gmail.com>
25
- David Carella <david.carella@gmail.com>
26
- Tom N. Harris <telliamed@fastmail.us>
27
- Brandon Carmon Colvin <b.carmon.colvin@gmail.com>
1
+ http://www.splitbrain.org/projects/file_icons
2
+
3
+ Released to the Public Domain
4
+ Free to use. Provided as is. No warranties.
5
+
6
+ Note: The big majority of icons where created by the creators listed
7
+ below. Only a few ones where found on the net. They were too
8
+ widespread to determine the original author and thus were
9
+ considered public domain.
10
+ If you are the author of one of those icons just send a short
11
+ mail to either be included in the list below or have the icon
12
+ removed from the package.
13
+
14
+ Creators:
15
+
16
+ Andreas Gohr <andi@splitbrain.org>
17
+ Michael Klier <chi@chimeric.de>
18
+ Andreas Barton <andreas.barton@web.de>
19
+ Hubert Chathi <hubert@uhoreg.ca>
20
+ Johan Koehne <johankohne@gmail.com>
21
+ Rudi von Staden <rudivs@iafrica.com>
22
+ Daniel Darvish <ddarvish@hibm.org>
23
+ Andy Pascall <apascall@engineering.ucsb.edu>
24
+ Seth <seth.holcomb@gmail.com>
25
+ David Carella <david.carella@gmail.com>
26
+ Tom N. Harris <telliamed@fastmail.us>
27
+ Brandon Carmon Colvin <b.carmon.colvin@gmail.com>
@@ -1,39 +1,39 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="203.005pt" height="102.654pt" viewBox="0 0 203.005 102.654" version="1.1">
3
- <defs>
4
- <clipPath id="clip1">
5
- <path d="M 0 36 L 49 36 L 49 102.652344 L 0 102.652344 Z "/>
6
- </clipPath>
7
- <clipPath id="clip2">
8
- <path d="M 53 53 L 100 53 L 100 102.652344 L 53 102.652344 Z "/>
9
- </clipPath>
10
- <clipPath id="clip3">
11
- <path d="M 106 35 L 123 35 L 123 102.652344 L 106 102.652344 Z "/>
12
- </clipPath>
13
- <clipPath id="clip4">
14
- <path d="M 163 29 L 203.003906 29 L 203.003906 52 L 163 52 Z "/>
15
- </clipPath>
16
- </defs>
17
- <g id="surface1">
18
- <g clip-path="url(#clip1)" clip-rule="nonzero">
19
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 40.761719 70.890625 C 38.414062 69.644531 35.765625 68.765625 32.886719 68.277344 C 30.054688 67.800781 27.179688 67.5625 24.332031 67.5625 C 22.003906 67.5625 19.652344 67.359375 17.332031 66.964844 C 15.078125 66.578125 13.035156 65.871094 11.257812 64.859375 C 9.527344 63.875 8.097656 62.5 7.003906 60.765625 C 5.925781 59.058594 5.382812 56.796875 5.382812 54.066406 C 5.433594 51.65625 5.992188 49.597656 7.046875 47.9375 C 8.117188 46.253906 9.511719 44.886719 11.195312 43.871094 C 12.921875 42.832031 14.914062 42.066406 17.117188 41.597656 C 20.867188 40.800781 24.828125 40.652344 28.863281 41.214844 C 30.441406 41.4375 31.996094 41.832031 33.496094 42.382812 C 34.964844 42.929688 36.347656 43.675781 37.601562 44.601562 C 38.835938 45.515625 39.929688 46.664062 40.847656 48.011719 L 41.359375 48.765625 L 45.148438 47.171875 L 44.34375 46.039062 C 43.3125 44.582031 42.171875 43.269531 40.949219 42.140625 C 39.703125 40.988281 38.238281 40.007812 36.59375 39.234375 C 34.96875 38.46875 33.113281 37.878906 31.070312 37.480469 C 29.050781 37.089844 26.695312 36.890625 24.070312 36.890625 C 21.550781 36.890625 18.949219 37.179688 16.339844 37.75 C 13.691406 38.328125 11.234375 39.289062 9.039062 40.597656 C 6.796875 41.9375 4.949219 43.722656 3.542969 45.90625 C 2.121094 48.125 1.394531 50.863281 1.394531 54.042969 C 1.394531 57.382812 2.066406 60.226562 3.386719 62.492188 C 4.703125 64.746094 6.464844 66.570312 8.625 67.914062 C 10.742188 69.234375 13.210938 70.183594 15.964844 70.734375 C 18.652344 71.273438 21.46875 71.546875 24.332031 71.546875 C 26.609375 71.546875 29.019531 71.71875 31.496094 72.0625 C 33.90625 72.394531 36.152344 73.066406 38.164062 74.058594 C 40.125 75.027344 41.761719 76.375 43.023438 78.0625 C 44.242188 79.699219 44.859375 81.90625 44.859375 84.625 C 44.859375 87.066406 44.261719 89.148438 43.089844 90.820312 C 41.878906 92.542969 40.304688 93.964844 38.410156 95.046875 C 36.476562 96.152344 34.289062 96.96875 31.902344 97.464844 C 29.476562 97.972656 27.078125 98.230469 24.769531 98.230469 C 20.898438 98.230469 17.070312 97.492188 13.394531 96.03125 C 9.738281 94.578125 6.492188 92.398438 3.753906 89.550781 L 3.019531 88.785156 L 0 91.402344 L 0.847656 92.25 C 3.550781 94.953125 6.90625 97.308594 10.824219 99.25 C 14.785156 101.21875 19.480469 102.214844 24.769531 102.214844 C 27.285156 102.214844 29.957031 101.929688 32.707031 101.359375 C 35.496094 100.785156 38.117188 99.800781 40.488281 98.429688 C 42.898438 97.039062 44.902344 95.222656 46.449219 93.023438 C 48.039062 90.765625 48.84375 87.941406 48.84375 84.625 C 48.84375 81.265625 48.089844 78.417969 46.597656 76.167969 C 45.128906 73.945312 43.164062 72.171875 40.761719 70.890625 "/>
20
- </g>
21
- <g clip-path="url(#clip2)" clip-rule="nonzero">
22
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 76.390625 98.667969 C 73.65625 98.667969 71.160156 98.105469 68.964844 96.992188 C 66.738281 95.867188 64.773438 94.335938 63.125 92.4375 C 61.464844 90.53125 60.148438 88.300781 59.207031 85.808594 C 58.261719 83.304688 57.722656 80.679688 57.613281 78.054688 C 57.613281 75.625 58.066406 73.144531 58.949219 70.675781 C 59.835938 68.214844 61.125 65.972656 62.785156 64.007812 C 64.4375 62.050781 66.449219 60.433594 68.769531 59.191406 C 71.046875 57.96875 73.609375 57.351562 76.390625 57.351562 C 79.003906 57.351562 81.472656 57.929688 83.726562 59.070312 C 86.015625 60.226562 88.023438 61.777344 89.707031 63.675781 C 91.390625 65.585938 92.738281 67.816406 93.707031 70.308594 C 94.675781 72.796875 95.164062 75.40625 95.164062 78.054688 C 95.164062 80.480469 94.714844 82.960938 93.828125 85.429688 C 92.941406 87.894531 91.652344 90.136719 89.996094 92.097656 C 88.34375 94.050781 86.335938 95.65625 84.019531 96.867188 C 81.742188 98.0625 79.175781 98.667969 76.390625 98.667969 M 92.96875 61.292969 C 90.984375 58.976562 88.574219 57.058594 85.804688 55.597656 C 82.996094 54.117188 79.828125 53.367188 76.390625 53.367188 C 73.257812 53.367188 70.265625 54.035156 67.496094 55.359375 C 64.746094 56.671875 62.316406 58.484375 60.273438 60.742188 C 58.234375 62.992188 56.601562 65.640625 55.417969 68.617188 C 54.230469 71.59375 53.628906 74.769531 53.628906 78.054688 C 53.628906 81.15625 54.183594 84.195312 55.28125 87.082031 C 56.371094 89.964844 57.929688 92.582031 59.90625 94.863281 C 61.890625 97.15625 64.304688 99.027344 67.078125 100.429688 C 69.875 101.84375 73.003906 102.59375 76.371094 102.652344 L 76.410156 102.652344 C 79.597656 102.59375 82.613281 101.875 85.378906 100.527344 C 88.121094 99.1875 90.550781 97.359375 92.597656 95.101562 C 94.632812 92.851562 96.25 90.230469 97.40625 87.316406 C 98.5625 84.390625 99.148438 81.273438 99.148438 78.054688 C 99.148438 75.136719 98.609375 72.164062 97.550781 69.21875 C 96.488281 66.273438 94.945312 63.605469 92.96875 61.292969 "/>
23
- </g>
24
- <g clip-path="url(#clip3)" clip-rule="nonzero">
25
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 119.78125 97.5625 C 119.113281 97.730469 118.523438 97.855469 118.03125 97.9375 C 117.511719 98.027344 116.953125 98.113281 116.347656 98.199219 C 115.789062 98.277344 115.238281 98.320312 114.707031 98.320312 C 113.371094 98.320312 112.386719 97.875 111.699219 96.964844 C 110.9375 95.960938 110.566406 94.960938 110.566406 93.914062 L 110.566406 35.578125 L 106.582031 35.578125 L 106.582031 93.914062 C 106.582031 96.101562 107.273438 98.039062 108.636719 99.667969 C 110.050781 101.359375 112.0625 102.214844 114.621094 102.214844 C 115.421875 102.214844 116.21875 102.167969 116.988281 102.078125 C 117.730469 101.988281 118.394531 101.898438 118.992188 101.808594 C 119.601562 101.71875 120.308594 101.578125 121.09375 101.398438 L 122.445312 101.085938 L 120.671875 97.339844 Z "/>
26
- </g>
27
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 136.976562 57.378906 C 134.90625 58.835938 133.074219 60.6875 131.507812 62.902344 L 131.507812 54.066406 L 127.523438 54.066406 L 127.523438 101.777344 L 131.507812 101.777344 L 131.507812 72.074219 C 132.058594 70.128906 132.820312 68.300781 133.769531 66.648438 C 134.726562 64.980469 135.914062 63.511719 137.304688 62.285156 C 138.695312 61.058594 140.3125 60.066406 142.117188 59.328125 C 143.914062 58.589844 145.945312 58.160156 148.148438 58.050781 L 149.207031 57.996094 L 149.207031 54.066406 L 148.09375 54.066406 C 143.84375 54.066406 140.105469 55.179688 136.976562 57.378906 "/>
28
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 193.910156 10.613281 L 160.910156 46.289062 L 202.382812 27.15625 C 201.15625 20.824219 198.152344 15.132812 193.910156 10.613281 "/>
29
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 169.425781 0 C 164.855469 0 160.5 0.917969 156.527344 2.574219 L 152.097656 39.886719 L 174.226562 0.347656 C 172.65625 0.121094 171.058594 0 169.425781 0 "/>
30
- <g clip-path="url(#clip4)" clip-rule="nonzero">
31
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 202.714844 29.210938 L 163.414062 51.203125 L 200.285156 46.828125 C 202.035156 42.761719 203.003906 38.285156 203.003906 33.578125 C 203.003906 32.097656 202.898438 30.640625 202.714844 29.210938 "/>
32
- </g>
33
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 188.226562 61.40625 C 192.617188 58.433594 196.261719 54.449219 198.835938 49.789062 L 164.277344 56.648438 Z "/>
34
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 176.25 0.695312 L 157.011719 42.390625 L 192.695312 9.382812 C 188.222656 5.078125 182.5625 2 176.25 0.695312 "/>
35
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 172.234375 67.03125 C 175.953125 66.722656 179.496094 65.816406 182.773438 64.394531 L 163.414062 62.097656 Z "/>
36
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 138.820312 19.773438 C 137.308594 23.117188 136.328125 26.75 135.988281 30.566406 L 141.203125 39.886719 Z "/>
37
- <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 153.617188 3.953125 C 148.878906 6.488281 144.824219 10.121094 141.785156 14.519531 L 146.652344 39.023438 Z "/>
38
- </g>
39
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="203.005pt" height="102.654pt" viewBox="0 0 203.005 102.654" version="1.1">
3
+ <defs>
4
+ <clipPath id="clip1">
5
+ <path d="M 0 36 L 49 36 L 49 102.652344 L 0 102.652344 Z "/>
6
+ </clipPath>
7
+ <clipPath id="clip2">
8
+ <path d="M 53 53 L 100 53 L 100 102.652344 L 53 102.652344 Z "/>
9
+ </clipPath>
10
+ <clipPath id="clip3">
11
+ <path d="M 106 35 L 123 35 L 123 102.652344 L 106 102.652344 Z "/>
12
+ </clipPath>
13
+ <clipPath id="clip4">
14
+ <path d="M 163 29 L 203.003906 29 L 203.003906 52 L 163 52 Z "/>
15
+ </clipPath>
16
+ </defs>
17
+ <g id="surface1">
18
+ <g clip-path="url(#clip1)" clip-rule="nonzero">
19
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 40.761719 70.890625 C 38.414062 69.644531 35.765625 68.765625 32.886719 68.277344 C 30.054688 67.800781 27.179688 67.5625 24.332031 67.5625 C 22.003906 67.5625 19.652344 67.359375 17.332031 66.964844 C 15.078125 66.578125 13.035156 65.871094 11.257812 64.859375 C 9.527344 63.875 8.097656 62.5 7.003906 60.765625 C 5.925781 59.058594 5.382812 56.796875 5.382812 54.066406 C 5.433594 51.65625 5.992188 49.597656 7.046875 47.9375 C 8.117188 46.253906 9.511719 44.886719 11.195312 43.871094 C 12.921875 42.832031 14.914062 42.066406 17.117188 41.597656 C 20.867188 40.800781 24.828125 40.652344 28.863281 41.214844 C 30.441406 41.4375 31.996094 41.832031 33.496094 42.382812 C 34.964844 42.929688 36.347656 43.675781 37.601562 44.601562 C 38.835938 45.515625 39.929688 46.664062 40.847656 48.011719 L 41.359375 48.765625 L 45.148438 47.171875 L 44.34375 46.039062 C 43.3125 44.582031 42.171875 43.269531 40.949219 42.140625 C 39.703125 40.988281 38.238281 40.007812 36.59375 39.234375 C 34.96875 38.46875 33.113281 37.878906 31.070312 37.480469 C 29.050781 37.089844 26.695312 36.890625 24.070312 36.890625 C 21.550781 36.890625 18.949219 37.179688 16.339844 37.75 C 13.691406 38.328125 11.234375 39.289062 9.039062 40.597656 C 6.796875 41.9375 4.949219 43.722656 3.542969 45.90625 C 2.121094 48.125 1.394531 50.863281 1.394531 54.042969 C 1.394531 57.382812 2.066406 60.226562 3.386719 62.492188 C 4.703125 64.746094 6.464844 66.570312 8.625 67.914062 C 10.742188 69.234375 13.210938 70.183594 15.964844 70.734375 C 18.652344 71.273438 21.46875 71.546875 24.332031 71.546875 C 26.609375 71.546875 29.019531 71.71875 31.496094 72.0625 C 33.90625 72.394531 36.152344 73.066406 38.164062 74.058594 C 40.125 75.027344 41.761719 76.375 43.023438 78.0625 C 44.242188 79.699219 44.859375 81.90625 44.859375 84.625 C 44.859375 87.066406 44.261719 89.148438 43.089844 90.820312 C 41.878906 92.542969 40.304688 93.964844 38.410156 95.046875 C 36.476562 96.152344 34.289062 96.96875 31.902344 97.464844 C 29.476562 97.972656 27.078125 98.230469 24.769531 98.230469 C 20.898438 98.230469 17.070312 97.492188 13.394531 96.03125 C 9.738281 94.578125 6.492188 92.398438 3.753906 89.550781 L 3.019531 88.785156 L 0 91.402344 L 0.847656 92.25 C 3.550781 94.953125 6.90625 97.308594 10.824219 99.25 C 14.785156 101.21875 19.480469 102.214844 24.769531 102.214844 C 27.285156 102.214844 29.957031 101.929688 32.707031 101.359375 C 35.496094 100.785156 38.117188 99.800781 40.488281 98.429688 C 42.898438 97.039062 44.902344 95.222656 46.449219 93.023438 C 48.039062 90.765625 48.84375 87.941406 48.84375 84.625 C 48.84375 81.265625 48.089844 78.417969 46.597656 76.167969 C 45.128906 73.945312 43.164062 72.171875 40.761719 70.890625 "/>
20
+ </g>
21
+ <g clip-path="url(#clip2)" clip-rule="nonzero">
22
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 76.390625 98.667969 C 73.65625 98.667969 71.160156 98.105469 68.964844 96.992188 C 66.738281 95.867188 64.773438 94.335938 63.125 92.4375 C 61.464844 90.53125 60.148438 88.300781 59.207031 85.808594 C 58.261719 83.304688 57.722656 80.679688 57.613281 78.054688 C 57.613281 75.625 58.066406 73.144531 58.949219 70.675781 C 59.835938 68.214844 61.125 65.972656 62.785156 64.007812 C 64.4375 62.050781 66.449219 60.433594 68.769531 59.191406 C 71.046875 57.96875 73.609375 57.351562 76.390625 57.351562 C 79.003906 57.351562 81.472656 57.929688 83.726562 59.070312 C 86.015625 60.226562 88.023438 61.777344 89.707031 63.675781 C 91.390625 65.585938 92.738281 67.816406 93.707031 70.308594 C 94.675781 72.796875 95.164062 75.40625 95.164062 78.054688 C 95.164062 80.480469 94.714844 82.960938 93.828125 85.429688 C 92.941406 87.894531 91.652344 90.136719 89.996094 92.097656 C 88.34375 94.050781 86.335938 95.65625 84.019531 96.867188 C 81.742188 98.0625 79.175781 98.667969 76.390625 98.667969 M 92.96875 61.292969 C 90.984375 58.976562 88.574219 57.058594 85.804688 55.597656 C 82.996094 54.117188 79.828125 53.367188 76.390625 53.367188 C 73.257812 53.367188 70.265625 54.035156 67.496094 55.359375 C 64.746094 56.671875 62.316406 58.484375 60.273438 60.742188 C 58.234375 62.992188 56.601562 65.640625 55.417969 68.617188 C 54.230469 71.59375 53.628906 74.769531 53.628906 78.054688 C 53.628906 81.15625 54.183594 84.195312 55.28125 87.082031 C 56.371094 89.964844 57.929688 92.582031 59.90625 94.863281 C 61.890625 97.15625 64.304688 99.027344 67.078125 100.429688 C 69.875 101.84375 73.003906 102.59375 76.371094 102.652344 L 76.410156 102.652344 C 79.597656 102.59375 82.613281 101.875 85.378906 100.527344 C 88.121094 99.1875 90.550781 97.359375 92.597656 95.101562 C 94.632812 92.851562 96.25 90.230469 97.40625 87.316406 C 98.5625 84.390625 99.148438 81.273438 99.148438 78.054688 C 99.148438 75.136719 98.609375 72.164062 97.550781 69.21875 C 96.488281 66.273438 94.945312 63.605469 92.96875 61.292969 "/>
23
+ </g>
24
+ <g clip-path="url(#clip3)" clip-rule="nonzero">
25
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 119.78125 97.5625 C 119.113281 97.730469 118.523438 97.855469 118.03125 97.9375 C 117.511719 98.027344 116.953125 98.113281 116.347656 98.199219 C 115.789062 98.277344 115.238281 98.320312 114.707031 98.320312 C 113.371094 98.320312 112.386719 97.875 111.699219 96.964844 C 110.9375 95.960938 110.566406 94.960938 110.566406 93.914062 L 110.566406 35.578125 L 106.582031 35.578125 L 106.582031 93.914062 C 106.582031 96.101562 107.273438 98.039062 108.636719 99.667969 C 110.050781 101.359375 112.0625 102.214844 114.621094 102.214844 C 115.421875 102.214844 116.21875 102.167969 116.988281 102.078125 C 117.730469 101.988281 118.394531 101.898438 118.992188 101.808594 C 119.601562 101.71875 120.308594 101.578125 121.09375 101.398438 L 122.445312 101.085938 L 120.671875 97.339844 Z "/>
26
+ </g>
27
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 136.976562 57.378906 C 134.90625 58.835938 133.074219 60.6875 131.507812 62.902344 L 131.507812 54.066406 L 127.523438 54.066406 L 127.523438 101.777344 L 131.507812 101.777344 L 131.507812 72.074219 C 132.058594 70.128906 132.820312 68.300781 133.769531 66.648438 C 134.726562 64.980469 135.914062 63.511719 137.304688 62.285156 C 138.695312 61.058594 140.3125 60.066406 142.117188 59.328125 C 143.914062 58.589844 145.945312 58.160156 148.148438 58.050781 L 149.207031 57.996094 L 149.207031 54.066406 L 148.09375 54.066406 C 143.84375 54.066406 140.105469 55.179688 136.976562 57.378906 "/>
28
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 193.910156 10.613281 L 160.910156 46.289062 L 202.382812 27.15625 C 201.15625 20.824219 198.152344 15.132812 193.910156 10.613281 "/>
29
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 169.425781 0 C 164.855469 0 160.5 0.917969 156.527344 2.574219 L 152.097656 39.886719 L 174.226562 0.347656 C 172.65625 0.121094 171.058594 0 169.425781 0 "/>
30
+ <g clip-path="url(#clip4)" clip-rule="nonzero">
31
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 202.714844 29.210938 L 163.414062 51.203125 L 200.285156 46.828125 C 202.035156 42.761719 203.003906 38.285156 203.003906 33.578125 C 203.003906 32.097656 202.898438 30.640625 202.714844 29.210938 "/>
32
+ </g>
33
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 188.226562 61.40625 C 192.617188 58.433594 196.261719 54.449219 198.835938 49.789062 L 164.277344 56.648438 Z "/>
34
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 176.25 0.695312 L 157.011719 42.390625 L 192.695312 9.382812 C 188.222656 5.078125 182.5625 2 176.25 0.695312 "/>
35
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 172.234375 67.03125 C 175.953125 66.722656 179.496094 65.816406 182.773438 64.394531 L 163.414062 62.097656 Z "/>
36
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 138.820312 19.773438 C 137.308594 23.117188 136.328125 26.75 135.988281 30.566406 L 141.203125 39.886719 Z "/>
37
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 153.617188 3.953125 C 148.878906 6.488281 144.824219 10.121094 141.785156 14.519531 L 146.652344 39.023438 Z "/>
38
+ </g>
39
+ </svg>
@@ -0,0 +1,208 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html ng-app="solrAdminApp">
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one or more
5
+ contributor license agreements. See the NOTICE file distributed with
6
+ this work for additional information regarding copyright ownership.
7
+ The ASF licenses this file to You under the Apache License, Version 2.0
8
+ (the "License"); you may not use this file except in compliance with
9
+ the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+ -->
19
+
20
+ <head>
21
+ <title>Solr Admin</title>
22
+
23
+ <link rel="icon" type="image/x-icon" href="img/favicon.ico?_=${version}">
24
+ <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico?_=${version}">
25
+
26
+ <link rel="stylesheet" type="text/css" href="css/angular/common.css?_=${version}">
27
+ <link rel="stylesheet" type="text/css" href="css/angular/analysis.css?_=${version}">
28
+ <link rel="stylesheet" type="text/css" href="css/angular/cloud.css?_=${version}">
29
+ <link rel="stylesheet" type="text/css" href="css/angular/cores.css?_=${version}">
30
+ <link rel="stylesheet" type="text/css" href="css/styles/dashboard.css?_=${version}">
31
+ <link rel="stylesheet" type="text/css" href="css/angular/dataimport.css?_=${version}">
32
+ <link rel="stylesheet" type="text/css" href="css/angular/files.css?_=${version}">
33
+ <link rel="stylesheet" type="text/css" href="css/angular/index.css?_=${version}">
34
+ <link rel="stylesheet" type="text/css" href="css/styles/java-properties.css?_=${version}">
35
+ <link rel="stylesheet" type="text/css" href="css/angular/logging.css?_=${version}">
36
+ <link rel="stylesheet" type="text/css" href="css/angular/menu.css?_=${version}">
37
+ <link rel="stylesheet" type="text/css" href="css/angular/plugins.css?_=${version}">
38
+ <link rel="stylesheet" type="text/css" href="css/angular/documents.css?_=${version}">
39
+ <link rel="stylesheet" type="text/css" href="css/angular/query.css?_=${version}">
40
+ <link rel="stylesheet" type="text/css" href="css/angular/replication.css?_=${version}">
41
+ <link rel="stylesheet" type="text/css" href="css/angular/schema-browser.css?_=${version}">
42
+ <link rel="stylesheet" type="text/css" href="css/angular/segments.css?_=${version}">
43
+ <link rel="stylesheet" type="text/css" href="css/angular/threads.css?_=${version}">
44
+ <link rel="stylesheet" type="text/css" href="css/angular/chosen.css?_=${version}">
45
+
46
+ <meta http-equiv="x-ua-compatible" content="IE=9">
47
+ <script src="libs/jquery-2.1.3.min.js"></script>
48
+ <script src="libs/chosen.jquery.js"></script>
49
+ <script src="libs/jquery.jstree.js"></script>
50
+ <script src="libs/angular.js"></script>
51
+ <script src="libs/angular-chosen.js"></script>
52
+ <script src="libs/angular-resource.min.js"></script>
53
+ <script src="libs/angular-route.min.js"></script>
54
+ <script src="libs/angular-cookies.min.js"></script>
55
+ <script src="libs/ngtimeago.js"></script>
56
+ <script src="libs/highlight.js"></script>
57
+ <script src="libs/d3.js"></script>
58
+ <script src="js/angular/app.js"></script>
59
+ <script src="js/angular/services.js"></script>
60
+ <script src="js/angular/controllers/index.js"></script>
61
+ <script src="js/angular/controllers/logging.js"></script>
62
+ <script src="js/angular/controllers/cloud.js"></script>
63
+ <script src="js/angular/controllers/cores.js"></script>
64
+ <script src="js/angular/controllers/threads.js"></script>
65
+ <script src="js/angular/controllers/java-properties.js"></script>
66
+ <script src="js/angular/controllers/core-overview.js"></script>
67
+ <script src="js/angular/controllers/analysis.js"></script>
68
+ <script src="js/angular/controllers/dataimport.js"></script>
69
+ <script src="js/angular/controllers/documents.js"></script>
70
+ <script src="js/angular/controllers/files.js"></script>
71
+ <script src="js/angular/controllers/query.js"></script>
72
+ <script src="js/angular/controllers/plugins.js"></script>
73
+ <script src="js/angular/controllers/replication.js"></script>
74
+ <script src="js/angular/controllers/schema-browser.js"></script>
75
+ <script src="js/angular/controllers/segments.js"></script>
76
+
77
+ </head>
78
+ <body ng-controller="MainController">
79
+
80
+ <div id="wrapper">
81
+
82
+ <div id="header">
83
+
84
+ <a href="./" id="solr"><span>Apache SOLR</span></a>
85
+
86
+ <p id="environment">&nbsp;</p>
87
+
88
+ </div>
89
+
90
+ <div id="main" class="clearfix">
91
+
92
+ <div class="header-message" id="init-failures" ng-show="initFailures">
93
+
94
+ <h2>SolrCore Initialization Failures</h2>
95
+ <ul></ul>
96
+ <p>Please check your logs for more information</p>
97
+
98
+ </div>
99
+
100
+ <div id="loading" class="loader universal-loader" loading-status-message>&nbsp;</div>
101
+
102
+ <div id="connection-box" connection-message>
103
+ <div id="connection-status-modal">
104
+ </div>
105
+
106
+ <div class="connection-status header-message">
107
+ <h2>Connection to Solr lost</h2>
108
+ <p>Please check the Solr instance.</p>
109
+ </div>
110
+ <div class="connection-status header-message" id="connection-status-recovered" ng-show="connectionRecovered">
111
+ <h2>Connection recovered...</h2>
112
+ <p>Continuing to load data...</p>
113
+ </div>
114
+ </div>
115
+
116
+ <div id="http-exception" class="header-message" ng-show="exception">
117
+ <h2>Exception</h2>
118
+ <p>{{exception}}</p>
119
+ <a ng-click="hideException()">hide exception</a>
120
+ </div>
121
+
122
+ <div id="content-wrapper">
123
+ <div ng-view id="content">
124
+
125
+ </div>
126
+ </div>
127
+
128
+ <div id="menu-wrapper">
129
+ <div>
130
+
131
+ <ul id="menu">
132
+
133
+ <li id="index" class="global" ng-class="{active:page=='index'}"><p><a href="#/">Dashboard</a></p></li>
134
+
135
+ <li id="logging" class="global" ng-class="{active:page=='logging'}"><p><a href="#/~logging">Logging</a></p>
136
+ <ul ng-show="showingLogging">
137
+ <li class="level" ng-class="{active:page=='logging-levels'}"><a href="#/~logging/level">Level</a></li>
138
+ </ul>
139
+ </li>
140
+
141
+ <li id="cloud" class="global optional" ng-show="isCloudEnabled" ng-class="{active:showingCloud}"><p><a href="#/~cloud">Cloud</a></p>
142
+ <ul ng-show="showingCloud">
143
+ <li class="tree" ng-class="{active:page=='cloud-tree'}"><a href="#/~cloud?view=tree">Tree</a></li>
144
+ <li class="graph" ng-class="{active:page=='cloud-graph'}"><a href="#/~cloud">Graph</a></li>
145
+ <li class="rgraph" ng-class="{active:page=='cloud-rgraph'}"><a href="#/~cloud?view=rgraph">Graph (Radial)</a></li>
146
+ <li class="dump" ng-class="{active:page=='cloud-dump'}"><a ng-click="dumpCloud()">Dump</a></li>
147
+ </ul>
148
+ </li>
149
+
150
+ <li id="cores" class="global" ng-class="{active:page=='cores'}"><p><a href="#/~cores">Core Admin</a></p></li>
151
+
152
+ <li id="java-properties" class="global" ng-class="{active:page=='java-props'}"><p><a href="#/~java-properties">Java Properties</a></li>
153
+
154
+ <li id="threads" class="global" ng-class="{active:page=='threads'}"><p><a href="#/~threads">Thread Dump</a></p></li>
155
+
156
+ </ul>
157
+
158
+ <div id="core-selector">
159
+ <div id="has-cores" ng-show="cores.length!=0">
160
+ <select data-placeholder="Core Selector"
161
+ ng-model="currentCore"
162
+ chosen
163
+ ng-options="core.name for core in cores"></select>
164
+ </div>
165
+ <p id="has-no-cores" ng-show="cores.length==0"><a href="#/~cores">
166
+ No cores available
167
+ <span>Go and create one</span>
168
+ </a></p>
169
+ </div>
170
+ <div id="core-menu" ng-show="currentCore">
171
+ <ul>
172
+ <li class="overview" ng-class="{active:page=='overview'}"><a href="#/{{currentCore.name}}"><span>Overview</span></a></li>
173
+ <li class="analysis" ng-class="{active:page=='analysis'}"><a href="#/{{currentCore.name}}/analysis"><span>Analysis</span></a></li>
174
+ <li class="dataimport" ng-class="{active:page=='dataimport'}"><a href="#/{{currentCore.name}}/dataimport"><span>Dataimport</span></a></li>
175
+ <li class="documents" ng-class="{active:page=='documents'}"><a href="#/{{currentCore.name}}/documents"><span>Documents</span></a></li>
176
+ <li class="files" ng-class="{active:page=='files'}"><a href="#/{{currentCore.name}}/files"><span>Files</span></a></li>
177
+ <li class="ping" ng-class="{active:page=='ping'}"><a ng-click="ping()"><span>Ping</span><small class="qtime" ng-show="pingMS"> (<span>{{pingMS}}ms</span>)</small></a></li>
178
+ <li class="plugins" ng-class="{active:page=='plugins'}"><a href="#/{{currentCore.name}}/plugins"><span>Plugins / Stats</span></a></li>
179
+ <li class="query" ng-class="{active:page=='query'}"><a href="#/{{currentCore.name}}/query"><span>Query</span></a></li>
180
+ <li class="replication" ng-class="{active:page=='replication'}"><a href="#/{{currentCore.name}}/replication"><span>Replication</span></a></li>
181
+ <li class="schema-browser" ng-class="{active:page=='schema-browser'}"><a href="#/{{currentCore.name}}/schema-browser"><span>Schema Browser</span></a></li>
182
+ <li class="segments" ng-class="{active:page=='segments'}"><a href="#/{{currentCore.name}}/segments"><span>Segments info</span></a></li>
183
+ </ul>
184
+ </div>
185
+
186
+ </div>
187
+ </div>
188
+
189
+ <div id="meta">
190
+
191
+ <ul>
192
+
193
+ <li class="documentation"><a href="http://lucene.apache.org/solr/"><span>Documentation</span></a></li>
194
+ <li class="issues"><a href="http://issues.apache.org/jira/browse/SOLR"><span>Issue Tracker</span></a></li>
195
+ <li class="irc"><a href="http://webchat.freenode.net/?channels=#solr"><span>IRC Channel</span></a></li>
196
+ <li class="mailinglist"><a href="http://wiki.apache.org/solr/UsingMailingLists"><span>Community forum</span></a></li>
197
+ <li class="wiki-query-syntax"><a href="http://wiki.apache.org/solr/SolrQuerySyntax"><span>Solr Query Syntax</span></a></li>
198
+
199
+ </ul>
200
+
201
+ </div>
202
+
203
+ </div>
204
+
205
+ </div>
206
+
207
+ </body>
208
+ </html>
@@ -0,0 +1,713 @@
1
+ /*
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
17
+
18
+ var solrAdminApp = angular.module("solrAdminApp", [
19
+ "ngResource",
20
+ "ngRoute",
21
+ "ngCookies",
22
+ "ngtimeago",
23
+ "solrAdminServices",
24
+ "localytics.directives"
25
+ ]);
26
+
27
+ solrAdminApp.config([
28
+ '$routeProvider', function($routeProvider) {
29
+ $routeProvider.
30
+ when('/', {
31
+ templateUrl: 'partials/index.html',
32
+ controller: 'IndexController'
33
+ }).
34
+ when('/~logging', {
35
+ templateUrl: 'partials/logging.html',
36
+ controller: 'LoggingController'
37
+ }).
38
+ when('/~logging/level', {
39
+ templateUrl: 'partials/logging-levels.html',
40
+ controller: 'LoggingLevelController'
41
+ }).
42
+ when('/~cloud', {
43
+ templateUrl: 'partials/cloud.html',
44
+ controller: 'CloudController'
45
+ }).
46
+ when('/~cores', {
47
+ templateUrl: 'partials/cores.html',
48
+ controller: 'CoreAdminController'
49
+ }).
50
+ when('/~cores/:corename', {
51
+ templateUrl: 'partials/cores.html',
52
+ controller: 'CoreAdminController'
53
+ }).
54
+ when('/~threads', {
55
+ templateUrl: 'partials/threads.html',
56
+ controller: 'ThreadsController'
57
+ }).
58
+ when('/~java-properties', {
59
+ templateUrl: 'partials/java-properties.html',
60
+ controller: 'JavaPropertiesController'
61
+ }).
62
+ when('/:core', {
63
+ templateUrl: 'partials/core_overview.html',
64
+ controller: 'CoreOverviewController'
65
+ }).
66
+ when('/:core/analysis', {
67
+ templateUrl: 'partials/analysis.html',
68
+ controller: 'AnalysisController'
69
+ }).
70
+ when('/:core/dataimport', {
71
+ templateUrl: 'partials/dataimport.html',
72
+ controller: 'DataImportController'
73
+ }).
74
+ when('/:core/dataimport/:handler*', {
75
+ templateUrl: 'partials/dataimport.html',
76
+ controller: 'DataImportController'
77
+ }).
78
+ when('/:core/documents', {
79
+ templateUrl: 'partials/documents.html',
80
+ controller: 'DocumentsController'
81
+ }).
82
+ when('/:core/files', {
83
+ templateUrl: 'partials/files.html',
84
+ controller: 'FilesController'
85
+ }).
86
+ when('/:core/plugins', {
87
+ templateUrl: 'partials/plugins.html',
88
+ controller: 'PluginsController',
89
+ reloadOnSearch: false
90
+ }).
91
+ when('/:core/plugins/:legacytype', {
92
+ templateUrl: 'partials/plugins.html',
93
+ controller: 'PluginsController',
94
+ reloadOnSearch: false
95
+ }).
96
+ when('/:core/query', {
97
+ templateUrl: 'partials/query.html',
98
+ controller: 'QueryController'
99
+ }).
100
+ when('/:core/replication', {
101
+ templateUrl: 'partials/replication.html',
102
+ controller: 'ReplicationController'
103
+ }).
104
+ when('/:core/dataimport', {
105
+ templateUrl: 'partials/dataimport.html',
106
+ controller: 'DataImportController'
107
+ }).
108
+ when('/:core/dataimport/:handler*', {
109
+ templateUrl: 'partials/dataimport.html',
110
+ controller: 'DataImportController'
111
+ }).
112
+ when('/:core/schema-browser', {
113
+ templateUrl: 'partials/schema-browser.html',
114
+ controller: 'SchemaBrowserController'
115
+ }).
116
+ when('/:core/segments', {
117
+ templateUrl: 'partials/segments.html',
118
+ controller: 'SegmentsController'
119
+ }).
120
+ otherwise({
121
+ redirectTo: '/'
122
+ });
123
+ }])
124
+ .filter('highlight', function($sce) {
125
+ return function(input, lang) {
126
+ if (lang && input && lang!="text") return hljs.highlight(lang, input).value;
127
+ return input;
128
+ }
129
+ })
130
+ .filter('unsafe', function($sce) { return $sce.trustAsHtml; })
131
+ .directive('loadingStatusMessage', function() {
132
+ return {
133
+ link: function($scope, $element, attrs) {
134
+ var show = function() {$element.css('display', 'block')};
135
+ var hide = function() {$element.css('display', 'none')};
136
+ $scope.$on('loadingStatusActive', show);
137
+ $scope.$on('loadingStatusInactive', hide);
138
+ }
139
+ };
140
+ })
141
+ .filter('readableSeconds', function() {
142
+ return function(input) {
143
+ seconds = parseInt(input||0, 10);
144
+ var minutes = Math.floor( seconds / 60 );
145
+ var hours = Math.floor( minutes / 60 );
146
+
147
+ var text = [];
148
+ if( 0 !== hours ) {
149
+ text.push( hours + 'h' );
150
+ seconds -= hours * 60 * 60;
151
+ minutes -= hours * 60;
152
+ }
153
+
154
+ if( 0 !== minutes ) {
155
+ text.push( minutes + 'm' );
156
+ seconds -= minutes * 60;
157
+ }
158
+
159
+ if( 0 !== seconds ) {
160
+ text.push( ( '0' + seconds ).substr( -2 ) + 's' );
161
+ }
162
+ return text.join(' ');
163
+ };
164
+ })
165
+ .filter('number', function($locale) {
166
+ return function(input) {
167
+ var sep = {
168
+ 'de_CH' : '\'',
169
+ 'de' : '.',
170
+ 'en' : ',',
171
+ 'es' : '.',
172
+ 'it' : '.',
173
+ 'ja' : ',',
174
+ 'sv' : ' ',
175
+ 'tr' : '.',
176
+ '_' : '' // fallback
177
+ };
178
+
179
+ var browser = {};
180
+ var match = $locale.id.match( /^(\w{2})([-_](\w{2}))?$/ );
181
+ if (match[1]) {
182
+ browser.language = match[1].toLowerCase();
183
+ }
184
+ if (match[1] && match[3]) {
185
+ browser.locale = match[1] + '_' + match[3];
186
+ }
187
+
188
+ var result= ( input || 0 ).toString().replace(/\B(?=(\d{3})+(?!\d))/g,
189
+ sep[ browser.locale ] || sep[ browser.language ] || sep['_']);
190
+ console.log(result);
191
+ return result;
192
+ };
193
+ })
194
+ .filter('orderObjectBy', function() {
195
+ return function(items, field, reverse) {
196
+ var filtered = [];
197
+ angular.forEach(items, function(item) {
198
+ filtered.push(item);
199
+ });
200
+ filtered.sort(function (a, b) {
201
+ return (a[field] > b[field] ? 1 : -1);
202
+ });
203
+ if(reverse) filtered.reverse();
204
+ return filtered;
205
+ };
206
+ })
207
+ .directive('jstree', function($parse) {
208
+ return {
209
+ restrict: 'EA',
210
+ scope: {
211
+ data: '=',
212
+ onSelect: '&'
213
+ },
214
+ link: function(scope, element, attrs) {
215
+ scope.$watch("data", function(newValue, oldValue) {
216
+ if (newValue) {
217
+ var treeConfig = {
218
+ "plugins" : [ "themes", "json_data", "ui" ],
219
+ "json_data" : {
220
+ "data" : scope.data,
221
+ "progressive_render" : true
222
+ },
223
+ "core" : {
224
+ "animation" : 0
225
+ }
226
+ };
227
+
228
+ var tree = $(element).jstree(treeConfig);
229
+ tree.jstree('open_node','li:first');
230
+ if (tree) {
231
+ element.bind("select_node.jstree", function (event, data) {
232
+ scope.$apply(function() {
233
+ scope.onSelect({url: data.args[0].href, data: data});
234
+ });
235
+ });
236
+ }
237
+ }
238
+ }, true);
239
+ }
240
+ };
241
+ })
242
+ .directive('connectionMessage', function() {
243
+ return {
244
+ link: function($scope, $element, attrs) {
245
+ var show = function() {$element.css('display', 'block')};
246
+ var hide = function() {$element.css('display', 'none')};
247
+ $scope.$on('connectionStatusActive', show);
248
+ $scope.$on('connectionStatusInactive', hide);
249
+ }
250
+ };
251
+ })
252
+ .factory('httpInterceptor', function($q, $rootScope, $timeout, $injector) {
253
+ var activeRequests = 0;
254
+
255
+ var started = function(config) {
256
+ if (activeRequests == 0) {
257
+ $rootScope.$broadcast('loadingStatusActive');
258
+ }
259
+ activeRequests++;
260
+ config.timeout = 10000;
261
+ return config || $q.when(config);
262
+ };
263
+
264
+ var ended = function(response) {
265
+ activeRequests--;
266
+ if (activeRequests == 0) {
267
+ $rootScope.$broadcast('loadingStatusInactive');
268
+ }
269
+ if ($rootScope.retryCount>0) {
270
+ $rootScope.connectionRecovered = true;
271
+ $rootScope.retryCount=0;
272
+ $timeout(function() {
273
+ $rootScope.connectionRecovered=false;
274
+ $rootScope.$broadcast('connectionStatusInactive');
275
+ },2000);
276
+ }
277
+ return response || $q.when(response);
278
+ };
279
+
280
+ var failed = function(rejection) {
281
+ activeRequests--;
282
+ if (activeRequests == 0) {
283
+ $rootScope.$broadcast('loadingStatusInactive');
284
+ }
285
+ if (rejection.config.params.doNotIntercept) {
286
+ return rejection;
287
+ }
288
+ if (rejection.status === 0) {
289
+ $rootScope.$broadcast('connectionStatusActive');
290
+ if (!$rootScope.retryCount) $rootScope.retryCount=0;
291
+ $rootScope.retryCount ++;
292
+ var $http = $injector.get('$http');
293
+ var result = $http(rejection.config);
294
+ return result;
295
+ } else {
296
+ $rootScope.exception = rejection;
297
+ }
298
+ return $q.reject(rejection);
299
+ }
300
+
301
+ return {request: started, response: ended, responseError: failed};
302
+ })
303
+ .config(function($httpProvider) {
304
+ $httpProvider.interceptors.push("httpInterceptor");
305
+ })
306
+ .directive('fileModel', function ($parse) {
307
+ return {
308
+ restrict: 'A',
309
+ link: function(scope, element, attrs) {
310
+ var model = $parse(attrs.fileModel);
311
+ var modelSetter = model.assign;
312
+
313
+ element.bind('change', function(){
314
+ scope.$apply(function(){
315
+ modelSetter(scope, element[0].files[0]);
316
+ });
317
+ });
318
+ }
319
+ };
320
+ });
321
+
322
+ solrAdminApp.controller('MainController', function($scope, $route, $rootScope, $location, Cores, System, Ping) {
323
+ $rootScope.hideException = function() {delete $rootScope.exception};
324
+ $scope.refresh = function() {
325
+ Cores.list(function(data) {
326
+ $scope.cores = [];
327
+ var currentCoreName = $route.current.params.core;
328
+ delete $scope.currentCore;
329
+ for (key in data.status) {
330
+ var core = data.status[key];
331
+ $scope.cores.push(core);
332
+ if (core.name == currentCoreName) {
333
+ $scope.currentCore = core;
334
+ }
335
+ }
336
+ });
337
+ System.get(function(data) {
338
+ $scope.isCloudEnabled = data.mode.match( /solrcloud/i )
339
+ });
340
+ };
341
+ $scope.refresh();
342
+
343
+ $scope.resetMenu = function(page, isMainPage) {
344
+ $scope.showingLogging = page.lastIndexOf("logging", 0) === 0;
345
+ $scope.showingCloud = page.lastIndexOf("cloud", 0) === 0;
346
+ $scope.page = page;
347
+ if (isMainPage) delete $scope.currentCore;
348
+ };
349
+
350
+ $scope.ping = function() {
351
+ Ping.ping({core: $scope.currentCore.name}, function(data) {
352
+ $scope.pingMS = data.responseHeader.QTime;
353
+ });
354
+ // @todo .attr( 'title', '/admin/ping is not configured (' + xhr.status + ': ' + error_thrown + ')' );
355
+ };
356
+
357
+ $scope.dumpCloud = function() {
358
+ $scope.$broadcast("cloud-dump");
359
+ }
360
+ });
361
+
362
+
363
+
364
+ (function(window, angular, undefined) {
365
+ 'use strict';
366
+
367
+ angular.module('ngClipboard', []).
368
+ provider('ngClip', function() {
369
+ var self = this;
370
+ this.path = '//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.swf';
371
+ return {
372
+ setPath: function(newPath) {
373
+ self.path = newPath;
374
+ },
375
+ setConfig: function(config) {
376
+ self.config = config;
377
+ },
378
+ $get: function() {
379
+ return {
380
+ path: self.path,
381
+ config: self.config
382
+ };
383
+ }
384
+ };
385
+ }).
386
+ run(['ngClip', function(ngClip) {
387
+ var config = {
388
+ swfPath: ngClip.path,
389
+ trustedDomains: ["*"],
390
+ allowScriptAccess: "always",
391
+ forceHandCursor: true,
392
+ };
393
+ ZeroClipboard.config(angular.extend(config,ngClip.config || {}));
394
+ }]).
395
+ directive('clipCopy', ['ngClip', function (ngClip) {
396
+ return {
397
+ scope: {
398
+ clipCopy: '&',
399
+ clipClick: '&',
400
+ clipClickFallback: '&'
401
+ },
402
+ restrict: 'A',
403
+ link: function (scope, element, attrs) {
404
+ // Bind a fallback function if flash is unavailable
405
+ if (ZeroClipboard.isFlashUnusable()) {
406
+ element.bind('click', function($event) {
407
+ // Execute the expression with local variables `$event` and `copy`
408
+ scope.$apply(scope.clipClickFallback({
409
+ $event: $event,
410
+ copy: scope.$eval(scope.clipCopy)
411
+ }));
412
+ });
413
+
414
+ return;
415
+ }
416
+
417
+ // Create the client object
418
+ var client = new ZeroClipboard(element);
419
+ if (attrs.clipCopy === "") {
420
+ scope.clipCopy = function(scope) {
421
+ return element[0].previousElementSibling.innerText;
422
+ };
423
+ }
424
+ client.on( 'ready', function(readyEvent) {
425
+
426
+ client.on('copy', function (event) {
427
+ var clipboard = event.clipboardData;
428
+ clipboard.setData(attrs.clipCopyMimeType || 'text/plain', scope.$eval(scope.clipCopy));
429
+ });
430
+
431
+ client.on( 'aftercopy', function(event) {
432
+ if (angular.isDefined(attrs.clipClick)) {
433
+ scope.$apply(scope.clipClick);
434
+ }
435
+ });
436
+
437
+ scope.$on('$destroy', function() {
438
+ client.destroy();
439
+ });
440
+ });
441
+ }
442
+ };
443
+ }]);
444
+ })(window, window.angular);
445
+
446
+
447
+ /* THE BELOW CODE IS TAKEN FROM js/scripts/app.js, AND STILL REQUIRES INTEGRATING
448
+
449
+
450
+ // @todo clear timeouts
451
+
452
+ // activate_core
453
+ this.before
454
+ (
455
+ {},
456
+ function( context )
457
+ {
458
+
459
+ var menu_wrapper = $( '#menu-wrapper' );
460
+
461
+ // global dashboard doesn't have params.splat
462
+ if( !this.params.splat )
463
+ {
464
+ this.params.splat = [ '~index' ];
465
+ }
466
+
467
+ var selector = '~' === this.params.splat[0][0]
468
+ ? '#' + this.params.splat[0].replace( /^~/, '' ) + '.global'
469
+ : '#core-selector #' + this.params.splat[0].replace( /\./g, '__' );
470
+
471
+ var active_element = $( selector, menu_wrapper );
472
+
473
+ // @todo "There is no core with this name"
474
+
475
+ if( active_element.hasClass( 'global' ) )
476
+ {
477
+ active_element
478
+ .addClass( 'active' );
479
+
480
+ if( this.params.splat[1] )
481
+ {
482
+ $( '.' + this.params.splat[1], active_element )
483
+ .addClass( 'active' );
484
+ }
485
+
486
+ $( '#core-selector option[selected]' )
487
+ .removeAttr( 'selected' )
488
+ .trigger( 'liszt:updated' );
489
+
490
+ $( '#core-selector .chzn-container > a' )
491
+ .addClass( 'chzn-default' );
492
+ }
493
+ else
494
+ {
495
+ active_element
496
+ .attr( 'selected', 'selected' )
497
+ .trigger( 'liszt:updated' );
498
+
499
+
500
+ $( '#core-menu .' + this.params.splat[1] )
501
+ .addClass( 'active' );
502
+
503
+ }
504
+ );
505
+ }
506
+ );
507
+
508
+ var solr_admin = function( app_config )
509
+ {
510
+ this.menu_element = $( '#core-selector select' );
511
+ this.core_menu = $( '#core-menu ul' );
512
+
513
+ this.config = config;
514
+ this.timeout = null;
515
+
516
+ this.core_regex_base = '^#\\/([\\w\\d-\\.]+)';
517
+
518
+ show_global_error = function( error )
519
+ {
520
+ var main = $( '#main' );
521
+
522
+ $( 'div[id$="-wrapper"]', main )
523
+ .remove();
524
+
525
+ main
526
+ .addClass( 'error' )
527
+ .append( error );
528
+
529
+ var pre_tags = $( 'pre', main );
530
+ if( 0 !== pre_tags.size() )
531
+ {
532
+ hljs.highlightBlock( pre_tags.get(0) );
533
+ }
534
+ };
535
+
536
+ sort_cores_data = function sort_cores_data( cores_status )
537
+ {
538
+ // build array of core-names for sorting
539
+ var core_names = [];
540
+ for( var core_name in cores_status )
541
+ {
542
+ core_names.push( core_name );
543
+ }
544
+ core_names.sort();
545
+
546
+ var core_count = core_names.length;
547
+ var cores = {};
548
+
549
+ for( var i = 0; i < core_count; i++ )
550
+ {
551
+ var core_name = core_names[i];
552
+ cores[core_name] = cores_status[core_name];
553
+ }
554
+
555
+ return cores;
556
+ };
557
+
558
+ this.set_cores_data = function set_cores_data( cores )
559
+ {
560
+ that.cores_data = sort_cores_data( cores.status );
561
+
562
+ that.menu_element
563
+ .empty();
564
+
565
+ var core_list = [];
566
+ core_list.push( '<option></option>' );
567
+
568
+ var core_count = 0;
569
+ for( var core_name in that.cores_data )
570
+ {
571
+ core_count++;
572
+ var core_path = config.solr_path + '/' + core_name;
573
+ var classes = [];
574
+
575
+ if( cores.status[core_name]['isDefaultCore'] )
576
+ {
577
+ classes.push( 'default' );
578
+ }
579
+
580
+ var core_tpl = '<option '
581
+ + ' id="' + core_name.replace( /\./g, '__' ) + '" '
582
+ + ' class="' + classes.join( ' ' ) + '"'
583
+ + ' data-basepath="' + core_path + '"'
584
+ + ' schema="' + cores.status[core_name]['schema'] + '"'
585
+ + ' config="' + cores.status[core_name]['config'] + '"'
586
+ + ' value="#/' + core_name + '"'
587
+ + ' title="' + core_name + '"'
588
+ + '>'
589
+ + core_name
590
+ + '</option>';
591
+
592
+ core_list.push( core_tpl );
593
+ }
594
+
595
+ var has_cores = 0 !== core_count;
596
+ if( has_cores )
597
+ {
598
+ that.menu_element
599
+ .append( core_list.join( "\n" ) )
600
+ .trigger( 'liszt:updated' );
601
+ }
602
+
603
+ var core_selector = $( '#core-selector' );
604
+
605
+ if( has_cores )
606
+ {
607
+ var cores_element = core_selector.find( '#has-cores' );
608
+ var selector_width = cores_element.width();
609
+
610
+ cores_element.find( '.chzn-container' )
611
+ .css( 'width', selector_width + 'px' );
612
+
613
+ cores_element.find( '.chzn-drop' )
614
+ .css( 'width', ( selector_width - 2 ) + 'px' );
615
+ }
616
+ };
617
+
618
+ this.run = function()
619
+ {
620
+ $.ajax
621
+ (
622
+ {
623
+ // load cores (indexInfo = false
624
+ success : function( response )
625
+ {
626
+ check_fixed_menu();
627
+ $( window ).resize( check_fixed_menu );
628
+
629
+ var system_url = config.solr_path + '/admin/info/system?wt=json';
630
+ $.ajax
631
+ (
632
+ {
633
+ url : system_url,
634
+ dataType : 'json',
635
+ beforeSend : function( arr, form, options )
636
+ {
637
+ },
638
+ success : function( response )
639
+ {
640
+ that.dashboard_values = response;
641
+
642
+ var environment_args = null;
643
+ var cloud_args = null;
644
+
645
+ if( response.jvm && response.jvm.jmx && response.jvm.jmx.commandLineArgs )
646
+ {
647
+ var command_line_args = response.jvm.jmx.commandLineArgs.join( ' | ' );
648
+
649
+ environment_args = command_line_args.match( /-Dsolr.environment=((dev|test|prod)?[\w\d]*)/i );
650
+ }
651
+
652
+ // @todo detect $scope.isCloud = response.mode.match( /solrcloud/i );
653
+
654
+ // environment
655
+
656
+ var wrapper = $( '#wrapper' );
657
+ var environment_element = $( '#environment' );
658
+ if( environment_args )
659
+ {
660
+ wrapper
661
+ .addClass( 'has-environment' );
662
+
663
+ if( environment_args[1] )
664
+ {
665
+ environment_element
666
+ .html( environment_args[1] );
667
+ }
668
+
669
+ if( environment_args[2] )
670
+ {
671
+ environment_element
672
+ .addClass( environment_args[2] );
673
+ }
674
+ }
675
+ else
676
+ {
677
+ wrapper
678
+ .removeClass( 'has-environment' );
679
+ }
680
+
681
+ // cloud
682
+
683
+ var cloud_nav_element = $( '#menu #cloud' );
684
+ if( cloud_args )
685
+ {
686
+ cloud_nav_element
687
+ .show();
688
+ }
689
+
690
+ // sammy
691
+
692
+ sammy.run( location.hash );
693
+ },
694
+ error : function()
695
+ {
696
+ show_global_error
697
+ (
698
+ '<div class="message"><p>Unable to load environment info from <code>' + system_url.esc() + '</code>.</p>' +
699
+ '<p>This interface requires that you activate the admin request handlers in all SolrCores by adding the ' +
700
+ 'following configuration to your <code>solrconfig.xml</code>:</p></div>' + "\n" +
701
+
702
+ '<div class="code"><pre class="syntax language-xml"><code>' +
703
+ '<!-- Admin Handlers - This will register all the standard admin RequestHandlers. -->'.esc() + "\n" +
704
+ '<requestHandler name="/admin/" class="solr.admin.AdminHandlers" />'.esc() +
705
+ '</code></pre></div>'
706
+ );
707
+ };
708
+
709
+ check_fixed_menu = function check_fixed_menu()
710
+ {
711
+ $( '#wrapper' ).toggleClass( 'scroll', $( window ).height() < $( '#menu-wrapper' ).height() + $( '#header' ).height() + 40 );
712
+ }
713
+ */