Permalink
Browse files

* Deleted the xhtml folder, We want new users to use HTML5 and CSS bi…

…nding
  • Loading branch information...
fmpwizard committed Jul 9, 2012
1 parent 2569be1 commit e5569088f41bab7d992780ca2eeb6a507e8b6f60
Showing with 0 additions and 646 deletions.
  1. +0 −9 scala_29/lift_xhtml/project/build.properties
  2. +0 −26 scala_29/lift_xhtml/project/build/LiftProject.scala
  3. +0 −1 scala_29/lift_xhtml/sbt
  4. BIN scala_29/lift_xhtml/sbt-launcher.jar
  5. +0 −2 scala_29/lift_xhtml/sbt.bat
  6. 0 scala_29/lift_xhtml/src/main/resources/.keep
  7. 0 scala_29/lift_xhtml/src/main/resources/props/default.props
  8. +0 −77 scala_29/lift_xhtml/src/main/scala/bootstrap/liftweb/Boot.scala
  9. 0 scala_29/lift_xhtml/src/main/scala/code/comet/.keep
  10. +0 −55 scala_29/lift_xhtml/src/main/scala/code/lib/DependencyFactory.scala
  11. +0 −35 scala_29/lift_xhtml/src/main/scala/code/model/User.scala
  12. +0 −23 scala_29/lift_xhtml/src/main/scala/code/snippet/HelloWorld.scala
  13. 0 scala_29/lift_xhtml/src/main/scala/code/view/.keep
  14. +0 −21 scala_29/lift_xhtml/src/main/webapp/WEB-INF/web.xml
  15. BIN scala_29/lift_xhtml/src/main/webapp/images/ajax-loader.gif
  16. +0 −18 scala_29/lift_xhtml/src/main/webapp/index.html
  17. +0 −5 scala_29/lift_xhtml/src/main/webapp/static/index.html
  18. +0 −85 scala_29/lift_xhtml/src/main/webapp/templates-hidden/default.html
  19. +0 −57 scala_29/lift_xhtml/src/main/webapp/templates-hidden/wizard-all.html
  20. 0 scala_29/lift_xhtml/src/test/resources/.keep
  21. +0 −15 scala_29/lift_xhtml/src/test/scala/LiftConsole.scala
  22. +0 −33 scala_29/lift_xhtml/src/test/scala/RunWebApp.scala
  23. +0 −76 scala_29/lift_xhtml/src/test/scala/code/AppTest.scala
  24. +0 −64 scala_29/lift_xhtml/src/test/scala/code/XmlSourceSpecs.scala
  25. +0 −44 scala_29/lift_xhtml/src/test/scala/code/snippet/HelloWorldTest.scala
