Commit Graph

114 Commits

Author SHA1 Message Date
Aaron Boodman 9104eefb7c Adds camlistore.Spinner, a progress meter based on the safe icon.
This isn't used by anything yet, but will be used in subsequent changes.

Change-Id: I0bd3174b2e16f8cab814ce72425b5fa1fed8d07e
2013-12-01 10:08:47 -08:00
Aaron Boodman 650bd9b61e Display a folder icon and make camliPath attributes navigable.
Like we do for camliMember.

Change-Id: I2db51d7397e0f8ab86ea71716fe06099ba22005a
2013-11-22 22:49:07 -08:00
mpl a6aeff034c server/publish.go: use go html template for publishing
Change-Id: Ic1c55d35e52e407864d339927b453de58a64e03c
2013-11-19 17:50:26 +01:00
Aaron Boodman 02665d5d3c Use pushstate() to give searches URLs and history entries.
Also, remove note about bref support from search instructions since
apparently that isn't supported yet.

Change-Id: I1ccbb8be44aa62ae7191aef913c7a226fd90a775
2013-10-16 23:54:26 -07:00
Aaron Boodman 8418852996 Combine search and index page functionality.
Also:

* Changed favicon to a safe
* Clean up design of toolbar
* SVG support buggy in Chrome, replace SVG checkmark icons with PNG

Screen cap:
http://vault.aaronboodman.com/share/sha1-2dbb2b515fc84f2ef1395ee263cd41c1a6700de2?via=sha1-6eb9c7651ffa8e6f4f95e8fc6800a4672c4e179a&assemble=1

Change-Id: Ic5d2eb30ea1d72022a2b8804cae887319ac32a1b
2013-10-16 01:08:02 -07:00
Aaron Boodman 74eb8e6c3c Further visual refinements to layout of homepage:
* Increase default image size a few settings
* Increase gutter between items
* Remove extraneous padding and whitepsace
* Remove unneeded gigantic heading
* Move build version into statusbar
* Change algorithm for fitting rows -- instead of preferring to clip
  edges of image, instead prefer to adjust height of rows. I find it
  looks more interesting visually when the widths of the images vary
  more.
* Replace folder and file icon with something better looking
* Swap order of + and - buttons in toolbar, they were backward from
  what is typical

Change-Id: Idfe85a813926c2c9eea774a86046df62ecacd45c
2013-10-04 14:04:38 -07: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
Aaron Boodman f322018816 Move the button to create permanode into toolbar.
Also:
* Make the entire BlobItemController a drop target for new files,
  except for when over a set, then the set is the target.
* Minor visual refinements to highlight states during dragging.
* Fix bugs/flicker in dragdrop code.
* Fix bug where there is an empty button in toolbar before the first
  item is selected.

Change-Id: I3c40a476395c885477e1316e6ff168399640e347
2013-10-01 00:16:29 -07: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
mpl 489c78746b ui: deal better with unexpected non JSON responses
Change-Id: Ieacac4dc734421743ca30bf79b0f3afdbbe00892
2013-08-11 21:11:02 +02:00
Brad Fitzpatrick ba63f77d32 Merge "Improve appearance of non-image permanodes." 2013-08-05 15:01:20 +00:00
Brad Fitzpatrick 1f1c54e9f3 Merge "Schedule relayout whenever children are added to BlobItemContainer." 2013-08-05 14:59:59 +00:00
Aaron Boodman 5e24502348 Schedule relayout whenever children are added to BlobItemContainer.
This fixes some bugs where we don't relayout when items are added
to BlobItemContainer for various reasons.

Change-Id: Ie434acc12e660af438b93d2dabd41f3d75fb7493
2013-08-05 00:05:32 -07:00
Aaron Boodman ace41589a8 Improve appearance of non-image permanodes.
The add button still looks poo, but that will be a separate change.

Change-Id: Iea5fd53f7f4eabfc8c2ed45c043fcbd661b68077
Screenshots: http://imgur.com/JARUznn,tsv6dgU
2013-08-04 22:55:08 -07:00
Brad Fitzpatrick e3d3238989 closure: remove weird line breaks from buggy goimports, fmt
Change-Id: I65c8952d7fb3fbcdbaf61f004addf4514a8eee9a
2013-08-03 22:42:49 -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
Aaron Boodman 02e0d5fc33 Prevent BlobItemContainer from receiving focus.
This seems to fix https://code.google.com/p/camlistore/issues/detail?id=183.
I could not find the code that is actually causing scrolling to occur ... I am
guessing something in Closure somewhere.

However, I also couldn't think of any reason for this component to be
focusable, and this doesn't seem to break anything that I can see.

Change-Id: Iaf64555ee175c774a218bb32d9bb4f97f46cc636
2013-07-28 17:17:33 -07:00
mpl 847c583183 UI toolbar: open search or index in same window/tab
Change-Id: I242fc4a23437b8ccf6bc6f33c3f8a7d9fdfc0023
2013-07-16 16:43:03 +02:00
mpl d5641cce0f UI index: enable drag and drop on a collection
Dropping anywhere on the container is now disabled.
One can either drop on the CreateItem (which results
in the same as dropping on the container was), or
drop on a collection thumbnail, which will not only
create the permanodes but add them to the collection
on the fly.

Change-Id: Ia4d761b2be25822a561c94c397dded02853e5b77
2013-07-15 17:32:53 +02:00
mpl 4a36967bc1 blobinfo: protect against xss from filename
http://camlistore.org/issue/173

