couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r642432 [2/16] - in /incubator/couchdb/trunk: ./ bin/ build-contrib/ etc/ etc/conf/ etc/default/ etc/init/ etc/launchd/ etc/logrotate.d/ share/ share/server/ share/www/ share/www/browse/ share/www/image/ share/www/script/ share/www/style/ s...
Date Fri, 28 Mar 2008 23:32:30 GMT
Added: incubator/couchdb/trunk/etc/conf/mime.types
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/conf/mime.types?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/conf/mime.types (added)
+++ incubator/couchdb/trunk/etc/conf/mime.types Fri Mar 28 16:32:19 2008
@@ -0,0 +1,462 @@
+# This is a comment. I love comments.
+
+# MIME type         Extension
+application/EDI-Consent
+application/EDI-X12
+application/EDIFACT
+application/activemessage
+application/andrew-inset    ez
+application/applefile
+application/atomicmail
+application/batch-SMTP
+application/beep+xml
+application/cals-1840
+application/commonground
+application/cybercash
+application/dca-rft
+application/dec-dx
+application/dvcs
+application/eshop
+application/http
+application/hyperstudio
+application/iges
+application/index
+application/index.cmd
+application/index.obj
+application/index.response
+application/index.vnd
+application/iotp
+application/ipp
+application/isup
+application/font-tdpfr
+application/mac-binhex40    hqx
+application/mac-compactpro  cpt
+application/macwriteii
+application/marc
+application/mathematica
+application/mathematica-old
+application/msword      doc
+application/news-message-id
+application/news-transmission
+application/ocsp-request
+application/ocsp-response
+application/octet-stream    bin dms lha lzh exe class so dll
+application/oda         oda
+application/parityfec
+application/pdf         pdf
+application/pgp-encrypted
+application/pgp-keys
+application/pgp-signature
+application/pkcs10
+application/pkcs7-mime
+application/pkcs7-signature
+application/pkix-cert
+application/pkix-crl
+application/pkixcmp
+application/postscript      ai eps ps
+application/prs.alvestrand.titrax-sheet
+application/prs.cww
+application/prs.nprend
+application/qsig
+application/remote-printing
+application/riscos
+application/rtf
+application/sdp
+application/set-payment
+application/set-payment-initiation
+application/set-registration
+application/set-registration-initiation
+application/sgml
+application/sgml-open-catalog
+application/sieve
+application/slate
+application/smil        smi smil
+application/timestamp-query
+application/timestamp-reply
+application/vemmi
+application/vnd.3M.Post-it-Notes
+application/vnd.FloGraphIt
+application/vnd.accpac.simply.aso
+application/vnd.accpac.simply.imp
+application/vnd.acucobol
+application/vnd.aether.imp
+application/vnd.anser-web-certificate-issue-initiation
+application/vnd.anser-web-funds-transfer-initiation
+application/vnd.audiograph
+application/vnd.businessobjects
+application/vnd.bmi
+application/vnd.canon-cpdl
+application/vnd.canon-lips
+application/vnd.claymore
+application/vnd.commerce-battelle
+application/vnd.commonspace
+application/vnd.comsocaller
+application/vnd.contact.cmsg
+application/vnd.cosmocaller
+application/vnd.cups-postscript
+application/vnd.cups-raster
+application/vnd.cups-raw
+application/vnd.ctc-posml
+application/vnd.cybank
+application/vnd.dna
+application/vnd.dpgraph
+application/vnd.dxr
+application/vnd.ecdis-update
+application/vnd.ecowin.chart
+application/vnd.ecowin.filerequest
+application/vnd.ecowin.fileupdate
+application/vnd.ecowin.series
+application/vnd.ecowin.seriesrequest
+application/vnd.ecowin.seriesupdate
+application/vnd.enliven
+application/vnd.epson.esf
+application/vnd.epson.msf
+application/vnd.epson.quickanime
+application/vnd.epson.salt
+application/vnd.epson.ssf
+application/vnd.ericsson.quickcall
+application/vnd.eudora.data
+application/vnd.fdf
+application/vnd.ffsns
+application/vnd.framemaker
+application/vnd.fsc.weblaunch
+application/vnd.fujitsu.oasys
+application/vnd.fujitsu.oasys2
+application/vnd.fujitsu.oasys3
+application/vnd.fujitsu.oasysgp
+application/vnd.fujitsu.oasysprs
+application/vnd.fujixerox.ddd
+application/vnd.fujixerox.docuworks
+application/vnd.fujixerox.docuworks.binder
+application/vnd.fut-misnet
+application/vnd.grafeq
+application/vnd.groove-account
+application/vnd.groove-identity-message
+application/vnd.groove-injector
+application/vnd.groove-tool-message
+application/vnd.groove-tool-template
+application/vnd.groove-vcard
+application/vnd.hhe.lesson-player
+application/vnd.hp-HPGL
+application/vnd.hp-PCL
+application/vnd.hp-PCLXL
+application/vnd.hp-hpid
+application/vnd.hp-hps
+application/vnd.httphone
+application/vnd.hzn-3d-crossword
+application/vnd.ibm.afplinedata
+application/vnd.ibm.MiniPay
+application/vnd.ibm.modcap
+application/vnd.informix-visionary
+application/vnd.intercon.formnet
+application/vnd.intertrust.digibox
+application/vnd.intertrust.nncp
+application/vnd.intu.qbo
+application/vnd.intu.qfx
+application/vnd.irepository.package+xml
+application/vnd.is-xpr
+application/vnd.japannet-directory-service
+application/vnd.japannet-jpnstore-wakeup
+application/vnd.japannet-payment-wakeup
+application/vnd.japannet-registration
+application/vnd.japannet-registration-wakeup
+application/vnd.japannet-setstore-wakeup
+application/vnd.japannet-verification
+application/vnd.japannet-verification-wakeup
+application/vnd.koan
+application/vnd.lotus-1-2-3
+application/vnd.lotus-approach
+application/vnd.lotus-freelance
+application/vnd.lotus-notes
+application/vnd.lotus-organizer
+application/vnd.lotus-screencam
+application/vnd.lotus-wordpro
+application/vnd.mcd
+application/vnd.mediastation.cdkey
+application/vnd.meridian-slingshot
+application/vnd.mif     mif
+application/vnd.minisoft-hp3000-save
+application/vnd.mitsubishi.misty-guard.trustweb
+application/vnd.mobius.daf
+application/vnd.mobius.dis
+application/vnd.mobius.msl
+application/vnd.mobius.plc
+application/vnd.mobius.txf
+application/vnd.motorola.flexsuite
+application/vnd.motorola.flexsuite.adsi
+application/vnd.motorola.flexsuite.fis
+application/vnd.motorola.flexsuite.gotap
+application/vnd.motorola.flexsuite.kmr
+application/vnd.motorola.flexsuite.ttc
+application/vnd.motorola.flexsuite.wem
+application/vnd.mozilla.xul+xml
+application/vnd.ms-artgalry
+application/vnd.ms-asf
+application/vnd.ms-excel    xls
+application/vnd.ms-lrm
+application/vnd.ms-powerpoint   ppt
+application/vnd.ms-project
+application/vnd.ms-tnef
+application/vnd.ms-works
+application/vnd.mseq
+application/vnd.msign
+application/vnd.music-niff
+application/vnd.musician
+application/vnd.netfpx
+application/vnd.noblenet-directory
+application/vnd.noblenet-sealer
+application/vnd.noblenet-web
+application/vnd.novadigm.EDM
+application/vnd.novadigm.EDX
+application/vnd.novadigm.EXT
+application/vnd.osa.netdeploy
+application/vnd.palm
+application/vnd.pg.format
+application/vnd.pg.osasli
+application/vnd.powerbuilder6
+application/vnd.powerbuilder6-s
+application/vnd.powerbuilder7
+application/vnd.powerbuilder7-s
+application/vnd.powerbuilder75
+application/vnd.powerbuilder75-s
+application/vnd.previewsystems.box
+application/vnd.publishare-delta-tree
+application/vnd.pvi.ptid1
+application/vnd.pwg-xhtml-print+xml
+application/vnd.rapid
+application/vnd.s3sms
+application/vnd.seemail
+application/vnd.shana.informed.formdata
+application/vnd.shana.informed.formtemplate
+application/vnd.shana.informed.interchange
+application/vnd.shana.informed.package
+application/vnd.sss-cod
+application/vnd.sss-dtf
+application/vnd.sss-ntf
+application/vnd.street-stream
+application/vnd.svd
+application/vnd.swiftview-ics
+application/vnd.triscape.mxs
+application/vnd.trueapp
+application/vnd.truedoc
+application/vnd.tve-trigger
+application/vnd.ufdl
+application/vnd.uplanet.alert
+application/vnd.uplanet.alert-wbxml
+application/vnd.uplanet.bearer-choice-wbxml
+application/vnd.uplanet.bearer-choice
+application/vnd.uplanet.cacheop
+application/vnd.uplanet.cacheop-wbxml
+application/vnd.uplanet.channel
+application/vnd.uplanet.channel-wbxml
+application/vnd.uplanet.list
+application/vnd.uplanet.list-wbxml
+application/vnd.uplanet.listcmd
+application/vnd.uplanet.listcmd-wbxml
+application/vnd.uplanet.signal
+application/vnd.vcx
+application/vnd.vectorworks
+application/vnd.vidsoft.vidconference
+application/vnd.visio
+application/vnd.vividence.scriptfile
+application/vnd.wap.sic
+application/vnd.wap.slc
+application/vnd.wap.wbxml   wbxml
+application/vnd.wap.wmlc    wmlc
+application/vnd.wap.wmlscriptc  wmlsc
+application/vnd.webturbo
+application/vnd.wrq-hp3000-labelled
+application/vnd.wt.stf
+application/vnd.xara
+application/vnd.xfdl
+application/vnd.yellowriver-custom-menu
+application/whoispp-query
+application/whoispp-response
+application/wita
+application/wordperfect5.1
+application/x-bcpio     bcpio
+application/x-cdlink        vcd
+application/x-chess-pgn     pgn
+application/x-compress
+application/x-cpio      cpio
+application/x-csh       csh
+application/x-director      dcr dir dxr
+application/x-dvi       dvi
+application/x-futuresplash  spl
+application/x-gtar      gtar
+application/x-gzip
+application/x-hdf       hdf
+application/x-javascript    js
+application/x-koan      skp skd skt skm
+application/x-latex     latex
+application/x-netcdf        nc cdf
+application/x-sh        sh
+application/x-shar      shar
+application/x-shockwave-flash   swf
+application/x-stuffit       sit
+application/x-sv4cpio       sv4cpio
+application/x-sv4crc        sv4crc
+application/x-tar       tar
+application/x-tcl       tcl
+application/x-tex       tex
+application/x-texinfo       texinfo texi
+application/x-troff     t tr roff
+application/x-troff-man     man
+application/x-troff-me      me
+application/x-troff-ms      ms
+application/x-ustar     ustar
+application/x-wais-source   src
+application/x400-bp
+application/xml
+application/xml-dtd
+application/xml-external-parsed-entity
+application/zip         zip
+audio/32kadpcm
+audio/basic         au snd
+audio/g.722.1
+audio/l16
+audio/midi          mid midi kar
+audio/mp4a-latm
+audio/mpa-robust
+audio/mpeg          mpga mp2 mp3
+audio/parityfec
+audio/prs.sid
+audio/telephone-event
+audio/tone
+audio/vnd.cisco.nse
+audio/vnd.cns.anp1
+audio/vnd.cns.inf1
+audio/vnd.digital-winds
+audio/vnd.everad.plj
+audio/vnd.lucent.voice
+audio/vnd.nortel.vbk
+audio/vnd.nuera.ecelp4800
+audio/vnd.nuera.ecelp7470
+audio/vnd.nuera.ecelp9600
+audio/vnd.octel.sbc
+audio/vnd.qcelp
+audio/vnd.rhetorex.32kadpcm
+audio/vnd.vmx.cvsd
+audio/x-aiff            aif aiff aifc
+audio/x-mpegurl         m3u
+audio/x-pn-realaudio        ram rm
+audio/x-pn-realaudio-plugin rpm
+audio/x-realaudio       ra
+audio/x-wav         wav
+chemical/x-pdb          pdb
+chemical/x-xyz          xyz
+image/bmp           bmp
+image/cgm
+image/g3fax
+image/gif           gif
+image/ief           ief
+image/jpeg          jpeg jpg jpe
+image/naplps
+image/png           png
+image/prs.btif
+image/prs.pti
+image/tiff          tiff tif
+image/vnd.cns.inf2
+image/vnd.dwg
+image/vnd.dxf
+image/vnd.fastbidsheet
+image/vnd.fpx
+image/vnd.fst
+image/vnd.fujixerox.edmics-mmr
+image/vnd.fujixerox.edmics-rlc
+image/vnd.mix
+image/vnd.net-fpx
+image/vnd.svf
+image/vnd.wap.wbmp      wbmp
+image/vnd.xiff
+image/x-cmu-raster      ras
+image/x-portable-anymap     pnm
+image/x-portable-bitmap     pbm
+image/x-portable-graymap    pgm
+image/x-portable-pixmap     ppm
+image/x-rgb         rgb
+image/x-xbitmap         xbm
+image/x-xpixmap         xpm
+image/x-xwindowdump     xwd
+message/delivery-status
+message/disposition-notification
+message/external-body
+message/http
+message/news
+message/partial
+message/rfc822
+message/s-http
+model/iges          igs iges
+model/mesh          msh mesh silo
+model/vnd.dwf
+model/vnd.flatland.3dml
+model/vnd.gdl
+model/vnd.gs-gdl
+model/vnd.gtw
+model/vnd.mts
+model/vnd.vtu
+model/vrml          wrl vrml
+multipart/alternative
+multipart/appledouble
+multipart/byteranges
+multipart/digest
+multipart/encrypted
+multipart/form-data
+multipart/header-set
+multipart/mixed
+multipart/parallel
+multipart/related
+multipart/report
+multipart/signed
+multipart/voice-message
+text/calendar
+text/css            css
+text/directory
+text/enriched
+text/html           html htm
+text/parityfec
+text/plain          asc txt
+text/prs.lines.tag
+text/rfc822-headers
+text/richtext           rtx
+text/rtf            rtf
+text/sgml           sgml sgm
+text/tab-separated-values   tsv
+text/t140
+text/uri-list
+text/vnd.DMClientScript
+text/vnd.IPTC.NITF
+text/vnd.IPTC.NewsML
+text/vnd.abc
+text/vnd.curl
+text/vnd.flatland.3dml
+text/vnd.fly
+text/vnd.fmi.flexstor
+text/vnd.in3d.3dml
+text/vnd.in3d.spot
+text/vnd.latex-z
+text/vnd.motorola.reflex
+text/vnd.ms-mediapackage
+text/vnd.wap.si
+text/vnd.wap.sl
+text/vnd.wap.wml        wml
+text/vnd.wap.wmlscript      wmls
+text/x-setext           etx
+text/x-server-parsed-html       shtml
+text/xml            xml xsl
+text/xml-external-parsed-entity
+video/mp4v-es
+video/mpeg          mpeg mpg mpe
+video/parityfec
+video/pointer
+video/quicktime         qt mov
+video/vnd.fvt
+video/vnd.motorola.video
+video/vnd.motorola.videop
+video/vnd.mpegurl       mxu
+video/vnd.mts
+video/vnd.nokia.interleaved-multimedia
+video/vnd.vivo
+video/x-msvideo         avi
+video/x-sgi-movie       movie
+x-conference/x-cooltalk     ice

