Skip to content

Commit a2f979f

Browse files
committed
the currently selected field now is marked differently
1 parent 3d1bbbc commit a2f979f

28 files changed

+342
-331
lines changed

Chess/app.js

-30
This file was deleted.

Chess/app.js.map

-1
This file was deleted.

Chess/application.js.map

-1
This file was deleted.

Chess/application.js Chess/applicationcomponent.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Chess/applicationcomponent.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Chess/application.ts Chess/applicationcomponent.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/// <reference path="typings/angular2/angular2.d.ts" />
22
/// <reference path="chessboard.ts" />
33
import {Component, View, bootstrap} from 'angular2/angular2';
4-
import {ChessUI} from "./chessboard";
4+
import {ChessBoardComponent} from "./chessboardcomponent";
55

66

77
// Annotation section
88
@Component({
9-
selector: 'application'
9+
selector: 'application'
1010
})
1111
@View({
12-
templateUrl: 'application.html',
13-
directives: [ChessUI.ChessBoardComponent]
12+
templateUrl: 'application.html',
13+
directives: [ChessBoardComponent]
1414
})
1515
// Component controller
1616
class ApplicationComponent {

Chess/board.js

-84
This file was deleted.

Chess/board.js.map

-1
This file was deleted.

Chess/cheat.sheet

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
npm install -g tsd@^0.6.0
33
tsd install angular2 es6-promise rx rx-lite
4+
puts the current Angular2 type definitions into the subfolder called "typing" of the current FormBuilder
5+
6+
47

58
Compilation:
69
- built-in with Visual Studio Code
@@ -21,6 +24,7 @@ Start server:
2124

2225
tsconfig.json explained:
2326
https://github.com/TypeStrong/atom-typescript/blob/master/docs/tsconfig.md
27+
http://blog.icanmakethiswork.io/2015/02/hey-tsconfigjson-where-have-you-been.html
2428
example tsconfig.json:
2529
{
2630
"compilerOptions": {
@@ -34,6 +38,10 @@ tsconfig.json explained:
3438
"app.ts",
3539
"board.ts",
3640
"typings/tsd.d.ts"
41+
],
42+
"filesGlob": [
43+
"*.ts",
44+
"engine/*.ts"
3745
]
3846
}
3947

Chess/chess.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.field {
2+
border: 1px solid black;
3+
width:68px;height:68px;
4+
}
5+
6+
.selectedField { border: 2px solid red;
7+
width:66px;
8+
height:64px;
9+
top:-2px;
10+
position:relative;
11+
}

Chess/chessboard.js

-79
This file was deleted.

Chess/chessboard.js.map

-1
This file was deleted.

0 commit comments

Comments
 (0)