WIP: JSONRPC server refactoring
Some checks reported errors
Pyxis/orion/feature%2Fjsonrpc-next Something is wrong with the build of this commit
Pyxis/orion/pipeline/head Something is wrong with the build of this commit
LaCanne/orion/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2019-02-12 10:17:06 +01:00
parent 0f0213c326
commit 713ca17c62
69 changed files with 13073 additions and 2728 deletions

View File

@ -5,19 +5,23 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Orion</title>
<link rel="stylesheet" href="/vendor/bulma-0.7.2/css/bulma.min.css">
<link rel="stylesheet" href="/css/server.css">
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title">
Hello World
</h1>
<p class="subtitle">
My first website with <strong>Bulma</strong>!
</p>
</div>
</section>
{{template "navbar" .}}
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-3">
{{template "menu" .}}
</div>
<div class="column is-9">
{{block "page_content" .}}{{end}}
</div>
</div>
</div>
</section>
<script type="text/javascript" src="/server.js"></script>
</body>
</html>
{{end}}

View File

@ -0,0 +1,10 @@
{{define "menu"}}
<aside class="menu" data-controller="menu">
<p class="menu-label">
Gestion de la flotte
</p>
<ul class="menu-list">
<li><a href="/modules">Modules</a></li>
</ul>
</aside>
{{end}}

View File

@ -0,0 +1,10 @@
{{define "navbar"}}
<nav class="navbar is-info" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<b>Orion</b>
</a>
</div>
</nav>
{{end}}

View File

@ -1 +0,0 @@
{{template "base" .}}

View File

@ -0,0 +1,24 @@
{{define "page_content"}}
<div data-controller="modules">
<div class="level is-mobile">
<div class="level-left">
<h4 class="is-size-4 level-item">Modules à portée</h4>
</div>
<div class="level-right">
<button data-action="click->modules#onScanClick" class="button is-primary">Scanner</button>
</div>
</div>
<table class="table">
<thead>
<tr>
<th>SSID</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr></tr>
</tbody>
</table>
</div>
{{end}}
{{template "base" .}}