Added: incubator/couchdb/trunk/etc/couch.ini.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/couch.ini.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/couch.ini.tpl.in (added)
+++ incubator/couchdb/trunk/etc/couch.ini.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,19 @@
+; @configure_input@
+
+[Couch]
+
+ConsoleStartupMsg=Apache CouchDB is starting.
+
+DbRootDir=%pkgstatelibdir%
+
+LogFile=%pkgstatelogdir%/couch.log
+
+HttpConfigFile=%pkgconfdir%/couch_httpd.conf
+
+UtilDriverDir=%couchprivlibdir%
+
+LogLevel=info
+
+[Couch Query Servers]
+
+text/javascript=%bindir%/%couchjs_command_name% %pkgdatadir%/server/main.js

Added: incubator/couchdb/trunk/etc/couch_httpd.conf.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/couch_httpd.conf.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/couch_httpd.conf.tpl.in (added)
+++ incubator/couchdb/trunk/etc/couch_httpd.conf.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,11 @@
+# @configure_input@
+
+Port 5984
+#BindAddress 127.0.0.1
+ServerName localhost
+SocketType ip_comm
+Modules mod_couch mod_get mod_log
+ServerRoot %pkgconfdir%
+DocumentRoot %pkgdatadir%/www
+ErrorLog %pkgstatelogdir%/http_error.log
+TransferLog %pkgstatelogdir%/http_access.log

