Permalink
Browse files

Moving Google-Code-Prettify to sub module.

  • Loading branch information...
karma4u101 committed Mar 29, 2013
1 parent 6d23123 commit 5fd226ea0c59358d932c0e93579c93832bd5819c
Showing with 2,395 additions and 88 deletions.
  1. +4 −0 Google-Code-Prettify/.gitignore
  2. +2 −0 Google-Code-Prettify/LICENSE.txt
  3. +106 −0 Google-Code-Prettify/README.md
  4. +144 −0 Google-Code-Prettify/build.sbt
  5. +6 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/css/foundation-ie.css
  6. +1,119 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/css/foundation.css
  7. +241 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/css/orbit.css
  8. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/button-gloss.png
  9. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/button-overlay.png
  10. BIN ...e-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/custom-form-sprites.png
  11. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/input-bg-outset.png
  12. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/input-bg.png
  13. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/modal-gloss.png
  14. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/misc/table-sorter.png
  15. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/bullets.jpg
  16. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/left-arrow-smal.png
  17. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/left-arrow.png
  18. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/loading.gif
  19. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/mask-black.png
  20. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/pause-black.png
  21. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/right-arrow-smal.png
  22. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/right-arrow.png
  23. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/rotator-black.png
  24. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/spinner.gif
  25. BIN Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/img/orbit/timer-black.png
  26. +12 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/js/foundation.js
  27. +607 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/js/jquery.orbit.js
  28. +4 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/2.1.5/js/modernizr.foundation.js
  29. +2 −0 Google-Code-Prettify/src/main/resources/toserve/fobo/foundation/LICENSE.txt
  30. +124 −0 Google-Code-Prettify/src/main/scala/net/liftmodules/FoBoGCP/FoBoGCP.scala
  31. +12 −11 build.sbt
  32. +11 −8 project/LiftModuleBuild.scala
  33. +1 −69 src/main/scala/net/liftmodules/FoBo/FoBo.scala
