apxtrib/adminapi/www/adminapx/index_en.html
2023-05-31 15:19:21 +02:00

156 lines
7.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>setup apXtrib</title>
<link rel="icon" type="image/png" href="cdn/share/logo/favicon.png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- fontawesome icon cdn -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.css">
<script>
const apxlocal = {
headers: { xalias: "anonymous", xhash: "anonymous", xdays: 0, xtribe: "devenv", xapp: "adminapx", xlang: "en" },
firsttimeload: true,
forcereload: true,
tpl: {
title: "<h1>apXtrib </h1><p>Nation:{{nationId}} Town:{{townId}}</p><p><p> Manage an apXtrib</p></p>",
footer: "{{{msg}}}"
},
tpldata: {
footer: { msg: "<p>apXtrib, made with love for people freedom, enjoy!</p>" },
apxmodal: { title: "exemple title", body: "exemple body", actions: [{ btndescription: "hello", onclick: "console.log('hello')" }] }
}
};
// @todo check version control to force a reload with forceload
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="cdn/share/js/dayjs.min.js"></script>
<script src="cdn/share/js/editor.js"></script>
<script src="cdn/share/js/openpgp.min.js"></script>
<script src="cdn/share/js/mustache.min.js"></script>
<script src="cdn/share/js/axios.min.js"></script>
<script src="static/js/apx.js"></script>
<script src="static/js/apxpagans.js"></script>
<script src="static/js/apxtribes.js"></script>
<script src="static/js/apxtowns.js"></script>
<script src="static/js/apxapp.js"></script>
<style>
.fakeimg {
height: 200px;
background: #aaa;
}
</style>
</head>
<body>
<div id="apxtitle" class="p-5 bg-primary text-white text-center" apptoload="app.load('apxtitle','title','setup')"
add2data tpldata="conf/setup_xx.json">
<h1>apXtrib</h1>
<p> Manage and understand apXtrib back-end</p>
</div>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" add2data tpl="static/tpl/articleslist_en.mustache"
onclick="app.load('apxmain','articleslist','articleslist')"><i class="fa-solid fa-house"></i></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">Articles</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" add2data tpl="static/tpl/articleeditor_en.mustache"
onclick="app.load('apxmain','articleeditor',{})">Create</a></li>
<li><a class="dropdown-item" href="#">Manage Articles</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<div class="" d-none" add2data object="nationchains/towns/idx/townId_all.json"></div>
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">Pagan</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" add2data tpl="static/tpl/pagancreate_en.mustache"
object="nationchains/pagans/idx/alias_all.json"
onclick="app.load('apxmain','pagancreate',pagans.loadtpldata())">Create / Login / Logout</a></li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#">Cipher/Uncipher</a></li>
<li><a class="dropdown-item" href="#">My messages</a></li>
<li><a class="dropdown-item" href="#">Notifications</a></li>
<li><a class="dropdown-item" href="#">Wallet management</a></li>
<li><a class="dropdown-item" href="#">Signed Contracts</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">Mayor's Town</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" add2data tpl="static/tpl/townowner_en.mustache"
onclick="app.load('apxmain','townowner',towns.loadtpldata())">Own this town</a></li>
<li><a class="dropdown-item" href="#">Manage Tribes</a></li>
<li><a class="dropdown-item" href="#">Backup Town/Tribes</a></li>
<li>
<hr class="dropdown-divider">
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">Druid's Tribe</a>
<ul class="dropdown-menu ">
<li><a class="dropdown-item" tribe="" href="#">Manage Persons</a></li>
<li><a class="dropdown-item" tribe="" href="#">Manage web space</a></li>
<li><a class="dropdown-item" tribe="" href="#">NFT generator</a></li>
<li><a class="dropdown-item" tribe="" href="#">Create Objects</a></li>
<li><a class="dropdown-item" tribe="" href="#">Manage Objects</a></li>
<li>
<hr class="dropdown-divider">
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">Person's Tribe</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" onclick="" href="#">My Tribe A</a></li>
<li><a class="dropdown-item" onclick="" href="#">My tribe B</a></li>
<li><a class="dropdown-item" onclick="" href="#">My tribe X</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">DevOp's space</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Odmdb Schema</a></li>
<li><a class="dropdown-item" href="#">Odmdb CRUD</a></li>
<li><a class="dropdown-item" add2data tpl="static/tpl/devophostawebapp_en.mustache"
onclick="app.load('apxmain','devophostawebapp',tribes.loadtpldata())">Host a web app</a></li>
<li>
<hr class="dropdown-divider">
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Utils</a>
</li>
</ul>
</div>
</nav>
<div id="apxmain" apptoload="app.load('apxmain','articleslist','articleslist')" class="container mt-5">
<div class="d-flex justify-content-center">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
<div id="apxfooter" apptoload="app.load('apxfooter','footer','footer')"
class="mt-5 p-4 bg-dark text-white text-center">
</div>
<div id="apxmodal" add2data tpl="static/tpl/apxmodal_en.mustache"></div>
</body>
</html>