@@ -1,9 +0,0 @@
-#Project properties
-project.organization=Lift
-project.name=Lift SBT Template
-sbt.version=0.7.7
-project.version=0.1
-def.scala.version=2.7.7
-build.scala.versions=2.9.0-1
-project.initialize=false
-lift.version=2.4
@@ -1,26 +0,0 @@
-import sbt._
-
-class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
- val liftVersion = property[Version]
-
- // uncomment the following if you want to use the snapshot repo
- // val scalatoolsSnapshot = ScalaToolsSnapshots
-
- // If you're using JRebel for Lift development, uncomment
- // this line
- // override def scanDirectories = Nil
-
- lazy val JavaNet = "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
-
- val SonatypeRep = "Sonatype scala-tools repo" at "https://oss.sonatype.org/content/groups/scala-tools/"
-
- override def libraryDependencies = Set(
- "net.liftweb" %% "lift-webkit" % liftVersion.value.toString % "compile",
- "net.liftweb" %% "lift-mapper" % liftVersion.value.toString % "compile",
- "org.mortbay.jetty" % "jetty" % "6.1.26" % "test",
- "junit" % "junit" % "4.7" % "test",
- "ch.qos.logback" % "logback-classic" % "0.9.26",
- "org.scala-tools.testing" %% "specs" % "1.6.8" % "test",
- "com.h2database" % "h2" % "1.2.147"
- ) ++ super.libraryDependencies
-}
View
@@ -1 +0,0 @@
-java -Xmx1024M -Xss2M -XX:+CMSClassUnloadingEnabled -jar `dirname $0`/sbt-launcher.jar "$@"
Binary file not shown.
@@ -1,2 +0,0 @@
-set SCRIPT_DIR=%~dp0
-java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx1024M -Xss2M -jar "%SCRIPT_DIR%\sbt-launcher.jar" %*
@@ -1,77 +0,0 @@
-package bootstrap.liftweb
-
-import net.liftweb._
-import util._
-import Helpers._
-
-import common._
-import http._
-import sitemap._
-import Loc._
-import mapper._
-
-import code.model._
-
-
-/**
- * A class that's instantiated early and run. It allows the application
- * to modify lift's environment
- */
-class Boot {
- def boot {
- if (!DB.jndiJdbcConnAvailable_?) {
- val vendor =
- new StandardDBVendor(Props.get("db.driver") openOr "org.h2.Driver",
- Props.get("db.url") openOr
- "jdbc:h2:lift_proto.db;AUTO_SERVER=TRUE",
- Props.get("db.user"), Props.get("db.password"))
-
- LiftRules.unloadHooks.append(vendor.closeAllConnections_! _)
-
- DB.defineConnectionManager(DefaultConnectionIdentifier, vendor)
- }
-
- // Use Lift's Mapper ORM to populate the database
- // you don't need to use Mapper to use Lift... use
- // any ORM you want
- Schemifier.schemify(true, Schemifier.infoF _, User)
-
- // where to search snippet
- LiftRules.addToPackages("code")
-
- // Build SiteMap
- def sitemap = SiteMap(
- Menu.i("Home") / "index" >> User.AddUserMenusAfter, // the simple way to declare a menu
-
- // more complex because this menu allows anything in the
- // /static path to be visible
- Menu(Loc("Static", Link(List("static"), true, "/static/index"),
- "Static Content")))
-
- def sitemapMutators = User.sitemapMutator
-
- // set the sitemap. Note if you don't want access control for
- // each page, just comment this line out.
- LiftRules.setSiteMapFunc(() => sitemapMutators(sitemap))
-
- // Use jQuery 1.4
- LiftRules.jsArtifacts = net.liftweb.http.js.jquery.JQuery14Artifacts
-
- //Show the spinny image when an Ajax call starts
- LiftRules.ajaxStart =
- Full(() => LiftRules.jsArtifacts.show("ajax-loader").cmd)
-
- // Make the spinny image go away when it ends
- LiftRules.ajaxEnd =
- Full(() => LiftRules.jsArtifacts.hide("ajax-loader").cmd)
-
- // Force the request to be UTF-8
- LiftRules.early.append(_.setCharacterEncoding("UTF-8"))
-
- // What is the function to test if a user is logged in?
- LiftRules.loggedInTest = Full(() => User.loggedIn_?)
-
- // Make a transaction span the whole HTTP request
- S.addAround(DB.buildLoanWrapper)
- }
-}
@@ -1,55 +0,0 @@
-package code
-package lib
-
-import net.liftweb._
-import http._
-import util._
-import common._
-import java.util.Date
-
-/**
- * A factory for generating new instances of Date. You can create
- * factories for each kind of thing you want to vend in your application.
- * An example is a payment gateway. You can change the default implementation,
- * or override the default implementation on a session, request or current call
- * stack basis.
- */
-object DependencyFactory extends Factory {
- implicit object time extends FactoryMaker(Helpers.now _)
-
- /**
- * objects in Scala are lazily created. The init()
- * method creates a List of all the objects. This
- * results in all the objects getting initialized and
- * registering their types with the dependency injector
- */
- private def init() {
- List(time)
- }
- init()
-}
-
-/*
-/**
- * Examples of changing the implementation
- */
-sealed abstract class Changer {
- def changeDefaultImplementation() {
- DependencyFactory.time.default.set(() => new Date())
- }
-
- def changeSessionImplementation() {
- DependencyFactory.time.session.set(() => new Date())
- }
-
- def changeRequestImplementation() {
- DependencyFactory.time.request.set(() => new Date())
- }
-
- def changeJustForCall(d: Date) {
- DependencyFactory.time.doWith(d) {
- // perform some calculations here
- }
- }
-}
-*/
@@ -1,35 +0,0 @@
-package code
-package model
-
-import net.liftweb.mapper._
-import net.liftweb.util._
-import net.liftweb.common._
-
-/**
- * The singleton that has methods for accessing the database
- */
-object User extends User with MetaMegaProtoUser[User] {
- override def dbTableName = "users" // define the DB table name
- override def screenWrap = Full(<lift:surround with="default" at="content">
- <lift:bind /></lift:surround>)
- // define the order fields will appear in forms and output
- override def fieldOrder = List(id, firstName, lastName, email,
- locale, timezone, password, textArea)
-
- // comment this line out to require email validations
- override def skipEmailValidation = true
-}
-
-/**
- * An O-R mapped "User" class that includes first name, last name, password and we add a "Personal Essay" to it
- */
-class User extends MegaProtoUser[User] {
- def getSingleton = User // what's the "meta" server
-
- // define an additional field for a personal essay
- object textArea extends MappedTextarea(this, 2048) {
- override def textareaRows = 10
- override def textareaCols = 50
- override def displayName = "Personal Essay"
- }
-}
@@ -1,23 +0,0 @@
-package code
-package snippet
-
-import scala.xml.{NodeSeq, Text}
-import net.liftweb.util._
-import net.liftweb.common._
-import java.util.Date
-import code.lib._
-import Helpers._
-
-class HelloWorld {
- lazy val date: Box[Date] = DependencyFactory.inject[Date] // inject the date
-
- // replace the contents of the element with id "time" with the date
- def howdy = "#time *" #> date.map(_.toString)
-
- /*
- lazy val date: Date = DependencyFactory.time.vend // create the date via factory
-
- def howdy = "#time *" #> date.toString
- */
-}
-
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE web-app
-PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
-"http://java.sun.com/dtd/web-app_2_3.dtd">
-
-<web-app>
-<filter>
- <filter-name>LiftFilter</filter-name>
- <display-name>Lift Filter</display-name>
- <description>The Filter that intercepts lift calls</description>
- <filter-class>net.liftweb.http.LiftFilter</filter-class>
-</filter>
-
-
-<filter-mapping>
- <filter-name>LiftFilter</filter-name>
- <url-pattern>/*</url-pattern>
-</filter-mapping>
-
-</web-app>
Binary file not shown.
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
- <title>Home</title>
- </head>
- <body class="lift:content_id=main">
- <div id="main" class="lift:surround?with=default;at=content">
- <h2>Welcome to your project!</h2>
- <p>
- <span class="lift:helloWorld.howdy">
- Welcome to your Lift app at <span id="time">Time goes here</span>
- </span>
- </p>
- </div>
- </body>
-</html>
-
@@ -1,5 +0,0 @@
-<div id="main" class="lift:surround?with=default;at=content">
- Static content... everything you put in the /static
- directory will be served without additions to SiteMap
-</div>
-
@@ -1,85 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- <meta name="description" content="" />
- <meta name="keywords" content="" />
- <title class="lift:Menu.title">App: </title>
- <style class="lift:CSS.blueprint"></style>
- <style class="lift:CSS.fancyType"></style>
- <script id="jquery" src="/classpath/jquery.js" type="text/javascript"></script>
- <script id="json" src="/classpath/json.js" type="text/javascript"></script>
- <style type="text/css">
-/* <![CDATA[ */
-.edit_error_class {
- display: block;
- color: red;
-}
-
-.sidebar ul {
- margin:0;
- padding:0;
- border-bottom:1px solid #ccc;
-}
-
-
-.sidebar ul li {
- margin:0;
- padding:0;
- list-style:none;
- border:1px solid #ccc;
- border-bottom:none;
-}
-
-.sidebar ul li a {
- display:block;
- padding:3px;
- text-indent:30px;
- text-decoration:none;
-}
-
-.sidebar ul li span {
- display:block;
- padding:3px;
- text-indent:30px;
- text-decoration:none;
-}
-
-.sidebar ul li a:hover {
- background-color: #eee;
-}
-
-
- /* ]]> */
- </style>
- </head>
- <body>
- <div class="container">
- <div class="column span-12 last" style="text-align: right">
- <h1 class="alt">app<img alt="" id="ajax-loader" style="display:none; margin-bottom: 0px; margin-left: 5px" src="/images/ajax-loader.gif"/></h1>
- </div>
-
- <hr />
-
- <div class="column span-6 colborder sidebar">
- <hr class="space" />
-
- <span class="lift:Menu.builder"></span>
-
- <div class="lift:Msgs?showAll=true"></div>
- <hr class="space" />
- </div>
-
- <div class="column span-17 last">
- <div id="content">The main content will get bound here</div>
- </div>
-
- <hr />
- <div class="column span-23 last" style="text-align: center">
- <h4 class="alt">
- <a href="http://www.liftweb.net"><i>Lift</i></a>
- is Copyright 2007-2011 WorldWide Conferencing, LLC.
- Distributed under an Apache 2.0 License.</h4>
- </div>
- </div>
- </body>
-</html>
Oops, something went wrong.

0 comments on commit e556908

Please sign in to comment.