artefact.json
map.json
/view-models
/services
/ui
/preview
/fakes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.signin { | |
text-align: center; | |
} | |
.signin div { | |
background-color: transparent; | |
color: whitesmoke; | |
box-shadow: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
TIdTableEntry = object | |
id: string | |
genId: string | |
startIndex: int | |
endIndex: int | |
PIdTableEntry = ref TIdTableEntry | |
TIdLookupTable = object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ILocation { | |
startOffset: number | |
startLine: number | |
} | |
export interface CstNode { | |
readonly name: string | |
readonly children: CstChildrenDictionary | |
readonly recoveredNode?: boolean | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeExecutableSchema, addMockFunctionsToSchema } from "graphql-tools"; | |
import { graphql } from "graphql"; | |
import { ApolloClient } from "apollo-client"; | |
import { from } from "apollo-link"; | |
import { withClientState } from "apollo-link-state"; | |
import { InMemoryCache } from "apollo-cache-memory"; | |
import GoalsSchema from "../api/goals/Goal.graphql"; | |
// import { defaultState } from '../ui/config/apollo/defaultState' | |
const defaultState = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
</head> | |
<body> | |
<div aurelia-app="src/configure"> | |
Loading... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1 2 3; do | |
dm rm -f swarm-$i | |
done | |
# swarm with 3 managers | |
scripts/dm-swarm.sh | |
# switch to swarm-1 env | |
eval $(dm env swarm-1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let testCall = async () => { | |
return await _.callApi(route + '/rate', 'POST', requests.rate); | |
} | |
test('route: components') | |
.that('POST component rating') | |
.will('add a rating to the component', async () => { | |
check.ratingAdded(testCall()); | |
}) | |
.will('NOT add a second rating to the component for the same user', async () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('babel-core/register'); | |
require('babel-polyfill'); | |
const chai = require('chai'); | |
chai.should(); | |
class Tester { | |
constructor(parent, text, opts) { | |
this.parent = parent; | |
this.text = text; |
Taken in part from discussions/solutions mentioned [here]this aurelia/templating#35)
Please also look at view-manager and aurelia-form for inspiration. Maybe also look here for example of dynamic data grid with rows and columns :)
Notes: This works for me as well. I only had to change view.bind(this.bindingContext);
to view.bind(this);
as I wanted to bind to the model itself (not its parent) and initially failed on using click delegates.
Alternative!?
NewerOlder