Skip to content

Commit ffe8ad6

Browse files
author
a_total_another_bla
committed
frontend template
1 parent 893e2ec commit ffe8ad6

File tree

13 files changed

+167
-171
lines changed

13 files changed

+167
-171
lines changed

src/main/resources/static/css/sticky-footer-navbar.css

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
--------------------------------------------------
3+
tw
4+
--------------------------------------------------
5+
*/

src/main/resources/templates/db/portinfo/all.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
<title th:replace="${title}">Nodes</title>
55
</head>
66
<body th:insert="template :: tw_body">
7-
8-
<div class="container" th:replace="tw_main_app">
9-
<!-- Example row of columns -->
10-
<div class="row">
11-
<div class="col-md-12">
12-
<h2>All Portinfos:</h2>
13-
<hr/>
14-
<ul th:each="item : ${all}">
15-
<li th:text="${item.name}" />
16-
</ul>
7+
<div class="container" th:replace="template :: tw_main_app">
8+
<!-- Example row of columns -->
9+
<div class="row">
10+
<div class="col-md-12">
11+
<h2>All Portinfos:</h2>
12+
<hr/>
13+
<ul th:each="item : ${all}">
14+
<li th:text="${item.name}" />
15+
</ul>
16+
</div>
1717
</div>
1818
</div>
19-
</div>
20-
2119
</body>
2220
</html>

src/main/resources/templates/node/category/all.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!doctype html>
22
<html xmlns:th="http://www.thymeleaf.org" lang="en">
3-
<head th:insert="template :: tw_head">
3+
<head th:include="template :: tw_head">
44
<title th:replace="${title}">Nodes</title>
55
</head>
6-
<body th:insert="template :: tw_body">
6+
<body th:include="template :: tw_body">
77
<main role="main" th:insert="template :: tw_main">
88
<div class="container" th:replace="template :: tw_main_app">
99
<!-- Example row of columns -->

src/main/resources/templates/node/port/all.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
<title th:replace="${title}">Nodes</title>
55
</head>
66
<body th:insert="template :: tw_body">
7-
8-
<div class="container" th:replace="template :: tw_main_app">
9-
<!-- Example row of columns -->
10-
<div class="row">
11-
<div class="col-md-12">
12-
<h2>All Ports:</h2>
13-
<hr/>
14-
<ul th:each="item : ${all}">
15-
<li th:text="${item.name}" />
16-
</ul>
7+
<main role="main" th:insert="template :: tw_main">
8+
<div class="container" th:replace="template :: tw_main_app">
9+
<!-- Example row of columns -->
10+
<div class="row">
11+
<div class="col-md-12">
12+
<h2>All Ports:</h2>
13+
<hr/>
14+
<ul th:each="item : ${all}">
15+
<li th:text="${item.name}" />
16+
</ul>
17+
</div>
18+
</div>
1719
</div>
18-
</div>
19-
</div>
20-
20+
</main>
2121
</body>
2222
</html>

src/main/resources/templates/node/variant/all.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
<title th:replace="${title}">Nodes</title>
55
</head>
66
<body th:insert="template :: tw_body">
7-
8-
<div class="container" th:replace="template :: tw_main_app">
9-
<!-- Example row of columns -->
10-
<div class="row">
11-
<div class="col-md-12">
12-
<h2>All Variants:</h2>
13-
<hr/>
14-
<ul th:each="item : ${all}">
15-
<li th:text="${item.name}" />
16-
</ul>
7+
<main role="main" th:insert="template :: tw_main">
8+
<div class="container" th:replace="template :: tw_main_app">
9+
<!-- Example row of columns -->
10+
<div class="row">
11+
<div class="col-md-12">
12+
<h2>All Variants:</h2>
13+
<hr/>
14+
<ul th:each="item : ${all}">
15+
<li th:text="${item.name}" />
16+
</ul>
17+
</div>
18+
</div>
1719
</div>
18-
</div>
19-
</div>
20-
20+
</main>
2121
</body>
2222
</html>