Propchange: incubator/couchdb/trunk/etc/default/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 28 16:32:19 2008
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+couchdb.tpl
+couchdb.dist

Added: incubator/couchdb/trunk/etc/default/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/default/Makefile.am?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/default/Makefile.am (added)
+++ incubator/couchdb/trunk/etc/default/Makefile.am Fri Mar 28 16:32:19 2008
@@ -0,0 +1,13 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations under
+## the License.
+
+## This file intentionally left blank.

Added: incubator/couchdb/trunk/etc/default/couchdb.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/default/couchdb.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/default/couchdb.tpl.in (added)
+++ incubator/couchdb/trunk/etc/default/couchdb.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,10 @@
+# @configure_input@
+
+# Sourced by init script for configuration.
+
+COUCHDB_USER=couchdb
+COUCHDB_INI_FILE=%pkgconfdir%/couch.ini
+COUCHDB_PID_FILE=%localstatedir%/run/couchdb.pid
+COUCHDB_STDOUT_FILE=/dev/null
+COUCHDB_STDERR_FILE=/dev/null
+COUCHDB_RESPAWN_TIMEOUT=5

Propchange: incubator/couchdb/trunk/etc/init/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 28 16:32:19 2008
@@ -0,0 +1,5 @@
+Makefile
+Makefile.in
+couchdb.dist
+couchdb.tpl
+couchdb

Added: incubator/couchdb/trunk/etc/init/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/init/Makefile.am?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/init/Makefile.am (added)
+++ incubator/couchdb/trunk/etc/init/Makefile.am Fri Mar 28 16:32:19 2008
@@ -0,0 +1,13 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations under
+## the License.
+
+## This file intentionally left blank.

Added: incubator/couchdb/trunk/etc/init/couchdb.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/init/couchdb.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/init/couchdb.tpl.in (added)
+++ incubator/couchdb/trunk/etc/init/couchdb.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,174 @@
+#!/bin/sh -e
+
+# @configure_input@
+
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License.  You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+### BEGIN INIT INFO
+# Provides:          couchdb
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:     $local_fs $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Apache CouchDB init script
+# Description:       Apache CouchDB init script for the database server.
+### END INIT INFO
+
+SCRIPT_OK=0
+SCRIPT_ERROR=1
+
+DESCRIPTION="database server"
+NAME=couchdb
+SCRIPT_NAME=$(basename $0)
+COUCHDB=%bindir%/%couchdb_command_name%
+CONFIGURATION_FILE=%sysconfdir%/default/couchdb
+LSB_LIBRARY=/lib/lsb/init-functions
+
+if test ! -x $COUCHDB; then
+    exit $SCRIPT_ERROR
+fi
+
+if test -r $CONFIGURATION_FILE; then
+    . $CONFIGURATION_FILE
+fi
+
+log_daemon_msg () {
+    # Dummy function to be replaced by LSB library.
+
+    echo $@
+}
+
+log_end_msg () {
+    # Dummy function to be replaced by LSB library.
+
+    if test "$1" != "0"; then
+      echo "Error with $DESCRIPTION: $NAME"
+    fi
+    return $1
+}
+
+if test -r $LSB_LIBRARY; then
+    . $LSB_LIBRARY
+fi
+
+start_couchdb () {
+    # Start Apache CouchDB as a background process.
+
+    command="$COUCHDB -b"
+    if test -n "$COUCHDB_INI_FILE"; then
+        command="$command -c $COUCHDB_INI_FILE"
+    fi
+    if test -n "$COUCHDB_PID_FILE"; then
+        command="$command -p $COUCHDB_PID_FILE"
+    fi
+    if test -n "$COUCHDB_STDOUT_FILE"; then
+        command="$command -o $COUCHDB_STDOUT_FILE"
+    fi
+    if test -n "$COUCHDB_STDERR_FILE"; then
+        command="$command -e $COUCHDB_STDERR_FILE"
+    fi
+    if test -n "$COUCHDB_RESPAWN_TIMEOUT"; then
+        command="$command -r $COUCHDB_RESPAWN_TIMEOUT"
+    fi
+    if test -n "$COUCHDB_USER"; then
+        if test -n "$COUCHDB_PID_FILE"; then
+            touch $COUCHDB_PID_FILE
+            chown $COUCHDB_USER $COUCHDB_PID_FILE
+        fi
+        if su $COUCHDB_USER -c "$command" > /dev/null; then
+            return $SCRIPT_OK
+        else
+            return $SCRIPT_ERROR
+        fi
+    else
+        if $command > /dev/null; then
+            return $SCRIPT_OK
+        else
+            return $SCRIPT_ERROR
+        fi
+    fi
+}
+
+stop_couchdb () {
+    # Stop the running Apache CouchDB process.
+
+    command="$COUCHDB -d"
+    if test -n "$COUCHDB_PID_FILE"; then
+        command="$command -p $COUCHDB_PID_FILE"
+    fi
+    if test -n "$COUCHDB_USER"; then
+        if su $COUCHDB_USER -c "$command" > /dev/null; then
+            return $SCRIPT_OK
+        else
+            return $SCRIPT_ERROR
+        fi
+    else
+        if $command > /dev/null; then
+            return $SCRIPT_OK
+        else
+            return $SCRIPT_ERROR
+        fi
+    fi
+}
+
+display_status () {
+    # Display the status of the running Apache CouchDB process.
+
+    $COUCHDB -s
+}
+
+parse_script_option_list () {
+    # Parse arguments passed to the script and take appropriate action.
+
+    case "$1" in
+        start)
+            log_daemon_msg "Starting $DESCRIPTION" $NAME
+            if start_couchdb; then
+                log_end_msg $SCRIPT_OK
+            else
+                log_end_msg $SCRIPT_ERROR
+            fi
+            ;;
+        stop)
+            log_daemon_msg "Stopping $DESCRIPTION" $NAME
+            if stop_couchdb; then
+                log_end_msg $SCRIPT_OK
+            else
+                log_end_msg $SCRIPT_ERROR
+            fi
+            ;;
+        restart|force-reload)
+            log_daemon_msg "Restarting $DESCRIPTION" $NAME
+            if stop_couchdb; then
+                if start_couchdb; then
+                    log_end_msg $SCRIPT_OK
+                else
+                    log_end_msg $SCRIPT_ERROR
+                fi
+            else
+                log_end_msg $SCRIPT_ERROR
+            fi
+            ;;
+        status)
+            display_status
+            ;;
+        *)
+            cat << EOF >&2
+Usage: $SCRIPT_NAME {start|stop|restart|force-reload|status}
+EOF
+            exit $SCRIPT_ERROR
+            ;;
+    esac
+}
+
+parse_script_option_list $@