@@ -0,0 +1,4 @@
+/.settings
+/.classpath
+/.project
+/target
@@ -0,0 +1,2 @@
+ZURB's Foundation Framework (MIT Open License)
+See https://github.com/drewsymo/Foundation
@@ -0,0 +1,106 @@
+FoBo-Google-Code-Prettify
+=========================
+
+This sub module provides Google-Code-Prettify to the Fobo Module, but can also be used as-is (see below for setup information).
+For more information on how to use Google-Code-Prettify in the FoBo module see the [FoBo - Lift Front-End Toolkit Module](https://github.com/karma4u101/FoBo).
+
+Contributions
+------
+Improvements, contributions and suggestions are welcome! Please see the [Contribution Document](https://github.com/karma4u101/FoBo/blob/master/CONTRIBUTING.md). You can also leave a issue report or drop a question/suggestion to my priv. e-mail or on [Lift's mailing list](http://groups.google.com/group/liftweb/)
+
+best regards
+Peter Petersson
+
+Update log
+----------
+
+For update history see the [History log](https://github.com/karma4u101/FoBo/tree/master/Foundation#history-log) section
+
+**Latest Module Version:**
+- **2013-03-29** -- 0.1.0-SNAPSHOT
+
+**Latest Update:**
+- **2013-03-29** -- 0.1.0-SNAPSHOT Making Google-Code-Prettify a FoBo subproject.
+
+**Latest Stable Releases:**
+- None
+
+**Latest Snapshot Release:**
+-
+
+
+Integration into your project
+-------------------------------
+
+This module is used by the FoBo module to, via [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md) provide [Google-Code-Prettify](http://code.google.com/p/google-code-prettify/).
+
+However the FoBo-Google-Code-Prettify module can be used separatly the only difference from using it from within the FoBo meta module is the usage of a slightly different package object name in Lift boot.
+
+The following describes how to set up the module in your project **as a separate module** (without using the [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md) meta module). For setup in FoBo see the FoBo documentation.
+
+For more information on how to use Google-Code-Prettify see the [FoBo Demo](http://www.media4u101.se/fobo-lift-template-demo/) and [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md).
+
+
+### Dependancy
+
+For module versions >= 0.9.3 put the following in your project build.sbt files lift libraryDependencies section
+
+ "net.liftmodules" %% "moduleName_x1.y1 % "x2.y2[.z2][-SNAPSHOT/rcx/mx]"
+
+or if you are using Maven
+
+ <dependency>
+ <groupId>net.liftmodules</groupId>
+ <artifactId>moduleName_x1.y1_a.b.c</artifactId>
+ <version>x2.y2[.z2][-SNAPSHOT/rcx/mx]</version>
+ </dependency>
+
+Where x1.y1 is Lift major and minor version numbers and a.b.c is Scala
+version number and x2.y2.[z2] is the module's major x2, minor y2 and
+eventual incremental numbers z2 followed by a eventual SNAPSHOT
+release candidate (rcX) or milestone (mX) version part.
+
+For example:
+
+ "net.liftmodules" %% "fobo-google-code-prettify_2.5 % "0.1.0-SNAPSHOT"
+ :
+ <dependency>
+ <groupId>net.liftmodules</groupId>
+ <artifactId>fobo-google-code-prettify_2.5_2.9.2</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </dependency>
+
+The example will include a module built for lift 2.5. If you are using maven observe that the artifact id also needs the Scala version.
+
+### Lift FoBo boot hooks
+
+ import net.liftmodules.FoBoGCP
+ :
+ FoBoGCP.InitParam.ToolKit=FoBoGCP.PrettifyMMYYYY //for example FoBoGCP.PrettifyJun2011
+ FoBoGCP.init()
+ (usage with FoBo is FoBo.InitParam.ToolKit=FoBo.PrettifyMMYYYY)
+
+### Lift FoBo Template hooks
+
+ <link rel="stylesheet" type="text/css" href="/classpath/fobo/prettify.css">
+
+ <script src="/classpath/fobo/prettify.js" type="text/javascript"></script>
+ //for example scala code style
+ <script src="/classpath/fobo/lang-scala.js" type="text/javascript"></script>
+
+For more information on how to use Knockout see [Google-Code-Prettify](http://code.google.com/p/google-code-prettify/)
+
+
+### History log
+----------------
+
+**Module Version history:**
+-
+
+**Updates history:**
+-
+
+**Snapshot Release history:**
+-
+
+
@@ -0,0 +1,144 @@
+name := "FoBo-Google-Code-Prettify"
+
+organization := "net.liftmodules"
+
+version := "0.1.0-SNAPSHOT"
+
+name <<= (name, liftVName) { (n, v) => n + "_" + v }
+
+crossScalaVersions := Seq("2.10.0", "2.9.2", "2.9.1-1", "2.9.1")
+
+logLevel := Level.Info //Level.Info.Debug
+
+scalacOptions ++= Seq("-deprecation")
+
+EclipseKeys.withSource := true
+
+
+resolvers ++= Seq(
+ "Scala Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
+ "Scala" at "https://oss.sonatype.org/content/groups/scala-tools/"
+)
+
+libraryDependencies <++= liftVersion { v =>
+ "net.liftweb" %% "lift-webkit" % v % "provided" ::
+ "net.liftweb" %% "lift-testkit" % v % "provided" ::
+ Nil
+}
+
+libraryDependencies <++= scalaVersion { sv =>
+ "ch.qos.logback" % "logback-classic" % "1.0.0" % "provided" ::
+ "log4j" % "log4j" % "1.2.16" % "provided" ::
+ (sv match {
+ case "2.10.0" | "2.9.2" | "2.9.1" | "2.9.1-1" => "org.specs2" %% "specs2" % "1.12.3" % "test"
+ case _ => "org.specs2" %% "specs2" % "1.12.3" % "test"
+ }) ::
+ (sv match {
+ case "2.10.0" | "2.9.2" => "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
+ case _ => "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
+ }) ::
+ Nil
+}
+
+
+//############################################################
+//#### THE BUILDINFO BUILD
+//## https://github.com/sbt/sbt-buildinfo
+//##
+//##
+//#############################################################
+
+//seq(buildInfoSettings: _*)
+
+//sourceGenerators in Compile <+= buildInfo
+
+//buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
+
+//buildInfoPackage := "net.liftmodules.FoBo.lib"
+
+
+//#########################################################################
+//#### THE LESS BUILD
+//##
+//## To simplify, the less build has been moved to the FoBo-Less project.
+//## Bootstrap css files, slightly modified to work in the FoBo environment,
+//## is built in the FoBo-Less project and then copied (already present) to
+//## there corresponding src/resources directories.
+//##
+//#########################################################################
+
+//Take a look att FoBo-Less and read the above.
+
+//################################################################
+//#### THE YUI COMPRESSION BUILD
+//## The yui js compression stuff dose currently not work so
+//## for now the last filter string in exludeFilter for js
+//## will exclude every .js file
+//################################################################
+seq(yuiSettings: _*)
+
+excludeFilter in (Compile, YuiCompressorKeys.jsResources) := "*-debug.js" | "*-min.js" | "*.js"
+
+excludeFilter in (Compile, YuiCompressorKeys.cssResources) := "*-debug.css" | "*-min.css"
+
+YuiCompressorKeys.minSuffix := "-min"
+
+//################################################################
+//#### Publish to Media4u101
+//##
+//##
+//##
+//################################################################
+credentials += Credentials(Path.userHome / ".sbt" / "liftmodules" /".credentials" )
+
+credentials += Credentials( file("/private/liftmodules/sonatype.credentials") )
+
+//credentials += Credentials(Path.userHome / ".sbt" / ".credentials" )
+//publishTo <<= version { v: String =>
+// val nexus = "http://www.media4u101.se:8081/nexus/"
+// if (v.trim.endsWith("SNAPSHOT"))
+// Some("snapshots" at nexus + "content/repositories/snapshots")
+// else
+// Some("releases" at nexus + "content/repositories/releases")
+// }
+
+publishTo <<= version { v: String =>
+ val sonatype = "https://oss.sonatype.org/"
+ if (v.trim.endsWith("SNAPSHOT"))
+ Some("snapshots" at sonatype + "content/repositories/snapshots")
+ else
+ Some("releases" at sonatype + "service/local/staging/deploy/maven2")
+ }
+
+publishMavenStyle := true
+
+publishArtifact in Test := false
+
+pomIncludeRepository := { x => false }
+
+pomExtra := (
+ <url>http://www.media4u101.se/fobo-lift-template-demo/</url>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://maven.apache.org/ref/2.1.0/maven-profile/license.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>git@github.com:karma4u101/FoBo.git</url>
+ <connection>scm:git:git@github.com:karma4u101/FoBo.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>karma4u101</id>
+ <name>Peter Petersson</name>
+ <url>http://www.media4u101.se</url>
+ </developer>
+ </developers>
+)
+
+
+
+
+
@@ -0,0 +1,6 @@
+/* Foundation v2.1.5 http://foundation.zurb.com */
+/* This is for all IE specfific style less than IE9. We hate IE. */
+
+ div.panel { border: 1px solid #ccc; }
+ .lt-ie8 .nav-bar li.has-flyout a { padding-right: 20px; }
+ .lt-ie8 .nav-bar li.has-flyout a:after { border-top: none; }
Oops, something went wrong.

0 comments on commit 5fd226e

Please sign in to comment.