Skip to content

Commit

Permalink
added lodash - partly & updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Green committed Apr 17, 2016
1 parent 521e50b commit c83dd13
Show file tree
Hide file tree
Showing 12 changed files with 56,883 additions and 17 deletions.
40 changes: 25 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,34 @@ What's My Score App built with NativeScript + Angular 2 + TypeScript
## Getting Started
Make sure you have all the tools to run [NativeScript](http://docs.nativescript.org/start/getting-started)

1. npm install
2. tns run android

## To-do:
1. create the project equal to [the ionic version](https://github.com/matt4446/WhatsMyScore2-Ionic2)
- Start page - *Started*
- Regions page - *Started*
- Region page - *Started*
- Region competitions page - *started*
- Competition page - *started*
2. Menu navigation - *started*
- Start page - *complete* - must remove the test page some point
- Regions page - *complete*
- Region page - *complete*
- Region competitions page - *complete*
- Competition page - *complete*
- Information - *to-do*
- Start list - *complete* - with groupBy and orderBy pipes
- Grade start list *to-do*
- Grade list - *to-do: add search* with groupBy and orderBy pipes
- Grade results - *to-do*
- Club list - *to-do: add search* with groupBy and orderBy pipes
- Club results - *to-do*
- Stats page - *to-do*


3. Angular2 NativeScript components
- List control: **nx-list** - *done* [link](https://github.com/matt4446/WhatsMyScore2-NativeScript/app/pages/startPage/startPage.html)
- List item control: **nx-list-item** - *Started*
- Animation - next
- List control: [nx-list](https://github.com/matt4446/WhatsMyScore2-NativeScript/app/pages/startPage/startPage.html) - *complete*
- List item control: [nx-list-item](https://github.com/matt4446/WhatsMyScore2-NativeScript/blob/master/app/controls/list/list-item.ts) - *mostly done - I may come back and add more animation cues.*
- Nav - work in progress - may switch to the angular-nativescript actionbar - undecided.
- Side bar
4. Styling - *ongoing*

### XML Snippets
[VS Code Snippets](https://marketplace.visualstudio.com/items/tsvetan-ganev.nativescript-xml-snippets) - thanks Tsvetan Ganev

### Fonts
fonts have been added:
FontAwesome
Ionicons

- Ionicons: [ion-icon for nativescript](https://github.com/matt4446/WhatsMyScore2-NativeScript/blob/master/app/controls/icons/ion-icon.ts)
- FontAwesome: not in use currently
3 changes: 3 additions & 0 deletions app/pipes/orderBy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { PipeTransform, Pipe } from "angular2/core";
import { Logger } from "../providers/logger";
var _ = require("underscore");
//import {orderBy} from 'lodash/orderBy';
//var orderBy = require("lodash/orderBy")

import {
StringWrapper,
isBlank,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"nativescript-loading-indicator": "^2.0.1",
"nativescript-pulltorefresh": "~1.1.0",
"underscore": "~1.8.3",
"lodash": "~4.11.1",
"font-awesome": "~4.5.0",
"ionicons": "~2.0.0",
"material-design-iconic-font": "~2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"files": [
"node_modules/tns-core-modules/tns-core-modules.base.d.ts",
"node_modules/angular2/typings/browser.d.ts",
"typings/tsd.d.ts",
"typings/main.d.ts",
"app/pipes/orderBy.ts",
"app/app.ts",
"app/decorators/app.ts",
Expand Down
2 changes: 2 additions & 0 deletions typings/browser.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference path="browser/definitions/lodash/index.d.ts" />
/// <reference path="browser/definitions/moment/index.d.ts" />
Loading

0 comments on commit c83dd13

Please sign in to comment.