Control panel started

This commit is contained in:
Michael Wain 2025-01-29 04:44:52 +03:00
parent 94247c9372
commit 883457522d
5 changed files with 48 additions and 2 deletions
src/main
java/com/alterdekim/game
resources/templates

@ -41,4 +41,9 @@ public class StaticController {
model.addAttribute("flashVars_", "game_server=http://"+serverConfig.getPublicDomain()+":"+serverProperties.getPort()+"/&url_path_server=http://"+serverConfig.getPublicDomain()+":"+serverProperties.getPort()+"/&is_new_user=1");
return "index";
}
@GetMapping("/panel")
public String panel() {
return "panel";
}
}

@ -35,6 +35,7 @@ public class SpringSecurity {
authorize
.requestMatchers("/").permitAll()
.requestMatchers("/login").permitAll()
.requestMatchers("/panel").hasAnyAuthority("ROLE_USER") // todo: make several roles and separate them
.requestMatchers("/main").hasAnyAuthority("ROLE_USER")
.requestMatchers("/"+ FileServerController.URL_PATH +"/**").permitAll()
.requestMatchers("/ConstructorACHandler.ashx").permitAll()

@ -2,7 +2,7 @@
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>PolyDarker</title>
<title>WhimsyWorld</title>
<link rel="stylesheet" type="text/css" href="/file/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="/file/css/base.css"/>
<link rel="stylesheet" type="text/css" href="/file/css/base_1.css"/>

@ -3,7 +3,7 @@
<head>
<script src="/file/_js/jquery-3.7.1.min.js"></script>
<meta charset="UTF-8">
<title>Polydarker</title>
<title>WhimsyWorld</title>
</head>
<body style="visibility: hidden;">
<span th:text="${status}"></span>

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>WhimsyWorld</title>
<link rel="stylesheet" type="text/css" href="/file/css/mvp.css"/>
</head>
<body>
<header>
<nav>
<h1><a href="/panel">WhimsyWorld</a></h1>
<ul>
<li>Dashboard</li>
<li><a href="#">Users</a></li>
<li>
<a href="#">Learn more</a>
<ul>
<li><a href="#">About us</a></li>
<li><a href="#">Contact us</a></li>
<li><a href="#">Get help</a></li>
</ul>
</li>
</ul>
</nav>
<article>
<aside>
<center>System <b>warning</b> message</center>
</aside>
</article>
<br><br>
<h1>Where god <mark>thrive</mark> with <code>code</code>.</h1>
<p>We are world's <b>#1</b> idea building company 💡 coding all night long 👨🏻‍💻</p>
<br>
<p><a href="#"><i>Get Quote</i></a><a href="#"><b>Get Started &rarr;</b></a></p>
</header>
<main>
</main>
</body>
</html>