Commit Graph

140 Commits

Author SHA1 Message Date
Brad Fitzpatrick 5033e26980 Add folder icon from Tango. 2012-11-05 17:37:18 +01:00
Brad Fitzpatrick 776cf7ce75 Add a permanode icon (from Tango); rebuild embed files. 2012-11-05 16:32:30 +01:00
mpl 295cbade1b Add postgres support
Also added the -short option for make presubmit
because postgres test is too slow.

Change-Id: I6be21c4d4cd67671eb44ab65333fc32c1e261bbd
2012-11-03 19:59:22 +01:00
Brad Fitzpatrick 13f85afe8c Merge "Modification to allow windows build and deployement" 2012-11-03 13:25:43 +00:00
Maxime Lavigne 5a7510c384 Modification to allow windows build and deployement
Webserver were initialized with "tcp" and ":3179" by default and
listenURL assumed that it would be treated as IPv6 and replaced [::]
by localhost. Host that were listening on IPv4 0.0.0.0 didn't get
the modification.

Receive in localdisk were using link that failed on windows plateforms.

Camlistored didn't use Json Marshaling which caused problem with the
way Windows stores its paths.

Change-Id: I9f62f7d46399c3514707383efcb2752dbaf1f420
2012-10-30 23:17:58 -04:00
mpl 32fdada399 ui: use custom setTextContent to set text with any browser
innerText is not W3C compliant, and does not work on
firefox.
textContent is recommended by W3C, but it does not
work with IE.
setContentText is a generic function that should work
with all browsers.

related issue: http://code.google.com/p/camlistore/issues/detail?id=45

Change-Id: Ie77a96b34b37ffa4af475756158871c7cf271a51
2012-10-29 16:40:36 +01:00
Brad Fitzpatrick 22495f8bfd schema: adjust rollsum splitting algorithm, make it the default
We might tweak the parameters yet, and I want to add a bunch more
tests, but this is a major relief for me.  I've been reluctant to
put too much data into my personal Camlistore instance until I
figured out how I wanted the file chunks to split.

This also simplifies (deletes) a fair bit of code.

Change-Id: I35c38cc5d39a8a43e3f62445434f8d7fd5de5d17
2012-10-29 02:03:05 +01:00
Brad Fitzpatrick 3098e54163 Merge "Conform to W3C File API" 2012-10-28 12:56:07 +00:00
mpl 909c91a9ea search ui: deleted old/useless TODO
Change-Id: I0f6bbd88d98f9357d4a90e35dd4dc58a5281498e
2012-10-24 17:45:47 +02:00
mpl 94cb8cf05a Be consistent between high and low level configs for https
Change-Id: Ie7e1d9c554e09a34416a2ae3ac9e10f1a2f8fce0
2012-10-18 11:58:30 +02:00
mpl 6ac49843ab fix IPv4 assumption
Change-Id: I334e6ccb5b26a083b55750271262a3469f63e78e
2012-10-16 00:20:57 +02:00
Brad Fitzpatrick 42fb5290fd Merge "If baseURL was not user defined, this change makes sure it is dynamically defined from incoming requests. The listen flag has moved from pkg/webserver to server/camlistored and is not using runsit anymore. httputil.ServerError now only outputs the full error if we're in internal/debug mode. http://code.google.com/p/camlistore/issues/detail?id=53" 2012-10-15 14:33:43 +00:00
mpl 844551d0b2 If baseURL was not user defined, this change makes sure it is
dynamically defined from incoming requests.
The listen flag has moved from pkg/webserver to server/camlistored
and is not using runsit anymore.
httputil.ServerError now only outputs the full error if we're
in internal/debug mode.
http://code.google.com/p/camlistore/issues/detail?id=53

Change-Id: I55a1c6d43a549d9ee2022742a83aa142dc19e02a
2012-10-15 16:26:50 +02:00
mpl 2a434d7276 a couple js bugs in ui home
(showed as errors in ff but not in chromium)

Change-Id: I5df05f72401ad2e8c05160ba2dc2254c8e837f11
2012-10-10 16:04:42 +02:00
Amir Mohammad Saied ba22e56262 Conform to W3C File API
Replace WebKitBlobBuilder with Blob() interface implementation of web browser.
Make it working on Firefox as well.