Propchange: incubator/couchdb/trunk/etc/init/couchdb.tpl.in
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/couchdb/trunk/etc/launchd/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 28 16:32:19 2008
@@ -0,0 +1,5 @@
+Makefile
+Makefile.in
+org.apache.couchdb.plist
+org.apache.couchdb.plist.tpl
+org.apache.couchdb.plist.dist

Added: incubator/couchdb/trunk/etc/launchd/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/launchd/Makefile.am?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/launchd/Makefile.am (added)
+++ incubator/couchdb/trunk/etc/launchd/Makefile.am Fri Mar 28 16:32:19 2008
@@ -0,0 +1,13 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations under
+## the License.
+
+## This file intentionally left blank.

Added: incubator/couchdb/trunk/etc/launchd/org.apache.couchdb.plist.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/launchd/org.apache.couchdb.plist.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/launchd/org.apache.couchdb.plist.tpl.in (added)
+++ incubator/couchdb/trunk/etc/launchd/org.apache.couchdb.plist.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
+  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!-- @configure_input@ -->
+<plist version="1.0">
+  <dict>
+    <key>Label</key>
+    <string>org.apache.couchdb</string>
+    <key>EnvironmentVariables</key>
+    <dict>
+      <key>HOME</key>
+      <string>~</string>
+      <key>DYLD_LIBRARY_PATH</key>
+      <string>/opt/local/lib:$DYLD_LIBRARY_PATH</string>
+    </dict>
+    <key>ProgramArguments</key>
+    <array>
+      <string>%bindir%/%couchdb_command_name%</string>
+    </array>
+    <key>UserName</key>
+    <string>couchdb</string>
+    <key>RunAtLoad</key>
+    <true/>
+    <key>KeepAlive</key>
+    <true/>
+    <key>OnDemand</key>
+    <false/>
+  </dict>
+</plist>

Propchange: incubator/couchdb/trunk/etc/logrotate.d/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 28 16:32:19 2008
@@ -0,0 +1,5 @@
+Makefile
+Makefile.in
+couchdb
+couchdb.tpl
+couchdb.dist

Added: incubator/couchdb/trunk/etc/logrotate.d/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/logrotate.d/Makefile.am?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/logrotate.d/Makefile.am (added)
+++ incubator/couchdb/trunk/etc/logrotate.d/Makefile.am Fri Mar 28 16:32:19 2008
@@ -0,0 +1,13 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations under
+## the License.
+
+## This file intentionally left blank.

