Commit Graph

49 Commits

Author SHA1 Message Date
Brad Fitzpatrick c4dd036203 root: put sighelper disco in the main disco document
Change-Id: Ic5ae125f01320fcec6ff23e56b11c75c41c4e94b
2012-12-23 16:58:26 -08:00
Brad Fitzpatrick 0cbf38b29a root discovery: drop var, so things are on window.
Change-Id: Ib84203a1135d3254d1596d7d82ec1389f0a94475
2012-12-23 14:19:14 -08:00
Brad Fitzpatrick 8931c24e4c root discory: allow 'var' parameter to set a variable.
Change-Id: Ic1d24f16b9b09508aec0d10574a4500b61277b83
2012-12-23 14:17:14 -08:00
Brad Fitzpatrick 9147750d2f newui: automatic deps.js handler
Change-Id: Ic32aca321cca72cb498d7a17c56b9e7d4ac74321
2012-12-23 12:39:15 -08:00
Brad Fitzpatrick 8464059cab newui: make index.html work
Change-Id: If32179fcac1e1725c47885bd609fd05c084bbc20
2012-12-23 11:01:19 -08:00
mpl 938c93ac45 cleaning up newui serving a bit
Change-Id: I5acea38112f1aa858631ce00581f45db356dd3a8
2012-12-13 23:37:38 +01:00
mpl 36db66cbb7 better regexps to match newui and closure urls
Change-Id: I7888cc836705b014fdfe711f397dd3d66c4cf6d9
2012-12-13 17:00:20 +01:00
mpl cd32b0b5b9 move findGoPathPackage to osutil, and use it to define closureDir
Change-Id: I838a2e665591d13ecf3bb2689df1931d7e14465b
2012-12-13 12:31:56 +01:00
Brad Fitzpatrick abb0e307d6 Show owner name on index page
Change-Id: Ic845283da88eea57a43a13ea13b2993070856102
2012-12-11 18:41:23 -08:00
Brad Fitzpatrick f0dfc6b6b7 Make recent.html the main page.
Change-Id: I50fde12eacbc59e996b845e0ee4d898fe7ad2764
2012-12-11 18:29:58 -08:00
mpl 19edba9f64 newui layout, only for dev-server use for now.
Change-Id: I0e77b8088b2e04fd56e017678cb6e0a476b10682
2012-12-04 21:41:35 +01:00
Brad Fitzpatrick e9806cf4a7 reduce some logspam. still a fair bit around images 2012-11-28 10:14:37 -08:00
mpl 535b856e1c small fixes subsequent to brads comments on 94541905ff
Change-Id: I7493cc715f85d146049a452e9808814a13f7468b
2012-11-15 18:42:19 +01:00
mpl 94541905ff use pkg/images (EXIF help) for thumbnails in ui
Change-Id: I60f0102efd1eb5b1c9ca070fe959b499ed8f7c5a
2012-11-15 01:53:58 +01:00
mpl 438ae4ecb4 recent permanodes thumbnails
Change-Id: I140766df4b58853e5bc4358f564cf1cfc807882a
2012-11-09 19:43:18 +01:00
Brad Fitzpatrick a41269e78e Reindex all dev-server blobs into memindex on restart.
Required some sync work (full syncs on start, blocking full syncs on
start, and also adding a dev-only hack to force a depedency from
search -> sync, to control the handler initialization order, otherwise
publish handlers would race with the sync handler and they'd create
new "blog" and "pics" permanodes and we'd end up with duplicates).
2012-11-07 22:40:17 +01:00
Brad Fitzpatrick 71d7cf9e88 Implement storage generations, init and discovery 2012-11-07 21:14:56 +01:00
Brad Fitzpatrick bccf8ed575 Move discovery up from the UI handler to the Root handler. 2012-11-07 18:57:43 +01:00
Brad Fitzpatrick 5c4d0f71f5 gofmt 2012-11-07 18:49:14 +01:00
Brad Fitzpatrick df5eee936d Make discory work with an Accept header on the root 2012-11-07 18:04:40 +01:00
mpl 70368abb7d rotate thumbnails
Change-Id: I87dd3008facc5e9c8007fc8ebcba13e98f4a2175
2012-11-04 14:36:31 +01:00
mpl c61feaa0bd wizard: placeholder for gallery field
The gallery field of the wizard is awkward and undocumented.
This placeholder at least gives a hint to devs (and maybe users)
on what is expected in that field.

Change-Id: Ie707dbecaf87ec98e267fcf6b987cd3b6a1d13e0
2012-10-29 11:10:42 +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
mpl 231c3d7405 wizard: bugfix, TLS is now https
this should have been done along with
the other changes in 94cb8cf05a

Change-Id: I376e6616c3aeaa9d5accb65b64a43d101de25d3b
2012-10-25 18:39:55 +02:00
mpl 0b15eb0cc8 handlers in wizard: swap arguments to match http handlers style
Change-Id: I78e9b218392979017682c375ce8a4b636ed3a832
2012-10-15 17:29:12 +02: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
Brad Fitzpatrick 11eac8721e Convert more code to use schema.Map instead of map[string]interface{}
Change-Id: I285fd1b0e730ebd32069688a71cb992c43770ade
2012-08-22 03:47:38 +10:00
Andrew Gerrand aa5392f510 import image/gif to handle gif files
Change-Id: If9742b89562909bd70d2c9b8ceddd394975c7db0
2012-08-05 11:01:12 +10:00
Brad Fitzpatrick 8c293e34b6 Per Go initialism style, rename Json to JSON 2012-07-28 15:42:56 -07:00
Brad Fitzpatrick ed4e781075 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-06-16 10:19:04 -07:00
mpl 497fc21385 Added/changed copyright
Change-Id: I1de302b52903ebf61100ab061c1fa7f14495fde8
2012-05-27 01:37:54 +02:00
mpl b2f079f081 handle SIGHUP, restart camli from wizard
Change-Id: I9856e49b9c4d76dc3bed1827594451349d4f5810
2012-05-16 11:37:29 +02:00
mpl ec70a6e2c8 typo
Change-Id: I52c06b45976e67413a133ce9229dd79701953495
2012-05-14 00:10:40 +02:00
Brad Fitzpatrick 50fe7a2fda Make UI discovery have absolute paths, so root discovery using UI's discovery handler works.
Change-Id: Ieb1b5d143c528b4b15875aa810038c3ebdf30251
2012-05-13 13:02:20 -07:00
Brad Fitzpatrick a63556640d proper initialism case style
Change-Id: I622dcfc7076403470573ec76cef58307fdff3ffa
2012-05-13 12:53:17 -07:00
Brad Fitzpatrick 70c273ef93 style nit. use composite literal.
Change-Id: I7b70ee26c3ea799ad601d72cb1414a4a98992cbc
2012-05-13 12:20:18 -07:00
Brad Fitzpatrick 618efee2f5 Add discovery handler on root.
Change-Id: If816ff0dd5bb57d52445aff8cc67b8c801b606a8
2012-05-13 12:16:59 -07:00
Brad Fitzpatrick de535fa264 factored syntax for block of regexps
Change-Id: Ie0f2e343fa9a37be8fd32356a72c26ccf46af311
2012-05-13 12:14:31 -07:00
Brad Fitzpatrick 420dccdd10 simplify code using newer Go APIs
Change-Id: I2425102367c4842e2b4a065f2e993ca9151bf9cc
2012-05-13 12:13:58 -07:00
Brad Fitzpatrick 0df3e3c689 Merge branch 'master' of ssh://camlistore.org:29418/camlistore 2012-05-13 10:52:50 -07:00
Brad Fitzpatrick d29cbb5e35 rename FindHandlerByTypeIfLoaded to be shorter. document better.
Change-Id: I20b1a191d2d67972ba1f7a7fd3678d4ab4adae55
2012-05-14 03:48:51 +10:00
mpl da73bef166 support user provided rootNode for published entities
Change-Id: I54810bded2cc03f320e1081945ff5cb2fce0d852
2012-05-02 16:18:05 +02:00
Brad Fitzpatrick 736d969cb9 fix build
Change-Id: Idf0168efdcec0868925cad5c9e51c3476696dab7
2012-04-26 17:04:20 -07:00
mpl 2a844730b3 support for published entities in genconfig and in wizard
Change-Id: I1768dac9628edb59cf0b987e9054b920d234b36b
2012-04-23 21:00:05 +02:00
mpl 255ed2a472 support arrays as comma separated values in wizard
Change-Id: I44de427c91859ee23c230f4649d5f27a1502370b
2012-04-21 22:44:13 +02:00
mpl f7448ec758 restrict setup access to localhost
Change-Id: I889b9debfc65e25084c1e9715e7d14621f009039
2012-04-15 20:09:51 +02:00
Brad Fitzpatrick 18e53cd72f rename MapToCamliJson to Go style initialism MapToCamliJSON
Change-Id: I674944c9fafa6b78c495d22c525b9ffd0b75dbf9
2012-04-15 07:45:10 -07:00
mpl 8466cd9e44 wip: setup wizard
Change-Id: I9989f7ff3981eb7c9025bbb9bd174cc92862af35
2012-04-06 19:29:58 +02: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