Small design improvements
This commit is contained in:
parent
92e6921cf9
commit
fda3a74a29
7 changed files with 38 additions and 27 deletions
|
@ -43,6 +43,8 @@ I rewrote a couple of things today to make sure the script still works.
|
||||||
* clone this repo
|
* clone this repo
|
||||||
* install Perl dependencies
|
* install Perl dependencies
|
||||||
* install PHP composer dependencies: `cd ./web && composer install`
|
* install PHP composer dependencies: `cd ./web && composer install`
|
||||||
|
* install Javascript dependencies: `cd ./web && npm install`
|
||||||
|
* compile the Javascript sources: `cd ./web && npx mix production`
|
||||||
* create a Database and import the schema from `sql/create.sql`
|
* create a Database and import the schema from `sql/create.sql`
|
||||||
* create your own `.env` file: `cp .env.example .env` and adapt it to your needs
|
* create your own `.env` file: `cp .env.example .env` and adapt it to your needs
|
||||||
* create a webserver vhost with document root to the `web` directory
|
* create a webserver vhost with document root to the `web` directory
|
||||||
|
|
|
@ -46,7 +46,7 @@ class DB {
|
||||||
LEFT JOIN `tasks_history` as h ON (h.task_id = t.id)
|
LEFT JOIN `tasks_history` as h ON (h.task_id = t.id)
|
||||||
LEFT JOIN `groups` as g ON (g.id = t.group_id)
|
LEFT JOIN `groups` as g ON (g.id = t.group_id)
|
||||||
WHERE (t.last_execution IS NULL OR h.datetime = t.last_execution)
|
WHERE (t.last_execution IS NULL OR h.datetime = t.last_execution)
|
||||||
ORDER BY group_id DESC
|
ORDER BY group_name ASC
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -101,10 +101,13 @@ html {
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
padding: 0.3rem;
|
padding: 0.3rem;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
vertical-align: top;
|
|
||||||
border: 1px solid #9ccece;
|
border: 1px solid #9ccece;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&#tasks_tbl, &#contacts_tbl {
|
&#tasks_tbl, &#contacts_tbl {
|
||||||
|
@ -124,7 +127,7 @@ html {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.new-group {
|
.new-group {
|
||||||
margin: .1rem;
|
margin: .2rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: .4rem;
|
border-radius: .4rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -138,6 +141,7 @@ html {
|
||||||
float: left;
|
float: left;
|
||||||
line-height: 1.2rem;
|
line-height: 1.2rem;
|
||||||
min-width: 1.4rem;
|
min-width: 1.4rem;
|
||||||
|
padding: .2rem .6rem;
|
||||||
|
|
||||||
&:not(:first-of-type) {
|
&:not(:first-of-type) {
|
||||||
border-left: 1px solid white;
|
border-left: 1px solid white;
|
||||||
|
@ -182,6 +186,11 @@ html {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-radius: .5rem;
|
border-radius: .5rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small {
|
||||||
|
font-size: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import QuickView from '../resources/quickview.vue'
|
|
||||||
import GroupList from './grouplist.vue'
|
import GroupList from './grouplist.vue'
|
||||||
|
import QuickView from './quickview.vue'
|
||||||
|
|
||||||
export default{
|
export default{
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<a :name="'group-'+group.id"></a>
|
<a :name="'group-'+group.id"></a>
|
||||||
<h3>
|
<h3>
|
||||||
Tasks for group <span class="highlight">{{ group.name }} <small>(#{{ group.id }})</small></span>
|
Tasks for group <span class="highlight">{{ group.name }} <small>(#{{ group.id }})</small></span>
|
||||||
<p class="context-menu"><img src="img/menu.svg" width="40" /></p>
|
<!-- <p class="context-menu"><img src="img/menu.svg" width="40" /></p> -->
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="block-content">
|
<div class="block-content">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
:class="statusText(task.status)"
|
:class="statusText(task.status)"
|
||||||
class="square"
|
class="square"
|
||||||
>
|
>
|
||||||
|
<span class="small">{{task.id }}</span>
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<th width="5%">Up?</th>
|
<th width="5%">Up?</th>
|
||||||
<th width="*">Host</th>
|
<th width="*">Host</th>
|
||||||
<th width="5%">Type</th>
|
<th width="5%">Type</th>
|
||||||
<th width="20%">Last execution</th>
|
<th width="20%">Last checked</th>
|
||||||
<th width="20%">Frequency (min)</th>
|
<th width="13%">Frequency (min)</th>
|
||||||
<th width="5%">Active</th>
|
<th width="5%">Active</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<td :class="statusText(task.status)">
|
<td :class="statusText(task.status)">
|
||||||
<img :src="'img/'+statusText(task.status)+'.png'" width="16" alt="Status" />
|
<img :src="'img/'+statusText(task.status)+'.png'" width="16" alt="Status" />
|
||||||
</td>
|
</td>
|
||||||
<td :class="statusText(task.status)">
|
<td>
|
||||||
<a :href="task.host" target="_blank">{{ task.host }}</a>
|
<a :href="task.host" target="_blank">{{ task.host }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue