sunspot_solr 2.2.0 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/sunspot-solr +2 -10
- data/lib/sunspot/solr/installer/config_installer.rb +55 -21
- data/lib/sunspot/solr/installer.rb +1 -1
- data/lib/sunspot/solr/java.rb +1 -1
- data/lib/sunspot/solr/server.rb +23 -24
- data/solr/.gitignore +2 -0
- data/solr/README.txt +181 -42
- data/solr/bin/init.d/solr +78 -0
- data/solr/bin/install_solr_service.sh +270 -0
- data/solr/bin/oom_solr.sh +30 -0
- data/solr/bin/post +228 -0
- data/solr/bin/solr +1350 -0
- data/solr/bin/solr.cmd +1230 -0
- data/solr/bin/solr.in.cmd +97 -0
- data/solr/bin/solr.in.sh +117 -0
- data/solr/server/README.txt +110 -0
- data/solr/server/contexts/solr-jetty-context.xml +8 -0
- data/solr/server/etc/jetty-http.xml +47 -0
- data/solr/{etc/jetty.xml → server/etc/jetty-https-ssl.xml} +175 -167
- data/solr/server/etc/jetty-https.xml +53 -0
- data/solr/server/etc/jetty-ssl.xml +46 -0
- data/solr/server/etc/jetty.xml +189 -0
- data/solr/{etc → server/etc}/webdefault.xml +527 -527
- data/solr/server/lib/ext/jcl-over-slf4j-1.7.7.jar +0 -0
- data/solr/server/lib/ext/jul-to-slf4j-1.7.7.jar +0 -0
- data/solr/server/lib/ext/log4j-1.2.17.jar +0 -0
- data/solr/server/lib/ext/slf4j-api-1.7.7.jar +0 -0
- data/solr/server/lib/ext/slf4j-log4j12-1.7.7.jar +0 -0
- data/solr/server/lib/javax.servlet-api-3.1.0.jar +0 -0
- data/solr/server/lib/jetty-continuation-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-deploy-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-http-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-io-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-jmx-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-rewrite-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-security-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-server-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-servlet-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-servlets-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-util-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-webapp-9.2.11.v20150529.jar +0 -0
- data/solr/server/lib/jetty-xml-9.2.11.v20150529.jar +0 -0
- data/solr/server/modules/http.mod +9 -0
- data/solr/server/modules/https.mod +9 -0
- data/solr/server/modules/server.mod +11 -0
- data/solr/server/modules/ssl.mod +9 -0
- data/solr/server/resources/jetty-logging.properties +1 -0
- data/solr/server/resources/log4j.properties +24 -0
- data/solr/server/solr/README.txt +77 -0
- data/solr/server/solr/solr.xml +51 -0
- data/solr/server/solr/zoo.cfg +17 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/antlr-runtime-3.5.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/asm-4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/asm-commons-4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-cli-1.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-codec-1.10.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-collections-3.2.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-configuration-1.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-exec-1.3.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-io-2.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/commons-lang-2.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/concurrentlinkedhashmap-lru-1.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/dom4j-1.6.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/guava-14.0.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-annotations-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-auth-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-common-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hadoop-hdfs-2.6.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/hppc-0.5.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/htrace-core-3.0.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpclient-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpcore-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/httpmime-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-core-2.5.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/jackson-dataformat-smile-2.5.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/joda-time-2.2.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-common-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-kuromoji-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-analyzers-phonetic-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-backward-codecs-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-codecs-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-core-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-expressions-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-grouping-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-highlighter-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-join-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-memory-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-misc-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queries-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-queryparser-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-sandbox-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-spatial-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/lucene-suggest-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/noggit-0.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/org.restlet.ext.servlet-2.3.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/protobuf-java-2.5.0.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-core-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/solr-solrj-5.3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/spatial4j-0.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/stax2-api-3.1.4.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/t-digest-3.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/woodstox-core-asl-4.4.1.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/lib/zookeeper-3.4.6.jar +0 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/web.xml +169 -0
- data/solr/server/solr-webapp/webapp/WEB-INF/weblogic.xml +28 -0
- data/solr/server/solr-webapp/webapp/admin.html +164 -0
- data/solr/server/solr-webapp/webapp/css/angular/analysis.css +304 -0
- data/solr/server/solr-webapp/webapp/css/angular/chosen.css +465 -0
- data/solr/server/solr-webapp/webapp/css/angular/cloud.css +398 -0
- data/solr/server/solr-webapp/webapp/css/angular/common.css +724 -0
- data/solr/server/solr-webapp/webapp/css/angular/cores.css +233 -0
- data/solr/server/solr-webapp/webapp/css/angular/dataimport.css +370 -0
- data/solr/server/solr-webapp/webapp/css/angular/documents.css +179 -0
- data/solr/server/solr-webapp/webapp/css/angular/files.css +53 -0
- data/solr/server/solr-webapp/webapp/css/angular/index.css +206 -0
- data/solr/server/solr-webapp/webapp/css/angular/logging.css +376 -0
- data/solr/server/solr-webapp/webapp/css/angular/menu.css +321 -0
- data/solr/server/solr-webapp/webapp/css/angular/plugins.css +212 -0
- data/solr/server/solr-webapp/webapp/css/angular/query.css +162 -0
- data/solr/server/solr-webapp/webapp/css/angular/replication.css +500 -0
- data/solr/server/solr-webapp/webapp/css/angular/schema-browser.css +567 -0
- data/solr/server/solr-webapp/webapp/css/angular/segments.css +173 -0
- data/solr/server/solr-webapp/webapp/css/angular/threads.css +161 -0
- data/solr/server/solr-webapp/webapp/css/chosen.css +421 -0
- data/solr/server/solr-webapp/webapp/css/styles/analysis.css +311 -0
- data/solr/server/solr-webapp/webapp/css/styles/cloud.css +410 -0
- data/solr/server/solr-webapp/webapp/css/styles/common.css +701 -0
- data/solr/server/solr-webapp/webapp/css/styles/cores.css +244 -0
- data/solr/server/solr-webapp/webapp/css/styles/dashboard.css +155 -0
- data/solr/server/solr-webapp/webapp/css/styles/dataimport.css +403 -0
- data/solr/server/solr-webapp/webapp/css/styles/documents.css +197 -0
- data/solr/server/solr-webapp/webapp/css/styles/files.css +54 -0
- data/solr/server/solr-webapp/webapp/css/styles/index.css +207 -0
- data/solr/server/solr-webapp/webapp/css/styles/java-properties.css +52 -0
- data/solr/server/solr-webapp/webapp/css/styles/logging.css +391 -0
- data/solr/server/solr-webapp/webapp/css/styles/menu.css +329 -0
- data/solr/server/solr-webapp/webapp/css/styles/plugins.css +195 -0
- data/solr/server/solr-webapp/webapp/css/styles/query.css +173 -0
- data/solr/server/solr-webapp/webapp/css/styles/replication.css +515 -0
- data/solr/server/solr-webapp/webapp/css/styles/schema-browser.css +578 -0
- data/solr/server/solr-webapp/webapp/css/styles/segments.css +145 -0
- data/solr/server/solr-webapp/webapp/css/styles/threads.css +172 -0
- data/solr/server/solr-webapp/webapp/favicon.ico +0 -0
- data/solr/server/solr-webapp/webapp/img/ZeroClipboard.swf +0 -0
- data/solr/server/solr-webapp/webapp/img/chosen-sprite-2x.png +0 -0
- data/solr/server/solr-webapp/webapp/img/chosen-sprite.png +0 -0
- data/solr/server/solr-webapp/webapp/img/div.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/favicon.ico +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/7z.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/README +27 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ai.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/aiff.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/asc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/audio.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/bin.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/bz2.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/c.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cfc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cfm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/chm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/class.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/conf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cpp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/cs.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/css.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/csv.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/deb.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/divx.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/doc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/dot.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/eml.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/enc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/file.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/gif.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/gz.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/hlp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/htm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/html.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/image.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/iso.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/java.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jpeg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/jpg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/js.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/lua.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/m.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mov.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mp3.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/mpg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ods.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/odt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ogg.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pdf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pgp.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/php.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/pl.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/png.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ppt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ps.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/py.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/ram.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rb.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rpm.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/rtf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sig.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sql.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/swf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxc.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxd.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/sxw.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tex.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/tgz.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/txt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/vcf.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/video.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/vsd.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wav.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wma.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/wmv.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xls.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xml.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xpi.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/xvid.png +0 -0
- data/solr/server/solr-webapp/webapp/img/filetypes/zip.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-000-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-circle.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/arrow-switch.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/asterisk.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/battery.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/block-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/block.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/book-open-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/bug.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chart.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chevron-small-expand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/chevron-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-list.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-paste-document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clipboard-paste.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clock-select-remain.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/clock-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/construction.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-0.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-1.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/cross.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/dashboard.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/database--plus.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/database.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/databases.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/disk-black.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-convert.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-import.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-list.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/documents-stack.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/download-cloud.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/drive-upload.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/exclamation-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/eye.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder-export.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder-tree.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/folder.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/funnel-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/funnel.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/gear.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/globe-network.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/globe.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hammer-screwdriver.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hammer.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/highlighter-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/home.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hourglass--exclamation.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/hourglass.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/inbox-document-text.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/information.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/jar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/magnifier.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/mail.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/memory.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/minus-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/molecule.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-cloud.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-away.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-busy.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status-offline.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network-status.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/network.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-design.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-master.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node-slave.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/node.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/pencil-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/pencil.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/plus-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/processor.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/prohibition.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/property.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question-small-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question-white.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/question.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/receipt-invoice.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/receipt.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/script-code.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/server-cast.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/server.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/sitemap.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/slash.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-away.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-busy.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status-offline.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/status.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/system-monitor--exclamation.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/system-monitor.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/table.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/terminal.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick-circle.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick-red.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/tick.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toggle-small-expand.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toggle-small.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/toolbox.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-accordion.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-address-bar.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-check-box-uncheck.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-check-box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-radio-button.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/ui-text-field-select.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/users.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/wooden-box.png +0 -0
- data/solr/server/solr-webapp/webapp/img/ico/zone.png +0 -0
- data/solr/server/solr-webapp/webapp/img/loader-light.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/loader.gif +0 -0
- data/solr/server/solr-webapp/webapp/img/lucene-ico.png +0 -0
- data/solr/server/solr-webapp/webapp/img/solr-ico.png +0 -0
- data/solr/server/solr-webapp/webapp/img/solr.svg +39 -0
- data/solr/server/solr-webapp/webapp/img/tree.png +0 -0
- data/solr/server/solr-webapp/webapp/index.html +208 -0
- data/solr/server/solr-webapp/webapp/js/angular/app.js +713 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/analysis.js +199 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/cloud.js +528 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/core-overview.js +225 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/cores.js +465 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/dataimport.js +284 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/documents.js +139 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/files.js +92 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/index.js +95 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/java-properties.js +45 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/logging.js +146 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/plugins.js +166 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/query.js +99 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/replication.js +227 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/schema-browser.js +432 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/segments.js +94 -0
- data/solr/server/solr-webapp/webapp/js/angular/controllers/threads.js +51 -0
- data/solr/server/solr-webapp/webapp/js/angular/services.js +214 -0
- data/solr/server/solr-webapp/webapp/js/lib/ZeroClipboard.js +342 -0
- data/solr/server/solr-webapp/webapp/js/lib/chosen.js +982 -0
- data/solr/server/solr-webapp/webapp/js/lib/console.js +29 -0
- data/solr/server/solr-webapp/webapp/js/lib/d3.js +9373 -0
- data/solr/server/solr-webapp/webapp/js/lib/highlight.js +31 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery-1.7.2.min.js +30 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.ajaxfileupload.js +184 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.blockUI.js +523 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.cookie.js +71 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.form.js +806 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.jstree.js +3534 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.sammy.js +1863 -0
- data/solr/server/solr-webapp/webapp/js/lib/jquery.timeago.js +189 -0
- data/solr/server/solr-webapp/webapp/js/lib/linker.js +48 -0
- data/solr/server/solr-webapp/webapp/js/lib/naturalSort.js +82 -0
- data/solr/server/solr-webapp/webapp/js/lib/order.js +216 -0
- data/solr/server/solr-webapp/webapp/js/main.js +60 -0
- data/solr/server/solr-webapp/webapp/js/require.js +11349 -0
- data/solr/server/solr-webapp/webapp/js/scripts/analysis.js +545 -0
- data/solr/server/solr-webapp/webapp/js/scripts/app.js +680 -0
- data/solr/server/solr-webapp/webapp/js/scripts/cloud.js +877 -0
- data/solr/server/solr-webapp/webapp/js/scripts/cores.js +719 -0
- data/solr/server/solr-webapp/webapp/js/scripts/dashboard.js +562 -0
- data/solr/server/solr-webapp/webapp/js/scripts/dataimport.js +812 -0
- data/solr/server/solr-webapp/webapp/js/scripts/documents.js +370 -0
- data/solr/server/solr-webapp/webapp/js/scripts/files.js +265 -0
- data/solr/server/solr-webapp/webapp/js/scripts/index.js +340 -0
- data/solr/server/solr-webapp/webapp/js/scripts/java-properties.js +106 -0
- data/solr/server/solr-webapp/webapp/js/scripts/logging.js +578 -0
- data/solr/server/solr-webapp/webapp/js/scripts/ping.js +72 -0
- data/solr/server/solr-webapp/webapp/js/scripts/plugins.js +462 -0
- data/solr/server/solr-webapp/webapp/js/scripts/query.js +229 -0
- data/solr/server/solr-webapp/webapp/js/scripts/replication.js +527 -0
- data/solr/server/solr-webapp/webapp/js/scripts/schema-browser.js +1229 -0
- data/solr/server/solr-webapp/webapp/js/scripts/segments.js +206 -0
- data/solr/server/solr-webapp/webapp/js/scripts/threads.js +158 -0
- data/solr/server/solr-webapp/webapp/libs/angular-chosen.js +139 -0
- data/solr/server/solr-webapp/webapp/libs/angular-cookies.js +229 -0
- data/solr/server/solr-webapp/webapp/libs/angular-cookies.min.js +31 -0
- data/solr/server/solr-webapp/webapp/libs/angular-resource.min.js +36 -0
- data/solr/server/solr-webapp/webapp/libs/angular-route.js +1018 -0
- data/solr/server/solr-webapp/webapp/libs/angular-route.min.js +38 -0
- data/solr/server/solr-webapp/webapp/libs/angular-sanitize.js +703 -0
- data/solr/server/solr-webapp/webapp/libs/angular-sanitize.min.js +39 -0
- data/solr/server/solr-webapp/webapp/libs/angular.js +26093 -0
- data/solr/server/solr-webapp/webapp/libs/angular.min.js +273 -0
- data/solr/server/solr-webapp/webapp/libs/chosen.jquery.js +1194 -0
- data/solr/server/solr-webapp/webapp/libs/chosen.jquery.min.js +30 -0
- data/solr/server/solr-webapp/webapp/libs/d3.js +9373 -0
- data/solr/server/solr-webapp/webapp/libs/highlight.js +31 -0
- data/solr/server/solr-webapp/webapp/libs/jquery-2.1.3.min.js +29 -0
- data/solr/server/solr-webapp/webapp/libs/jquery.jstree.js +3534 -0
- data/solr/server/solr-webapp/webapp/libs/ngtimeago.js +102 -0
- data/solr/server/solr-webapp/webapp/partials/analysis.html +128 -0
- data/solr/server/solr-webapp/webapp/partials/cloud.html +104 -0
- data/solr/server/solr-webapp/webapp/partials/core_overview.html +227 -0
- data/solr/server/solr-webapp/webapp/partials/cores.html +231 -0
- data/solr/server/solr-webapp/webapp/partials/dataimport.html +209 -0
- data/solr/server/solr-webapp/webapp/partials/documents.html +118 -0
- data/solr/server/solr-webapp/webapp/partials/files.html +47 -0
- data/solr/server/solr-webapp/webapp/partials/index.html +261 -0
- data/solr/server/solr-webapp/webapp/partials/java-properties.html +27 -0
- data/solr/server/solr-webapp/webapp/partials/logging-levels.html +56 -0
- data/solr/server/solr-webapp/webapp/partials/logging.html +56 -0
- data/solr/server/solr-webapp/webapp/partials/plugins.html +72 -0
- data/solr/server/solr-webapp/webapp/partials/query.html +356 -0
- data/solr/server/solr-webapp/webapp/partials/replication.html +239 -0
- data/solr/server/solr-webapp/webapp/partials/schema-browser.html +206 -0
- data/solr/server/solr-webapp/webapp/partials/segments.html +99 -0
- data/solr/server/solr-webapp/webapp/partials/threads.html +65 -0
- data/solr/server/solr-webapp/webapp/tpl/analysis.html +83 -0
- data/solr/server/solr-webapp/webapp/tpl/cloud.html +87 -0
- data/solr/server/solr-webapp/webapp/tpl/cores.html +226 -0
- data/solr/server/solr-webapp/webapp/tpl/dashboard.html +201 -0
- data/solr/server/solr-webapp/webapp/tpl/dataimport.html +183 -0
- data/solr/server/solr-webapp/webapp/tpl/documents.html +107 -0
- data/solr/server/solr-webapp/webapp/tpl/files.html +44 -0
- data/solr/server/solr-webapp/webapp/tpl/index.html +250 -0
- data/solr/server/solr-webapp/webapp/tpl/logging.html +23 -0
- data/solr/server/solr-webapp/webapp/tpl/plugins.html +39 -0
- data/solr/server/solr-webapp/webapp/tpl/query.html +361 -0
- data/solr/server/solr-webapp/webapp/tpl/replication.html +216 -0
- data/solr/server/solr-webapp/webapp/tpl/schema-browser.html +192 -0
- data/solr/server/solr-webapp/webapp/tpl/segments.html +49 -0
- data/solr/server/solr-webapp/webapp/tpl/threads.html +56 -0
- data/solr/server/start.jar +0 -0
- data/solr/solr/README.txt +77 -0
- data/solr/solr/configsets/sunspot/conf/_rest_managed.json +1 -0
- data/solr/solr/configsets/sunspot/conf/currency.xml +67 -0
- data/solr/solr/{conf/stopwords.txt → configsets/sunspot/conf/lang/stopwords_en.txt} +1 -5
- data/solr/solr/{conf → configsets/sunspot/conf}/schema.xml +38 -35
- data/solr/solr/{conf → configsets/sunspot/conf}/solrconfig.xml +269 -318
- data/solr/solr/{conf → configsets/sunspot/conf}/synonyms.txt +3 -5
- data/solr/solr/default/core.properties +3 -0
- data/solr/solr/development/core.properties +3 -0
- data/solr/solr/solr.xml +49 -6
- data/solr/solr/test/core.properties +3 -0
- data/solr/solr/zoo.cfg +17 -0
- data/spec/server_spec.rb +3 -14
- data/sunspot_solr.gemspec +1 -1
- metadata +479 -48
- data/solr/contexts/solr.xml +0 -7
- data/solr/lib/jetty-continuation-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-deploy-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-http-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-io-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-jmx-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-security-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-server-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-servlet-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-util-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-webapp-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jetty-xml-8.1.8.v20121106.jar +0 -0
- data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
- data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
- data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
- data/solr/lib/servlet-api-3.0.jar +0 -0
- data/solr/solr/conf/xslt/example.xsl +0 -132
- data/solr/solr/conf/xslt/example_atom.xsl +0 -67
- data/solr/solr/conf/xslt/example_rss.xsl +0 -66
- data/solr/solr/conf/xslt/luke.xsl +0 -337
- data/solr/solr/default/README.txt +0 -54
- data/solr/start.jar +0 -0
- data/solr/webapps/solr.war +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/admin-extra.html +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/elevate.xml +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/mapping-ISOLatin1Accent.txt +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/protwords.txt +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/scripts.conf +0 -0
- /data/solr/solr/{conf → configsets/sunspot/conf}/spellings.txt +0 -0
@@ -0,0 +1,229 @@
|
|
1
|
+
/**
|
2
|
+
The MIT License
|
3
|
+
|
4
|
+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
23
|
+
*/
|
24
|
+
/**
|
25
|
+
* @license AngularJS v1.3.8
|
26
|
+
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
27
|
+
* License: MIT
|
28
|
+
*/
|
29
|
+
(function(window, angular, undefined) {'use strict';
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @ngdoc module
|
33
|
+
* @name ngCookies
|
34
|
+
* @description
|
35
|
+
*
|
36
|
+
* # ngCookies
|
37
|
+
*
|
38
|
+
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
|
39
|
+
*
|
40
|
+
*
|
41
|
+
* <div doc-module-components="ngCookies"></div>
|
42
|
+
*
|
43
|
+
* See {@link ngCookies.$cookies `$cookies`} and
|
44
|
+
* {@link ngCookies.$cookieStore `$cookieStore`} for usage.
|
45
|
+
*/
|
46
|
+
|
47
|
+
|
48
|
+
angular.module('ngCookies', ['ng']).
|
49
|
+
/**
|
50
|
+
* @ngdoc service
|
51
|
+
* @name $cookies
|
52
|
+
*
|
53
|
+
* @description
|
54
|
+
* Provides read/write access to browser's cookies.
|
55
|
+
*
|
56
|
+
* Only a simple Object is exposed and by adding or removing properties to/from this object, new
|
57
|
+
* cookies are created/deleted at the end of current $eval.
|
58
|
+
* The object's properties can only be strings.
|
59
|
+
*
|
60
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
61
|
+
*
|
62
|
+
* @example
|
63
|
+
*
|
64
|
+
* ```js
|
65
|
+
* angular.module('cookiesExample', ['ngCookies'])
|
66
|
+
* .controller('ExampleController', ['$cookies', function($cookies) {
|
67
|
+
* // Retrieving a cookie
|
68
|
+
* var favoriteCookie = $cookies.myFavorite;
|
69
|
+
* // Setting a cookie
|
70
|
+
* $cookies.myFavorite = 'oatmeal';
|
71
|
+
* }]);
|
72
|
+
* ```
|
73
|
+
*/
|
74
|
+
factory('$cookies', ['$rootScope', '$browser', function($rootScope, $browser) {
|
75
|
+
var cookies = {},
|
76
|
+
lastCookies = {},
|
77
|
+
lastBrowserCookies,
|
78
|
+
runEval = false,
|
79
|
+
copy = angular.copy,
|
80
|
+
isUndefined = angular.isUndefined;
|
81
|
+
|
82
|
+
//creates a poller fn that copies all cookies from the $browser to service & inits the service
|
83
|
+
$browser.addPollFn(function() {
|
84
|
+
var currentCookies = $browser.cookies();
|
85
|
+
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
|
86
|
+
lastBrowserCookies = currentCookies;
|
87
|
+
copy(currentCookies, lastCookies);
|
88
|
+
copy(currentCookies, cookies);
|
89
|
+
if (runEval) $rootScope.$apply();
|
90
|
+
}
|
91
|
+
})();
|
92
|
+
|
93
|
+
runEval = true;
|
94
|
+
|
95
|
+
//at the end of each eval, push cookies
|
96
|
+
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
|
97
|
+
// strings or browser refuses to store some cookies, we update the model in the push fn.
|
98
|
+
$rootScope.$watch(push);
|
99
|
+
|
100
|
+
return cookies;
|
101
|
+
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Pushes all the cookies from the service to the browser and verifies if all cookies were
|
105
|
+
* stored.
|
106
|
+
*/
|
107
|
+
function push() {
|
108
|
+
var name,
|
109
|
+
value,
|
110
|
+
browserCookies,
|
111
|
+
updated;
|
112
|
+
|
113
|
+
//delete any cookies deleted in $cookies
|
114
|
+
for (name in lastCookies) {
|
115
|
+
if (isUndefined(cookies[name])) {
|
116
|
+
$browser.cookies(name, undefined);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
//update all cookies updated in $cookies
|
121
|
+
for (name in cookies) {
|
122
|
+
value = cookies[name];
|
123
|
+
if (!angular.isString(value)) {
|
124
|
+
value = '' + value;
|
125
|
+
cookies[name] = value;
|
126
|
+
}
|
127
|
+
if (value !== lastCookies[name]) {
|
128
|
+
$browser.cookies(name, value);
|
129
|
+
updated = true;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
//verify what was actually stored
|
134
|
+
if (updated) {
|
135
|
+
updated = false;
|
136
|
+
browserCookies = $browser.cookies();
|
137
|
+
|
138
|
+
for (name in cookies) {
|
139
|
+
if (cookies[name] !== browserCookies[name]) {
|
140
|
+
//delete or reset all cookies that the browser dropped from $cookies
|
141
|
+
if (isUndefined(browserCookies[name])) {
|
142
|
+
delete cookies[name];
|
143
|
+
} else {
|
144
|
+
cookies[name] = browserCookies[name];
|
145
|
+
}
|
146
|
+
updated = true;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}]).
|
152
|
+
|
153
|
+
|
154
|
+
/**
|
155
|
+
* @ngdoc service
|
156
|
+
* @name $cookieStore
|
157
|
+
* @requires $cookies
|
158
|
+
*
|
159
|
+
* @description
|
160
|
+
* Provides a key-value (string-object) storage, that is backed by session cookies.
|
161
|
+
* Objects put or retrieved from this storage are automatically serialized or
|
162
|
+
* deserialized by angular's toJson/fromJson.
|
163
|
+
*
|
164
|
+
* Requires the {@link ngCookies `ngCookies`} module to be installed.
|
165
|
+
*
|
166
|
+
* @example
|
167
|
+
*
|
168
|
+
* ```js
|
169
|
+
* angular.module('cookieStoreExample', ['ngCookies'])
|
170
|
+
* .controller('ExampleController', ['$cookieStore', function($cookieStore) {
|
171
|
+
* // Put cookie
|
172
|
+
* $cookieStore.put('myFavorite','oatmeal');
|
173
|
+
* // Get cookie
|
174
|
+
* var favoriteCookie = $cookieStore.get('myFavorite');
|
175
|
+
* // Removing a cookie
|
176
|
+
* $cookieStore.remove('myFavorite');
|
177
|
+
* }]);
|
178
|
+
* ```
|
179
|
+
*/
|
180
|
+
factory('$cookieStore', ['$cookies', function($cookies) {
|
181
|
+
|
182
|
+
return {
|
183
|
+
/**
|
184
|
+
* @ngdoc method
|
185
|
+
* @name $cookieStore#get
|
186
|
+
*
|
187
|
+
* @description
|
188
|
+
* Returns the value of given cookie key
|
189
|
+
*
|
190
|
+
* @param {string} key Id to use for lookup.
|
191
|
+
* @returns {Object} Deserialized cookie value.
|
192
|
+
*/
|
193
|
+
get: function(key) {
|
194
|
+
var value = $cookies[key];
|
195
|
+
return value ? angular.fromJson(value) : value;
|
196
|
+
},
|
197
|
+
|
198
|
+
/**
|
199
|
+
* @ngdoc method
|
200
|
+
* @name $cookieStore#put
|
201
|
+
*
|
202
|
+
* @description
|
203
|
+
* Sets a value for given cookie key
|
204
|
+
*
|
205
|
+
* @param {string} key Id for the `value`.
|
206
|
+
* @param {Object} value Value to be stored.
|
207
|
+
*/
|
208
|
+
put: function(key, value) {
|
209
|
+
$cookies[key] = angular.toJson(value);
|
210
|
+
},
|
211
|
+
|
212
|
+
/**
|
213
|
+
* @ngdoc method
|
214
|
+
* @name $cookieStore#remove
|
215
|
+
*
|
216
|
+
* @description
|
217
|
+
* Remove given cookie
|
218
|
+
*
|
219
|
+
* @param {string} key Id of the key-value pair to delete.
|
220
|
+
*/
|
221
|
+
remove: function(key) {
|
222
|
+
delete $cookies[key];
|
223
|
+
}
|
224
|
+
};
|
225
|
+
|
226
|
+
}]);
|
227
|
+
|
228
|
+
|
229
|
+
})(window, window.angular);
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
The MIT License
|
3
|
+
|
4
|
+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
23
|
+
*/
|
24
|
+
/*
|
25
|
+
AngularJS v1.3.8
|
26
|
+
(c) 2010-2014 Google, Inc. http://angularjs.org
|
27
|
+
License: MIT
|
28
|
+
*/
|
29
|
+
(function(p,f,n){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,b){var c={},g={},h,k=!1,l=f.copy,m=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&&(h=a,l(a,g),l(a,c),k&&e.$apply())})();k=!0;e.$watch(function(){var a,d,e;for(a in g)m(c[a])&&b.cookies(a,n);for(a in c)d=c[a],f.isString(d)||(d=""+d,c[a]=d),d!==g[a]&&(b.cookies(a,d),e=!0);if(e)for(a in d=b.cookies(),c)c[a]!==d[a]&&(m(d[a])?delete c[a]:c[a]=d[a])});return c}]).factory("$cookieStore",
|
30
|
+
["$cookies",function(e){return{get:function(b){return(b=e[b])?f.fromJson(b):b},put:function(b,c){e[b]=f.toJson(c)},remove:function(b){delete e[b]}}}])})(window,window.angular);
|
31
|
+
//# sourceMappingURL=angular-cookies.min.js.map
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
The MIT License
|
3
|
+
|
4
|
+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
23
|
+
*/
|
24
|
+
/*
|
25
|
+
AngularJS v1.3.8
|
26
|
+
(c) 2010-2014 Google, Inc. http://angularjs.org
|
27
|
+
License: MIT
|
28
|
+
*/
|
29
|
+
(function(I,d,B){'use strict';function D(f,q){q=q||{};d.forEach(q,function(d,h){delete q[h]});for(var h in f)!f.hasOwnProperty(h)||"$"===h.charAt(0)&&"$"===h.charAt(1)||(q[h]=f[h]);return q}var w=d.$$minErr("$resource"),C=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;d.module("ngResource",["ng"]).provider("$resource",function(){var f=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};
|
30
|
+
this.$get=["$http","$q",function(q,h){function t(d,g){this.template=d;this.defaults=s({},f.defaults,g);this.urlParams={}}function v(x,g,l,m){function c(b,k){var c={};k=s({},g,k);r(k,function(a,k){u(a)&&(a=a());var d;if(a&&a.charAt&&"@"==a.charAt(0)){d=b;var e=a.substr(1);if(null==e||""===e||"hasOwnProperty"===e||!C.test("."+e))throw w("badmember",e);for(var e=e.split("."),n=0,g=e.length;n<g&&d!==B;n++){var h=e[n];d=null!==d?d[h]:B}}else d=a;c[k]=d});return c}function F(b){return b.resource}function e(b){D(b||
|
31
|
+
{},this)}var G=new t(x,m);l=s({},f.defaults.actions,l);e.prototype.toJSON=function(){var b=s({},this);delete b.$promise;delete b.$resolved;return b};r(l,function(b,k){var g=/^(POST|PUT|PATCH)$/i.test(b.method);e[k]=function(a,y,m,x){var n={},f,l,z;switch(arguments.length){case 4:z=x,l=m;case 3:case 2:if(u(y)){if(u(a)){l=a;z=y;break}l=y;z=m}else{n=a;f=y;l=m;break}case 1:u(a)?l=a:g?f=a:n=a;break;case 0:break;default:throw w("badargs",arguments.length);}var t=this instanceof e,p=t?f:b.isArray?[]:new e(f),
|
32
|
+
A={},v=b.interceptor&&b.interceptor.response||F,C=b.interceptor&&b.interceptor.responseError||B;r(b,function(b,a){"params"!=a&&"isArray"!=a&&"interceptor"!=a&&(A[a]=H(b))});g&&(A.data=f);G.setUrlParams(A,s({},c(f,b.params||{}),n),b.url);n=q(A).then(function(a){var c=a.data,g=p.$promise;if(c){if(d.isArray(c)!==!!b.isArray)throw w("badcfg",k,b.isArray?"array":"object",d.isArray(c)?"array":"object");b.isArray?(p.length=0,r(c,function(a){"object"===typeof a?p.push(new e(a)):p.push(a)})):(D(c,p),p.$promise=
|
33
|
+
g)}p.$resolved=!0;a.resource=p;return a},function(a){p.$resolved=!0;(z||E)(a);return h.reject(a)});n=n.then(function(a){var b=v(a);(l||E)(b,a.headers);return b},C);return t?n:(p.$promise=n,p.$resolved=!1,p)};e.prototype["$"+k]=function(a,b,c){u(a)&&(c=b,b=a,a={});a=e[k].call(this,a,this,b,c);return a.$promise||a}});e.bind=function(b){return v(x,s({},g,b),l)};return e}var E=d.noop,r=d.forEach,s=d.extend,H=d.copy,u=d.isFunction;t.prototype={setUrlParams:function(f,g,l){var m=this,c=l||m.template,h,
|
34
|
+
e,q=m.urlParams={};r(c.split(/\W/),function(b){if("hasOwnProperty"===b)throw w("badname");!/^\d+$/.test(b)&&b&&(new RegExp("(^|[^\\\\]):"+b+"(\\W|$)")).test(c)&&(q[b]=!0)});c=c.replace(/\\:/g,":");g=g||{};r(m.urlParams,function(b,k){h=g.hasOwnProperty(k)?g[k]:m.defaults[k];d.isDefined(h)&&null!==h?(e=encodeURIComponent(h).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),c=c.replace(new RegExp(":"+
|
35
|
+
k+"(\\W|$)","g"),function(b,a){return e+a})):c=c.replace(new RegExp("(/?):"+k+"(\\W|$)","g"),function(b,a,c){return"/"==c.charAt(0)?c:a+c})});m.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/");c=c.replace(/\/\.(?=\w+($|\?))/,".");f.url=c.replace(/\/\\\./,"/.");r(g,function(b,c){m.urlParams[c]||(f.params=f.params||{},f.params[c]=b)})}};return v}]})})(window,window.angular);
|
36
|
+
//# sourceMappingURL=angular-resource.min.js.map
|