Skip to content

Commit

Permalink
Get rid off bootstrap-markdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
gshakhn committed Apr 15, 2016
1 parent 585d2ab commit 5626169
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
6 changes: 2 additions & 4 deletions build.sbt
Expand Up @@ -43,8 +43,7 @@ val client = project.dependsOn(sharedJS)
"org.webjars" % "bootstrap" % bootstrapVersion / "bootstrap.js" dependsOn s"$jQueryVersion/jquery.js",
"org.webjars.bower" % "react" % reactVersion / "react-with-addons.js" commonJSName "React",
"org.webjars.bower" % "react" % reactVersion / "react-dom.js" dependsOn "react-with-addons.js" commonJSName "ReactDOM",
"org.webjars.bower" % "react" % reactVersion / "react-dom-server.js" dependsOn "react-dom.js" commonJSName "ReactDOMServer",
"org.webjars.npm" % "bootstrap-markdown" % "2.9.0" / "bootstrap-markdown.js"
"org.webjars.bower" % "react" % reactVersion / "react-dom-server.js" dependsOn "react-dom.js" commonJSName "ReactDOMServer"
),
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % scalajsReactVersion,
Expand All @@ -66,8 +65,7 @@ val server = project.dependsOn(sharedJVM)
"com.lihaoyi" %% "upickle" % upickleVersion,
"com.lihaoyi" %% "scalatags" % scalatagsVersion,
"com.typesafe.akka" %% "akka-actor" % "2.3.6",
"org.webjars" % "bootstrap" % bootstrapVersion,
"org.webjars.npm" % "bootstrap-markdown" % "2.9.0"),
"org.webjars" % "bootstrap" % bootstrapVersion),
managedResources in Compile <<= (managedResources in Compile).dependsOn(fastOptJS in (client, Compile)),
// add in fast opts JS
managedResources in Compile += (artifactPath in (client, Compile, fastOptJS)).value,
Expand Down
Expand Up @@ -25,9 +25,6 @@ object PaperDisplay {

private[this] val component = ReactComponentB[Props]("PaperList")
.renderBackend[Backend]
.componentDidMount(scope => Callback {
js.Dynamic.global.jQuery(scope.getDOMNode()).find(".foobar").markdown()
})
.build

def apply(paper: Paper): ReactComponentU[Props, Unit, Backend, TopNode] = {
Expand Down
Expand Up @@ -43,11 +43,6 @@ object Template {
rel := "stylesheet",
`type` := "text/css",
href := "META-INF/resources/webjars/bootstrap/3.3.6/css/bootstrap.css"
),
link(
rel := "stylesheet",
`type` := "text/css",
href := "META-INF/resources/webjars/bootstrap-markdown/2.9.0/css/bootstrap-markdown.min.css"
)
),
body(margin := 0, onload := "PrivateWikiRenderer().render()")
Expand Down

0 comments on commit 5626169

Please sign in to comment.