Change-Id: I3b7e677413dbba3aff6b3f3d239f56af07464ab8
2012-08-11 00:53:06 +04:30
Brad Fitzpatrick 11842fcf33 serverconfig: let baseURL and listen be optionally separate 2012-08-04 21:42:10 +10:00
mpl b2f079f081 handle SIGHUP, restart camli from wizard
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00
Brad Fitzpatrick 87059405ea simplify deref expression
Change-Id: I1738c7c47e79b460f3c13626b1af9e96eb26f73f
2012-05-14 01:40:05 +10:00
Brad Fitzpatrick f70cbb4c05 check MkdirAll error
Change-Id: If8e32c04e5ef71ffc1fd173cbb3626d8c978e3c2
2012-05-14 01:37:46 +10:00
Brad Fitzpatrick 610e708924 fix more references to lib/go/camli
Change-Id: Ic35c67b0255d713185e8c77fdeb91c17c79a11c7
2012-05-14 01:07:13 +10:00
mpl 2a844730b3 support for published entities in genconfig and in wizard
Change-Id: I1768dac9628edb59cf0b987e9054b920d234b36b
2012-04-23 21:00:05 +02:00
Brad Fitzpatrick b76b58ea2a camlistored: don't block server start-up on opening URLs
Change-Id: I4a850fe7b46e74a0804b89b20b98ea351f44dcdd
2012-04-20 11:59:58 -07:00
mpl 8d927b5914 open root page in browser when camli starts
Change-Id: Ida4ffa8ee34e6fd86782f8f61c43eecedc074892
2012-04-16 16:08:36 +02:00
mpl f7ab75d7b3 rm TODO: +localhost already done by Brad
Change-Id: I1762d3a589163d8098a4f5714ecf9943ee9fa39f
2012-04-16 01:22:05 +02:00
Brad Fitzpatrick 92f5835bb4 camlistored: make sqlite a build option.
Change-Id: Ib3624f162aae2130e524cf6a04c3f0fa8f07a01c
2012-04-13 16:16:24 -07:00
Brad Fitzpatrick 71ee67264d osutil: add IdentitySecretRing accessor
Change-Id: Idcb7a62530292eb3e0a98c798dc86a985fc491f1
2012-04-12 16:54:57 -07:00
Brad Fitzpatrick 029d66fa9e In default config, allow localhost access for auth also.
Change-Id: Ie3fc2f3c44d7fc17a367f6a456c6db6511d08f33
2012-04-07 19:02:31 -07:00
Brad Fitzpatrick 10cf23c700 Get the MySQL indexer working again.
It now uses the generic indexing layer, rather than its own schema.
Also, move it under pkg/index/, like mongo.
Also, link in mongo to the main binary.
Not using the tests yet (leaving for mpl :))

Change-Id: I47a2203ca6c0b5244cd458aedec46227c4363c62
2012-03-26 13:57:53 -07:00
Brad Fitzpatrick 125c33f019 camlistored: auto-generate a secring/keyId for new users, without gpg
Change-Id: Ib653f9cb5fa0f5e4730854dfaea6c4654f94f377
2012-03-19 21:31:20 -07:00
Brad Fitzpatrick 73cd34a6a0 serverconfig & camlistored: simplify low/high-level config bootstrapping.
Change-Id: I22e003ff2eaa29b09a5c4cbb59afa1ca9bd624df
2012-03-19 13:09:00 -07:00
mpl 7f630657d5 generate low level configuration
Change-Id: I43d1610bdc386954dea724b4b38e184bf16e2d34
2012-03-16 00:05:24 +01:00
Brad Fitzpatrick a1e4d063f4 camlistored: move TLS setup to a function.
simplifies main.

Change-Id: If69523888102df2268c5b7c4e02e13afa91a7997
2012-03-05 07:17:58 -08:00
mpl 882f2d5eef generate default config for user when needed
Change-Id: Ifb5897b38cd72f18ff7ce1e9c3a8c23ee8751ba1
2012-03-05 00:04:35 +01:00
Brad Fitzpatrick 1642f9116c style
Change-Id: If0022de555bc444e7938693a5d1aa9a65a6d90aa
2012-02-29 08:01:49 -08:00
Brad Fitzpatrick dbf7e5e1e9 server/camlistored/ui: embed css too
Change-Id: Ic02b939dd59a4f9378719f18cfe2b5bc50545aab
2012-02-29 08:01:32 -08:00
Brad Fitzpatrick 8408c4f9b8 server/camlistored: link in pkg/index again.
Change-Id: Ie60572c1a5d4db4c90f93d0033d2fcbf67431d2f
2012-02-28 23:16:41 -08:00
Brad Fitzpatrick a98c59f082 include file modtimes in filembed
Change-Id: I9255071c163664bd9b00786df65e630668e227d0
2012-02-28 22:49:52 -08:00
Brad Fitzpatrick f4dd857477 checking in auto-generated zembed_*.go files 2012-02-28 14:51:21 +11:00
Brad Fitzpatrick 64bbffc3b5 move fileembed from misc 2012-02-28 12:45:46 +11:00
Brad Fitzpatrick 0714a463c9 Update from r60 to [almost] Go 1.
A lot is still broken, but most stuff at least compiles now.

The directory tree has been rearranged now too.  Go libraries are now
under "pkg".  Fully qualified, they are e.g. "camlistore.org/pkg/jsonsign".

The go tool cannot yet fetch from arbitrary domains, but discussion is
happening now on which mechanism to use to allow that.

For now, put the camlistore root under $GOPATH/src.  Typically $GOPATH
is $HOME, so Camlistore should be at $HOME/src/camlistore.org.

Then you can:

$ go build ./server/camlistored

... etc

The build.pl script is currently disabled.  It'll be resurrected at
some point, but with a very different role (helping create a fake
GOPATH and running the go build command, if things are installed at
the wrong place, and/or running fileembed generators).

Many things are certainly broken.

Many things are disabled.  (MySQL, all indexing, etc).

Many things need to be moved into
camlistore.org/third_party/{code.google.com,github.com} and updated
from their r60 to Go 1 versions, where applicable.

The GoMySQL stuff should be updated to use database/sql and the ziutek
library implementing database/sql/driver.

Help wanted.

Change-Id: If71217dc5c8f0e70dbe46e9504ca5131c6eeacde
2012-02-18 21:53:06 -08:00