src/main/resources/templates/template.html

Lines changed: 86 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -4,113 +4,108 @@
44
<!-- Required meta tags -->
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
87
<!-- Bootstrap CSS -->
9-
108
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
119
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
12-
<!--
13-
<link rel='stylesheet' th:href="@{'/css/sticky-footer-navbar.css'}">
14-
-->
10+
<link rel='stylesheet' th:href="@{'/css/tw.css'}">
1511
<title>Learn Neo4j!</title>
1612
</head>
1713
<body th:fragment="tw_body">
1814

19-
<header th:fragment="tw_header">
20-
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
21-
<a class="navbar-brand" href="#">Navbar</a>
22-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
23-
<span class="navbar-toggler-icon"></span>
24-
</button>
25-
26-
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
27-
<ul class="navbar-nav mr-auto">
28-
<li class="nav-item active">
29-
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
30-
</li>
31-
<li class="nav-item">
32-
<a class="nav-link" href="#">Link</a>
33-
</li>
34-
<li class="nav-item">
35-
<a class="nav-link disabled" href="#">Disabled</a>
36-
</li>
37-
<li class="nav-item dropdown">
38-
<a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
39-
<div class="dropdown-menu" aria-labelledby="dropdown01">
40-
<a class="dropdown-item" href="#">Action</a>
41-
<a class="dropdown-item" href="#">Another action</a>
42-
<a class="dropdown-item" href="#">Something else here</a>
43-
</div>
44-
</li>
45-
</ul>
46-
<form class="form-inline my-2 my-lg-0">
47-
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
48-
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
49-
</form>
50-
</div>
51-
</nav>
52-
</header>
53-
54-
<main role="main" th:fragment="tw_main">
15+
<header th:fragment="tw_header">
16+
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
17+
<a class="navbar-brand" href="#">Navbar</a>
18+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
19+
<span class="navbar-toggler-icon"></span>
20+
</button>
21+
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
22+
<ul class="navbar-nav mr-auto">
23+
<li class="nav-item active">
24+
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
25+
</li>
26+
<li class="nav-item">
27+
<a class="nav-link" href="#">Link</a>
28+
</li>
29+
<li class="nav-item">
30+
<a class="nav-link disabled" href="#">Disabled</a>
31+
</li>
32+
<li class="nav-item dropdown">
33+
<a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
34+
<div class="dropdown-menu" aria-labelledby="dropdown01">
35+
<a class="dropdown-item" href="#">Action</a>
36+
<a class="dropdown-item" href="#">Another action</a>
37+
<a class="dropdown-item" href="#">Something else here</a>
38+
</div>
39+
</li>
40+
</ul>
41+
<form class="form-inline my-2 my-lg-0">
42+
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
43+
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
44+
</form>
45+
</div>
46+
</nav>
47+
</header>
5548

56-
<div class="jumbotron">
57-
<div class="container">
58-
<h1 class="display-3">Learn Neo4j!</h1>
59-
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
60-
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more &raquo;</a></p>
61-
</div>
62-
</div>
49+
<main role="main" th:fragment="tw_main">
6350