Change-Id: I0b94578cea671ab3ba330a498f835a6e0bfdfc68
2013-07-09 00:21:41 +02:00
mpl 6e7030d7bb Merge "ui: use local sprite for the toolbar bg" 2013-07-05 18:02:06 +00:00
mpl b47c75be7d ui: use local sprite for the toolbar bg
http://camlistore.org/issue/170

Change-Id: I66c7dee6f7072d477fed0eb41027f712d72bc8fb
2013-07-05 20:01:00 +02: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 3fdf0b0af6 Merge "server_connection: show error when xhr fails" 2013-07-04 20:52:57 +00:00
Brad Fitzpatrick f3e2862660 Merge "pics.js: fix element index bug and indent" 2013-07-04 20:11:51 +00:00
mpl 3cec70b4ad ui: rm wantsRecentPermanodes and index-compiled.html
Change-Id: I5dd8d0b11b5b82f51738fbe5669f5a7798929300
2013-07-04 21:47:34 +02:00
mpl e95ddeb36a pics.js: fix element index bug and indent
Change-Id: Id1aee8f1725ccb2ef1e7fbc85f1293b89a9ec28e
2013-07-04 16:11:58 +02:00
mpl 9b392f39a4 server_connection: show error when xhr fails
Change-Id: Ibe82cb33f04cc606740ec136e1ffb524a7025730
2013-07-04 14:48:36 +02:00
mpl e2f9403f63 ui/blobinfo.js: check mimeType presence to avoid exception
http://camlistore.org/issue/165

Change-Id: Ie1ee86b5cc7807786d428efb92f2f571dd0450f2
2013-06-27 17:14:20 +02:00
Brad Fitzpatrick da86949a92 Fix UI's debug JSON verification
Fixes https://code.google.com/p/camlistore/issues/detail?id=163

Change-Id: I6bdd57b9c47b6465ba01336a3a5f0487889ea327
2013-06-26 11:15:17 -07:00
Brad Fitzpatrick 909d310e2f Prettier JSON claims from web UI.
Fixes https://code.google.com/p/camlistore/issues/detail?id=162

Change-Id: I0a154c267665d189d43b0742047a8229bf627e65
2013-06-26 11:07:18 -07:00
Brad Fitzpatrick 1c9436d26a Make sourceRoot take precedence over fileembedded resources. 2013-06-20 14:58:12 -07:00
Brad Fitzpatrick b4087ccc36 Remove CAMLI_DEV_UI_FILES and last zembed file. 2013-06-20 13:44:30 -07:00
Brad Fitzpatrick 48d282991c Remove all the html/css/js zembed files from the tree, for now. 2013-06-20 11:49:10 -07:00
mpl d9258434fe ui: zembeds should belong to package ui, not newui
Change-Id: I5d69e73280051eb8b97f3e082e5cfe285439dac6
2013-06-20 19:07:05 +02:00
Brad Fitzpatrick 10d000d900 ui: serve Closure from embedded zip data when available
Change-Id: I9bb6bb4f13f69b293fd98441d82068c0677ffbd5
2013-06-18 23:14:36 -07:00
Brad Fitzpatrick 83e42a14a8 Add server/camlistored/ui/closure package stub.
Change-Id: I1b8fd14e1d30326077e313d53594136e0b7c9de5
2013-06-18 11:36:44 -07:00
mpl ed798d8118 ui: update zembeds because of previous search changes
Change-Id: Iab9e8d3ad1ee5d2ccc163b637fae3c7038f1ef4b
2013-06-13 01:26:07 +02:00
mpl 084ce4c187 ui: always reset blobcontainer children upon a search
Fixes: http://camlistore.org/issue/143

Change-Id: Ic2f139dc207f518c7904bcbcb1577115e93ca3c8
2013-06-12 17:05:57 +02:00
mpl 777abd6e31 ui: fix blobitem title issues
http://camlistore.org/issue/141

Change-Id: I391bfba6a2083132e8998fcc8c2ae712cfc69836
2013-06-11 14:53:23 +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
Brad Fitzpatrick c6cb32bcac fileembed: put all metadata first, and also support rolling checksum splitting of large embeds
Change-Id: I9da21c9a21cb2f9b04484d4374a621cb4b97679d
2013-06-10 01:11:03 +02:00
mpl 39f1c2bae1 ui: published gallery fix
Change-Id: I42320d31da7393a2062833897ec581a245608d7c
2013-06-08 19:08:29 +02:00
Brad Fitzpatrick e7486b0009 Update embeds
Change-Id: If959ebbfc1932b5ae89eac3bb480e90f95abe22a
2013-05-25 14:54:35 -07:00
mpl b1577e34b9 ui: fix filetree (subsequent to describe response changes)
Change-Id: Ib715693ea98206158680cd9bec1566d6fe11ca96
2013-05-23 18:04:56 +02:00
Brad Fitzpatrick 85c0fa9c61 Merge "search: factorize max results sanitation, allow max specified from ui" 2013-05-01 02:22:24 +00:00
mpl 7c08f37abe search: factorize max results sanitation, allow max specified from ui
Change-Id: I066369829816189dbd2f682ce003c8b82022d131
2013-04-04 15:38:55 +02:00
mpl 146c5053b5 ui: small js bugfix (not null check)
Change-Id: I7c7b218263b28d1a8701972cb9eddfccbbe6275c
2013-04-04 01:12:20 +02:00