Commit Graph

55 Commits

Author SHA1 Message Date
Brad Fitzpatrick 1fe9afd480 Unexport UIHandler's PublishRoots
Change-Id: I844d2f0cd7ef2b81caf3035ed8abaeef023b90ee
2013-12-14 17:41:26 +01:00
Brad Fitzpatrick a159d20b41 server: unexport some image stuff, add docs, TODOs, clean up
Change-Id: I4914de33406da08a4bbf806d9d0386a285e4a8d7
2013-12-14 15:16:29 +01:00
Aaron Boodman aac43b56fc Move to "G+-style" selection.
To select an item, click the checkmark that overlays on rollover.
To navigate, just click anywhere else on the item.

Also move selection from additive by default rather than exclusive.

Change-Id: I47e6ca1942fe1fdaaf615f6ab0e0a547f1a51735
2013-10-03 22:06:31 +00:00
Brad Fitzpatrick 128f56887b Handle GET and HEAD the same in more (all?) places.
Change-Id: I486a95f0a6fc127d17dcf0abeb94eab292980156
2013-09-15 20:12:26 +01:00
mpl a41c89a24e devcam appengine: replaces ./dev-appengine
Change-Id: Ic4adcb8898fc3ead801aefd679682bcc646f3573
2013-08-20 00:10:01 +02:00
mpl 40951c103f appengine: fix the UI
-dev-appengine populates the default sourceRoot.
-app.yaml filters out the go files from the static
resources
-the UI handler warns that sourceRoot is required

Change-Id: I816456a882ff4b0573bc8962cce85139d8a0f611
2013-08-16 18:49:51 +02:00
Brad Fitzpatrick 0bdf20884b all: delete pkg/blobref; convert all from *blobref.BlobRef to new blob.Ref
Change-Id: Id2dfb7f19452bedf4f3c9310b36227fd8117b225
2013-08-03 19:54:30 -07:00
mpl 66bc4f35d6 Merge "dev-server: remove. replaced by devcam server." 2013-08-03 16:34:35 +00:00
mpl f4ef8c0375 dev-server: remove. replaced by devcam server.
Fix related docs, config files, buildbot...

Change-Id: I638d3856f42953603b13204fb56782974d0db9ee
2013-08-03 01:12:38 +02:00
Aaron Boodman 24458fca93 Tile images nicely within BlobItemContainer.
Screenshots here: http://imgur.com/XN9qFLP,PeEDPnW,CS35Pw6,VS0nHaG,SNT1ZXZ,2nMWVYz,8RmuLuw,NE8b26n,EFErMdg

Change-Id: I6a66b5b782363882261b80e7ac9930ff1046efa6
2013-08-01 22:25:52 -07:00
mpl 004c261358 closure: GenJSDeps now takes a VFS, delete ui/deps.js
This changes allows to always dynamically serve deps.js, generated
either from the local files, or from the embedded resources.
ui.go and publish.go now make use of it.

http://camlistore.org/issue/151

Change-Id: I129895b2c65a0726c1239bdd7387c62e90649a9d
2013-07-05 19:43:22 +02:00
mpl 3cec70b4ad ui: rm wantsRecentPermanodes and index-compiled.html
Change-Id: I5dd8d0b11b5b82f51738fbe5669f5a7798929300
2013-07-04 21:47:34 +02:00
mpl 633b8df2a7 publish: find ui and closure resources similarly to ui handler
Fixes publishing of pics.

Change-Id: I5fe305ee8c7e4c4d80e53b8efea462980636dbf2
2013-06-29 00:54:59 +02:00
Brad Fitzpatrick 1c9436d26a Make sourceRoot take precedence over fileembedded resources. 2013-06-20 14:58:12 -07:00
Brad Fitzpatrick 10d000d900 ui: serve Closure from embedded zip data when available
Change-Id: I9bb6bb4f13f69b293fd98441d82068c0677ffbd5
2013-06-18 23:14:36 -07:00
mpl ad5f3b854d genjsdeps: now pkg + cmd in misc/closure/
pkg/server/ui.go uses misc/closure too

fixes http://camlistore.org/issue/142

