Commit Graph

58 Commits

Author SHA1 Message Date
Rafael Weinstein 4d95278ec8 NomsSet.intersect 2015-12-14 08:08:10 -08:00
Erik Arvidsson 5a94b87cbb JS: Encode numbers as strings 2015-12-14 09:21:43 -05:00
Rafael Weinstein fe01f333a1 JS Support for Compound Objects 2015-12-10 15:04:02 -08:00
Erik Arvidsson 2c5063013b Fix missing npm dep 2015-12-09 17:34:59 -05:00
Erik Arvidsson 325eecdc48 JS: Add watch support to copying flow files 2015-12-09 16:34:03 -05:00
Erik Arvidsson f31ea22051 JS: Add support for compiling in dev mode
When in dev mode we compile async functions to generators.

We also keep features that are available in Node5 and Chrome 47.
2015-12-09 12:34:33 -05:00
Erik Arvidsson a16d9569f9 Resolve to empty chunk in cae of failure 2015-12-08 19:40:53 -05:00
Erik Arvidsson bc301ddaf0 Use // for flow pragma 2015-12-08 19:20:20 -05:00
Erik Arvidsson 42eb0752f5 Update flow to 0.19 and fix new errors it found 2015-12-08 19:15:09 -05:00
Erik Arvidsson b72d7cb323 CrunchBase UI: Hook up the data to the backend
This changes the indexer to only index what we need since without
chunked maps there is too much data to transfer and decode.

The graph is also changed to a line graph since using a bar chart
for this is not very intuitive.
2015-12-08 15:51:10 -05:00
Rafael Weinstein ff1817b1d7 fix flow 2015-12-04 16:09:27 -08:00
Rafael Weinstein e5409f2698 Remove MetaSequenceKind from serialization 2015-12-04 13:34:30 -08:00
Rafael Weinstein e64dd8100a Revert "Remove MetaSequenceKind from serialization"
This reverts commit 50c02fdd66.
2015-12-04 13:33:27 -08:00
Rafael Weinstein 50c02fdd66 Remove MetaSequenceKind from serialization 2015-12-04 12:51:48 -08:00
Chris Masone 62a937fe93 Scripts should explicitly say they require bash if needed
Apparently pushd and popd aren't in whatever very-limited shell travis uses
in its build environment. So, scripts using them (and others for safety) should
she-bang /bin/bash instead of /bin/sh
2015-12-04 10:43:53 -08:00
Chris Masone 8180c41bf0 Build scripts/tools written in Go
This patch introduces tools/run_all_build.go, a tool that looks for
files called build.go in our source tree and executes them using
'go run'. Currently, they're run in serial.

Also, some node projects are tweaked to make it clear that 'go run build.go'
is the supported mechanism for installing deps and building code.
2015-12-04 10:18:23 -08:00
Erik Arvidsson 514fd92ab6 JS: Add support for writing Ref
Reading an writing ref values return Ref. This is different from
Go but it gets us unblocked.

