commit 5ae82004b2571537600fb288d143099d4f737893
parent a70125e7c877a81b607ce17718193a99b41c16b2
Author: Vetle Haflan <vetle@haflan.dev>
Date: Fri, 22 May 2020 23:06:38 +0200
Minor modifications
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/internal/http/events.go b/internal/http/events.go
@@ -107,7 +107,7 @@ func reportEvent(w http.ResponseWriter, r *http.Request) {
}
if numEvents > service.MaxNumberEvents {
events.Delete(firstEventID)
- log.Printf("MaxNumberEvents reached for service %v. Deleting first event", service.ID)
+ log.Printf("MaxNumberEvents reached for service %v. Deleting first event, %v", service.ID, firstEventID)
}
}
diff --git a/ui/src/Events.vue b/ui/src/Events.vue
@@ -114,7 +114,6 @@
padding: .75rem;
border: 1px solid rgba(0,0,0,.125);
box-sizing: border-box;
- overflow-x: scroll;
white-space: nowrap;
}
.event-field {
diff --git a/ui/src/Services.vue b/ui/src/Services.vue
@@ -2,14 +2,14 @@
<div class="services-wrapper">
<div v-for="service in services">
{{ service.id }} :
- <input type="text" :value="service.token">
+ <input :type="showPasswords ? 'text' : 'password'" :value="service.token">
<input type="text" :value="service.name">
<input type="text" :value="service.description">
<input type="number" :value="service.period">
<input type="number" :value="service.maxevents">
</div>
- <input type="text" v-model="newService.token" placeholder="Token">
+ <input :type="showPasswords ? 'text' : 'password'" v-model="newService.token" placeholder="Token">
<input type="text" v-model="newService.name" placeholder="Name">
<input type="text" v-model="newService.description"
placeholder="Description">
@@ -35,7 +35,8 @@
description: "",
period: 0,
maxevents: 0
- }
+ },
+ showPasswords: true
}
},
methods: {