From 0c7179fea4a920e0d5773473a587743328a2f769 Mon Sep 17 00:00:00 2001 From: kiswa Date: Fri, 28 Apr 2017 22:13:55 +0000 Subject: [PATCH] Initial add task functionality and README update --- README.md | 28 +++++++++++++++++----- src/app/board/board.component.ts | 4 ++++ src/app/board/column/column.component.html | 5 ++-- src/app/board/column/column.component.ts | 25 ++++++++++++++++--- test/app/board/board.component.spec.js | 20 ++++++++++++++++ test/app/mocks.js | 13 ++++++++++ 6 files changed, 84 insertions(+), 11 deletions(-) create mode 100644 test/app/board/board.component.spec.js diff --git a/README.md b/README.md index 169165f..5c85b18 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The goal of TaskBoard is to provide a simple and clean interface to a functional A web server running PHP 5.5, 5.6, or 7.0 with sqlite enabled. -The server must have `sqlite3` and `php5-sqlite` (or `php7-sqlite`) installed, as well as the `rewrite` Apache module. +The server must have `sqlite3` and `php5-sqlite` (or `php7-sqlite`) installed. If you're comfortable changing code, you can use any database [supported by RedBeanPHP](http://www.redbeanphp.com/index.php?p=/connection). @@ -24,6 +24,22 @@ Installing TaskBoard is as easy as 1, 2, 3! 2. Extract it to your webserver 3. Verify the `api` directory is writable +### Server Config + +#### Apache + +The directory you create for TaskBoard must have `AllowOverride` set so the .htaccess files work. + +You also have to have `mod_rewrite` installed and enabled. + +#### NGINX + +TODO + +#### IIS + +See the [Wiki Page](https://github.com/kiswa/TaskBoard/wiki/TaskBoard-on-IIS) + ### First Use Open a web browser to the location you installed TaskBoard and use `admin` as the username and password to log into TaskBoard. @@ -134,11 +150,11 @@ Because I like seeing the numbers. Language | Files | Blank | Comment | Code -------------|--------:|---------:|--------:|---------: -TypeScript | 54 | 586 | 25 | 2765 +TypeScript | 54 | 590 | 24 | 2785 PHP | 18 | 559 | 19 | 1743 -HTML | 18 | 126 | 9 | 1148 +HTML | 18 | 126 | 9 | 1149 SASS | 13 | 209 | 11 | 953 -__SUM:__ | __103__ | __1480__ | __64__ | __6609__ +__SUM:__ | __103__ | __1484__ | __63__ | __6630__ Command: `cloc --exclude-dir=vendor --exclude-ext=json src/` @@ -147,8 +163,8 @@ Command: `cloc --exclude-dir=vendor --exclude-ext=json src/` Language | Files | Blank | Comment | Code -------------|-------:|---------:|--------:|---------: PHP | 10 | 687 | 16 | 2008 -JavaScript | 31 | 392 | 37 | 1636 -__SUM:__ | __41__ | __1079__ | __53__ | __3644__ +JavaScript | 32 | 399 | 38 | 1661 +__SUM:__ | __42__ | __1086__ | __54__ | __3669__ Command: `cloc --exclude-ext=xml test/` diff --git a/src/app/board/board.component.ts b/src/app/board/board.component.ts index 5e70a8f..e37a6ec 100644 --- a/src/app/board/board.component.ts +++ b/src/app/board/board.component.ts @@ -55,6 +55,10 @@ export class BoardDisplay implements OnInit { this.loading = false; }); + boardService.activeBoardChanged.subscribe((board: Board) => { + this.activeBoard = board; + }); + auth.userChanged.subscribe((user: User) => { this.updateActiveUser(user); }); diff --git a/src/app/board/column/column.component.html b/src/app/board/column/column.component.html index 736952f..4b3e3aa 100644 --- a/src/app/board/column/column.component.html +++ b/src/app/board/column/column.component.html @@ -46,7 +46,7 @@ modal-id="{{ MODAL_ID + columnData.id }}"> @@ -68,7 +68,8 @@