64-
<div class="container" th:fragment="tw_main_app">
65-
<!-- Example row of columns -->
66-
<div class="row">
67-
<div class="col-md-4">
68-
<h2>Nodes:</h2>
69-
<p><ul>
70-
<li><a th:href="@{'/node/category/all'}">category</a></li>
71-
<li><a th:href="@{'/node/license/all'}">license</a></li>
72-
<li><a th:href="@{'/node/maintainer/all'}">mantainer</a></li>
73-
<li><a th:href="@{'/node/platform/all'}">platform</a></li>
74-
<li><a th:href="@{'/node/port/all'}">port</a></li>
75-
<li><a th:href="@{'/node/variant/all'}">variant</a></li>
76-
</ul></p>
77-
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
51+
<div class="jumbotron">
52+
<div class="container">
53+
<h1 class="display-3">Learn Neo4j!</h1>
54+
<p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
55+
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more &raquo;</a></p>
7856
</div>
79-
<div class="col-md-4">
80-
<h2>Terminal:</h2>
81-
<p><ul>
82-
<li><a th:href="@{'/terminal/port/available/all'}">get all available</a></li>
83-
</ul></p>
84-
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
85-
</div>
86-
<div class="col-md-4">
87-
<h2>Heading</h2>
88-
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
89-
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
57+
</div>
58+
59+
<div class="container" th:fragment="tw_main_app">
60+
<!-- Example row of columns -->
61+
<div class="row">
62+
<div class="col-md-4">
63+
<h2>Nodes:</h2>
64+
<p><ul>
65+
<li><a th:href="@{'/node/category/all'}">category</a></li>
66+
<li><a th:href="@{'/node/license/all'}">license</a></li>
67+
<li><a th:href="@{'/node/maintainer/all'}">mantainer</a></li>
68+
<li><a th:href="@{'/node/platform/all'}">platform</a></li>
69+
<li><a th:href="@{'/node/port/all'}">port</a></li>
70+
<li><a th:href="@{'/node/variant/all'}">variant</a></li>
71+
</ul></p>
72+
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
73+
</div>
74+
<div class="col-md-4">
75+
<h2>Terminal:</h2>
76+
<p><ul>
77+
<li><a th:href="@{'/terminal/port/available/all'}">get all available</a></li>
78+
</ul></p>
79+
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
80+
</div>
81+
<div class="col-md-4">
82+
<h2>Heading</h2>
83+
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
84+
<p><a class="btn btn-secondary" href="#" role="button">View details &raquo;</a></p>
85+
</div>
9086
</div>
87+
<hr>
9188
</div>
92-
<hr>
93-
</div>
94-
</main>
89+
</main>
9590

96-
<footer class="footer" >
97-
<div class="container">
98-
<span class="text-muted">&copy; Company 2017-2018</span>
99-
</div>
100-
</footer>
91+
<footer class="footer" >
92+
<div class="container">
93+
<span class="text-muted">&copy; Company 2017-2018</span>
94+
</div>
95+
</footer>
10196

102-
<!-- Optional JavaScript -->
103-
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
97+
<!-- Optional JavaScript -->
98+
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
10499

105-
<!--
106-
<script data-main="/js/app" src="/webjars/jquery/jquery.min.js"></script>
107-
<script data-main="/js/app" src="/webjars/popper.js/popper.js"></script>
108-
<script data-main="/js/app" src="/webjars/bootstrap/popper.min.js"></script>
109-
-->
100+
<!--
101+
<script data-main="/js/app" src="/webjars/jquery/jquery.min.js"></script>
102+
<script data-main="/js/app" src="/webjars/popper.js/popper.js"></script>
103+
<script data-main="/js/app" src="/webjars/bootstrap/popper.min.js"></script>
104+
-->
110105

111-
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
112-
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
113-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
106+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
107+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
108+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
114109

115110
</body>
116111
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
package org.woehlke.learn.learnneo4j.home.test;
22

3+
import org.junit.runner.RunWith;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
import org.springframework.test.context.junit4.SpringRunner;
6+
7+
@RunWith(SpringRunner.class)
8+
@SpringBootTest
39
public class HomeControllerTests {
410
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
package org.woehlke.learn.learnneo4j.license.test;
22

3+
import org.junit.runner.RunWith;
4+
import org.springframework.boot.test.context.SpringBootTest;
5+
import org.springframework.test.context.junit4.SpringRunner;
6+
7+
@RunWith(SpringRunner.class)
8+
@SpringBootTest
39
public class LicenseControllerTests {
410
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
package org.woehlke.learn.learnneo4j.maintainer.test;
22

3+
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest
310
public class MaintainerConrollerTests {
411
}

0 commit comments

Comments
 (0)