Showing
70 changed files
with
1381 additions
and
0 deletions
| 1 | +package controllers; | ||
| 2 | + | ||
| 3 | +import play.data.Form; | ||
| 4 | +import play.data.FormFactory; | ||
| 5 | +import play.mvc.Controller; | ||
| 6 | +import play.mvc.Result; | ||
| 7 | + | ||
| 8 | +import javax.inject.Inject; | ||
| 9 | + | ||
| 10 | +// Add the following to conf/routes | ||
| 11 | +/* | ||
| 12 | +GET /$model;format="camel"$ controllers.$model;format="Camel"$Controller.$model;format="camel"$Get | ||
| 13 | +POST /$model;format="camel"$ controllers.$model;format="Camel"$Controller.$model;format="camel"$Post | ||
| 14 | +*/ | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + * $model;format="Camel"$ form controller for Play Java | ||
| 18 | + */ | ||
| 19 | +public class $model;format="Camel"$Controller extends Controller { | ||
| 20 | + | ||
| 21 | + private final Form<$model;format="Camel"$Data> $model;format="camel"$Form; | ||
| 22 | + | ||
| 23 | + @Inject | ||
| 24 | + public $model;format="Camel"$Controller(FormFactory formFactory) { | ||
| 25 | + this.$model;format="camel"$Form = formFactory.form($model;format="Camel"$Data.class); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public Result $model;format="camel"$Get() { | ||
| 29 | + return ok(views.html.$model;format="camel"$.form.render($model;format="camel"$Form)); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + public Result $model;format="camel"$Post() { | ||
| 33 | + Form<$model;format="Camel"$Data> boundForm = $model;format="camel"$Form.bindFromRequest(); | ||
| 34 | + if (boundForm.hasErrors()) { | ||
| 35 | + return badRequest(views.html.$model;format="camel"$.form.render(boundForm)); | ||
| 36 | + } else { | ||
| 37 | + $model;format="Camel"$Data $model;format="camel"$ = boundForm.get(); | ||
| 38 | + flash("success", "$model;format="Camel"$ " + $model;format="camel"$); | ||
| 39 | + return redirect(routes.$model;format="Camel"$Controller.$model;format="camel"$Get()); | ||
| 40 | + } | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | +} |
| 1 | +package controllers; | ||
| 2 | + | ||
| 3 | +import play.data.validation.Constraints; | ||
| 4 | + | ||
| 5 | +public class $model;format="Camel"$Data { | ||
| 6 | + | ||
| 7 | + @Constraints.Required | ||
| 8 | + private String name; | ||
| 9 | + | ||
| 10 | + @Constraints.Required | ||
| 11 | + private Integer age; | ||
| 12 | + | ||
| 13 | + public $model;format="Camel"$Data() { | ||
| 14 | + } | ||
| 15 | + | ||
| 16 | + public String getName() { | ||
| 17 | + return name; | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + public void setName(String name) { | ||
| 21 | + this.name = name; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public Integer getAge() { | ||
| 25 | + return age; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public void setAge(Integer age) { | ||
| 29 | + this.age = age; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + @Override | ||
| 33 | + public String toString() { | ||
| 34 | + return String.format("$model;format="Camel"$Data(%s, %s)", name, age); | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | +} |
| 1 | +@($model;format="camel"$Form: Form[$model;format="Camel"$Data]) | ||
| 2 | + | ||
| 3 | +<h1>$model;format="camel"$ form</h1> | ||
| 4 | + | ||
| 5 | +@flash.getOrDefault("success", "") | ||
| 6 | + | ||
| 7 | +@helper.form(action = routes.$model;format="Camel"$Controller.$model;format="camel"$Post()) { | ||
| 8 | + @helper.CSRF.formField | ||
| 9 | + @helper.inputText($model;format="camel"$Form("name")) | ||
| 10 | + @helper.inputText($model;format="camel"$Form("age")) | ||
| 11 | + <input type="submit" value="submit"/> | ||
| 12 | +} |
.g8/form/default.properties
0 → 100644
.g8/form/generated-test/README.md
0 → 100644
| 1 | +Temporary file until g8-scaffold will generate "test" directory |
| 1 | +package controllers; | ||
| 2 | + | ||
| 3 | +import org.junit.Test; | ||
| 4 | +import play.Application; | ||
| 5 | +import play.filters.csrf.*; | ||
| 6 | +import play.inject.guice.GuiceApplicationBuilder; | ||
| 7 | +import play.mvc.Result; | ||
| 8 | +import play.test.WithApplication; | ||
| 9 | + | ||
| 10 | +import java.util.HashMap; | ||
| 11 | + | ||
| 12 | +import static org.junit.Assert.assertEquals; | ||
| 13 | +import static play.mvc.Http.RequestBuilder; | ||
| 14 | +import static play.mvc.Http.Status.OK; | ||
| 15 | +import static play.test.Helpers.*; | ||
| 16 | + | ||
| 17 | +public class $model;format="Camel"$ControllerTest extends WithApplication { | ||
| 18 | + | ||
| 19 | + @Override | ||
| 20 | + protected Application provideApplication() { | ||
| 21 | + return new GuiceApplicationBuilder().build(); | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + protected RequestBuilder addCsrfToken(RequestBuilder requestBuilder) { | ||
| 25 | + final CSRFFilter csrfFilter = app.injector().instanceOf(CSRFFilter.class); | ||
| 26 | + final CSRFConfig csrfConfig = app.injector().instanceOf(CSRFConfigProvider.class).get(); | ||
| 27 | + final String token = csrfFilter.tokenProvider().generateToken(); | ||
| 28 | + | ||
| 29 | + requestBuilder.tag(CSRF.Token\$.MODULE\$.NameRequestTag(), csrfConfig.tokenName()); | ||
| 30 | + requestBuilder.tag(CSRF.Token\$.MODULE\$.RequestTag(), token); | ||
| 31 | + requestBuilder.header(csrfConfig.headerName(), token); | ||
| 32 | + | ||
| 33 | + return requestBuilder; | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + @Test | ||
| 37 | + public void test$model;format="Camel"$Get() { | ||
| 38 | + RequestBuilder request = new RequestBuilder() | ||
| 39 | + .method(GET) | ||
| 40 | + .uri("/$model;format="camel"$"); | ||
| 41 | + | ||
| 42 | + Result result = route(app, request); | ||
| 43 | + assertEquals(OK, result.status()); | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + | ||
| 47 | + @Test | ||
| 48 | + public void test$model;format="Camel"$Post() { | ||
| 49 | + HashMap<String, String> formData = new HashMap<>(); | ||
| 50 | + formData.put("name", "play"); | ||
| 51 | + formData.put("age", "4"); | ||
| 52 | + RequestBuilder request = addCsrfToken(new RequestBuilder() | ||
| 53 | + .header("Host", "localhost") | ||
| 54 | + .method(POST) | ||
| 55 | + .bodyForm(formData) | ||
| 56 | + .uri("/$model;format="camel"$")); | ||
| 57 | + | ||
| 58 | + Result result = route(app, request); | ||
| 59 | + assertEquals(SEE_OTHER, result.status()); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | +} |
.gitignore
0 → 100644
app/controllers/HomeController.java
0 → 100644
| 1 | +package controllers; | ||
| 2 | + | ||
| 3 | +import play.mvc.*; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * This controller contains an action to handle HTTP requests | ||
| 7 | + * to the application's home page. | ||
| 8 | + */ | ||
| 9 | +public class HomeController extends Controller { | ||
| 10 | + | ||
| 11 | + /** | ||
| 12 | + * An action that renders an HTML page with a welcome message. | ||
| 13 | + * The configuration in the <code>routes</code> file means that | ||
| 14 | + * this method will be called when the application receives a | ||
| 15 | + * <code>GET</code> request with a path of <code>/</code>. | ||
| 16 | + */ | ||
| 17 | + public Result index() { | ||
| 18 | + return ok(views.html.index.render()); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | +} |
app/models/Hersteller.java
0 → 100644
| 1 | +package models; | ||
| 2 | + | ||
| 3 | +import com.avaje.ebean.Model; | ||
| 4 | + | ||
| 5 | +import javax.persistence.Column; | ||
| 6 | +import javax.persistence.Entity; | ||
| 7 | +import javax.persistence.Id; | ||
| 8 | +import javax.persistence.PrimaryKeyJoinColumn; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * Created by martinschipflinger on 29.05.17. | ||
| 12 | + */ | ||
| 13 | +@Entity | ||
| 14 | +public class Hersteller extends Model { | ||
| 15 | + | ||
| 16 | + @Id | ||
| 17 | + @Column(name="hersteller_id") | ||
| 18 | + private Long id; | ||
| 19 | + | ||
| 20 | + private String bezeichnung; | ||
| 21 | + private String uid; | ||
| 22 | + | ||
| 23 | + public Long getId() { | ||
| 24 | + return id; | ||
| 25 | + } | ||
| 26 | + | ||
| 27 | + public void setId(Long id) { | ||
| 28 | + this.id = id; | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + public String getBezeichnung() { | ||
| 32 | + return bezeichnung; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + public void setBezeichnung(String bezeichnung) { | ||
| 36 | + this.bezeichnung = bezeichnung; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + public String getUid() { | ||
| 40 | + return uid; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public void setUid(String uid) { | ||
| 44 | + this.uid = uid; | ||
| 45 | + } | ||
| 46 | +} |
app/models/Kategorie.java
0 → 100644
| 1 | +package models; | ||
| 2 | + | ||
| 3 | +import com.avaje.ebean.Model; | ||
| 4 | +import javax.persistence.Column; | ||
| 5 | +import javax.persistence.Entity; | ||
| 6 | +import javax.persistence.Id; | ||
| 7 | + | ||
| 8 | +/** | ||
| 9 | + * Created by martinschipflinger on 29.05.17. | ||
| 10 | + */ | ||
| 11 | +@Entity | ||
| 12 | +public class Kategorie extends Model{ | ||
| 13 | + | ||
| 14 | + @Id | ||
| 15 | + @Column(name="kategorie_id") | ||
| 16 | + private Long id; | ||
| 17 | + | ||
| 18 | + private String bezeichnung; | ||
| 19 | + | ||
| 20 | + public Long getId() { | ||
| 21 | + return id; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public void setId(Long id) { | ||
| 25 | + this.id = id; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public String getBezeichnung() { | ||
| 29 | + return bezeichnung; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + public void setBezeichnung(String bezeichnung) { | ||
| 33 | + this.bezeichnung = bezeichnung; | ||
| 34 | + } | ||
| 35 | +} |
app/models/Produkt.java
0 → 100644
| 1 | +package models; | ||
| 2 | + | ||
| 3 | +import com.avaje.ebean.Model; | ||
| 4 | +import javax.persistence.Column; | ||
| 5 | +import javax.persistence.Entity; | ||
| 6 | +import javax.persistence.Id; | ||
| 7 | + | ||
| 8 | +/** | ||
| 9 | + * Created by martinschipflinger on 29.05.17. | ||
| 10 | + */ | ||
| 11 | +@Entity | ||
| 12 | +public class Produkt extends Model { | ||
| 13 | + | ||
| 14 | + @Id | ||
| 15 | + @Column(name="produkt_id") | ||
| 16 | + private Long id; | ||
| 17 | + | ||
| 18 | + private String bezeichnung; | ||
| 19 | + private double preis; | ||
| 20 | + | ||
| 21 | + public Long getId() { | ||
| 22 | + return id; | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + public void setId(Long id) { | ||
| 26 | + this.id = id; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + public String getBezeichnung() { | ||
| 30 | + return bezeichnung; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + public void setBezeichnung(String bezeichnung) { | ||
| 34 | + this.bezeichnung = bezeichnung; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public double getPreis() { | ||
| 38 | + return preis; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void setPreis(double preis) { | ||
| 42 | + this.preis = preis; | ||
| 43 | + } | ||
| 44 | +} |
app/views/footer.scala.html
0 → 100644
| 1 | +@() | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
app/views/header.scala.html
0 → 100644
app/views/main.scala.html
0 → 100644
| 1 | +@* | ||
| 2 | + * This template is called from the `index` template. This template | ||
| 3 | + * handles the rendering of the page header and body tags. It takes | ||
| 4 | + * two arguments, a `String` for the title of the page and an `Html` | ||
| 5 | + * object to insert into the body of the page. | ||
| 6 | + *@ | ||
| 7 | +@(title: String)(content: Html) | ||
| 8 | + | ||
| 9 | +<!DOCTYPE html> | ||
| 10 | +<html lang="en"> | ||
| 11 | + <head> | ||
| 12 | + @* Here's where we render the page title `String`. *@ | ||
| 13 | + <title>@title</title> | ||
| 14 | + <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")"> | ||
| 15 | + <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("font-awesome/css/font-awesome.css")"> | ||
| 16 | + <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("lib/bootstrap/css/bootstrap.css")"> | ||
| 17 | + <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")"> | ||
| 18 | + | ||
| 19 | + </head> | ||
| 20 | + <body> | ||
| 21 | + @* And here's where we render the `Html` object containing | ||
| 22 | + * the page content. *@ | ||
| 23 | + <div class="container-fluid"> | ||
| 24 | + | ||
| 25 | + <div class="row header"> | ||
| 26 | + <div class="col-xs-12"> | ||
| 27 | + @header() | ||
| 28 | + </div> | ||
| 29 | + | ||
| 30 | + </div> | ||
| 31 | + | ||
| 32 | + <div class="row"> | ||
| 33 | + <div class="col-sm-2 navigation"> | ||
| 34 | + @navigation() | ||
| 35 | + </div> | ||
| 36 | + <div class="col-sm-10 content"> | ||
| 37 | + @content | ||
| 38 | + </div> | ||
| 39 | + | ||
| 40 | + </div> | ||
| 41 | + | ||
| 42 | + <div class="row footer"> | ||
| 43 | + <div class="col-xs-12"> | ||
| 44 | + @footer() | ||
| 45 | + </div> | ||
| 46 | + </div> | ||
| 47 | + | ||
| 48 | + </div> | ||
| 49 | + <script src="@routes.Assets.versioned("lib/bootstrap/js/bootstrap.js")" type="text/javascript"></script> | ||
| 50 | + <script src="@routes.Assets.versioned("javascripts/main.js")" type="text/javascript"></script> | ||
| 51 | + </body> | ||
| 52 | +</html> |
app/views/navigation.scala.html
0 → 100644
| 1 | +@() | ||
| 2 | + | ||
| 3 | + <a class="navlink" href=""> | ||
| 4 | + <i class="fa fa-list-alt fa-2x" aria-hidden="true"></i> | ||
| 5 | + <div>Kategorie</div> | ||
| 6 | + </a> | ||
| 7 | + | ||
| 8 | + <a class="navlink" href=""> | ||
| 9 | + <i class="fa fa-building-o fa-2x" aria-hidden="true"></i> | ||
| 10 | + <div>Hersteller</div> | ||
| 11 | + </a> | ||
| 12 | + | ||
| 13 | + <a class="navlink" href=""> | ||
| 14 | + <i class="fa fa fa-barcode fa-2x" aria-hidden="true"></i> | ||
| 15 | + <div>Produkt</div> | ||
| 16 | + </a> |
build.gradle
0 → 100644
| 1 | +plugins { | ||
| 2 | + id 'play' | ||
| 3 | + id 'idea' | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +task wrapper(type: Wrapper) { | ||
| 7 | + gradleVersion = '3.1' | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +repositories { | ||
| 11 | + jcenter() | ||
| 12 | + maven { | ||
| 13 | + name "typesafe-maven-release" | ||
| 14 | + url "https://repo.typesafe.com/typesafe/maven-releases" | ||
| 15 | + } | ||
| 16 | + ivy { | ||
| 17 | + name "typesafe-ivy-release" | ||
| 18 | + url "https://repo.typesafe.com/typesafe/ivy-releases" | ||
| 19 | + layout "ivy" | ||
| 20 | + } | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +def playVersion = '2.5.14' | ||
| 24 | +def scalaVersion = '2.11' | ||
| 25 | + | ||
| 26 | +model { | ||
| 27 | + components { | ||
| 28 | + play { | ||
| 29 | + platform play: playVersion, scala: scalaVersion, java: '1.8' | ||
| 30 | + injectedRoutesGenerator = true | ||
| 31 | + | ||
| 32 | + sources { | ||
| 33 | + twirlTemplates { | ||
| 34 | + defaultImports = TwirlImports.JAVA | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | + } | ||
| 38 | + } | ||
| 39 | +} | ||
| 40 | + | ||
| 41 | +dependencies { | ||
| 42 | + ['filters-helpers', 'play-logback'].each { playModule -> | ||
| 43 | + play "com.typesafe.play:${playModule}_$scalaVersion:$playVersion" | ||
| 44 | + } | ||
| 45 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
build.sbt
0 → 100644
| 1 | +name := """klausur_web15_2""" | ||
| 2 | +organization := "at.ac.fhkuf" | ||
| 3 | + | ||
| 4 | +version := "1.0-SNAPSHOT" | ||
| 5 | + | ||
| 6 | +lazy val root = (project in file(".")).enablePlugins(PlayJava) | ||
| 7 | + | ||
| 8 | +scalaVersion := "2.11.11" | ||
| 9 | + | ||
| 10 | +libraryDependencies += filters | ||
| 11 | + | ||
| 12 | +libraryDependencies ++= Seq( | ||
| 13 | + "mysql" % "mysql-connector-java" % "5.1.18", | ||
| 14 | + "org.webjars" %% "webjars-play" % "2.3.0", | ||
| 15 | + "org.webjars" % "bootstrap" % "3.0.0" exclude("org.webjars", "jquery"), | ||
| 16 | + "org.webjars" % "jquery" % "1.8.3" | ||
| 17 | +) |
conf/application.conf
0 → 100644
| 1 | +# This is the main configuration file for the application. | ||
| 2 | +# https://www.playframework.com/documentation/latest/ConfigFile | ||
| 3 | +db.default.driver=com.mysql.jdbc.Driver | ||
| 4 | +db.default.url="jdbc:mysql://localhost:3306/produktdb" | ||
| 5 | +db.default.username=user | ||
| 6 | +db.default.password=pass | ||
| 7 | + | ||
| 8 | +ebean.default = [""] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
conf/evolutions/default/1.sql
0 → 100644
| 1 | +# --- Created by Ebean DDL | ||
| 2 | +# To stop Ebean DDL generation, remove this comment and start using Evolutions | ||
| 3 | + | ||
| 4 | +# --- !Ups | ||
| 5 | + | ||
| 6 | +create table hersteller ( | ||
| 7 | + hersteller_id bigint auto_increment not null, | ||
| 8 | + bezeichnung varchar(255), | ||
| 9 | + uid varchar(255), | ||
| 10 | + constraint pk_hersteller primary key (hersteller_id) | ||
| 11 | +); | ||
| 12 | + | ||
| 13 | +create table kategorie ( | ||
| 14 | + kategorie_id bigint auto_increment not null, | ||
| 15 | + bezeichnung varchar(255), | ||
| 16 | + constraint pk_kategorie primary key (kategorie_id) | ||
| 17 | +); | ||
| 18 | + | ||
| 19 | +create table produkt ( | ||
| 20 | + produkt_id bigint auto_increment not null, | ||
| 21 | + bezeichnung varchar(255), | ||
| 22 | + preis double, | ||
| 23 | + constraint pk_produkt primary key (produkt_id) | ||
| 24 | +); | ||
| 25 | + | ||
| 26 | + | ||
| 27 | +# --- !Downs | ||
| 28 | + | ||
| 29 | +drop table if exists hersteller; | ||
| 30 | + | ||
| 31 | +drop table if exists kategorie; | ||
| 32 | + | ||
| 33 | +drop table if exists produkt; | ||
| 34 | + |
conf/logback.xml
0 → 100644
| 1 | +<!-- https://www.playframework.com/documentation/latest/SettingsLogger --> | ||
| 2 | +<configuration> | ||
| 3 | + | ||
| 4 | + <conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" /> | ||
| 5 | + | ||
| 6 | + <appender name="FILE" class="ch.qos.logback.core.FileAppender"> | ||
| 7 | + <file>${application.home:-.}/logs/application.log</file> | ||
| 8 | + <encoder> | ||
| 9 | + <pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern> | ||
| 10 | + </encoder> | ||
| 11 | + </appender> | ||
| 12 | + | ||
| 13 | + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
| 14 | + <encoder> | ||
| 15 | + <pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern> | ||
| 16 | + </encoder> | ||
| 17 | + </appender> | ||
| 18 | + | ||
| 19 | + <appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender"> | ||
| 20 | + <appender-ref ref="FILE" /> | ||
| 21 | + </appender> | ||
| 22 | + | ||
| 23 | + <appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender"> | ||
| 24 | + <appender-ref ref="STDOUT" /> | ||
| 25 | + </appender> | ||
| 26 | + | ||
| 27 | + <logger name="play" level="INFO" /> | ||
| 28 | + <logger name="application" level="DEBUG" /> | ||
| 29 | + | ||
| 30 | + <!-- Off these ones as they are annoying, and anyway we manage configuration ourselves --> | ||
| 31 | + <logger name="com.avaje.ebean.config.PropertyMapLoader" level="OFF" /> | ||
| 32 | + <logger name="com.avaje.ebeaninternal.server.core.XmlConfigLoader" level="OFF" /> | ||
| 33 | + <logger name="com.avaje.ebeaninternal.server.lib.BackgroundThread" level="OFF" /> | ||
| 34 | + <logger name="com.gargoylesoftware.htmlunit.javascript" level="OFF" /> | ||
| 35 | + | ||
| 36 | + <root level="WARN"> | ||
| 37 | + <appender-ref ref="ASYNCFILE" /> | ||
| 38 | + <appender-ref ref="ASYNCSTDOUT" /> | ||
| 39 | + </root> | ||
| 40 | + | ||
| 41 | +</configuration> |
conf/routes
0 → 100644
| 1 | +# Routes | ||
| 2 | +# This file defines all application routes (Higher priority routes first) | ||
| 3 | +# ~~~~ | ||
| 4 | + | ||
| 5 | +# An example controller showing a sample home page | ||
| 6 | +GET / controllers.HomeController.index | ||
| 7 | + | ||
| 8 | +# Map static resources from the /public folder to the /assets URL path | ||
| 9 | +GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset) |
gradle/wrapper/gradle-wrapper.jar
0 → 100644
No preview for this file type
gradle/wrapper/gradle-wrapper.properties
0 → 100644
gradlew
0 → 100755
| 1 | +#!/usr/bin/env bash | ||
| 2 | + | ||
| 3 | +############################################################################## | ||
| 4 | +## | ||
| 5 | +## Gradle start up script for UN*X | ||
| 6 | +## | ||
| 7 | +############################################################################## | ||
| 8 | + | ||
| 9 | +# Attempt to set APP_HOME | ||
| 10 | +# Resolve links: $0 may be a link | ||
| 11 | +PRG="$0" | ||
| 12 | +# Need this for relative symlinks. | ||
| 13 | +while [ -h "$PRG" ] ; do | ||
| 14 | + ls=`ls -ld "$PRG"` | ||
| 15 | + link=`expr "$ls" : '.*-> \(.*\)$'` | ||
| 16 | + if expr "$link" : '/.*' > /dev/null; then | ||
| 17 | + PRG="$link" | ||
| 18 | + else | ||
| 19 | + PRG=`dirname "$PRG"`"/$link" | ||
| 20 | + fi | ||
| 21 | +done | ||
| 22 | +SAVED="`pwd`" | ||
| 23 | +cd "`dirname \"$PRG\"`/" >/dev/null | ||
| 24 | +APP_HOME="`pwd -P`" | ||
| 25 | +cd "$SAVED" >/dev/null | ||
| 26 | + | ||
| 27 | +APP_NAME="Gradle" | ||
| 28 | +APP_BASE_NAME=`basename "$0"` | ||
| 29 | + | ||
| 30 | +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||
| 31 | +DEFAULT_JVM_OPTS="" | ||
| 32 | + | ||
| 33 | +# Use the maximum available, or set MAX_FD != -1 to use that value. | ||
| 34 | +MAX_FD="maximum" | ||
| 35 | + | ||
| 36 | +warn ( ) { | ||
| 37 | + echo "$*" | ||
| 38 | +} | ||
| 39 | + | ||
| 40 | +die ( ) { | ||
| 41 | + echo | ||
| 42 | + echo "$*" | ||
| 43 | + echo | ||
| 44 | + exit 1 | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | +# OS specific support (must be 'true' or 'false'). | ||
| 48 | +cygwin=false | ||
| 49 | +msys=false | ||
| 50 | +darwin=false | ||
| 51 | +nonstop=false | ||
| 52 | +case "`uname`" in | ||
| 53 | + CYGWIN* ) | ||
| 54 | + cygwin=true | ||
| 55 | + ;; | ||
| 56 | + Darwin* ) | ||
| 57 | + darwin=true | ||
| 58 | + ;; | ||
| 59 | + MINGW* ) | ||
| 60 | + msys=true | ||
| 61 | + ;; | ||
| 62 | + NONSTOP* ) | ||
| 63 | + nonstop=true | ||
| 64 | + ;; | ||
| 65 | +esac | ||
| 66 | + | ||
| 67 | +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar | ||
| 68 | + | ||
| 69 | +# Determine the Java command to use to start the JVM. | ||
| 70 | +if [ -n "$JAVA_HOME" ] ; then | ||
| 71 | + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
| 72 | + # IBM's JDK on AIX uses strange locations for the executables | ||
| 73 | + JAVACMD="$JAVA_HOME/jre/sh/java" | ||
| 74 | + else | ||
| 75 | + JAVACMD="$JAVA_HOME/bin/java" | ||
| 76 | + fi | ||
| 77 | + if [ ! -x "$JAVACMD" ] ; then | ||
| 78 | + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME | ||
| 79 | + | ||
| 80 | +Please set the JAVA_HOME variable in your environment to match the | ||
| 81 | +location of your Java installation." | ||
| 82 | + fi | ||
| 83 | +else | ||
| 84 | + JAVACMD="java" | ||
| 85 | + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
| 86 | + | ||
| 87 | +Please set the JAVA_HOME variable in your environment to match the | ||
| 88 | +location of your Java installation." | ||
| 89 | +fi | ||
| 90 | + | ||
| 91 | +# Increase the maximum file descriptors if we can. | ||
| 92 | +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then | ||
| 93 | + MAX_FD_LIMIT=`ulimit -H -n` | ||
| 94 | + if [ $? -eq 0 ] ; then | ||
| 95 | + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then | ||
| 96 | + MAX_FD="$MAX_FD_LIMIT" | ||
| 97 | + fi | ||
| 98 | + ulimit -n $MAX_FD | ||
| 99 | + if [ $? -ne 0 ] ; then | ||
| 100 | + warn "Could not set maximum file descriptor limit: $MAX_FD" | ||
| 101 | + fi | ||
| 102 | + else | ||
| 103 | + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" | ||
| 104 | + fi | ||
| 105 | +fi | ||
| 106 | + | ||
| 107 | +# For Darwin, add options to specify how the application appears in the dock | ||
| 108 | +if $darwin; then | ||
| 109 | + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" | ||
| 110 | +fi | ||
| 111 | + | ||
| 112 | +# For Cygwin, switch paths to Windows format before running java | ||
| 113 | +if $cygwin ; then | ||
| 114 | + APP_HOME=`cygpath --path --mixed "$APP_HOME"` | ||
| 115 | + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` | ||
| 116 | + JAVACMD=`cygpath --unix "$JAVACMD"` | ||
| 117 | + | ||
| 118 | + # We build the pattern for arguments to be converted via cygpath | ||
| 119 | + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` | ||
| 120 | + SEP="" | ||
| 121 | + for dir in $ROOTDIRSRAW ; do | ||
| 122 | + ROOTDIRS="$ROOTDIRS$SEP$dir" | ||
| 123 | + SEP="|" | ||
| 124 | + done | ||
| 125 | + OURCYGPATTERN="(^($ROOTDIRS))" | ||
| 126 | + # Add a user-defined pattern to the cygpath arguments | ||
| 127 | + if [ "$GRADLE_CYGPATTERN" != "" ] ; then | ||
| 128 | + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" | ||
| 129 | + fi | ||
| 130 | + # Now convert the arguments - kludge to limit ourselves to /bin/sh | ||
| 131 | + i=0 | ||
| 132 | + for arg in "$@" ; do | ||
| 133 | + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` | ||
| 134 | + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option | ||
| 135 | + | ||
| 136 | + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition | ||
| 137 | + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` | ||
| 138 | + else | ||
| 139 | + eval `echo args$i`="\"$arg\"" | ||
| 140 | + fi | ||
| 141 | + i=$((i+1)) | ||
| 142 | + done | ||
| 143 | + case $i in | ||
| 144 | + (0) set -- ;; | ||
| 145 | + (1) set -- "$args0" ;; | ||
| 146 | + (2) set -- "$args0" "$args1" ;; | ||
| 147 | + (3) set -- "$args0" "$args1" "$args2" ;; | ||
| 148 | + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; | ||
| 149 | + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | ||
| 150 | + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | ||
| 151 | + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | ||
| 152 | + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; | ||
| 153 | + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; | ||
| 154 | + esac | ||
| 155 | +fi | ||
| 156 | + | ||
| 157 | +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules | ||
| 158 | +function splitJvmOpts() { | ||
| 159 | + JVM_OPTS=("$@") | ||
| 160 | +} | ||
| 161 | +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS | ||
| 162 | +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" | ||
| 163 | + | ||
| 164 | +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
gradlew.bat
0 → 100644
| 1 | +@if "%DEBUG%" == "" @echo off | ||
| 2 | +@rem ########################################################################## | ||
| 3 | +@rem | ||
| 4 | +@rem Gradle startup script for Windows | ||
| 5 | +@rem | ||
| 6 | +@rem ########################################################################## | ||
| 7 | + | ||
| 8 | +@rem Set local scope for the variables with windows NT shell | ||
| 9 | +if "%OS%"=="Windows_NT" setlocal | ||
| 10 | + | ||
| 11 | +set DIRNAME=%~dp0 | ||
| 12 | +if "%DIRNAME%" == "" set DIRNAME=. | ||
| 13 | +set APP_BASE_NAME=%~n0 | ||
| 14 | +set APP_HOME=%DIRNAME% | ||
| 15 | + | ||
| 16 | +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||
| 17 | +set DEFAULT_JVM_OPTS= | ||
| 18 | + | ||
| 19 | +@rem Find java.exe | ||
| 20 | +if defined JAVA_HOME goto findJavaFromJavaHome | ||
| 21 | + | ||
| 22 | +set JAVA_EXE=java.exe | ||
| 23 | +%JAVA_EXE% -version >NUL 2>&1 | ||
| 24 | +if "%ERRORLEVEL%" == "0" goto init | ||
| 25 | + | ||
| 26 | +echo. | ||
| 27 | +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
| 28 | +echo. | ||
| 29 | +echo Please set the JAVA_HOME variable in your environment to match the | ||
| 30 | +echo location of your Java installation. | ||
| 31 | + | ||
| 32 | +goto fail | ||
| 33 | + | ||
| 34 | +:findJavaFromJavaHome | ||
| 35 | +set JAVA_HOME=%JAVA_HOME:"=% | ||
| 36 | +set JAVA_EXE=%JAVA_HOME%/bin/java.exe | ||
| 37 | + | ||
| 38 | +if exist "%JAVA_EXE%" goto init | ||
| 39 | + | ||
| 40 | +echo. | ||
| 41 | +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% | ||
| 42 | +echo. | ||
| 43 | +echo Please set the JAVA_HOME variable in your environment to match the | ||
| 44 | +echo location of your Java installation. | ||
| 45 | + | ||
| 46 | +goto fail | ||
| 47 | + | ||
| 48 | +:init | ||
| 49 | +@rem Get command-line arguments, handling Windows variants | ||
| 50 | + | ||
| 51 | +if not "%OS%" == "Windows_NT" goto win9xME_args | ||
| 52 | +if "%@eval[2+2]" == "4" goto 4NT_args | ||
| 53 | + | ||
| 54 | +:win9xME_args | ||
| 55 | +@rem Slurp the command line arguments. | ||
| 56 | +set CMD_LINE_ARGS= | ||
| 57 | +set _SKIP=2 | ||
| 58 | + | ||
| 59 | +:win9xME_args_slurp | ||
| 60 | +if "x%~1" == "x" goto execute | ||
| 61 | + | ||
| 62 | +set CMD_LINE_ARGS=%* | ||
| 63 | +goto execute | ||
| 64 | + | ||
| 65 | +:4NT_args | ||
| 66 | +@rem Get arguments from the 4NT Shell from JP Software | ||
| 67 | +set CMD_LINE_ARGS=%$ | ||
| 68 | + | ||
| 69 | +:execute | ||
| 70 | +@rem Setup the command line | ||
| 71 | + | ||
| 72 | +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | ||
| 73 | + | ||
| 74 | +@rem Execute Gradle | ||
| 75 | +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% | ||
| 76 | + | ||
| 77 | +:end | ||
| 78 | +@rem End local scope for the variables with windows NT shell | ||
| 79 | +if "%ERRORLEVEL%"=="0" goto mainEnd | ||
| 80 | + | ||
| 81 | +:fail | ||
| 82 | +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | ||
| 83 | +rem the _cmd.exe /c_ return code! | ||
| 84 | +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 | ||
| 85 | +exit /b 1 | ||
| 86 | + | ||
| 87 | +:mainEnd | ||
| 88 | +if "%OS%"=="Windows_NT" endlocal | ||
| 89 | + | ||
| 90 | +:omega | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
project/build.properties
0 → 100644
| 1 | +sbt.version=0.13.15 |
project/plugins.sbt
0 → 100644
project/scaffold.sbt
0 → 100644
public/font-awesome/HELP-US-OUT.txt
0 → 100644
| 1 | +I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, | ||
| 2 | +Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, | ||
| 3 | +comprehensive icon sets or copy and paste your own. | ||
| 4 | + | ||
| 5 | +Please. Check it out. | ||
| 6 | + | ||
| 7 | +-Dave Gandy |
public/font-awesome/css/font-awesome.css
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/css/font-awesome.min.css
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/fonts/FontAwesome.otf
0 → 100644
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
public/font-awesome/less/animated.less
0 → 100644
| 1 | +// Animated Icons | ||
| 2 | +// -------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix}-spin { | ||
| 5 | + -webkit-animation: fa-spin 2s infinite linear; | ||
| 6 | + animation: fa-spin 2s infinite linear; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +.@{fa-css-prefix}-pulse { | ||
| 10 | + -webkit-animation: fa-spin 1s infinite steps(8); | ||
| 11 | + animation: fa-spin 1s infinite steps(8); | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +@-webkit-keyframes fa-spin { | ||
| 15 | + 0% { | ||
| 16 | + -webkit-transform: rotate(0deg); | ||
| 17 | + transform: rotate(0deg); | ||
| 18 | + } | ||
| 19 | + 100% { | ||
| 20 | + -webkit-transform: rotate(359deg); | ||
| 21 | + transform: rotate(359deg); | ||
| 22 | + } | ||
| 23 | +} | ||
| 24 | + | ||
| 25 | +@keyframes fa-spin { | ||
| 26 | + 0% { | ||
| 27 | + -webkit-transform: rotate(0deg); | ||
| 28 | + transform: rotate(0deg); | ||
| 29 | + } | ||
| 30 | + 100% { | ||
| 31 | + -webkit-transform: rotate(359deg); | ||
| 32 | + transform: rotate(359deg); | ||
| 33 | + } | ||
| 34 | +} |
| 1 | +// Bordered & Pulled | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix}-border { | ||
| 5 | + padding: .2em .25em .15em; | ||
| 6 | + border: solid .08em @fa-border-color; | ||
| 7 | + border-radius: .1em; | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +.@{fa-css-prefix}-pull-left { float: left; } | ||
| 11 | +.@{fa-css-prefix}-pull-right { float: right; } | ||
| 12 | + | ||
| 13 | +.@{fa-css-prefix} { | ||
| 14 | + &.@{fa-css-prefix}-pull-left { margin-right: .3em; } | ||
| 15 | + &.@{fa-css-prefix}-pull-right { margin-left: .3em; } | ||
| 16 | +} | ||
| 17 | + | ||
| 18 | +/* Deprecated as of 4.4.0 */ | ||
| 19 | +.pull-right { float: right; } | ||
| 20 | +.pull-left { float: left; } | ||
| 21 | + | ||
| 22 | +.@{fa-css-prefix} { | ||
| 23 | + &.pull-left { margin-right: .3em; } | ||
| 24 | + &.pull-right { margin-left: .3em; } | ||
| 25 | +} |
public/font-awesome/less/core.less
0 → 100644
| 1 | +// Base Class Definition | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix} { | ||
| 5 | + display: inline-block; | ||
| 6 | + font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration | ||
| 7 | + font-size: inherit; // can't have font-size inherit on line above, so need to override | ||
| 8 | + text-rendering: auto; // optimizelegibility throws things off #1094 | ||
| 9 | + -webkit-font-smoothing: antialiased; | ||
| 10 | + -moz-osx-font-smoothing: grayscale; | ||
| 11 | + | ||
| 12 | +} |
public/font-awesome/less/fixed-width.less
0 → 100644
public/font-awesome/less/font-awesome.less
0 → 100644
| 1 | +/*! | ||
| 2 | + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome | ||
| 3 | + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) | ||
| 4 | + */ | ||
| 5 | + | ||
| 6 | +@import "variables.less"; | ||
| 7 | +@import "mixins.less"; | ||
| 8 | +@import "path.less"; | ||
| 9 | +@import "core.less"; | ||
| 10 | +@import "larger.less"; | ||
| 11 | +@import "fixed-width.less"; | ||
| 12 | +@import "list.less"; | ||
| 13 | +@import "bordered-pulled.less"; | ||
| 14 | +@import "animated.less"; | ||
| 15 | +@import "rotated-flipped.less"; | ||
| 16 | +@import "stacked.less"; | ||
| 17 | +@import "icons.less"; | ||
| 18 | +@import "screen-reader.less"; |
public/font-awesome/less/icons.less
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/less/larger.less
0 → 100644
| 1 | +// Icon Sizes | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +/* makes the font 33% larger relative to the icon container */ | ||
| 5 | +.@{fa-css-prefix}-lg { | ||
| 6 | + font-size: (4em / 3); | ||
| 7 | + line-height: (3em / 4); | ||
| 8 | + vertical-align: -15%; | ||
| 9 | +} | ||
| 10 | +.@{fa-css-prefix}-2x { font-size: 2em; } | ||
| 11 | +.@{fa-css-prefix}-3x { font-size: 3em; } | ||
| 12 | +.@{fa-css-prefix}-4x { font-size: 4em; } | ||
| 13 | +.@{fa-css-prefix}-5x { font-size: 5em; } |
public/font-awesome/less/list.less
0 → 100644
| 1 | +// List Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix}-ul { | ||
| 5 | + padding-left: 0; | ||
| 6 | + margin-left: @fa-li-width; | ||
| 7 | + list-style-type: none; | ||
| 8 | + > li { position: relative; } | ||
| 9 | +} | ||
| 10 | +.@{fa-css-prefix}-li { | ||
| 11 | + position: absolute; | ||
| 12 | + left: -@fa-li-width; | ||
| 13 | + width: @fa-li-width; | ||
| 14 | + top: (2em / 14); | ||
| 15 | + text-align: center; | ||
| 16 | + &.@{fa-css-prefix}-lg { | ||
| 17 | + left: (-@fa-li-width + (4em / 14)); | ||
| 18 | + } | ||
| 19 | +} |
public/font-awesome/less/mixins.less
0 → 100644
| 1 | +// Mixins | ||
| 2 | +// -------------------------- | ||
| 3 | + | ||
| 4 | +.fa-icon() { | ||
| 5 | + display: inline-block; | ||
| 6 | + font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration | ||
| 7 | + font-size: inherit; // can't have font-size inherit on line above, so need to override | ||
| 8 | + text-rendering: auto; // optimizelegibility throws things off #1094 | ||
| 9 | + -webkit-font-smoothing: antialiased; | ||
| 10 | + -moz-osx-font-smoothing: grayscale; | ||
| 11 | + | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +.fa-icon-rotate(@degrees, @rotation) { | ||
| 15 | + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})"; | ||
| 16 | + -webkit-transform: rotate(@degrees); | ||
| 17 | + -ms-transform: rotate(@degrees); | ||
| 18 | + transform: rotate(@degrees); | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +.fa-icon-flip(@horiz, @vert, @rotation) { | ||
| 22 | + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)"; | ||
| 23 | + -webkit-transform: scale(@horiz, @vert); | ||
| 24 | + -ms-transform: scale(@horiz, @vert); | ||
| 25 | + transform: scale(@horiz, @vert); | ||
| 26 | +} | ||
| 27 | + | ||
| 28 | + | ||
| 29 | +// Only display content to screen readers. A la Bootstrap 4. | ||
| 30 | +// | ||
| 31 | +// See: http://a11yproject.com/posts/how-to-hide-content/ | ||
| 32 | + | ||
| 33 | +.sr-only() { | ||
| 34 | + position: absolute; | ||
| 35 | + width: 1px; | ||
| 36 | + height: 1px; | ||
| 37 | + padding: 0; | ||
| 38 | + margin: -1px; | ||
| 39 | + overflow: hidden; | ||
| 40 | + clip: rect(0,0,0,0); | ||
| 41 | + border: 0; | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +// Use in conjunction with .sr-only to only display content when it's focused. | ||
| 45 | +// | ||
| 46 | +// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 | ||
| 47 | +// | ||
| 48 | +// Credit: HTML5 Boilerplate | ||
| 49 | + | ||
| 50 | +.sr-only-focusable() { | ||
| 51 | + &:active, | ||
| 52 | + &:focus { | ||
| 53 | + position: static; | ||
| 54 | + width: auto; | ||
| 55 | + height: auto; | ||
| 56 | + margin: 0; | ||
| 57 | + overflow: visible; | ||
| 58 | + clip: auto; | ||
| 59 | + } | ||
| 60 | +} |
public/font-awesome/less/path.less
0 → 100644
| 1 | +/* FONT PATH | ||
| 2 | + * -------------------------- */ | ||
| 3 | + | ||
| 4 | +@font-face { | ||
| 5 | + font-family: 'FontAwesome'; | ||
| 6 | + src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); | ||
| 7 | + src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), | ||
| 8 | + url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), | ||
| 9 | + url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'), | ||
| 10 | + url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), | ||
| 11 | + url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); | ||
| 12 | + // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts | ||
| 13 | + font-weight: normal; | ||
| 14 | + font-style: normal; | ||
| 15 | +} |
| 1 | +// Rotated & Flipped Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } | ||
| 5 | +.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } | ||
| 6 | +.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } | ||
| 7 | + | ||
| 8 | +.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } | ||
| 9 | +.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } | ||
| 10 | + | ||
| 11 | +// Hook for IE8-9 | ||
| 12 | +// ------------------------- | ||
| 13 | + | ||
| 14 | +:root .@{fa-css-prefix}-rotate-90, | ||
| 15 | +:root .@{fa-css-prefix}-rotate-180, | ||
| 16 | +:root .@{fa-css-prefix}-rotate-270, | ||
| 17 | +:root .@{fa-css-prefix}-flip-horizontal, | ||
| 18 | +:root .@{fa-css-prefix}-flip-vertical { | ||
| 19 | + filter: none; | ||
| 20 | +} |
public/font-awesome/less/screen-reader.less
0 → 100644
public/font-awesome/less/stacked.less
0 → 100644
| 1 | +// Stacked Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.@{fa-css-prefix}-stack { | ||
| 5 | + position: relative; | ||
| 6 | + display: inline-block; | ||
| 7 | + width: 2em; | ||
| 8 | + height: 2em; | ||
| 9 | + line-height: 2em; | ||
| 10 | + vertical-align: middle; | ||
| 11 | +} | ||
| 12 | +.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { | ||
| 13 | + position: absolute; | ||
| 14 | + left: 0; | ||
| 15 | + width: 100%; | ||
| 16 | + text-align: center; | ||
| 17 | +} | ||
| 18 | +.@{fa-css-prefix}-stack-1x { line-height: inherit; } | ||
| 19 | +.@{fa-css-prefix}-stack-2x { font-size: 2em; } | ||
| 20 | +.@{fa-css-prefix}-inverse { color: @fa-inverse; } |
public/font-awesome/less/variables.less
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/scss/_animated.scss
0 → 100644
| 1 | +// Spinning Icons | ||
| 2 | +// -------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix}-spin { | ||
| 5 | + -webkit-animation: fa-spin 2s infinite linear; | ||
| 6 | + animation: fa-spin 2s infinite linear; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +.#{$fa-css-prefix}-pulse { | ||
| 10 | + -webkit-animation: fa-spin 1s infinite steps(8); | ||
| 11 | + animation: fa-spin 1s infinite steps(8); | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +@-webkit-keyframes fa-spin { | ||
| 15 | + 0% { | ||
| 16 | + -webkit-transform: rotate(0deg); | ||
| 17 | + transform: rotate(0deg); | ||
| 18 | + } | ||
| 19 | + 100% { | ||
| 20 | + -webkit-transform: rotate(359deg); | ||
| 21 | + transform: rotate(359deg); | ||
| 22 | + } | ||
| 23 | +} | ||
| 24 | + | ||
| 25 | +@keyframes fa-spin { | ||
| 26 | + 0% { | ||
| 27 | + -webkit-transform: rotate(0deg); | ||
| 28 | + transform: rotate(0deg); | ||
| 29 | + } | ||
| 30 | + 100% { | ||
| 31 | + -webkit-transform: rotate(359deg); | ||
| 32 | + transform: rotate(359deg); | ||
| 33 | + } | ||
| 34 | +} |
| 1 | +// Bordered & Pulled | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix}-border { | ||
| 5 | + padding: .2em .25em .15em; | ||
| 6 | + border: solid .08em $fa-border-color; | ||
| 7 | + border-radius: .1em; | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +.#{$fa-css-prefix}-pull-left { float: left; } | ||
| 11 | +.#{$fa-css-prefix}-pull-right { float: right; } | ||
| 12 | + | ||
| 13 | +.#{$fa-css-prefix} { | ||
| 14 | + &.#{$fa-css-prefix}-pull-left { margin-right: .3em; } | ||
| 15 | + &.#{$fa-css-prefix}-pull-right { margin-left: .3em; } | ||
| 16 | +} | ||
| 17 | + | ||
| 18 | +/* Deprecated as of 4.4.0 */ | ||
| 19 | +.pull-right { float: right; } | ||
| 20 | +.pull-left { float: left; } | ||
| 21 | + | ||
| 22 | +.#{$fa-css-prefix} { | ||
| 23 | + &.pull-left { margin-right: .3em; } | ||
| 24 | + &.pull-right { margin-left: .3em; } | ||
| 25 | +} |
public/font-awesome/scss/_core.scss
0 → 100644
| 1 | +// Base Class Definition | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix} { | ||
| 5 | + display: inline-block; | ||
| 6 | + font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration | ||
| 7 | + font-size: inherit; // can't have font-size inherit on line above, so need to override | ||
| 8 | + text-rendering: auto; // optimizelegibility throws things off #1094 | ||
| 9 | + -webkit-font-smoothing: antialiased; | ||
| 10 | + -moz-osx-font-smoothing: grayscale; | ||
| 11 | + | ||
| 12 | +} |
public/font-awesome/scss/_fixed-width.scss
0 → 100644
public/font-awesome/scss/_icons.scss
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/scss/_larger.scss
0 → 100644
| 1 | +// Icon Sizes | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +/* makes the font 33% larger relative to the icon container */ | ||
| 5 | +.#{$fa-css-prefix}-lg { | ||
| 6 | + font-size: (4em / 3); | ||
| 7 | + line-height: (3em / 4); | ||
| 8 | + vertical-align: -15%; | ||
| 9 | +} | ||
| 10 | +.#{$fa-css-prefix}-2x { font-size: 2em; } | ||
| 11 | +.#{$fa-css-prefix}-3x { font-size: 3em; } | ||
| 12 | +.#{$fa-css-prefix}-4x { font-size: 4em; } | ||
| 13 | +.#{$fa-css-prefix}-5x { font-size: 5em; } |
public/font-awesome/scss/_list.scss
0 → 100644
| 1 | +// List Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix}-ul { | ||
| 5 | + padding-left: 0; | ||
| 6 | + margin-left: $fa-li-width; | ||
| 7 | + list-style-type: none; | ||
| 8 | + > li { position: relative; } | ||
| 9 | +} | ||
| 10 | +.#{$fa-css-prefix}-li { | ||
| 11 | + position: absolute; | ||
| 12 | + left: -$fa-li-width; | ||
| 13 | + width: $fa-li-width; | ||
| 14 | + top: (2em / 14); | ||
| 15 | + text-align: center; | ||
| 16 | + &.#{$fa-css-prefix}-lg { | ||
| 17 | + left: -$fa-li-width + (4em / 14); | ||
| 18 | + } | ||
| 19 | +} |
public/font-awesome/scss/_mixins.scss
0 → 100644
| 1 | +// Mixins | ||
| 2 | +// -------------------------- | ||
| 3 | + | ||
| 4 | +@mixin fa-icon() { | ||
| 5 | + display: inline-block; | ||
| 6 | + font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration | ||
| 7 | + font-size: inherit; // can't have font-size inherit on line above, so need to override | ||
| 8 | + text-rendering: auto; // optimizelegibility throws things off #1094 | ||
| 9 | + -webkit-font-smoothing: antialiased; | ||
| 10 | + -moz-osx-font-smoothing: grayscale; | ||
| 11 | + | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +@mixin fa-icon-rotate($degrees, $rotation) { | ||
| 15 | + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})"; | ||
| 16 | + -webkit-transform: rotate($degrees); | ||
| 17 | + -ms-transform: rotate($degrees); | ||
| 18 | + transform: rotate($degrees); | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +@mixin fa-icon-flip($horiz, $vert, $rotation) { | ||
| 22 | + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)"; | ||
| 23 | + -webkit-transform: scale($horiz, $vert); | ||
| 24 | + -ms-transform: scale($horiz, $vert); | ||
| 25 | + transform: scale($horiz, $vert); | ||
| 26 | +} | ||
| 27 | + | ||
| 28 | + | ||
| 29 | +// Only display content to screen readers. A la Bootstrap 4. | ||
| 30 | +// | ||
| 31 | +// See: http://a11yproject.com/posts/how-to-hide-content/ | ||
| 32 | + | ||
| 33 | +@mixin sr-only { | ||
| 34 | + position: absolute; | ||
| 35 | + width: 1px; | ||
| 36 | + height: 1px; | ||
| 37 | + padding: 0; | ||
| 38 | + margin: -1px; | ||
| 39 | + overflow: hidden; | ||
| 40 | + clip: rect(0,0,0,0); | ||
| 41 | + border: 0; | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +// Use in conjunction with .sr-only to only display content when it's focused. | ||
| 45 | +// | ||
| 46 | +// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 | ||
| 47 | +// | ||
| 48 | +// Credit: HTML5 Boilerplate | ||
| 49 | + | ||
| 50 | +@mixin sr-only-focusable { | ||
| 51 | + &:active, | ||
| 52 | + &:focus { | ||
| 53 | + position: static; | ||
| 54 | + width: auto; | ||
| 55 | + height: auto; | ||
| 56 | + margin: 0; | ||
| 57 | + overflow: visible; | ||
| 58 | + clip: auto; | ||
| 59 | + } | ||
| 60 | +} |
public/font-awesome/scss/_path.scss
0 → 100644
| 1 | +/* FONT PATH | ||
| 2 | + * -------------------------- */ | ||
| 3 | + | ||
| 4 | +@font-face { | ||
| 5 | + font-family: 'FontAwesome'; | ||
| 6 | + src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}'); | ||
| 7 | + src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'), | ||
| 8 | + url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'), | ||
| 9 | + url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'), | ||
| 10 | + url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'), | ||
| 11 | + url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg'); | ||
| 12 | +// src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts | ||
| 13 | + font-weight: normal; | ||
| 14 | + font-style: normal; | ||
| 15 | +} |
| 1 | +// Rotated & Flipped Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } | ||
| 5 | +.#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } | ||
| 6 | +.#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } | ||
| 7 | + | ||
| 8 | +.#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); } | ||
| 9 | +.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); } | ||
| 10 | + | ||
| 11 | +// Hook for IE8-9 | ||
| 12 | +// ------------------------- | ||
| 13 | + | ||
| 14 | +:root .#{$fa-css-prefix}-rotate-90, | ||
| 15 | +:root .#{$fa-css-prefix}-rotate-180, | ||
| 16 | +:root .#{$fa-css-prefix}-rotate-270, | ||
| 17 | +:root .#{$fa-css-prefix}-flip-horizontal, | ||
| 18 | +:root .#{$fa-css-prefix}-flip-vertical { | ||
| 19 | + filter: none; | ||
| 20 | +} |
public/font-awesome/scss/_screen-reader.scss
0 → 100644
public/font-awesome/scss/_stacked.scss
0 → 100644
| 1 | +// Stacked Icons | ||
| 2 | +// ------------------------- | ||
| 3 | + | ||
| 4 | +.#{$fa-css-prefix}-stack { | ||
| 5 | + position: relative; | ||
| 6 | + display: inline-block; | ||
| 7 | + width: 2em; | ||
| 8 | + height: 2em; | ||
| 9 | + line-height: 2em; | ||
| 10 | + vertical-align: middle; | ||
| 11 | +} | ||
| 12 | +.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x { | ||
| 13 | + position: absolute; | ||
| 14 | + left: 0; | ||
| 15 | + width: 100%; | ||
| 16 | + text-align: center; | ||
| 17 | +} | ||
| 18 | +.#{$fa-css-prefix}-stack-1x { line-height: inherit; } | ||
| 19 | +.#{$fa-css-prefix}-stack-2x { font-size: 2em; } | ||
| 20 | +.#{$fa-css-prefix}-inverse { color: $fa-inverse; } |
public/font-awesome/scss/_variables.scss
0 → 100644
This diff is collapsed. Click to expand it.
public/font-awesome/scss/font-awesome.scss
0 → 100644
| 1 | +/*! | ||
| 2 | + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome | ||
| 3 | + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) | ||
| 4 | + */ | ||
| 5 | + | ||
| 6 | +@import "variables"; | ||
| 7 | +@import "mixins"; | ||
| 8 | +@import "path"; | ||
| 9 | +@import "core"; | ||
| 10 | +@import "larger"; | ||
| 11 | +@import "fixed-width"; | ||
| 12 | +@import "list"; | ||
| 13 | +@import "bordered-pulled"; | ||
| 14 | +@import "animated"; | ||
| 15 | +@import "rotated-flipped"; | ||
| 16 | +@import "stacked"; | ||
| 17 | +@import "icons"; | ||
| 18 | +@import "screen-reader"; |
public/images/favicon.png
0 → 100644
687 Bytes
public/javascripts/main.js
0 → 100644
File mode changed
public/stylesheets/main.css
0 → 100644
| 1 | + | ||
| 2 | +a{ | ||
| 3 | + color: #000000; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +a:hover{ | ||
| 7 | + color: #000000; | ||
| 8 | + text-decoration: none; | ||
| 9 | + background-color: #B7BDC8; | ||
| 10 | +} | ||
| 11 | +.header{ | ||
| 12 | + height: 80px; | ||
| 13 | + background-color: #B7BDC8; | ||
| 14 | + color: #ffffff; | ||
| 15 | + padding-left: 30px; | ||
| 16 | +} | ||
| 17 | + | ||
| 18 | +.navigation{ | ||
| 19 | + padding-left: 30px; | ||
| 20 | + padding-top: 30px; | ||
| 21 | + background-color: #E9F0F4; | ||
| 22 | + min-height: 89vh !important; | ||
| 23 | +} | ||
| 24 | + | ||
| 25 | +@media(max-width: 767px){ | ||
| 26 | + .navigation{ | ||
| 27 | + min-height: 0px !important; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | +} | ||
| 31 | + | ||
| 32 | +.navlink{ | ||
| 33 | + display: block; | ||
| 34 | + text-align: center; | ||
| 35 | + padding: 25px; | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +.nav-item{ | ||
| 39 | + text-align: center; | ||
| 40 | + padding: 25px; | ||
| 41 | +} | ||
| 42 | + |
test/controllers/HomeControllerTest.java
0 → 100644
| 1 | +package controllers; | ||
| 2 | + | ||
| 3 | +import org.junit.Test; | ||
| 4 | +import play.Application; | ||
| 5 | +import play.inject.guice.GuiceApplicationBuilder; | ||
| 6 | +import play.mvc.Http; | ||
| 7 | +import play.mvc.Result; | ||
| 8 | +import play.test.WithApplication; | ||
| 9 | + | ||
| 10 | +import static org.junit.Assert.assertEquals; | ||
| 11 | +import static play.mvc.Http.Status.OK; | ||
| 12 | +import static play.test.Helpers.GET; | ||
| 13 | +import static play.test.Helpers.route; | ||
| 14 | + | ||
| 15 | +public class HomeControllerTest extends WithApplication { | ||
| 16 | + | ||
| 17 | + @Override | ||
| 18 | + protected Application provideApplication() { | ||
| 19 | + return new GuiceApplicationBuilder().build(); | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + @Test | ||
| 23 | + public void testIndex() { | ||
| 24 | + Http.RequestBuilder request = new Http.RequestBuilder() | ||
| 25 | + .method(GET) | ||
| 26 | + .uri("/"); | ||
| 27 | + | ||
| 28 | + Result result = route(app, request); | ||
| 29 | + assertEquals(OK, result.status()); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | +} |
-
Please register or login to post a comment