Change-Id: I614e34e6b7d493d66aa61108e3ca940854844c0f
2013-06-14 00:29:45 +02:00
Brad Fitzpatrick 5761b57d69 Work on implementing new static resource plan, as documented in the big TODO item.
Change-Id: I79d7665a24633630c39cceb5e1ab49cbb0300150
2013-06-12 10:10:24 -07:00
Brad Fitzpatrick f491e63b51 Rename newui to ui
Change-Id: I379ae0f2ee71e1512448bd8b481660b2a48c697d
2013-06-12 08:49:35 -07:00
Brad Fitzpatrick d832b6a06f Document PrefixHandler and clean up users with accessor functions.
Change-Id: Ib0b23ff3cc548a35c35eae1cdc59a8673dc19638
2013-06-12 11:17:30 +02:00
Brad Fitzpatrick 8e09d1c245 ui: docs and cleanup
Change-Id: Iaeaa21f1699cad218c48dfe955c8356d4edb97d0
2013-06-12 11:05:01 +02:00
mpl cf80262ef1 ui.go: cleanup leftover println
Change-Id: I33892d2354ec09e112f3dba55a193bae4a7e8dd5
2013-06-11 14:00:53 +02:00
mpl 75507e65fa newui: Final move to get rid of the old ui!
1) Everything in ui/ except for js-notes.txt was removed.
2) mv newui/* ui/
3) modified pkg/server/ui.go to make it all work
4) modified Makefile to generate server/camlistored/ui/deps.js
5) regenerated all the zembeds
6) Some fixes to attempt to make it (re-)work on appengine:
  -removed the Go1.1 check
  -added pkg/osutil/restart_stub.go (for restarting a process)
7) The closure handler now redirects to the online files when
the closure library is not on disk, because we do not embed
the required closure js files.

Change-Id: Id1bcf007550cafb7188ba2674352e8f3bd07fb8c
2013-06-11 13:25:59 +02:00
mpl 4b32a6fb6a newui: bug fix: filetree now working
Change-Id: I0c5faa5a22f6dd1b80896a4e4eb7a3ee5f2c4a67
2013-06-09 23:29:43 +02:00
mpl 11a3f78691 WIP: switch from ui to newui
This CL proposes 4 changes:

1) When making the embeds, any .html files in newui is rewwritten
on the fly so that the resulting embed uses all.js instead of
individual .js files. all.js is the only javascript file embedded
for newui.

2) Various bugs and paths in the newui/*.js files were fixed so that
everything works when using all.js

3) pkg/server/ui.go was modified so that all features from ui should
now have an equivalent in newui, that is served through ui/new/.
In a next step, we can move back everything from newui/ into ui/ and
completely get rid of the old ui.

4) The published gallery now uses closure too.
In another next step, we should probably work on serving its static
part directly from an .html file or (include it in the zembed somehow?)
instead of generating it at every request. Or at least cache it?

This commit includes the zembeds in newui, except for zembed_all.js.go
since it is large and it would take a lot of space in the git history
everytime we change it.
The plan is to roll-sum it into chunks to address that problem.

Change-Id: I381d8ddf3a2bbe37e3c4b1c4bf423f16beffaaf4
2013-06-04 16:34:51 +02:00
mpl 64ddd47788 newui: filetree
Change-Id: Ibf8972a57c7253e55bcfcc679d141e933db3fe7b
2013-05-24 20:00:22 +02:00
mpl b126f548d3 newui: permanode page: show members as blob container
Change-Id: Ifd2a52e6ef97f97b9fb16bc11888be6875faf832
2013-05-23 16:54:33 +02:00
mpl 644561ad68 newui: blobinfo page
Change-Id: Iecc82e5feac704dfe7e280a6f21a17098a36070b
2013-05-13 23:17:12 +02:00
mpl abbcc38ee7 newui: permanode page
Change-Id: I3f2c5b54de2a43d5a53b1a31d7ecbf4b70afb6cf
2013-05-12 23:09:10 +02:00
Brad Fitzpatrick 1f31c21cec Generate and server Closure sourcemaps.
Change-Id: Ida17718eeffa1f5f1f3c849790d977921707d440
2013-02-10 17:39:18 -08:00
mpl ee29f1f8e7 Make newui ready to dev on with closure compiler, plus misc cleanup.
Added env var in dev-server and rules in Makefile to build
all.js with the closure compiler from the js files in newui.

Misc related changes:
-fixed a few closure annotations and added a few as well.
-added missing options to dev-server usage.
-renamed CAM_HTTP_DEBUG into CAMLI_HTTP_DEBUG for consistency.

Change-Id: Ica2c12358150aec24147628201e6f7a5852f9383
2013-02-07 15:25:10 +01:00
mpl fc8ecb3b29 closure: changed the library setup, added the compiler
1) The code to get the closure library has been moved from
dev-server to misc/get_closure.pl
2) The svn checkout version for the closure library was bumped
to the latest: 2459
3) The closure library checkout now goes into tmp/closure-library/,
to keep tmp/ clean for other things we might want to add there
(like the compiler). So the path to the actual libraries is now
tmp/closure-library/closure/
4) The code to get the closure compiler build was added in
misc/get_closure.pl. The compiler goes to
tmp/closure-compiler/compiler.jar
5) The version of the closure compiler is the latest build as
of this time: 20121212

Change-Id: I7e03ad7d6fe440430c5727cf56a956efed360d43
2013-01-25 17:13:19 +01:00
Brad Fitzpatrick 392640da89 camli.js: global cleanup. remove onConfiguration.
Change-Id: I1a74298ea1f333e060cebcf1221008705bcdb8ec
2013-01-20 12:46:50 -08:00
Brad Fitzpatrick f696b164f4 newui: redirect /ui/new to /ui/new/
Change-Id: I2686a3e577a32436d55e7cf5fd6640d1717caac5
2013-01-20 12:33:15 -08:00
Brad Fitzpatrick 446f03619c root: lazily load the search handler as needed. Don't block start-up.
This means we can prevent cycles elsewhere in load.

Change-Id: I670b7563b50818ef489a7f2fc832489e4bc659c8
2013-01-11 10:39:14 -08:00
Brad Fitzpatrick 23d11a5835 Unbreak line
Change-Id: Ia1d287d4c04744c57877281f393ba8ee267807bb
2013-01-10 19:29:10 -08:00
mpl ed20da7592 vivify: support in camput and upload handler.
no special credentials/auth yet.
pkg/blobserver/handlers/get.go moved to
pkg/blobserver/gethandler/get.go to avoid
a dependency loop with the json sign helper.
pkg/server/sig.go was moved to pkg/jsonsign/signhandler
because it seemed inapproriate to import in
pkg/blobserver/handlers/upload.go something from
pkg/server

Change-Id: Ifeb14512e182e8a101d4fced6d6d4184e2b9cb99
2012-12-30 23:39:22 +01:00
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 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 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
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 bccf8ed575 Move discovery up from the UI handler to the Root handler. 2012-11-07 18:57:43 +01:00
mpl 70368abb7d rotate thumbnails
Change-Id: I87dd3008facc5e9c8007fc8ebcba13e98f4a2175
2012-11-04 14:36:31 +01: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