This is the partial for view 1.
2 | -------------------------------------------------------------------------------- /js/angularSeed/app/view1/view1_test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | describe('myApp.view1 module', function() { 4 | 5 | beforeEach(module('myApp.view1')); 6 | 7 | describe('view1 controller', function(){ 8 | 9 | it('should ....', inject(function($controller) { 10 | //spec body 11 | var view1Ctrl = $controller('View1Ctrl'); 12 | expect(view1Ctrl).toBeDefined(); 13 | })); 14 | 15 | }); 16 | }); -------------------------------------------------------------------------------- /js/angularSeed/app/view2/view2.html: -------------------------------------------------------------------------------- 1 |This is the partial for view 2.
2 |3 | Showing of 'interpolate' filter: 4 | {{ 'Current version is v%VERSION%.' | interpolate }} 5 |
6 | -------------------------------------------------------------------------------- /js/angularSeed/app/view2/view2.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | angular.module('myApp.view2', ['ngRoute']) 4 | 5 | .config(['$routeProvider', function($routeProvider) { 6 | $routeProvider.when('/view2', { 7 | templateUrl: 'view2/view2.html', 8 | controller: 'View2Ctrl' 9 | }); 10 | }]) 11 | 12 | .controller('View2Ctrl', [function() { 13 | 14 | }]); -------------------------------------------------------------------------------- /js/angularSeed/app/view2/view2_test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | describe('myApp.view2 module', function() { 4 | 5 | beforeEach(module('myApp.view2')); 6 | 7 | describe('view2 controller', function(){ 8 | 9 | it('should ....', inject(function($controller) { 10 | //spec body 11 | var view2Ctrl = $controller('View2Ctrl'); 12 | expect(view2Ctrl).toBeDefined(); 13 | })); 14 | 15 | }); 16 | }); -------------------------------------------------------------------------------- /js/angularSeed/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-riffle", 3 | "description": "A starter project for Angular development with riffle", 4 | "version": "0.0.0", 5 | "homepage": "https://github.com/exis-io/ngSeed", 6 | "license": "MIT", 7 | "private": true, 8 | "dependencies": { 9 | "angular": "~1.4.0", 10 | "angular-route": "~1.4.0", 11 | "angular-loader": "~1.4.0", 12 | "angular-mocks": "~1.4.0", 13 | "html5-boilerplate": "~5.2.0", 14 | "ngriffle": "latest" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /js/angularSeed/e2e-tests/protractor.conf.js: -------------------------------------------------------------------------------- 1 | exports.config = { 2 | allScriptsTimeout: 11000, 3 | 4 | specs: [ 5 | '*.js' 6 | ], 7 | 8 | capabilities: { 9 | 'browserName': 'chrome' 10 | }, 11 | 12 | baseUrl: 'http://localhost:8000/app/', 13 | 14 | framework: 'jasmine', 15 | 16 | jasmineNodeOpts: { 17 | defaultTimeoutInterval: 30000 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /js/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "biddle", 3 | "version": "0.1.1", 4 | "description": "Tester scripts for jsRiffle", 5 | "main": "client.js", 6 | "dependencies": { 7 | "jsriffle": "latest", 8 | "crypto-js": ">= 3.1.5", 9 | "when": ">= 3.7.3", 10 | "ws": ">= 0.8.0" 11 | }, 12 | "devDependencies": {}, 13 | "scripts": { 14 | "test": "echo \"Error: no test specified\" && exit 1" 15 | }, 16 | "author": "Exis", 17 | "license": "MIT" 18 | } 19 | -------------------------------------------------------------------------------- /js/example/repl-template.js: -------------------------------------------------------------------------------- 1 | // Example REPL Template - The REPL code 2 | // ARBITER set action template 3 | 4 | var riffle = require('jsriffle'); 5 | 6 | riffle.setFabricSandbox(); 7 | 8 | var app = riffle.Domain("xs.demo.test"); 9 | var backend = app.subdomain("backend"); 10 | 11 | backend.onJoin = function() { 12 | 13 | // Exis code goes here 14 | 15 | }; 16 | 17 | backend.join() 18 | // End Example REPL Template 19 | -------------------------------------------------------------------------------- /js/example/stub.js: -------------------------------------------------------------------------------- 1 | 2 | // Example Stub - stuff 3 | // ARBITER set action register 4 | console.log("Registering"); // Expects a String, like "Registering" 5 | // End Example Stub 6 | 7 | // Example Stub - stuff 8 | // ARBITER set action call 9 | console.log("Call start"); 10 | console.log("___NODERESTART___,in:0.5,wait:0.5"); 11 | setTimeout(function (){ 12 | console.log("Call then"); // Expects a String, like "Call then" 13 | }, 1000); 14 | // End Example Stub 15 | -------------------------------------------------------------------------------- /js/example/sub-client.js: -------------------------------------------------------------------------------- 1 | var riffle = require('jsriffle'); 2 | 3 | riffle.setFabricLocal(); 4 | riffle.setLogLevelDebug(); 5 | 6 | var app = riffle.Domain("xs.demo.test"); 7 | var backend = app.subdomain("backend"); 8 | var client = app.subdomain("client"); 9 | 10 | client.onJoin = function() { 11 | 12 | // Example Pub/Sub Basic - a very basic pub/sub example 13 | backend.publish("basicSub", "Hello"); 14 | // End Example Pub/Sub Basic 15 | 16 | // Example Pub/Sub Basic Two - a basic pub/sub example 17 | backend.publish("basicSubTwo", "Hello", 3); 18 | // End Example Pub/Sub Basic Two 19 | 20 | }; 21 | 22 | client.join() 23 | -------------------------------------------------------------------------------- /js/jsRiffle/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | *.pid 4 | .DS_Store 5 | go.js 6 | go.js.map 7 | .DS_Store -------------------------------------------------------------------------------- /js/jsRiffle/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | examples -------------------------------------------------------------------------------- /js/jsRiffle/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jsRiffle", 3 | "description": "Riffle allows applications to connect over a fabric", 4 | "main": "./release/jsRiffle.min.js", 5 | "authors": [ 6 | "Exis" 7 | ], 8 | "license": "MIT", 9 | "keywords": [ 10 | "Riffle", 11 | "WebSocket" 12 | ], 13 | "homepage": "https://github.com/exis-io/jsRiffle", 14 | "moduleType": ["node"], 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests", 21 | "examples" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /js/jsRiffle/docs/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ $# -lt 1 ] 3 | then 4 | echo "Usage:" 5 | echo -e " call with version of docs to build i.e. 0.X.X" 6 | exit -1 7 | fi 8 | cat contents.md | sed "s/###version###/$1/" > jsRiffle.md && \ 9 | cat changelog.md | sed -n /START__$1/,/END__$1/p | sed "s/START__$1//" | sed "s/END__$1//" >> jsRiffle.md && \ 10 | jsdoc2md ../index.js ../src/collections.js >> jsRiffle.md 11 | -------------------------------------------------------------------------------- /js/jsRiffle/docs/changelog.md: -------------------------------------------------------------------------------- 1 | START__0.4.7 2 | ## Changes in version 0.4.7 3 | 4 | END__0.4.7 5 | START__0.4.8 6 | ## Changes in v0.4.8 7 | * Bug fix where rejecting a promise that is being returned via a call results in the success handler being called on the receiving end. 8 | 9 | END__0.4.8 10 | 11 | ## Changes in later upcoming versions 12 | -------------------------------------------------------------------------------- /js/jsRiffle/docs/contents.md: -------------------------------------------------------------------------------- 1 | # jsRiffle (v###version###) 2 | jsRiffle is an JavaScript library that provides an API for connection and interaction with Exis. 3 | 4 | -------------------------------------------------------------------------------- /js/ngRiffle/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | bower_components 3 | .tmp 4 | .DS_Store -------------------------------------------------------------------------------- /js/ngRiffle/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ngRiffle", 3 | "main": "release/ngRiffle.min.js", 4 | "authors": [ 5 | "Exis