Skip to content

Commit

Permalink
Fix pimpcloud jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
malliina committed Sep 17, 2023
1 parent 1696be4 commit 1f372a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ val musicpimp = project

val pimpcloudFrontend = scalajsProject("pimpcloud-frontend", file("pimpcloud") / "frontend")
.dependsOn(crossJs)
.settings(
Compile / npmDependencies ++= Seq("jquery" -> "3.3.1")
)
val pimpcloud = project
.in(file("pimpcloud"))
.enablePlugins(
Expand Down
1 change: 0 additions & 1 deletion pimpcloud/app/controllers/pimpcloud/auths.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class AdminOAuth(val actions: ActionBuilder[Request, AnyContent], creds: GoogleO
val lastId = req.cookies.get(handler.lastIdKey).map(_.value)
val described = lastId.fold("without login hint")(h => s"with login hint '$h'")
log.info(s"Starting OAuth flow $described.")
val redirUrl = FullUrls(oauthConf.redirCall, req)
validator
.start(req, lastId.map(id => Map(LoginHint -> id)).getOrElse(Map.empty))
.unsafeToFuture()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.malliina.pimpcloud.js

import org.musicpimp.js.ScriptHelpers
import org.scalajs.dom
import org.scalajs.jquery.JQueryStatic

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

object Frontend {
object Frontend extends ScriptHelpers {
var app: Option[SocketJS] = None
private val jq = MyJQuery
private val jqui = MyJQueryUI
Expand Down

0 comments on commit 1f372a4

Please sign in to comment.