Added: incubator/couchdb/trunk/etc/logrotate.d/couchdb.tpl.in
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/etc/logrotate.d/couchdb.tpl.in?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/etc/logrotate.d/couchdb.tpl.in (added)
+++ incubator/couchdb/trunk/etc/logrotate.d/couchdb.tpl.in Fri Mar 28 16:32:19 2008
@@ -0,0 +1,9 @@
+%pkgstatelogdir%/*.log {
+       weekly
+       rotate 10
+       copytruncate
+       delaycompress
+       compress
+       notifempty
+       missingok
+}

Propchange: incubator/couchdb/trunk/share/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Mar 28 16:32:19 2008
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in

Added: incubator/couchdb/trunk/share/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/Makefile.am?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/Makefile.am (added)
+++ incubator/couchdb/trunk/share/Makefile.am Fri Mar 28 16:32:19 2008
@@ -0,0 +1,56 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations under
+## the License.
+
+datarootdir = @prefix@/share
+
+nobase_dist_pkgdata_DATA = \
+    server/main.js \
+    www/browse/database.html \
+    www/browse/document.html \
+    www/browse/index.html \
+    www/couch_tests.html \
+    www/favicon.ico \
+    www/image/add.gif \
+    www/image/apply.gif \
+    www/image/bg.png \
+    www/image/cancel.gif \
+    www/image/delete-mini.gif \
+    www/image/delete.gif \
+    www/image/hgrad.gif \
+    www/image/load.gif \
+    www/image/logo.png \
+    www/image/order-asc.gif \
+    www/image/order-desc.gif \
+    www/image/path.gif \
+    www/image/run-mini.gif \
+    www/image/run.gif \
+    www/image/running.gif \
+    www/image/save.gif \
+    www/image/test_failure.gif \
+    www/image/test_success.gif \
+    www/image/thead.gif \
+    www/image/thead-key.gif \
+    www/image/toggle-collapse.gif \
+    www/image/toggle-expand.gif \
+    www/image/twisty.gif \
+    www/index.html \
+    www/replicator.html \
+    www/script/browse.js \
+    www/script/couch.js \
+    www/script/couch_tests.js \
+    www/script/jquery.js \
+    www/script/jquery.cookies.js \
+    www/script/json2.js \
+    www/script/pprint.js \
+    www/script/shell.js \
+    www/shell.html \
+    www/style/layout.css

Added: incubator/couchdb/trunk/share/server/main.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/server/main.js?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/server/main.js (added)
+++ incubator/couchdb/trunk/share/server/main.js Fri Mar 28 16:32:19 2008
@@ -0,0 +1,165 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License.  You may obtain a copy
+// of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+// License for the specific language governing permissions and limitations under
+// the License.
+
+var cmd;
+var map_funs = [];        // The map functions to compute against documents
+var map_results = [];
+
+try {
+  var sandbox = evalcx('');
+  sandbox.map = function(key, value) {
+    map_results.push([key, value]);
+  }
+} catch (e) {
+  // fallback for older versions of spidermonkey that don't have evalcx
+  var sandbox = null;
+  map = function(key, value) {
+    map_results.push([key, value]);
+  }
+}
+
+// Commands are in the form of json arrays:
+// ["commandname",..optional args...]\n
+//
+// Responses are json values followed by a new line ("\n")
+
+while (cmd = eval(readline())) {
+  switch (cmd[0]) {
+    case "reset":
+      // clear the map_functions and run gc
+      map_funs = [];
+      gc();
+      print("true"); // indicates success
+      break;
+    case "add_fun":
+      // The second arg is a string that will compile to a function.
+      // and then we add it to map_functions array
+      try {
+        var functionObject = sandbox ? evalcx(cmd[1], sandbox) : eval(cmd[1]);
+      } catch (err) {
+        print(toJSON({error: {id: "map_compilation_error",
+          reason: err.toString() + " (" + toJSON(cmd[1]) + ")"}}));
+        break;
+      }
+      if (typeof(functionObject) == "function") {
+        map_funs.push(functionObject);
+        print("true");
+      } else {
+        print(toJSON({error: "map_compilation_error",
+          reason: "expression does not eval to a function. (" + cmd[1] + ")"}));
+      }
+      break;
+    case "map_doc":
+      // The second arg is a document. We compute all the map functions against
+      // it.
+      //
+      // Each function can output multiple keys value, pairs for each document
+      //
+      // Example output of map_doc after three functions set by add_fun cmds:
+      // [
+      //  [["Key","Value"]],                    <- fun 1 returned 1 key value
+      //  [],                                   <- fun 2 returned 0 key values
+      //  [["Key1","Value1"],["Key2","Value2"]],<- fun 3 returned 2 key values
+      // ]
+      //
+      var doc = cmd[1];
+      seal(doc); // seal to prevent map functions from changing doc
+      var buf = [];
+      for (var i = 0; i < map_funs.length; i++) {
+        map_results = [];
+        try {
+          map_funs[i](doc);
+          buf.push(map_results.filter(function(pair) {
+            return pair[0] !== undefined && pair[1] !== undefined;
+          }));
+        } catch (err) {
+          if (err == "fatal_error") {
+            // Only if it's a "fatal_error" do we exit. What's a fatal error?
+            // That's for the query to decide.
+            //
+            // This will make it possible for queries to completely error out,
+            // by catching their own local exception and rethrowing a
+            // fatal_error. But by default if they don't do error handling we
+            // just eat the exception and carry on.
+            print(toJSON({error: "map_runtime_error",
+                reason: "function raised fatal exception"}));
+            quit();
+          }
+          print(toJSON({log: "function raised exception (" + err + ")"}));
+          buf.push([]);
+        }
+      }
+      print(toJSON(buf));
+      break;
+    default:
+      print(toJSON({error: "query_server_error",
+          reason: "unknown command '" + cmd[0] + "'"}));
+      quit();
+  }
+}
+
+function toJSON(val) {
+  if (typeof(val) == "undefined") {
+    throw new TypeError("Cannot encode undefined value as JSON");
+  }
+  var subs = {'\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f',
+              '\r': '\\r', '"' : '\\"', '\\': '\\\\'};
+  if (typeof(val) == "xml") { // E4X support
+    val = val.toXMLString();
+  }
+  return {
+    "Array": function(v) {
+      var buf = [];
+      for (var i = 0; i < v.length; i++) {
+        buf.push(toJSON(v[i]));
+      }
+      return "[" + buf.join(",") + "]";
+    },
+    "Boolean": function(v) {
+      return v.toString();
+    },
+    "Date": function(v) {
+      var f = function(n) { return n < 10 ? '0' + n : n }
+      return '"' + v.getUTCFullYear()   + '-' +
+                 f(v.getUTCMonth() + 1) + '-' +
+                 f(v.getUTCDate())      + 'T' +
+                 f(v.getUTCHours())     + ':' +
+                 f(v.getUTCMinutes())   + ':' +
+                 f(v.getUTCSeconds())   + 'Z"';
+    },
+    "Number": function(v) {
+      return isFinite(v) ? v.toString() : "null";
+    },
+    "Object": function(v) {
+      if (v === null) return "null";
+      var buf = [];
+      for (var k in v) {
+        if (!v.hasOwnProperty(k) || typeof(k) !== "string" || v[k] === undefined) {
+          continue;
+        }
+        buf.push(toJSON(k, val) + ": " + toJSON(v[k]));
+      }
+      return "{" + buf.join(",") + "}";
+    },
+    "String": function(v) {
+      if (/["\\\x00-\x1f]/.test(v)) {
+        v = v.replace(/([\x00-\x1f\\"])/g, function(a, b) {
+          var c = subs[b];
+          if (c) return c;
+          c = b.charCodeAt();
+          return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);
+        });
+      }
+      return '"' + v + '"';
+    }
+  }[val != null ? val.constructor.name : "Object"](val);
+}

Added: incubator/couchdb/trunk/share/www/browse/_create_database.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/_create_database.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/_create_database.html (added)
+++ incubator/couchdb/trunk/share/www/browse/_create_database.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,33 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+  <h2>Create New Database</h2>
+  <fieldset>
+    <p class="help">
+      Please enter the name of the database. Note that only lowercase
+      characters (<tt>a-z</tt>), digits (<tt>0-9</tt>), or any of the
+      characters <tt>_</tt>, <tt>$</tt>, <tt>(</tt>, <tt>)</tt>, <tt>+</tt>,
+      <tt>-</tt>, and <tt>/</tt> are allowed.
+    </p>
+    <table summary=""><tbody><tr>
+      <th><label>Database Name:</label></th>
+      <td><input type="text" name="name" size="24"></td>
+    </tr></table>
+  </fieldset>
+  <div class="buttons">
+    <button type="submit">Create</button>
+    <button type="button" class="cancel">Cancel</button>
+  </div>
+</form>

Propchange: incubator/couchdb/trunk/share/www/browse/_create_database.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/_create_database.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/_create_document.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/_create_document.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/_create_document.html (added)
+++ incubator/couchdb/trunk/share/www/browse/_create_document.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,31 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+  <h2>Create New Document</h2>
+  <fieldset>
+    <p class="help">
+      Please enter a unique ID of the document, or leave the field empty to get
+      an auto-generated ID.
+    </p>
+    <table summary=""><tbody><tr>
+      <th><label>Document ID:</label></th>
+      <td><input type="text" name="docid" size="32"></td>
+    </tr></table>
+  </fieldset>
+  <div class="buttons">
+    <button type="submit">Create</button>
+    <button type="button" class="cancel">Cancel</button>
+  </div>
+</form>

Propchange: incubator/couchdb/trunk/share/www/browse/_create_document.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/_create_document.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/_delete_database.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/_delete_database.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/_delete_database.html (added)
+++ incubator/couchdb/trunk/share/www/browse/_delete_database.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,27 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+  <h2>Delete Database</h2>
+  <fieldset>
+    <p class="help">
+      Are you sure you want to delete this database? Note that this is an
+      <strong>irreversible operation</strong>!
+    </p>
+  </fieldset>
+  <div class="buttons">
+    <button type="submit">Delete</button>
+    <button type="button" class="cancel">Cancel</button>
+  </div>
+</form>

Propchange: incubator/couchdb/trunk/share/www/browse/_delete_database.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/_delete_database.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/_delete_document.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/_delete_document.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/_delete_document.html (added)
+++ incubator/couchdb/trunk/share/www/browse/_delete_document.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,26 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+  <h2>Delete Document</h2>
+  <fieldset>
+    <p class="help">
+      Are you sure you want to delete this document?
+    </p>
+  </fieldset>
+  <div class="buttons">
+    <button type="submit">Delete</button>
+    <button type="button" class="cancel">Cancel</button>
+  </div>
+</form>

Propchange: incubator/couchdb/trunk/share/www/browse/_delete_document.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/_delete_document.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/_save_view_as.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/_save_view_as.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/_save_view_as.html (added)
+++ incubator/couchdb/trunk/share/www/browse/_save_view_as.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,35 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post" id="view-save-as" onload="initForm(this)">
+  <h2>Save View As&hellip;</h2>
+  <fieldset>
+    <p class="help">
+      You can save this function code as a permanent view in the database. Just
+      enter or select the design document and the name of the view below. Note
+      that if you choose an existing view, it will be overwritten!
+    </p>
+    <table summary=""><tbody><tr>
+      <th><label for="input_docid">Design Document:</label></th>
+      <td><tt>_design/</tt><input type="text" id="input_docid" name="docid" size="20"></td>
+    </tr><tr>
+      <th><label for="input_name">View Name:<label></th>
+      <td><input type="text" id="input_name" name="name" size="30"></td>
+    </tr></table>
+  </fieldset>
+  <div class="buttons">
+    <button type="submit">Save</button>
+    <button type="button" class="cancel">Cancel</button>
+  </div>
+</form>

Propchange: incubator/couchdb/trunk/share/www/browse/_save_view_as.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/_save_view_as.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/database.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/database.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/database.html (added)
+++ incubator/couchdb/trunk/share/www/browse/database.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,151 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>Browse Database</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <script src="../script/json2.js"></script>
+    <script src="../script/jquery.js"></script>
+    <script src="../script/jquery.cookies.js"></script>
+    <script src="../script/jquery.dialog.js"></script>
+    <script src="../script/jquery.resizer.js"></script>
+    <script src="../script/jquery.suggest.js"></script>
+    <script src="../script/couch.js"></script>
+    <script src="../script/browse.js"></script>
+    <script src="../script/pprint.js"></script>
+    <script>
+      var page = new CouchDatabasePage();
+      if (window != parent) {
+        parent.updateNavigation(location.pathname, location.search.split("/", 2)[0]);
+      }
+
+      $(document).ready(function() {
+        $("h1 strong").text(page.dbName);
+        $("#viewcode label").click(function() {
+          $("#viewcode").toggleClass("expanded");
+        });
+        $("#viewcode button.run").click(function() {
+          page.updateDocumentListing();
+        });
+        $("#viewcode button.revert").click(function() {
+          page.revertViewChanges();
+        });
+        $("#viewcode button.save").click(function() {
+          page.saveViewChanges();
+        });
+        $("#viewcode button.saveas").click(function() {
+          page.saveViewAs();
+        });
+        $("#viewcode textarea").resizable({grippie: $("#viewcode .bottom")});
+
+        // Restore preferences/state from cookies
+        var query = $.cookies.get(page.dbName + ".query");
+        if (query) $("#viewcode textarea").val(query);
+        var desc = $.cookies.get(page.dbName + ".desc");
+        if (desc) $("#documents thead th.key").addClass("desc");
+        var rowsPerPage = $.cookies.get(page.dbName + ".perpage");
+        if (rowsPerPage) $("#perpage").val(rowsPerPage);
+
+        page.populateViewsMenu();
+        page.populateViewEditor();
+        page.updateDocumentListing();
+
+        $("#switch select").change(function() {
+          var viewName = $(this).val();
+          if (!viewName) $.cookies.remove(page.dbName + ".view");
+          location.href = "?" + page.dbName + (viewName ? "/" + viewName  : "");
+        });
+        $("#documents thead th.key").click(function() {
+          $(this).toggleClass("desc");
+          page.updateDocumentListing();
+        });
+        $("#perpage").change(function() {
+          page.updateDocumentListing();
+          $.cookies.set(page.dbName + ".perpage", this.value);
+        });
+        $("#toolbar button.add").click(page.addDocument);
+        $("#toolbar button.delete").click(page.deleteDatabase);
+      });
+    </script>
+  </head>
+
+  <body>
+    <h1>
+      <a href="index.html">Overview</a>
+      <strong>?</strong>
+    </h1>
+    <div id="wrap">
+      <div id="switch">
+        <label>Select view: <select>
+          <option value="">All documents</option>
+          <option value="_design_docs">Design documents</option>
+          <option value="_temp_view">Custom query…</option>
+        </select></label>
+      </div>
+      <ul id="toolbar">
+        <li><button class="add">Create Document …</button></li>
+        <li><button class="delete">Delete Database</button></li>
+      </ul>
+
+      <div id="viewcode" style="display: none">
+        <div class="top">
+          <a id="designdoc-link"></a>
+          <label for="viewcode_textarea">View Function</label>
+        </div>
+        <textarea id="viewcode_textarea" rows="5" cols="79" spellcheck="false" wrap="off">function(doc) {
+  map(null, doc);
+}</textarea>
+        <div class="bottom">
+          <button class="save" type="button" disabled>Save</button>
+          <button class="saveas" type="button">Save As…</button>
+          <button class="revert" type="button" disabled>Revert</button>
+          <button class="run" type="button">Run</button>
+        </div>
+      </div>
+
+      <table id="documents" class="listing" cellspacing="0">
+        <caption>Documents</caption>
+        <thead>
+          <tr>
+            <th class="key"><div>Key</div></th>
+            <th class="value">Value</th>
+          </tr>
+        </thead>
+        <tbody class="content">
+        </tbody>
+        <tbody class="footer">
+          <tr>
+            <td colspan="4">
+              <div id="paging">
+                <a class="prev">← Previous Page</a> |
+                <label>Rows per page: <select id="perpage">
+                  <option selected>10</option>
+                  <option>25</option>
+                  <option>50</option>
+                  <option>100</option>
+                </select></label> |
+                <a class="next">Next Page →</a>
+              </div>
+              <span></span>
+            </td>
+          </tr>
+        </tbody>
+      </table>
+
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/browse/database.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/database.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/document.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/document.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/document.html (added)
+++ incubator/couchdb/trunk/share/www/browse/document.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>View Document</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <script src="../script/json2.js"></script>
+    <script src="../script/jquery.js"></script>
+    <script src="../script/jquery.cookies.js"></script>
+    <script src="../script/jquery.dialog.js"></script>
+    <script src="../script/jquery.resizer.js"></script>
+    <script src="../script/couch.js"></script>
+    <script src="../script/browse.js"></script>
+    <script src="../script/pprint.js"></script>
+    <script>
+      var page = new CouchDocumentPage();
+      if (window != parent) {
+        var dbLink = $("h1 a.dbname").get(0);
+        parent.updateNavigation(
+          location.pathname.replace(/document\.html/, "database.html"),
+          location.search.split("/")[0]
+        );
+      }
+
+      $(function() {
+        $("h1 a.dbname").text(page.dbName).attr("href", "database.html?" + page.dbName);
+        $("h1 strong").text(page.doc._id);
+        page.updateFieldListing();
+        $("#toolbar button.save").click(page.saveDocument);
+        $("#toolbar button.add").click(page.addField);
+        $("#toolbar button.delete").click(page.deleteDocument);
+      });
+    </script>
+  </head>
+
+  <body>
+    <h1>
+      <a href="index.html">Overview</a>
+      <a class="dbname" href="#">?</a>
+      <strong>?</strong>
+    </h1>
+    <div id="wrap">
+      <ul id="toolbar">
+        <li><button class="save">Save Document</button></li>
+        <li><button class="add">Add Field</button></li>
+        <li><button class="delete">Delete Document</button></li>
+      </ul>
+
+      <table id="fields" class="listing" cellspacing="0">
+        <col class="field"><col class="value">
+        <caption>Fields</caption>
+        <thead>
+          <tr>
+            <th>Field</th>
+            <th>Value</th>
+          </tr>
+        </thead>
+        <tbody class="content">
+        </tbody>
+        <tbody class="footer">
+          <tr>
+            <td colspan="2">
+              <div id="paging">
+                <a class="prev">← Previous Version</a> | <a class="next">Next Version →</a>
+              </div>
+              <span></span>
+            </td>
+          </tr>
+        </tbody>
+      </table>
+
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/browse/document.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/document.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/browse/index.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/browse/index.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/browse/index.html (added)
+++ incubator/couchdb/trunk/share/www/browse/index.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>Welcome</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="../style/layout.css" type="text/css">
+    <script src="../script/json2.js"></script>
+    <script src="../script/jquery.js"></script>
+    <script src="../script/jquery.cookies.js"></script>
+    <script src="../script/jquery.dialog.js"></script>
+    <script src="../script/couch.js"></script>
+    <script src="../script/browse.js"></script>
+    <script>
+      var page = new CouchIndexPage();
+      $(document).ready(function() {
+        page.updateDatabaseListing();
+        $("#toolbar button.add").click(function() {
+          page.addDatabase();
+        });
+        if (window != parent) parent.updateNavigation();
+      });
+    </script>
+  </head>
+  <body>
+    <h1><strong>Overview</strong></h1>
+    <div id="wrap">
+      <ul id="toolbar">
+        <li><button class="add">Create Database …</button></li>
+      </ul>
+
+      <table class="listing" id="databases" cellspacing="0">
+        <caption>Databases</caption>
+        <thead>
+          <tr>
+            <th>Name</th>
+            <th>Number of Documents</th>
+            <th>Update Seq</th>
+          </tr>
+        </thead>
+        <tbody class="content">
+        </tbody>
+        <tbody class="footer">
+          <tr>
+            <td colspan="3"></td>
+          </tr>
+        </tbody>
+      </table>
+
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/browse/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/browse/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/couch_tests.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/couch_tests.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/couch_tests.html (added)
+++ incubator/couchdb/trunk/share/www/couch_tests.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>Test Suite</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <script src="script/json2.js"></script>
+    <script src="script/jquery.js"></script>
+    <script src="script/couch.js"></script>
+    <script src="script/pprint.js"></script>
+    <script>
+      $(document).ready(function() {
+        $("#toolbar button.load").click(function() {
+          location.reload(true);
+        });
+      });
+    </script>
+    <script src="script/couch_tests.js"></script>
+    <script>
+      $(document).ready(function() {
+        updateTestsListing();
+        $("#toolbar button.run").click(runAllTests);
+        if (window != parent) parent.updateNavigation();
+      });
+    </script>
+  </head>
+  <body>
+    <h1>
+      <a href="browse/index.html">Overview</a>
+      <strong>Test Suite</strong>
+    </h1>
+    <div id="wrap">
+      <ul id="toolbar">
+        <li><button class="run">Run All</button></li>
+        <li><button class="load">Reload</button></li>
+      </ul>
+      <table class="listing" id="tests" cellspacing="0">
+        <caption>Tests</caption>
+        <thead>
+          <tr>
+            <th class="name">Name</th>
+            <th class="status">Status</th>
+            <th class="duration">Elapsed Time</th>
+            <th class="details">Details</th>
+          </tr>
+        </thead>
+        <tbody class="content">
+        </tbody>
+        <tbody class="footer">
+          <tr>
+            <td colspan="4"></td>
+          </tr>
+        </tbody>
+      </table>
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/couch_tests.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/couch_tests.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/favicon.ico?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/favicon.ico
------------------------------------------------------------------------------
    svn:mime-type = image/x-ico

Added: incubator/couchdb/trunk/share/www/image/add.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/add.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/add.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/apply.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/apply.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/apply.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/bg.png
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/bg.png?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/bg.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/couchdb/trunk/share/www/image/cancel.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/cancel.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/cancel.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/delete-mini.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/delete-mini.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/delete-mini.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/delete.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/delete.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/delete.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/grippie.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/grippie.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/grippie.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/hgrad.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/hgrad.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/hgrad.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/load.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/load.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/load.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/logo.png
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/logo.png?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/logo.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/couchdb/trunk/share/www/image/order-asc.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/order-asc.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/order-asc.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/order-desc.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/order-desc.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/order-desc.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/path.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/path.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/path.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/run-mini.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/run-mini.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/run-mini.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/run.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/run.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/run.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/running.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/running.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/running.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/save.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/save.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/save.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/spinner.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/spinner.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/spinner.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/test_failure.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/test_failure.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/test_failure.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/test_success.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/test_success.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/test_success.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/thead-key.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/thead-key.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/thead-key.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/thead.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/thead.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/thead.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/toggle-collapse.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/toggle-collapse.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/toggle-collapse.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/toggle-expand.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/toggle-expand.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/toggle-expand.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/image/twisty.gif
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/image/twisty.gif?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/image/twisty.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: incubator/couchdb/trunk/share/www/index.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/index.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/index.html (added)
+++ incubator/couchdb/trunk/share/www/index.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>Apache CouchDB: Futon Utility Client</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <style type="text/css">
+      html { height: 100%; overflow: hidden; }
+      body { background: #fff url(image/bg.png) 100% 0 repeat-y;
+        padding: 0 185px 0 0; height: 100%; overflow: hidden;
+      }
+      * html body { padding-right: 210px; }
+      iframe { background: transparent; border: none; width: 100%; height: 100%; }
+    </style>
+    <script src="script/json2.js"></script>
+    <script src="script/jquery.js"></script>
+    <script src="script/couch.js"></script>
+    <script>
+      function updateDatabaseList() {
+        var dbs = CouchDB.allDbs();
+        $("#dbs").empty();
+        for (var i = 0; i < dbs.length; i++) {
+          var dbname = dbs[i];
+          $("#dbs").append("<li><a href='browse/database.html?" + dbname +
+            "' target='content'>" + dbname + "</a></li>");
+        }
+      }
+      function updateNavigation(path, queryString) {
+        function fixupPath(path) { // hack for IE/Win
+          return (path.charAt(0) != "/") ? ("/" + path) : path;
+        }
+        if (path == null) {
+          var l = frames["content"].location;
+          path = l.pathname;
+          if (queryString == null) {
+            queryString = l.search;
+          }
+        }
+        var href = fixupPath(path + queryString);
+        $("#nav li li a").each(function() {
+          if (fixupPath(this.pathname) + this.search == href) {
+            $(this).parent("li").addClass("selected");
+          } else {
+            $(this).parent("li").removeClass("selected");
+          }
+        });
+        $("#nav>li").each(function() {
+          if ($(this).is(":has(li.selected)")) {
+            $(this).addClass("selected");
+          } else {
+            $(this).removeClass("selected");
+          }
+        });
+      }
+      $(function() {
+        $("#version").text(CouchDB.getVersion());
+        updateDatabaseList();
+      });
+    </script>
+  </head>
+  <body>
+    <a href="browse/index.html" target="content">
+      <img id="logo" src="image/logo.png" width="170" height="151" alt="Apache CouchDB: Relax">
+    </a>
+    <ul id="nav">
+      <li><span>Tools</span><ul>
+        <li><a href="browse/index.html" target="content">Overview</a></li>
+        <li><a href="shell.html" target="content">Javascript Shell</a></li>
+        <li><a href="replicator.html" target="content">Replicator</a></li>
+        <li><a href="couch_tests.html" target="content">Test Suite</a></li>
+      </ul></li>
+      <li><span>Databases</span>
+        <ul id="dbs"></ul>
+      </li>
+    </ul>
+    <div id="footer">Futon on Apache CouchDB <span id="version">?</span></div>
+    <div id="view">
+      <iframe name="content" src="browse/index.html" allowtransparency="true">
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/replicator.html
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/replicator.html?rev=642432&view=auto
==============================================================================
--- incubator/couchdb/trunk/share/www/replicator.html (added)
+++ incubator/couchdb/trunk/share/www/replicator.html [utf-8] Fri Mar 28 16:32:19 2008
@@ -0,0 +1,148 @@
+<!DOCTYPE html>
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License.  You may obtain a copy of the
+License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<html lang="en">
+  <head>
+    <title>Replicator</title>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+    <link rel="stylesheet" href="style/layout.css" type="text/css">
+    <script src="script/json2.js"></script>
+    <script src="script/jquery.js"></script>
+    <script src="script/couch.js"></script>
+    <script src="script/pprint.js"></script>
+    <script>
+      $(document).ready(function() {
+        if (window !== parent) parent.updateNavigation();
+
+        $("fieldset input[type=radio]").click(function() {
+          var radio = this;
+          var fieldset = $(this).parents("fieldset").get(0);
+          $("input[type=text]", fieldset).each(function() {
+            this.disabled = radio.value == "local";
+            if (!this.disabled) this.focus();
+          });
+          $("select", fieldset).each(function() {
+            this.disabled = radio.value == "remote";
+            if (!this.disabled) this.focus();
+          });
+        });
+
+        var allDbs = CouchDB.allDbs();
+        $("fieldset select").each(function() {
+          for (var i = 0; i < allDbs.length; i++) {
+            $("<option></option>").text(allDbs[i]).appendTo(this);
+          }
+          this.selectedIndex = 0;
+        });
+
+        $("button#swap").click(function() {
+          var fromName = $("#source select").val();
+          $("#source select").val($("#target select").val());
+          $("#target select").val(fromName);
+
+          var fromUrl = $("#source input[type=text]").val();
+          $("#source input[type=text]").val($("#target input[type=text]").val());
+          $("#target input[type=text]").val(fromUrl);
+
+          var fromType = $("#source input[type=radio]").filter(function() {
+            return this.checked;
+          }).val();
+          var toType = $("#target input[type=radio]").filter(function() {
+            return this.checked;
+          }).val();
+          $("#source input[value=" + toType + "]").click();
+          $("#target input[value=" + fromType + "]").click();
+
+          $("#replicate").get(0).focus();
+          return false;
+        });
+
+        $("button#replicate").click(function() {
+          $("#records tbody.content").empty();
+          var source = $("#from_local")[0].checked ? $("#from_name").val() : $("#from_url").val();
+          var target = $("#to_local")[0].checked ? $("#to_name").val() : $("#to_url").val();
+          try {
+            var results = CouchDB.replicate(source, target);
+          } catch (e) {
+            alert(e.reason);
+            return;
+          }
+          for (var i = 0; i < results.history.length; i++) {
+            var record = results.history[i];
+            $("<tr><th></th><td class='seq'></td>" +
+              "<td class='read'></td><td class='copied'></td></tr>")
+              .find("th").text(record.start_time).end()
+              .find("td.seq").text(record.start_last_seq + "–" + record.end_last_seq).end()
+              .find("td.read").text(record.docs_read + " (" + record.read_errors + " errors)").end()
+              .find("td.copied").text(record.docs_copied + " (" + record.copy_errors + " errors)").end()
+              .appendTo("#records tbody.content");
+          }
+          $("#records tbody tr").removeClass("odd").filter(":odd").addClass("odd");
+          $("#records tbody.footer td").text("Replication session " + results.session_id);
+        });
+      });
+    </script>
+  </head>
+  <body>
+    <h1>
+      <a href="browse/index.html">Overview</a>
+      <strong>Replicator</strong>
+    </h1>
+    <div id="wrap">
+
+      <form id="replicator">
+        <fieldset id="source">
+          <legend>Replicate changes from:</legend>
+          <p>
+            <label><input type="radio" id="from_local" name="from_type" value="local" checked> Local</label>
+            <label>database: <select id="from_name" name="from_name"></select></label>
+          </p><p>
+            <label><input type="radio" id="from_to_remote" name="from_type" value="remote"> Remote</label>
+            <label>database: <input type="text" id="from_url" name="from_url" size="30" value="http://" disabled></label>
+          </p>
+        </fieldset>
+        <p class="swap"><button id="swap" tabindex="99">⇄</button></p>
+        <fieldset id="target">
+          <legend>to:</legend>
+          <p>
+            <label><input type="radio" id="to_local" name="to_type" value="local" checked> Local</label>
+            <label>database: <select id="to_name" name="to_name"></select></label>
+          </p><p>
+            <label><input type="radio" id="to_remote" name="to_type" value="remote"> Remote</label>
+            <label>database: <input type="text" id="to_url" name="to_url" size="30" value="http://" disabled></label>
+          </p>
+        </fieldset>
+        <p class="actions">
+          <button id="replicate" type="button">Replicate</button>
+        </p>
+      </form>
+
+      <table id="records" class="listing">
+        <caption>Replication History</caption>
+        <thead><tr>
+          <th>When</th>
+          <th>Sequences</th>
+          <th>Documents read</th>
+          <th>Documents copied</th>
+        </tr></thead>
+        <tbody class="content"></tbody>
+        <tbody class="footer"><tr>
+          <td colspan="4">No replication</td>
+        </tr></tbody>
+      </table>
+
+    </div>
+  </body>
+</html>

Propchange: incubator/couchdb/trunk/share/www/replicator.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/couchdb/trunk/share/www/replicator.html
------------------------------------------------------------------------------
    svn:mime-type = text/html;charset=utf-8

Added: incubator/couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/browse.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/browse.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/couch.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/couch.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch_tests.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/couch_tests.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/jquery.cookies.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.cookies.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/jquery.cookies.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/jquery.dialog.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.dialog.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/jquery.dialog.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/jquery.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/jquery.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/jquery.resizer.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.resizer.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/jquery.resizer.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/jquery.suggest.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/jquery.suggest.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/jquery.suggest.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/json2.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/json2.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/json2.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/pprint.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/pprint.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/pprint.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript

Added: incubator/couchdb/trunk/share/www/script/shell.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/shell.js?rev=642432&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/couchdb/trunk/share/www/script/shell.js
------------------------------------------------------------------------------
    svn:mime-type = application/javascript



Mime
View raw message