Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jaz #6

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e51056a
basic pages
jgarciatejeda Apr 11, 2022
264bf56
Login -> Faculty Login -> Faculty Profile
LarryGreen-alt Apr 13, 2022
0426d19
Merge pull request #1 from EmeryBoettcher/Larry_Branch
EmeryBoettcher Apr 14, 2022
2c6d7c0
Profile (Faculty)
LarryGreen-alt Apr 14, 2022
6399dac
Login (Faculty)
LarryGreen-alt Apr 14, 2022
5719d71
Faculty Page
LarryGreen-alt Apr 14, 2022
75ea8da
added route for ratings page
jdean2-trinity Apr 18, 2022
7733af6
Switched rating system from GET to POST
jdean2-trinity Apr 20, 2022
fb1041b
added untracked files
jdean2-trinity Apr 20, 2022
9af89d3
added average rating
jdean2-trinity Apr 20, 2022
bc0d4e5
Merge pull request #2 from EmeryBoettcher/Jacob_Branch
jdean2-trinity Apr 20, 2022
21f00b1
student/faculty pages
jgarciatejeda Apr 20, 2022
ea13f9e
Merge pull request #3 from EmeryBoettcher/Jessica_Branch
jgarciatejeda Apr 20, 2022
ffc1b92
Student & Faculty Login + Page
jgarciatejeda Apr 21, 2022
3e2bd43
Merge branch 'master' into Jessica_Branch
jgarciatejeda Apr 21, 2022
1a7bb4c
Merge pull request #4 from EmeryBoettcher/Jessica_Branch
jgarciatejeda Apr 21, 2022
8368e3f
started implementing database
EmeryBoettcher Apr 21, 2022
de808ef
Merge branch 'master' into Emery_Branch2
EmeryBoettcher Apr 21, 2022
1ca80f9
Merge pull request #5 from EmeryBoettcher/Emery_Branch2
EmeryBoettcher Apr 21, 2022
7811385
reworking things for db
EmeryBoettcher Apr 24, 2022
ca80144
adding skeleton functions for db
EmeryBoettcher Apr 24, 2022
eb19cda
set up tables in Slick and started methods on them
EmeryBoettcher Apr 26, 2022
c647597
got createUser working with database
EmeryBoettcher Apr 29, 2022
c1d0354
got validateStudent working with database
EmeryBoettcher Apr 30, 2022
f664610
new branch
jdean01 May 2, 2022
6fd0c31
Added course List
jdean01 May 2, 2022
c2f892c
database in progress
EmeryBoettcher May 3, 2022
baf67e2
initial database implementation finished
EmeryBoettcher May 4, 2022
e180146
Merge pull request #6 from EmeryBoettcher/Emery_Branch
EmeryBoettcher May 4, 2022
832119e
Merge branch 'master' into Jacob_Branch2
jdean2-trinity May 4, 2022
6368181
Merge pull request #7 from EmeryBoettcher/Jacob_Branch2
jdean2-trinity May 4, 2022
d1e2d03
Update routes
jdean2-trinity May 4, 2022
ad805a4
Update ratingTest.scala.html
jdean2-trinity May 4, 2022
31e3569
Designed Faculty Page
LarryGreen-alt May 4, 2022
408409e
Designed Home Page
LarryGreen-alt May 4, 2022
f663675
Designed Student Login Page
LarryGreen-alt May 4, 2022
2baed77
Designed Student Page
LarryGreen-alt May 4, 2022
2006ad7
Designed Faculty Page
LarryGreen-alt May 4, 2022
d14f6fd
added redirects on Student profile
jdean01 May 5, 2022
95ff877
Added redirects and updated courses page
jdean01 May 5, 2022
250e5b2
Update application.conf
jdean2-trinity May 5, 2022
4f6c36e
Setting for deployment
jgarciatejeda May 5, 2022
9c85f98
Merge pull request #8 from EmeryBoettcher/Jessica_Branch2
jgarciatejeda May 5, 2022
21c702b
Update README.md
EmeryBoettcher May 9, 2022
cd08139
login css complete
May 13, 2022
9c5db38
login complete
May 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Play-Scalajs for video series

This repository has the code for my video series using Play
and Scala.js.
To run the project you need to have Java and Scala installed.

Run the project by typing "sbt" into the terminal and then once the server starts type "run" and the project will run on localhost:9000.
12 changes: 6 additions & 6 deletions client/src/main/scala/playscala/LoginComponent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import slinky.core.facade.ReactElement
import slinky.web.html._
import org.scalajs.dom.document
import org.scalajs.dom.html
import models.UserData
import models.StudentData
import models.ReadsAndWrites._

@react class LoginComponent extends Component {
case class Props(doLogin: () => Unit)
case class State(loginName: String, loginPass: String,
createName: String, createPass: String,
case class State(loginName:String, loginUsername: String, loginPass: String,
createName: String, createUsername: String, createPass: String,
loginMessage: String, createMessage:String)

def initialState: State = State("", "", "", "", "", "")
def initialState: State = State("", "", "", "", "", "", "", "")

implicit val ec = scala.concurrent.ExecutionContext.global

Expand Down Expand Up @@ -52,7 +52,7 @@ import models.ReadsAndWrites._
)

def login(): Unit = {
FetchJson.fetchPost(validateRoute, csrfToken, UserData(state.loginName, state.loginPass), (bool: Boolean) => {
FetchJson.fetchPost(validateRoute, csrfToken, StudentData(state.loginName, state.loginUsername, state.loginPass), (bool: Boolean) => {
if(bool) {
props.doLogin()
} else {
Expand All @@ -64,7 +64,7 @@ import models.ReadsAndWrites._
}

def createUser(): Unit = {
FetchJson.fetchPost(createRoute, csrfToken, UserData(state.createName, state.createPass), (bool: Boolean) => {
FetchJson.fetchPost(createRoute, csrfToken, StudentData(state.createName, state.createUsername, state.createPass), (bool: Boolean) => {
if(bool) {
props.doLogin()
} else {
Expand Down
18 changes: 9 additions & 9 deletions client/src/main/scala/playscala/ScalaJSExample.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ object ScalaJSExample {
dom.document.getElementById("scalajsShoutOut").textContent = SharedMessages.itWorks
}

if (dom.document.getElementById("version6") != null) {
Version6.init()
}
// if (dom.document.getElementById("version6") != null) {
// Version6.init()
// }

if (dom.document.getElementById("version7") != null) {
ReactDOM.render(
Version7MainComponent(),
dom.document.getElementById("react-root")
)
}
// if (dom.document.getElementById("version7") != null) {
// ReactDOM.render(
// Version7MainComponent(),
// dom.document.getElementById("react-root")
// )
// }
}
}
85 changes: 0 additions & 85 deletions client/src/main/scala/playscala/TaskListComponent.scala

This file was deleted.

136 changes: 0 additions & 136 deletions client/src/main/scala/playscala/Version6.scala

This file was deleted.

21 changes: 0 additions & 21 deletions client/src/main/scala/playscala/Version7MainComponent.scala

This file was deleted.

Loading