Towards #599
2015-12-02 12:52:09 -05:00
Erik Arvidsson 61f14f8c9a Rename noms UInt* to Uint*
Fixes #673
2015-12-02 12:01:42 -05:00
Rafael Weinstein f3774020f5 Implement Enum encode/decode + a bunch of tests 2015-11-24 23:12:47 -08:00
Erik Arvidsson 58709e858f Merge pull request #661 from arv/js-blob-top-level
JS: Implement top level blob support
2015-11-23 16:19:24 -05:00
Erik Arvidsson edac078091 Make `Splore work in Safari and Firefox
To make this happen I updated to Babel 6 and changed to the es2015
preset since Firefox/Safari do NOT support classes, let, generators...

Now that compiled code is not ES6 any more we can run Uglify on it
too.

'Splore is 200k minimized which isn't terrible.

Towards #603
2015-11-23 10:54:55 -05:00
Erik Arvidsson 2b2af7c506 JS: Implement top level blob support
We lost the 'b ' encoding when we switched to js2.
2015-11-19 18:43:51 -05:00
Erik Arvidsson eeb7b0f2c8 JS: Support encoding and decoding embedded blobs
Embedded blobs use base64 encoded strings
2015-11-19 16:22:13 -05:00
Erik Arvidsson 8b06ff18c0 JS: Remove use strict
All our code is written as ES modules which are always strict
2015-11-19 14:54:15 -05:00
Erik Arvidsson 480f516048 Switch text-encoding dependency
This is to reduce code size.
2015-11-17 10:37:52 -05:00
Erik Arvidsson de5e8b8ec0 Replace isometric-fetch
This replaces the fetch polyfill with 2 more targetted functions:
fetchText and fetchArrayBuffer

There is one implementation for node and one for browsers. Browserify
picks the browser version by reading the value out of package.json

Towards #605
2015-11-16 14:48:21 -05:00
Erik Arvidsson 7cf87c46bf JS: Remove invalid invariant about empty package ref
It is OK to have an empty package ref when serializing an
UnresolvedType. It can happen when a Package is serialized or if we
ask for the `ref` of an unresolved type.

Fixes #615
2015-11-16 12:08:49 -05:00
Erik Arvidsson 54425c5b0e Rename js2 to js 2015-11-12 20:53:23 -05:00
Erik Arvidsson d71018a833 Remove old js/ directory 2015-11-12 20:48:29 -05:00
Erik Arvidsson 283dae5f32 Update demos 2015-09-29 13:12:26 -04:00
Erik Arvidsson 531b355d08 decode.js: Remove Ref wrapping
It is not clear to me why we added the Ref wrapping? The Ref wrapping
causes the explorer.js IU to show the wrong ref for collections.
2015-09-29 11:50:17 -04:00
Erik Arvidsson 1b1fb065cc Now with pkgRef support 2015-09-25 10:48:00 -04:00
Erik Arvidsson f6962712d9 Add basic support for TypeRef in decode.js
For now it decodes into an Immutable.Map
2015-09-24 18:42:35 -04:00
Erik Arvidsson dedcf0fc00 Document how to run the js unit tests 2015-09-24 11:00:00 -04:00
Rafael Weinstein aca5bcec33 Fix JS Tests 2015-09-23 13:06:28 -07:00
Chris Masone 63c956a5c5 Add types.TypeRef
We want to explore encoding type information about Noms data in
the Noms database. So, we need some way to describe types. This
takes the shortest path to making a Noms type called "TypeRef" that
is a peer of Set, Map et al and can describe all the types we currently
use.
2015-09-22 16:19:38 -07:00
Aaron Boodman 4dc3c060c0 noms_store: make server url customizable 2015-09-14 11:00:38 -07:00
Rafael Weinstein 10350dbd7e switch js to use buffer reads 2015-09-11 14:41:51 -07:00
Erik Arvidsson 4639ca383a JS unit tests
This uses Karma with mocha+chai and browserify+babel. The tests
currently need to be run in a browser because we currently depend on
non node.js features (Blob and FileReader)

To run the tests go to <noms>/js/ and do `npm run start-test`.

Issue #256
2015-09-03 19:50:51 -04:00
Aaron Boodman 1c2f82dfc3 js: Fix stupid bug in implementation of Ref.hashCode()
Fixes #254
2015-09-02 22:44:28 -07:00
Erik Arvidsson 4ddd348e5f noms.js: Fix decoding of compound lists 2015-09-01 19:06:07 -04:00
Erik Arvidsson 32dcba2084 Add js support for compound lists 2015-08-28 15:42:07 -04:00
Aaron Boodman 2850851929 tagshow: Put back dataset picker 2015-08-27 15:11:10 -07:00
Aaron Boodman 33a5860216 Response to comments on PR #223 2015-08-26 12:46:12 -07:00
Aaron Boodman 1703f98c80 tagshow: Use AND rather than OR to decide which photos to show 2015-08-25 21:55:14 -07:00
Erik Arvidsson 4bb0ec9cda JS: Fix decode of compound blobs
This regressed in 1d152410db

Issue #170
2015-08-25 16:58:15 -04:00
Erik Arvidsson e9efeb6115 Fix pitchmap ui demo
This broke when we changed from heads to a single head
2015-08-25 14:42:30 -04:00
Rafael Weinstein abc7102ad6 Clean following HttpStore implementation 2015-08-24 10:57:50 -07:00
Rafael Weinstein f6490cbbe5 Add HttpStore implementation 2015-08-21 14:22:45 -07:00
Aaron Boodman f4570a116c js: Decode blobs to DOM blob objects. 2015-08-17 23:01:23 -07:00