import other kontor repos into directories
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import org.apache.wicket.request.mapper.parameter.PageParameters;
|
||||
import org.apache.wicket.markup.html.basic.Label;
|
||||
import org.apache.wicket.markup.html.WebPage;
|
||||
|
||||
public class HomePage extends WebPage {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public HomePage(final PageParameters parameters) {
|
||||
super(parameters);
|
||||
|
||||
add(new Label("version", getApplication().getFrameworkSettings().getVersion()));
|
||||
|
||||
// TODO Add your page's components here
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package de.thpeetz.kontor;
|
||||
|
||||
import org.apache.wicket.csp.CSPDirective;
|
||||
import org.apache.wicket.csp.CSPDirectiveSrcValue;
|
||||
import org.apache.wicket.markup.html.WebPage;
|
||||
import org.apache.wicket.protocol.http.WebApplication;
|
||||
|
||||
/**
|
||||
* Application object for your web application.
|
||||
* If you want to run this application without deploying, run the Start class.
|
||||
*
|
||||
* @see de.thpeetz.kontor.Start#main(String[])
|
||||
*/
|
||||
public class KontorApplication extends WebApplication
|
||||
{
|
||||
/**
|
||||
* @see org.apache.wicket.Application#getHomePage()
|
||||
*/
|
||||
@Override
|
||||
public Class<? extends WebPage> getHomePage()
|
||||
{
|
||||
return HomePage.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.apache.wicket.Application#init()
|
||||
*/
|
||||
@Override
|
||||
public void init()
|
||||
{
|
||||
super.init();
|
||||
|
||||
// needed for the styling used by the quickstart
|
||||
getCspSettings().blocking()
|
||||
.add(CSPDirective.STYLE_SRC, CSPDirectiveSrcValue.SELF)
|
||||
.add(CSPDirective.STYLE_SRC, "https://fonts.googleapis.com/css")
|
||||
.add(CSPDirective.FONT_SRC, "https://fonts.gstatic.com");
|
||||
|
||||
// add your configuration here
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:wicket="http://wicket.apache.org">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Apache Wicket Quickstart</title>
|
||||
<link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' />
|
||||
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="hd">
|
||||
<div id="logo">
|
||||
<img src="logo.png" width="50px" height="50px" alt="Wicket Logo" />
|
||||
<h1>Apache Wicket</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="bd">
|
||||
<h2>Congratulations!</h2>
|
||||
<p>
|
||||
Your quick start works! This project is especially useful to
|
||||
start developing your Wicket application or to create a test
|
||||
case for a bug report.
|
||||
</p>
|
||||
<h3>Get started</h3>
|
||||
<p>
|
||||
You can even <a href="https://localhost:8443">switch to HTTPS</a>!
|
||||
</p>
|
||||
<p>
|
||||
From here you can start hacking away at your application and
|
||||
wow your clients:
|
||||
</p>
|
||||
<ul>
|
||||
<li>work through <a href="https://wicket.apache.org/learn/examples" target="_blank" title="Hello world and friends">some examples</a></li>
|
||||
<li>read <a href="https://wicket.apache.org/learn/books" target="_blank" title="Books about Wicket in English, German and Japanese">some books</a></li>
|
||||
</ul>
|
||||
<h3>Get help</h3>
|
||||
<p>
|
||||
We are here to help!
|
||||
</p>
|
||||
<ul>
|
||||
<li>join us on IRC on <a href="irc:%23%23wicket@irc.freenode.net">##wicket@irc.freenode.net</a></li>
|
||||
<li><a href="http://wicket-users.markmail.org/" target="_blank" title="Search the mailing list archives">search</a> our mailing list archives</li>
|
||||
<li>ask a question on the <a href="https://wicket.apache.org/help/email.html">users list</a></li>
|
||||
</ul>
|
||||
<h3>Reporting a bug</h3>
|
||||
<p>
|
||||
Help us help you:
|
||||
</p>
|
||||
<ol>
|
||||
<li>reproduce the bug with the <strong>least</strong> amount of code</li>
|
||||
<li>create a unit test that shows the bug</li>
|
||||
<li>fix the bug and create a patch</li>
|
||||
<li>attach the result of step 1, 2 or 3 to a <a href="https://issues.apache.org/jira/browse/WICKET" target="_blank">JIRA issue</a></li>
|
||||
<li>profit!</li>
|
||||
</ol>
|
||||
<p>
|
||||
Please mention the correct Wicket version: <wicket:container wicket:id="version">1.5-SNAPSHOT</wicket:container>.
|
||||
</p>
|
||||
</div>
|
||||
<div id="ft">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
|
||||
<display-name>kontor-wicket</display-name>
|
||||
|
||||
<!--
|
||||
There are three means to configure Wickets configuration mode and they
|
||||
are tested in the order given.
|
||||
|
||||
1) A system property: -Dwicket.configuration
|
||||
2) servlet specific <init-param>
|
||||
3) context specific <context-param>
|
||||
|
||||
The value might be either "development" (reloading when templates change) or
|
||||
"deployment". If no configuration is found, "development" is the default. -->
|
||||
|
||||
<filter>
|
||||
<filter-name>wicket.kontor-wicket</filter-name>
|
||||
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>applicationClassName</param-name>
|
||||
<param-value>de.thpeetz.kontor.KontorApplication</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>wicket.kontor-wicket</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
</web-app>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,68 @@
|
||||
body, p, li, a { font-family: georgia, times, serif;font-size:13pt;}
|
||||
h1, h2, h3 { font-family: 'Yanone Kaffeesatz', arial, serif; }
|
||||
body { margin:0;padding:0;}
|
||||
#hd {
|
||||
width : 100%;
|
||||
height : 87px;
|
||||
background-color : #092E67;
|
||||
margin-top : 0;
|
||||
padding-top : 10px;
|
||||
border-bottom : 1px solid #888;
|
||||
z-index : 0;
|
||||
}
|
||||
#ft {
|
||||
position : absolute;
|
||||
bottom : 0;
|
||||
width : 100%;
|
||||
height : 99px;
|
||||
background-color : #6493D2;
|
||||
border-top : 1px solid #888;
|
||||
z-index : 0;
|
||||
}
|
||||
#logo,#bd {
|
||||
width : 650px;
|
||||
margin: 0 auto;
|
||||
padding: 25px 50px 0 50px;
|
||||
}
|
||||
#logo h1 {
|
||||
color : white;
|
||||
font-size:36pt;
|
||||
display: inline;
|
||||
}
|
||||
#logo img {
|
||||
display:inline;
|
||||
vertical-align: bottom;
|
||||
margin-left : 50px;
|
||||
margin-right : 5px;
|
||||
}
|
||||
body { margin-top : 0; padding-top : 0;}
|
||||
#logo, #logo h1 { margin-top : 0; padding-top : 0;}
|
||||
#bd {
|
||||
position : absolute;
|
||||
top : 75px;
|
||||
bottom : 75px;
|
||||
left : 50%;
|
||||
margin-left : -325px;
|
||||
z-index : 1;
|
||||
overflow: auto;
|
||||
background-color : #fff;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
-moz-box-shadow: 0px 0px 10px #888;
|
||||
-webkit-box-shadow: 0px 0px 10px #888;
|
||||
box-shadow: 0px 0px 10px #888;
|
||||
}
|
||||
a, a:visited, a:hover, a:active {
|
||||
color : #6493D2;
|
||||
}
|
||||
h2 {
|
||||
padding : 0; margin:0;
|
||||
font-size:36pt;
|
||||
color:#FF5500;
|
||||
}
|
||||
h3 {
|
||||
padding : 0; margin:0;
|
||||
font-size:24pt;
|
||||
color:#092E67;
|
||||
}
|
||||
Reference in New Issue
Block a user