From f58e544733f853c4461b2f2d210860227c48642d Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Tue, 16 Aug 2016 13:53:50 +0200 Subject: [PATCH] Add copyright statements --- appinfo/application.php | 22 ++++++-- appinfo/autoload.php | 22 ++++++-- appinfo/routes.php | 22 ++++++-- controller/boardcontroller.php | 21 ++++++++ controller/cardcontroller.php | 21 ++++++++ controller/labelcontroller.php | 21 ++++++++ controller/pagecontroller.php | 22 ++++++-- controller/sharecontroller.php | 21 ++++++++ controller/stackcontroller.php | 21 ++++++++ controller/stylecontroller.php | 21 ++++++++ css/font-awesome.css | 22 ++++++++ css/style.css | 22 ++++++++ db/acl.php | 22 ++++++++ db/aclmapper.php | 21 ++++++++ db/board.php | 22 ++++++++ db/boardmapper.php | 21 ++++++++ db/card.php | 22 ++++++++ db/cardmapper.php | 21 ++++++++ db/deckmapper.php | 21 ++++++++ db/entity.php | 22 ++++++++ db/label.php | 22 ++++++++ db/labelmapper.php | 21 ++++++++ db/stack.php | 22 ++++++++ db/stackmapper.php | 21 ++++++++ js/Gruntfile.js | 35 ++++++------- js/app/App.js | 22 ++++++++ js/app/Config.js | 22 ++++++++ js/app/Run.js | 22 ++++++++ js/controller/AppController.js | 22 ++++++++ js/controller/BoardController.js | 22 ++++++++ js/controller/CardController.js | 22 ++++++++ js/controller/ListController.js | 22 ++++++++ js/directive/appnavigationentryutils.js | 22 ++++++++ js/directive/autofocusoninsert.js | 22 ++++++++ js/directive/avatar.js | 22 ++++++++ js/directive/cardActionUtils.js | 22 ++++++++ js/directive/elastic.js | 22 ++++++++ js/directive/markdownChecklist.js | 22 ++++++++ js/directive/search.js | 22 ++++++++ js/filters/cardFilter.js | 22 ++++++++ js/filters/cardSearchFilter.js | 22 ++++++++ js/filters/lightenColorFilter.js | 22 ++++++++ js/filters/orderObjectBy.js | 22 ++++++++ js/filters/textColorFilter.js | 22 ++++++++ js/gulpfile.js | 24 ++++++--- js/public/app.js | 22 ++++++++ js/script.js | 24 ++++++--- js/service/ApiService.js | 22 ++++++++ js/service/BoardService.js | 22 ++++++++ js/service/CardService.js | 22 ++++++++ js/service/LabelService.js | 22 ++++++++ js/service/StackService.js | 22 ++++++++ js/service/StatusService.js | 22 ++++++++ js/tests/unit/boardcontrollerspec.js | 22 ++++++++ lib/Middleware/SharingMiddleware.php | 21 ++++++++ service/boardservice.php | 21 ++++++++ service/cardarchivedexception.php | 21 ++++++++ service/cardservice.php | 21 ++++++++ service/labelservice.php | 21 ++++++++ service/servicepermissionexception.php | 21 ++++++++ service/stackservice.php | 21 ++++++++ templates/main.php | 21 ++++++++ templates/public.php | 21 ++++++++ tests/bootstrap.php | 22 ++++++-- tests/integration/AppTest.php | 22 ++++++-- tests/unit/controller/PageControllerTest.php | 53 ++++++++++++-------- 66 files changed, 1398 insertions(+), 81 deletions(-) diff --git a/appinfo/application.php b/appinfo/application.php index 3726a1db7..146d70bb9 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ namespace OCA\Deck\AppInfo; diff --git a/appinfo/autoload.php b/appinfo/autoload.php index 8b76902b6..39ded13b0 100644 --- a/appinfo/autoload.php +++ b/appinfo/autoload.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ namespace OCA\Deck\AppInfo; diff --git a/appinfo/routes.php b/appinfo/routes.php index 771bec943..0ff8ae773 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ return [ diff --git a/controller/boardcontroller.php b/controller/boardcontroller.php index 7987a1874..31977cb46 100644 --- a/controller/boardcontroller.php +++ b/controller/boardcontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/controller/cardcontroller.php b/controller/cardcontroller.php index 30838d439..4d95b686b 100644 --- a/controller/cardcontroller.php +++ b/controller/cardcontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/controller/labelcontroller.php b/controller/labelcontroller.php index 1b022f4ac..9dc32d6f2 100644 --- a/controller/labelcontroller.php +++ b/controller/labelcontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index 7a00e15da..9e55cf1de 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ namespace OCA\Deck\Controller; diff --git a/controller/sharecontroller.php b/controller/sharecontroller.php index 13d5cdb22..ae04f0c4d 100644 --- a/controller/sharecontroller.php +++ b/controller/sharecontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/controller/stackcontroller.php b/controller/stackcontroller.php index 2152819fc..faf52f64d 100644 --- a/controller/stackcontroller.php +++ b/controller/stackcontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/controller/stylecontroller.php b/controller/stylecontroller.php index f8d50d0b4..23678b50a 100644 --- a/controller/stylecontroller.php +++ b/controller/stylecontroller.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Controller; diff --git a/css/font-awesome.css b/css/font-awesome.css index a0b879fa0..9b78663d7 100644 --- a/css/font-awesome.css +++ b/css/font-awesome.css @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + /*! * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) diff --git a/css/style.css b/css/style.css index 4fe32e3cd..bce0b9e86 100644 --- a/css/style.css +++ b/css/style.css @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + #searchbox { display: block !important; } diff --git a/db/acl.php b/db/acl.php index fe6dd59e8..6cbd83282 100644 --- a/db/acl.php +++ b/db/acl.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // db/author.php namespace OCA\Deck\Db; diff --git a/db/aclmapper.php b/db/aclmapper.php index e8e187028..bfb656c58 100644 --- a/db/aclmapper.php +++ b/db/aclmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/db/board.php b/db/board.php index a616818ad..309ca128d 100644 --- a/db/board.php +++ b/db/board.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // db/author.php namespace OCA\Deck\Db; diff --git a/db/boardmapper.php b/db/boardmapper.php index 472267dc7..f2d03f02a 100644 --- a/db/boardmapper.php +++ b/db/boardmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/db/card.php b/db/card.php index 45775fa44..9b0453740 100644 --- a/db/card.php +++ b/db/card.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // db/author.php namespace OCA\Deck\Db; diff --git a/db/cardmapper.php b/db/cardmapper.php index 8c1b77954..184e55c13 100644 --- a/db/cardmapper.php +++ b/db/cardmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/db/deckmapper.php b/db/deckmapper.php index d5f6d95b2..3f67bfc84 100644 --- a/db/deckmapper.php +++ b/db/deckmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/db/entity.php b/db/entity.php index 6255d4701..8463bdd53 100644 --- a/db/entity.php +++ b/db/entity.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + /** * Created by PhpStorm. * User: jus diff --git a/db/label.php b/db/label.php index f4bb9ed51..545300406 100644 --- a/db/label.php +++ b/db/label.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // db/author.php namespace OCA\Deck\Db; diff --git a/db/labelmapper.php b/db/labelmapper.php index a383c6857..cfbdd07c5 100644 --- a/db/labelmapper.php +++ b/db/labelmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/db/stack.php b/db/stack.php index 69e755bcf..139d5c112 100644 --- a/db/stack.php +++ b/db/stack.php @@ -1,4 +1,26 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // db/author.php namespace OCA\Deck\Db; diff --git a/db/stackmapper.php b/db/stackmapper.php index 52f052b59..ef3dd6f4a 100644 --- a/db/stackmapper.php +++ b/db/stackmapper.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Db; diff --git a/js/Gruntfile.js b/js/Gruntfile.js index 1869cce83..9f2a5964b 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -1,22 +1,23 @@ -/** - * ownCloud - Calendar App +/* + * @copyright Copyright (c) 2016 Julius Härtl * - * @author Raghu Nayyar - * @copyright 2014 Raghu Nayyar - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU AFFERO GENERAL PUBLIC LICENSE for more details. - * - * You should have received a copy of the GNU Affero General Public - * License along with this library. If not, see . + * @author Julius Härtl * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ diff --git a/js/app/App.js b/js/app/App.js index 8072d1c32..2e2ab6595 100644 --- a/js/app/App.js +++ b/js/app/App.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + angular.module('markdown', []) .provider('markdown', [function () { var opts = {}; diff --git a/js/app/Config.js b/js/app/Config.js index e8b28f9ca..820f2a254 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.config(function ($provide, $routeProvider, $interpolateProvider, $httpProvider, $urlRouterProvider, $stateProvider, $compileProvider, markdownProvider) { 'use strict'; $httpProvider.defaults.headers.common.requesttoken = oc_requesttoken; diff --git a/js/app/Run.js b/js/app/Run.js index a2109dd44..e76787b11 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.run(function ($document, $rootScope, $transitions) { 'use strict'; $document.click(function (event) { diff --git a/js/controller/AppController.js b/js/controller/AppController.js index a9d8e6012..555ed2014 100644 --- a/js/controller/AppController.js +++ b/js/controller/AppController.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.controller('AppController', function ($scope, $location, $http, $route, $log, $rootScope, $stateParams) { $rootScope.sidebar = { show: false diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index c42c7b29b..7fd3b8fcd 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.controller('BoardController', function ($rootScope, $scope, $stateParams, StatusService, BoardService, StackService, CardService, LabelService, $state, $transitions, $filter) { $scope.sidebar = $rootScope.sidebar; diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 1f492c6fd..fa40eddd3 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -1,5 +1,27 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.controller('CardController', function ($scope, $rootScope, $routeParams, $location, $stateParams, BoardService, CardService, StackService, StatusService) { $scope.sidebar = $rootScope.sidebar; $scope.status = {}; diff --git a/js/controller/ListController.js b/js/controller/ListController.js index 4075f97fa..016d499c1 100644 --- a/js/controller/ListController.js +++ b/js/controller/ListController.js @@ -1,4 +1,26 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.controller('ListController', function ($scope, $location, BoardService) { $scope.boards = null; $scope.newBoard = {}; diff --git a/js/directive/appnavigationentryutils.js b/js/directive/appnavigationentryutils.js index ffafc5636..c9c59ab86 100644 --- a/js/directive/appnavigationentryutils.js +++ b/js/directive/appnavigationentryutils.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // OwnCloud Click Handling // https://doc.owncloud.org/server/8.0/developer_manual/app/css.html app.directive('appNavigationEntryUtils', function () { diff --git a/js/directive/autofocusoninsert.js b/js/directive/autofocusoninsert.js index c3e26940d..5830c2922 100644 --- a/js/directive/autofocusoninsert.js +++ b/js/directive/autofocusoninsert.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.directive('autofocusOnInsert', function () { 'use strict'; return function (scope, elm) { diff --git a/js/directive/avatar.js b/js/directive/avatar.js index cd7c61b00..1236569e3 100644 --- a/js/directive/avatar.js +++ b/js/directive/avatar.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.directive('avatar', function() { 'use strict'; return { diff --git a/js/directive/cardActionUtils.js b/js/directive/cardActionUtils.js index d31432031..1145fc231 100644 --- a/js/directive/cardActionUtils.js +++ b/js/directive/cardActionUtils.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // OwnCloud Click Handling // https://doc.owncloud.org/server/8.0/developer_manual/app/css.html app.directive('cardActionUtils', function () { diff --git a/js/directive/elastic.js b/js/directive/elastic.js index b00d100c1..19f90cf92 100644 --- a/js/directive/elastic.js +++ b/js/directive/elastic.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // original idea from blockloop: http://stackoverflow.com/a/24090733 app.directive('elastic', [ '$timeout', diff --git a/js/directive/markdownChecklist.js b/js/directive/markdownChecklist.js index 4612b5a28..7441b824d 100644 --- a/js/directive/markdownChecklist.js +++ b/js/directive/markdownChecklist.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // OwnCloud Click Handling // https://doc.owncloud.org/server/8.0/developer_manual/app/css.html app.directive('markdownChecklist', function () { diff --git a/js/directive/search.js b/js/directive/search.js index e01efe609..46fef5f9f 100644 --- a/js/directive/search.js +++ b/js/directive/search.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.directive('search', function ($document, $location) { 'use strict'; diff --git a/js/filters/cardFilter.js b/js/filters/cardFilter.js index 4189ba37a..c0f1657fb 100644 --- a/js/filters/cardFilter.js +++ b/js/filters/cardFilter.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + // usage | cardFilter({ member: 'admin'}) app.filter('cardFilter', function() { diff --git a/js/filters/cardSearchFilter.js b/js/filters/cardSearchFilter.js index 4bf30d252..499e9c7f1 100644 --- a/js/filters/cardSearchFilter.js +++ b/js/filters/cardSearchFilter.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.filter('cardSearchFilter', function() { return function(cards, searchString) { var _result = {}; diff --git a/js/filters/lightenColorFilter.js b/js/filters/lightenColorFilter.js index b3a434cb0..3c5650770 100644 --- a/js/filters/lightenColorFilter.js +++ b/js/filters/lightenColorFilter.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.filter('lightenColorFilter', function() { return function (hex) { var result = /^([A-Fa-f\d]{2})([A-Fa-f\d]{2})([A-Fa-f\d]{2})$/i.exec(hex); diff --git a/js/filters/orderObjectBy.js b/js/filters/orderObjectBy.js index 1ea7cce82..0c9e77480 100644 --- a/js/filters/orderObjectBy.js +++ b/js/filters/orderObjectBy.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.filter('orderObjectBy', function(){ return function(input, attribute) { if (!angular.isObject(input)) return input; diff --git a/js/filters/textColorFilter.js b/js/filters/textColorFilter.js index 14712405b..9a370e038 100644 --- a/js/filters/textColorFilter.js +++ b/js/filters/textColorFilter.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.filter('textColorFilter', function() { return function (hex) { // RGB2HLS by Garry Tan diff --git a/js/gulpfile.js b/js/gulpfile.js index 9dece784b..9ce7a9911 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -1,11 +1,23 @@ -/** - * ownCloud - News +/* + * @copyright Copyright (c) 2016 Julius Härtl * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. + * @author Julius Härtl * - * @author Bernhard Posselt - * @copyright Bernhard Posselt 2012, 2014 + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ /*jslint node: true */ diff --git a/js/public/app.js b/js/public/app.js index da6ba0782..fef51bac2 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -1,4 +1,26 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + angular.module('markdown', []) .provider('markdown', [function () { var opts = {}; diff --git a/js/script.js b/js/script.js index 00d865216..b9f83e6f5 100644 --- a/js/script.js +++ b/js/script.js @@ -1,11 +1,23 @@ -/** - * ownCloud - deck - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. +/* + * @copyright Copyright (c) 2016 Julius Härtl * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ (function ($, OC) { diff --git a/js/service/ApiService.js b/js/service/ApiService.js index 466bfb655..64f4d844d 100644 --- a/js/service/ApiService.js +++ b/js/service/ApiService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('ApiService', function($http, $q){ var ApiService = function(http, endpoint) { this.endpoint = endpoint; diff --git a/js/service/BoardService.js b/js/service/BoardService.js index 41b3470a4..70600dce5 100644 --- a/js/service/BoardService.js +++ b/js/service/BoardService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('BoardService', function(ApiService, $http, $q){ var BoardService = function($http, ep, $q) { ApiService.call(this, $http, ep, $q); diff --git a/js/service/CardService.js b/js/service/CardService.js index c3d872a4d..c07c1deca 100644 --- a/js/service/CardService.js +++ b/js/service/CardService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('CardService', function(ApiService, $http, $q){ var CardService = function($http, ep, $q) { ApiService.call(this, $http, ep, $q); diff --git a/js/service/LabelService.js b/js/service/LabelService.js index 744cefcec..b3428a311 100644 --- a/js/service/LabelService.js +++ b/js/service/LabelService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('LabelService', function(ApiService, $http, $q){ var LabelService = function($http, ep, $q) { ApiService.call(this, $http, ep, $q); diff --git a/js/service/StackService.js b/js/service/StackService.js index a42cb946e..5338683d6 100644 --- a/js/service/StackService.js +++ b/js/service/StackService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('StackService', function(ApiService, $http, $q){ var StackService = function($http, ep, $q) { ApiService.call(this, $http, ep, $q); diff --git a/js/service/StatusService.js b/js/service/StatusService.js index 0f2135ca3..b4e218e6b 100644 --- a/js/service/StatusService.js +++ b/js/service/StatusService.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + app.factory('StatusService', function(){ // Status Helper var StatusService = function() { diff --git a/js/tests/unit/boardcontrollerspec.js b/js/tests/unit/boardcontrollerspec.js index 8c8ccf110..816bad252 100644 --- a/js/tests/unit/boardcontrollerspec.js +++ b/js/tests/unit/boardcontrollerspec.js @@ -1,3 +1,25 @@ +/* + * @copyright Copyright (c) 2016 Julius Härtl + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + describe('BoardController', function() { 'use strict'; diff --git a/lib/Middleware/SharingMiddleware.php b/lib/Middleware/SharingMiddleware.php index cbe58e353..50992c47a 100644 --- a/lib/Middleware/SharingMiddleware.php +++ b/lib/Middleware/SharingMiddleware.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Middleware; diff --git a/service/boardservice.php b/service/boardservice.php index f45a8c83c..ed12af2a8 100644 --- a/service/boardservice.php +++ b/service/boardservice.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/service/cardarchivedexception.php b/service/cardarchivedexception.php index d0d47cceb..0a5ce8ffe 100644 --- a/service/cardarchivedexception.php +++ b/service/cardarchivedexception.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/service/cardservice.php b/service/cardservice.php index b4d449853..680262b45 100644 --- a/service/cardservice.php +++ b/service/cardservice.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/service/labelservice.php b/service/labelservice.php index b24f2cb9a..59ffe2c56 100644 --- a/service/labelservice.php +++ b/service/labelservice.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/service/servicepermissionexception.php b/service/servicepermissionexception.php index 9518d2733..eb28a6ec8 100644 --- a/service/servicepermissionexception.php +++ b/service/servicepermissionexception.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/service/stackservice.php b/service/stackservice.php index b65a40fa3..c9f05e601 100644 --- a/service/stackservice.php +++ b/service/stackservice.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ namespace OCA\Deck\Service; diff --git a/templates/main.php b/templates/main.php index 9696c33b1..c4988b363 100644 --- a/templates/main.php +++ b/templates/main.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ use OCP\Util; diff --git a/templates/public.php b/templates/public.php index 9ed77ff2e..e9a68ae7e 100644 --- a/templates/public.php +++ b/templates/public.php @@ -1,4 +1,25 @@ + * + * @author Julius Härtl + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ use OCP\Util; Util::addStyle('deck', 'font-awesome'); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index d3ba4e3b6..5501154e3 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ require_once __DIR__ . '/../../../tests/bootstrap.php'; diff --git a/tests/integration/AppTest.php b/tests/integration/AppTest.php index 4086652e0..1060edf88 100644 --- a/tests/integration/AppTest.php +++ b/tests/integration/AppTest.php @@ -1,12 +1,24 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ use OCP\AppFramework\App; diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index afcca8624..7ea6ac23c 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -1,47 +1,56 @@ * * @author Julius Härtl - * @copyright Julius Härtl 2016 + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * */ namespace OCA\Deck\Controller; use PHPUnit_Framework_TestCase; -use OCP\AppFramework\Http\TemplateResponse; - - -class PageControllerTest extends PHPUnit_Framework_TestCase { +class PageControllerTest extends \PHPUnit_Framework_TestCase { private $controller; + private $request; + private $l10n; private $userId = 'john'; public function setUp() { - $request = $this->getMockBuilder('OCP\IRequest')->getMock(); + $this->l10n = $this->request = $this->getMockBuilder( + '\OCP\IL10n') + ->disableOriginalConstructor() + ->getMock(); + $this->request = $this->getMockBuilder( + '\OCP\IRequest') + ->disableOriginalConstructor() + ->getMock(); $this->controller = new PageController( - 'deck', $request, $this->userId + 'deck', $this->request, $this->l10n, $this->userId ); } public function testIndex() { - $result = $this->controller->index(); - - $this->assertEquals(['user' => 'john'], $result->getParams()); - $this->assertEquals('main', $result->getTemplateName()); - $this->assertTrue($result instanceof TemplateResponse); - } - - - public function testEcho() { - $result = $this->controller->doEcho('hi'); - $this->assertEquals(['echo' => 'hi'], $result->getData()); + $response = $this->controller->index(); + $this->assertEquals('main', $response->getTemplateName()); }