Commit Graph

29 Commits

Author SHA1 Message Date
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 3b3c2288a2 New build tool. Should even work on Windows, if Go 1.1 is available, without MinGW/msys/etc.
Change-Id: Idb197cc2309ae294ce42d41c7d35333d1cfed48c
2013-06-11 00:55:17 +02:00
mpl 5055205d9e Makefile: added DebugPage namespace in all.js
Change-Id: I571e3cc5da192866553b74bdc01ad55b04283ba9
2013-06-09 00:21:45 +02:00
mpl 3040e3852e Merge "WIP: switch from ui to newui" 2013-06-05 12:29:29 +00: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
Brad Fitzpatrick da9e7c8f34 Add Makefile hint
Change-Id: Ie10821f6821b8e63f2a143e9e4c68f244d2da149
2013-05-25 15:00:00 -07:00
Brad Fitzpatrick 40fb683aad Makefile: add clean target
Change-Id: I4ec279e3e39fe5388d75f694542149d72d588d49
2013-02-10 20:06:42 -08:00
Brad Fitzpatrick b6f588abcc newui: use SIMPLE_OPTIMIZATION. turns out ADVANCED_OPTIMIZATIONS won't work without lots of pain and isn't worth it.
Change-Id: I2313c2815f6264256d24f5ad176ca580eef6b2ad
2013-02-10 18:02:06 -08:00
Brad Fitzpatrick 1f31c21cec Generate and server Closure sourcemaps.
Change-Id: Ida17718eeffa1f5f1f3c849790d977921707d440
2013-02-10 17:39:18 -08:00
Brad Fitzpatrick 3a8c4f1cdc Makefile: add more minijs deps
Change-Id: I827cf023e927e1b5068525783816200c16e85438
2013-02-10 17:11:50 -08:00
mpl 306213b32b Merge "Make newui ready to dev on with closure compiler, plus misc cleanup." 2013-02-07 15:24:08 +00: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
Brad Fitzpatrick e398532b4a buildinfo: include dirty + flag in version
Change-Id: Idc4763de41fdfa055fed5c06a36db9e9539f60bc
2013-02-03 10:14:21 -08:00
Brad Fitzpatrick ddcec4e92c Add --version flags to tools.
Change-Id: I1c86c3de09fb59bc20539f7d1efbd4d4710bf494
2013-02-02 10:59:39 -08:00
Brad Fitzpatrick 108a72f458 Makefile: Mac's shell built-in echo doesn't have -n; was being passed to go
Change-Id: I792758750333c51068b91518564c8650fb8fc8e3
2013-01-28 08:35:53 -08:00
mpl 08a828de78 Makefile: checkjs, i.e run closure builder with the closure compiler
Change-Id: I0cd013ed132251379458c28f8947ab5efd2bdd0b
2013-01-26 00:13:50 +01:00
Brad Fitzpatrick de20351d65 Makefile: detect sqlite automatically
Change-Id: Ib21ec16462ec2f0bc58456127534db5493c1ae67
2013-01-25 14:52:48 -08:00
Brad Fitzpatrick b81b2fa98f Makefile: add 'forcefull' workaround
Change-Id: Ifaf40794e84e0fef5697fb54332826680c442a37
2013-01-20 13:35:37 -08:00
Brad Fitzpatrick d884314d20 Default to not using sqlite
Change-Id: I22eafd8ae7ac1a18a13251675f08a30e3180bd03
2013-01-20 11:57:34 -08:00
Brad Fitzpatrick 2ce7b7f719 Add a favicon to the server.
Change-Id: I123b897bad6e34d36458c9f128eafa6807c3e3be
2013-01-12 21:25:55 -08:00
Brad Fitzpatrick 88e92a6cc5 Document blobserver.Loader methods, fix GetHandlerType to not force-load, diagnose loops better.
Change-Id: I03e989267e80ad610d3877c97fbf8adc8a88bb60
2013-01-11 12:42:30 -08:00
Brad Fitzpatrick 02b8b35b51 Make sqlite support optional and detectable. 2013-01-10 14:29:20 -08:00
Brad Fitzpatrick 256fb531b1 presubmit: say PASS at the end 2012-11-07 17:49:22 +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 4849adfd59 update Makefile to use the go command
Change-Id: I299cbef90f23fbd65378f76d6e5e1e476fdc0d61
2012-04-13 13:51:52 -07:00
Brad Fitzpatrick 1a40867811 add target to generate zembed files 2012-02-28 14:51:42 +11:00
Brad Fitzpatrick 55e6ffe8e3 Add presubmit Make target. 2011-03-05 13:44:19 -08:00
Brad Fitzpatrick c4c04e7550 Add Android client to build.pl 2011-02-03 17:40:53 -08:00
Brad Fitzpatrick 1ca2787f26 Clean up the build system a bit. 2011-02-03 17:32:34 -08:00