Repository: isis Updated Branches: refs/heads/ISIS-903 4d3eb5789 -> 68899a294 (forced update)
http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/about/index.html ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/about/index.html b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/about/index.html new file mode 100644 index 0000000..2a425e5 --- /dev/null +++ b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/about/index.html @@ -0,0 +1,178 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> + <title>Apache Isis™ TodoApp</title> + + <style type="text/css"> +body { + background-color: ${symbol_pound}1A467B; + font-family: Verdana, Helvetica, Arial; + font-size: 90%; +} + +li { + margin-top: 6px; + margin-bottom: 6px; +} +table { + border-collapse: collapse; +} +table, th, td { + border: 1px; + border-style: solid; + border-color: lightgray; +} +th, td { + padding: 10px; +} +${symbol_pound}wrapper { + background-color: ${symbol_pound}ffffff; + width: 900px; + margin: 8px auto; + padding: 12px; +} + </style> + </head> + <body> + <div id="wrapper"> + <img alt="Isis Logo" src="about/images/isis-logo.png" /> + + <p> + <a href="http://isis.apache.org" target="_blank">Apache Isis</a>™ is a framework to let you rapidly develop + domain-driven apps in Java. This app has been generated using Isis' + <a href="http://isis.apache.org/intro/getting-started/todo%61pp-archetype.html" target="_blank">TodoApp</a> archetype, + which configures Isis to run a (quite feature rich) "todo" app. + + <p> + The app itself consists of a single domain class, <tt>ToDoItem</tt>, along with a number of supporting + services. + </p> + + <p>To access the app:</p> + <ul> + <li> + <p> + <b><a href="wicket/">wicket/</a></b> + </p> + <p> + provides accesses to a generic UI for end-users, + Isis' <a href="http://isis.apache.org/components/viewers/wicket/about.html" target="_blank">Wicket Viewer</a>. + As its name suggests, this viewer is built on top of <a href="http://wicket.apache.org" target="_blank">Apache Wicket</a>™. + </p> + </li> + <li> + <p> + <b> + <a href="restful/">restful/</a> + </b> + </p> + <p> + provides access to a RESTful API conformant with the + <a href="http://restfulobjects.org">Restful Objects</a> spec</td>. This is part of Isis Core. The + implementation technology is JBoss RestEasy. + </p> + </li> + </ul> + + <p> + The default user/password is <b><i>sven/pass</i></b> (as configured in the + <a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/shiro.ini" target="_blank">shiro.ini</a> file). + </p> + + <p> + To build your own app, while you could start with this todo app and remove/rename as required, you are + probably better off using the extremely minimal + <a href="http://isis.apache.org/intro/getting-started/simpleapp-archetype.html" target="_blank">SimpleApp</a> archetype. + </p> + + <h2>App contents</h2> + <p>The key files in this "todo" app are:</p> + <!-- the hrefs below are partially URL encoded to prevent them from being modified when the archetype is created --> + <ul> + <li>Domain classes (todo functionality) (in <tt>dom</tt> module) + <ul> + <li><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/dom/src/main/java/dom/todo/ToDoItem.java" target="_blank"><tt>ToDoItem</tt></a> domain entity + </li> + <li><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/dom/src/main/java/dom/todo/ToDoItems.java" target="_blank"><tt>ToDoItems</tt></a> domain service (repository/factory) + </li> + <li><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/dom/src/main/java/app/ToDoItemAnalysis.java" target="_blank"><tt>ToDoItemAnalysis</tt></a> application service analysing todo items + </li> + <li><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/dom/src/main/java/app/ToDoAppDashboard.java" target="_blank"><tt>ToDoAppDashboard</tt></a> dashboard application service + </li> + </ul> + </li> + <li>Fixture scripts (in <tt>fixture</tt> module) + <ul> + <li><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/fixture/src/main/java/fixture/todo/ToDoItemsFixturesService.java" target="_blank"><tt>ToDoItemsFixtureService</tt></a> domain service to install fixtures at run-time + </li> + </ul> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml" target="_blank">WEB-INF/web.xml</a></tt> (in <tt>webapp</tt> module) + <ul> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L98" target="_blank">ResourceCachingFilter</a></tt> and <tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L134" target="_blank">ResourceServlet</a></tt> - filter and servlet for serving up static resources. + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L174" target="_blank">WicketFilter</a></tt> - filter for the wicket application, mapped to <tt>/wicket/*</tt> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L223" target="_blank">ResteasyBootstrap</a></tt>, + <tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L240" target="_blank">IsisSessionFilterForRestfulObjects</a></tt>, + <tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L271" target="_blank">RestfulObjectsRestEasyDispatcher</a></tt> - listeners, filters and servlets to bootstrap and map restful objects viewer to <tt>/restful/*</tt>. + </li> + <li>commented out <tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/web.xml${symbol_pound}L208" target="_blank">IsisWebAppBootstrapper</a></tt> listener; this is NOT required unless wicket viewer config is removed + </li> + </ul> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/isis.properties" target="_blank">WEB-INF/isis.properties</a></tt> (in <tt>webapp</tt> module) + <ul> + <li><tt>isis.services</tt> - explicitly loaded framework-provide domain services. Other services (including <tt>ToDoItems</tt> and <tt>ToDoItemsFixtureService</tt> described above), + are loaded automatically from the classpath. + </li> + <li><tt>isis.persistor</tt> - specifies to use Isis' integration with <a href="http://datanucleus.org">DataNucleus</a> for (JDO-based) persistence. + </li> + <li><tt>isis.authentication</tt> and <tt>isis.authorization</tt> - specifies to use Isis' integration with <a href="http://shiro.apache.org">Apache Shiro</a> for security. + </li> + </ul> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/persistor_datanucleus.properties" target="_blank">WEB-INF/persistor_datanucleus.properties</a></tt> (in <tt>webapp</tt> module) + <ul> + <li>configuration for the DataNucleus (JDO) object store + </li> + </ul> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/persistor.properties" target="_blank">WEB-INF/persistor.properties</a></tt> (in <tt>webapp</tt> module) + <ul> + <li>JDBC URL for DataNucleus (JDO) object store + </li> + </ul> + </li> + <li><tt><a href="https://github.com/apache/isis/blob/master/example/application/todo%61pp/webapp/src/main/webapp/WEB-INF/shiro.ini" target="_blank">WEB-INF/shiro.ini</a></tt> (in <tt>webapp</tt> module) + <ul> + <li>configuration for Shiro security + </li> + </ul> + </li> + </ul> + </div> + </body> +</html> http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/css/application.css ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/css/application.css b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/css/application.css new file mode 100644 index 0000000..e4aed6e --- /dev/null +++ b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/css/application.css @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +.navbar-brand img { + margin-top: -5px; + margin-left: 5px; +} + +.x-key label.scalarName { + color: red; +} + +tr.todo { +} + +tr.done { + text-decoration: line-through; + color: #d3d3d3; +} http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.pdn ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.pdn b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.pdn new file mode 100644 index 0000000..016c9b8 Binary files /dev/null and b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.pdn differ http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.png ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.png b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.png new file mode 100644 index 0000000..2c417fb Binary files /dev/null and b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-header.png differ http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.pdn ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.pdn b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.pdn new file mode 100644 index 0000000..7a164e1 Binary files /dev/null and b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.pdn differ http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.png ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.png b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.png new file mode 100644 index 0000000..ee2feb4 Binary files /dev/null and b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo-signin.png differ http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo.pdn ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo.pdn b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo.pdn new file mode 100644 index 0000000..4983ca9 Binary files /dev/null and b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/images/todoapp-logo.pdn differ http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/scripts/application.js ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/scripts/application.js b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/scripts/application.js new file mode 100644 index 0000000..d8cf6fe --- /dev/null +++ b/mothballed/example/archetype/todoapp/src/main/resources/archetype-resources/webapp/src/main/webapp/scripts/application.js @@ -0,0 +1,3 @@ +$(document).ready(function() { + /// here... +}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/archetype.properties ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/archetype.properties b/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/archetype.properties new file mode 100644 index 0000000..465d32c --- /dev/null +++ b/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/archetype.properties @@ -0,0 +1,5 @@ +#Tue Feb 03 23:39:52 GMT 2015 +package=it.pkg +version=0.1-SNAPSHOT +groupId=archetype.it +artifactId=basic http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/goal.txt ---------------------------------------------------------------------- diff --git a/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/goal.txt b/mothballed/example/archetype/todoapp/src/test/resources/projects/basic/goal.txt new file mode 100644 index 0000000..e69de29 http://git-wip-us.apache.org/repos/asf/isis/blob/a4ec0b72/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index c24b464..73d7a95 100644 --- a/pom.xml +++ b/pom.xml @@ -54,10 +54,8 @@ <module>component/viewer/wicket</module> <module>tck</module> - <module>example/application/todoapp</module> <module>example/application/simpleapp</module> - <module>example/archetype/todoapp</module> <module>example/archetype/simpleapp</module> <module>component/viewer/scimpi</module> @@ -69,11 +67,7 @@ <modules> <module>core</module> <module>component/viewer/wicket</module> - - <module>example/application/todoapp</module> <module>example/application/simpleapp</module> - - <module>example/archetype/todoapp</module> <module>example/archetype/simpleapp</module> </modules> </profile> @@ -103,7 +97,6 @@ <profile> <id>examples</id> <modules> - <module>example/application/todoapp</module> <module>example/application/simpleapp</module> </modules> </profile>
