Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed authentication and core module separation
* done for simplification. Previous approach could be confusing for newcomers
- Loading branch information
Dasiu
committed
Jul 14, 2018
1 parent
3c51724
commit 5ba3622
Showing
131 changed files
with
320 additions
and
320 deletions.
There are no files selected for viewing
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
16 changes: 8 additions & 8 deletions
16
app/core/articles/ArticleComponents.scala → app/articles/ArticleComponents.scala
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
12 changes: 6 additions & 6 deletions
12
...icles/controllers/ArticleController.scala → ...icles/controllers/ArticleController.scala
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
12 changes: 6 additions & 6 deletions
12
...icles/controllers/CommentController.scala → ...icles/controllers/CommentController.scala
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
8 changes: 4 additions & 4 deletions
8
.../articles/controllers/TagController.scala → app/articles/controllers/TagController.scala
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
4 changes: 2 additions & 2 deletions
4
.../exceptions/AuthorMismatchException.scala → .../exceptions/AuthorMismatchException.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package core.articles.exceptions | ||
package articles.exceptions | ||
|
||
import commons.models.BaseId | ||
import core.users.models.UserId | ||
import users.models.UserId | ||
|
||
class AuthorMismatchException(notAuthorId: UserId, modelId: BaseId[_]) | ||
extends RuntimeException(s"user $notAuthorId is not author of $modelId") |
4 changes: 2 additions & 2 deletions
4
app/core/articles/models/Article.scala → app/articles/models/Article.scala
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
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/ArticlePage.scala → app/articles/models/ArticlePage.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ticles/models/ArticleTagAssociation.scala → ...ticles/models/ArticleTagAssociation.scala
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
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/ArticleUpdate.scala → app/articles/models/ArticleUpdate.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...rticles/models/ArticleUpdateWrapper.scala → ...rticles/models/ArticleUpdateWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...ore/articles/models/ArticleWithTags.scala → app/articles/models/ArticleWithTags.scala
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
2 changes: 1 addition & 1 deletion
2
...core/articles/models/ArticleWrapper.scala → app/articles/models/ArticleWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
app/core/articles/models/Comment.scala → app/articles/models/Comment.scala
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
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/CommentList.scala → app/articles/models/CommentList.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...e/articles/models/CommentWithAuthor.scala → app/articles/models/CommentWithAuthor.scala
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
2 changes: 1 addition & 1 deletion
2
...core/articles/models/CommentWrapper.scala → app/articles/models/CommentWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...articles/models/FavoriteAssociation.scala → ...articles/models/FavoriteAssociation.scala
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
2 changes: 1 addition & 1 deletion
2
...articles/models/MainFeedPageRequest.scala → ...articles/models/MainFeedPageRequest.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import commons.models.{Ordering, Username} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
app/core/articles/models/NewArticle.scala → app/articles/models/NewArticle.scala
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
2 changes: 1 addition & 1 deletion
2
...e/articles/models/NewArticleWrapper.scala → app/articles/models/NewArticleWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/NewComment.scala → app/articles/models/NewComment.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json._ | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...e/articles/models/NewCommentWrapper.scala → app/articles/models/NewCommentWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json._ | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/NewTag.scala → app/articles/models/NewTag.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
case class NewTag(name: String) { | ||
def toTag: Tag = { | ||
|
2 changes: 1 addition & 1 deletion
2
app/core/articles/models/Tag.scala → app/articles/models/Tag.scala
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
2 changes: 1 addition & 1 deletion
2
...core/articles/models/TagListWrapper.scala → app/articles/models/TagListWrapper.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import play.api.libs.json.{Format, Json} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...articles/models/UserFeedPageRequest.scala → ...articles/models/UserFeedPageRequest.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package core.articles.models | ||
package articles.models | ||
|
||
import commons.models.Ordering | ||
|
||
|
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
6 changes: 3 additions & 3 deletions
6
...ositories/ArticleTagAssociationRepo.scala → ...ositories/ArticleTagAssociationRepo.scala
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
8 changes: 4 additions & 4 deletions
8
...es/repositories/ArticleWithTagsRepo.scala → ...es/repositories/ArticleWithTagsRepo.scala
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
8 changes: 4 additions & 4 deletions
8
...e/articles/repositories/CommentRepo.scala → app/articles/repositories/CommentRepo.scala
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
8 changes: 4 additions & 4 deletions
8
.../repositories/CommentWithAuthorRepo.scala → .../repositories/CommentWithAuthorRepo.scala
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
6 changes: 3 additions & 3 deletions
6
...epositories/FavoriteAssociationRepo.scala → ...epositories/FavoriteAssociationRepo.scala
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
4 changes: 2 additions & 2 deletions
4
app/core/articles/repositories/TagRepo.scala → app/articles/repositories/TagRepo.scala
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
8 changes: 4 additions & 4 deletions
8
...services/ArticleCreateUpdateService.scala → ...services/ArticleCreateUpdateService.scala
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
10 changes: 5 additions & 5 deletions
10
...icles/services/ArticleDeleteService.scala → ...icles/services/ArticleDeleteService.scala
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
Oops, something went wrong.